joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5372f7
Capabilities:
Copy file
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x524
mov dword [ebp - 0x520], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x518]
push ecx
call fcn.0054bec0
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x318]
push eax
call fcn.0054bec0
add esp, 8
lea ecx, [ebp - 0x518]
push ecx
call fcn.0054ed29
add esp, 4
lea edx, [ebp - 0x118]
push edx
push 0x5b8968
call fcn.0054eb10
add esp, 8
mov dword [ebp - 0x51c], eax
cmp dword [ebp - 0x51c], 0xffffffff
je 0x53750e
push 0x200
push 0
lea eax, [ebp - 0x518]
push eax
call fcn.0054bfb0
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x5b896c
lea eax, [ebp - 0x518]
push eax
call fcn.0054c45b
add esp, 0x10
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x5b8974
lea eax, [ebp - 0x318]
push eax
call fcn.0054c45b
add esp, 0x10
movsx ecx, byte [ebp - 0x104]
cmp ecx, 0x2e
jne 0x5373dd
movsx edx, byte [ebp - 0x103]
cmp edx, 0x2e
jne 0x5373dd
movsx eax, byte [ebp - 0x102]
test eax, eax
je 0x537412
movsx ecx, byte [ebp - 0x104]
cmp ecx, 0x2e
jne 0x5373f4
movsx edx, byte [ebp - 0x103]
test edx, edx
je 0x537412
push 0
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0x518]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x520], eax
jmp 0x53742e
push 0
lea edx, [ebp - 0x318]
push edx
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x520], eax
cmp dword [ebp - 0x520], 0
jne 0x5374de
movsx ecx, byte [ebp - 0x104]
cmp ecx, 0x2e
je 0x53745e
movsx edx, byte [ebp - 0x103]
cmp edx, 0x2e
je 0x53745e
movsx eax, byte [ebp - 0x102]
test eax, eax
jne 0x537481
movsx ecx, byte [ebp - 0x104]
cmp ecx, 0x2e
je 0x537475
movsx edx, byte [ebp - 0x103]
test edx, edx
jne 0x537481
movsx eax, byte [ebp - 0x104]
cmp eax, 0x2e
je 0x5374dc
lea ecx, [ebp - 0x518]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x524], eax
mov edx, dword [ebp - 0x524]
and edx, 0x10
cmp edx, 0x10
jne 0x5374c9
push 0
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x518]
push edx
call fcn.005372f7
add esp, 8
jmp 0x5374dc
mov eax, dword [ebp - 0x51c]
push eax
call fcn.0054eca5
add esp, 4
xor al, al
jmp 0x53751f
jmp 0x5374f0
push 0x80
lea ecx, [ebp - 0x318]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x51c]
push eax
call fcn.0054ebdd
add esp, 8
test eax, eax
je 0x537366
mov ecx, dword [ebp - 0x51c]
push ecx
call fcn.0054eca5
add esp, 4
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x537523
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5721b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x444
lea ecx, [ebp - 0x12c]
call fcn.00545079
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str._s.
lea ecx, [ebp - 0x110]
push ecx
call fcn.0054c45b
add esp, 0xc
push 0
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x12c]
call fcn.0054513c
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x53767d
lea ecx, [ebp - 0x12c]
call fcn.0054535c
mov dword [ebp - 0x130], eax
lea ecx, [ebp - 0x12c]
call fcn.00545323
test eax, eax
jne 0x537678
push 0x104
lea eax, [ebp - 0x440]
push eax
lea ecx, [ebp - 0x12c]
call fcn.00545554
mov dword [ebp - 0x44c], eax
mov ecx, dword [ebp - 0x44c]
mov dword [ebp - 0x450], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x450]
call fcn.005612d1
push eax
lea edx, [ebp - 0x234]
push edx
call fcn.0054bec0
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x440]
call fcn.00560ea1
lea ecx, [ebp - 0x12c]
call fcn.00538eb0
test eax, eax
je 0x53764c
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x5b8984
lea edx, [ebp - 0x338]
push edx
call fcn.0054c45b
add esp, 0x10
lea eax, [ebp - 0x338]
push eax
call fcn.00537523
add esp, 4
jmp 0x537678
lea ecx, [ebp - 0x234]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s_s
lea eax, [ebp - 0x43c]
push eax
call fcn.0054c45b
add esp, 0x10
lea ecx, [ebp - 0x43c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x537585
lea ecx, [ebp - 0x12c]
call fcn.005450f2
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x5376ba
mov dword [ebp - 0x444], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.005450b6
mov eax, dword [ebp - 0x444]
jmp 0x5376dc
mov dword [ebp - 0x448], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.005450b6
mov eax, dword [ebp - 0x448]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x53773e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5721c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x2094
call fcn.0054cd40
mov dword [ebp - 4], 0
mov dword [ebp - 0x94], 0
push 0x2000
push 0
lea eax, [ebp - 0x2094]
push eax
call fcn.0054bfb0
add esp, 0xc
mov dword [ebp - 0x2098], 0
jmp 0x5377a2
mov ecx, dword [ebp - 0x2098]
add ecx, 1
mov dword [ebp - 0x2098], ecx
cmp dword [ebp - 0x2098], 0x21
jge 0x5377c7
push 4
push 0
mov edx, dword [ebp - 0x2098]
lea eax, [ebp + edx*4 - 0x90]
push eax
call fcn.0054bfb0
add esp, 0xc
jmp 0x537793
mov ecx, dword [ebp + 8]
push ecx
push 0x2000
lea edx, [ebp - 0x2094]
push edx
push 0x5dd118
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp + 0xc]
call fcn.00401440
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x537819
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x209c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00560ea1
mov eax, dword [ebp - 0x209c]
jmp 0x537946
mov edx, dword [ebp + 0x18]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x74]
push ecx
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x90]
push edx
push str.__________________________________________________________________________________________________________________________________________________________________________
lea eax, [ebp - 0x2094]
push eax
call fcn.0054c6fc
add esp, 0x90
push 4
push 0
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.0054bfb0
add esp, 0xc
mov dword [ebp - 0x2098], 0
jmp 0x5378ef
mov edx, dword [ebp - 0x2098]
add edx, 1
mov dword [ebp - 0x2098], edx
cmp dword [ebp - 0x2098], 0x21
jge 0x53791b
mov eax, dword [ebp - 0x2098]
lea ecx, [ebp + eax*4 - 0x90]
push ecx
call fcn.005353c2
add esp, 4
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 0x2098]
mov byte [edx], al
jmp 0x5378e0
mov dword [ebp - 0x94], 1
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x20a0], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00560ea1
mov eax, dword [ebp - 0x20a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x538a60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57220a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x38], 0
mov word [ebp - 0x20], 0
mov word [ebp - 0x14], 0
mov word [ebp - 0x1c], 0
mov word [ebp - 0x28], 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x538ace
push 0x5dd11c
mov ecx, dword [ebp + 8]
call fcn.00560f0f
mov edx, dword [ebp - 0x38]
or edx, 1
mov dword [ebp - 0x38], edx
mov eax, dword [ebp + 8]
jmp 0x538c3c
mov eax, dword [ebp - 0x10]
push eax
call fcn.0054cea3
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x538b01
push 0x5dd120
mov ecx, dword [ebp + 8]
call fcn.00560f0f
mov ecx, dword [ebp - 0x38]
or ecx, 1
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 8]
jmp 0x538c3c
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x538b44
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0054c543
add esp, 4
push 0x5dd124
mov ecx, dword [ebp + 8]
call fcn.00560f0f
mov ecx, dword [ebp - 0x38]
or ecx, 1
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 8]
jmp 0x538c3c
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x18]
push eax
push 0x5b8b10
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x538c17
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
shr eax, 0x10
mov word [ebp - 0x20], ax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
and edx, 0xffff
mov word [ebp - 0x14], dx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
mov word [ebp - 0x1c], cx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
and eax, 0xffff
mov word [ebp - 0x28], ax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0054c543
add esp, 4
lea ecx, [ebp - 0x34]
call fcn.004013e0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x1c]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x14]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x20]
and edx, 0xffff
push edx
push str._c__c__c__c
lea eax, [ebp - 0x34]
push eax
call fcn.0055ea77
add esp, 0x18
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00560c16
mov edx, dword [ebp - 0x38]
or edx, 1
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00560ea1
mov eax, dword [ebp + 8]
jmp 0x538c3c
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0054c543
add esp, 4
push 0x5dd128
mov ecx, dword [ebp + 8]
call fcn.00560f0f
mov ecx, dword [ebp - 0x38]
or ecx, 1
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x53a3f9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
cmp dword [ebp - 0x90], 4
jne 0x53a45b
cmp dword [ebp - 0x8c], 0x5a
je 0x53a459
mov dword [ebp - 0xa4], 1
jmp 0x53a48a
cmp dword [ebp - 0x90], 5
jne 0x53a48a
cmp dword [ebp - 0x8c], 0
jne 0x53a477
mov dword [ebp - 0x9c], 1
cmp dword [ebp - 0x8c], 1
jne 0x53a48a
mov dword [ebp - 0x98], 1
mov eax, dword [ebp - 0xa4]
mov esp, ebp
pop ebp
ret

Function at 0x53a494
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
cmp dword [ebp - 0x90], 4
jne 0x53a4f6
cmp dword [ebp - 0x8c], 0x5a
je 0x53a4f4
mov dword [ebp - 0xa4], 1
jmp 0x53a525
cmp dword [ebp - 0x90], 5
jne 0x53a525
cmp dword [ebp - 0x8c], 0
jne 0x53a512
mov dword [ebp - 0x9c], 1
cmp dword [ebp - 0x8c], 1
jne 0x53a525
mov dword [ebp - 0x98], 1
mov eax, dword [ebp - 0x9c]
mov esp, ebp
pop ebp
ret

Function at 0x53a5e9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
cmp dword [0x5de844], 0
je 0x53a627
mov edi, 0x5b8b50
lea edx, [ebp - 0x100]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x53a64f
mov edi, 0x5b8b7c
lea edx, [ebp - 0x100]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.0054bed0
add esp, 8
lea eax, [ebp - 0x108]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x100]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x108], 0xffffffff
je 0x53a6cf
mov dword [ebp - 0x104], 0xff
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
push str.CreateFileName
mov ecx, dword [ebp - 0x108]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10c], eax
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x53a6d5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push esi
push edi
mov dword [ebp - 4], 0
cmp dword [0x5de844], 0
je 0x53a71a
mov edi, str.SystemCurrentControlSetServicesClass_
lea edx, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x53a742
mov edi, str.SYSTEMCurrentControlSetControlClass_
lea edx, [ebp - 0x104]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov eax, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.0054bed0
add esp, 8
lea eax, [ebp - 0x14c]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x104]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x53a7f0
mov dword [ebp - 0x148], 0xff
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0x144]
push eax
push 0
push 0
push str.ProviderName
mov ecx, dword [ebp - 0x14c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x14c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsx eax, byte [ebp - 0x144]
cmp eax, 0x53
jne 0x53a7f0
movsx ecx, byte [ebp - 0x143]
cmp ecx, 0x4d
jne 0x53a7f0
movsx edx, byte [ebp - 0x142]
cmp edx, 0x49
jne 0x53a7f0
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x53e350
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x84
test eax, eax
push ebx
push esi
push edi
je 0x53e489
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x20]
mov ebx, dword [esp + 0xb4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov edx, ebx
mov dword [esp + 0x10], eax
mov ecx, ebx
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x18], eax
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [esp + 0x1c], al
mov eax, ebx
shr edx, 0x10
mov byte [esp + 0x2a], dl
mov edx, dword [esp + 0xb8]
shr ecx, 8
shr eax, 0x18
mov byte [esp + 0x29], cl
mov cl, byte [esp + 0xbc]
mov byte [esp + 0x2b], al
mov eax, dword [edx]
mov byte [esp + 0x2d], cl
mov dword [esp + 0x2f], eax
mov ecx, dword [edx + 4]
push 0
mov dword [esp + 0x37], ecx
mov byte [esp + 0x24], 0x55
mov eax, dword [edx + 8]
mov byte [esp + 0x25], 0x53
mov dword [esp + 0x3b], eax
lea eax, [esp + 0x24]
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x1f
push eax
push esi
mov byte [esp + 0x36], 0x42
mov byte [esp + 0x37], 0x43
mov byte [esp + 0x3a], 1
mov byte [esp + 0x3b], 0x2c
mov byte [esp + 0x3c], bl
mov byte [esp + 0x42], 0x10
mov dword [esp + 0x4f], ecx
call edi
test eax, eax
jne 0x53e429
pop edi
pop esi
pop ebx
add esp, 0x84
ret
mov edx, dword [esp + 0xb0]
lea ecx, [esp + 0xc]
push 0
push ecx
push ebx
push edx
push esi
call edi
test eax, eax
jne 0x53e44a
pop edi
pop esi
pop ebx
add esp, 0x84
ret
mov edx, dword [esp + 0x98]
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x18]
push 0xd
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x53e474
pop edi
pop esi
pop ebx
add esp, 0x84
ret
mov cl, byte [esp + 0x1c]
xor eax, eax
test cl, cl
pop edi
pop esi
sete al
pop ebx
add esp, 0x84
ret
mov edx, dword [esp + 0xc0]
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xb4]
mov byte [esp + 0x43], al
mov al, byte [esp + 0xbc]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0xb8]
mov byte [esp + 0x45], al
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x50], edx
mov edx, dword [ecx]
mov ebx, dword [esp + 0xac]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], edx
mov eax, dword [ecx + 4]
xor edi, edi
mov dword [esp + 0x60], eax
cmp ebx, 0xffffffff
mov edx, dword [ecx + 8]
mov word [esp + 0x40], 0x2c
mov byte [esp + 0x44], 1
mov byte [esp + 0x46], 0x10
mov eax, dword [ecx + 0xc]
mov byte [esp + 0x47], 0
mov byte [esp + 0x48], 0
mov dword [esp + 0x58], 0x30
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0xc], 0
je 0x53e55a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor esi, esi
test edi, edi
jne 0x53e552
lea ecx, [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x4c]
push 0x50
push edx
lea eax, [esp + 0x54]
push 0x50
push eax
push 0x4d014
push ebx
call ebp
inc esi
mov edi, eax
cmp esi, 8
jl 0x53e52a
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x84
ret
Function at 0x53e9d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x84
push ebx
push ebp
mov ebp, dword [esp + 0x90]
push esi
cmp ebp, 0xffffffff
je 0x53eb07
mov esi, dword [esp + 0x98]
cmp esi, 0xffffffff
je 0x53eb07
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edx, edx
xor ebx, ebx
stosb byte es:[edi], al
mov dword [esp + 0x24], edx
xor eax, eax
mov byte [esp + 0x24], 0x12
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov dword [esp + 0x43], ecx
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x4b], edx
mov dword [esp + 0x4f], edx
push ebx
push ecx
lea edx, [esp + 0x3c]
mov byte [esp + 0x30], 0x24
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x30]
push 0x1f
push edx
push esi
mov byte [esp + 0x48], 0x55
mov byte [esp + 0x49], 0x53
mov byte [esp + 0x4a], 0x42
mov byte [esp + 0x4b], 0x43
mov byte [esp + 0x4e], bl
mov byte [esp + 0x4f], 5
mov byte [esp + 0x50], 0x24
mov byte [esp + 0x51], bl
mov byte [esp + 0x52], bl
mov byte [esp + 0x53], bl
mov byte [esp + 0x55], bl
mov byte [esp + 0x54], 0x80
mov byte [esp + 0x56], 0x10
mov dword [esp + 0x5b], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop edi
je 0x53eb07
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0xc]
push ebx
push eax
lea ecx, [esp + 0x58]
push 0x24
push ecx
push ebp
call esi
test eax, eax
je 0x53eb07
lea edx, [esp + 0xc]
push ebx
push edx
lea eax, [esp + 0x18]
push 0xd
push eax
push ebp
call esi
test eax, eax
je 0x53eb07
cmp byte [esp + 0x1c], bl
jne 0x53eb07
cmp byte [esp + 0x73], 0x36
jne 0x53eae1
cmp byte [esp + 0x72], 0x37
je 0x53eaf6
cmp byte [esp + 0x55], 0x73
jne 0x53eb07
cmp byte [esp + 0x56], 0x6d
jne 0x53eb07
cmp byte [esp + 0x57], 0x69
jne 0x53eb07
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x84
ret 8
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x84
ret 8
Function at 0x542290
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x104
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call fcn.0053534c
mov edi, str.UFD_MPOSEHub.ini
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x542300
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.00541e70
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x55539d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5553bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005501ec
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5553e0
test byte [esp + 8], 2
je 0x5553e0
call fcn.0055025f
mov dword [eax], 0xd
call fcn.00550268
mov dword [eax], 5
jmp 0x5553b9
xor eax, eax
ret
Function at 0x55dc40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0054cd40
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x55dd0b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x55dd0b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x55dcbe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x55dcc9
or bh, 8
and edi, 0x8000000
je 0x55dce4
mov eax, dword [0x5e209c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x55dd0b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret