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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x45c11c
call fcn.0045f8fd
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45c119
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45c163
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x45c13f
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5dcb94]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x45c160
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x5dcb94]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x45dfc5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5cbaab
call fcn.005a1927
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x45dfeb
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x45e045
lea ecx, [ebp - 0x10]
call fcn.00455f50
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5dcb94]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005b0455
push eax
call fcn.00457ac8
add esp, 0x14
test esi, esi
je 0x45e038
push esi
call fcn.005afe39
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004565d0
mov eax, ebx
call fcn.005a18f0
ret 8

Function at 0x463253
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x463292
call fcn.0045f8fd
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x463292
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46329a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.004aae63
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x463cb1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x463d3d
cmp dword [esi + 0x20], 0
je 0x463d3d
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x463d3d
cmp dword [ebp + 8], 0
je 0x463d3d
xor edi, edi
mov ebx, edi
call fcn.0045f8fd
push 0x5e7de8
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x463d21
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x463d3d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004ab95d
mov edi, eax
add esp, 0xc
test edi, edi
je 0x463d39
mov ecx, esi
call fcn.00463a4f
mov eax, edi
jmp 0x463d3f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x487567
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x487580
call fcn.0045f8fd
mov esi, dword [eax + 0xc]
push 0x5e9dcc
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4875c2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4875c2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4875c2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004875cb
jmp 0x4875c4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4abf95
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x4abfc0
cmp dword [edi + 0x80], 0
jne 0x4abfc0
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.0045f8fd
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.004ac233
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4abfed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.0045f8fd
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ac020
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.004ac033
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4ae111
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4ae167
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4ae140
call fcn.00460438
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4ae155
call fcn.00460438
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4ae167
call fcn.00460438
call fcn.0045f8fd
cmp dword [eax + 0x3c], 0
je 0x4ae17c
push edi
mov ecx, ebx
call fcn.004ad834
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004ae362
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4ae1a5
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4ae1b1
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5363b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0045dba2
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x5363ec
call fcn.005365cd
mov dword [esi + 0xc], 1
jmp 0x5363f1
call fcn.005365cd
cmp dword [esi], 0
je 0x53643c
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x536417
push edi
call fcn.0046330e
lea ecx, [edi + 1]
push ecx
jmp 0x536426
push 0xff
call fcn.00456550
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004582da
pop edi
jmp 0x536460
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x536460
push dword [esi]
push dword [ebp - 4]
call fcn.0046ab7a
pop esi
leave
ret 0xc

Function at 0x536524
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.005365cd
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x53656c
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0046330e
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004582da
jmp 0x536577
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0046ab7a
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5531f0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.005b456f
pop ecx
test eax, eax
jne 0x553232
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00458657
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5531f8
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x58c8ab
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0059d967
call fcn.0045f951
cmp dword [eax + 0x14], 0
jne 0x58c8c6
mov ecx, esi
pop esi
jmp fcn.0058bbcf
pop esi
ret

Function at 0x58d77a
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00402610
call fcn.0045f951
cmp dword [eax + 0x14], 0
jne 0x58d795
mov ecx, esi
pop esi
jmp fcn.0058cfeb
pop esi
ret
Function at 0x5b6e7a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x613fc4
push 0x613fbc
push str.FlsAlloc
push 0x1e
call fcn.005b6cfb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5b6eae
push dword [ebp + 8]
mov ecx, esi
call dword [0x5dcb94]
call esi
jmp 0x5b6eb4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5b6ef8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x613fd4
push 0x613fcc
push str.FlsGetValue
push 0x20
call fcn.005b6cfb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5b6f2f
push dword [ebp + 8]
mov ecx, esi
call dword [0x5dcb94]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x5bbe14
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6478bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5bbe5f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005bbfb3
test al, al
jne 0x5bbe59
sub edx, 2
cmp edx, edi
jne 0x5bbe3f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5bbe81
lea eax, [edi + 2]
cmp edx, eax
je 0x5bbe81
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005bbd60
add esp, 0x10
jmp 0x5bbf7b
push esi
lea ecx, [ebp - 0x255]
call fcn.005bbfb3
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5bbec4
push dword [ebp - 0x25c]
jmp 0x5bbe71
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x5bbf01
cmp word [ebp - 0x226], 0
je 0x5bbf22
cmp word [ebp - 0x226], ax
jne 0x5bbf01
cmp word [ebp - 0x224], 0
je 0x5bbf22
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005bbd60
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5bbf6e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5bbedb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5bbf56
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5bbf7b
push 0x5bbb90
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005a8d90
add esp, 0x10
jmp 0x5bbf4b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005a164b
leave
ret

Function at 0x5bc9b9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5bc9ca
pop esi
ret
push ebx
push edi
push esi
call fcn.005bc982
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005b651d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5bc9f2
push ebx
push esi
push edi
call fcn.005a2ae0
add esp, 0xc
push 0
call fcn.005b64e3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5bcdb6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005bca07
Function at 0x4068dc
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 0x40691e
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 0x40693e
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040ac34
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x406b94
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.00409d90
test esi, esi
jne 0x406bca
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.00409f18
jmp 0x406be8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00406a78
mov edi, eax
test esi, esi
je 0x406be8
cmp dword [ebx], 0
je 0x406be8
dec esi
jmp 0x406bd1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x408ac0
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.00408ea4
mov byte [esp], al
cmp byte [esp], 0
jne 0x408c4a
test edi, edi
je 0x408c4a
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408b8a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x408b65
cmp edi, 0xffffffff
je 0x408b25
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408b25
mov byte [esp], 0
jmp 0x408c4a
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408b65
test ebx, ebx
jne 0x408b57
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408b57
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408c4a
lea eax, [esp + 0xc]
call fcn.004087a0
dec ebp
test ebp, ebp
jg 0x408b0a
cmp edi, 0xffffffff
je 0x408b8a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408b88
mov byte [esp], 0
jmp 0x408c4a
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408ace
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408b8a
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408cb8
mov edx, eax
mov ebx, dword [0x60a8fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408bee
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408bec
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408bee
xor edi, edi
cmp byte [esp], 0
je 0x408c14
mov ebx, dword [esi]
test bl, 1
jne 0x408c2a
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408bf4
mov byte [esp + 1], 1
jmp 0x408c2a
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408c14
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408ba1
cmp byte [esp], 0
je 0x408c4a
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 0x4099f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x60a05c], 0
je 0x409a57
cmp word [0x60a348], 0xd7b2
jne 0x409a19
cmp dword [0x60a350], 0
jbe 0x409a19
mov eax, 0x60a344
call dword [0x60a360]
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, 0x409a84
call fcn.0040a6f8
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x602032], 0
jne 0x409a73
push 0
push 0x6029ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409c50
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 [0x602034], 0
je 0x409c7b
mov edx, edi
mov eax, esi
call dword [0x602034]
mov ebx, eax
jmp 0x409c8c
mov eax, 8
call fcn.00406738
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x60a05d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409c18
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 0x409cbc
mov eax, ebx
call fcn.00406754
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40c7b4
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 0x40c919
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409d90
cmp si, word [0x602a08]
jb 0x40c84c
cmp si, word [0x602c08]
ja 0x40c84c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c84c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x602a08]
jae 0x40c826
mov edi, ebx
dec edi
jmp 0x40c847
cmp si, word [ebx*8 + 0x602a08]
jbe 0x40c836
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c847
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x602a0c]
call fcn.0040c6d4
jmp 0x40c84c
cmp edi, dword [ebp - 8]
jae 0x40c810
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c8fb
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c8fb
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.0040ac34
push dword [ebp - 0x160]
push 0x40c934
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ac34
push dword [ebp - 0x164]
push 0x40c944
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ac34
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040ae6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c920
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409df0
ret
Function at 0x40cacc
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 0x40cbd0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x60cb8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x60cba4]
jne 0x40cb18
mov eax, esi
mov edx, 0x60cba6
mov ecx, 0x55
call fcn.0040ac34
push 0x60cb8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cbba
push 0x60cb8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409d90
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cb87
cmp byte [0x60cb88], 0
je 0x40cb4c
mov edx, esi
mov eax, ebx
call fcn.0040c9b0
jmp 0x40cb87
mov edx, esi
mov eax, ebx
call fcn.0040c7b4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cb87
cmp dword [esi], 0
je 0x40cb70
mov eax, esi
mov edx, 0x40cbe8
call fcn.0040ad8c
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c7b4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040ad8c
push 0x60cb8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x60cba4], bx
mov eax, dword [esi]
call fcn.0040ab90
mov ecx, eax
mov eax, 0x60cba6
mov edx, 0xaa
call fcn.0040c634
push 0x60cb8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cbd7
lea eax, [ebp - 4]
call fcn.00409d90
ret