joyce8/EMBER2024-capa huggingface dataset:
Function at 0x69b1d0
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, eax
push ebx
mov ebx, eax
sub esp, 0x14
movzx eax, word [ebx + 2]
test ax, ax
je 0x69b21c
cmp ax, 0x5b
je 0x69b237
cmp ax, 0x2a
je 0x69b224
cmp ax, 0x3f
je 0x69b224
cmp ax, 0x2b
je 0x69b224
cmp ax, 0x40
je 0x69b224
cmp ax, 0x21
je 0x69b224
cmp ax, 0x29
je 0x69b2c0
add ebx, 2
movzx eax, word [ebx + 2]
test ax, ax
jne 0x69b1e2
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
cmp word [ebx + 4], 0x28
jne 0x69b206
lea eax, [ebx + 4]
call fcn.0069b1d0
mov ebx, eax
jmp 0x69b1d9
mov eax, dword [0x865288]
test eax, eax
je 0x69b2a0
movzx eax, word [ebx + 4]
lea edx, [ebx + 4]
cmp ax, 0x21
je 0x69b286
mov ecx, dword [0x865288]
test ecx, ecx
js 0x69b280
cmp ax, 0x5d
jne 0x69b272
jmp 0x69b293
add edx, 2
movzx eax, word [edx]
cmp ax, 0x5d
mov ebx, edx
je 0x69b1d9
test ax, ax
jne 0x69b260
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
cmp ax, 0x5e
jne 0x69b257
movzx eax, word [ebx + 6]
lea edx, [ebx + 6]
cmp ax, 0x5d
jne 0x69b272
movzx eax, word [edx + 2]
add edx, 2
jmp 0x69b266
mov dword [esp], str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
cmp eax, 1
sbb eax, eax
or eax, 1
mov dword [0x865288], eax
jmp 0x69b240
lea esi, [ebx + 4]
jmp 0x69b21c

Function at 0x69b2d0
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, eax
push ebx
mov ebx, eax
sub esp, 0x14
movzx eax, byte [ebx + 1]
test al, al
je 0x69b315
cmp al, 0x5b
je 0x69b332
cmp al, 0x2a
je 0x69b320
cmp al, 0x3f
nop
lea esi, [esi]
je 0x69b320
cmp al, 0x2b
je 0x69b320
cmp al, 0x40
je 0x69b320
cmp al, 0x21
lea esi, [esi]
je 0x69b320
cmp al, 0x29
je 0x69b3b0
add ebx, 1
movzx eax, byte [ebx + 1]
test al, al
jne 0x69b2e1
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
cmp byte [ebx + 2], 0x28
jne 0x69b302
lea eax, [ebx + 2]
call fcn.0069b2d0
mov ebx, eax
jmp 0x69b2d9
mov eax, dword [0x865288]
test eax, eax
je 0x69b390
movzx eax, byte [ebx + 2]
lea edx, [ebx + 2]
cmp al, 0x21
je 0x69b376
mov ecx, dword [0x865288]
test ecx, ecx
js 0x69b372
cmp al, 0x5d
jne 0x69b366
jmp 0x69b381
add edx, 1
movzx eax, byte [edx]
cmp al, 0x5d
mov ebx, edx
je 0x69b2d9
test al, al
jne 0x69b356
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret
cmp al, 0x5e
jne 0x69b350
movzx eax, byte [ebx + 3]
lea edx, [ebx + 3]
cmp al, 0x5d
jne 0x69b366
movzx eax, byte [edx + 1]
add edx, 1
jmp 0x69b35c
mov dword [esp], str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
cmp eax, 1
sbb eax, eax
or eax, 1
mov dword [0x865288], eax
jmp 0x69b33b
lea esi, [ebx + 2]
jmp 0x69b315
Function at 0x69d2a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0069d300
Function at 0x69da00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x865624
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x86563c]
sub esp, 4
test ebx, ebx
je 0x69da55
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x69da4e
test esi, esi
je 0x69da4e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x69da30
mov dword [esp], 0x865624
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x69dc40
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
cmp word [edx], 0x5a4d
je 0x69dc50
repz ret
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x69dc4d
xor eax, eax
cmp word [edx + 0x18], 0x10b
sete al
ret
Function at 0x404930
Capabilities:
Resolve function by parsing pe exports

Disassembly:
movzx ecx, word [edx + 0x26]
nop
jmp 0x40482f
mov esi, dword [edx + 0x28]
nop
jmp 0x404843
xor edi, edi
nop
nop
jmp 0x404856
xor eax, eax
nop
jmp 0x404866
lodsb al, byte [esi]
jmp 0x404876
cmp al, 0x61
nop
jmp 0x404888
jl 0x4048bb
jmp 0x404899
jmp 0x4048a9
sub al, 0x20
nop
jmp 0x4048bb
nop
jmp 0x4048cc
ror edi, 0xd
nop
add edi, eax
jmp 0x4048e3
dec ecx
nop
jmp 0x4048ef
jne 0x404846
nop
jmp 0x404902
nop
jmp 0x404911
push edx
jmp 0x40491f
mov edx, dword [edx + 0x10]
jmp fcn.00404930
push edi
nop
mov eax, dword [edx + 0x3c]
jmp 0x404945
add eax, edx
nop
jmp 0x404959
mov eax, dword [eax + 0x78]
nop
jmp 0x40496d
test eax, eax
jmp 0x404980
je 0x404b52
nop
jmp 0x404998
add eax, edx
nop
jmp 0x4049ab
mov ebx, dword [eax + 0x20]
nop
add ebx, edx
nop
jmp 0x4049c0
mov ecx, dword [eax + 0x18]
push eax
test ecx, ecx
nop
je 0x404b42
nop
nop
dec ecx
nop
jmp 0x4049e0
xor edi, edi
nop
mov esi, dword [ebx + ecx*4]
nop
jmp 0x4049f3
add esi, edx
nop
xor eax, eax
nop
ror edi, 0xd
jmp 0x404a0a
lodsb al, byte [esi]
add edi, eax
nop
jmp 0x404a18
cmp al, ah
jmp 0x404a29
jne 0x4049f5
add edi, dword [ebp - 8]
nop
jmp 0x404a40
cmp edi, dword [ebp + 0x24]
jmp 0x404a56
jne 0x4049c4
nop
jmp 0x404a70
add byte [eax], al
jmp 0x404a81
pop eax
nop
jmp 0x404a95
mov ebx, dword [eax + 0x24]
nop
add ebx, edx
jmp 0x404aaa
mov cx, word [ebx + ecx*2]
jmp 0x404ac0
mov ebx, dword [eax + 0x1c]
nop
jmp 0x404ad1
add ebx, edx
nop
jmp 0x404ae8
mov eax, dword [ebx + ecx*4]
add eax, edx
nop
mov dword [esp + 0x24], eax
jmp 0x404b06
pop ebx
nop
jmp 0x404b18
pop ebx
nop
jmp 0x404b27
popal
pop ecx
pop edx
jmp 0x404b3e
push ecx
jmp eax
nop
pop eax
jmp 0x404b52
jmp 0x404b66
pop edi
nop
pop edx
mov edx, dword [edx]
nop
jmp 0x40481a

Function at 0x404a20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test al, 0x92
sub cl, byte [ebp - 0x2e91d7b7]
Function at 0x4029e4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403f78
test esi, esi
jne 0x402a1a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404068
jmp 0x402a38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a38
cmp dword [ebx], 0
je 0x402a38
dec esi
jmp 0x402a21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402c60
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x45b008], 0x8088405
inc edx
mov dword [ebx + 0x45b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4030b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45b024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403150
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403130
xor eax, eax
push ebp
push 0x403129
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 0x40316c
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 0x403130
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45b024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45b024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403dfc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45d048], 0
je 0x403e5d
cmp word [0x45d21c], 0xd7b2
jne 0x403e25
cmp dword [0x45d224], 0
jbe 0x403e25
mov eax, 0x45d218
call dword [0x45d234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45b070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403e84
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45b034], 0
jne 0x403e79
push 0
push 0x45b068
push 0x45b070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4051d8
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 0xf0019
push 0
push 0x405408
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40525b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405408
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40525b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405424
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4052e4
xor eax, eax
push ebp
push 0x4052dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405020
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4052c2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405444
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4052c2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4052e4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
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 0x4053fe
cmp byte [ebp - 0xd], 0
jne 0x40532b
cmp byte [ebp - 0x12], 0
je 0x4053fe
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405344
dec ebx
cmp byte [ebx], 0x2e
je 0x405353
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405343
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4053fe
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405390
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4053fe
cmp byte [ebp - 0xd], 0
je 0x4053fe
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4053fe
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
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 0x405ad0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405b36
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004041e8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402c7c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405b20
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b3d
lea eax, [ebp - 0x10]
call fcn.00403f78
ret

Function at 0x40ad4c
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 pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40ad85
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404068
jmp 0x40ad8e
mov eax, ebx
mov edx, esi
call fcn.00403fcc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40ad98
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_1
test eax, eax
jle 0x40adb9
mov al, byte [esp]
jmp 0x40adbb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b440
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b2b8
mov eax, dword [0x45c138]
cmp byte [eax], 0
je 0x40b4bc
mov eax, dword [0x45bf54]
call fcn.00402acc
call fcn.00402824
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004085ac
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40b504
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b4f2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45bf04]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45d664]
call fcn.00404fe4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40bd58
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40be2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404010
lea eax, [ebp - 8]
call fcn.00404488
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404438
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40be18
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40be11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404438
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bdfb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40be40
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bdfb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be18
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be35
lea eax, [ebp - 8]
call fcn.00403f78
ret

Function at 0x40c324
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c388
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004041e8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408048
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c38f
lea eax, [ebp - 0xc]
call fcn.00403f78
ret

Function at 0x41a4f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45d884
cmp dword [edi], 0
jne 0x41a56c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45d880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45b3f0
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a4c8
lea eax, [esi + 5]
call fcn.0041a4e8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a4e8
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41a541
mov dword [0x45d880], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41b788
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41b78e
ret
Function at 0x41dc0c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41dc5d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41dc44
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41dc34
jmp 0x41dc5d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41dc45
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427fac
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00427c10
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404438
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42800a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45c064]
mov dl, 1
mov eax, dword [0x427b08]
call fcn.0040b600
call fcn.004039b4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x428014
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404438
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x42806c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45c24c]
mov dl, 1
mov eax, dword [0x427b08]
call fcn.0040b600
call fcn.004039b4
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00427c40
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4305f0
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x43053c
call sub.user32.dll_EnumWindows
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x43078d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00430170
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x430735
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042fd70
cmp dword [ebp - 4], 0
je 0x430777
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404438
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430794
lea eax, [ebp - 4]
call fcn.00403f78
ret
Function at 0x433758
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x45db54], 0
je 0x4338a7
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x45c0d8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4338a7
mov eax, dword [0x45db58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x45db54]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x433876
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x45db54]
call fcn.00413ac0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43386e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43386e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43386e
mov eax, dword [ebp - 0x14]
call fcn.0043c3f0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43386e
push ebp
call fcn.00433714
pop ecx
test al, al
jne 0x43386e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43382a
mov eax, dword [ebp - 0x14]
call fcn.0043af20
dec eax
jle 0x43386e
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.0040343c
cmp byte [ebp - 1], 0
je 0x43386e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43386e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x45db58]
call fcn.00432ee0
inc edi
dec ebx
jne 0x4337bd
mov eax, dword [0x45db58]
cmp dword [eax + 8], 0
jle 0x43388e
mov eax, dword [0x45db58]
call fcn.00432f70
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4338a7
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043357c
pop ecx
test al, al
jne 0x4338a7
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret