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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0xd2c32b2
add ebx, 0
push ecx
call 0xd2c32c7
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x80a2f9
sub ebx, dword [0x829b38]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x829b28
call fcn.0d2bed91
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.0d2be29f
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0xd2c3425
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0xd2c3425
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0xd2c33dc
mov eax, 1
lock xchg dword [0x829b34], eax
push 0x3dd1fc71
call 0xd2c3369
push esi
add esp, 8
cmp eax, 0
jne 0xd2c3352
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0xd2c3378
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0xd2c338d
cmp ecx, edx
cmp eax, 0
je 0xd2c33b2
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0xd2c339c
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.0d2c33cb
dec eax
loope 0xd2c33ce
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x829b34], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0xd2c3402
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0xd2c3417
jmp 0xd2c3422
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0xd2c3310

Function at 0xd2ca48a
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0xd2ca760
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x8167ac
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x80d772
push 0xffffffffffffffff
call fcn.0d2c168a
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0xd2ca4f4
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.0d2ca50c
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0xd2ca754
xor eax, 0
ret 4
xor ecx, ecx
jmp 0xd2ca728
Function at 0xd2d9f5a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0xd2d9f7c
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0xd2d9f7c
add ebx, eax
cmp dword [ebx], 0x4550
jne 0xd2d9f7c
ret
cmp word [ebx + 4], 0x14c
jne 0xd2d9f7c
test word [ebx + 0x16], 2
je 0xd2d9f7c
test word [ebx + 0x16], 0x100
je 0xd2d9f7c
cmp word [ebx + 0x18], 0x10b
jne 0xd2d9f7c
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0xd2d9f7c
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0xd2da008
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0xd2d9f9c
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.0d2c0ee7
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0xd2d9f7c
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0xd2da008
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0xd2d9f7c
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0xd2d9f7c
add ebx, eax
cmp dword [ebx], 0x4550
jne 0xd2d9f7c
ret
cmp word [ebx + 4], 0x14c
jne 0xd2d9f7c
test word [ebx + 0x16], 2
je 0xd2d9f7c
test word [ebx + 0x16], 0x100
je 0xd2d9f7c
cmp word [ebx + 0x18], 0x10b
jne 0xd2d9f7c
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0xd2d9f7c
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0xd2da008
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0xd2d9f9c
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.0d2c0ee7
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0xd2d9f7c
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0xd2da0bf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0xd2da118
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0xd2da0bf
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0xd2da0ce
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0xd6dfd71
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0xd2da11f
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0d2c0f95
cmp eax, dword [ebp + 0xc]
pop eax
je 0xd2da1be
add edi, 4
add eax, 2
dec ecx
jne 0xd2da104
call 0xd2da16b
loope 0xd2da161
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0xd2da1bb
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0xd2da1cc
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0xd2da17f
cmp eax, ecx
ja 0xd2da17f
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0xd2da209
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0xd2da1ff
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.0d2c1474
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0xd2da0ce
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0xd2da118
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0xd2da0bf
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0xd2da0ce
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0xd6dfd71
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0xd2da11f
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0d2c0f95
cmp eax, dword [ebp + 0xc]
pop eax
je 0xd2da1be
add edi, 4
add eax, 2
dec ecx
jne 0xd2da104
call 0xd2da16b
loope 0xd2da161
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0xd2da1bb
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0xd2da1cc
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0xd2da17f
cmp eax, ecx
ja 0xd2da17f
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0xd2da209
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0xd2da1ff
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.0d2c1474
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x430001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x2edf18e4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x27c1e78
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x249815ef
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..reloc
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x197f2010
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x404adc
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 0x404b1e
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 0x404b3e
lea eax, [esp + 0x212]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040a334
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x404d94
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.00409124
test esi, esi
jne 0x404dca
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.004092ac
jmp 0x404de8
call sub.KERNEL32.DLL_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404c78
mov edi, eax
test esi, esi
je 0x404de8
cmp dword [ebx], 0
je 0x404de8
dec esi
jmp 0x404dd1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x9cf008], 0x8088405
inc edx
mov dword [ebx + 0x9cf008], edx
fld qword [ebx + 0x9cf798]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret
Function at 0x407dc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.004081b8
mov byte [esp], al
cmp byte [esp], 0
jne 0x407f4c
test edi, edi
je 0x407f4c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x407e83
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x407e5e
cmp edi, 0xffffffff
je 0x407e1f
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407e1f
mov byte [esp], 0
jmp 0x407f4c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x407e5e
test ebx, ebx
jne 0x407e54
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402af8
test eax, eax
jne 0x407e54
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x407f4c
call 0x4082dc
dec ebp
test ebp, ebp
jg 0x407e04
cmp edi, 0xffffffff
je 0x407e83
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x407e81
mov byte [esp], 0
jmp 0x407f4c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x407dce
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402af8
cmp ebx, eax
jne 0x407e83
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00407fbc
mov edx, eax
mov ebx, dword [0xa418f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x407eea
call sub.KERNEL32.DLL_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x407ee8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x407eea
xor edi, edi
cmp byte [esp], 0
je 0x407f13
mov ebx, dword [esi]
test bl, 1
jne 0x407f2c
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402af8
cmp ebx, eax
jne 0x407ef0
mov byte [esp + 1], 1
jmp 0x407f2c
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402af8
cmp ebx, eax
jne 0x407f13
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x407e9d
cmp byte [esp], 0
je 0x407f4c
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408dbc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0xa41058], 0
je 0x408e23
cmp word [0xa41344], 0xd7b2
jne 0x408de5
cmp dword [0xa4134c], 0
jbe 0x408de5
mov eax, 0xa41340
call dword [0xa4135c]
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, 0x408e50
call fcn.00409bd0
push eax
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x9cf034], 0
jne 0x408e3f
push 0
push 0x9cf9fa
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408fe0
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 [0x9cf038], 0
je 0x40900b
mov edx, edi
mov eax, esi
call dword [0x9cf038]
mov ebx, eax
jmp 0x40901c
mov eax, 8
call fcn.004048f0
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0xa41059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x408fa8
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 0x409051
mov edx, 8
mov eax, ebx
call fcn.0040490c
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40c238
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 0x40c39d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409124
cmp si, word [0x9cfa38]
jb 0x40c2d0
cmp si, word [0x9cfc38]
ja 0x40c2d0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c2d0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x9cfa38]
jae 0x40c2aa
mov edi, ebx
dec edi
jmp 0x40c2cb
cmp si, word [ebx*8 + 0x9cfa38]
jbe 0x40c2ba
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c2cb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x9cfa3c]
call fcn.0040c148
jmp 0x40c2d0
cmp edi, dword [ebp - 8]
jae 0x40c294
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c37f
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40c37f
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.0040a334
push dword [ebp - 0x160]
push 0x40c3b8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a334
push dword [ebp - 0x164]
push 0x40c3c8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a334
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a56c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3a4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409184
ret
Function at 0x40c550
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 0x40c653
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa43b88
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0xa43ba0]
jne 0x40c59c
mov eax, esi
mov edx, 0xa43ba2
mov ecx, 0x55
call fcn.0040a334
push 0xa43b88
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x40c63d
push 0xa43b88
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.00409124
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x40c60b
cmp byte [0xa43b84], 0
je 0x40c5d0
mov edx, esi
mov eax, ebx
call fcn.0040c434
jmp 0x40c60b
mov edx, esi
mov eax, ebx
call fcn.0040c238
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c60b
cmp dword [esi], 0
je 0x40c5f4
mov eax, esi
mov edx, 0x40c66c
call fcn.0040a48c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c238
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a48c
push 0xa43b88
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0xa43ba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040a278
push eax
push 0xa43ba2
call sub.KERNEL32.DLL_lstrcpynW
push 0xa43b88
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c65a
lea eax, [ebp - 4]
call fcn.00409124
ret
Function at 0x40c888
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.00409208
xor eax, eax
push ebp
push 0x40caad
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c8c8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x40c8e2
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040a278
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.KERNEL32.DLL_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40ca97
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cabc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c9b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cabc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c9b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40caf8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c9b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40caf8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c9b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cb2c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c9b1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cb60
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40ca97
xor eax, eax
push ebp
push 0x40ca90
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c694
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 0x40ca20
mov eax, dword [ebp - 0x10]
call fcn.004048f0
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.0040a2e0
jmp 0x40ca6b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40cba0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40ca6b
mov eax, dword [ebp - 0x10]
call fcn.004048f0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40cba0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a2e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ca97
cmp dword [ebp - 8], 0
je 0x40ca86
mov eax, dword [ebp - 8]
call fcn.0040490c
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 0x40cab4
lea eax, [ebp - 4]
call fcn.00409124
ret