joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14025e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x15b5fa0], eax
je 0x14025fc
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x15b5fa4]
test eax, eax
jne 0x1402711
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x140261b
lea eax, [ebx + 0x57]
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x1402638
cmp dword [edi], 0
jne 0x1402645
mov dword [0x15b5fa4], 6
mov dword [0x15b5fa8], edi
pop edi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push 0x18
call fcn.01420bae
mov esi, eax
add esp, 4
test esi, esi
jne 0x140265e
lea ebx, [eax + 8]
jmp 0x14026f1
push 0
push dword [edi]
call fcn.01402550
push 0
push ebx
mov dword [ebp + 0xc], eax
call fcn.01402550
mov ebx, dword [ebp + 0xc]
mov edx, eax
movzx ecx, byte [ebx + 0x36]
mov eax, dword [ebx + 0x40]
sub eax, ecx
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x14026e3
cmp ecx, 0x1e
ja 0x14026e3
cmp dword [ebx + 0x44], edx
jne 0x14026e3
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push 0x40
push ecx
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x14026b2
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
jmp 0x14026f1
mov eax, dword [ebp + 0xc]
mov dword [esi + 0xc], eax
mov dword [esi + 8], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 4], 1
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x15b5fb0]
mov dword [esi], eax
xor eax, eax
mov dword [0x15b5fb0], esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x15b5f98], 0
mov ebx, 9
jne 0x14026fb
mov dword [0x15b5fa4], ebx
test esi, esi
je 0x1402706
push 0x18
push esi
call fcn.014208f2
add esp, 8
pop esi
mov dword [0x15b5fa8], edi
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1402720
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x15b5fa0], 0
jne 0x1402797
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov edx, 0x15b5fa0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1402797
push esi
mov esi, dword [0x15b5f90]
mov dword [0x15b5fb0], eax
mov dword [0x15b5fac], eax
mov dword [0x15b5fa8], eax
test esi, esi
je 0x140277c
nop dword [eax]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1402788
mov esi, dword [esi + 4]
test esi, esi
jne 0x1402760
xor eax, eax
mov dword [0x15b5fa4], eax
pop esi
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x15b5fa4], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
Function at 0x1403e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov ecx, 0x44
mov dword [ebp - 4], eax
mov dl, 0x57
push edi
mov edi, dword [ebp + 8]
cmp esi, ecx
jbe 0x1403e91
nop dword [eax]
xor byte [ecx + edi], dl
lea eax, [ecx + edi]
mov al, byte [eax]
inc ecx
add al, 0x57
add dl, al
cmp ecx, esi
jb 0x1403e80
xor dword [edi + 0x4c], 0x7a32bc85
xor dword [edi + 0x50], 0x49c042d1
add dword [edi + 0x54], 0xfffffff4
xor dword [edi + 0x58], 0x872c3d47
xor ebx, ebx
movups xmm0, xmmword [edi + 0x44]
movups xmmword [0x35b69e8], xmm0
movq xmm0, qword [edi + 0x54]
movq qword [0x35b69f8], xmm0
movzx eax, bx
lea eax, [eax + eax*4]
cmp dword [edi + eax*4 + 0x6c], 0
lea esi, [edi + eax*4]
je 0x1403eda
mov eax, dword [esi + 0x68]
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x60]
cmp eax, ecx
jbe 0x1403efa
sub eax, ecx
push eax
mov eax, dword [esi + 0x5c]
add eax, ecx
push 0
push eax
call fcn.014229a0
mov ecx, dword [esi + 0x64]
add esp, 0xc
mov eax, dword [esi + 0x68]
push ecx
add eax, edi
push eax
push dword [esi + 0x5c]
call fcn.01422420
inc ebx
add esp, 0xc
cmp bx, word [edi + 0x48]
jbe 0x1403ec4
mov ecx, dword [edi + 0x58]
add ecx, 0xc
mov dword [ebp + 0x14], ecx
mov ecx, dword [ecx]
test ecx, ecx
je 0x1403f74
mov eax, dword [edi + 0x50]
add eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov eax, dword [ebp + 0x14]
mov esi, dword [eax + 4]
add eax, 0x14
add esi, dword [edi + 0x50]
mov dword [ebp + 0x14], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1403f6e
mov eax, ecx
and eax, 0x7fffffff
test ecx, ecx
js 0x1403f58
mov ecx, dword [edi + 0x50]
add ecx, 2
add eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
add esi, 4
mov ecx, dword [esi]
test ecx, ecx
jne 0x1403f45
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
jne 0x1403f22
mov ecx, dword [edi + 0x54]
push 0
push 1
push 0
call ecx
push dword [ebp + 0x10]
mov ecx, dword [edi + 0x4c]
call ecx
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x14053a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.01420b60
push 0x1000
lea eax, [ebp - 0x1000]
push 0
push eax
call fcn.014229a0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push 0xfff
push eax
call fcn.01401ae0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0142934a
mov eax, dword [0x35b6a60]
add esp, 0x1c
mov byte [ebp - 1], 0
test eax, eax
je 0x140540c
mov eax, dword [eax + 0x50]
test eax, eax
je 0x140540c
push str.escape_n
call eax
add esp, 4
push 0x10
push str.Fatal_Error
lea eax, [ebp - 0x1000]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov esp, ebp
pop ebp
ret

Function at 0x1406f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1443430
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.01420bae
mov esi, eax
add esp, 4
test esi, esi
je 0x1406f6f
push 1
mov dword [ebp - 4], 0
call fcn.01421a1b
add esp, 4
mov dword [esi + 4], eax
jmp 0x1406f71
xor esi, esi
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x14071b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x14434df
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.0142169e
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 0x140723b
push eax
push esi
call fcn.01421b1b
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.01421865
int3
Function at 0x1408da0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp eax, 2
jne 0x1408de3
mov eax, dword [esi + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x35b6a84
push 0x40
mov edi, dword [eax + 4]
push 4
push edi
call ebx
test eax, eax
je 0x1408e2b
mov eax, dword [esi + 8]
push 0x35b6a84
mov dword [edi], eax
push dword [0x35b6a84]
push 4
push edi
call ebx
jmp 0x1408e2b
cmp eax, 3
jne 0x1408e1a
mov eax, dword [esi + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x35b6a84
push 0x40
mov edi, dword [eax]
push 4
push edi
call ebx
test eax, eax
je 0x1408e2b
mov eax, dword [esi + 8]
push 0x35b6a84
mov dword [edi], eax
push dword [0x35b6a84]
push 4
push edi
call ebx
jmp 0x1408e2b
cmp eax, 1
jne 0x1408e2b
push dword [esi + 0xc]
lea eax, [esi + 8]
push eax
call fcn.014025e0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x1408e44
push 0
push eax
call fcn.014208f2
add esp, 8
mov dword [esi + 0x30], 0
push 0x34
push esi
call fcn.014208f2
add esp, 8
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x140ef10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
je 0x140ef4a
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 0x140ef4a
cmp dword [ebp - 8], 4
mov eax, dword [ebp - 0xc]
je 0x140ef4d
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x140ef60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [0x35b6ad0], 0
cmp byte [ecx + 4], 0
mov dword [ebp - 4], 0x200
je 0x140efa4
lea eax, [ebp - 4]
push eax
push 0x35b6ad0
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 0x140efa4
cmp dword [ebp - 8], 1
mov eax, 0x35b6ad0
je 0x140efa7
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x142f59b
Capabilities:
Parse pe header

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

Function at 0x14332ec
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x157eda8
push 0x157eda0
push str.FlsAlloc
push 0x1f
call fcn.014331b4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1433320
push dword [ebp + 8]
mov ecx, esi
call dword [0x14441b0]
call esi
jmp 0x1433326
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x143336a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x157edb8
push 0x157edb0
push str.FlsGetValue
push 0x21
call fcn.014331b4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x14333a1
push dword [ebp + 8]
mov ecx, esi
call dword [0x14441b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14333a9
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x157edc0
push 0x157edb8
push str.FlsSetValue
push 0x22
call fcn.014331b4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x14333e3
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x14441b0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1436c14
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.01420b60
mov eax, dword [0x15b4ec8]
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.0143391f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1436c56
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1436db2
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.01442f00
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 + 0x35b7d90]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.01437c11
mov ecx, dword [esi*4 + 0x35b7d90]
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 0x1436dab
cmp eax, dword [ecx + edi + 0x24]
jne 0x1436dab
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 0x1436dab
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.01437c11
add esp, 0x14
test edx, edx
jl 0x1436dab
jg 0x1436d21
test eax, eax
jb 0x1436dab
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1436dab
jl 0x1436d3b
cmp dword [ebp - 0x1008], eax
ja 0x1436dab
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1436d59
test ebx, ebx
je 0x1436d92
cmp ecx, edi
jae 0x1436d92
mov al, byte [ecx]
cmp al, 0xd
jne 0x1436d73
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1436d7f
cmp byte [ecx + 1], 0xa
jne 0x1436d7f
inc ecx
jmp 0x1436d7f
movzx eax, al
movsx eax, byte [eax + 0x15b5180]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1436d59
cmp edx, ebx
jne 0x1436d59
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1436db0
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01420e29
leave
ret
Function at 0x14370a9
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 + 0x35b7d90]
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 0x14370e9
cmp byte [ebx], 0xa
jne 0x14370e9
or byte [edi + eax + 0x28], 4
jmp 0x14370ee
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 0x14371ed
mov dl, byte [eax]
cmp dl, 0x1a
je 0x14371d0
inc eax
cmp dl, 0xd
je 0x143711a
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1437140
cmp eax, ecx
jae 0x143714e
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 0x1437102
jmp 0x14371ed
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 0x14371cb
cmp dword [ebp - 0x10], 0
je 0x14371cb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x35b7d90]
test byte [eax + edi + 0x28], 0x48
je 0x14371a5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1437190
mov byte [esi], dl
jmp 0x14371a1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x35b7d90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x14371ed
cmp byte [ebp - 1], 0xa
jne 0x14371b4
cmp esi, ebx
jne 0x14371b4
mov byte [esi], 0xa
jmp 0x14371ec
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01437c2f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x14371ed
mov byte [esi], 0xd
jmp 0x14371ec
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x35b7d90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x14371ea
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x14371ed
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x14371f6
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 + 0x35b7d90]
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 0x143723c
cmp word [ebx], dx
jne 0x143723c
or byte [eax + edi + 0x28], 4
jmp 0x1437241
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 0x14373a4
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 0x1437384
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1437282
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x14372b8
cmp eax, edx
jae 0x14372c6
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 0x143725d
jmp 0x14373a4
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 0x143737f
cmp dword [ebp - 0x18], 0
je 0x143737f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x35b7d90]
test byte [eax + edi + 0x28], 0x48
je 0x1437355
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 0x1437319
mov word [esi], cx
jmp 0x1437350
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x35b7d90]
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 + 0x35b7d90]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x35b7d90]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x14373a4
pop eax
cmp word [ebp - 4], ax
jne 0x1437365
cmp esi, ebx
jne 0x1437365
mov word [esi], ax
jmp 0x14373a1
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.01437c2f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x14373a4
push 0xd
pop eax
jmp 0x1437360
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x35b7d90]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x143739e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x14373a4
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 0x14399b5
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 0x1439a52
push ebx
push esi
call fcn.0143997e
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.01439912
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x14399ff
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1439a51
push edi
push eax
call fcn.0143483f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1439a1f
call fcn.01432ed4
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1439a50
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.01439912
add esp, 0x20
test eax, eax
jne 0x1439a3e
push edi
call fcn.01432ed4
jmp 0x1439a46
push ebx
call fcn.01432ed4
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 0x143c4c1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.01433fee
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 0x143c530
cmp esi, dword [ebp - 4]
je 0x143c52b
cmp dword [ebp + 0xc], 0
je 0x143c52b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x143c508
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0143c013
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x143c532
xor eax, eax
inc eax
jmp 0x143c532
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x143c597
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x15b4ec8]
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.01433fee
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.01433fee
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 0x143c60e
cmp word [ecx], dx
je 0x143c60e
mov eax, dword [0x157f964]
push edi
dec eax
push eax
push 0x157f850
call fcn.0143c536
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x143c681
cmp word [eax], dx
je 0x143c681
mov eax, dword [edi]
test eax, eax
je 0x143c632
cmp word [eax], dx
je 0x143c632
lea eax, [ebp - 0x10]
push eax
call fcn.0143bf19
jmp 0x143c63b
lea eax, [ebp - 0x10]
push eax
call fcn.0143bfb4
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x143c6ab
mov eax, dword [0x157f84c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x157f540
call fcn.0143c536
add esp, 0xc
test al, al
je 0x143c6ab
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x143c676
cmp word [eax], di
je 0x143c676
lea eax, [ebp - 0x10]
push eax
call fcn.0143bf19
pop ecx
jmp 0x143c6ad
lea eax, [ebp - 0x10]
push eax
call fcn.0143bfb4
jmp 0x143c673
mov eax, dword [edi]
test eax, eax
je 0x143c698
cmp word [eax], dx
je 0x143c698
lea eax, [ebp - 0x10]
push eax
call fcn.0143bece
pop ecx
jmp 0x143c6ab
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 0x143c776
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0143c3bb
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x143c776
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x143c776
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x143c776
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x143c703
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.014334e9
test ebx, ebx
je 0x143c771
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.014334e9
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x143c776
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 0x143c776
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.01441ae4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x143c778
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01420e29
leave
ret