joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47baa7
Capabilities:
Write file on windows

Disassembly:
push 0x174
mov eax, 0x4c0bf8
call fcn.004a1fe8
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 4], ebx
cmp byte [0x509b1c], bl
jne 0x47bb01
lea eax, [ebp - 0x148]
push eax
mov dword [ebp - 0x148], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47bb3c
cmp dword [ebp - 0x138], 2
mov byte [0x509b1c], 1
sete byte [0x5049b0]
cmp byte [0x5049b0], bl
je 0x47bb3c
cmp dword [edi + 0x18], 8
jb 0x47bb14
mov edi, dword [edi + 4]
jmp 0x47bb17
add edi, 4
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea esi, [ebp - 0x158]
call fcn.004125fe
jmp 0x47bbad
lea eax, [ebp - 0x160]
push eax
mov eax, edi
call fcn.004373cb
mov esi, eax
lea eax, [ebp - 0x180]
push eax
mov eax, edi
call fcn.004373ab
push dword [esi + 4]
push dword [esi]
lea esi, [ebp - 0x2c]
push dword [eax + 4]
push dword [eax]
call fcn.004370fd
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x47bb7c
lea eax, [ebp - 0x28]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
lea esi, [ebp - 0x158]
call fcn.004125fe
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004051d8
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.msi.dll_MsiRecordGetStringW
mov dword [ebp - 0x15c], eax
mov esi, 0xc800
push esi
lea eax, [ebp - 0x178]
push eax
xor edi, edi
call fcn.0044d8c0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
mov dword [ebp - 0x150], esi
jne 0x47bbef
call fcn.0049d32a
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x16c]
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.msi.dll_MsiRecordSetStringA
test eax, eax
jne 0x47bc4c
mov eax, dword [ebp - 0x168]
sub eax, dword [ebp - 0x16c]
jne 0x47bc1e
call fcn.0049d32a
push ebx
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x150]
push dword [ebp - 0x16c]
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x150]
cmp dword [ebp - 0x150], ebx
jne 0x47bbd6
cmp dword [ebp - 0x15c], edi
sete byte [ebp - 0x149]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x178]
push eax
call fcn.0044cce0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x158], ebx
je 0x47bc86
push dword [ebp - 0x158]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x158], ebx
mov al, byte [ebp - 0x149]
call fcn.004a206b
ret
Function at 0x486d6a
Capabilities:
Create pipe

Disassembly:
push 0x24
mov eax, 0x4c01b2
call fcn.004a1fe8
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp byte [esi + 0x1c], bl
je 0x486d8a
mov al, 1
call fcn.004a206b
ret 4
push 0xffffffffffffffff
push ebx
mov byte [esi + 0x1d], cl
push eax
lea ecx, [esi + 0x20]
call fcn.00401896
lea edi, [ebp - 0x2c]
mov ecx, esi
call fcn.004871cb
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1d], bl
je 0x486ddc
cmp dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x28]
jae 0x486db7
lea ecx, [ebp - 0x28]
push ebx
push 0x1388
mov eax, 0x400
push eax
push eax
push 0xff
push 6
push 3
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp byte [esi + 0x1d], bl
jne 0x486e1c
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x486de8
lea eax, [ebp - 0x28]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
jne 0x486e1c
mov byte [ebp - 0x2d], bl
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040115a
mov al, byte [ebp - 0x2d]
jmp 0x486d82
mov byte [esi + 0x1c], 1
mov byte [ebp - 0x2d], 1
jmp 0x486e05
Function at 0x486f9e
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push 0x3c
mov eax, 0x4bd56d
call fcn.004a1fe8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], ebx
cmp byte [ebp + 0x14], bl
jne 0x486fee
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x486fdb
xor edi, edi
inc edi
mov esi, edi
jmp 0x486ff1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub esi, 0x217
neg esi
sbb esi, esi
inc esi
xor edi, edi
inc edi
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 7
call fcn.004011e0
mov dword [ebp - 4], edi
cmp esi, ebx
jne 0x487022
cmp byte [ebp + 0x14], bl
jne 0x487022
mov ecx, dword [ebp - 0x30]
call fcn.00405d95
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], bl
push ebx
push edi
jmp 0x4870d4
mov dword [ebp - 0x44], edi
mov edi, dword [ebp - 0x3c]
mov dword [ebp - 0x38], ebx
add edi, 0x40
push ebx
lea eax, [ebp - 0x48]
push eax
push 0x400
push ebx
mov ecx, edi
call fcn.00403b1f
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jne 0x48705e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x4870a9
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x38], eax
shr eax, 1
push eax
mov ecx, edi
call fcn.00403b1f
xor ecx, ecx
mov word [eax], cx
cmp dword [edi + 0x18], 8
jb 0x48707e
mov esi, dword [edi + 4]
jmp 0x487081
lea esi, [edi + 4]
push esi
call fcn.0049cf74
pop ecx
push eax
mov eax, esi
lea esi, [ebp - 0x2c]
call fcn.00403fb8
lea eax, [ebp - 0x44]
push eax
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x44], ebx
ja 0x48702e
cmp dword [ebp - 0x3c], ebx
je 0x4870c1
cmp dword [ebp - 0x38], ebx
je 0x4870c1
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.00405e53
jmp 0x4870c9
mov ecx, dword [ebp - 0x30]
call fcn.00405d95
xor eax, eax
inc eax
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], bl
push ebx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040115a
mov eax, dword [ebp - 0x30]
call fcn.004a206b
ret 0x10

Function at 0x4870e7
Capabilities:
Write file on windows

Disassembly:
push 4
mov eax, 0x4bbaa2
call fcn.004a1f7e
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0xc]
xor edi, edi
cmp dword [ebp + 0x10], 0xffffffff
mov dword [ebp - 0x10], edi
jne 0x48710d
mov ecx, ebx
call fcn.00405d95
jmp 0x48714b
mov ecx, dword [eax + 0x14]
add ecx, ecx
cmp dword [eax + 0x18], 8
jb 0x48711d
mov eax, dword [eax + 4]
jmp 0x487120
add eax, 4
push edi
lea edx, [ebp + 0x14]
push edx
push ecx
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
jne 0x48713d
mov ecx, ebx
call fcn.00405d95
jmp 0x48714b
push 1
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.00486f9e
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 1
mov eax, ebx
call fcn.004a2057
ret 0x10
Function at 0x48715f
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [eax + 0x14]
add ecx, ecx
cmp dword [eax + 0x18], 8
jb 0x487170
mov eax, dword [eax + 4]
jmp 0x487173
add eax, 4
push 0
lea edx, [esp + 4]
push edx
push ecx
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
pop ecx
ret
Function at 0x490338
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x4bfa79
call fcn.004a1fe8
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x104
lea eax, [ebp - 0x21c]
mov esi, ecx
push eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x21c], cx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x240]
call fcn.00401bf3
xor edi, edi
inc edi
mov dword [ebp - 4], edi
push esi
lea ecx, [ebp - 0x240]
call fcn.0044b620
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x240]
call fcn.0040115a
push str.msiexec.exe
lea ecx, [ebp - 0x240]
call fcn.00401bf3
mov dword [ebp - 4], 2
lea eax, [ebp - 0x240]
push eax
call fcn.00413433
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp - 0x240]
call fcn.0040115a
mov eax, esi
call fcn.004a206b
ret
Function at 0x490fe3
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x90
mov eax, 0x4bf9b1
call fcn.004a1fe8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], ecx
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x80], eax
call fcn.00401bf3
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0044b620
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.0040115a
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x9c]
call fcn.0044b900
mov byte [ebp - 4], 3
cmp dword [eax + 0x18], 8
jb 0x49104b
mov eax, dword [eax + 4]
jmp 0x49104e
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.0040115a
cmp ebx, 3
jne 0x491077
test dword [ebp + 0xc], 0x20000
jne 0x4910c5
cmp ebx, 2
jne 0x491085
test dword [ebp + 0xc], 0x10000
jne 0x4910c5
cmp ebx, 4
jne 0x491093
test dword [ebp + 0xc], 0x40000
jne 0x4910c5
cmp ebx, 5
jne 0x4910a1
test dword [ebp + 0xc], 0x80000
jne 0x4910c5
cmp ebx, 6
jne 0x4910af
test dword [ebp + 0xc], reloc.USER32.dll_MonitorFromWindow
jne 0x4910c5
cmp ebx, 2
jne 0x491171
test dword [ebp + 0xc], 0x200000
je 0x491171
lea eax, [ebp - 0x2c]
push eax
lea esi, [ebp - 0x9c]
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
call fcn.0044b900
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x4910ef
mov eax, dword [eax + 4]
jmp 0x4910f2
add eax, 4
push edi
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.0040115a
push dword [ebp - 0x80]
lea ecx, [ebp - 0x9c]
call fcn.00401bf3
mov byte [ebp - 4], 5
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x9c]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00485ad2
mov byte [ebp - 4], 7
push edi
push 1
lea ecx, [ebp - 0x9c]
call fcn.0040115a
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x68]
push eax
call fcn.004922f3
mov byte [ebp - 4], 2
lea eax, [ebp - 0x68]
push eax
call fcn.0042769f
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x2c]
push eax
call fcn.004131b5
call fcn.004a206b
ret 0xc
Function at 0x493922
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c3905
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x502344]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
push str.AIEXTERNALUI
lea ecx, [esp + 0x30]
call fcn.00401bf3
xor ebx, ebx
mov dword [esp + 0x70], ebx
mov eax, dword [edi + 0xc4]
mov ecx, dword [eax + 0x5c]
lea esi, [esp + 0x48]
call fcn.0043f240
mov byte [esp + 0x70], 1
mov ecx, dword [edi + 0xc8]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x30]
push eax
call dword [edx + 0xc]
mov byte [esp + 0x70], bl
push ebx
push 1
mov ecx, esi
call fcn.0040115a
or dword [esp + 0x70], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.0040115a
mov eax, dword [edi + 0xc4]
mov ecx, dword [eax + 0xac]
add eax, 0x90
mov dword [esp + 0x28], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x1c]
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4939e5
cmp eax, dword [esp + 0x24]
je 0x4939ea
call fcn.0049d32a
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x20], eax
je 0x493a25
lea esi, [esp + 0x1c]
call fcn.0040dba8
mov dword [esp + 0x18], eax
call fcn.0040dba8
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + 0xc8]
mov edx, dword [ecx]
add esi, 0x1c
push esi
push eax
call dword [edx + 0xc]
lea esi, [esp + 0x1c]
call fcn.00486b72
jmp 0x4939d7
mov esi, str.PRIMARYFOLDER
push esi
lea ecx, [esp + 0x30]
call fcn.00401bf3
mov dword [esp + 0x70], 2
mov ecx, dword [edi + 0xc8]
mov eax, dword [ecx]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x4c]
push edx
call dword [eax]
mov byte [esp + 0x70], 3
cmp dword [eax + 0x14], ebx
sete byte [esp + 0x17]
mov byte [esp + 0x70], 2
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.0040115a
or dword [esp + 0x70], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.0040115a
cmp byte [esp + 0x17], bl
je 0x493ae3
push str.APPDIR
lea ecx, [esp + 0x4c]
call fcn.00401bf3
mov dword [esp + 0x70], 4
push esi
lea ecx, [esp + 0x30]
call fcn.00401bf3
mov byte [esp + 0x70], 5
mov edi, dword [edi + 0xc8]
mov eax, dword [edi]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov byte [esp + 0x70], 4
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.0040115a
or dword [esp + 0x70], 0xffffffff
push ebx
push 1
lea ecx, [esp + 0x50]
call fcn.0040115a
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49512d
Capabilities:
Get common file path

Disassembly:
push 0x264
mov eax, 0x4c381a
call fcn.004a1fe8
push 0x104
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
mov word [ebp + eax*2 - 0x21c], cx
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x270]
call fcn.00401bf3
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x270]
call fcn.0044b620
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x270]
call fcn.0040115a
push str.msi.dll
lea ecx, [ebp - 0x270]
call fcn.00401bf3
mov byte [ebp - 4], 3
lea eax, [ebp - 0x270]
push eax
lea esi, [ebp - 0x238]
call fcn.00413433
mov byte [ebp - 4], 2
push edi
push 1
lea ecx, [ebp - 0x270]
call fcn.0040115a
lea eax, [ebp - 0x254]
push eax
call fcn.0047ce3b
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x244]
sub eax, dword [ebp - 0x248]
sar eax, 1
cmp dword [ebp - 0x220], 8
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp - 0x234]
jae 0x49520a
lea eax, [ebp - 0x234]
push edi
push edi
lea ecx, [ebp - 0x23c]
push ecx
push edi
push eax
call sub.msi.dll_MsiMessageBoxW
mov eax, dword [ebp - 0x23c]
inc eax
lea ecx, [ebp - 0x254]
call fcn.0044ce00
mov eax, dword [ebp - 0x244]
sub eax, dword [ebp - 0x248]
sar eax, 1
jne 0x495241
call fcn.0049d32a
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x495256
lea eax, [ebp - 0x234]
push edi
push edi
lea ecx, [ebp - 0x23c]
push ecx
push dword [ebp - 0x248]
push eax
call sub.msi.dll_MsiMessageBoxW
xor ebx, ebx
cmp edi, dword [ebp - 0x23c]
jae 0x49529b
lea esi, [ebp - 0x254]
call fcn.0044cd50
cmp word [eax], 0x2e
je 0x495295
call fcn.0044cd50
imul ebx, ebx, 0xa
movzx eax, word [eax]
lea ebx, [ebx + eax - 0x30]
inc edi
cmp edi, 3
jb 0x49526d
imul ebx, ebx, 0xa
mov byte [ebp - 4], 2
lea eax, [ebp - 0x254]
push eax
call fcn.0044cce0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x238]
push eax
call fcn.004131b5
mov eax, ebx
call fcn.004a206b
ret
Function at 0x497aac
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bf81f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x502344]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0xec]
mov dword [esp + 0x1c], eax
inc dword [eax]
mov byte [esp + 0x20], 0
and dword [esp + 0x38], 0
lea edi, [ecx + 0xf0]
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x24]
call fcn.00427a8a
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov ebx, dword [edi + 0x10]
lea esi, [esp + 0x24]
call fcn.00427a8a
mov esi, dword [esp + 0x14]
test esi, esi
je 0x497b2d
cmp esi, dword [esp + 0x24]
je 0x497b32
call fcn.0049d32a
mov ebx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x28]
je 0x497b7d
test esi, esi
jne 0x497b75
call fcn.0049d32a
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x497b51
call fcn.0049d32a
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push ebx
call dword [eax]
test esi, esi
jne 0x497b79
call fcn.0049d32a
cmp ebx, dword [esi + 0x10]
jb 0x497b6c
call fcn.0049d32a
add ebx, 0x4c
mov dword [esp + 0x18], ebx
jmp 0x497b13
mov eax, dword [esi]
jmp 0x497b47
mov esi, dword [esi]
jmp 0x497b62
mov eax, edi
call fcn.00497da3
or dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x1c]
dec dword [eax]
mov byte [esp + 0x20], 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x499b92
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x4be1fc
call fcn.004a1f7e
lea ecx, [ebp - 0x10]
call fcn.00409513
and dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x499c03
lea ecx, [eax - 1]
test ecx, ecx
jl 0x499bf9
mov eax, esi
call fcn.0044de70
movzx eax, ax
cmp ax, 0x5c
jne 0x499c03
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.0042df91
mov byte [ebp - 4], 1
lea edi, [ebp - 0x10]
call fcn.00438b14
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004058e3
jmp 0x499c0d
push 0x80070057
call fcn.00405c7a
mov eax, esi
lea edi, [ebp - 0x10]
call fcn.00438b14
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov ecx, dword [esi]
cmp eax, dword [ecx - 0xc]
jge 0x499c60
push 0x5c
call fcn.00438b7f
lea ecx, [ebp - 0x14]
push ecx
push esi
mov ecx, eax
call fcn.0042df91
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x499c54
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00499b92
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004058e3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004058e3
call fcn.004a2057
ret
Function at 0x499c72
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x4bf705
call fcn.004a1f7e
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x499d05
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x10]
call fcn.00409513
and dword [ebp - 4], 0
push 0x5c
call fcn.00438b7f
cmp eax, 0xffffffff
je 0x499ccc
lea ecx, [ebp - 0x14]
push ecx
push esi
mov ecx, eax
call fcn.0042df91
mov byte [ebp - 4], 1
lea edi, [ebp - 0x10]
call fcn.00438b14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004058e3
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x499cf9
lea ecx, [ebp - 0x14]
call fcn.00409513
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00499b92
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004058e3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004058e3
call fcn.004a2057
ret

Function at 0x49ab40
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x49b780
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x504d14], 0
push esi
jne 0x49b6f3
call fcn.0049b619
test eax, eax
je 0x49b736
mov eax, dword [0x504d14]
cmp eax, 1
jne 0x49b714
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x49b736
pop esi
ret
push eax
call dword [0x504d1c]
test eax, eax
jne 0x49b77e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x49b73a
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x504d14]
call dword [0x504d1c]
mov edi, eax
test edi, edi
je 0x49b75f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x49b77b
mov edi, esi
add esi, 0xff0
push edi
push dword [0x504d14]
call dword [0x504d18]
add edi, 0x10
cmp edi, esi
jb 0x49b767
mov eax, edi
pop edi
pop esi
ret
jmp 0x49b6e0

Function at 0x49cdcb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x502344]
jne 0x49cdd5
repz ret
jmp fcn.004a4eec
Function at 0x4aff7a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004a05ac
and dword [ebp - 4], 0
cmp dword [0x505bc4], 0
mov ebx, eax
jne 0x4b002b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b00dc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4b00dc
push eax
call fcn.004a053a
mov dword [esp], 0x4d17f8
push edi
mov dword [0x505bc4], eax
call esi
push eax
call fcn.004a053a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x505bc8], eax
call esi
push eax
call fcn.004a053a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x505bcc], eax
call esi
push eax
call fcn.004a053a
pop ecx
mov dword [0x505bd4], eax
test eax, eax
je 0x4b002b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a053a
pop ecx
mov dword [0x505bd0], eax
mov eax, dword [0x505bd0]
cmp eax, ebx
je 0x4b0083
cmp dword [0x505bd4], ebx
je 0x4b0083
push eax
call fcn.004a05b5
push dword [0x505bd4]
mov esi, eax
call fcn.004a05b5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4b0083
test edi, edi
je 0x4b0083
call esi
test eax, eax
je 0x4b007a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b007a
test byte [ebp - 0xc], 1
jne 0x4b0083
or dword [ebp + 0x10], 0x200000
jmp 0x4b00bc
mov eax, dword [0x505bc8]
cmp eax, ebx
je 0x4b00bc
push eax
call fcn.004a05b5
pop ecx
test eax, eax
je 0x4b00bc
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4b00bc
mov eax, dword [0x505bcc]
cmp eax, ebx
je 0x4b00bc
push eax
call fcn.004a05b5
pop ecx
test eax, eax
je 0x4b00bc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x505bc4]
call fcn.004a05b5
pop ecx
test eax, eax
je 0x4b00dc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b00de
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b6ea7
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movsx ecx, ax
shr eax, 0x10
cwde
push ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [eax], 0
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], ecx
jmp 0x4b6f0f
mov ebx, dword [edi]
xor eax, eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x38]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4b6f0c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x74]
test al, al
je 0x4b6f0c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x7c]
test al, al
jne 0x4b6f2a
mov edi, dword [edi + 8]
test edi, edi
jne 0x4b6ec7
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x4b6f22
mov eax, dword [ecx]
call dword [eax + 0x54]
and dword [esi + 0x30], edi
pop edi
xor eax, eax
pop ebx
leave
ret 4
mov ecx, dword [esi + 0x30]
cmp ebx, ecx
je 0x4b6f3d
test ecx, ecx
je 0x4b6f3a
mov eax, dword [ecx]
call dword [eax + 0x54]
mov dword [esi + 0x30], ebx
push 1
xor edi, edi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jbe 0x4b6f52
inc edi
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ecx]
push edx
call dword [eax + 0x50]
mov eax, dword [esi + 4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x10
mov dword [ebp - 0x34], 2
call dword [sym.imp.USER32.dll_TrackMouseEvent]
jmp 0x4b6f22