joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4077a0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40d4e8
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x4077c4
add eax, 8
inc ebp
cmp eax, 0x40d578
jb 0x4077b5
cmp ecx, dword [ebp*8 + 0x40d4e8]
jne 0x40796b
mov eax, dword [0x40d7e0]
cmp eax, 1
je 0x40792d
test eax, eax
jne 0x4077f0
cmp dword [0x40b1b4], 1
je 0x40792d
cmp ecx, 0xfc
je 0x40796b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40782b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x407874
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4092e8
add ebx, ecx
push ebx
call fcn.00407980
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4092c8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40d4ec]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00407a80
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40f140]
test eax, eax
je 0x40793e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x407948
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40d4ec]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x56cff0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd3000]
push edi
or ebp, 0xffffffff
jmp 0x56d012
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x56d019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x56d008
mov eax, 1
add ebx, ebx
jne 0x56d02b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x56d020
jne 0x56d03c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x56d020
xor ecx, ecx
sub eax, 3
jb 0x56d050
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x56d0c2
mov ebp, eax
add ebx, ebx
jne 0x56d05b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x56d068
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x56d08c
inc ecx
add ebx, ebx
jne 0x56d078
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x56d06d
jne 0x56d089
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x56d06d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x56d0ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x56d09d
jmp 0x56d00e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x56d0ac
add edi, ecx
jmp 0x56d00e
pop esi
mov edi, esi
mov ecx, 0x5b49
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x56d0ca
cmp byte [edi], 0x2a
jne 0x56d0ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x56d0cf
lea edi, [esi + 0x169000]
mov eax, dword [edi]
or eax, eax
je 0x56d147
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x172cb4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x172df4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x56d0fc
mov ecx, edi
jns 0x56d12b
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 + 0x172df8]
or eax, eax
je 0x56d141
mov dword [ebx], eax
add ebx, 4
jmp 0x56d119
call dword [esi + 0x172e00]
mov ebp, dword [esi + 0x172dfc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x56d17b
sub esp, 0xffffff80
jmp 0x4b1c1f
Function at 0x4e4b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp + 8], eax
mov eax, dword [0x4e40ac]
push esi
push edi
test eax, eax
jne 0x4e4bcd
mov esi, 0x4e4284
mov edx, dword [esi]
lea eax, [ebp - 0x24]
mov cl, byte [edx]
test cl, cl
je 0x4e4b8b
lea edi, [ebp - 0x24]
sub edx, edi
xor cl, 0x55
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
inc eax
test cl, cl
jne 0x4e4b7d
lea ecx, [ebp - 0x24]
mov byte [eax], 0
push ecx
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov edx, dword [esi - 4]
add esi, 8
cmp esi, 0x4e429c
mov dword [edx], eax
jl 0x4e4b6d
mov ecx, dword [0x4e40ac]
mov eax, dword [sym.imp.kernel32.dll_GetModuleHandleA]
push 0
push 0x4e42ac
push ecx
mov dword [0x4e40a4], eax
call fcn.004e4d80
add esp, 0xc
mov dword [0x4e40a8], eax
mov dword [ebp - 4], 0
mov esi, 0x4e4284
mov edx, dword [esi]
mov cl, byte [edx]
test cl, cl
je 0x4e4c16
mov eax, dword [ebp + 8]
mov al, byte [eax]
test al, al
je 0x4e4c16
cmp al, 0x5a
jg 0x4e4c02
cmp al, 0x41
jl 0x4e4c02
movsx edi, al
add edi, 0x20
movsx ebx, cl
xor edi, 0x55
cmp ebx, edi
je 0x4e4c08
xor al, 0x55
cmp cl, al
jne 0x4e4c16
mov ecx, dword [ebp + 8]
inc edx
inc ecx
mov dword [ebp + 8], ecx
mov cl, byte [edx]
test cl, cl
jne 0x4e4be1
cmp byte [edx], 0
je 0x4e4c36
mov edx, dword [ebp - 4]
add esi, 8
inc edx
cmp esi, 0x4e429c
mov dword [ebp - 4], edx
jl 0x4e4bd9
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov edx, dword [ecx*8 + 0x4e4280]
mov eax, dword [edx]
mov esp, ebp
pop ebp
ret
Function at 0x1017d73
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1005140
call fcn.01017f40
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1017db0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1017db0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1017dc8
cmp eax, 0x20b
je 0x1017db5
mov dword [ebp - 0x1c], ebx
jmp 0x1017ddc
cmp dword [ecx + 0x84], 0xe
jbe 0x1017db0
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1017dd6
cmp dword [ecx + 0x74], 0xe
jbe 0x1017db0
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1025904], 0xffffffff
or dword [0x1025908], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10258fc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10258f8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1025900], eax
call fcn.0101827c
cmp dword [0x101ac70], ebx
jne 0x1017e37
push fcn.0101827c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01018265
push 0x101a020
push 0x101a01c
call sub.msvcrt.dll__initterm
mov eax, dword [0x10258f4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10258f0]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x101a018
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x1017ecd
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1017ea1
cmp al, 0x22
jne 0x1017e93
cmp byte [esi], 0x22
jne 0x1017eaa
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x1017eb4
cmp al, 0x20
jbe 0x1017ea6
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1017ed8
movzx eax, word [ebp - 0x50]
jmp 0x1017edb
cmp byte [esi], 0x20
jbe 0x1017eaa
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1017ecd
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1017ef8
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1017f2d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01017f7b
ret
Function at 0x402e04
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040441c
test esi, esi
jne 0x402e3b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.0040450c
jmp 0x402e5c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ca0
mov dword [esp], eax
test esi, esi
je 0x402e5c
cmp dword [ebx], 0
je 0x402e5c
dec esi
jmp 0x402e43
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403504
Capabilities:
Query or enumerate registry value

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

Function at 0x404298
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x469048], 0
je 0x4042f9
cmp word [0x46921c], 0xd7b2
jne 0x4042c1
cmp dword [0x469224], 0
jbe 0x4042c1
mov eax, 0x469218
call dword [0x469234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46706c
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 0x404320
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x467030], 0
jne 0x404315
push 0
push 0x467064
push 0x46706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406070
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 0x4060d6
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.0040468c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030c8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4060c0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060dd
lea eax, [ebp - 0x10]
call fcn.0040441c
ret

Function at 0x40b6cc
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 0x40b705
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040450c
jmp 0x40b70e
mov eax, ebx
mov edx, esi
call fcn.00404470
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bdd0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bc38
mov eax, dword [0x46828c]
cmp byte [eax], 0
je 0x40be4c
mov eax, dword [0x468068]
call fcn.00402f34
call fcn.00402bcc
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.00408d6c
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 0x40be94
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be82
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x468004]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x469664]
call fcn.004054dc
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 0x40c714
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 0x40c7ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004044b4
lea eax, [ebp - 8]
call fcn.0040492c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004048dc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c7d4
mov eax, ebx
call fcn.00402a40
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c7cd
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.004048dc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c7b7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c7fc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c7b7
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 0x40c7d4
mov eax, dword [ebp - 0x10]
call fcn.00402a70
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7f1
lea eax, [ebp - 8]
call fcn.0040441c
ret

Function at 0x40cd50
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 0x40cdb4
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.0040468c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040886c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cdbb
lea eax, [ebp - 0xc]
call fcn.0040441c
ret

Function at 0x41bb14
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x469884
cmp dword [edi], 0
jne 0x41bb90
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x469880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x46746c
mov ecx, 2
call fcn.00402c60
mov edx, 0x41baec
lea eax, [esi + 5]
call fcn.0041bb0c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041bb0c
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 0x41bb65
mov dword [0x469880], 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 0x41d164
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 0x41d16a
ret
Function at 0x41f7dc
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 0x41f82d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41f814
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41f804
jmp 0x41f82d
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 0x41f815
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c0c0
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 0x43c00c
call sub.user32.dll_EnumWindows
ret

Function at 0x43c1e0
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 0x43c25d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0043bc40
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 0x43c205
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0043b840
cmp dword [ebp - 4], 0
je 0x43c247
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004048dc
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 0x43c264
lea eax, [ebp - 4]
call fcn.0040441c
ret

Function at 0x43f560
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 [0x469b5c], 0
je 0x43f6af
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x468220]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x43f6af
mov eax, dword [0x469b60]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x469b5c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x43f67e
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x469b5c]
call fcn.00414878
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x43f676
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x43f676
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x43f676
mov eax, dword [ebp - 0x14]
call fcn.004481f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x43f676
push ebp
call fcn.0043f51c
pop ecx
test al, al
jne 0x43f676
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43f632
mov eax, dword [ebp - 0x14]
call fcn.00446d28
dec eax
jle 0x43f676
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.00403898
cmp byte [ebp - 1], 0
je 0x43f676
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x43f676
mov edx, dword [ebp - 0x14]
mov eax, dword [0x469b60]
call fcn.0043ece8
inc edi
dec ebx
jne 0x43f5c5
mov eax, dword [0x469b60]
cmp dword [eax + 8], 0
jle 0x43f696
mov eax, dword [0x469b60]
call fcn.0043ed78
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43f6af
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0043f384
pop ecx
test al, al
jne 0x43f6af
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 0x442c90
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 0x442cdc
mov eax, esi
call fcn.00458554
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x442cdc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x442cdc
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 0x442e1b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x442d1c
cmp eax, 0x108
ja 0x442d1c
mov eax, esi
call fcn.00458554
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x442e12
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x442e1b
jmp 0x442e12
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x442dfb
cmp eax, 0x20a
ja 0x442dfb
test byte [esi + 0x50], 0x80
jne 0x442d4e
sub eax, 0x203
je 0x442d4b
sub eax, 3
je 0x442d4b
sub eax, 3
jne 0x442d4e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x442d62
dec eax
je 0x442d77
dec eax
je 0x442d94
dec eax
je 0x442d77
jmp 0x442d9b
mov ecx, ebx
mov eax, dword [0x468220]
mov eax, dword [eax]
mov edx, esi
call fcn.00461e44
jmp 0x442e12
cmp byte [esi + 0x5d], 1
jne 0x442d8d
mov eax, esi
mov si, 0xffed
call fcn.00403898
jmp 0x442e1b
or word [esi + 0x54], 1
jmp 0x442e12
and word [esi + 0x54], 0xfffe
jmp 0x442e12
mov eax, dword [0x469b18]
cmp byte [eax + 0x20], 0
je 0x442e12
mov eax, dword [0x469b18]
cmp dword [eax + 0x1c], 0
je 0x442e12
mov eax, dword [ebx]
mov edx, dword [0x469b18]
cmp eax, dword [edx + 0x1c]
jne 0x442e12
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.00458498
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.00403898
jmp 0x442e1b
cmp eax, 0xb00b
jne 0x442e12
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.004415b0
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