joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042f4
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x40a1d8]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x404330
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x404348
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x404341
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call sub.Vcl50.bpl__System__FillChar_qqrv
xor edx, edx
mov eax, 0x40a3d8
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x4043b2
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x404366
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x4045f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x404609
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x404602
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x40461b
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x404614
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.004041e4
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x404635
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.004042f4
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x4046ba
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x4046d7
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.00404274
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x404700
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404718
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x404731
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x40472a
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x404745
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004040dc
test bl, bl
jne 0x404818
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x40b098
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x40477c
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x404790
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004045f0
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x4047c2
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x404771
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x4047e5
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x4047f6
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x40480a
jmp 0x4048d3
cmp bl, 1
jne 0x4048d3
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x40b0f2
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x404838
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x40484c
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004045f0
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x40487e
sub ebx, 6
inc dword [ebp - 8]
jne 0x40482d
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x4048a5
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x4048b6
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x4048ca
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00404160
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x10005d27
Capabilities:
Parse pe header

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

Function at 0x10007842
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011770
push 0x10011768
push str.FlsAlloc
push 0x1f
call fcn.1000775e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007876
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000f108]
call esi
jmp 0x1000787c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100078c0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011780
push 0x10011778
push str.FlsGetValue
push 0x21
call fcn.1000775e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100078f7
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000f108]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100078ff
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011788
push 0x10011780
push str.FlsSetValue
push 0x22
call fcn.1000775e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10007939
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000f108]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10009715
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 0x100097b2
push ebx
push esi
call fcn.100096de
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.10009672
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000975f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100097b1
push edi
push eax
call fcn.10007192
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000977f
call fcn.10007158
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100097b0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10009672
add esp, 0x20
test eax, eax
jne 0x1000979e
push edi
call fcn.10007158
jmp 0x100097a6
push ebx
call fcn.10007158
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 0x1000e020
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000e04d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000e04d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x412769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x416190
cmp edx, dword [eax]
je 0x41278b
add eax, 8
inc ecx
cmp eax, 0x416220
jl 0x41277c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x416190]
jne 0x4128b9
mov eax, dword [0x416bb0]
cmp eax, 1
je 0x412893
test eax, eax
jne 0x4127bc
cmp dword [0x4160e4], 1
je 0x412893
cmp edx, 0xfc
je 0x4128b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4127f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00413490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x412836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00413490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41545c
push edi
call fcn.00413f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413680
lea eax, [ebp - 0xa0]
push 0x41543c
push eax
call fcn.00413680
push dword [esi + 0x416194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00413e75
add esp, 0x2c
pop edi
jmp 0x4128b9
lea eax, [ebp + 8]
lea esi, [esi + 0x416194]
push 0
push eax
push dword [esi]
call fcn.00413490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
jmp int.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x405c64
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.004060f0
mov byte [esp], al
cmp byte [esp], 0
jne 0x405ded
test edi, edi
je 0x405ded
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405d2d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405d08
cmp edi, 0xffffffff
je 0x405cc9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405cc9
mov byte [esp], 0
jmp 0x405ded
cmp dword [esi], 1
jg 0x405d08
cmp dword [esi], 0
jne 0x405cfa
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x405cfa
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405ded
lea eax, [esp + 0xc]
call fcn.00405920
dec ebp
test ebp, ebp
jg 0x405cae
cmp edi, 0xffffffff
je 0x405d2d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405d2b
mov byte [esp], 0
jmp 0x405ded
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405c72
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405d2d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405e5c
mov edx, eax
mov ebx, dword [0x4ae8f4]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405d91
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405d8f
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405d91
xor edi, edi
cmp byte [esp], 0
je 0x405db7
mov ebx, dword [esi]
test bl, 1
jne 0x405dcd
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405d97
mov byte [esp + 1], 1
jmp 0x405dcd
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x405db7
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405d44
cmp byte [esp], 0
je 0x405ded
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 0x406894
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4b0b94
cmp dword [ebp + 0xc], 2
jl 0x4068a8
mov ebx, 0x4b0bc4
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x4068e0
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x402c5c
mov dword [0x4ae01c], eax
mov eax, 0x402c64
mov dword [0x4ae020], eax
mov eax, ebx
call fcn.00406778
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x406915
cmp al, 3
jge 0x406915
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x406926
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x406931
call dword [ecx + eax*4]
cmp dword [0x4ae03c], 0
jne 0x406947
mov byte [0x4ae044], 1
fnstcw word [0x4ac024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00406be0
call fcn.00406828
ret 4

Function at 0x406b48
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ae054], 0
je 0x406baf
cmp word [0x4ae340], 0xd7b2
jne 0x406b71
cmp dword [0x4ae348], 0
jbe 0x406b71
mov eax, 0x4ae33c
call dword [0x4ae358]
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, 0x406bdc
call fcn.004074b4
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ac02e], 0
jne 0x406bcb
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409168
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 0x4092cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406de4
cmp si, word [0x4ac9f8]
jb 0x409200
cmp si, word [0x4acbf8]
ja 0x409200
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x409200
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4ac9f8]
jae 0x4091da
mov edi, ebx
dec edi
jmp 0x4091fb
cmp si, word [ebx*8 + 0x4ac9f8]
jbe 0x4091ea
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4091fb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4ac9fc]
call fcn.00409088
jmp 0x409200
cmp edi, dword [ebp - 8]
jae 0x4091c4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4092af
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4092af
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.00407910
push dword [ebp - 0x160]
push 0x4092e8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407910
push dword [ebp - 0x164]
push 0x4092f8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407910
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407b48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092d4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406e44
ret
Function at 0x409480
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 0x409584
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b0c0c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4b0c24]
jne 0x4094cc
mov eax, esi
mov edx, 0x4b0c26
mov ecx, 0x55
call fcn.00407910
push 0x4b0c0c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40956e
push 0x4b0c0c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406de4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40953b
cmp byte [0x4b0c08], 0
je 0x409500
mov edx, esi
mov eax, ebx
call fcn.00409364
jmp 0x40953b
mov edx, esi
mov eax, ebx
call fcn.00409168
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40953b
cmp dword [esi], 0
je 0x409524
mov eax, esi
mov edx, 0x40959c
call fcn.00407a68
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00409168
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407a68
push 0x4b0c0c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4b0c24], bx
mov eax, dword [esi]
call fcn.0040786c
mov ecx, eax
mov eax, 0x4b0c26
mov edx, 0xaa
call fcn.00408fe8
push 0x4b0c0c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40958b
lea eax, [ebp - 4]
call fcn.00406de4
ret
Function at 0x4097b4
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.00406ec8
xor eax, eax
push ebp
push 0x4099d9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4097f4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40980e
mov eax, dword [ebp - 4]
call fcn.0040786c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408fe8
cmp word [ebp - 0x21a], 0
je 0x4099c3
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4099e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a58
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x4098dd
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409a8c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x4099c3
xor eax, eax
push ebp
push 0x4099bc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004095c4
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 0x40994c
mov eax, dword [ebp - 0x10]
call fcn.00404994
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.004078d4
jmp 0x409997
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409acc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409997
mov eax, dword [ebp - 0x10]
call fcn.00404994
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409acc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004078d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099c3
cmp dword [ebp - 8], 0
je 0x4099b2
mov eax, dword [ebp - 8]
call fcn.004049b0
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 0x4099e0
lea eax, [ebp - 4]
call fcn.00406de4
ret