joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414f40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41ce18], ebx
push esi
push edi
jne 0x414fc0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x414ffb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x419d84
push edi
call esi
test eax, eax
mov dword [0x41ce18], eax
je 0x414ffb
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41ce1c], eax
call esi
cmp dword [0x41cc34], 2
mov dword [0x41ce20], eax
jne 0x414fc0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41ce28], eax
je 0x414fc0
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41ce24], eax
mov eax, dword [0x41ce24]
test eax, eax
je 0x415005
call eax
test eax, eax
je 0x414fec
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41ce28]
test eax, eax
je 0x414fec
test byte [ebp - 8], 1
jne 0x415005
cmp dword [0x41cc40], 4
jb 0x414fff
or byte [ebp + 0x12], 0x20
jmp 0x415024
xor eax, eax
jmp 0x415034
or byte [ebp + 0x12], 4
jmp 0x415024
mov eax, dword [0x41ce1c]
test eax, eax
je 0x415024
call eax
mov ebx, eax
test ebx, ebx
je 0x415024
mov eax, dword [0x41ce20]
test eax, eax
je 0x415024
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41ce18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x415164
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x415192
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x415199
cmp ebx, dword [eax + 4]
jae 0x415199
xor eax, eax
jmp 0x415389
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4151aa
xor eax, eax
inc eax
jmp 0x415388
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4151c0
cmp ecx, edx
jae 0x415305
cmp dword [eax + 4], 0
je 0x4151c9
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4151b1
cmp dword [ebp + 8], 0
je 0x4151eb
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x415305
cmp eax, esi
jae 0x415305
mov eax, dword [0x41ce30]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x415210
cmp dword [esi*4 + 0x41ce38], edi
je 0x415309
inc esi
cmp esi, eax
jl 0x4151fe
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x415385
cmp dword [ebp - 8], 0x1000000
jne 0x415385
test byte [ebp - 0xc], 0xcc
je 0x41528e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x415385
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x415385
cmp word [eax + 0x18], 0x10b
jne 0x415385
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x415385
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41528e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41528e
test byte [ecx + 0x27], 0x80
jne 0x415305
push 1
push 0x41ce78
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4151a2
mov ecx, dword [0x41ce30]
test ecx, ecx
mov edx, ecx
jle 0x4152c2
lea eax, [ecx*4 + 0x41ce34]
cmp dword [eax], edi
je 0x4152c2
dec edx
sub eax, 4
test edx, edx
jg 0x4152b6
test edx, edx
jne 0x4152f3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4152cf
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4152e7
lea eax, [edx*4 + 0x41ce38]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4152d5
cmp ecx, 0x10
jge 0x4152f3
inc ecx
mov dword [0x41ce30], ecx
push 0
push 0x41ce78
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4151a2
xor eax, eax
jmp 0x415388
test esi, esi
jle 0x4151a2
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x41ce78
call ebx
test eax, eax
jne 0x4151a2
cmp dword [esi*4 + 0x41ce38], edi
je 0x41535f
mov eax, dword [0x41ce30]
lea esi, [eax - 1]
test esi, esi
jl 0x41534d
cmp dword [esi*4 + 0x41ce38], edi
je 0x415349
dec esi
jns 0x41533d
test esi, esi
jge 0x41535d
cmp eax, 0x10
jge 0x415358
inc eax
mov dword [0x41ce30], eax
lea esi, [eax - 1]
jmp 0x41535f
je 0x415377
xor ecx, ecx
test esi, esi
jl 0x415377
lea eax, [ecx*4 + 0x41ce38]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x415365
push 0
push 0x41ce78
call ebx
jmp 0x4151a2
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41614d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00410820
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4161e8
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x41cc34]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4161e8
cmp eax, 1
je 0x416209
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4161e8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4161b5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4161e4
xor eax, eax
inc eax
jmp 0x416228
cmp edi, eax
jae 0x4161ec
xor eax, eax
jmp 0x416228
cmp eax, esi
jae 0x4161f3
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41cc34]
jmp 0x41620c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40100c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [eax]
cmp al, 0x22
jne 0x401034
inc esi
mov al, byte [esi]
test al, al
je 0x40102c
cmp al, 0x22
jne 0x401021
cmp byte [esi], 0x22
jne 0x40103e
inc esi
jmp 0x40103e
cmp al, 0x20
jle 0x40103e
inc esi
cmp byte [esi], 0x20
jg 0x401038
cmp byte [esi], 0
je 0x40104e
cmp byte [esi], 0x20
jg 0x40104e
inc esi
cmp byte [esi], 0
jne 0x401043
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
mov eax, 0xa
je 0x40106e
movzx eax, word [ebp - 0x14]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401085
Capabilities:
Create process on windows

Disassembly:
push dword [esp + 0x10]
xor eax, eax
push eax
push dword [esp + 0x14]
push section..text
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
ret 0x10
Function at 0x4513d1
Capabilities:
Encode data using xor

Disassembly:
jmp 0x46cb20
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x46cc38
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x1c]
nop word [eax + eax]
mov bl, byte [esi + ebx]
push str.ugAyuisyx
push 0x51b4f8
call fcn.00450274
xor edx, edx
mov eax, esi
div ebp
mov eax, dword [esp + 0x1c]
add esp, 8
mov bh, byte [edx + section..All]
push 0x453f6e
push str.dijovhyuGSYYSyus
xor bh, bl
mov bl, byte [esi + eax]
push 0x51b4f8
call fcn.00450274
add esp, 8
mov ecx, eax
call fcn.00453339
mov eax, dword [esp + 0x14]
push 0x453f6e
push str.fdiogiuAsdoiHYUAUAY87234
push 0x51b4f8
add byte [esi + eax], bh
call fcn.00450274
add esp, 8
mov ecx, eax
call fcn.00453339
mov eax, dword [esp + 0x14]
push str.suih89Ah3
push 0x51b4f8
dec byte [esi + eax]
call fcn.00450274
mov eax, dword [esp + 0x1c]
push str.XScdyhjkujktyyt
push 0x51b4f8
add byte [esi + eax], 0xfe
call fcn.00450274
mov eax, dword [esp + 0x24]
push str.sJBCsKJ2BJN
push 0x51b4f8
sub byte [esi + eax], bl
call fcn.00450274
mov ebx, dword [esp + 0x2c]
push str.sDGTFsE
push 0x51b4f8
inc byte [esi + ebx]
call fcn.00450274
inc byte [esi + ebx]
push str.ZASwe23
push 0x51b4f8
call fcn.00450274
inc byte [esi + ebx]
push str.uhgiyGAuyisua
push 0x51b4f8
call fcn.00450274
inc esi
add esp, 0x30
cmp esi, edi
jb 0x46cb40
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x45342e
Capabilities:
Parse pe header

Disassembly:
jmp 0x492ce0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x492d1f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x492d1f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x492d1f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x492d1f
cmp dword [ecx + 0x74], 0xe
jbe 0x492d1f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x453744
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x46bbb0
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x542998], eax
pop edi
pop esi
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x725df8
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
into
push ds
inc edx
scasd eax, dword es:[edi]
clc
salc
int3
ficomp dword [edi]
jb 0x4010fa
mov al, 0x98
pop esp
mov esp, 0xe1ec8d39
std
test dword [ecx - 0x17], edi
cld
lcall 0xe071, 0x7ed15641
mov byte [esi], bh
or dword [ebx], ebx
iretd
cli
mov ch, 0x57
sti
adc al, 0x86
dec byte [ecx + edi*8 + 0x53]
mov bl, 0x5d
push ecx
imul edx, dword [esi], 0xc85f83d1
adc eax, 0x598ca974
jb 0x40113e
cmp dword [ebx], esi
xchg byte [ebx - 0x39], bh
sub byte [ecx - 0x7e], dl
mov ebx, 0x83f75ee0
xchg edi, eax
mov dword [0xd8658939], eax
push ss
lea edx, [ebp + esi - 0x6355c839]
adc eax, 0xf06d7b2
pop esp
dec ebx
adc byte [ebx], dl
salc
xor ebp, edx
sub eax, 0xa7cd9cbc
pushfd
int 0xa7
aam 0xe1
xchg esp, eax
dec ebp
dec ebp
lcall 0x23f, 0xd51baa35
outsd dx, dword [esi]
jne 0x401117
adc bh, byte [edi + 0x66220507]
push dword [ecx - 3]
sbb edi, ebx
sub ecx, dword [ebp + 0x35]
je 0x4011dd
and ebx, dword [esi - 0x1c96aeea]
cmp al, 0x1e
push ebp
inc esp
add eax, 0x7c34a825
loope 0x40116f
invalid
mov eax, dword [0xc5738e10]
push 0xa484b07f
ret
Function at 0x402a8c
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.00404558
test esi, esi
jne 0x402ac2
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.00404648
jmp 0x402ae0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402940
mov edi, eax
test esi, esi
je 0x402ae0
cmp dword [ebx], 0
je 0x402ae0
dec esi
jmp 0x402ac9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x4035c0
Capabilities:
Query or enumerate registry value

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

Function at 0x404338
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46a04c], 0
je 0x404399
cmp word [0x46a220], 0xd7b2
jne 0x404361
cmp dword [0x46a228], 0
jbe 0x404361
mov eax, 0x46a21c
call dword [0x46a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x468058
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 0x4043c0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x468020], 0
jne 0x4043b5
push 0
push 0x468078
push 0x468058
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40450c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402748
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x46a04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044d4
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x408ccc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404a08
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408ce5
test al, 0x10
jne 0x408ce9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40be54
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 0x40be8d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404648
jmp 0x40be96
mov eax, ebx
mov edx, esi
call fcn.004045ac
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bea0
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 0x40bec1
mov al, byte [esp]
jmp 0x40bec3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c548
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c3c0
mov eax, dword [0x46908c]
cmp byte [eax], 0
je 0x40c5b0
mov eax, dword [0x468eb4]
call fcn.00402ec0
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409018
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x40c5f8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c5e6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x468e6c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46a718]
call fcn.00405dd4
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 0x40d39c
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 0x40d400
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.004047c0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408ac0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d407
lea eax, [ebp - 0xc]
call fcn.00404558
ret

Function at 0x41e6c0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041e534
dec esi
jne 0x41e6e2
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41f954
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46aa28
cmp dword [edi], 0
jne 0x41f9d0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46aa24]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4685b0
mov ecx, 2
call fcn.00402900
mov edx, 0x41f92c
lea eax, [esi + 5]
call fcn.0041f94c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041f94c
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 0x41f9a5
mov dword [0x46aa24], 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 0x420d38
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 0x420d3e
ret

Function at 0x4232cc
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 0x42331d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423304
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4232f4
jmp 0x42331d
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 0x423305
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4309cc
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 0x430918
call sub.user32.dll_EnumWindows
ret

Function at 0x430af0
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 0x430b6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0043053c
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 0x430b15
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00430194
cmp dword [ebp - 4], 0
je 0x430b57
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404a08
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 0x430b74
lea eax, [ebp - 4]
call fcn.00404558
ret

Function at 0x433b58
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 [0x46abb0], 0
je 0x433ca7
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x469034]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x433ca7
mov eax, dword [0x46abb4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46abb0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x433c76
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x46abb0]
call fcn.00416820
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x433c6e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x433c6e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x433c6e
mov eax, dword [ebp - 0x14]
call fcn.0043c678
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x433c6e
push ebp
call fcn.00433b14
pop ecx
test al, al
jne 0x433c6e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x433c2a
mov eax, dword [ebp - 0x14]
call fcn.0043b20c
dec eax
jle 0x433c6e
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.00403944
cmp byte [ebp - 1], 0
je 0x433c6e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x433c6e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46abb4]
call fcn.004332dc
inc edi
dec ebx
jne 0x433bbd
mov eax, dword [0x46abb4]
cmp dword [eax + 8], 0
jle 0x433c8e
mov eax, dword [0x46abb4]
call fcn.0043336c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x433ca7
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043397c
pop ecx
test al, al
jne 0x433ca7
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
Function at 0x437278
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x4372c4
mov eax, esi
call fcn.0044d4e0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4372c4
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4372c4
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x437408
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x437304
cmp eax, 0x108
ja 0x437304
mov eax, esi
call fcn.0044d4e0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4373ff
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x437408
jmp 0x4373ff
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4373e6
cmp eax, 0x20a
ja 0x4373e6
test byte [esi + 0x50], 0x80
jne 0x437336
sub eax, 0x203
je 0x437333
sub eax, 3
je 0x437333
sub eax, 3
jne 0x437336
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x43734a
dec eax
je 0x43735f
dec eax
je 0x43737f
dec eax
je 0x43735f
jmp 0x437386
mov ecx, ebx
mov eax, dword [0x469034]
mov eax, dword [eax]
mov edx, esi
call fcn.00456bb4
jmp 0x4373ff
cmp byte [esi + 0x5d], 1
jne 0x437375
mov eax, esi
mov si, 0xffed
call fcn.00403944
jmp 0x437408
or word [esi + 0x54], 1
jmp 0x4373ff
and word [esi + 0x54], 0xfffe
jmp 0x4373ff
mov eax, dword [0x46ab6c]
cmp byte [eax + 0x20], 0
je 0x4373ff
mov eax, dword [0x46ab6c]
cmp dword [eax + 0x1c], 0
je 0x4373ff
mov eax, dword [ebx]
mov edx, dword [0x46ab6c]
cmp eax, dword [edx + 0x1c]
jne 0x4373ff
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0044d424
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403944
jmp 0x437408
mov eax, dword [ebx]
cmp eax, 0xb00b
jne 0x4373ff
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00435b90
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret