joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4162b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf000]
push edi
jmp 0x4162ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4162d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4162c0
mov eax, 1
add ebx, ebx
jne 0x4162e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4162d8
jne 0x4162f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4162d8
xor ecx, ecx
sub eax, 3
jb 0x416308
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41637a
mov ebp, eax
add ebx, ebx
jne 0x416313
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x416320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x416344
inc ecx
add ebx, ebx
jne 0x416330
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x416325
jne 0x416341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x416325
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x416364
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x416355
jmp 0x4162c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x416364
add edi, ecx
jmp 0x4162c6
pop esi
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x4163c3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1606c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x416381
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16074]
or eax, eax
je 0x4163bd
mov dword [ebx], eax
add ebx, 4
jmp 0x41639e
call dword [esi + 0x16070]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4163f4
cmp al, 0xef
ja 0x4163e7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4163c9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4163d6
mov ebp, dword [esi + 0x16078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x416428
sub esp, 0xffffff80
jmp 0x405dd2
Function at 0x401043
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x4022a0
call fcn.00401248
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp word [0x400000], 0x5a4d
jne 0x40108b
mov eax, dword [0x40003c]
lea eax, [eax + 0x400000]
cmp dword [eax], 0x4550
jne 0x40108b
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x4010a4
cmp ecx, 0x20b
je 0x401091
and dword [ebp - 0x1c], 0
jmp 0x4010b8
cmp dword [eax + 0x84], 0xe
jbe 0x40108b
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x4010b2
cmp dword [eax + 0x74], 0xe
jbe 0x40108b
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 2
pop esi
push esi
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or edi, 0xffffffff
mov dword [0x4036d8], edi
mov dword [0x4036dc], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x403608]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x403604]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4036d4], eax
call fcn.00401244
cmp dword [section..data], 0
jne 0x401118
push fcn.00401244
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00401232
push 0x40229c
push 0x402298
call sub.msvcrt.dll__initterm
mov eax, dword [0x403600]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x4035fc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x38], eax
push 0x402294
push 0x402288
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov eax, dword [eax]
test eax, eax
jne 0x40117d
mov dword [ebp - 4], edi
mov eax, 0xff
jmp 0x40122c
mov dword [ebp - 0x20], eax
cmp word [eax], 0x22
jne 0x4011be
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x401199
cmp cx, 0x22
jne 0x401186
cmp word [eax], 0x22
jne 0x4011a4
add eax, esi
mov dword [ebp - 0x20], eax
mov cx, word [eax]
test cx, cx
je 0x4011b2
cmp cx, 0x20
jbe 0x40119f
test byte [ebp - 0x54], 1
je 0x4011cb
movzx ecx, word [ebp - 0x50]
jmp 0x4011ce
cmp word [eax], 0x20
jbe 0x4011a4
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x4011be
push 0xa
pop ecx
push ecx
push eax
push 0
push 0x400000
call fcn.00401294
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], 0
jne 0x4011ee
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x40122a
mov eax, esi
call fcn.00401283
ret

Function at 0x405506
Capabilities:
Check http status code

Disassembly:
dec al
stc
cmp dh, 0x39
test cl, 0xc8
xor bl, al
cmp ch, cl
cmc
cbw
push dword [esp + 0x14]
test dl, 0x13
lea esi, [esi + 1]
pushfd
cmp ch, ah
clc
cwde
clc
cmp dh, al
sub ebp, 4
mov dword [esp + 4], ebp
push 0xe44a2b24
push esp
mov dword [ebp], eax
mov byte [esp + 8], bh
lea esp, [esp + 0x44]
jmp fcn.0040413e
Function at 0x43338e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x459744]
jne 0x433398
repz ret
jmp fcn.00437ec8

Function at 0x441447
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004387bf
xor ebx, ebx
cmp dword [0x45ebdc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x44151c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x441487
xor eax, eax
jmp 0x4415e0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x441480
push eax
call fcn.0043875c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45ebdc], eax
call esi
push eax
call fcn.0043875c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45ebe0], eax
call esi
push eax
call fcn.0043875c
mov dword [0x45ebe4], eax
lea eax, [ebp - 8]
push eax
call fcn.0043981d
test eax, eax
pop ecx
pop ecx
je 0x4414ea
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004337ad
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x44151c
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0043875c
cmp eax, ebx
pop ecx
mov dword [0x45ebec], eax
je 0x44151c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0043875c
pop ecx
mov dword [0x45ebe8], eax
mov eax, dword [0x45ebe8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x441595
cmp dword [0x45ebec], esi
je 0x441595
push eax
call fcn.004387c8
pop ecx
call eax
cmp eax, ebx
je 0x441562
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x45ebec]
call fcn.004387c8
pop ecx
call eax
test eax, eax
je 0x441562
test byte [ebp - 0x18], 1
jne 0x441595
lea eax, [ebp - 0xc]
push eax
call fcn.00439854
test eax, eax
pop ecx
je 0x44157d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004337ad
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x44158c
or dword [ebp + 0x10], 0x200000
jmp 0x4415c6
or dword [ebp + 0x10], 0x40000
jmp 0x4415c6
mov eax, dword [0x45ebe0]
cmp eax, esi
je 0x4415c6
push eax
call fcn.004387c8
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4415c6
mov eax, dword [0x45ebe4]
cmp eax, esi
je 0x4415c6
push dword [ebp - 4]
push eax
call fcn.004387c8
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x45ebdc]
call fcn.004387c8
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x402ae4
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.00404544
test esi, esi
jne 0x402b1a
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.00404634
jmp 0x402b38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402998
mov edi, eax
test esi, esi
je 0x402b38
cmp dword [ebx], 0
je 0x402b38
dec esi
jmp 0x402b21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403664
Capabilities:
Query or enumerate registry value

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

Function at 0x4043c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48004c], 0
je 0x404429
cmp word [0x480220], 0xd7b2
jne 0x4043f1
cmp dword [0x480228], 0
jbe 0x4043f1
mov eax, 0x48021c
call dword [0x480238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47d070
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 0x404450
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47d030], 0
jne 0x404445
push 0
push 0x47d068
push 0x47d070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406378
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 0x4063de
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.004047b4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030cc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4063c8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4063e5
lea eax, [ebp - 0x10]
call fcn.00404544
ret

Function at 0x40b854
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 0x40b88d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404634
jmp 0x40b896
mov eax, ebx
mov edx, esi
call fcn.00404598
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bf48
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bdc0
mov eax, dword [0x47f1f4]
cmp byte [eax], 0
je 0x40bfc4
mov eax, dword [0x47ef3c]
call fcn.00402f2c
call fcn.004028c4
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.00408eb8
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 0x40c00c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bffa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47eed0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x480668]
call fcn.0040588c
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 0x40c8b4
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 0x40c98a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045dc
lea eax, [ebp - 8]
call fcn.00404a54
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a04
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c974
mov eax, ebx
call fcn.0040275c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c96d
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.00404a04
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c957
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c99c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c957
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 0x40c974
mov eax, dword [ebp - 0x10]
call fcn.0040277c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c991
lea eax, [ebp - 8]
call fcn.00404544
ret

Function at 0x40cf08
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 0x40cf6c
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.004047b4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004088f8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf73
lea eax, [ebp - 0xc]
call fcn.00404544
ret

Function at 0x41e744
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x480888
cmp dword [edi], 0
jne 0x41e7c0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x480884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47d480
mov ecx, 2
call fcn.00402958
mov edx, 0x41e71c
lea eax, [esi + 5]
call fcn.0041e73c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e73c
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 0x41e795
mov dword [0x480884], 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 0x41fde4
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 0x41fdea
ret
Function at 0x4222b8
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 0x422309
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x4222f0
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x4222e0
jmp 0x422309
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 0x4222f1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f1e8
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.0042ee28
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.00404a04
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42f246
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47f0cc]
mov dl, 1
mov eax, dword [0x42ece0]
call fcn.0040c114
call fcn.00403f80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4340b4
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 0x434000
call sub.user32.dll_EnumWindows
ret

Function at 0x4341d4
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 0x434251
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00433c34
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 0x4341f9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00433834
cmp dword [ebp - 4], 0
je 0x43423b
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404a04
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 0x434258
lea eax, [ebp - 4]
call fcn.00404544
ret
Function at 0x43721c
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 [0x480b58], 0
je 0x43736b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x47f16c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43736b
mov eax, dword [0x480b5c]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x480b58]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43733a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x480b58]
call fcn.00417c80
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x437332
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x437332
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x437332
mov eax, dword [ebp - 0x14]
call fcn.0043feec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x437332
push ebp
call fcn.004371d8
pop ecx
test al, al
jne 0x437332
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x4372ee
mov eax, dword [ebp - 0x14]
call fcn.0043e9e4
dec eax
jle 0x437332
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.004039f0
cmp byte [ebp - 1], 0
je 0x437332
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x437332
mov edx, dword [ebp - 0x14]
mov eax, dword [0x480b5c]
call fcn.004369a4
inc edi
dec ebx
jne 0x437281
mov eax, dword [0x480b5c]
cmp dword [eax + 8], 0
jle 0x437352
mov eax, dword [0x480b5c]
call fcn.00436a34
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43736b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.00437040
pop ecx
test al, al
jne 0x43736b
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 0x43a94c
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 0x43a998
mov eax, esi
call fcn.004501dc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43a998
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x43a998
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 0x43aad7
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x43a9d8
cmp eax, 0x108
ja 0x43a9d8
mov eax, esi
call fcn.004501dc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43aace
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x43aad7
jmp 0x43aace
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x43aab7
cmp eax, 0x20a
ja 0x43aab7
test byte [esi + 0x50], 0x80
jne 0x43aa0a
sub eax, 0x203
je 0x43aa07
sub eax, 3
je 0x43aa07
sub eax, 3
jne 0x43aa0a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x43aa1e
dec eax
je 0x43aa33
dec eax
je 0x43aa50
dec eax
je 0x43aa33
jmp 0x43aa57
mov ecx, ebx
mov eax, dword [0x47f16c]
mov eax, dword [eax]
mov edx, esi
call fcn.00459a40
jmp 0x43aace
cmp byte [esi + 0x5d], 1
jne 0x43aa49
mov eax, esi
mov si, 0xffed
call fcn.004039f0
jmp 0x43aad7
or word [esi + 0x54], 1
jmp 0x43aace
and word [esi + 0x54], 0xfffe
jmp 0x43aace
mov eax, dword [0x480b14]
cmp byte [eax + 0x20], 0
je 0x43aace
mov eax, dword [0x480b14]
cmp dword [eax + 0x1c], 0
je 0x43aace
mov eax, dword [ebx]
mov edx, dword [0x480b14]
cmp eax, dword [edx + 0x1c]
jne 0x43aace
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.00450120
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.004039f0
jmp 0x43aad7
cmp eax, 0xb00b
jne 0x43aace
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0043926c
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