joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7057b4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edx
push ecx
call fcn.0070aa7d
mov dword [esp + 0x28], 0xe59a27
lea edi, [ecx + 4]
shl dword [esp + 0x28], 0xc
xor dword [esp + 0x28], 0x59a35371
mov dword [esp + 0x24], 0xbf2298
or dword [esp + 0x24], 0x43da2daf
shr dword [esp + 0x24], 6
shr dword [esp + 0x24], 1
xor dword [esp + 0x24], 0x85b67f
mov eax, dword [ecx]
mov ebp, dword [edi]
add edi, 4
xor ebp, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebp
lea esi, [ebp + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add esp, 0x10
lea ecx, [esi + esi]
call fcn.0071f6a3
mov ebx, eax
mov dword [esp + 0x18], ebx
pop ecx
test ebx, ebx
je 0x7058af
shr esi, 2
xor eax, eax
lea ecx, [edi + esi*4]
mov esi, ebx
mov edx, ecx
sub edx, edi
add edx, 3
shr edx, 2
cmp edi, ecx
cmova edx, eax
test edx, edx
je 0x7058a9
mov ebx, dword [esp + 0x18]
xor ebp, ebp
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
movzx eax, cl
mov word [esi], ax
mov eax, ecx
shr eax, 8
lea esi, [esi + 8]
movzx eax, al
mov word [esi - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc ebp
mov word [esi - 4], ax
movzx eax, cl
mov word [esi - 2], ax
cmp ebp, edx
jb 0x70586c
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
xor eax, eax
mov word [ebx + ebp*2], ax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x70bc99
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
push edx
push ecx
call fcn.0070aa7d
and dword [ebp - 8], 0
add esp, 0x14
mov dword [ebp - 0x10], 0x3be52f
xor edx, edx
mov dword [ebp - 0xc], 0x1d2c41
mov dword [ebp + 8], 0xeadf60
add dword [ebp + 8], 0x5fa9
mov eax, dword [ebp + 8]
push 0x25
pop ecx
div ecx
mov dword [ebp + 8], eax
add dword [ebp + 8], 0xffffd8b5
xor dword [ebp + 8], 0x6345b
mov dword [ebp - 4], 0xbf24c0
imul eax, dword [ebp - 4], 0x15
mov dword [ebp - 4], eax
shl dword [ebp - 4], 2
xor dword [ebp - 4], 0x3eb80f06
mov dword [ebp - 4], 0x286c39
xor dword [ebp - 4], 0x9b091a3d
xor dword [ebp - 4], 0x9b217614
cmp byte [ebx], 0
je 0x70bd7c
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xbf24c0
imul eax, dword [ebp - 4], 0x15
mov dword [ebp - 4], eax
shl dword [ebp - 4], 2
xor dword [ebp - 4], 0x3eb80f06
mov cl, byte [ebp - 4]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0x286c39
xor dword [ebp - 4], 0x9b091a3d
xor dword [ebp - 4], 0x9b217614
shl esi, cl
mov cl, byte [ebp - 4]
mov edx, dword [ebp + 8]
movsx eax, byte [ebx]
mov dword [ebp + 8], eax
add dword [ebp + 8], esi
shl edx, cl
add dword [ebp + 8], edx
sub dword [ebp + 8], edi
inc ebx
cmp byte [ebx], 0
jne 0x70bd24
pop edi
pop esi
mov eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x710101
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push dword [ebp + 8]
push edx
push ecx
call fcn.0070aa7d
and dword [ebp - 8], 0
add esp, 0xc
mov dword [ebp - 0xc], 0x1709c5
mov dword [ebp - 4], 0x534f4d
xor dword [ebp - 4], 0xcb28e746
xor dword [ebp - 4], 0xcb7ba900
cmp dword [edx + 4], 0x40
jae 0x71013e
xor eax, eax
jmp 0x710167
mov ecx, dword [edx]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x71013a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x71013a
movzx edx, word [eax + 0x18]
mov ecx, dword [ebp - 4]
push esi
xor esi, esi
cmp edx, ecx
cmovne eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x711a0b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [esp + 0x30]
mov ebx, edx
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push ecx
call fcn.0070aa7d
mov dword [esp + 0x24], 0x7402d9
add esp, 0x14
add dword [esp + 0x10], 0xfffff275
shr dword [esp + 0x10], 0xb
xor dword [esp + 0x10], 0x175e81f2
xor dword [esp + 0x10], 0x175e8f8d
mov dword [esp + 0x20], 0xc553f
add dword [esp + 0x20], 0xffff8c50
xor dword [esp + 0x20], 0x2d175
mov dword [esp + 0x18], 0xb67b77
shr dword [esp + 0x18], 7
add dword [esp + 0x18], 0xda89
xor dword [esp + 0x18], 0x1782
mov dword [esp + 0x14], 0x4e9af1
imul eax, dword [esp + 0x14], 0x2c
mov dword [esp + 0x14], eax
imul eax, dword [esp + 0x14], 0x7b
mov dword [esp + 0x14], eax
shr dword [esp + 0x14], 1
xor dword [esp + 0x14], 0x3ee1f993
mov dword [esp + 0x1c], 0x4776bc
or dword [esp + 0x1c], 0xc1b7ea3e
shr dword [esp + 0x1c], 0xb
xor dword [esp + 0x1c], 0x1d8ae3
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esp + 0x10]
add eax, ebx
mov edx, dword [eax + ecx*8 + 0x78]
test edx, edx
je 0x711b48
cmp dword [eax + ecx*8 + 0x7c], 0
je 0x711b48
lea esi, [edx + ebx]
jmp 0x711b41
mov edx, dword [esp + 0x18]
add eax, ebx
mov ecx, dword [esp + 0x20]
push eax
call fcn.0071f5a4
pop ecx
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x711b53
mov edi, dword [esi]
mov ebp, dword [esi + 0x10]
add edi, ebx
add ebp, ebx
jmp 0x711b38
jns 0x711b11
movzx eax, ax
jmp 0x711b16
add eax, 2
add eax, ebx
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push eax
call fcn.00704055
pop ecx
pop ecx
test eax, eax
je 0x711b53
mov ecx, dword [esp + 0x10]
add edi, 4
mov dword [ebp], eax
add ebp, 4
mov eax, dword [edi]
test eax, eax
jne 0x711b0a
add esi, 0x14
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x711ae4
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
xor eax, eax
jmp 0x711b4b
Function at 0x71b8ff
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
push ebx
push esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edx
push ecx
call fcn.0070aa7d
mov dword [esp + 0x40], 0xc1064a
xor edx, edx
mov eax, dword [esp + 0x40]
push 0x77
pop ecx
div ecx
mov dword [esp + 0x40], eax
or dword [esp + 0x40], 0xe4a72dc6
add dword [esp + 0x40], 0x6f6e
xor dword [esp + 0x40], 0xe4a3b5d7
mov dword [esp + 0x28], 0xe5013c
add dword [esp + 0x28], 0x749c
xor dword [esp + 0x28], 0xe846cb
mov eax, dword [esi]
mov edx, dword [esi + 4]
add esi, 8
xor edx, eax
mov dword [esp + 0x2c], eax
mov eax, edx
mov dword [esp + 0x30], edx
and eax, 0xfffffffc
mov ecx, edx
add eax, 4
mov edi, edx
and cl, 3
cmovne edi, eax
mov eax, dword [esp + 0x28]
mov eax, dword [esp + 0x40]
add esp, 0x14
mov ecx, edi
call fcn.0071f6a3
mov ebp, eax
pop ecx
test ebp, ebp
je 0x71b9df
shr edi, 2
xor eax, eax
lea ecx, [esi + edi*4]
xor edi, edi
mov edx, ecx
sub edx, esi
add edx, 3
shr edx, 2
cmp esi, ecx
cmova edx, eax
test edx, edx
je 0x71b9d5
mov ecx, ebp
sub ecx, esi
mov eax, dword [esi]
xor eax, dword [esp + 0x14]
inc edi
mov dword [ecx + esi], eax
lea esi, [esi + 4]
cmp edi, edx
jb 0x71b9c4
test ebx, ebx
je 0x71b9df
mov eax, dword [esp + 0x18]
mov dword [ebx], eax
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x71c158
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x38]
mov eax, ecx
push ebp
push esi
push edi
push ebx
push dword [esp + 0x44]
mov dword [esp + 0x24], eax
push edx
push eax
call fcn.0070aa7d
mov dword [esp + 0x40], 0xd04d9a
xor esi, esi
mov dword [esp + 0x44], esi
add esp, 0x10
mov dword [esp + 0x38], esi
mov ebp, esi
mov dword [esp + 0x44], 0x4b2e1c
or dword [esp + 0x44], 0xa6a74ca
shr dword [esp + 0x44], 0xc
xor dword [esp + 0x44], 0x5434c
mov dword [esp + 0x18], 0x5a2110
imul eax, dword [esp + 0x18], 0x31
mov dword [esp + 0x18], eax
xor dword [esp + 0x18], 0x1148aa61
mov dword [esp + 0x14], 0xb57591
add dword [esp + 0x14], 0xffff8fbd
xor dword [esp + 0x14], 0xbe6b94
mov dword [esp + 0x10], 0x9fd46b
shl dword [esp + 0x10], 0xe
xor dword [esp + 0x10], 0xf51d759d
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x2c], eax
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add eax, ebx
mov dword [esp + 0x28], eax
add ecx, ebx
mov eax, dword [edi + 0x24]
add eax, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
cmp dword [edi + 0x18], esi
jbe 0x71c27d
push dword [esp + 0x10]
mov eax, dword [ecx + ebp*4]
push dword [esp + 0x18]
mov edx, dword [esp + 0x20]
add eax, ebx
mov ecx, dword [esp + 0x4c]
push eax
call fcn.0070bc99
xor eax, 0x32c9db43
add esp, 0xc
cmp eax, dword [esp + 0x1c]
je 0x71c251
mov ecx, dword [esp + 0x20]
inc ebp
cmp ebp, dword [edi + 0x18]
jb 0x71c21c
jmp 0x71c27d
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
movzx eax, word [eax + ebp*2]
mov esi, dword [esi + eax*4]
add esi, ebx
cmp esi, edi
jb 0x71c27d
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + ebx + 0x7c]
add eax, edi
cmp esi, eax
jae 0x71c27d
mov ecx, esi
call fcn.0071bf84
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x71ed8b
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
push esi
push dword [esp + 0x24]
push dword [esp + 0x24]
push edx
push ecx
call fcn.0070aa7d
mov dword [esp + 0x20], 0x6e7b54
lea edi, [esi + 4]
or dword [esp + 0x20], 0x15cece1a
xor edx, edx
shl dword [esp + 0x20], 4
imul eax, dword [esp + 0x20], 0x49
push 0x2d
pop ecx
mov dword [esp + 0x20], eax
xor dword [esp + 0x20], 0x126cfc9a
mov dword [esp + 0x38], 0x2bdffd
shl dword [esp + 0x38], 0xf
mov eax, dword [esp + 0x38]
div ecx
mov dword [esp + 0x38], eax
add dword [esp + 0x38], 0xb6ff
xor dword [esp + 0x38], 0x552c2f8
mov ecx, dword [esi]
mov eax, dword [edi]
add edi, 4
xor eax, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
lea esi, [eax + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x38]
mov eax, dword [esp + 0x20]
add esp, 0x10
mov ecx, esi
call fcn.0071f6a3
mov ebx, eax
mov dword [esp + 0x28], ebx
pop ecx
test ebx, ebx
je 0x71ee91
shr esi, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, ebx
lea ecx, [edi + esi*4]
mov esi, ecx
sub esi, edi
add esi, 3
shr esi, 2
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0x71ee88
mov ebx, dword [esp + 0x14]
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc ebp
mov byte [edx - 1], cl
cmp ebp, esi
jb 0x71ee5f
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
pop ebp
mov byte [ebx + eax], 0
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xc
ret
Function at 0x722472
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push ebp
push dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov ebx, ecx
push dword [esp + 0x28]
push ebp
push dword [esp + 0x28]
push edx
push ebx
call fcn.0070aa7d
and dword [esp + 0x2c], 0
add esp, 0x18
mov dword [esp + 0x10], 0x3d6df0
mov dword [esp + 0x20], 0xf54b09
shr dword [esp + 0x20], 0x10
add dword [esp + 0x20], 0xffff0c14
xor dword [esp + 0x20], 0xffff0d0c
mov eax, dword [esp + 0x20]
mov ecx, dword [ebx + 0x3c]
add ecx, ebx
sub ebp, dword [ecx + 0x34]
mov edx, dword [ecx + eax*8 + 0x78]
mov dword [esp + 0x20], ebp
add edx, ebx
mov ebp, dword [ecx + eax*8 + 0x7c]
add ebp, edx
mov dword [esp + 0x10], ebp
cmp edx, ebp
jae 0x72252d
push esi
push edi
mov edi, dword [edx + 4]
lea esi, [edx + 8]
add edi, edx
cmp esi, edi
jae 0x722524
mov ebp, dword [esp + 0x28]
movzx eax, word [esi]
mov ecx, eax
mov dword [esp + 0x14], 0x3000
and ecx, 0xfff
and eax, 0xf000
add ecx, dword [edx]
add ecx, ebx
cmp ax, word [esp + 0x14]
jne 0x722519
add dword [ecx], ebp
add esi, 2
cmp esi, edi
jb 0x7224f4
mov ebp, dword [esp + 0x18]
add edx, dword [edx + 4]
cmp edx, ebp
jb 0x7224e4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

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

Disassembly:
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
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
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x1bbd0308
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6b152a48
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x401000
Capabilities:
Execute command
Terminate process

Disassembly:
push str.calc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x40181d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40185c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40185c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40185c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40185c
cmp dword [ecx + 0x74], 0xe
jbe 0x40185c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x42a38c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, 0x42ccf0
mov esi, 0x42cd28
mov eax, dword [0x42c710]
mov dword [0x42cd18], eax
mov dword [ebx], 0xc0
mov dword [ebx + 4], 0x42a334
mov eax, dword [0x42cd18]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x1c], 0x10
mov eax, 0x42a48c
mov dword [ebx + 0x24], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebx + 0x18], eax
push ebx
call sub.user32.dll_RegisterClassA
test ax, ax
je 0x42a486
push 0
mov eax, dword [0x42cd18]
push eax
push 0
push 0
push 0xa
push 0xa
push 0
push 0
push 0xcc0000
push 0x42a490
push 0x42a48c
push pe_nt_image_headers32
call sub.user32.dll_CreateWindowExA
mov dword [0x42cd1c], eax
cmp dword [0x42cd1c], 0
je 0x42a486
call fcn.0040bd50
push 0x4281f4
push 0x5dc
push 1
mov eax, dword [0x42cd1c]
push eax
call sub.user32.dll_SetTimer
push 0x4297dc
push 0xea60
push 2
mov eax, dword [0x42cd1c]
push eax
call sub.user32.dll_SetTimer
push 0
mov eax, dword [0x42cd1c]
push eax
call sub.user32.dll_ShowWindow
jmp 0x42a46d
push esi
call sub.user32.dll_TranslateMessage
push esi
call sub.user32.dll_DispatchMessageA
push 0
push 0
mov eax, dword [0x42cd1c]
push eax
push esi
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x42a461
call fcn.0040bea8
pop esi
pop ebx
ret

Function at 0x438c1e
Capabilities:
Copy file
Create process on windows
Persist via run registry key

Disassembly:
mov eax, 0x38c1e
mov ebx, 0x38c9d
call fcn.00438c32
jmp fcn.0042a608

Function at 0x5d3fc0
Capabilities:
Encode data using xor

Disassembly:
dec ebp
loopne 0x5d3fc6
push eax
mov byte [0x16d226f7], al
rcl byte es:[esi], cl
invalid
Function at 0x404628
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406a50
test esi, esi
jne 0x404660
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.00406b8c
jmp 0x40467e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040450c
mov edi, eax
test esi, esi
je 0x40467e
cmp dword [ebx], 0
je 0x40467e
dec esi
jmp 0x404667
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405ee0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4f6054], 0
je 0x405f41
cmp word [0x4f6330], 0xd7b2
jne 0x405f09
cmp dword [0x4f6338], 0
jbe 0x405f09
mov eax, 0x4f632c
call dword [0x4f6348]
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
push 0x405f6c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f3034], 0
jne 0x405f5d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4060cc
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 [0x4f3038], 0
je 0x4060f2
mov edx, esi
mov eax, ebx
call dword [0x4f3038]
jmp 0x406101
mov eax, 8
call fcn.00404254
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4f6055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406094
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 0x4074f4
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x407536
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407556
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00406c50
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x408b24
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408c8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406a50
cmp si, word [0x4f37e0]
jb 0x408bbe
cmp si, word [0x4f39e0]
ja 0x408bbe
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408bbe
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4f37e0]
jae 0x408b98
mov edi, ebx
dec edi
jmp 0x408bb9
cmp si, word [ebx*8 + 0x4f37e0]
jbe 0x408ba8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408bb9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4f37e4]
call fcn.00408a34
jmp 0x408bbe
cmp edi, dword [ebp - 0xc]
jae 0x408b82
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408c6d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408c6d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406c50
push dword [ebp - 0x164]
push 0x408ca8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406c50
push dword [ebp - 0x168]
push 0x408cb8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406c50
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407008
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c92
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406a48
ret
Function at 0x408e44
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 0x408f49
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4f8b5c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4f8b74]
jne 0x408e90
mov eax, esi
mov edx, 0x4f8b78
mov ecx, 0x55
call fcn.00406c50
push 0x4f8b5c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408f33
push 0x4f8b5c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406a50
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408f01
cmp byte [0x4f8b58], 0
je 0x408ec6
mov edx, esi
mov eax, ebx
call fcn.00408d24
jmp 0x408f01
mov edx, esi
mov eax, ebx
call fcn.00408b24
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x408f01
cmp dword [esi], 0
je 0x408eea
mov eax, esi
mov edx, 0x408f64
call fcn.00406e64
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408b24
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406e64
push 0x4f8b5c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4f8b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406adc
push eax
push 0x4f8b78
call sub.kernel32.dll_lstrcpynW
push 0x4f8b5c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f50
lea eax, [ebp - 4]
call fcn.00406a40
ret
Function at 0x409188
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a38
xor eax, eax
push ebp
push 0x40936d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4091c8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4091e2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406adc
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x409357
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40937c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409271
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40937c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409271
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409271
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4093e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x409357
xor eax, eax
push ebp
push 0x409350
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408f8c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4092e0
mov eax, dword [ebp - 0x10]
call fcn.00404254
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406bfc
jmp 0x40932b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409424
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40932b
mov eax, dword [ebp - 0x10]
call fcn.00404254
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409424
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409357
cmp dword [ebp - 8], 0
je 0x409346
mov eax, dword [ebp - 8]
call fcn.00404270
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409374
lea eax, [ebp - 4]
call fcn.00406a40
ret