joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456de8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x456f93
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x456f74
mov dl, 1
mov eax, dword [0x412c7c]
call fcn.00403628
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043e4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x456f63
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00444b08
test al, al
je 0x456f56
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x456fa4
lea eax, [ebp - 0x254]
call fcn.00409464
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x456f56
xor eax, eax
push ebp
push 0x456f4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x456fdc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x456f38
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404654
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x456f38
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456f56
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x456e59
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416ff4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456f9a
lea eax, [ebp - 0x260]
call fcn.004043e4
ret

Function at 0x4578dc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x48ebe4]
cmp byte [eax + 0xa5], 0
jne 0x45794d
cmp dword [0x48ebfc], 0
jne 0x45790e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x457898
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x48ebfc], eax
cmp dword [0x48ebf8], 0
jne 0x457929
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x48ebf8], eax
cmp dword [0x48ec00], 0
jne 0x45794d
push esp
push 0
push 0
push 0x45783c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x48ec00], eax
pop edx
ret
Function at 0x457fe0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48ebe4]
cmp dword [eax + 0x30], 0
je 0x45808a
cmp dword [ebx + 0x94], 0
jne 0x458084
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x457f70
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458084
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45804a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458084
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414bc8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458059
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458be8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x458c1d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004044d4
jmp 0x458c2a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404438
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x459d64
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459da5
mov eax, esi
call fcn.004400f0
test al, al
je 0x459da5
mov eax, dword [ebx + 0x84]
call fcn.0043fdec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459da5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043fdec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45d490
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45d4be
mov eax, ebx
call fcn.0045df44
cmp dword [ebx + 0x40], 0
je 0x45d4b7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45d52f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45d521
cmp dword [ebx + 8], 0
je 0x45d4e0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45d4f2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45d521
cmp dword [ebx + 8], 0
je 0x45d4d3
cmp eax, 3
je 0x45d505
dec eax
jne 0x45d4d3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45d4d3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45d4d3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45d54d
cmp dword [ebx + 0x14], 0xcc
je 0x45d54d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045d558
pop ebx
ret
Function at 0x46ff80
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4700a1
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
mov edx, dword [0x48dd40]
mov dword [edx], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [0x48dd40]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4700b8
call fcn.004094fc
mov eax, dword [ebp - 4]
call fcn.00484870
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x48db44]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, dword [0x48dd10]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x20]
mov ecx, 1
mov eax, 0x4700d4
call fcn.004094fc
mov eax, dword [ebp - 0x10]
call fcn.00484870
call sub.kernel32.dll_GetCurrentThreadId_1
mov esi, eax
push esi
push 0
push 0x46fca8
push 5
call sub.user32.dll_SetWindowsHookExA
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4700f4
call fcn.004094fc
mov eax, dword [ebp - 0x24]
call fcn.00484870
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x47010c
call fcn.004094fc
mov eax, dword [ebp - 0x28]
call fcn.00484870
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4700a8
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00404408
lea eax, [ebp - 0x10]
call fcn.004043e4
lea eax, [ebp - 4]
call fcn.004043e4
ret

Function at 0x476a9c
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x4c]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x476aea
mov edx, dword [ebx + 0x48]
cmp dword [edx + 0x140], 0
je 0x476aea
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 0x140]
mov eax, dword [eax + 0x14]
jmp 0x476afa
mov edx, dword [ebx + 0x48]
mov edx, dword [edx + 0x13c]
test edx, edx
je 0x476afa
mov eax, dword [edx + 0x14]
test eax, eax
je 0x476b13
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.0047449c
jmp 0x476b56
mov edx, dword [edi + 0x10]
mov eax, dword [ebx + 0x34]
call fcn.0041f3ac
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 0x14]
call fcn.0041eb10
mov esi, eax
mov eax, dword [ebx + 0x48]
mov edx, dword [eax + 0xa8]
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 0x10]
call fcn.0041e838
mov edx, esp
mov eax, dword [ebx + 0x34]
call fcn.0041f0a8
mov eax, dword [ebx + 0x34]
mov eax, dword [eax + 0x10]
mov edx, esi
call fcn.0041e838
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x47b970
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov edi, edx
mov ebp, eax
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00450270
mov ebx, eax
mov dx, word [edi + 4]
mov eax, ebp
call fcn.0047b81c
mov esi, eax
test esi, esi
je 0x47b9bd
mov al, byte [0x47b9d0]
cmp al, bl
jne 0x47b9bd
mov edx, esi
mov eax, ebp
call fcn.0047b7c4
mov dword [edi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x47b9c5
mov edx, edi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x47ea0c
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00408fe4
add esp, 0x3ec
pop ebx
ret

Function at 0x47fdd8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [ebx + 0xec]
mov eax, dword [eax + 0x34]
call fcn.0044b348
mov edi, eax
dec edi
test edi, edi
jl 0x47fe8b
inc edi
xor esi, esi
mov eax, dword [ebx + 0xec]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0044b358
mov eax, dword [eax + 0xc]
sub eax, 1
jb 0x47fe22
je 0x47fe43
dec eax
je 0x47fe64
jmp 0x47fe83
mov eax, dword [ebx + 0xec]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0044b358
cmp byte [ebx + 0x15c], 0
setne dl
call fcn.0044b274
jmp 0x47fe83
mov eax, dword [ebx + 0xec]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0044b358
cmp byte [ebx + 0x15c], 1
setne dl
call fcn.0044b274
jmp 0x47fe83
mov eax, dword [ebx + 0xec]
mov eax, dword [eax + 0x34]
mov edx, esi
call fcn.0044b358
cmp byte [ebx + 0x15c], 2
setne dl
call fcn.0044b274
inc esi
dec edi
jne 0x47fe03
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x88]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x8c]
cdq
cmp edx, dword [esp + 4]
jne 0x47feb0
cmp eax, dword [esp]
pop edx
pop eax
jae 0x47ff11
jmp 0x47feb4
pop edx
pop eax
jge 0x47ff11
mov esi, 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x88], eax
mov eax, dword [ebx + 0x130]
test byte [eax + 0x50], 2
je 0x47feed
cmp byte [ebx + 0x159], 2
je 0x47feed
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov eax, dword [ebx + 0xec]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x47ff2d
push 0
mov eax, dword [ebx + 0x124]
push eax
push 0
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push eax
push esi
mov eax, dword [ebx + 0xfc]
push eax
call sub.user32.dll_TrackPopupMenu
jmp 0x47ff2d
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.0042b680
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x124]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4890d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48921e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x88], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x489203
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00408fe4
mov dl, 1
mov eax, dword [0x46e3c8]
call fcn.0046e420
mov edx, dword [ebp - 4]
mov dword [edx + 0x80], eax
mov dl, 1
mov eax, dword [0x412f6c]
call fcn.00403628
mov edx, dword [ebp - 4]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x84]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.0046e49c
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x489200
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
mov edx, 0x489234
call fcn.0046e7e8
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004046f0
xor eax, eax
push ebp
push 0x4891f9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
mov edx, dword [ebp - 0xc]
call fcn.004177a0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0048923c
mov eax, dword [ebp - 0xc]
call fcn.00408bcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489200
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x80]
call fcn.00403658
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x40]
call fcn.00403658
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489225
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404408
ret
Function at 0x48a524
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404894
xor eax, eax
push ebp
push 0x48a636
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0xff
call fcn.00402a28
mov ebx, eax
mov eax, 0xff
call fcn.00402a28
mov esi, eax
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408e74
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00408e74
mov dword [ebp - 0x50], 0x44
xor eax, eax
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], esi
xor eax, eax
mov dword [ebp - 0x28], eax
mov word [ebp - 0x1e], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], 1
mov word [ebp - 0x20], 0xa
xor eax, eax
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
xor eax, eax
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x48a60e
mov eax, dword [ebp - 0x58]
push eax
push 0
push 0x400
call sub.kernel32.dll_OpenProcess
mov edi, eax
mov eax, dword [0x48dcc4]
mov eax, dword [eax]
call fcn.00458e98
lea eax, [ebp - 0xc]
push eax
push edi
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0xc], 0x103
je 0x48a5e9
mov byte [ebp - 5], 1
jmp 0x48a612
mov byte [ebp - 5], 0
mov eax, ebx
call fcn.00402a58
mov eax, esi
call fcn.00402a58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a63d
lea eax, [ebp - 4]
call fcn.004043e4
ret
Function at 0x409944
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4099f8
jmp 0x4099ed
cmp dword [esi + 0x10], 0x1000
jne 0x4099d9
test byte [esi + 0x15], 1
jne 0x4099d9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409998
cmp eax, 2
je 0x409998
cmp eax, 0x10
je 0x409998
cmp eax, 0x20
jne 0x4099ad
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4099ad
mov bl, 1
xor ebp, ebp
jmp 0x4099be
mov eax, dword [esi]
add eax, ebp
call fcn.0040993c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4099b1
test bl, bl
je 0x4099d9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4099f8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409970
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5d8ab0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5d87dc
add ecx, 0x8aa72426
call fcn.005d8ae8
mov ebx, ebx
xor dword [edi], eax
add ecx, 0xdd727801
add edi, 2
and ebx, ebx
cmp edi, edx
jl fcn.005d8ab0
dec ecx
mov ebx, 0x9c3143d7
dec ecx
ret
Function at 0x40ecd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ca0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00461506
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40ed52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045f41d
mov eax, dword [eax]
push 0x49d1e0
push eax
call fcn.004522a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461791
test bl, bl
je 0x40ed52
push 0x49d1e0
lea ecx, [esp + 0xc]
call fcn.00461b21
push 0x4a0d5c
lea ecx, [esp + 0xc]
call fcn.00461b21
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40ed8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461791
jmp 0x40ee59
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40ee12
lea edx, [esp + 0x7c]
push 0x4a0d58
push edx
call fcn.004522a4
add esp, 8
test eax, eax
je 0x40ee12
lea eax, [esp + 0x7c]
push 0x4a0d54
push eax
call fcn.004522a4
add esp, 8
test eax, eax
je 0x40ee12
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40eda2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00461791
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40f650
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40f6b2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40f6c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ca8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a8e70]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40f7f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40f726
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461791
xor eax, eax
jmp 0x40f86f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004618ce
push esi
lea ecx, [esp + 0xc]
call fcn.00461b5d
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40f84d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040f650
test eax, eax
jne 0x40f84d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040f650
test eax, eax
jne 0x40f84d
lea eax, [esp + 0x14]
push 0x4a0d70
push eax
call fcn.004532e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f82c
lea ecx, [esp + 0x14]
push 0x4a0d6c
push ecx
call fcn.00453260
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f82c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40f82f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046187e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40f73e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461791
xor eax, eax
jmp 0x40f86f
mov byte [esi], 0
push 0x4a0d68
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00461791
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4