joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101c31ce
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x101fa444], 0x1f19
mov dword [esp], eax
mov dword [esp + 0x24], ecx
call fcn.101c2592
lea ecx, [esp + 0x38]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x74], edx
add ecx, 8
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
lea eax, [0x101c2b2b]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], 0x112200
mov edx, dword [0x101fa430]
mov dword [esp + 0x78], edx
mov edx, dword [0x101fa434]
mov dword [esp + 0x54], edx
mov edx, dword [0x101fa438]
mov dword [esp + 0x5c], edx
mov edx, dword [0x101fa43c]
mov dword [esp + 0x70], edx
mov edx, dword [0x101fa440]
mov dword [esp + 0x84], edx
mov dword [0x101fa448], 0x4bf
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
cmp word [eax], 0x5a4d
mov dword [esp + 0x14], eax
je 0x101c327e
jmp 0x101c3292
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x101c32a6
mov eax, dword [esp + 0x14]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x18], eax
jmp 0x101c3265
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], eax
mov dword [0x101fa448], 0xe73
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x4c], edx
call fcn.101c2b81
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
jne 0x101c3276
lea eax, [esp + 0x38]
mov dword [0x101fa448], 0x341
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101c2cb3
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x10], eax
jmp 0x101c3276
Function at 0x41f271
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41f30e
push ebx
push esi
call fcn.0041f23a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041e01b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f2bb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f30d
push edi
push eax
call fcn.00419e40
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f2db
call fcn.00418ea9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f30c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e01b
add esp, 0x20
test eax, eax
jne 0x41f2fa
push edi
call fcn.00418ea9
jmp 0x41f302
push ebx
call fcn.00418ea9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x426640
Capabilities:
Parse pe header

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

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x17073e50
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..text_1
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x12c733ee
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b004]
jne 0x40100a
repz ret
jmp fcn.00401340

Function at 0x408833
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.0040495c
and dword [ebp - 4], 0
cmp dword [0x42d278], 0
mov ebx, eax
jne 0x4088e4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408995
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408995
push eax
call fcn.004048ea
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42d278], eax
call esi
push eax
call fcn.004048ea
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42d27c], eax
call esi
push eax
call fcn.004048ea
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42d280], eax
call esi
push eax
call fcn.004048ea
pop ecx
mov dword [0x42d288], eax
test eax, eax
je 0x4088e4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004048ea
pop ecx
mov dword [0x42d284], eax
mov eax, dword [0x42d284]
cmp eax, ebx
je 0x40893c
cmp dword [0x42d288], ebx
je 0x40893c
push eax
call fcn.00404965
push dword [0x42d288]
mov esi, eax
call fcn.00404965
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40893c
test edi, edi
je 0x40893c
call esi
test eax, eax
je 0x408933
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408933
test byte [ebp - 0xc], 1
jne 0x40893c
or dword [ebp + 0x10], 0x200000
jmp 0x408975
mov eax, dword [0x42d27c]
cmp eax, ebx
je 0x408975
push eax
call fcn.00404965
pop ecx
test eax, eax
je 0x408975
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408975
mov eax, dword [0x42d280]
cmp eax, ebx
je 0x408975
push eax
call fcn.00404965
pop ecx
test eax, eax
je 0x408975
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42d278]
call fcn.00404965
pop ecx
test eax, eax
je 0x408995
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408997
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42751d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp esi, 0x19f
jne 0x42753d
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push edi
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
xor edx, edx
cmp esi, edi
jle 0x42755d
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
call fcn.00427515
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edx
xor byte [eax], cl
inc edx
cmp edx, esi
jl 0x427543
pop edi
cmp esi, 0x2d
jne 0x427574
or dword [0x4b6684], 0xffffffff
mov dword [0x4b6680], 0xa62e7790
leave
ret
Function at 0x41dd72
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00414b61
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41ddaa
xor eax, eax
jmp 0x41ddd6
cmp esi, dword [ebp - 4]
je 0x41ddd3
cmp dword [ebp + 0xc], 0
je 0x41ddd3
push dword [edi + 0x9c]
call fcn.0041d980
push dword [edi + 0x9c]
mov esi, eax
call fcn.004102c4
pop ecx
pop ecx
cmp esi, eax
je 0x41dda6
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
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 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
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 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x4855a37
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..pdata
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x7c79531e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0xb45d90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x64a000]
push edi
jmp 0xb45daa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb45db1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb45da0
mov eax, 1
add ebx, ebx
jne 0xb45dc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb45dd4
jne 0xb45df3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb45df3
dec eax
add ebx, ebx
jne 0xb45de0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb45db8
add ebx, ebx
jne 0xb45def
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb45e45
xor ecx, ecx
sub eax, 3
jb 0xb45e0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb45e7a
sar eax, 1
mov ebp, eax
jmp 0xb45e16
add ebx, ebx
jne 0xb45e16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb45de4
inc ecx
add ebx, ebx
jne 0xb45e24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb45de4
add ebx, ebx
jne 0xb45e31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb45e26
jne 0xb45e42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb45e26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb45e64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb45e56
jmp 0xb45da6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb45e64
add edi, ecx
jmp 0xb45da6
pop esi
mov edi, esi
mov ecx, 0x699672
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0xb45e9f
cmp byte [edi], 0x2d
jne 0xb45e84
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 0xb45e82
lea edi, [esi + 0x743000]
mov eax, dword [edi]
or eax, eax
je 0xb45ef0
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x745bc0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x745bfc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb45ea5
mov ecx, edi
jns 0xb45ed4
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 + 0x745c04]
or eax, eax
je 0xb45eea
mov dword [ebx], eax
add ebx, 4
jmp 0xb45ec2
call dword [esi + 0x745c00]
mov ebp, dword [esi + 0x745c08]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0xb45f24
sub esp, 0xffffff80
jmp 0x41cafc
Function at 0x403310
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.00405514
test esi, esi
jne 0x403346
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.00405604
jmp 0x403364
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031b4
mov edi, eax
test esi, esi
je 0x403364
cmp dword [ebx], 0
je 0x403364
dec esi
jmp 0x40334d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403b04
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x403b1a
sub ecx, 2
jne 0x403b3c
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x403b43
cmp edx, dword [ebx + 8]
je 0x403b4d
mov eax, 0x64
jmp 0x403b48
mov eax, 0x67
jmp 0x403b48
call sub.kernel32.dll_GetLastError
call fcn.00403008
pop ebx
ret

Function at 0x403e84
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x403ea2
push dword [eax]
call sub.kernel32.dll_SetEndOfFile
dec eax
je 0x403eac
jmp fcn.00403018
mov eax, 0x67
jmp fcn.00403008
ret

Function at 0x404448
Capabilities:
Query or enumerate registry value

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

Function at 0x4052c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x474044], 0
je 0x405321
cmp word [0x474218], 0xd7b2
jne 0x4052e9
cmp dword [0x474220], 0
jbe 0x4052e9
mov eax, 0x474214
call dword [0x474230]
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 0x405348
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x470030], 0
jne 0x40533d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405498
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x470038], 0
je 0x4054be
mov edx, esi
mov eax, ebx
call dword [0x470038]
jmp 0x4054cd
mov eax, 8
call fcn.00402e8c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x474045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405460
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x406ab4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406ce4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406b37
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406ce4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406b37
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406d00
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406bc0
xor eax, eax
push ebp
push 0x406bb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004068f0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406b9e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406d20
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406b9e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406bc0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406cda
cmp byte [ebp - 0xd], 0
jne 0x406c07
cmp byte [ebp - 0x12], 0
je 0x406cda
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406c20
dec ebx
cmp byte [ebx], 0x2e
je 0x406c2f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406c1f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406cda
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406c6c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406cda
cmp byte [ebp - 0xd], 0
je 0x406cda
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406cda
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408be4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408c36
test eax, edx
je 0x408c39
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x408bf9
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x408c1f
add ecx, 4
js 0x408c0f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x408c1c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408c45
test edx, edx
jne 0x408bec
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40968c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.004059c0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4096aa
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4096cb
cmp ebx, 3
je 0x4096cb
cmp ebx, 0x7b
je 0x4096cb
mov eax, esi
call fcn.0040964c
test al, al
jne 0x4096cf
xor eax, eax
jmp 0x4096d1
mov al, 1
pop esi
pop ebx
ret

Function at 0x40ce98
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 0x40ced1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405604
jmp 0x40ceda
mov eax, ebx
mov edx, esi
call fcn.00405568
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cee4
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 0x40cf06
movzx eax, byte [esp]
jmp 0x40cf08
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d598
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d410
mov eax, dword [0x4739e0]
cmp byte [eax], 0
je 0x40d614
mov eax, dword [0x47379c]
call fcn.004037ec
call fcn.00402fe8
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.00409ad8
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 0x40d65c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40d64a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x473754]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4767f0]
call fcn.00406898
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