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

Disassembly:
cmp dword [0x422254], 0
push esi
jne 0x405f39
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f13
mov dword [ecx*4 + 0x422250], eax
inc ecx
cmp ecx, 0x100
jl 0x405f0e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f6a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422250]
xor eax, esi
inc ecx
dec edx
jne 0x405f4c
pop edi
not eax
pop esi
ret 0xc

Function at 0xa64058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a641a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa6407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa6406a
add dl, dl
jne 0xa64089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa640dc
xor eax, eax
add dl, dl
jne 0xa64096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa6417d
add dl, dl
jne 0xa640a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa640b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa640bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa640c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa640d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa64075
mov eax, 1
add dl, dl
jne 0xa640ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa640f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa640e1
sub eax, ebx
mov ebx, 1
jne 0xa64128
mov ecx, 1
add dl, dl
jne 0xa6410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa64119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa64105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa64075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa6413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa6414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa64136
cmp eax, 0x7d00
jae 0xa6416d
cmp eax, 0x500
jb 0xa64168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa64075
cmp eax, 0x7f
ja 0xa64170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa64075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa6419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa64075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xc88058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c881a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc8807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc8806a
add dl, dl
jne 0xc88089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc880dc
xor eax, eax
add dl, dl
jne 0xc88096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc8817d
add dl, dl
jne 0xc880a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc880b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc880bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc880c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc880d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc88075
mov eax, 1
add dl, dl
jne 0xc880ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc880f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc880e1
sub eax, ebx
mov ebx, 1
jne 0xc88128
mov ecx, 1
add dl, dl
jne 0xc8810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc88119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc88105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc88075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc8813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc8814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc88136
cmp eax, 0x7d00
jae 0xc8816d
cmp eax, 0x500
jb 0xc88168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc88075
cmp eax, 0x7f
ja 0xc88170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc88075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc8819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc88075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4685e7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0045b812
and dword [ebp - 4], 0
cmp dword [0x4a2848], 0
mov ebx, eax
jne 0x468698
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x468749
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x468749
push eax
call fcn.0045b7a0
mov dword [esp], 0x484ae0
push edi
mov dword [0x4a2848], eax
call esi
push eax
call fcn.0045b7a0
mov dword [esp], 0x484acc
push edi
mov dword [0x4a284c], eax
call esi
push eax
call fcn.0045b7a0
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a2850], eax
call esi
push eax
call fcn.0045b7a0
pop ecx
mov dword [0x4a2858], eax
test eax, eax
je 0x468698
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0045b7a0
pop ecx
mov dword [0x4a2854], eax
mov eax, dword [0x4a2854]
cmp eax, ebx
je 0x4686f0
cmp dword [0x4a2858], ebx
je 0x4686f0
push eax
call fcn.0045b81b
push dword [0x4a2858]
mov esi, eax
call fcn.0045b81b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4686f0
test edi, edi
je 0x4686f0
call esi
test eax, eax
je 0x4686e7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4686e7
test byte [ebp - 0xc], 1
jne 0x4686f0
or dword [ebp + 0x10], 0x200000
jmp 0x468729
mov eax, dword [0x4a284c]
cmp eax, ebx
je 0x468729
push eax
call fcn.0045b81b
pop ecx
test eax, eax
je 0x468729
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x468729
mov eax, dword [0x4a2850]
cmp eax, ebx
je 0x468729
push eax
call fcn.0045b81b
pop ecx
test eax, eax
je 0x468729
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a2848]
call fcn.0045b81b
pop ecx
test eax, eax
je 0x468749
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46874b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x7a6fd4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7a6fde
pushal
call 0x7a6fe4
pop ebp
sub ebp, 0x10
sub ebp, 0x3a6fd4
mov al, byte [esp + 0x28]
cmp al, 1
je 0x7a7008
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x7a7011
mov eax, 0x3a6fd4
add eax, ebp
add eax, 0x63
mov ecx, 0x611
mov edx, 0xe8f54bd4
xor byte [eax], dl
inc eax
dec ecx
jne 0x7a7028
jmp 0x7a703b
pop edi
sbb dword [edi + 0x5d], ebx
call 0x564f4518
adc eax, 0xd4d4d42c
xlatb
sbb dword [eax + edx*8 - 0x2c], ebp
aam 0xd4
outsb dx, byte [esi]
cld
aam 0xd4
aam 0x23
xlatb
sbb al, 0x5f
push ebp
fcom st(4)
aam 0xd4
xlatb
adc dword [ecx - 0x50], ebx
lock sub byte [ebp - 0x30], bl
invalid
Function at 0x674210
Capabilities:
Encode data using xor

Disassembly:
pop edx
inc edx
push edx
mov ecx, 0x2d
xor eax, eax
mov eax, dword [edx]
xor eax, 1
mov dword [edx], eax
inc edx
loop 0x67421a
pop edx
mov eax, esp
mov ebx, dword fs:[0]
mov dword [edx + 1], eax
mov dword [edx + 6], ebx
push edx
push dword fs:[0]
mov dword fs:[0], esp
dec esi
dec byte [edx]
test dword [esi], eax
je 0x674243
call fcn.0067425f
popal
nop
nop
nop
nop
mov eax, 0x4019a0
jmp eax

Function at 0x67425f
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x45
mov eax, dword [edx]
xor eax, 0x1337
mov dword [edx], eax
loop 0x674264
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x650d60a7
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x38996cdc
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x402e44
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 0x402e9d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402ce0
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402ce0
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e87
inc ebx
jmp 0x402e70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ea4
lea eax, [ebp - 8]
call fcn.00404550
ret

Function at 0x402eac
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404550
test esi, esi
jne 0x402ee3
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.00404640
jmp 0x402f04
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ce0
mov dword [esp], eax
test esi, esi
je 0x402f04
cmp dword [ebx], 0
je 0x402f04
dec esi
jmp 0x402eeb
add esp, 0x10c
pop esi
pop ebx
ret

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

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

Function at 0x4035b8
Capabilities:
Query or enumerate registry value

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

Function at 0x4043cc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46004c], 0
je 0x40442d
cmp word [0x460220], 0xd7b2
jne 0x4043f5
cmp dword [0x460228], 0
jbe 0x4043f5
mov eax, 0x46021c
call dword [0x460238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45e070
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 0x404454
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45e034], 0
jne 0x404449
push 0
push 0x45e068
push 0x45e070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406488
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 0x4064ee
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.004047c0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040317c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4064d8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4064f5
lea eax, [ebp - 0x10]
call fcn.00404550
ret

Function at 0x407560
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
call fcn.004074dc
mov dword [0x45e11c], eax
cmp dword [0x45e11c], 0
jbe 0x4075a5
push 0
push 0
push 0
push 4
mov eax, dword [0x45e11c]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x45e120], eax
cmp dword [0x45e120], 0
je 0x4075a5
mov eax, dword [0x45e120]
mov eax, dword [eax]
mov dword [0x45e0d0], eax
cmp dword [0x45e0d0], 0
je 0x4075d5
mov eax, dword [0x45e0d0]
cmp dword [eax], 0
je 0x4075d5
mov byte [0x45e124], 1
mov eax, 0x460684
call fcn.00402ae8
mov eax, dword [0x45e0d0]
mov eax, dword [eax]
call fcn.00402b04
pop ebp
ret

Function at 0x40b938
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 0x40b971
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404640
jmp 0x40b97a
mov eax, ebx
mov edx, esi
call fcn.004045a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b984
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 0x40b9a5
mov al, byte [esp]
jmp 0x40b9a7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c03c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bea4
mov eax, dword [0x45f1f8]
cmp byte [eax], 0
je 0x40c0b8
mov eax, dword [0x45eff8]
call fcn.00402fcc
call fcn.00402c0c
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.00409020
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 0x40c100
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c0ee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45efa4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x460668]
call fcn.00405888
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 0x40c9a4
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 0x40ca7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004045e8
lea eax, [ebp - 8]
call fcn.00404a60
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a10
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ca64
mov eax, ebx
call fcn.00402a48
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ca5d
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.00404a10
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40ca47
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ca8c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40ca47
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 0x40ca64
mov eax, dword [ebp - 0x10]
call fcn.00402a78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca81
lea eax, [ebp - 8]
call fcn.00404550
ret

Function at 0x40cf54
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 0x40cfb8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004047c0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408aa4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfbf
lea eax, [ebp - 0xc]
call fcn.00404550
ret
Function at 0x41e490
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46089c
cmp dword [edi], 0
jne 0x41e50c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x460898]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45e464
mov ecx, 2
call fcn.00402ca0
mov edx, 0x41e468
lea eax, [esi + 5]
call fcn.0041e488
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041e488
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 0x41e4e1
mov dword [0x460898], 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 0x41ffb0
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.00404a10
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x420008
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x45f324]
mov dl, 1
mov eax, dword [0x41fb68]
call fcn.0040c1fc
call fcn.00403edc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041fc70
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 0x4237b8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff3c
push ebx
push esi
push edi
mov byte [ebp - 1], 0
lea eax, [ebp - 0xc4]
push eax
call sub.kernel32.dll_GetSystemInfo
xor eax, eax
push ebp
push 0x4238e9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x9d]
call fcn.00423a94
test al, al
jne 0x4237fe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4238fa
mov eax, dword [ebp - 0x99]
sub eax, 4
je 0x423818
dec eax
je 0x42384a
dec eax
je 0x4238ae
jmp 0x4238df
mov eax, dword [ebp - 0x95]
sub eax, 1
jb 0x42382f
je 0x423838
sub eax, 8
je 0x423841
jmp 0x4238df
mov byte [ebp - 1], 1
jmp 0x4238df
mov byte [ebp - 1], 2
jmp 0x4238df
mov byte [ebp - 1], 3
jmp 0x4238df
mov eax, dword [ebp - 0x95]
sub eax, 1
jb 0x42385f
je 0x423871
dec eax
je 0x423877
jmp 0x4238df
cmp byte [ebp - 3], 1
jne 0x42386b
mov byte [ebp - 1], 4
jmp 0x4238df
mov byte [ebp - 1], 5
jmp 0x4238df
mov byte [ebp - 1], 6
jmp 0x4238df
cmp byte [ebp - 3], 1
jne 0x42388b
cmp word [ebp - 0xc4], 9
jne 0x42388b
mov byte [ebp - 1], 7
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
jne 0x42389c
mov byte [ebp - 1], 8
jmp 0x4238a0
mov byte [ebp - 1], 0xa
cmp word [ebp - 5], 0x8000
jne 0x4238df
mov byte [ebp - 1], 9
jmp 0x4238df
mov eax, dword [ebp - 0x95]
sub eax, 1
jb 0x4238bd
je 0x4238cf
jmp 0x4238df
cmp byte [ebp - 3], 1
jne 0x4238c9
mov byte [ebp - 1], 0xb
jmp 0x4238df
mov byte [ebp - 1], 0xc
jmp 0x4238df
cmp byte [ebp - 3], 1
jne 0x4238db
mov byte [ebp - 1], 0xe
jmp 0x4238df
mov byte [ebp - 1], 0xd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4238fa
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4264c8
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 0x4264ce
ret

Function at 0x428940
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 0x428991
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x428978
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x428968
jmp 0x428991
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 0x428979
pop ebx
mov esp, ebp
pop ebp
ret