joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4296c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x4296f5
je 0x42974f
sub eax, 7
je 0x429716
dec eax
je 0x429740
sub eax, 0x17
je 0x4297f4
jmp 0x429832
add eax, 0xffffff00
sub eax, 9
jb 0x4297e0
add eax, 0xffffff09
sub eax, 0xb
jb 0x4297a8
jmp 0x429832
mov eax, ebx
call fcn.00416b40
mov edi, eax
test edi, edi
je 0x429892
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x42989b
jmp 0x429892
test byte [ebx + 0x44], 0x20
jne 0x42989b
jmp 0x429892
mov edx, esi
mov eax, ebx
call fcn.00426d90
cmp dword [esi + 0xc], 0xffffffff
jne 0x42989b
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00438e24
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.004258dc
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0042959c
test eax, eax
je 0x42989b
mov dword [esi + 0xc], 1
jmp 0x42989b
mov edx, esi
mov eax, ebx
call fcn.00429630
test al, al
je 0x429892
cmp dword [esi + 0xc], 0
jne 0x42989b
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.0042bd2c
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x42989b
mov eax, ebx
call fcn.0042642c
test al, al
jne 0x42989b
jmp 0x429892
mov eax, ebx
call fcn.0042bd2c
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x429892
cmp dword [0x44dc64], 0
je 0x429892
mov eax, dword [0x44dc64]
cmp ebx, dword [eax + 0x24]
jne 0x429892
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x44dc64]
call fcn.00426cc4
jmp 0x429892
mov eax, dword [0x451620]
cmp byte [eax + 0x20], 0
je 0x429892
mov eax, dword [0x451620]
cmp dword [eax + 0x1c], 0
je 0x429892
mov eax, dword [esi]
mov edx, dword [0x451620]
cmp eax, dword [edx + 0x1c]
jne 0x429892
lea eax, [ebp - 0x110]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00416a84
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.00440334
jmp 0x42989b
mov edx, esi
mov eax, ebx
call fcn.00426d90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429d5c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x429d78
cmp dword [esi + 4], 0
je 0x429da5
test byte [ebx + 0x45], 1
jne 0x429d97
mov eax, ebx
call fcn.00428d00
test eax, eax
jne 0x429d97
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x429eb5
mov edx, esi
mov eax, ebx
call fcn.004299d4
jmp 0x429eb5
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x429eae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042bd2c
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00426cc4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00429d5c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042bd2c
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429eb5
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b6a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x43b6d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00440cb0
jmp 0x43b6e2
mov eax, ebx
mov edx, esi
call fcn.00440c1c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x43b6ec
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x43b70d
mov al, byte [esp]
jmp 0x43b70f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x43fcd4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x43fd03
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00440cb0
jmp 0x43fd21
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0043fc5c
mov edi, eax
test ebx, ebx
je 0x43fd21
cmp dword [esi], 0
je 0x43fd21
dec ebx
jmp 0x43fd0a
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x43ffd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x44df60]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x440068
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x440048
xor eax, eax
push ebp
push 0x440041
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x440084
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x440048
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x44df60]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x44df60], ax
mov esp, ebp
pop ebp
ret
Function at 0x4420f8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4422b4
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x442159
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4422d0
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4421cb
xor eax, eax
push ebp
push 0x4421c4
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00441f50
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4421ad
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4422f0
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4421cb
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4422ac
cmp byte [ebp - 0xd], 0
jne 0x44220d
cmp byte [ebp - 0x12], 0
je 0x4422ac
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x442226
dec ebx
cmp byte [ebx], 0x2e
je 0x442235
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x442225
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4422ac
inc ebx
cmp byte [ebp - 0x12], 0
je 0x442262
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4422ac
cmp byte [ebp - 0xd], 0
je 0x4422ac
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4422ac
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4426a0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x442788
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x451cb8], 1
jae 0x44277a
xor eax, eax
mov dword [0x4518c4], eax
xor eax, eax
mov dword [0x4518cc], eax
xor eax, eax
mov dword [0x4518d0], eax
mov byte [0x4518d6], 2
mov byte [0x4518d7], 2
mov byte [0x4518d8], 3
mov word [0x451c80], 0
mov word [0x451c90], 1
mov word [0x451ca0], 0xa
mov dword [0x451ca8], 0x80020004
mov dword [0x451c74], 0x44188c
mov dword [0x451c78], 0x441884
mov dword [0x451c7c], 0x44188c
call fcn.0043ffa0
test al, al
je 0x442739
call fcn.0043ffd0
call fcn.00440094
mov eax, 0x4518dc
mov edx, 0x442794
call fcn.0043d7e6
mov eax, 0x451aa8
mov edx, 0x442794
call fcn.0043d7e6
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4518bc], eax
call fcn.0043e74c
mov dword [0x4518b8], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4518b0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44278f
ret

Function at 0x446ed4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x446f36
call fcn.00446e84
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00443260
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00443260
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x446fb4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x44fb44], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x44708e
cmp dword [0x44fb40], 0
jne 0x44708e
cmp dword [0x44fd24], 0
je 0x447048
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00446d84
add esp, 8
mov ebx, eax
test eax, eax
jne 0x44702e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00446d84
add esp, 8
mov ebx, eax
test eax, eax
jne 0x44702e
lea ebx, [ebp - 0x84]
jmp 0x44702f
inc ebx
call fcn.00446f70
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4470c9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x44fb48
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00443260
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x44fb4b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4470c9
cmp dword [0x44fb40], 0
je 0x4470a8
cmp dword [0x44fb40], 0xffffffff
je 0x4470c9
push esi
call dword [0x44fb40]
pop ecx
mov eax, dword [0x44fb44]
test eax, eax
je 0x4470c9
cmp dword [0x44fb44], 0xffffffff
je 0x4470c9
cmp byte [eax], 0
je 0x4470c9
push esi
push eax
call fcn.00446ed4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x447860
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4525bc], 0
jne 0x4478e1
cmp dword [0x4525dc], 0
jne 0x447890
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4525dc], eax
test eax, eax
jne 0x447890
push str.GetEnvironmentStrings_failed
call fcn.004470e0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4525dc]
jmp 0x4478a4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00443260
pop ecx
mov edi, eax
test eax, eax
jne 0x44789c
lea edi, [ebp + 1]
push edi
call fcn.00442cc0
pop ecx
mov ebx, eax
mov dword [0x4525c0], ebx
test ebx, ebx
jne 0x4478ce
xor eax, eax
jmp 0x4479a4
push edi
mov edx, dword [0x4525dc]
push edx
push ebx
call fcn.00443110
add esp, 0xc
jmp 0x447901
xor esi, esi
mov ebx, dword [0x4525bc]
jmp 0x4478fb
push eax
call fcn.00443260
pop ecx
test eax, eax
jne 0x4478f7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4478eb
lea ebx, [esi + 4]
push 4
mov dword [0x4525c4], ebx
inc ebx
push ebx
call fcn.00442798
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x447924
xor eax, eax
jmp 0x4479a4
cmp dword [0x4525bc], 0
jne 0x447955
xor esi, esi
mov ebx, dword [0x4525c0]
mov eax, dword [esp]
mov ebp, eax
jmp 0x447946
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00443260
pop ecx
mov edi, eax
test eax, eax
jne 0x44793c
jmp 0x447986
xor esi, esi
mov ebx, dword [0x4525bc]
mov eax, dword [esp]
mov edi, eax
jmp 0x447980
push eax
call fcn.00443260
pop ecx
test eax, eax
je 0x447975
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x447979
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x447964
mov eax, dword [0x4525bc]
test eax, eax
je 0x447996
push eax
call fcn.00442cd0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4525bc], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x43cf5d
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43ccda
inc esi
call fcn.0043cf78
xor dword [eax], edi
mov ebx, ebx
inc eax
sub esi, 0x6e6c34a5
cmp eax, edx
jne fcn.0043cf5d
ret
Function at 0x40ed50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x470fdb
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.004653c6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40edd2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00462eaa
mov eax, dword [eax]
push 0x498204
push eax
call fcn.00455274
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00465651
test bl, bl
je 0x40edd2
push 0x498204
lea ecx, [esp + 0xc]
call fcn.004659e1
push 0x49bd74
lea ecx, [esp + 0xc]
call fcn.004659e1
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 0x40ee0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00465651
jmp 0x40eed9
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 0x40ee92
lea edx, [esp + 0x7c]
push 0x49bd70
push edx
call fcn.00455274
add esp, 8
test eax, eax
je 0x40ee92
lea eax, [esp + 0x7c]
push 0x49bd6c
push eax
call fcn.00455274
add esp, 8
test eax, eax
je 0x40ee92
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 0x40ee22
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.00465651
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 0x40f6d0
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 0x40f732
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 0x40f740
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47105b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a2f74]
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 0x40f878
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40f7a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00465651
xor eax, eax
jmp 0x40f8ef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046578e
push esi
lea ecx, [esp + 0xc]
call fcn.00465a1d
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 0x40f8cd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040f6d0
test eax, eax
jne 0x40f8cd
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 closesocket
mov ecx, edi
call fcn.0040f6d0
test eax, eax
jne 0x40f8cd
lea eax, [esp + 0x14]
push 0x49bd88
push eax
call fcn.004562b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f8ac
lea ecx, [esp + 0x14]
push 0x49bd84
push ecx
call fcn.00456230
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f8ac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40f8af
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046573e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40f7be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00465651
xor eax, eax
jmp 0x40f8ef
mov byte [esi], 0
push 0x49bd80
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.00465651
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
Function at 0x41ffa0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x42000e
cmp si, 0x69
ja 0x42000e
add esi, 0xffd0
cmp si, 0x11
je 0x41ffde
push 0x11
call edi
test ax, ax
jge 0x41ffde
or esi, 0x2000
cmp si, 0x10
je 0x41fff3
push 0x10
call edi
test ax, ax
jge 0x41fff3
or esi, 0x4000
cmp si, 0x12
je 0x420008
push 0x12
call edi
test ax, ax
jge 0x420008
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42001b
mov esi, 0xbd
jmp 0x41ffcf
cmp si, 0x6e
jne 0x420028
mov esi, 0xbe
jmp 0x41ffcf
cmp si, 0x6f
jne 0x41ffc9
mov esi, 0xbf
jmp 0x41ffcf

Function at 0x4217d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b36d0]
xor edx, edx
cmp eax, edx
jne 0x4217f6
xor eax, eax
mov byte [eax + 0x4b35d0], al
inc eax
cmp eax, 0x100
jl 0x4217de
mov dword [0x4b36d0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b35d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421887
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x42185a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x421828
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x421953
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x42193a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret