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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x44606c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4085a0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413261
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4085dc
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4085dc
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413261
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4086c3
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x408604
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x408637
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.00417ed7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413261
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4086c3
cmp eax, 1
jle 0x408696
cmp eax, 3
jne 0x4086c3
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.00417ed7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413261
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4086b3
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0041b94b
add esp, 0x10
cmp edi, eax
jne 0x4086c3
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4085c7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413261
mov esp, ebp
pop ebp
ret 4
Function at 0x409590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44606c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x409631
cmp byte [esi + 0x3d], 0
je 0x409631
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4095e7
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4095f9
sub eax, 1
je 0x4095fd
sub eax, 2
je 0x409631
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413261
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40961a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0041b94b
add esp, 0x10
cmp edi, eax
jne 0x4095e7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413261
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00413261
mov esp, ebp
pop ebp
ret

Function at 0x40afc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x40aff1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40afe0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x40ef70
Capabilities:
Parse credit card information

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x40f180
cmp eax, 0x7c
je 0x40f180
cmp eax, 0x29
jne 0x40efb1
cmp dword [esi + 0x10], 0
jne 0x40f180
cmp eax, eax
jne 0x40efb1
test dword [esi + 0x50], 0x10000000
je 0x40f18d
jmp 0x40f139
cmp eax, 0x2e
jne 0x40efc2
push 5
lea ecx, [esi + 0x24]
call fcn.0040f1f0
jmp 0x40f03b
cmp eax, 0x5c
jne 0x40f01e
mov ecx, esi
call fcn.0040ef10
test byte [esi + 0x50], 0x80
je 0x40f012
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x40eff1
push 4
lea ecx, [esi + 0x24]
call fcn.0040f1f0
mov ecx, esi
call fcn.0040ef10
jmp 0x40f172
cmp al, 0x42
jne 0x40f012
push 4
lea ecx, [esi + 0x24]
call fcn.0040f1f0
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.0040ef10
jmp 0x40f172
mov ecx, esi
call fcn.0040f9f0
jmp 0x40f16b
cmp eax, 0x5b
jne 0x40f086
mov ecx, esi
call fcn.0040ef10
mov ecx, esi
call fcn.0040f900
cmp dword [esi + 0x4c], 0x5d
jne 0x40f19b
mov edx, dword [esi + 8]
mov eax, dword [esi]
cmp eax, edx
je 0x40f07a
cmp byte [eax], 0x5c
jne 0x40f077
lea ecx, [eax + 1]
cmp ecx, edx
je 0x40f077
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x40f064
mov bl, byte [ecx]
cmp bl, 0x28
je 0x40f075
cmp bl, 0x29
je 0x40f075
test dl, 0x10
jne 0x40f077
mov dl, byte [ecx]
cmp dl, 0x7b
je 0x40f075
cmp dl, 0x7d
jne 0x40f077
mov eax, ecx
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040db00
jmp 0x40f16b
cmp eax, 0x28
jne 0x40f0f5
mov ecx, esi
call fcn.0040ef10
mov ecx, esi
call fcn.0040fb90
cmp dword [esi + 0x4c], 0x29
mov bh, al
jne 0x40f18d
mov eax, dword [esi]
mov edx, dword [esi + 8]
cmp eax, edx
je 0x40f0e4
cmp byte [eax], 0x5c
jne 0x40f0e1
lea ecx, [eax + 1]
cmp ecx, edx
je 0x40f0e1
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x40f0ce
mov bl, byte [ecx]
cmp bl, 0x28
je 0x40f0df
cmp bl, 0x29
je 0x40f0df
test dl, 0x10
jne 0x40f0e1
mov dl, byte [ecx]
cmp dl, 0x7b
je 0x40f0df
cmp dl, 0x7d
jne 0x40f0e1
mov eax, ecx
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040db00
test bh, bh
je 0x40f172
jmp 0x40f16b
cmp eax, 0x5e
jne 0x40f10d
push 2
lea ecx, [esi + 0x24]
call fcn.0040f1f0
mov ecx, esi
call fcn.0040ef10
jmp 0x40f172
cmp eax, 0x24
jne 0x40f125
push 3
lea ecx, [esi + 0x24]
call fcn.0040f1f0
mov ecx, esi
call fcn.0040ef10
jmp 0x40f172
cmp eax, 0x2a
je 0x40f186
cmp eax, 0x2b
je 0x40f186
cmp eax, 0x3f
je 0x40f186
cmp eax, 0x7b
je 0x40f186
cmp eax, 0x7d
jne 0x40f149
test dword [esi + 0x50], 0x10000000
je 0x40f194
jmp 0x40f157
cmp eax, 0x5d
jne 0x40f157
test dword [esi + 0x50], 0x10000000
je 0x40f19b
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0040fe40
mov ecx, esi
call fcn.0040ef10
mov ecx, esi
call fcn.0040fca0
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x40ef83
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 0xa
call fcn.0040daf0
push 5
call fcn.0040daf0
push 6
call fcn.0040daf0
push 4
call fcn.0040daf0
int3

Function at 0x423a9a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00423917
Function at 0x426291
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00426214
Function at 0x403ad0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x403af9
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + section..data]
inc esi
xor eax, edx
dec ecx
jne 0x403ae4
xor eax, 0xffffffff
pop esi
leave
ret 0xc

Function at 0x50b580
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
jmp 0x50b59a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50b5a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50b590
mov eax, 1
add ebx, ebx
jne 0x50b5b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50b5a8
jne 0x50b5c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5a8
xor ecx, ecx
sub eax, 3
jb 0x50b5d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50b64a
mov ebp, eax
add ebx, ebx
jne 0x50b5e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50b5f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50b614
inc ecx
add ebx, ebx
jne 0x50b600
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50b5f5
jne 0x50b611
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b5f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50b634
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50b625
jmp 0x50b596
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50b634
add edi, ecx
jmp 0x50b596
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50b652
cmp byte [edi], 6
jne 0x50b652
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 0x50b657
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x50b6c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50b684
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb2c]
or eax, eax
je 0x50b6c0
mov dword [ebx], eax
add ebx, 4
jmp 0x50b6a1
call dword [esi + 0xdb28]
mov ebp, dword [esi + 0xdb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x50b6fa
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1b6873a8
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4dcd4750
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebx
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
call dword [sym.imp.MSVCR100.dll_getenv]
xor ebx, ebx
pop ecx
test eax, eax
je 0x40104d
mov edi, dword [sym.imp.MSVCR100.dll_printf]
push str.Windows_original_main_args:_n
call edi
mov eax, dword [sym.imp.MSVCR100.dll___argc]
xor esi, esi
pop ecx
cmp dword [eax], ebx
jle 0x40104d
mov eax, dword [sym.imp.MSVCR100.dll___argv]
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call edi
mov eax, dword [sym.imp.MSVCR100.dll___argc]
add esp, 0xc
inc esi
cmp esi, dword [eax]
jl 0x40102e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
mov edi, eax
lea eax, [edi*4 + 4]
push eax
call sub.jli.dll_JLI_MemAlloc
pop ecx
pop ecx
mov esi, eax
call sub.jli.dll_JLI_GetStdArgs
xor ecx, ecx
cmp edi, ebx
jle 0x401087
mov edx, dword [eax + ecx*8]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, edi
jl 0x40107c
mov eax, dword [str.java]
mov dword [esi + ecx*4], ebx
cmp eax, ebx
jne 0x401095
mov eax, dword [esi]
mov ecx, dword [str.java]
cmp ecx, ebx
jne 0x4010a1
mov ecx, dword [esi]
push ebx
push ebx
push ebx
push 1
push eax
push ecx
push 0x402210
push 0x402200
push 0x403024
push 2
push 0x403010
push 5
push esi
push edi
call sub.jli.dll_JLI_Launch
add esp, 0x38
pop edi
pop esi
pop ebx
ret
Function at 0x407564
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040a27c
test esi, esi
jne 0x40759a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040a414
jmp 0x4075b8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004074a8
mov edi, eax
test esi, esi
je 0x4075b8
cmp dword [ebx], 0
je 0x4075b8
dec esi
jmp 0x4075a1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x408eb4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00409374
mov byte [esp], al
cmp byte [esp], 0
jne 0x40903d
test edi, edi
je 0x40903d
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408f7d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408f58
cmp edi, 0xffffffff
je 0x408f19
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408f19
mov byte [esp], 0
jmp 0x40903d
cmp dword [esi], 1
jg 0x408f58
cmp dword [esi], 0
jne 0x408f4a
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408f4a
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40903d
lea eax, [esp + 0xc]
call fcn.00408b4c
dec ebp
test ebp, ebp
jg 0x408efe
cmp edi, 0xffffffff
je 0x408f7d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408f7b
mov byte [esp], 0
jmp 0x40903d
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408ec2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408f7d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.004090b8
mov edx, eax
mov ebx, dword [0x60f900]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408fe1
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408fdf
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408fe1
xor edi, edi
cmp byte [esp], 0
je 0x409007
mov ebx, dword [esi]
test bl, 1
jne 0x40901d
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408fe7
mov byte [esp + 1], 1
jmp 0x40901d
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x409007
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408f94
cmp byte [esp], 0
je 0x40903d
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x409f14
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x60f05c], 0
je 0x409f7b
cmp word [0x60f34c], 0xd7b2
jne 0x409f3d
cmp dword [0x60f354], 0
jbe 0x409f3d
mov eax, 0x60f348
call dword [0x60f364]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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
mov eax, 0x409fa8
call fcn.0040aa90
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x608036], 0
jne 0x409f97
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40a13c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x608038], 0
je 0x40a167
mov edx, edi
mov eax, esi
call dword [0x608038]
mov ebx, eax
jmp 0x40a178
mov eax, 8
call fcn.00406e58
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x60f05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40a104
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x40a1a8
mov eax, ebx
call fcn.00406e74
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40dddc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40df43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040a27c
cmp si, word [0x608a18]
jb 0x40de74
cmp si, word [0x608c18]
ja 0x40de74
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40de74
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x608a18]
jae 0x40de4e
mov edi, ebx
dec edi
jmp 0x40de6f
cmp si, word [ebx*8 + 0x608a18]
jbe 0x40de5e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40de6f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x608a1c]
call fcn.0040dcfc
jmp 0x40de74
cmp edi, dword [ebp - 8]
jae 0x40de38
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40df23
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40df23
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ad94
push dword [ebp - 0x160]
push 0x40df60
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ad94
push dword [ebp - 0x164]
push 0x40df70
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ad94
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040afd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df4a
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040a2dc
pop eax
jmp eax
Function at 0x40e0f8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40e1fe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x611c18
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x611c30]
jne 0x40e144
mov eax, esi
mov edx, 0x611c32
mov ecx, 0x55
call fcn.0040ad94
push 0x611c18
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40e1e6
push 0x611c18
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a27c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40e1b3
cmp byte [0x611c14], 0
je 0x40e178
mov edx, esi
mov eax, ebx
call fcn.0040dfdc
jmp 0x40e1b3
mov edx, esi
mov eax, ebx
call fcn.0040dddc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40e1b3
cmp dword [esi], 0
je 0x40e19c
mov eax, esi
mov edx, 0x40e218
call fcn.0040aef0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dddc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aef0
push 0x611c18
call sub.kernel32.dll_EnterCriticalSection
mov word [0x611c30], bx
mov eax, dword [esi]
call fcn.0040ace0
mov ecx, eax
mov eax, 0x611c32
mov edx, 0xaa
call fcn.0040dc5c
push 0x611c18
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e205
lea eax, [ebp - 4]
call fcn.0040a27c
pop eax
jmp eax
Function at 0x40e440
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a370
xor eax, eax
push ebp
push 0x40e668
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e486
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e4a0
mov eax, dword [ebp - 4]
call fcn.0040ace0
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040dc5c
cmp word [ebp - 0x21e], 0
je 0x40e64b
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e678
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e56f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e678
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e56f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e6b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e56f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e6b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e56f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e6e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e56f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e71c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e64b
xor eax, eax
push ebp
push 0x40e644
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040e240
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e5d2
mov eax, dword [ebp - 0x14]
call fcn.00406e58
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ad40
jmp 0x40e61d
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e75c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e61d
mov eax, dword [ebp - 0x14]
call fcn.00406e58
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e75c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ad40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e64b
cmp dword [ebp - 0xc], 0
je 0x40e638
mov eax, dword [ebp - 0xc]
call fcn.00406e74
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e66f
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a2dc
pop eax
jmp eax