joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405480
Capabilities:
Persist via run registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4054b3
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x405e00
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40a748
call fcn.00408394
mov edi, 0x94
mov eax, edi
call fcn.004083e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x410228], ecx
mov eax, dword [esi + 4]
mov dword [0x410234], eax
mov edx, dword [esi + 8]
mov dword [0x410238], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41022c], esi
cmp ecx, 2
je 0x405e60
or esi, 0x8000
mov dword [0x41022c], esi
shl eax, 8
add eax, edx
mov dword [0x410230], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x405e9b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405e9b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405eb3
cmp eax, 0x20b
je 0x405ea0
mov dword [ebp - 0x1c], esi
jmp 0x405ec7
cmp dword [ecx + 0x84], 0xe
jbe 0x405e9b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405ec1
cmp dword [ecx + 0x74], 0xe
jbe 0x405e9b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00406bee
pop ecx
test eax, eax
jne 0x405ef3
cmp dword [0x410208], 1
jne 0x405ee0
call fcn.00407b56
push 0x1c
call fcn.004079df
push 0xff
call fcn.00407848
pop ecx
pop ecx
call fcn.0040830b
mov dword [ebp - 4], esi
call fcn.00408160
test eax, eax
jge 0x405f0c
push 0x1b
call fcn.00405ddb
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x410740], eax
call fcn.0040803e
mov dword [0x410200], eax
call fcn.00407f9c
test eax, eax
jge 0x405f32
push 8
call fcn.00405ddb
pop ecx
call fcn.00407d69
test eax, eax
jge 0x405f43
push 9
call fcn.00405ddb
pop ecx
call fcn.00407878
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x405f56
push eax
call fcn.00405ddb
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00407d00
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x405f77
movzx eax, word [ebp - 0x34]
jmp 0x405f7a
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00404fd0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x405f98
push edi
call fcn.0040799f
call fcn.004079c1
jmp 0x405fca
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004083cf
ret
Function at 0x4078dd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x410268], esi
push edi
jne 0x4078fd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x410264], esi
mov byte [0x410260], al
jne 0x407963
mov ecx, dword [0x4104e8]
test ecx, ecx
je 0x407944
mov eax, dword [0x4104e4]
sub eax, 4
cmp eax, ecx
jmp 0x40793d
mov eax, dword [eax]
test eax, eax
je 0x40792f
call eax
mov eax, dword [0x4104e4]
sub eax, 4
cmp eax, dword [0x4104e8]
mov dword [0x4104e4], eax
jae 0x407927
mov eax, 0x40d01c
mov esi, 0x40d020
cmp eax, esi
mov edi, eax
jae 0x407963
mov eax, dword [edi]
test eax, eax
je 0x40795c
call eax
add edi, 4
cmp edi, esi
jb 0x407954
mov eax, 0x40d024
mov esi, 0x40d028
cmp eax, esi
mov edi, eax
jae 0x407982
mov eax, dword [edi]
test eax, eax
je 0x40797b
call eax
add edi, 4
cmp edi, esi
jb 0x407973
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40799d
push dword [ebp + 8]
mov dword [0x410268], 1
call fcn.00407848
pop ecx
pop ebp
ret

Function at 0x4079df
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40eb04]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e9e0]
je 0x407a0c
inc eax
cmp eax, 0x12
jb 0x4079fd
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e9e0]
jne 0x407b40
mov eax, dword [0x410208]
cmp eax, 1
je 0x407b1b
cmp eax, edx
jne 0x407a3c
cmp dword [0x40e774], 1
je 0x407b1b
cmp ecx, 0xfc
je 0x407b40
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407a75
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00408cd0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00406550
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x407ab7
lea eax, [ebp - 0x10c]
push eax
call fcn.00406550
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40aae0
push edi
call fcn.00408dd0
add esp, 0x10
push edi
call fcn.00406550
push dword [esi + 0x40e9e4]
mov ebx, eax
call fcn.00406550
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004083e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00408cd0
push edi
push ebx
call fcn.00408ce0
push 0x40aac0
push ebx
call fcn.00408ce0
push dword [esi + 0x40e9e4]
push ebx
call fcn.00408ce0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00408bc8
add esp, 0x2c
jmp 0x407b40
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x40e9e4]
push dword [esi]
call fcn.00406550
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0040866b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408891
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004083e0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408926
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x410228]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x408926
cmp eax, 1
je 0x40893e
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408926
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4088fb
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x408922
xor eax, eax
inc eax
jmp 0x40895a
cmp esi, ebx
jae 0x40892a
xor eax, eax
jmp 0x40895a
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x410228]
jmp 0x408940
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408bc8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4103a8], ebx
push esi
push edi
jne 0x408c48
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408c83
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40afb4
push edi
call esi
test eax, eax
mov dword [0x4103a8], eax
je 0x408c83
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4103ac], eax
call esi
cmp dword [0x410228], 2
mov dword [0x4103b0], eax
jne 0x408c48
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4103b8], eax
je 0x408c48
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4103b4], eax
mov eax, dword [0x4103b4]
test eax, eax
je 0x408c8d
call eax
test eax, eax
je 0x408c74
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4103b8]
test eax, eax
je 0x408c74
test byte [ebp - 8], 1
jne 0x408c8d
cmp dword [0x410234], 4
jb 0x408c87
or byte [ebp + 0x12], 0x20
jmp 0x408cac
xor eax, eax
jmp 0x408cbc
or byte [ebp + 0x12], 4
jmp 0x408cac
mov eax, dword [0x4103ac]
test eax, eax
je 0x408cac
call eax
mov ebx, eax
test ebx, ebx
je 0x408cac
mov eax, dword [0x4103b0]
test eax, eax
je 0x408cac
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4103a8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42b850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4505d5
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x46b070]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.00419990
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x30]
mov dword [esi], vtable.NetFX45::CNetFX4xCallBack.0
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], ebx
mov dword [esi + 0x94], edi
mov byte [esp + 0x14], 1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov eax, dword [0x5a1c64]
mov dword [esi + 0xa8], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x98], ecx
mov ecx, dword [eax + 0x3c]
add ecx, dword [eax + 0x34]
mov eax, dword [0x5a132c]
mov dword [esi + 0x9c], ecx
mov dword [esi + 0xa0], edi
mov dword [esi + 0xa4], edi
mov dword [esi + 8], ebx
mov ecx, dword [esi + 0x94]
cmp ecx, edi
mov dword [esi + 0x8c], edx
mov dword [esi + 0x90], eax
je 0x42b904
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x94], edi
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xac], ecx
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0x18

Function at 0x42bcf0
Capabilities:
Create thread

Disassembly:
sub esp, 8
push 0x45a9b4
jmp fcn.00741e13

Function at 0x433170
Capabilities:
Execute anti-debugging instructions
Resolve function by parsing pe exports

Disassembly:
push ebp
lea ebp, [esp - 0x104]
sub esp, 0x104
push 0xffffffffffffffff
push 0x450fc0
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x46b070]
xor eax, ebp
mov dword [ebp + 0x100], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x10c]
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebp + 0x110]
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 0x114]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edx
push 0x45ee68
jmp loc.007090f0
Function at 0x412f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
jmp 0x412f9a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412fa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412f90
mov eax, 1
add ebx, ebx
jne 0x412fb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412fa8
jne 0x412fc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412fa8
xor ecx, ecx
sub eax, 3
jb 0x412fd8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41304a
mov ebp, eax
add ebx, ebx
jne 0x412fe3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412ff0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x413014
inc ecx
add ebx, ebx
jne 0x413000
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412ff5
jne 0x413011
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412ff5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x413034
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x413025
jmp 0x412f96
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x413034
add edi, ecx
jmp 0x412f96
pop esi
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x41309c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15330]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x153ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x413051
mov ecx, edi
jns 0x413080
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x153f4]
or eax, eax
je 0x413096
mov dword [ebx], eax
add ebx, 4
jmp 0x41306e
call dword [esi + 0x153f0]
mov ebp, dword [esi + 0x153f8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4130d0
sub esp, 0xffffff80
jmp 0x403ac6

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x66e414f8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp + 0xc], 0x30
mov dword [esp + 8], str.wininit.dll
mov dword [esp + 4], str.hello_from_wininit.dll
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0xc
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
xor eax, eax
leave
ret

Function at 0x66e416e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], 0x66e44084
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x66e42060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x66e4207f
mov eax, 0
jmp 0x66e420c3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x66e420a2
mov eax, 0
jmp 0x66e420c3
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x66e420be
mov eax, 0
jmp 0x66e420c3
mov eax, 1
leave
ret

Function at 0x66e420c5
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x66e42124
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x66e4211c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x66e4211c
mov eax, dword [ebp - 4]
jmp 0x66e42138
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x66e420f9
mov eax, 0
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40942f
pop dword [ebp - 0x50]
mov eax, 0x54e7d2e9
sub eax, 0x54a73eba
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x2ee30171
add dword [ebp - 0x60], 0x1f6f43da
mov dword [ebp - 0x5c], 0x16b56810
add dword [ebp - 0x5c], 0x1b7de435
mov dword [ebp - 0x58], 0xb3b7c31
sub dword [ebp - 0x58], 0xbeef3803
mov dword [ebp - 0x54], 0xc023f703
sub dword [ebp - 0x54], 0xc023f703
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xf21021ae
add dword [ebp - 0x60], 0x826247a8
mov dword [ebp - 0x5c], 0x93092db6
sub dword [ebp - 0x5c], 0x519ccc41
mov dword [ebp - 0x58], 0x7dff6913
add dword [ebp - 0x58], 0xe5700359
mov dword [ebp - 0x54], 0xc9701130
sub dword [ebp - 0x54], 0xc9701130
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x4260ad0b
add eax, 0xbde02341
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x3851e
push 0
call eax
mov ecx, 0x4320
xor edx, edx
add edx, eax
mov esi, 0xd0b4c0c0
sub esi, 0xd07310c0
add esi, dword [ebp - 0x50]
mov ebx, 0x28f4cdbc
add dword [ebp - 0x10], eax
mov edi, dword [esi]
add edi, ebx
mov dword [edx], edi
xor dword [ebp - 0x10], edi
add edx, 4
add esi, 0xa7a4cf7c
sub esi, 0xa7a4cf78
loop 0x409542
add eax, 0xdde67c1d
sub eax, 0xdde57cca
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x6cfc3d77
sub ecx, 0x6cbc3d77
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x408630
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x408655
or esi, 1
push 1
call edi
test ax, ax
jns 0x408661
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x40866d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x408679
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret

Function at 0x409690
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x1c8], edi
jle 0x4096df
nop dword [eax + eax]
mov eax, dword [esi + 0x1c4]
lea edx, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push edx
push dword [ebp + 0x10]
mov ecx, dword [eax + edi*4]
push dword [ebp + 0xc]
push ebx
mov eax, dword [ecx]
call dword [eax]
cmp byte [ebp + 0xb], 0
jne 0x409877
inc edi
cmp edi, dword [esi + 0x1c8]
jl 0x4096b0
sub ebx, 0x100
je 0x409800
sub ebx, 4
je 0x40974f
sub ebx, 2
jne 0x4097f5
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.005eb96f
mov ecx, dword [esi + 0x144]
lea edx, [ebp + 8]
add esp, 4
mov word [ebp + 8], ax
mov eax, dword [ecx]
push reloc.WS2_32.dll_ioctlsocket
push edx
push 0x40d130
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x4097f5
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 0x148], 0
je 0x4097f5
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
xor edi, edi
movq qword [ebp - 0xc], xmm0
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x158]
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x15c]
push 0x11
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call ebx
test ax, ax
mov ecx, 8
push 2
cmovs edi, ecx
call ebx
test ax, ax
jns 0x4097b2
or edi, 1
push 1
call ebx
test ax, ax
jns 0x4097be
or edi, 2
push 0x10
call ebx
test ax, ax
jns 0x4097ca
or edi, 4
push 0x12
call ebx
test ax, ax
jns 0x4097d6
or edi, 0x20
mov word [ebp - 0xa], di
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x148]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x4097f5
mov ecx, dword [esi + 0x148]
test ecx, ecx
je 0x40985e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc8]
call eax
test al, al
je 0x40985e
mov ecx, dword [esi + 0x148]
mov eax, dword [ecx]
mov eax, dword [eax + 0xd4]
call eax
test al, al
je 0x40985e
mov ecx, dword [esi + 0x148]
push 0x6b3218
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.005d995d
add esp, 8
test eax, eax
je 0x40985e
mov eax, dword [esi + 0x148]
cmp byte [eax + 0x10a1], 0
jne 0x4097f5
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.0040bea0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40b960
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x40b98b
cmp esi, dword [edi + 0x148]
je 0x40b98b
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x148]
cmp esi, eax
je 0x40ba8c
test eax, eax
je 0x40b9fd
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], 0x14
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x148]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
push ecx
push 0
push 0
push 0x6b326c
push dword [edi + 0x148]
mov ecx, edi
call fcn.0040c3b0
mov dword [edi + 0x148], 0
test esi, esi
je 0x40ba8c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x40ba8c
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc8]
call eax
test al, al
je 0x40ba8c
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xd4]
call eax
test al, al
je 0x40ba8c
xorps xmm0, xmm0
mov dword [edi + 0x148], esi
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x24], 0
movq qword [esp + 0x1c], xmm0
mov dword [esp + 8], 0x15
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x148]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
push ecx
push 0
push 0
push 0x6b3280
push dword [edi + 0x148]
mov ecx, edi
call fcn.0040c3b0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4