joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a660
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x46c864]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x230], ecx
lea ecx, [ebp - 0x14]
call fcn.00416fa0
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x230]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0042a600
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42a6cb
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x224], edx
lea ecx, [ebp - 0x14]
call fcn.0042a460
mov eax, dword [ebp - 0x224]
jmp 0x42a75c
mov dword [ebp - 4], 0x100
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42a731
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0042a660
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42a728
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x14]
call fcn.0042a460
mov eax, dword [ebp - 0x228]
jmp 0x42a75c
mov dword [ebp - 4], 0x100
jmp 0x42a6d2
lea ecx, [ebp - 0x14]
call fcn.0042a540
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x230]
call fcn.0042a4e0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x14]
call fcn.0042a460
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00445d4c
mov esp, ebp
pop ebp
ret 4
Function at 0x42ad50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
xor eax, eax
jne 0x42ad59
xor ecx, ecx
jne 0x42ad59
xor edx, edx
cmp dword [ebp + 0xc], 0
setne dl
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0x42ad7a
mov eax, 0xd
jmp 0x42add5
xor eax, eax
jne 0x42ad61
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*2]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], 1
jne 0x42ad8b
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 7
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 8

Function at 0x4340c0
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 4], eax
push 1
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00406550
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x4455c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x46e038], 0
push esi
jne 0x445533
call fcn.00445459
test eax, eax
je 0x445576
mov eax, dword [0x46e038]
cmp eax, 1
jne 0x445554
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x445576
pop esi
ret
push eax
call dword [0x46e040]
test eax, eax
jne 0x4455be
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x44557a
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x46e038]
call dword [0x46e040]
mov edi, eax
test edi, edi
je 0x44559f
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4455bb
mov edi, esi
add esi, 0xff0
push edi
push dword [0x46e038]
call dword [0x46e03c]
add edi, 0x10
cmp edi, esi
jb 0x4455a7
mov eax, edi
pop edi
pop esi
ret
jmp 0x445520
Function at 0x445d4c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46c864]
jne 0x445d56
repz ret
jmp fcn.00448d3c

Function at 0x44fd66
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00448730
and dword [ebp - 4], 0
cmp dword [0x46eb40], 0
mov ebx, eax
jne 0x44fe17
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44fec8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x44fec8
push eax
call fcn.004486be
mov dword [esp], 0x45f8b0
push edi
mov dword [0x46eb40], eax
call esi
push eax
call fcn.004486be
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46eb44], eax
call esi
push eax
call fcn.004486be
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x46eb48], eax
call esi
push eax
call fcn.004486be
pop ecx
mov dword [0x46eb50], eax
test eax, eax
je 0x44fe17
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004486be
pop ecx
mov dword [0x46eb4c], eax
mov eax, dword [0x46eb4c]
cmp eax, ebx
je 0x44fe6f
cmp dword [0x46eb50], ebx
je 0x44fe6f
push eax
call fcn.00448739
push dword [0x46eb50]
mov esi, eax
call fcn.00448739
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44fe6f
test edi, edi
je 0x44fe6f
call esi
test eax, eax
je 0x44fe66
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44fe66
test byte [ebp - 0xc], 1
jne 0x44fe6f
or dword [ebp + 0x10], 0x200000
jmp 0x44fea8
mov eax, dword [0x46eb44]
cmp eax, ebx
je 0x44fea8
push eax
call fcn.00448739
pop ecx
test eax, eax
je 0x44fea8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44fea8
mov eax, dword [0x46eb48]
cmp eax, ebx
je 0x44fea8
push eax
call fcn.00448739
pop ecx
test eax, eax
je 0x44fea8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x46eb40]
call fcn.00448739
pop ecx
test eax, eax
je 0x44fec8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44feca
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10001071
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10001071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000105a
jmp 0x10001071
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x10002d90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008192f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.1000db27
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
je 0x10002e1b
push eax
push esi
call fcn.1000de08
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.1000dada
int3

Function at 0x10006d20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10081b00
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.1000e632
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.1000dd0a
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10007100
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10006f60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10081b4d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
push 0
mov eax, dword [ebx]
push 0
mov dword [ebp - 0x10], ebx
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.100031a0
push 8
call fcn.1000e632
mov esi, eax
push 1
mov dword [ebp - 4], 1
call fcn.1000dd0a
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 2
push eax
call fcn.100072e0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [esi]
mov byte [ebp + 0xb], al
call dword [edx + 8]
test eax, eax
je 0x10007073
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov al, byte [ebp + 0xb]
mov byte [edi + 0x40], al
jne 0x1000708f
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.100031a0
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10018d48
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10018d87
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10018d87
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10018d87
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10018d87
cmp dword [ecx + 0x74], 0xe
jbe 0x10018d87
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1001a52b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100879e4
push 0x100879dc
push str.FlsAlloc
push 0x1f
call fcn.1001a3b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a55f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10083154]
call esi
jmp 0x1001a565
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001a5a9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100879f4
push 0x100879ec
push str.FlsGetValue
push 0x21
call fcn.1001a3b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a5e0
push dword [ebp + 8]
mov ecx, esi
call dword [0x10083154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1001a5e8
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100879fc
push 0x100879f4
push str.FlsSetValue
push 0x22
call fcn.1001a3b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001a622
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10083154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x1001c7ad
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x10092aa8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001c7ed
cmp byte [ebx], 0xa
jne 0x1001c7ed
or byte [edi + eax + 0x28], 4
jmp 0x1001c7f2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1001c8f1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001c8d4
inc eax
cmp dl, 0xd
je 0x1001c81e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001c844
cmp eax, ecx
jae 0x1001c852
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1001c806
jmp 0x1001c8f1
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001c8cf
cmp dword [ebp - 0x10], 0
je 0x1001c8cf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10092aa8]
test byte [eax + edi + 0x28], 0x48
je 0x1001c8a9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001c894
mov byte [esi], dl
jmp 0x1001c8a5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10092aa8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001c8f1
cmp byte [ebp - 1], 0xa
jne 0x1001c8b8
cmp esi, ebx
jne 0x1001c8b8
mov byte [esi], 0xa
jmp 0x1001c8f0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001ff37
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001c8f1
mov byte [esi], 0xd
jmp 0x1001c8f0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10092aa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001c8ee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001c8f1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001c8fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x10092aa8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001c940
cmp word [ebx], dx
jne 0x1001c940
or byte [eax + edi + 0x28], 4
jmp 0x1001c945
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1001caa8
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1001ca88
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001c986
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001c9bc
cmp eax, edx
jae 0x1001c9ca
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1001c961
jmp 0x1001caa8
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001ca83
cmp dword [ebp - 0x18], 0
je 0x1001ca83
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10092aa8]
test byte [eax + edi + 0x28], 0x48
je 0x1001ca59
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1001ca1d
mov word [esi], cx
jmp 0x1001ca54
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10092aa8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x10092aa8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10092aa8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001caa8
pop eax
cmp word [ebp - 4], ax
jne 0x1001ca69
cmp esi, ebx
jne 0x1001ca69
mov word [esi], ax
jmp 0x1001caa5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001ff37
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001caa8
push 0xd
pop eax
jmp 0x1001ca64
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10092aa8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001caa2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001caa8
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10022158
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100221f5
push ebx
push esi
call fcn.10022121
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100210d9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100221a2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100221f4
push edi
push eax
call fcn.1001d2c7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100221c2
call fcn.10019a7f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100221f3
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100210d9
add esp, 0x20
test eax, eax
jne 0x100221e1
push edi
call fcn.10019a7f
jmp 0x100221e9
push ebx
call fcn.10019a7f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10024598
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10019e23
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10024607
cmp esi, dword [ebp - 4]
je 0x10024602
cmp dword [ebp + 0xc], 0
je 0x10024602
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100245df
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100240ea
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10024609
xor eax, eax
inc eax
jmp 0x10024609
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1002466e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100910c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10019e23
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10019e23
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100246e5
cmp word [ecx], dx
je 0x100246e5
mov eax, dword [0x1008a794]
push edi
dec eax
push eax
push 0x1008a680
call fcn.1002460d
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10024758
cmp word [eax], dx
je 0x10024758
mov eax, dword [edi]
test eax, eax
je 0x10024709
cmp word [eax], dx
je 0x10024709
lea eax, [ebp - 0x10]
push eax
call fcn.10023ff0
jmp 0x10024712
lea eax, [ebp - 0x10]
push eax
call fcn.1002408b
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10024782
mov eax, dword [0x1008a67c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1008a370
call fcn.1002460d
add esp, 0xc
test al, al
je 0x10024782
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1002474d
cmp word [eax], di
je 0x1002474d
lea eax, [ebp - 0x10]
push eax
call fcn.10023ff0
pop ecx
jmp 0x10024784
lea eax, [ebp - 0x10]
push eax
call fcn.1002408b
jmp 0x1002474a
mov eax, dword [edi]
test eax, eax
je 0x1002476f
cmp word [eax], dx
je 0x1002476f
lea eax, [ebp - 0x10]
push eax
call fcn.10023fa5
pop ecx
jmp 0x10024782
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1002484d
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10024492
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1002484d
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1002484d
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1002484d
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100247da
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1001a728
test ebx, ebx
je 0x10024848
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1001a728
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002484d
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002484d
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10028214
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1002484f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000eea7
leave
ret