joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40fc6e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40fc76
mov dword [ecx*4 + 0x456420], eax
inc ecx
cmp ecx, 0x100
jb 0x40fc71
mov edx, 0x800
jmp 0x40fcc3
mov eax, dword [ecx*4 + 0x456020]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x456420]
inc ecx
mov dword [ecx*4 + 0x45641c], eax
cmp ecx, edx
jb 0x40fca2
mov dword [0x452c14], 0x4407c0
call fcn.0040fe77
test eax, eax
pop esi
jne 0x40fce5
mov dword [0x452c14], 0x4406e0
ret
Function at 0x41d66c
Capabilities:
Hash data using crc32b

Disassembly:
xor ecx, ecx
mov eax, ecx
push 8
shl eax, 0x18
pop edx
test eax, eax
jns 0x41d683
add eax, eax
xor eax, 0x4c11db7
jmp 0x41d685
add eax, eax
dec edx
test edx, edx
jg 0x41d676
mov dword [ecx*4 + 0x452c18], eax
inc ecx
cmp ecx, 0x100
jb 0x41d66e
ret
Function at 0x42bc6a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x42bc78
and dword [esi], 0
and dword [ebp + 0x10], 0
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 0
jbe 0x42bcb4
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x42bc92
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp + 8]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x42bcb4
mov ecx, dword [ebp + 0x10]
add dword [esi], ecx
test eax, eax
setne al
push eax
call fcn.0040e0f4
pop ecx
pop esi
pop ebp
ret 0xc

Function at 0x42f4a9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
push edi
mov edi, dword [ebp + 8]
jb 0x42f5f5
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
lea ecx, [edi + ecx - 4]
push ebx
mov dword [ebp - 8], ecx
push esi
lea esi, [eax + edi]
jmp 0x42f4e5
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x42f4ea
inc esi
cmp esi, dword [ebp - 8]
jb 0x42f4dc
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 8]
jae 0x42f5d6
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x42f569
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp - 4], eax
je 0x42f516
cmp cl, 0xff
jne 0x42f598
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
sub edi, eax
sub edi, dword [ebp + 0xc]
test edx, edx
mov ebx, edi
mov dword [ebp - 0xc], ebx
je 0x42f5a9
movzx edi, byte [edx + 0x444ae8]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
shr ebx, cl
test bl, bl
je 0x42f559
cmp bl, 0xff
jne 0x42f5a6
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, dword [ebp - 0xc]
jmp 0x42f531
dec ecx
shl edx, cl
and edx, 7
je 0x42f503
movzx ecx, byte [edx + 0x444ae8]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x444ae0], 0
mov cl, byte [ebx + 4]
je 0x42f595
test cl, cl
je 0x42f595
cmp cl, 0xff
jne 0x42f503
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x42f4d7
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x42f4d7
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
pop edi
leave
ret

Function at 0x42f5f8
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret
Function at 0x42f8df
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x455018], al
inc eax
cmp eax, 0x100
jb 0x42f8e7
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
mov esi, 0xff
movzx ebx, byte [edi + str.cw]
mov eax, ebx
and al, 0x80
neg al
lea ecx, [ebx + ebx]
sbb eax, eax
and eax, 0x1b
xor eax, ecx
and eax, esi
mov ecx, eax
mov edx, ecx
xor edx, ebx
mov dword [ebp - 8], edx
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ebx
shl edx, 8
or edx, ecx
mov eax, edi
shl eax, 2
mov dword [eax + 0x453018], edx
mov edx, ebx
shl edx, 8
mov edi, edx
or edi, ebx
or edx, ecx
shl edi, 8
or edi, ecx
shl edx, 8
or edx, dword [ebp - 8]
shl edi, 8
or edi, dword [ebp - 8]
shl ecx, 8
or ecx, dword [ebp - 8]
shl edx, 8
shl ecx, 8
mov dword [eax + 0x453418], edi
mov edi, dword [ebp - 0x10]
movzx ebx, byte [edi + str.cw]
or edx, ebx
or ecx, ebx
mov dword [eax + 0x453818], edx
shl ecx, 8
or ecx, ebx
mov dword [eax + 0x453c18], ecx
movzx ecx, byte [edi + 0x455018]
mov edx, ecx
and dl, 0x80
neg dl
lea ebx, [ecx + ecx]
mov dword [ebp - 0x18], ecx
sbb edx, edx
and edx, 0x1b
xor edx, ebx
and edx, esi
mov ebx, edx
and bl, 0x80
neg bl
mov dword [ebp - 0x10], edx
sbb ebx, ebx
and ebx, 0x1b
add edx, edx
xor ebx, edx
and ebx, esi
mov edx, ebx
and bl, 0x80
neg bl
mov dword [ebp - 0x14], edx
sbb ebx, ebx
add edx, edx
and ebx, 0x1b
xor ebx, edx
and ebx, esi
mov edx, ebx
xor edx, ecx
mov dword [ebp - 8], edx
mov edx, ebx
xor edx, dword [ebp - 0x10]
xor edx, ecx
mov dword [ebp - 0xc], edx
shl edx, 8
mov ecx, ebx
xor ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
xor ecx, dword [ebp - 0x18]
mov dword [ebp - 4], ecx
or edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
xor ecx, dword [ebp - 0x10]
shl edx, 8
or edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
mov dword [eax + 0x454018], edx
mov edx, dword [ebp - 4]
shl edx, 8
or edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, dword [ebp - 0xc]
mov dword [eax + 0x454418], edx
mov edx, dword [ebp - 8]
shl edx, 8
or edx, ecx
shl ecx, 8
or ecx, dword [ebp - 0xc]
shl edx, 8
or edx, dword [ebp - 0xc]
shl ecx, 8
or ecx, dword [ebp - 4]
shl edx, 8
or edx, dword [ebp - 4]
shl ecx, 8
or ecx, dword [ebp - 8]
inc edi
cmp edi, 0x100
mov dword [eax + 0x454818], edx
mov dword [eax + 0x454c18], ecx
mov dword [ebp - 0x10], edi
jb 0x42f909
mov dword [0x456408], 0x430454
mov dword [0x456410], 0x4304ad
mov dword [0x45640c], 0x430530
call fcn.0040ff34
test eax, eax
pop edi
pop esi
pop ebx
je 0x42fab9
mov dword [0x456408], 0x431143
mov dword [0x456410], 0x431148
mov dword [0x45640c], 0x43114d
leave
ret
Function at 0x42fabb
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
add ecx, 0x10
xor esi, esi
test eax, eax
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
jbe 0x42faf2
mov ebx, dword [edx]
mov dword [ecx + esi*4], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x42fae5
cmp esi, edi
jae 0x42fbc2
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov ebx, dword [ecx + esi*4 - 4]
test edx, edx
mov dword [ebp - 8], eax
jne 0x42fb62
mov edi, 0xff
mov eax, ebx
and eax, edi
mov dh, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
mov dl, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x10
and eax, edi
movzx eax, byte [eax + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x44f430]
shl edx, 8
or edx, eax
movzx eax, bh
movzx eax, byte [eax + str.cw]
shl edx, 8
xor eax, edi
or edx, eax
mov ebx, edx
jmp 0x42fbaa
cmp dword [ebp + 8], 6
jbe 0x42fbaa
cmp edx, 4
jne 0x42fbaa
mov eax, ebx
shr eax, 0x10
mov edi, 0xff
and eax, edi
movzx eax, byte [eax + str.cw]
mov edx, ebx
shr edx, 0x18
mov ah, byte [edx + str.cw]
movzx edx, bh
movzx edx, byte [edx + str.cw]
shl eax, 8
and ebx, edi
or eax, edx
movzx edx, byte [ebx + str.cw]
shl eax, 8
or eax, edx
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, ebx
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x42fb04
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x430db9
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, eax
push edi
lea edi, [esi + 4]
mov eax, edi
call fcn.004210b8
test al, al
je 0x430dd0
pop edi
xor al, al
pop esi
ret
push 0xc
call fcn.0043230e
test eax, eax
pop ecx
je 0x430deb
push esi
push 0x430d6c
mov esi, eax
call fcn.0040eefe
jmp 0x430ded
xor eax, eax
push ebx
mov ebx, eax
call fcn.0040bf95
mov eax, edi
call fcn.0041d57c
pop ebx
pop edi
pop esi
jmp fcn.0040efa9

Function at 0x43228b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e4f8]
jne 0x432295
repz ret
jmp fcn.00435119

Function at 0x435ae0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44e510]
je 0x435afb
inc edi
cmp edi, 0x17
jb 0x435aec
cmp edi, 0x17
jae 0x435c7b
push ebp
push 3
call fcn.0043b78e
cmp eax, 1
pop ecx
je 0x435c47
push 3
call fcn.0043b78e
test eax, eax
pop ecx
jne 0x435b2f
cmp dword [0x44e0f0], 1
je 0x435c47
cmp ebx, 0xfc
je 0x435c7a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4523f8
push ebp
call fcn.0043881a
add esp, 0xc
test eax, eax
je 0x435b65
push esi
push esi
push esi
push esi
push esi
call fcn.00431fec
add esp, 0x14
push 0x104
mov esi, 0x452411
push esi
push 0
mov byte [0x452515], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x435ba9
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043881a
add esp, 0xc
test eax, eax
je 0x435ba9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00431fec
add esp, 0x14
push esi
call fcn.00432200
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x435bee
push esi
call fcn.00432200
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45270c
push 0x441a74
sub ecx, eax
push ecx
push eax
call fcn.00436686
add esp, 0x14
test eax, eax
je 0x435bee
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00431fec
add esp, 0x14
jmp 0x435bf0
xor esi, esi
push 0x441a70
push ebx
push ebp
call fcn.0043b71d
add esp, 0xc
test eax, eax
je 0x435c10
push esi
push esi
push esi
push esi
push esi
call fcn.00431fec
add esp, 0x14
push dword [edi*8 + 0x44e514]
push ebx
push ebp
call fcn.0043b71d
add esp, 0xc
test eax, eax
je 0x435c32
push esi
push esi
push esi
push esi
push esi
call fcn.00431fec
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043b560
add esp, 0xc
jmp 0x435c7a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x435c7a
cmp ebp, 0xffffffff
je 0x435c7a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44e514]
push dword [esi]
call fcn.00432200
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x43b560
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00434a9c
xor ebx, ebx
cmp dword [0x452b34], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43b636
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43b716
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43b716
push eax
call fcn.00434a2e
mov dword [esp], 0x4422f0
push edi
mov dword [0x452b34], eax
call esi
push eax
call fcn.00434a2e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x452b38], eax
call esi
push eax
call fcn.00434a2e
mov dword [0x452b3c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0043557a
test eax, eax
pop ecx
pop ecx
je 0x43b604
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431fec
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43b636
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00434a2e
cmp eax, ebx
pop ecx
mov dword [0x452b44], eax
je 0x43b636
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00434a2e
pop ecx
mov dword [0x452b40], eax
mov eax, dword [0x452b40]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43b6bb
cmp dword [0x452b44], ecx
je 0x43b6bb
push eax
call fcn.00434aa5
push dword [0x452b44]
mov esi, eax
call fcn.00434aa5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43b6bb
cmp edi, ebx
je 0x43b6bb
call esi
cmp eax, ebx
je 0x43b688
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43b688
test byte [ebp - 0x18], 1
jne 0x43b6bb
lea eax, [ebp - 0x10]
push eax
call fcn.004355b1
test eax, eax
pop ecx
je 0x43b6a3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00431fec
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43b6b2
or dword [ebp + 0x10], 0x200000
jmp 0x43b6f6
or dword [ebp + 0x10], 0x40000
jmp 0x43b6f6
mov eax, dword [0x452b38]
cmp eax, dword [ebp - 8]
je 0x43b6f6
push eax
call fcn.00434aa5
cmp eax, ebx
pop ecx
je 0x43b6f6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43b6f6
mov eax, dword [0x452b3c]
cmp eax, dword [ebp - 8]
je 0x43b6f6
push eax
call fcn.00434aa5
cmp eax, ebx
pop ecx
je 0x43b6f6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x452b34]
call fcn.00434aa5
cmp eax, ebx
pop ecx
je 0x43b716
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43b718
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402dfc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e55
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.KERNEL32.DLL_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402c98
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402c98
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e3f
inc ebx
jmp 0x402e28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e5c
lea eax, [ebp - 8]
call fcn.00404434
ret

Function at 0x402e64
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404434
test esi, esi
jne 0x402e9b
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.00404524
jmp 0x402ebc
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402c98
mov dword [esp], eax
test esi, esi
je 0x402ebc
cmp dword [ebx], 0
je 0x402ebc
dec esi
jmp 0x402ea3
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x40352c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x458020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4035c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4035a4
xor eax, eax
push ebp
push 0x40359d
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 0x4035e0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4035a4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x458020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x458020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4042b0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45a04c], 0
je 0x404311
cmp word [0x45a220], 0xd7b2
jne 0x4042d9
cmp dword [0x45a228], 0
jbe 0x4042d9
mov eax, 0x45a21c
call dword [0x45a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45806c
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 0x404338
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x458030], 0
jne 0x40432d
push 0
push 0x458064
push 0x45806c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x4062d0
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 0x406336
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.004046a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030f0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406320
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40633d
lea eax, [ebp - 0x10]
call fcn.00404434
ret

Function at 0x40b678
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 0x40b6b1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404524
jmp 0x40b6ba
mov eax, ebx
mov edx, esi
call fcn.00404488
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c6e4
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 0x40c7ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004044cc
lea eax, [ebp - 8]
call fcn.00404944
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004048f4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c7a4
mov eax, ebx
call fcn.00402a38
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c79d
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.004048f4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c787
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c7cc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c787
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 0x40c7a4
mov eax, dword [ebp - 0x10]
call fcn.00402a68
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c7c1
lea eax, [ebp - 8]
call fcn.00404434
ret
Function at 0x40cc94
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 0x40ccf8
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.004046a4
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004086e8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ccff
lea eax, [ebp - 0xc]
call fcn.00404434
ret

Function at 0x41e0ec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45a888
cmp dword [edi], 0
jne 0x41e168
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45a884]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45847c
mov ecx, 2
call fcn.00402c58
mov edx, 0x41e0c4
lea eax, [esi + 5]
call fcn.0041e0e4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e0e4
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 0x41e13d
mov dword [0x45a884], 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 0x41f38c
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 0x41f392
ret

Function at 0x421804
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 0x421855
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42183c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42182c
jmp 0x421855
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 0x42183d
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42aa50
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.0042a6ec
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.004048f4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42aaae
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4590e8]
mov dl, 1
mov eax, dword [0x42a5a4]
call fcn.0040bf3c
call fcn.00403e48
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Function at 0x42ee3c
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 0x42eeb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042e89c
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
push 0
call sub.KERNEL32.DLL_Sleep_1
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42ee61
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042e49c
cmp dword [ebp - 4], 0
je 0x42eea3
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004048f4
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 0x42eec0
lea eax, [ebp - 4]
call fcn.00404434
ret

Function at 0x431118
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x431168]
test si, 4
je 0x43112c
or bl, 1
test si, 8
je 0x431136
or bl, 4
test si, 1
je 0x431140
or bl, 8
test si, 2
je 0x43114a
or bl, 0x10
test si, 0x10
je 0x431154
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431163
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43116c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4311a4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431185
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x431194
or bl, 4
test esi, 0x20000000
je 0x43119f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret