joyce8/EMBER2024-capa huggingface dataset:
Function at 0x465c30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x49a307
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.00485d08
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.00485d08
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.00466750
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4667a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49a3e0
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00491ff8
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4667d3
xor al, al
jmp 0x4668ff
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4667f5
xor al, al
jmp 0x4668ff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x466808
xor al, al
jmp 0x4668ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x46681c
xor al, al
jmp 0x4668ff
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.00485db8
test eax, eax
jne 0x466850
xor al, al
jmp 0x4668ff
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x864bbc
mov dword [esp + 0x20], ebp
call fcn.00491ff8
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.0048ebef
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.0048ec46
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4668e4
mov ax, word [ebx]
test ax, ax
je 0x4668d6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00466920
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4668ba
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.0048ec46
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x466e60
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004902db
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x466ea6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.00476938
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x881dc4
push ecx
call fcn.00477fd1
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4677b0
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 0x467853
test eax, eax
jbe 0x467853
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x467853
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 0x4677fe
xor esi, esi
jmp 0x467804
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46782f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00463a80
add esi, eax
push esi
mov ebx, esi
call fcn.00463a80
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x467810
pop ebp
test edi, edi
pop edi
jne 0x467853
test ebx, ebx
je 0x467853
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00477440
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x467995
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 0x467aad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x467aad
mov eax, dword [esi + 0x3c]
push eax
call fcn.00489734
mov esi, eax
test esi, esi
je 0x467aad
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 0x467aad
mov ecx, esi
call fcn.00467900
cmp edi, eax
jge 0x467aad
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 0x467a33
mov dword [esp + 0x34], 1
jmp 0x467a8e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x467aad
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.00466f00
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 0x469910
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x469976
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x469976
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x469957
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x469d00
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x469d38
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x46aa10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x46aa59
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x46aed0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49a8c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0046aa80
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0046ab00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0046ab00
lea ecx, [esi + 0xc]
call fcn.00487c5e
lea ecx, [esi + 0x10]
call fcn.00487c5e
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0046c090
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0046c090
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0046c090
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00487cd3
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00487cd3
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x48a0d8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48a110
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.0048817a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00488152
jmp 0x48a11c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48b8d3
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 0x48b915
call fcn.00491ff8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48b915
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48b90c
xor eax, eax
jmp 0x48b91d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048b923
pop edi
pop esi
pop ebx
ret 4

Function at 0x492528
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 0x492556
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x492574
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049248e
jmp 0x492574
mov eax, dword [esi + 0x14]
test eax, eax
je 0x492574
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049248e
test edi, edi
mov eax, edi
jne 0x49255e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x402498
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov al, byte [0x41555c]
test al, al
mov byte [esp], dl
lea esi, [esp + 4]
je 0x4024d4
xor edx, edx
mov dl, al
cmp edx, 0x20
je 0x4024c8
mov edx, 0x414125
mov eax, ebx
call fcn.0040eef0
mov edx, 0x41555c
mov eax, ebx
call fcn.0040eef0
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.0040ed1c
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x4024fd
lea edx, [ebx + 1]
jmp 0x4024ff
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x402550
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x402528
jmp 0x402521
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402521
mov byte [ebx + eax], 0x20
jmp 0x402528
inc eax
cmp byte [ebx + eax], 0
jne 0x402511
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x40253d
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x40254f
cmp edx, 0x20
jne 0x402546
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x402557
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x402506
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.00405e24
mov edi, eax
test edi, edi
je 0x402583
mov edx, str..inf
mov eax, edi
call fcn.0040eea4
test eax, eax
jne 0x402583
mov dword [esi + 0xc], 0x4141f6
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.0040693c
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x4025ab
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00406a08
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x4025ee
cmp byte [esp + 1], 0
jne 0x4025ee
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.0040ee1c
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040eef0
lea eax, [esp + 0x440]
xor edx, edx
call fcn.0040693c
test al, al
je 0x4026d6
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402618
and dword [esi + 4], 0xfffffbff
mov dword [esi + 0x10], ebx
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x4026d6
cmp byte [0x414044], 0
jne 0x40262f
cmp byte [esp], 0
je 0x402687
mov ebx, dword [0x4148a8]
test ebx, ebx
je 0x402643
push ebx
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x402647
xor eax, eax
jmp 0x40264c
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x40265f
push 0
push dword [0x4148a8]
call sub.USER32.DLL_ShowWindow
push 0x7d0
push dword [esi + 0x38]
call sub.USER32.DLL_WaitForInputIdle
push 0xffffffffffffffff
push dword [esi + 0x38]
call sub.KERNEL32.DLL_WaitForSingleObject
test ebx, ebx
je 0x402687
push 1
push dword [0x4148a8]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x4026a3
mov edx, str..exe
mov eax, edi
call fcn.0040eea4
test eax, eax
je 0x4026d6
cmp byte [0x414044], 0
je 0x4026be
cmp byte [esp], 0
jne 0x4026be
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x4026d6
cmp byte [esp], 0
je 0x4026cb
mov edx, 0xc8
jmp 0x4026d0
mov edx, 0x3e8
push edx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x4045f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00407164
test esi, esi
jne 0x404630
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.004072a0
jmp 0x40464e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004044dc
mov edi, eax
test esi, esi
je 0x40464e
cmp dword [ebx], 0
je 0x40464e
dec esi
jmp 0x404637
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x406520
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x505050], 0
je 0x406581
cmp word [0x50532c], 0xd7b2
jne 0x406549
cmp dword [0x505334], 0
jbe 0x406549
mov eax, 0x505328
call dword [0x505344]
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 0x4065ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4fe034], 0
jne 0x40659d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40670c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4fe03c], 0
je 0x406732
mov edx, esi
mov eax, ebx
call dword [0x4fe03c]
jmp 0x406741
mov eax, 8
call fcn.00404218
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x505051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4066d4
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408f24
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 0x40908b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00407164
cmp si, word [0x4fe7f8]
jb 0x408fbe
cmp si, word [0x4fe9f8]
ja 0x408fbe
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408fbe
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4fe7f8]
jae 0x408f98
mov edi, ebx
dec edi
jmp 0x408fb9
cmp si, word [ebx*8 + 0x4fe7f8]
jbe 0x408fa8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408fb9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4fe7fc]
call fcn.00408e34
jmp 0x408fbe
cmp edi, dword [ebp - 0xc]
jae 0x408f82
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40906d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40906d
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.00407364
push dword [ebp - 0x164]
push 0x4090a8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00407364
push dword [ebp - 0x168]
push 0x4090b8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00407364
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.0040771c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409092
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040715c
ret
Function at 0x4090bc
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 0x4092a2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x507b58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x507b70]
cmp ax, word [ebp - 2]
jne 0x409114
mov eax, dword [ebp - 6]
mov edx, 0x507b74
mov ecx, 0x55
call fcn.00407364
push 0x507b58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40928c
push 0x507b58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.00407164
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409254
cmp byte [0x507b54], 0
je 0x40920a
call dword [0x507b4c]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x507b50]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x409203
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 [0x507b48]
test al, al
je 0x4091dc
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00404218
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 [0x507b48]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x4091d1
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x4091cd
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x4091ba
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00407310
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409254
movzx eax, word [ebp - 0x16]
push eax
call dword [0x507b50]
cmp dword [ebp - 0x10], 0
je 0x409202
mov eax, dword [ebp - 0x10]
call fcn.00404234
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00408f24
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x409254
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x409239
mov eax, dword [ebp - 6]
mov edx, 0x4092bc
call fcn.00407578
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00408f24
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.00407578
mov eax, dword [ebp - 6]
push 0x507b58
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x507b70], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.004071f0
push eax
push 0x507b74
call sub.kernel32.dll_lstrcpynW
push 0x507b58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092a9
lea eax, [ebp - 0x1c]
call fcn.00407154
ret