joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008060
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
mov eax, dword [0x100641b0]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebx
cmp eax, ebx
jne 0x10008093
mov dword [esp + 0x10], 0xffffffff
jmp 0x10008099
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push ebx
push ebx
push ebp
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x10008188
push 0
lea edx, [esp + 0x1c]
push edx
push 8
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100080eb
push str.ReadFile__
push 0xfc
push str..QHImageHlp.c
xor edx, edx
call fcn.1000b1a0
add esp, 0xc
jmp 0x100081be
mov eax, 8
cmp dword [esp + 0x18], eax
je 0x10008115
push 0x10060ec8
push 0xfe
lea edx, [eax - 7]
push str..QHImageHlp.c
call fcn.1000b2d0
add esp, 0xc
jmp 0x100081be
cmp dword [esp + 0x40], ebx
je 0x1000815b
mov ebx, eax
cmp dword [esp + 0x10], eax
jae 0x10008141
push 0x10060f7c
push 0x321
mov edx, 5
push str..QHImageHlp.c
call fcn.1000b2d0
add esp, 0xc
jmp 0x100081be
mov ecx, dword [esp + 0x24]
mov dx, word [esp + 0x28]
mov dword [esi], ecx
mov cx, word [esp + 0x2a]
mov word [esi + 4], dx
mov word [esi + 6], cx
jmp 0x100081b6
mov esi, dword [esp + 0x24]
cmp esi, dword [esp + 0x10]
jbe 0x10008173
push 0x10060f7c
mov ebx, esi
push 0x32d
jmp 0x1000812d
mov edx, dword [esp + 0x38]
xor ebx, ebx
push ebx
push ebx
push ebp
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100081a3
push str.SetFilePointerEx__
push 0xf9
push str..QHImageHlp.c
xor edx, edx
call fcn.1000b1a0
add esp, 0xc
jmp 0x100081be
mov ecx, dword [esp + 0x20]
mov edx, edi
call fcn.100076d0
test eax, eax
je 0x100081be
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100081c8
mov dword [eax], ebx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000d1df
add esp, 0x28
ret
Function at 0x1000c740
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0xc8]
sub esp, 0xc8
push 0xffffffffffffffff
push 0x1001c03b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x100641b0]
xor eax, ebp
mov dword [ebp + 0xc4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [0x100673c8], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
lea eax, [ebp]
push 0x40
push eax
call fcn.1000ecf5
add esp, 0x14
lea edx, [ebp]
push edx
push 1
xor ecx, ecx
push esi
mov word [ebp + 0x80], cx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, esi
je 0x1000c92d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000c7de
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x3e
lea ecx, [ebp + 0x86]
xor eax, eax
push esi
mov dword [ebp - 4], esi
push ecx
mov word [ebp + 0x84], ax
call fcn.1000e610
add esp, 0xc
push 0x1f
lea edx, [ebp + 0x84]
push edx
call fcn.1000c430
mov dword [ebp - 0x14], esi
cmp eax, esi
je 0x1000c845
lea edx, [ebp - 0x14]
xor ecx, ecx
push edx
mov word [ebp + eax*2 + 0x84], cx
lea eax, [ebp + 0x84]
push 0x100613e0
push eax
call fcn.1000e967
add esp, 0xc
cmp eax, 1
jne 0x1000c845
mov eax, dword [ebp - 0x14]
mov dword [0x100673c8], eax
jmp 0x1000c915
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
test eax, eax
je 0x1000c85f
push 0x5c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x1000c873
push ebx
push esi
call fcn.1000cb90
jmp 0x1000c875
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x100673c8], eax
test eax, eax
jne 0x1000c897
push 0x100621d8
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], 1
call fcn.1000e0db
push eax
lea edx, [ebp + 0x84]
push 0x100613e0
push edx
mov edi, 1
call fcn.1000edc8
add esp, 0xc
lea esi, [ebp + 0x84]
call fcn.1000c570
test eax, eax
jne 0x1000c90e
push 0x100621d8
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 3
call fcn.1000e0db
call fcn.1000c610
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, dword [0x100673c8]
test esi, esi
je 0x1000c8ff
call fcn.1000cc70
mov dword [0x100673c8], 0
jmp 0x1000c906
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x1000c90c
ret
mov eax, dword [0x100673c8]
xor esi, esi
inc dword [eax + 0x5bc]
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp edi, esi
jne 0x1000c92d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x100673c8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc4]
xor ecx, ebp
call fcn.1000d1df
add ebp, 0xc8
mov esp, ebp
pop ebp
ret
Function at 0x1000c960
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001bfb0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100641b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x100673c8]
xor edi, edi
cmp ecx, edi
jne 0x1000c9ab
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
jne 0x1000c9b8
mov dword [ebp - 0x14], edi
jmp 0x1000c9d0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x1000ca66
mov ecx, dword [0x100673c8]
mov eax, dword [ecx]
cmp eax, edi
je 0x1000c997
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000c997
mov ebx, 0x100673c8
mov dword [ebp - 4], edi
call fcn.1000ca80
mov esi, eax
mov dword [ebp - 0x14], esi
cmp esi, edi
jne 0x1000ca0e
push 0x100621d8
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 1
call fcn.1000e0db
mov ecx, dword [0x100673c8]
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x1000ca28
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp eax, edi
jne 0x1000ca52
push 0x100621d8
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], 4
call fcn.1000e0db
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x1000ca49
call fcn.1000cd90
mov eax, 0x1000ca4f
ret
mov eax, dword [0x100673c8]
mov eax, dword [eax]
test eax, eax
je 0x1000ca64
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ca80
Capabilities:
Print debug messages

Disassembly:
sub esp, 8
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x5b0]
add eax, 8
mov dword [eax + 0x5b0], ecx
cmp ecx, eax
jne 0x1000caad
xor ecx, ecx
jmp 0x1000cab9
mov edx, dword [ecx + 0x5a8]
mov dword [eax + 0x5b0], edx
push esi
mov esi, ecx
test ecx, ecx
je 0x1000cb6d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenThread]
mov eax, dword [esi]
cmp dword [esp + 0x10], eax
jne 0x1000cae0
mov dword [esp + 0xc], esi
jmp 0x1000cb40
push eax
push 1
push 0x40
call edi
test eax, eax
jne 0x1000cb39
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1000cb2c
mov eax, dword [esi + 0x5ac]
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5a8], ecx
mov edx, dword [esi + 0x5a8]
mov eax, dword [esi + 0x5ac]
mov dword [edx + 0x5ac], eax
call ebp
test eax, eax
je 0x1000cb40
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1000cb40
push 0x100613e8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1000cb40
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov esi, dword [eax + 0x5b8]
add eax, 8
cmp esi, eax
je 0x1000cb63
mov ecx, dword [esi + 0x5a8]
mov dword [eax + 0x5b0], ecx
test esi, esi
jne 0x1000cad2
mov eax, dword [esp + 0xc]
pop edi
pop ebp
test eax, eax
jne 0x1000cb81
mov ecx, dword [ebx]
add ecx, 8
call fcn.1000ccc0
test eax, eax
je 0x1000cb81
mov edx, dword [esp + 8]
mov dword [eax], edx
pop esi
add esp, 8
ret

Function at 0x1000cb90
Capabilities:
Allocate thread local storage

Disassembly:
push 0xffffffffffffffff
push 0x1001c00b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100641b0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
lea esi, [edi + 8]
push 0x5a0
lea eax, [esi + 8]
push 0
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
push eax
mov dword [esi], 0
call fcn.1000e610
add esp, 0xc
mov dword [esi + 0x5ac], esi
mov dword [esi + 0x5a8], esi
mov dword [esi + 0x5b0], esi
mov dword [esp + 0x14], 0
mov dword [edi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x1000cc28
push 0x100621d8
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 2
call fcn.1000e0db
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x1000d1df
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100641b0]
jne 0x1000d1e9
repz ret
jmp fcn.1000f54d
Function at 0x408154
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.004085b4
mov byte [esp], al
cmp byte [esp], 0
jne 0x4082de
test edi, edi
je 0x4082de
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40821e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4081f9
cmp edi, 0xffffffff
je 0x4081b9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4081b9
mov byte [esp], 0
jmp 0x4082de
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4081f9
test ebx, ebx
jne 0x4081eb
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4081eb
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4082de
lea eax, [esp + 0xc]
call fcn.00407e34
dec ebp
test ebp, ebp
jg 0x40819e
cmp edi, 0xffffffff
je 0x40821e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40821c
mov byte [esp], 0
jmp 0x4082de
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x408162
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40821e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040834c
mov edx, eax
mov ebx, dword [0x4e88f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408282
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408280
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408282
xor edi, edi
cmp byte [esp], 0
je 0x4082a8
mov ebx, dword [esi]
test bl, 1
jne 0x4082be
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408288
mov byte [esp + 1], 1
jmp 0x4082be
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4082a8
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x408235
cmp byte [esp], 0
je 0x4082de
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 0x408ef4
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x4eab18
cmp dword [ebp + 0xc], 2
jl 0x408f08
mov ebx, 0x4eab48
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 0x408f40
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x404c90
mov dword [0x4e801c], eax
mov eax, 0x404c98
mov dword [0x4e8020], eax
mov eax, ebx
call fcn.00408dd8
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 0x408f75
cmp al, 3
jge 0x408f75
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x408f86
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x408f91
call dword [ecx + eax*4]
cmp dword [0x4e8040], 0
jne 0x408fa7
mov byte [0x4e8048], 1
fnstcw word [0x4e4024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409238
call fcn.00408e88
ret 4

Function at 0x4091a0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4e8058], 0
je 0x409207
cmp word [0x4e8344], 0xd7b2
jne 0x4091c9
cmp dword [0x4e834c], 0
jbe 0x4091c9
mov eax, 0x4e8340
call dword [0x4e835c]
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, 0x409234
call fcn.00409d40
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e402e], 0
jne 0x409223
push 0
push 0x4e49c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4093d0
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 [0x4e4030], 0
je 0x4093fb
mov edx, edi
mov eax, esi
call dword [0x4e4030]
mov ebx, eax
jmp 0x40940c
mov eax, 8
call fcn.004069b8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4e8059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409398
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 0x40943c
mov eax, ebx
call fcn.004069d4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40bcb0
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 0x40be15
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409510
cmp si, word [0x4e4a00]
jb 0x40bd48
cmp si, word [0x4e4c00]
ja 0x40bd48
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40bd48
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4e4a00]
jae 0x40bd22
mov edi, ebx
dec edi
jmp 0x40bd43
cmp si, word [ebx*8 + 0x4e4a00]
jbe 0x40bd32
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40bd43
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4e4a04]
call fcn.0040bbd0
jmp 0x40bd48
cmp edi, dword [ebp - 8]
jae 0x40bd0c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40bdf7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40bdf7
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.0040a0e0
push dword [ebp - 0x160]
push 0x40be30
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a0e0
push dword [ebp - 0x164]
push 0x40be40
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a0e0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040a318
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be1c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409570
ret
Function at 0x40bfc8
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 0x40c0cc
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4eab88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4eaba0]
jne 0x40c014
mov eax, esi
mov edx, 0x4eaba2
mov ecx, 0x55
call fcn.0040a0e0
push 0x4eab88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40c0b6
push 0x4eab88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409510
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c083
cmp byte [0x4eab84], 0
je 0x40c048
mov edx, esi
mov eax, ebx
call fcn.0040beac
jmp 0x40c083
mov edx, esi
mov eax, ebx
call fcn.0040bcb0
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40c083
cmp dword [esi], 0
je 0x40c06c
mov eax, esi
mov edx, 0x40c0e4
call fcn.0040a238
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040bcb0
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040a238
push 0x4eab88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4eaba0], bx
mov eax, dword [esi]
call fcn.0040a03c
mov ecx, eax
mov eax, 0x4eaba2
mov edx, 0xaa
call fcn.0040bb30
push 0x4eab88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0d3
lea eax, [ebp - 4]
call fcn.00409510
ret
Function at 0x40c2fc
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.004095f4
xor eax, eax
push ebp
push 0x40c521
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40c33c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40c356
mov eax, dword [ebp - 4]
call fcn.0040a03c
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040bb30
cmp word [ebp - 0x21a], 0
je 0x40c50b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c530
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c425
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c530
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c425
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c56c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c425
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c56c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c425
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c5a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40c425
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40c5d4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40c50b
xor eax, eax
push ebp
push 0x40c504
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040c10c
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 0x40c494
mov eax, dword [ebp - 0x10]
call fcn.004069b8
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.0040a0a4
jmp 0x40c4df
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40c614
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40c4df
mov eax, dword [ebp - 0x10]
call fcn.004069b8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40c614
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040a0a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c50b
cmp dword [ebp - 8], 0
je 0x40c4fa
mov eax, dword [ebp - 8]
call fcn.004069d4
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 0x40c528
lea eax, [ebp - 4]
call fcn.00409510
ret
Function at 0x40c810
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004095f4
xor eax, eax
push ebp
push 0x40c8d0
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a0e0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a290
mov eax, dword [ebx]
call fcn.0040c6d8
test al, al
jne 0x40c8ad
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040a0e0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040a290
mov eax, dword [ebx]
call fcn.0040c6d8
test al, al
jne 0x40c8ad
mov eax, ebx
call fcn.00409510
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8d7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409570
lea eax, [ebp - 4]
call fcn.00409510
ret

Function at 0x40d178
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x41c924
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x41ca52
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x218]
push eax
push 0x104
call sub.kernel32.dll_GetLogicalDriveStringsW
mov esi, eax
test esi, esi
jle 0x41ca2c
lea ebx, [ebp - 0x218]
lea eax, [ebx + 4]
mov word [eax], 0
push 0x104
lea eax, [ebp - 0x424]
push eax
push ebx
call sub.kernel32.dll_QueryDosDeviceW
mov esi, eax
test esi, esi
jle 0x41ca15
lea eax, [ebp - 4]
lea edx, [ebp - 0x424]
mov ecx, 0x106
call fcn.0040a0e0
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a558
test eax, eax
jle 0x41ca15
mov eax, dword [ebp - 4]
test eax, eax
je 0x41c9c9
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov edi, dword [ebp - 8]
test edi, edi
je 0x41c9d7
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x428]
push eax
mov ecx, edi
sub ecx, esi
lea edx, [esi + 1]
mov eax, dword [ebp - 8]
call fcn.0040a400
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, ebx
call fcn.0040a0a4
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.0040a290
jmp 0x41ca2c
add ebx, 2
cmp word [ebx], 0
jne 0x41ca12
add ebx, 4
test ebx, ebx
je 0x41ca26
cmp word [ebx], 0
jne 0x41c976
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ca59
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00409570
lea eax, [ebp - 4]
call fcn.00409510
ret