joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4383a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4684c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004616fd
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00437d40
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046162b
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045deef
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045deef
push 1
push 0
push 0
mov ecx, esi
call fcn.0045de97
push 1
push 0
push 1
mov ecx, esi
call fcn.0045de97
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046176f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x438520
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4684e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004616fd
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00437d40
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046162b
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4385e4
cmp dword [esp + 0x40], 1
jne 0x4385e2
cmp ecx, eax
jge 0x4385e4
mov eax, ecx
cmp eax, 0xc8
jge 0x4385f0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004383a0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046176f
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x438d70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468553
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045c30d
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004619a5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00462ec1
test eax, eax
je 0x438e8c
mov ecx, dword [esp + 0x3c]
call fcn.004619d2
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x438e50
push edi
mov ecx, esi
call fcn.0045f03a
mov ecx, esi
call fcn.00438ff0
cmp dword [esp + 0x38], 1
jne 0x438e85
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045f175
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43b8a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43b8d3
push esi
call fcn.0043e9b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43b8cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43b959
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43b942
mov eax, dword [esi + 8]
test eax, eax
je 0x43b8f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43b93e
cmp eax, 2
je 0x43b942
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43b8ea
cmp eax, 3
je 0x43b91d
cmp eax, 1
jne 0x43b8ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43b8ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43b8ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043b980
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43b968
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043b980
add esp, 4
pop esi
ret

Function at 0x447950
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4479f3
test eax, eax
jbe 0x4479f3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4479f3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x44799e
xor esi, esi
jmp 0x4479a4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4479cf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00403590
add esi, eax
push esi
mov ebx, esi
call fcn.00403590
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4479b0
pop ebp
test edi, edi
pop edi
jne 0x4479f3
test ebx, ebx
je 0x4479f3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0044be90
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x447b35
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x447c4d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x447c4d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0045c75f
mov esi, eax
test esi, esi
je 0x447c4d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x447c4d
mov ecx, esi
call fcn.00447aa0
cmp edi, eax
jge 0x447c4d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x447bd3
mov dword [esp + 0x34], 1
jmp 0x447c2e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x447c4d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00447040
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x45d102
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45d13a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045b1b9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045b191
jmp 0x45d146
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45e7f7
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 0x45e839
call fcn.004642b1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45e839
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45e830
xor eax, eax
jmp 0x45e841
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045e847
pop edi
pop esi
pop ebx
ret 4
Function at 0x4647e1
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 0x46480f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46482d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00464747
jmp 0x46482d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46482d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00464747
test edi, edi
mov eax, edi
jne 0x464817
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40121c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40122e
mov eax, dword [0x43b09f]
shl eax, 2
mov dword [0x43b0a3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0042de48
pop edx
call fcn.0042da48
call fcn.0042e3d4
push 0
call fcn.0042f6f8
pop ecx
push 0x43b048
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x43b0a7], eax
push 0
jmp fcn.00437404

Function at 0x401600
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdb8
mov eax, 0x43b37c
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
call fcn.0042eaf8
mov edx, dword [0x43b1b8]
mov ecx, dword [0x43b1c0]
mov dword [ebp - 0x30], edx
mov edx, dword [0x43b1bc]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x40], ecx
mov ecx, dword [0x43b1c4]
lea eax, [ebp - 0x248]
mov dword [ebp - 0x3c], ecx
push 0x208
push eax
push 0
mov dword [0x442b1c], 1
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push SysReAllocStringLen
lea edx, [ebp - 0x248]
push edx
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401783
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 0x28]
push 0
push eax
lea edx, [ebp - 0x38]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4016c3
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40178f
push 8
lea ecx, [ebp - 0x38]
push ecx
lea eax, [ebp - 0x40]
push eax
call fcn.0042e910
add esp, 0xc
test eax, eax
je 0x4016ea
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40178f
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea ecx, [ebp - 0x28]
push ecx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40171d
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40178f
push 4
push 0x1000
mov ecx, dword [esi]
push ecx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x43b1b4], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 0x28]
push 0
push edx
mov eax, dword [0x43b1b4]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401772
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40178f
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x40178f
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401798
Capabilities:
Extract resource via kernel32 functions
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcd8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, 0x43b3a0
call fcn.0042eaf8
push 0x2350
push 0x69
push esi
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
test ebx, ebx
jne 0x4017e3
mov eax, dword [ebp + 0x14]
push eax
call fcn.00401600
pop ecx
test eax, eax
jne 0x401837
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x401935
push ebx
push esi
call sub.KERNEL32.DLL_LoadResource
mov edi, eax
test edi, edi
jne 0x401801
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x401935
je 0x401806
jne 0x401806
jmp 0x40185e
push edi
call sub.KERNEL32.DLL_LockResource
mov dword [0x43b1b4], eax
cmp dword [0x43b1b4], 0
jne 0x40182b
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x401935
push ebx
push esi
call sub.KERNEL32.DLL_SizeofResource
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x401935
inc ebx
add byte [eax + 0x53], dl
call fcn.0042e470
add esp, 0xc
mov edx, sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x28], edx
mov esi, dword [ebp - 0x28]
mov al, byte [esi]
cmp al, 0xcc
je 0x4018ee
mov ecx, 0x43a144
mov dword [ebp - 0x2c], ecx
mov esi, dword [ebp - 0x2c]
mov al, byte [esi]
cmp al, 0xcc
je 0x4018ee
mov eax, sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x30], eax
mov esi, dword [ebp - 0x30]
mov al, byte [esi]
cmp al, 0xcc
je 0x4018ee
mov edx, sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 0x34], edx
mov esi, dword [ebp - 0x34]
mov al, byte [esi]
cmp al, 0xcc
je 0x4018ee
mov ecx, sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0x38], ecx
mov esi, dword [ebp - 0x38]
mov al, byte [esi]
cmp al, 0xcc
je 0x4018ee
lea edi, [ebp - 0x224]
mov esi, 0x43b1ca
mov ecx, 8
lea eax, [ebp - 0x224]
rep movsd dword es:[edi], dword [esi]
push 0x124
push eax
lea edx, [ebx + 0xa8]
push 0x64
push edx
call fcn.00402080
add esp, 0x10
mov ecx, dword [ebx + 0x1c0]
push ecx
lea eax, [ebx + 0xa8]
push eax
add ebx, 0xbc
push ebx
push 0
call sub.USER32.DLL_MessageBoxA
call sub.KERNEL32.DLL_GetCurrentProcessId
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
push 0
push ebx
call sub.KERNEL32.DLL_TerminateProcess
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415a20
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x444ec0], 0
je 0x415a81
cmp word [0x44519c], 0xd7b2
jne 0x415a49
cmp dword [0x4451a4], 0
jbe 0x415a49
mov eax, 0x445198
call dword [0x4451b4]
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
push 0x415aac
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x43b74c], 0
jne 0x415a9d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x41760c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x417773
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0041623c
cmp si, word [0x43bef0]
jb 0x4176a6
cmp si, word [0x43c0f0]
ja 0x4176a6
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4176a6
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x43bef0]
jae 0x417680
mov edi, ebx
dec edi
jmp 0x4176a1
cmp si, word [ebx*8 + 0x43bef0]
jbe 0x417690
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4176a1
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x43bef4]
call fcn.0041751c
jmp 0x4176a6
cmp edi, dword [ebp - 0xc]
jae 0x41766a
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x417755
push 2
movzx eax, si
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x417755
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00416424
push dword [ebp - 0x164]
push 0x417790
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00416424
push dword [ebp - 0x168]
push 0x4177a0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00416424
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00416710
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41777a
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00416234
ret
Function at 0x4177a4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x41798a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4479d4
call sub.KERNEL32.DLL_EnterCriticalSection
movzx eax, word [0x4479ec]
cmp ax, word [ebp - 2]
jne 0x4177fc
mov eax, dword [ebp - 6]
mov edx, 0x4479f0
mov ecx, 0x55
call fcn.00416424
push 0x4479d4
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x417974
push 0x4479d4
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.0041623c
push 2
movzx eax, word [ebp - 2]
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x41793c
cmp byte [0x4479d0], 0
je 0x4178f2
call dword [0x4479c8]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x4479cc]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x4178eb
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4479c4]
test al, al
je 0x4178c4
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.0041443c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x4479c4]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4178b9
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x4178b5
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4178a2
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.004163e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41793c
movzx eax, word [ebp - 0x16]
push eax
call dword [0x4479cc]
cmp dword [ebp - 0x10], 0
je 0x4178ea
mov eax, dword [ebp - 0x10]
call fcn.00414458
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.0041760c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x41793c
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x417921
mov eax, dword [ebp - 6]
mov edx, 0x4179a4
call fcn.0041656c
mov eax, dword [ebp - 6]
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.0041760c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.0041656c
mov eax, dword [ebp - 6]
push 0x4479d4
call sub.KERNEL32.DLL_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x4479ec], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.004162c8
push eax
push 0x4479f0
call sub.KERNEL32.DLL_lstrcpynW
push 0x4479d4
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417991
lea eax, [ebp - 0x1c]
call fcn.0041622c
ret