joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000cf57
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x1000cf70
or eax, 0xffffffff
jmp 0x1000cfd1
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1000cfcd
push 0x3d
push esi
call fcn.1000d2ec
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1000cfcd
cmp esi, eax
je 0x1000cfcd
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x10012380]
sete cl
cmp eax, dword [0x10012384]
mov dword [ebp - 8], ecx
jne 0x1000cfb3
mov edi, eax
call fcn.1000cef6
mov dword [0x10012380], eax
cmp eax, ebx
jne 0x1000d00c
cmp dword [ebp + 0xc], ebx
je 0x1000cfd5
cmp dword [0x10012388], ebx
je 0x1000cfd5
call fcn.1000bdf2
test eax, eax
je 0x1000d00c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x1000cfde
xor eax, eax
jmp 0x1000cfd0
push 4
call fcn.100052f5
cmp eax, ebx
pop ecx
mov dword [0x10012380], eax
je 0x1000cfcd
mov dword [eax], ebx
cmp dword [0x10012388], ebx
jne 0x1000d00c
push 4
call fcn.100052f5
cmp eax, ebx
pop ecx
mov dword [0x10012388], eax
je 0x1000cfcd
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x10012380]
call fcn.1000cea9
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x1000d06d
cmp dword [esi], ebx
je 0x1000d06d
lea esi, [esi + edi*4]
push dword [esi]
call fcn.100051dd
cmp dword [ebp - 8], ebx
pop ecx
jne 0x1000d050
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x1000d0ae
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x1000d047
mov eax, edi
shl eax, 2
push eax
push dword [0x10012380]
call fcn.1000c8e6
cmp eax, ebx
pop ecx
pop ecx
je 0x1000d0ae
jmp 0x1000d0a9
cmp dword [ebp - 8], ebx
jne 0x1000d119
cmp edi, ebx
jge 0x1000d07c
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x10012380]
call fcn.1000c8e6
cmp eax, ebx
pop ecx
pop ecx
je 0x1000cfcd
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x10012380], eax
cmp dword [ebp + 0xc], ebx
je 0x1000d103
push dword [ebp - 4]
call fcn.10009b40
inc eax
inc eax
push eax
call fcn.100052f5
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x1000d103
push dword [ebp - 4]
push esi
call fcn.10009a40
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1000d0fc
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.100051dd
pop ecx
cmp dword [ebp - 8], ebx
je 0x1000d111
push dword [ebp - 4]
call fcn.100051dd
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x1000cfd0
push dword [ebp - 4]
call fcn.100051dd
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x1000cfda
Function at 0x4033f2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4224ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040f35f
and dword [ebp - 0x14], 0
cmp dword [0x424954], 0
mov dword [ebp - 0x18], eax
jne 0x4034a5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40354d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41dc90
push ebx
call edi
test eax, eax
je 0x40354d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x424954], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x424958], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42495c], eax
call edi
push eax
call esi
mov dword [0x424964], eax
test eax, eax
je 0x4034a5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x424960], eax
mov eax, dword [0x424960]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4034fe
cmp dword [0x424964], ecx
je 0x4034fe
push eax
call esi
push dword [0x424964]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4034fe
test ebx, ebx
je 0x4034fe
call edi
test eax, eax
je 0x4034f5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4034f5
test byte [ebp - 8], 1
jne 0x4034fe
or dword [ebp + 0x10], 0x200000
jmp 0x403531
mov eax, dword [0x424958]
cmp eax, dword [ebp - 0x18]
je 0x403531
push eax
call esi
test eax, eax
je 0x403531
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x403531
mov eax, dword [0x42495c]
cmp eax, dword [ebp - 0x18]
je 0x403531
push eax
call esi
test eax, eax
je 0x403531
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x424954]
call esi
test eax, eax
je 0x40354d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40354f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c8ad
leave
ret

Function at 0x408503
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40851e
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408555
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x408551
jmp 0x408543
cmp esi, eax
jae 0x408555
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408543
cmp esi, eax
jb 0x40855c
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x408f71
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x4224ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push 0x20a
push ecx
lea edx, [ebp - 0x20e]
push edx
mov dword [ebp - 0x434], eax
mov word [ebp - 0x210], cx
call fcn.0040dca2
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x409076
xor ecx, ecx
push 0x208
push ecx
lea edx, [ebp - 0x41a]
push edx
mov word [ebp - 0x41c], cx
call fcn.0040dca2
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
push 0x17a
push 0x41b30c
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x409076
push 0
push 0x100
push 2
push 0
push 1
push 0x10000000
lea edx, [ebp - 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x430], eax
cmp eax, 0xffffffff
je 0x409076
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [ebp - 0x430]
push 0
lea ecx, [ebp - 0x438]
push ecx
push 0x10
lea edx, [ebp - 0x42c]
push edx
push eax
mov dword [ebp - 0x438], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x434]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.0040c8ad
mov esp, ebp
pop ebp
ret 8
Function at 0x409e78
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenMutexA]
push 0x64
push 0
push 0
push 1
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push 0
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 1
call dword [sym.imp.USER32.dll_GetSysColor]
push 0
push 0
push 1
call edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
pop edi
mov dword [esi], eax
mov eax, esi
pop ebx
pop ebp
ret 0x10

Function at 0x40a467
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4224ec]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.0040dca2
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40a4cb
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c8ad
mov esp, ebp
pop ebp
ret

Function at 0x40bd47
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], 0x24
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x2c], 0
je 0x40bd7a
mov ecx, dword [ebp - 0x28]
mov byte [ecx], 0
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x40bd5a
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov esp, ebp
pop ebp
ret
Function at 0x40c759
Capabilities:
Allocate or change rwx memory
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
movzx edx, word [eax + 0x14]
push esi
lea esi, [edx + eax + 0x28]
xor edx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
cmp dx, word [eax + 6]
jae 0x40c871
push ebx
push edi
jmp 0x40c78d
mov ecx, dword [ebp - 8]
mov ebx, dword [esi]
test ebx, ebx
jne 0x40c7f9
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x40c854
mov edi, dword [esi - 4]
add edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 9
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
push 0
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0
push eax
mov dword [esi - 8], eax
call fcn.0040dca2
jmp 0x40c851
mov edi, dword [esi - 4]
add edi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x45b5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0xffffffffffffffff
push 0
push 1
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x40
push 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
add edx, dword [ebp + 8]
push ecx
mov edi, eax
push edx
push edi
call fcn.00402117
mov dword [esi - 8], edi
add esp, 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
movzx ecx, word [edx + 6]
inc eax
add esi, 0x28
mov dword [ebp - 4], eax
cmp eax, ecx
jl 0x40c78a
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c8ad
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4224ec]
jne 0x40c8b7
repz ret
jmp fcn.0040e62e
Function at 0x40d6e7
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push 0x40
xor eax, eax
sub ecx, edi
push 8
mov dword [ebp - 8], eax
sub ecx, 5
mov dword [ebp - 4], eax
push edi
mov byte [ebp - 8], 0xe9
mov dword [ebp - 7], ecx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40d797
push ebx
lea ebx, [ebp - 8]
push esi
mov esi, edi
sub ebx, edi
mov eax, dword [ebx + esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
add esi, 4
lea eax, [edi + 4]
cmp esi, eax
jbe 0x40d727
mov edx, dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
push ecx
push edx
push 8
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
call dword [sym.imp.USER32.dll_GetFocus]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 9
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
push 0
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4134bd
Capabilities:
Check mutex on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4224ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call edi
push 0x45b5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.KERNEL32.dll_OpenMutexW]
push 0xffffffffffffffff
push 0
push 1
push 0x1f0001
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
call ebx
xor eax, eax
push 0x208
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.0040dca2
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x413560
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push str.cgds
push str.jghbvcvc
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x104
lea edx, [ebp - 0x10b]
push 0
push edx
mov byte [ebp - 0x10c], 0
call fcn.0040dca2
add esp, 0xc
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4135c3
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push str.ireiioooep
push 0x4249d8
call fcn.00406fde
push eax
call fcn.00404ad3
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
neg eax
push eax
push 1
call esi
push 0
push 0
push 0x1f0001
call esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
call ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessVersion]
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 1
call esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0xe
pop ebx
call fcn.0040c8ad
mov esp, ebp
pop ebp
ret 8

Function at 0x4168a1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418102
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4224ec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x41b4e4
mov eax, dword [0x423714]
mov edx, dword [eax + 0xc]
lea edi, [esi + 4]
mov ecx, 0x423714
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 1
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x41690a
xor ecx, ecx
jmp 0x416920
mov ecx, eax
lea ebx, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x416911
sub ecx, ebx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.0040ed5f
mov dword [ebp - 4], 0xffffffff
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 0x419c98
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0040fcfb
lea edi, [eax + 0x9c]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x419ca8
or dword [edi + 8], 0x104
jmp 0x419d6b
mov dword [edi], eax
add eax, 0x40
lea ebx, [edi + 4]
mov dword [ebx], eax
je 0x419cc9
cmp byte [eax], 0
je 0x419cc9
push ebx
push 0x16
push 0x41db50
call fcn.004116a4
add esp, 0xc
mov eax, dword [edi]
and dword [edi + 8], 0
test eax, eax
je 0x419d2e
cmp byte [eax], 0
je 0x419d2e
mov eax, dword [ebx]
test eax, eax
je 0x419cec
cmp byte [eax], 0
je 0x419cec
mov esi, edi
call fcn.004010c3
jmp 0x419cf3
mov esi, edi
call fcn.0040f10c
cmp dword [edi + 8], 0
jne 0x419d81
push edi
push 0x40
push 0x41d948
call fcn.004116a4
add esp, 0xc
test eax, eax
je 0x419d77
mov ebx, dword [ebx]
test ebx, ebx
je 0x419d25
cmp byte [ebx], 0
je 0x419d25
mov esi, edi
call fcn.004010c3
jmp 0x419d77
mov esi, edi
call fcn.0040f10c
jmp 0x419d77
mov ebx, dword [ebx]
test ebx, ebx
je 0x419d64
cmp byte [ebx], 0
je 0x419d64
push ebx
call fcn.00402d0a
sub eax, 3
neg eax
pop ecx
sbb eax, eax
push 1
inc eax
push 0x419321
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [edi + 8], 4
jne 0x419d77
and dword [edi + 8], 0
jmp 0x419d77
mov dword [edi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x419e6c
mov esi, dword [ebp + 8]
mov eax, esi
sub eax, 0xffffff80
neg esi
sbb esi, esi
and esi, eax
call fcn.00411706
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x419e6c
cmp esi, 0xfde8
je 0x419e6c
cmp esi, 0xfde9
je 0x419e6c
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x419e6c
push 1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x419e6c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x419df8
mov cx, word [edi + 0x18]
mov word [eax], cx
mov cx, word [edi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], si
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x419e67
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, 0x814
cmp word [eax], cx
jne 0x419e2f
push str.Norwegian_Nynorsk
push 0x40
push ebx
call fcn.0040d663
add esp, 0xc
test eax, eax
je 0x419e40
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040e571
push 0x40
push ebx
push 0x1001
push dword [edi + 0x18]
call esi
test eax, eax
je 0x419e6c
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [edi + 0x1c]
call esi
test eax, eax
je 0x419e6c
push 0xa
push 0x10
sub ebx, 0xffffff80
push ebx
push dword [ebp + 8]
call fcn.0040d7a7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x419e6e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x419cc8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0040fcfb
lea edi, [eax + 0x9c]
mov eax, dword [ebp + 8]
test eax, eax
jne 0x419ca8
or dword [edi + 8], 0x104
jmp 0x419d6b
mov dword [edi], eax
add eax, 0x40
lea ebx, [edi + 4]
mov dword [ebx], eax
je 0x419cc9
cmp byte [eax], 0
je 0x419cc9
push ebx
push 0x16
push 0x41db50
call fcn.004116a4
add esp, 0xc
mov eax, dword [edi]
and dword [edi + 8], 0
test eax, eax
je 0x419d2e
cmp byte [eax], 0
je 0x419d2e
mov eax, dword [ebx]
test eax, eax
je 0x419cec
cmp byte [eax], 0
je 0x419cec
mov esi, edi
call fcn.004010c3
jmp 0x419cf3
mov esi, edi
call fcn.0040f10c
cmp dword [edi + 8], 0
jne 0x419d81
push edi
push 0x40
push 0x41d948
call fcn.004116a4
add esp, 0xc
test eax, eax
je 0x419d77
mov ebx, dword [ebx]
test ebx, ebx
je 0x419d25
cmp byte [ebx], 0
je 0x419d25
mov esi, edi
call fcn.004010c3
jmp 0x419d77
mov esi, edi
call fcn.0040f10c
jmp 0x419d77
mov ebx, dword [ebx]
test ebx, ebx
je 0x419d64
cmp byte [ebx], 0
je 0x419d64
push ebx
call fcn.00402d0a
sub eax, 3
neg eax
pop ecx
sbb eax, eax
push 1
inc eax
push 0x419321
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [edi + 8], 4
jne 0x419d77
and dword [edi + 8], 0
jmp 0x419d77
mov dword [edi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x419e6c
mov esi, dword [ebp + 8]
mov eax, esi
sub eax, 0xffffff80
neg esi
sbb esi, esi
and esi, eax
call fcn.00411706
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x419e6c
cmp esi, 0xfde8
je 0x419e6c
cmp esi, 0xfde9
je 0x419e6c
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x419e6c
push 1
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x419e6c
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x419df8
mov cx, word [edi + 0x18]
mov word [eax], cx
mov cx, word [edi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], si
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x419e67
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ecx, 0x814
cmp word [eax], cx
jne 0x419e2f
push str.Norwegian_Nynorsk
push 0x40
push ebx
call fcn.0040d663
add esp, 0xc
test eax, eax
je 0x419e40
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040e571
push 0x40
push ebx
push 0x1001
push dword [edi + 0x18]
call esi
test eax, eax
je 0x419e6c
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [edi + 0x1c]
call esi
test eax, eax
je 0x419e6c
push 0xa
push 0x10
sub ebx, 0xffffff80
push ebx
push dword [ebp + 8]
call fcn.0040d7a7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x419e6e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret