joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55e150
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6eab84]
xor edx, edx
cmp eax, edx
jne 0x55e176
xor eax, eax
mov byte [eax + 0x6eaa84], al
inc eax
cmp eax, 0x100
jl 0x55e15e
mov dword [0x6eab84], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6eaa84
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x55e207
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x55e1da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x55e1a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x55e280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x55e2d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x55e2ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x564c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5996de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00565580
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x68498c
call fcn.00585418
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x564cf3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00585418
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x564cec
push 0
mov ecx, eax
call fcn.0055bdb0
mov dword [esi + 0xc], eax
jmp 0x564cf5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x564cf5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x587b0e
Capabilities:
Get graphical window text

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

Function at 0x589383
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 0x5893c5
call fcn.0058f9b5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5893c5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5893bc
xor eax, eax
jmp 0x5893cd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005893d3
pop edi
pop esi
pop ebx
ret 4

Function at 0x58fee5
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 0x58ff13
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x58ff31
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0058fe4b
jmp 0x58ff31
mov eax, dword [esi + 0x14]
test eax, eax
je 0x58ff31
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0058fe4b
test edi, edi
mov eax, edi
jne 0x58ff1b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x592772
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x59279a
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5927ab
push 2
call edi
test ax, ax
jge 0x5927ab
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00587143
cmp dword [esi + 0x30], ebx
jne 0x592885
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00587143
cmp eax, dword [esp + 0x34]
jne 0x592885
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x592821
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x592866
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x592885
cmp eax, 0x205
je 0x592885
cmp eax, 0x201
je 0x592885
cmp eax, 0x204
je 0x592885
cmp eax, ebx
jne 0x59284c
cmp dword [esp + 0x1c], 0x1b
je 0x592885
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x6fc684]
jbe 0x59287b
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x5927de
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x405240
Capabilities:
Check for time delay via gettickcount
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1a0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x18c], 0x1191
mov bl, byte [esp + 0x187]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x6c], ecx
mov bh, bl
add bh, 0x87
mov byte [esp + 0x187], bh
mov dword [esp + 0x178], edx
mov dword [esp + 0x17c], esi
mov eax, dword [esp + 0x18c]
lea ecx, [esp + 0x74]
mov edx, 0x1291
sub edx, eax
mov esi, dword [esp + 0x190]
mov edi, dword [esp + 0x194]
mov dword [esp + 0x30], eax
mov eax, esp
mov dword [eax + 4], ecx
mov dword [eax], edx
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov byte [esp + 0x2f], bl
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], edi
call eax
sub esp, 8
lea ecx, [esp + 0x74]
mov byte [esp + 0x77], 0
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esp + 0x20], eax
call ecx
sub esp, 4
mov dword [esp + 0x180], eax
mov eax, dword [esp + 0x180]
mov ecx, dword [esp + 0x18c]
add ecx, 0xffffee72
cmp eax, ecx
je 0x405328
mov eax, dword [esp + 0x18c]
xor eax, 0x1191
mov dword [esp + 0x3c], eax
jmp 0x40542d
mov eax, dword [esp + 0x30]
and eax, 0x4c35
mov dword [esp + 0x188], eax
mov eax, dword [esp + 0x18c]
add eax, 0xffffee6f
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x1c], eax
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x18], eax
call ecx
lea ecx, [0x40121a]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x174], edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov ecx, esp
mov dword [ecx + 4], eax
mov dword [ecx], 0x401224
lea ecx, [esp + 0x70]
call fcn.00405440
sub esp, 8
cmp eax, 0
setne dl
xor dl, 0xff
test dl, 1
jne 0x4053a0
jmp 0x4053fd
mov eax, 0x19831
mov ecx, dword [esp + 0x174]
add ecx, 1
mov dword [esp + 0x174], ecx
sub eax, dword [esp + 0x18c]
cmp dword [esp + 0x174], eax
jle 0x4053c8
jmp 0x4053fd
lea eax, [0x401242]
lea ecx, [esp + 0x50]
mov edx, dword [esp + 0x174]
mov bl, byte [esp + 0x2f]
mov byte [esp + 0x187], bl
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00405c7c
mov dword [esp + 0x10], eax
jmp 0x405375
mov eax, esp
mov dword [eax], 0xbc54fdf4
call fcn.004198b0
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x28]
xor eax, 0x7e52
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x194], ecx
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x3c]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x406ca4
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x41d0b8]
je 0x406cca
inc esi
cmp esi, 0x17
mov dword [ebp - 4], esi
jb 0x406cb8
cmp esi, 0x17
jae 0x406e24
push 3
call fcn.0040c4d1
cmp eax, 1
pop ecx
je 0x406dee
push 3
call fcn.0040c4d1
test eax, eax
pop ecx
jne 0x406cfd
cmp dword [0x41d0b0], 1
je 0x406dee
cmp edi, 0xfc
je 0x406e24
push 0x40181c
mov edi, 0x314
push edi
mov esi, 0x41f0a8
push esi
call fcn.0040c469
add esp, 0xc
test eax, eax
je 0x406d33
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040917c
add esp, 0x14
mov byte [0x41f1c5], bl
push 0x104
mov ebx, 0x41f0c1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406d76
push 0x401804
push 0x2fb
push ebx
call fcn.0040c469
add esp, 0xc
test eax, eax
je 0x406d76
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040917c
add esp, 0x14
push ebx
push edi
push esi
call fcn.0040c3f5
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x406d94
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040917c
add esp, 0x14
push 0x401800
push edi
push esi
call fcn.0040c3f5
add esp, 0xc
test eax, eax
je 0x406db4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040917c
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x41d0bc]
push edi
push esi
call fcn.0040c3f5
add esp, 0xc
test eax, eax
je 0x406dd9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040917c
add esp, 0x14
push 0x12010
push 0x4017d8
push esi
call fcn.0040c255
add esp, 0xc
jmp 0x406e24
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x406e24
cmp edi, 0xffffffff
je 0x406e24
mov edx, dword [esi*8 + 0x41d0bc]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406e0d
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4074e9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x41f4c8]
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x407535
call esi
mov edi, eax
cmp edi, ebx
je 0x40751b
mov dword [0x41f4c8], 1
jmp 0x40753e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x407530
push 2
pop eax
mov dword [0x41f4c8], eax
jmp 0x407535
mov eax, dword [0x41f4c8]
cmp eax, 1
jne 0x4075bf
cmp edi, ebx
jne 0x407551
call esi
mov edi, eax
cmp edi, ebx
jne 0x407551
xor eax, eax
jmp 0x40761b
cmp word [edi], bx
mov eax, edi
je 0x407566
inc eax
inc eax
cmp word [eax], bx
jne 0x407558
inc eax
inc eax
cmp word [eax], bx
jne 0x407558
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4075b4
push eax
call fcn.0040caaa
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x4075b4
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x4075b1
push dword [ebp - 4]
call fcn.0040c7f4
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x40761b
cmp eax, 2
je 0x4075c8
cmp eax, ebx
jne 0x40754a
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x40754a
cmp byte [esi], bl
je 0x4075e6
inc eax
cmp byte [eax], bl
jne 0x4075dc
inc eax
cmp byte [eax], bl
jne 0x4075dc
sub eax, esi
inc eax
push eax
mov dword [ebp - 8], eax
call fcn.0040caaa
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x407605
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x40754a
push dword [ebp - 8]
push esi
push edi
call fcn.00405680
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407d39
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push edi
push 0x401848
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x407d56
call fcn.004079ed
xor eax, eax
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401888
push edi
call esi
push 0x40187c
push edi
mov dword [0x41f4cc], eax
call esi
push 0x401870
push edi
mov dword [0x41f4d0], eax
call esi
push 0x401868
push edi
mov dword [0x41f4d4], eax
call esi
cmp dword [0x41f4cc], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x41f4d8], eax
je 0x407db6
cmp dword [0x41f4d0], 0
je 0x407db6
cmp dword [0x41f4d4], 0
je 0x407db6
test eax, eax
jne 0x407dda
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x41f4d0], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x41f4cc], 0x40797d
mov dword [0x41f4d4], esi
mov dword [0x41f4d8], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x41d21c], eax
je 0x407e4d
push dword [0x41f4d0]
push eax
call esi
test eax, eax
je 0x407e4d
call fcn.00406c3e
push dword [0x41f4cc]
call fcn.004078a8
push dword [0x41f4d0]
mov dword [0x41f4cc], eax
call fcn.004078a8
push dword [0x41f4d4]
mov dword [0x41f4d0], eax
call fcn.004078a8
push dword [0x41f4d8]
mov dword [0x41f4d4], eax
call fcn.004078a8
add esp, 0x10
mov dword [0x41f4d8], eax
call fcn.0040b7e1
test eax, eax
jne 0x407e52
call fcn.004079ed
xor eax, eax
pop esi
pop edi
ret
push fcn.00407b74
push dword [0x41f4cc]
call fcn.00407917
pop ecx
call eax
mov dword [0x41d220], eax
cmp eax, 0xffffffff
je 0x407e48
push 0x214
push 1
call fcn.0040cbf4
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x407e48
push esi
push dword [0x41d220]
push dword [0x41f4d4]
call fcn.00407917
pop ecx
call eax
test eax, eax
jne 0x407ea5
push esi
call fcn.0040c7f4
pop ecx
jmp 0x407e48
push 0
push esi
call fcn.00407a2a
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x407e4f

Function at 0x40b9e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x40b9f3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b9ef
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x40ba10
Capabilities:
Enumerate pe sections

Disassembly:
mov ebx, ebx
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push edi
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push ebx
lea eax, [eax + ecx + 0x18]
jbe 0x40ba4f
mov ebx, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp ebx, ecx
jb 0x40ba45
mov edi, dword [eax + 8]
add edi, ecx
cmp ebx, edi
jb 0x40ba51
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x40ba35
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40c255
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040790e
xor ebx, ebx
cmp dword [0x41f6a0], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40c32c
push 0x401b58
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40c297
xor eax, eax
jmp 0x40c3f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b4c
push edi
call esi
cmp eax, ebx
je 0x40c290
push eax
call fcn.004078a8
mov dword [esp], 0x401b3c
push edi
mov dword [0x41f6a0], eax
call esi
push eax
call fcn.004078a8
mov dword [esp], 0x401b28
push edi
mov dword [0x41f6a4], eax
call esi
push eax
call fcn.004078a8
mov dword [0x41f6a8], eax
lea eax, [ebp - 8]
push eax
call fcn.004069e0
test eax, eax
pop ecx
pop ecx
je 0x40c2fa
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040917c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40c32c
push 0x401b0c
push edi
call esi
push eax
call fcn.004078a8
cmp eax, ebx
pop ecx
mov dword [0x41f6b0], eax
je 0x40c32c
push 0x401af4
push edi
call esi
push eax
call fcn.004078a8
pop ecx
mov dword [0x41f6ac], eax
mov eax, dword [0x41f6ac]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40c3a5
cmp dword [0x41f6b0], esi
je 0x40c3a5
push eax
call fcn.00407917
pop ecx
call eax
cmp eax, ebx
je 0x40c372
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41f6b0]
call fcn.00407917
pop ecx
call eax
test eax, eax
je 0x40c372
test byte [ebp - 0x18], 1
jne 0x40c3a5
lea eax, [ebp - 0xc]
push eax
call fcn.00406a5d
test eax, eax
pop ecx
je 0x40c38d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040917c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40c39c
or dword [ebp + 0x10], 0x200000
jmp 0x40c3d6
or dword [ebp + 0x10], 0x40000
jmp 0x40c3d6
mov eax, dword [0x41f6a4]
cmp eax, esi
je 0x40c3d6
push eax
call fcn.00407917
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c3d6
mov eax, dword [0x41f6a8]
cmp eax, esi
je 0x40c3d6
push dword [ebp - 4]
push eax
call fcn.00407917
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41f6a0]
call fcn.00407917
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414088
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x41dd80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x78
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp + 8]
and eax, 0x3ff
push 1
or eax, 0x400
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x4140c1
xor eax, eax
jmp 0x4140f2
lea edx, [ebp - 0x7c]
call fcn.00413fa1
cmp dword [ebp + 8], eax
je 0x4140ef
cmp dword [ebp + 0xc], 0
je 0x4140ef
mov edx, dword [esi]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4140db
sub eax, esi
mov esi, eax
call fcn.00413fd5
cmp eax, esi
je 0x4140bd
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040dd21
leave
ret
Function at 0x4144b3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.00407b5a
mov ebx, dword [ebp + 8]
mov esi, eax
add esi, 0x9c
test ebx, ebx
jne 0x4144db
or dword [esi + 8], 0x104
jmp 0x41459f
lea eax, [ebx + 0x40]
test eax, eax
lea edi, [esi + 4]
mov dword [esi], ebx
mov dword [edi], eax
je 0x4144fe
cmp byte [eax], 0
je 0x4144fe
push edi
push 0x16
push 0x402c28
call fcn.00413e8b
add esp, 0xc
mov eax, dword [esi]
and dword [esi + 8], 0
test eax, eax
je 0x41455b
cmp byte [eax], 0
je 0x41455b
mov eax, dword [edi]
test eax, eax
je 0x41451f
cmp byte [eax], 0
je 0x41451f
call fcn.004143f8
jmp 0x414524
call fcn.0041446b
cmp dword [esi + 8], 0
jne 0x4145b5
push esi
push 0x41
push 0x402a18
call fcn.00413e8b
add esp, 0xc
test eax, eax
je 0x4145ab
mov edi, dword [edi]
test edi, edi
je 0x414554
cmp byte [edi], 0
je 0x414554
call fcn.004143f8
jmp 0x4145ab
call fcn.0041446b
jmp 0x4145ab
mov edi, dword [edi]
test edi, edi
je 0x414598
cmp byte [edi], 0
je 0x414598
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41456b
xor ecx, ecx
sub eax, edx
cmp eax, 3
sete cl
push 1
push 0x413ff0
mov dword [esi + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
test byte [esi + 8], 4
jne 0x4145ab
and dword [esi + 8], 0
jmp 0x4145ab
mov dword [esi + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
cmp dword [esi + 8], 0
je 0x4146a9
mov eax, ebx
add ebx, 0x80
neg eax
sbb eax, eax
and eax, ebx
push eax
mov edx, esi
call fcn.00413f01
mov edi, eax
or edi, edi
pop ecx
mov dword [ebp + 8], edi
je 0x4146a9
cmp edi, 0xfde8
je 0x4146a9
cmp edi, 0xfde9
je 0x4146a9
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4146a9
push 1
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4146a9
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x414630
mov cx, word [esi + 0x18]
mov word [eax], cx
mov cx, word [esi + 0x1c]
mov word [eax + 2], cx
mov word [eax + 4], di
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x4146a4
cmp word [eax], 0x814
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
jne 0x414669
push 0x402cfc
push 0x40
push ebx
call fcn.0040c469
add esp, 0xc
test eax, eax
je 0x41467a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040917c
add esp, 0x14
jmp 0x41467a
push 0x40
push ebx
push 0x1001
push dword [esi + 0x18]
call edi
test eax, eax
je 0x4146a9
push 0x40
lea eax, [ebx + 0x40]
push eax
push 0x1002
push dword [esi + 0x1c]
call edi
test eax, eax
je 0x4146a9
push 0xa
push 0x10
add ebx, 0x80
push ebx
push dword [ebp + 8]
call fcn.00417258
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4146ab
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret