joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140a4c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x140a57c
mov eax, dword [esi]
cmp eax, 1
jne 0x140a4f2
call fcn.01401610
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0x18]
call fcn.01401e50
call fcn.014016a0
jmp 0x140a578
push ebx
push edi
cmp eax, 2
jne 0x140a4fe
mov edi, dword [esi + 0x28]
jmp 0x140a506
cmp eax, 3
jne 0x140a535
mov edi, dword [esi + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push edi
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x140a576
mov eax, dword [esi + 8]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push edi
call ebx
jmp 0x140a576
cmp eax, 4
jne 0x140a576
mov edi, dword [esi + 0x1c]
lea eax, [ebp - 4]
mov ebx, dword [esi + 0x18]
push eax
push 0x40
push edi
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140a576
push edi
lea eax, [esi + 0x20]
push eax
push ebx
call fcn.0142adc0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebx
mov byte [esi + 4], 0
push 0x164
push esi
call fcn.014281b5
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x140ad60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x144c240
push 0x164
mov edi, edx
mov ebx, ecx
call fcn.01428160
mov esi, eax
add esp, 8
test esi, esi
je 0x140ae86
push 0x14c
lea eax, [esi + 0x18]
mov byte [esi + 4], 0
push 0
push eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.0142abb0
push 0x160
lea eax, [esi + 4]
push 0
push eax
call fcn.0142abb0
mov ecx, dword [ebp + 0x18]
mov dword [esi], 3
mov eax, dword [0x15bcf54]
mov dword [esi + 0x14], eax
mov dword [0x15bcf54], esi
mov eax, dword [ecx]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push 0x40
push dword [ebp + 8]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x24]
push eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], ecx
call fcn.01435640
push 0x100
push dword [ebp + 0xc]
lea eax, [esi + 0x64]
mov byte [esi + 0x63], 0
push eax
call fcn.01435640
mov eax, dword [ebp + 0x14]
add esp, 0x30
cmp byte [0x15bbee0], 0
mov byte [esi + 0x163], 0
mov dword [esi + 0x10], eax
je 0x140ae3c
xor al, al
mov byte [esi + 4], al
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x20]
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 4
push edi
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x140ae6c
mov eax, dword [esi + 0xc]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push edi
call ebx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x140ae78
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov al, 1
mov byte [esi + 4], al
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x140bab0
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x1590594
call fcn.01429223
add esp, 4
test eax, eax
jne 0x140bc13
cmp dword [0x15905c0], 0x7fffffff
je 0x140bc1a
mov eax, dword [0x15bcf98]
mov ecx, dword [0x15bcf9c]
push esi
push edi
mov edi, dword [ebp + 8]
cmp eax, ecx
je 0x140bafe
nop
mov esi, dword [eax]
cmp edi, dword [esi + 0xc]
je 0x140bb65
add eax, 4
cmp eax, ecx
jne 0x140baf0
push 0x1590594
call fcn.01429234
add esp, 4
push ebx
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x140bb5c
movzx ecx, word [eax + 0x14]
movzx esi, word [eax + 6]
add ecx, eax
mov dword [ebp - 8], ecx
xor eax, eax
add ecx, 0x18
mov dword [ebp - 4], ecx
xor ecx, ecx
cmp ax, si
jae 0x140bb5c
mov ebx, dword [ebp + 0xc]
movzx eax, cx
lea edx, [eax + eax*4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + edx*8]
cmp eax, dword [ebx]
jne 0x140bb56
mov eax, dword [ebp - 4]
mov eax, dword [eax + edx*8 + 4]
cmp eax, dword [ebx + 4]
je 0x140bbed
inc ecx
cmp cx, si
jb 0x140bb36
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x1590594
call fcn.01429234
add esp, 4
test esi, esi
je 0x140bb0b
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0x7865742e
jne 0x140bb9c
cmp dword [eax + 4], 0x74
jne 0x140bb9c
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x140bb93
mov eax, dword [esi + 0x24]
mov dword [ecx], eax
mov eax, dword [esi + 0x20]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [eax], 0x7461642e
jne 0x140bbbf
cmp dword [eax + 4], 0x61
jne 0x140bbbf
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x140bbb6
mov eax, dword [esi + 0x2c]
mov dword [ecx], eax
mov eax, dword [esi + 0x28]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [eax], 0x6164722e
jne 0x140bbe5
cmp dword [eax + 4], 0x6174
jne 0x140bbe5
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x140bbdc
mov eax, dword [esi + 0x34]
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp - 8]
test esi, esi
je 0x140bc06
mov ecx, dword [ebx + edx*8 + 0x28]
cmp ecx, dword [ebx + edx*8 + 0x20]
cmovbe ecx, dword [ebx + edx*8 + 0x20]
mov dword [esi], ecx
mov eax, dword [ebx + edx*8 + 0x24]
pop ebx
add eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 5
call fcn.014291c5
push 6
mov dword [0x15905c0], 0x7ffffffe
call fcn.014291c5
int3
Function at 0x140fb30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x144af1d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
push 0
mov eax, dword [ebx]
push 0
mov dword [ebp - 0x14], 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.01405ba0
push 8
call fcn.01428445
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 1
call fcn.0142958e
mov dword [esi + 4], eax
add esp, 4
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 - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 2
push eax
call fcn.014108b0
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 0x140fc46
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 0x140fc62
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.01405ba0
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x144af70
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.01428445
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0142958e
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.01410540
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 0x1412d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
je 0x1412d9a
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1412d9a
cmp dword [ebp - 8], 4
mov eax, dword [ebp - 0xc]
je 0x1412d9d
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x1412de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [0x15bdd88], 0
cmp byte [ecx + 4], 0
mov dword [ebp - 4], 0x200
je 0x1412e2c
lea eax, [ebp - 4]
push eax
push 0x15bdd88
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1412e2c
cmp dword [ebp - 8], 1
mov eax, 0x15bdd88
cmovne eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x1428b5b
Capabilities:
Parse pe header

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

Function at 0x143b408
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x144fd48
push 0x144fd40
push str.FlsAlloc
push 0x1f
call fcn.0143b2d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x143b43c
push dword [ebp + 8]
mov ecx, esi
call dword [0x144c1bc]
call esi
jmp 0x143b442
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x143b486
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x144fd58
push 0x144fd50
push str.FlsGetValue
push 0x21
call fcn.0143b2d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x143b4bd
push dword [ebp + 8]
mov ecx, esi
call dword [0x144c1bc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x143b4c5
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x144fd60
push 0x144fd58
push str.FlsSetValue
push 0x22
call fcn.0143b2d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x143b4ff
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x144c1bc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x143ea58
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0144a270
mov eax, dword [0x158f040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0143ba3b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x143ea9a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x143ebf6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0144a100
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x15bbb70]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.01440246
mov ecx, dword [esi*4 + 0x15bbb70]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x143ebef
cmp eax, dword [ecx + edi + 0x24]
jne 0x143ebef
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x143ebef
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.01440246
add esp, 0x14
test edx, edx
jl 0x143ebef
jg 0x143eb65
test eax, eax
jb 0x143ebef
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x143ebef
jl 0x143eb7f
cmp dword [ebp - 0x1008], eax
ja 0x143ebef
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x143eb9d
test ebx, ebx
je 0x143ebd6
cmp ecx, edi
jae 0x143ebd6
mov al, byte [ecx]
cmp al, 0xd
jne 0x143ebb7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x143ebc3
cmp byte [ecx + 1], 0xa
jne 0x143ebc3
inc ecx
jmp 0x143ebc3
movzx eax, al
movsx eax, byte [eax + 0x158f370]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x143eb9d
cmp edx, ebx
jne 0x143eb9d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x143ebf4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.014286c0
leave
ret
Function at 0x143f6de
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 + 0x15bbb70]
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 0x143f71e
cmp byte [ebx], 0xa
jne 0x143f71e
or byte [edi + eax + 0x28], 4
jmp 0x143f723
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 0x143f822
mov dl, byte [eax]
cmp dl, 0x1a
je 0x143f805
inc eax
cmp dl, 0xd
je 0x143f74f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x143f775
cmp eax, ecx
jae 0x143f783
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 0x143f737
jmp 0x143f822
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 0x143f800
cmp dword [ebp - 0x10], 0
je 0x143f800
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x15bbb70]
test byte [eax + edi + 0x28], 0x48
je 0x143f7da
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x143f7c5
mov byte [esi], dl
jmp 0x143f7d6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x15bbb70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x143f822
cmp byte [ebp - 1], 0xa
jne 0x143f7e9
cmp esi, ebx
jne 0x143f7e9
mov byte [esi], 0xa
jmp 0x143f821
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01440264
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x143f822
mov byte [esi], 0xd
jmp 0x143f821
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x15bbb70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x143f81f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x143f822
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x143f82b
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 + 0x15bbb70]
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 0x143f871
cmp word [ebx], dx
jne 0x143f871
or byte [eax + edi + 0x28], 4
jmp 0x143f876
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 0x143f9d9
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 0x143f9b9
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x143f8b7
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x143f8ed
cmp eax, edx
jae 0x143f8fb
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 0x143f892
jmp 0x143f9d9
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 0x143f9b4
cmp dword [ebp - 0x18], 0
je 0x143f9b4
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x15bbb70]
test byte [eax + edi + 0x28], 0x48
je 0x143f98a
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 0x143f94e
mov word [esi], cx
jmp 0x143f985
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x15bbb70]
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 + 0x15bbb70]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x15bbb70]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x143f9d9
pop eax
cmp word [ebp - 4], ax
jne 0x143f99a
cmp esi, ebx
jne 0x143f99a
mov word [esi], ax
jmp 0x143f9d6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.01440264
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x143f9d9
push 0xd
pop eax
jmp 0x143f995
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x15bbb70]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x143f9d3
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x143f9d9
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 0x1441591
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 0x144162e
push ebx
push esi
call fcn.0144155a
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.014414ee
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x14415db
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x144162d
push edi
push eax
call fcn.0143c71f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x14415fb
call fcn.0143aff1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x144162c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.014414ee
add esp, 0x20
test eax, eax
jne 0x144161a
push edi
call fcn.0143aff1
jmp 0x1441622
push ebx
call fcn.0143aff1
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 0x144409d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0143bfa6
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 0x144410c
cmp esi, dword [ebp - 4]
je 0x1444107
cmp dword [ebp + 0xc], 0
je 0x1444107
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x14440e4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.01443bef
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x144410e
xor eax, eax
inc eax
jmp 0x144410e
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1444173
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x158f040]
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.0143bfa6
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.0143bfa6
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 0x14441ea
cmp word [ecx], dx
je 0x14441ea
mov eax, dword [0x14508e4]
push edi
dec eax
push eax
push 0x14507d0
call fcn.01444112
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x144425d
cmp word [eax], dx
je 0x144425d
mov eax, dword [edi]
test eax, eax
je 0x144420e
cmp word [eax], dx
je 0x144420e
lea eax, [ebp - 0x10]
push eax
call fcn.01443af5
jmp 0x1444217
lea eax, [ebp - 0x10]
push eax
call fcn.01443b90
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1444287
mov eax, dword [0x14507cc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x14504c0
call fcn.01444112
add esp, 0xc
test al, al
je 0x1444287
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1444252
cmp word [eax], di
je 0x1444252
lea eax, [ebp - 0x10]
push eax
call fcn.01443af5
pop ecx
jmp 0x1444289
lea eax, [ebp - 0x10]
push eax
call fcn.01443b90
jmp 0x144424f
mov eax, dword [edi]
test eax, eax
je 0x1444274
cmp word [eax], dx
je 0x1444274
lea eax, [ebp - 0x10]
push eax
call fcn.01443aaa
pop ecx
jmp 0x1444287
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 0x1444352
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.01443f97
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1444352
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1444352
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1444352
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x14442df
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0143b605
test ebx, ebx
je 0x144434d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0143b605
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1444352
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 0x1444352
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.01448374
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1444354
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.014286c0
leave
ret