joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101a8001
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x10232718]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x101a8045
cmp word [edx], bx
jne 0x101a8045
or byte [edi + eax + 0x28], 4
jmp 0x101a804a
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x101a819e
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x101a817e
cmp ax, word [ebp - 0x10]
je 0x101a8083
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x101a8173
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x101a80a9
push 0xa
pop ecx
cmp word [eax], cx
jne 0x101a8099
push ecx
pop eax
push 4
jmp 0x101a809e
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x101a816d
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101a8164
cmp dword [ebp - 0x18], 0
je 0x101a8164
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x10232718]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x101a8130
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x101a80f4
mov word [esi], ax
jmp 0x101a8128
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x10232718]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x10232718]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x10232718]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x101a8173
cmp word [ebp - 4], ax
jne 0x101a8145
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x101a8145
mov word [esi], ax
add esi, 2
jmp 0x101a8173
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1019d18d
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x101a8170
jmp 0x101a8167
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x101a8063
jmp 0x101a819e
mov ecx, dword [ecx*4 + 0x10232718]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x101a8195
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x101a819e
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101ad646
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101ad2e8

Function at 0x1f2a0b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1974000]
push edi
or ebp, 0xffffffff
jmp 0x1f2a0d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1f2a0d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f2a0c8
mov eax, 1
add ebx, ebx
jne 0x1f2a0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1f2a0fc
jne 0x1f2a11b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f2a11b
dec eax
add ebx, ebx
jne 0x1f2a108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1f2a0e0
add ebx, ebx
jne 0x1f2a117
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1f2a16d
xor ecx, ecx
sub eax, 3
jb 0x1f2a133
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1f2a1a2
sar eax, 1
mov ebp, eax
jmp 0x1f2a13e
add ebx, ebx
jne 0x1f2a13e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f2a10c
inc ecx
add ebx, ebx
jne 0x1f2a14c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f2a10c
add ebx, ebx
jne 0x1f2a159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1f2a14e
jne 0x1f2a16a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1f2a14e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1f2a18c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1f2a17e
jmp 0x1f2a0ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1f2a18c
add edi, ecx
jmp 0x1f2a0ce
pop esi
mov edi, esi
mov ecx, 0x4ca7fd
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x1f2a1c7
cmp byte [edi], 0x65
jne 0x1f2a1ac
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1f2a1aa
lea edi, [esi + 0x1aee000]
mov eax, dword [edi]
or eax, eax
je 0x1f2a20f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2fb7d1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2fb7e4c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1f2a1cd
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2fb7e54]
or eax, eax
je 0x1f2a209
mov dword [ebx], eax
add ebx, 4
jmp 0x1f2a1ea
call dword [esi + 0x2fb7e50]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1f2a240
cmp al, 0xef
ja 0x1f2a233
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1f2a215
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1f2a222
mov ebp, dword [esi + 0x2fb7e58]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x1f2a274
sub esp, 0xffffff80
jmp 0x92006c
Function at 0x4088ca
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, ecx
xor ecx, ecx
test edi, edi
je 0x408938
test edx, edx
je 0x408938
mov eax, dword [esp + 0x18]
test eax, eax
je 0x408904
mov ebp, 0x1505
xor ecx, ecx
movzx esi, byte [edx + ecx]
test esi, esi
je 0x40890b
mov ebx, ebp
shl ebx, 5
add ebx, ebp
add ebx, esi
inc ecx
mov ebp, ebx
cmp eax, ecx
jne 0x4088ea
jmp 0x40890d
mov ebx, 0x1505
jmp 0x40890d
mov ebx, ebp
mov esi, esp
mov dword [esi], 0
mov ecx, edi
push esi
push ebx
push eax
call fcn.00408c52
add esp, 0xc
cmp dword [esi], 0
mov ecx, 0
je 0x408938
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0x10]
mov eax, dword [ecx + eax*4]
mov ecx, dword [edx + eax*4]
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x408b61
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
xor eax, eax
dec eax
test ecx, ecx
je 0x408c4a
mov edi, edx
test edx, edx
je 0x408c4a
cmp dword [esp + 0x18], 0
je 0x408c4a
mov esi, ecx
push edi
call fcn.0043ff10
add esp, 4
test eax, eax
je 0x408bb6
mov edx, 0x1505
xor ecx, ecx
movzx ebx, byte [edi + ecx]
test ebx, ebx
je 0x408bbd
mov ebp, edx
shl ebp, 5
add ebp, edx
add ebp, ebx
inc ecx
mov edx, ebp
cmp eax, ecx
jne 0x408b9c
jmp 0x408bbf
mov ebp, 0x1505
jmp 0x408bbf
mov ebp, edx
mov ebx, esp
mov dword [ebx], 0
mov ecx, esi
mov edx, edi
push ebx
push ebp
push eax
call fcn.00408c52
add esp, 0xc
cmp dword [ebx], 0
je 0x408be0
xor eax, eax
dec eax
jmp 0x408c4a
mov ecx, dword [esi + 0x18]
cmp ecx, dword [esi + 0x1c]
jb 0x408c13
mov ecx, esi
call fcn.00408cf7
test eax, eax
mov eax, 0xffffffff
jne 0x408c4a
push edi
call fcn.0043ff10
add esp, 4
mov ecx, esi
mov edx, edi
push ebx
push ebp
push eax
call fcn.00408c52
add esp, 0xc
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0xc]
mov dword [edx + ecx*4], edi
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x18]
mov dword [ecx + eax*4], edx
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x18]
mov edi, dword [esp + 0x18]
mov dword [ecx + edx*4], edi
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov dword [ecx + edx*4], eax
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0x18]
mov dword [eax + ecx*4], ebp
inc dword [esi + 0x18]
mov eax, dword [esi]
mov dword [edi], eax
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x416358
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x416457
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
movzx edi, cx
shr ecx, 0x10
test esi, esi
je 0x416450
mov edx, 0x5e6ea9af
mov eax, esi
mul edx
shr edx, 0xb
imul eax, edx, 0x15b0
mov ebp, esi
sub ebp, eax
xor edx, edx
cmp ebp, 8
mov dword [esp], esi
jb 0x416401
xor esi, esi
mov eax, esi
movzx edx, byte [ebx + esi]
add edx, edi
add ecx, edx
movzx esi, byte [ebx + esi + 1]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 2]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 3]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 4]
add edx, esi
add ecx, edx
movzx esi, byte [ebx + eax + 5]
add esi, edx
add ecx, esi
movzx edx, byte [ebx + eax + 6]
add edx, esi
add ecx, edx
movzx edi, byte [ebx + eax + 7]
add edi, edx
add ecx, edi
lea esi, [eax + 8]
add eax, 0xf
cmp eax, ebp
jb 0x4163a1
mov edx, ebp
and edx, 0x1ff8
add ebx, esi
mov esi, dword [esp]
mov eax, ebp
sub eax, edx
jbe 0x41641b
xor edx, edx
movzx esi, byte [ebx + edx]
add edi, esi
add ecx, edi
inc edx
cmp eax, edx
jne 0x416409
add ebx, eax
mov esi, dword [esp]
mov eax, edi
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub edi, eax
mov eax, ecx
mov edx, 0x80078071
mul edx
shr edx, 0xf
imul eax, edx, 0xfff1
sub ecx, eax
sub esi, ebp
mov ebp, 0x15b0
jne 0x416395
shl ecx, 0x10
or ecx, edi
jmp 0x41645a
xor ecx, ecx
inc ecx
mov eax, ecx
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x416464
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
not ebx
cmp ecx, 4
jb 0x4164d9
mov eax, 0xff
mov esi, ebx
shr esi, 8
movzx edi, byte [edx]
and ebx, eax
xor ebx, edi
xor esi, dword [ebx*4 + 0x4510b0]
mov edi, esi
shr edi, 8
movzx ebx, byte [edx + 1]
and esi, eax
xor esi, ebx
xor edi, dword [esi*4 + 0x4510b0]
mov esi, edi
shr esi, 8
movzx ebx, byte [edx + 2]
and edi, eax
xor edi, ebx
xor esi, dword [edi*4 + 0x4510b0]
mov ebx, esi
shr ebx, 8
movzx edi, byte [edx + 3]
and esi, eax
xor esi, edi
xor ebx, dword [esi*4 + 0x4510b0]
add edx, 4
add ecx, 0xfffffffc
cmp ecx, 3
ja 0x41647f
test ecx, ecx
je 0x4164fd
xor esi, esi
mov eax, ebx
shr eax, 8
movzx edi, byte [edx + esi]
movzx ebx, bl
xor ebx, edi
xor eax, dword [ebx*4 + 0x4510b0]
inc esi
mov ebx, eax
cmp ecx, esi
jne 0x4164e1
jmp 0x4164ff
mov eax, ebx
not eax
pop esi
pop edi
pop ebx
ret
Function at 0x436714
Capabilities:
Get os information via kuser_shared_data
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x114
mov esi, dword [esp + 0x128]
mov dword [esp], 0x80f96277

Function at 0x438933
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x45ac0c]
test eax, eax
je 0x438972
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x438972
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x438972
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x438972
cmp dword [ecx + 0x74], 0xe
jbe 0x438972
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x443d10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x443d3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x443d3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4030d8
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.00404804
test esi, esi
jne 0x40310e
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.004048f4
jmp 0x40312c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402f7c
mov edi, eax
test esi, esi
je 0x40312c
cmp dword [ebx], 0
je 0x40312c
dec esi
jmp 0x403115
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037f8
Capabilities:
Query or enumerate registry value

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

Function at 0x404684
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x458048], 0
je 0x4046e5
cmp word [0x45821c], 0xd7b2
jne 0x4046ad
cmp dword [0x458224], 0
jbe 0x4046ad
mov eax, 0x458218
call dword [0x458234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
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 0x40470c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45602c], 0
jne 0x404701
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408194
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408224
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408224
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4081d7
test edx, 3
jne 0x4081c6
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4081d1
jmp 0x4081d7
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4081d7
cmp dword [ecx - 8], 1
je 0x4081e1
mov edx, ebx
or edx, 3
call fcn.00404f50
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4081f3
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404804

Function at 0x408230
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4082c0
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4082c0
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408273
test edx, 3
jne 0x408262
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x40826d
jmp 0x408273
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408273
cmp dword [ecx - 8], 1
je 0x40827d
mov edx, ebx
or edx, 3
call fcn.00404f50
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x40828f
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404804

Function at 0x40b4f8
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 0x40b531
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004048f4
jmp 0x40b53a
mov eax, ebx
mov edx, esi
call fcn.00404858
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b544
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 0x40b566
movzx eax, byte [esp]
jmp 0x40b568
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bbf8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ba70
mov eax, dword [0x457990]
cmp byte [eax], 0
je 0x40bc74
mov eax, dword [0x4577c4]
call fcn.004031c0
call fcn.00402de8
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.00408c90
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 0x40bcbc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bcaa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x457770]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45a7f4]
call fcn.00405984
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 0x40c508
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c5de
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040489c
lea eax, [ebp - 4]
call fcn.00404d18
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404cc8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c5c8
mov eax, ebx
call fcn.00402c8c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c5c1
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 - 4]
call fcn.00404cc8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c5ab
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c5f0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c5ab
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5c8
mov eax, dword [ebp - 0x10]
call fcn.00402ca8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c5e5
lea eax, [ebp - 4]
call fcn.00404804
ret
Function at 0x41b190
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45b300
cmp dword [edi], 0
jne 0x41b20c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45b2fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x456ad4
mov ecx, 2
call fcn.00402e7c
mov edx, 0x41b168
lea eax, [esi + 5]
call fcn.0041b188
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041b188
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 0x41b1e1
mov dword [0x45b2fc], 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 0x41d884
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
movzx eax, byte [ebp + 8]
call fcn.0041d2dc
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.00404cc8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x41d8e3
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4578c8]
mov dl, 1
mov eax, dword [0x41d1d4]
call fcn.0040bdb8
call fcn.0040424c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41d8ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404cc8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41d944
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x457a9c]
mov dl, 1
mov eax, dword [0x41d1d4]
call fcn.0040bdb8
call fcn.0040424c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041d30c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41e8b4
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 0x41e8ba
ret
Function at 0x429128
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404804
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x429176
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404a74
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42d1f8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42d32b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0x16]
push eax
call sub.user32.dll_GetKeyboardLayoutNameA
mov dl, 1
mov eax, dword [0x41d234]
call fcn.0041d334
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x42d301
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0041d410
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x16]
mov ecx, 0xa
call fcn.00404a74
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, 0x42d340
call fcn.00404b14
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041d598
lea ecx, [ebp - 4]
mov edx, 0x42d37c
mov eax, dword [ebp - 0xc]
call fcn.0041d7f8
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0040d81c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x42d2e4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x42d388
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x45742c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42d2eb
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret

Function at 0x42d3d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x42d41f
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42d402
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x42d413
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x42d41f
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret