joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x420d7b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x420d9f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x420dba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x424147
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x424189
call fcn.0042c4c7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x424189
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x424180
xor eax, eax
jmp 0x424191
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00424197
pop edi
pop esi
pop ebx
ret 4

Function at 0x425324
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x425346
cmp dword [edi + 0x3c], 0
jne 0x425346
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0042c4c7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00425373
pop edi
pop esi
pop ebx
ret 8

Function at 0x42d0f9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42d127
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42d145
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042d05f
jmp 0x42d145
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42d145
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042d05f
test edi, edi
mov eax, edi
jne 0x42d12f
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x41bd00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x424c80], ecx
inc edx
cmp edx, 0x100
jb 0x41bd02
cmp edx, 0x800
jae 0x41bdd9
lea esp, [esp]
mov eax, dword [edx*4 + 0x424880]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x424c80]
inc edx
mov dword [edx*4 + 0x424c7c], eax
cmp edx, 0x800
jb 0x41bdb0
mov eax, 0x41c5e0
mov dword [0x424c7c], eax
mov dword [0x426c80], eax
mov dword [0x424c78], 0x41c500
call fcn.0041c010
test eax, eax
jne 0x41be05
mov dword [0x426c80], 0x41c500
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x55350ec7
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x154247b6
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40a5d3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00419e00
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0040a068
push esi
call fcn.00419a83
pop ecx
push esi
mov ebx, eax
call fcn.0040a50f
test al, al
je 0x40a68d
push esi
call fcn.0040a068
test al, al
je 0x40a63d
add ebx, 4
cmp dword [ebp + 0x10], ebx
jbe 0x40a756
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0041bbff
push esi
add edi, 8
push edi
call fcn.00419acb
add esp, 0x14
mov al, 1
jmp 0x40a758
cmp word [esi], 0x5c
jne 0x40a756
add esi, 2
cmp word [esi], 0x5c
jne 0x40a756
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40a756
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0041bbff
lea eax, [edi + 8]
push 0x4266ec
push eax
call fcn.00419acb
push esi
add edi, 0xe
push edi
call fcn.00419acb
add esp, 0x1c
jmp 0x40a636
lea eax, [ebp - 0x1000]
push eax
mov edi, 0x7ff
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40a756
cmp eax, edi
ja 0x40a756
movzx eax, word [esi]
push eax
call fcn.00409e4e
test al, al
je 0x40a6fd
add ebx, 6
cmp dword [ebp + 0x10], ebx
jbe 0x40a756
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0041bbff
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.0041bbff
push esi
add edi, 0xc
push edi
call fcn.00419acb
add esp, 0x20
jmp 0x40a636
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00409e73
lea eax, [ebp - 0x1000]
push eax
call fcn.00419a83
lea eax, [eax + ebx + 4]
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40a756
mov edi, dword [ebp + 0xc]
push 4
push str.__
push edi
call fcn.0041bbff
lea eax, [ebp - 0x1000]
push eax
lea eax, [edi + 8]
push eax
call fcn.00419acb
add esp, 0x14
push dword [ebp + 0x10]
push esi
push edi
call fcn.00410850
jmp 0x40a636
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x423f75
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041da1c
and dword [ebp - 4], 0
cmp dword [0x44b370], 0
mov ebx, eax
jne 0x424026
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4240d7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4240d7
push eax
call fcn.0041d9aa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44b370], eax
call esi
push eax
call fcn.0041d9aa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44b374], eax
call esi
push eax
call fcn.0041d9aa
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44b378], eax
call esi
push eax
call fcn.0041d9aa
pop ecx
mov dword [0x44b380], eax
test eax, eax
je 0x424026
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041d9aa
pop ecx
mov dword [0x44b37c], eax
mov eax, dword [0x44b37c]
cmp eax, ebx
je 0x42407e
cmp dword [0x44b380], ebx
je 0x42407e
push eax
call fcn.0041da25
push dword [0x44b380]
mov esi, eax
call fcn.0041da25
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42407e
test edi, edi
je 0x42407e
call esi
test eax, eax
je 0x424075
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424075
test byte [ebp - 0xc], 1
jne 0x42407e
or dword [ebp + 0x10], 0x200000
jmp 0x4240b7
mov eax, dword [0x44b374]
cmp eax, ebx
je 0x4240b7
push eax
call fcn.0041da25
pop ecx
test eax, eax
je 0x4240b7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4240b7
mov eax, dword [0x44b378]
cmp eax, ebx
je 0x4240b7
push eax
call fcn.0041da25
pop ecx
test eax, eax
je 0x4240b7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44b370]
call fcn.0041da25
pop ecx
test eax, eax
je 0x4240d7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4240d9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x587739c5
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, str.csxY
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x783323c1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x406be8
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.00409a28
test esi, esi
jne 0x406c1e
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.00409bb0
jmp 0x406c3c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406b2c
mov edi, eax
test esi, esi
je 0x406c3c
cmp dword [ebx], 0
je 0x406c3c
dec esi
jmp 0x406c25
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x40874c
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.00408b30
mov byte [esp], al
cmp byte [esp], 0
jne 0x4088d6
test edi, edi
je 0x4088d6
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408816
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4087f1
cmp edi, 0xffffffff
je 0x4087b1
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4087b1
mov byte [esp], 0
jmp 0x4088d6
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4087f1
test ebx, ebx
jne 0x4087e3
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4087e3
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4088d6
lea eax, [esp + 0xc]
call fcn.0040842c
dec ebp
test ebp, ebp
jg 0x408796
cmp edi, 0xffffffff
je 0x408816
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408814
mov byte [esp], 0
jmp 0x4088d6
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40875a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408816
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408944
mov edx, eax
mov ebx, dword [0x7048fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40887a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408878
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40887a
xor edi, edi
cmp byte [esp], 0
je 0x4088a0
mov ebx, dword [esi]
test bl, 1
jne 0x4088b6
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408880
mov byte [esp + 1], 1
jmp 0x4088b6
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4088a0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40882d
cmp byte [esp], 0
je 0x4088d6
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 0x40967c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x70405c], 0
je 0x4096e3
cmp word [0x704348], 0xd7b2
jne 0x4096a5
cmp dword [0x704350], 0
jbe 0x4096a5
mov eax, 0x704344
call dword [0x704360]
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, 0x409710
call fcn.0040a470
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x6f4032], 0
jne 0x4096ff
push 0
push 0x6f49e2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4098e8
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 [0x6f4034], 0
je 0x409913
mov edx, edi
mov eax, esi
call dword [0x6f4034]
mov ebx, eax
jmp 0x409924
mov eax, 8
call fcn.0040685c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x70405d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x4098b0
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 0x409954
mov eax, ebx
call fcn.00406878
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c4b8
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 0x40c61d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409a28
cmp si, word [0x6f4a20]
jb 0x40c550
cmp si, word [0x6f4c20]
ja 0x40c550
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c550
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x6f4a20]
jae 0x40c52a
mov edi, ebx
dec edi
jmp 0x40c54b
cmp si, word [ebx*8 + 0x6f4a20]
jbe 0x40c53a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c54b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x6f4a24]
call fcn.0040c3d8
jmp 0x40c550
cmp edi, dword [ebp - 8]
jae 0x40c514
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c5ff
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c5ff
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.0040a888
push dword [ebp - 0x160]
push 0x40c638
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a888
push dword [ebp - 0x164]
push 0x40c648
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a888
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aac0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c624
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409a88
ret
Function at 0x40c7d0
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 0x40c8d4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x706b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x706ba4]
jne 0x40c81c
mov eax, esi
mov edx, 0x706ba6
mov ecx, 0x55
call fcn.0040a888
push 0x706b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c8be
push 0x706b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409a28
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c88b
cmp byte [0x706b88], 0
je 0x40c850
mov edx, esi
mov eax, ebx
call fcn.0040c6b4
jmp 0x40c88b
mov edx, esi
mov eax, ebx
call fcn.0040c4b8
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c88b
cmp dword [esi], 0
je 0x40c874
mov eax, esi
mov edx, 0x40c8ec
call fcn.0040a9e0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c4b8
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a9e0
push 0x706b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x706ba4], bx
mov eax, dword [esi]
call fcn.0040a7cc
mov ecx, eax
mov eax, 0x706ba6
mov edx, 0xaa
call fcn.0040c338
push 0x706b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8db
lea eax, [ebp - 4]
call fcn.00409a28
ret
Function at 0x40cb04
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.00409b0c
xor eax, eax
push ebp
push 0x40cd29
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cb44
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cb5e
mov eax, dword [ebp - 4]
call fcn.0040a7cc
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c338
cmp word [ebp - 0x21a], 0
je 0x40cd13
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd38
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc2d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc2d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd74
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc2d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cd74
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc2d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cda8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cc2d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cddc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cd13
xor eax, eax
push ebp
push 0x40cd0c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c914
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 0x40cc9c
mov eax, dword [ebp - 0x10]
call fcn.0040685c
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.0040a834
jmp 0x40cce7
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40ce1c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cce7
mov eax, dword [ebp - 0x10]
call fcn.0040685c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40ce1c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a834
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd13
cmp dword [ebp - 8], 0
je 0x40cd02
mov eax, dword [ebp - 8]
call fcn.00406878
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 0x40cd30
lea eax, [ebp - 4]
call fcn.00409a28
ret