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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [0x15bcf44]
push edi
test esi, esi
je 0x1407fc3
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [eax]
cmp byte [esi + 4], 0
jne 0x1407fb8
mov eax, dword [esi]
cmp eax, 1
jne 0x1407e5c
call fcn.01401610
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0x18]
sub esp, 0xc
call fcn.01401950
call fcn.014016a0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1407fb4
mov eax, dword [esi + 0x18]
jmp 0x1407fb2
cmp eax, 2
jne 0x1407e99
mov edi, dword [esi + 0x28]
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push edi
call ebx
test eax, eax
je 0x1407fa8
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
jmp 0x1407fa8
cmp eax, 3
jne 0x1407ed6
mov edi, dword [esi + 0x20]
mov dword [ebp - 8], 0
mov eax, dword [edi]
mov dword [esi + 8], eax
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push edi
call ebx
test eax, eax
je 0x1407fa8
mov eax, dword [esi + 0xc]
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push edi
call ebx
jmp 0x1407fa8
cmp eax, 4
jne 0x1407fb4
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x1407eee
mov eax, dword [0x15bd538]
add eax, 5
mov dword [0x15bd538], eax
mov edx, eax
mov dword [ebp - 0x10], 0
mov edi, eax
mov ebx, eax
mov cl, byte [eax]
cmp cl, 0xff
jne 0x1407f20
mov al, byte [edx + 1]
cmp al, 0x15
jne 0x1407f15
mov eax, dword [edi + 2]
mov eax, dword [eax]
jmp 0x1407f32
cmp al, 0x25
jne 0x1407f4b
mov eax, dword [ebx + 2]
mov eax, dword [eax]
jmp 0x1407f32
cmp cl, 0xe8
je 0x1407f2a
cmp cl, 0xe9
jne 0x1407f4b
mov ecx, dword [eax + 1]
add eax, 5
add eax, ecx
mov ecx, dword [ebp - 0x10]
mov edx, eax
inc ecx
mov dword [0x15bd538], eax
mov dword [ebp - 0x10], ecx
mov edi, edx
mov ebx, edx
cmp ecx, 1
jb 0x1407f00
jmp 0x1407f4d
xor eax, eax
push dword [esi + 0x1c]
mov dword [esi + 8], eax
lea eax, [esi + 0x20]
push dword [esi + 0x18]
push eax
call fcn.0142ac90
mov edi, dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov ebx, dword [esi + 0x18]
add esp, 0xc
mov dword [ebp - 0xc], 0
push eax
push 0x40
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1407fa2
push edi
lea eax, [esi + 0x28]
push eax
push ebx
call fcn.0142ac90
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
jmp 0x1407fa8
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1407fb4
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov byte [esi + 4], 1
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x1407e20
pop edi
pop esi
mov byte [0x15bbed0], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x140a440
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 0x140a4fc
mov eax, dword [esi]
cmp eax, 1
jne 0x140a472
call fcn.01401610
mov edx, dword [esi + 0xc]
lea ecx, [esi + 0x18]
call fcn.01401e40
call fcn.014016a0
jmp 0x140a4f8
push ebx
push edi
cmp eax, 2
jne 0x140a47e
mov edi, dword [esi + 0x28]
jmp 0x140a486
cmp eax, 3
jne 0x140a4b5
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 0x140a4f6
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 0x140a4f6
cmp eax, 4
jne 0x140a4f6
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 0x140a4f6
push edi
lea eax, [esi + 0x20]
push eax
push ebx
call fcn.0142ac90
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.01428085
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x140ace0
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.01428030
mov esi, eax
add esp, 8
test esi, esi
je 0x140ae06
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.0142aa80
push 0x160
lea eax, [esi + 4]
push 0
push eax
call fcn.0142aa80
mov ecx, dword [ebp + 0x18]
mov dword [esi], 3
mov eax, dword [0x15bcf44]
mov dword [esi + 0x14], eax
mov dword [0x15bcf44], 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.01435510
push 0x100
push dword [ebp + 0xc]
lea eax, [esi + 0x64]
mov byte [esi + 0x63], 0
push eax
call fcn.01435510
mov eax, dword [ebp + 0x14]
add esp, 0x30
cmp byte [0x15bbed0], 0
mov byte [esi + 0x163], 0
mov dword [esi + 0x10], eax
je 0x140adbc
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 0x140adec
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 0x140adf8
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 0x140b9d0
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x159057c
call fcn.014290f3
add esp, 4
test eax, eax
jne 0x140bb33
cmp dword [0x15905a8], 0x7fffffff
je 0x140bb3a
mov eax, dword [0x15bcf88]
mov ecx, dword [0x15bcf8c]
push esi
push edi
mov edi, dword [ebp + 8]
cmp eax, ecx
je 0x140ba1e
nop
mov esi, dword [eax]
cmp edi, dword [esi + 0xc]
je 0x140ba85
add eax, 4
cmp eax, ecx
jne 0x140ba10
push 0x159057c
call fcn.01429104
add esp, 4
push ebx
push edi
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x140ba7c
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 0x140ba7c
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 0x140ba76
mov eax, dword [ebp - 4]
mov eax, dword [eax + edx*8 + 4]
cmp eax, dword [ebx + 4]
je 0x140bb0d
inc ecx
cmp cx, si
jb 0x140ba56
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x159057c
call fcn.01429104
add esp, 4
test esi, esi
je 0x140ba2b
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0x7865742e
jne 0x140babc
cmp dword [eax + 4], 0x74
jne 0x140babc
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x140bab3
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 0x140badf
cmp dword [eax + 4], 0x61
jne 0x140badf
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x140bad6
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 0x140bb05
cmp dword [eax + 4], 0x6174
jne 0x140bb05
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x140bafc
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 0x140bb26
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.01429095
push 6
mov dword [0x15905a8], 0x7ffffffe
call fcn.01429095
int3
Function at 0x140fa60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x144adad
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.01405b70
push 8
call fcn.01428315
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 1
call fcn.0142945e
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.014107e0
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 0x140fb76
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 0x140fb92
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.01405b70
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 0x14104d0
Capabilities:
Access peb ldr_data
Get ntdll base address

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

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

Function at 0x1412d10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [0x15bdd78], 0
cmp byte [ecx + 4], 0
mov dword [ebp - 4], 0x200
je 0x1412d5c
lea eax, [ebp - 4]
push eax
push 0x15bdd78
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 0x1412d5c
cmp dword [ebp - 8], 1
mov eax, 0x15bdd78
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 0x1428a2b
Capabilities:
Parse pe header

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

Function at 0x143b2cd
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.0143b195
mov esi, eax
add esp, 0x10
test esi, esi
je 0x143b301
push dword [ebp + 8]
mov ecx, esi
call dword [0x144c1bc]
call esi
jmp 0x143b307
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x143b34b
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.0143b195
mov esi, eax
add esp, 0x10
test esi, esi
je 0x143b382
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 0x143b38a
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.0143b195
mov esi, eax
add esp, 0x10
test esi, esi
je 0x143b3c4
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 0x143e91b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0144a100
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.0143b900
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x143e95d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x143eab9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.01449f90
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 + 0x15bbb60]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.01440109
mov ecx, dword [esi*4 + 0x15bbb60]
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 0x143eab2
cmp eax, dword [ecx + edi + 0x24]
jne 0x143eab2
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 0x143eab2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.01440109
add esp, 0x14
test edx, edx
jl 0x143eab2
jg 0x143ea28
test eax, eax
jb 0x143eab2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x143eab2
jl 0x143ea42
cmp dword [ebp - 0x1008], eax
ja 0x143eab2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x143ea60
test ebx, ebx
je 0x143ea99
cmp ecx, edi
jae 0x143ea99
mov al, byte [ecx]
cmp al, 0xd
jne 0x143ea7a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x143ea86
cmp byte [ecx + 1], 0xa
jne 0x143ea86
inc ecx
jmp 0x143ea86
movzx eax, al
movsx eax, byte [eax + 0x158f368]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x143ea60
cmp edx, ebx
jne 0x143ea60
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x143eab7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01428590
leave
ret
Function at 0x143f5a1
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 + 0x15bbb60]
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 0x143f5e1
cmp byte [ebx], 0xa
jne 0x143f5e1
or byte [edi + eax + 0x28], 4
jmp 0x143f5e6
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 0x143f6e5
mov dl, byte [eax]
cmp dl, 0x1a
je 0x143f6c8
inc eax
cmp dl, 0xd
je 0x143f612
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x143f638
cmp eax, ecx
jae 0x143f646
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 0x143f5fa
jmp 0x143f6e5
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 0x143f6c3
cmp dword [ebp - 0x10], 0
je 0x143f6c3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x15bbb60]
test byte [eax + edi + 0x28], 0x48
je 0x143f69d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x143f688
mov byte [esi], dl
jmp 0x143f699
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x15bbb60]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x143f6e5
cmp byte [ebp - 1], 0xa
jne 0x143f6ac
cmp esi, ebx
jne 0x143f6ac
mov byte [esi], 0xa
jmp 0x143f6e4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01440127
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x143f6e5
mov byte [esi], 0xd
jmp 0x143f6e4
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x15bbb60]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x143f6e2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x143f6e5
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x143f6ee
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 + 0x15bbb60]
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 0x143f734
cmp word [ebx], dx
jne 0x143f734
or byte [eax + edi + 0x28], 4
jmp 0x143f739
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 0x143f89c
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 0x143f87c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x143f77a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x143f7b0
cmp eax, edx
jae 0x143f7be
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 0x143f755
jmp 0x143f89c
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 0x143f877
cmp dword [ebp - 0x18], 0
je 0x143f877
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x15bbb60]
test byte [eax + edi + 0x28], 0x48
je 0x143f84d
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 0x143f811
mov word [esi], cx
jmp 0x143f848
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x15bbb60]
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 + 0x15bbb60]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x15bbb60]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x143f89c
pop eax
cmp word [ebp - 4], ax
jne 0x143f85d
cmp esi, ebx
jne 0x143f85d
mov word [esi], ax
jmp 0x143f899
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.01440127
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x143f89c
push 0xd
pop eax
jmp 0x143f858
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x15bbb60]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x143f896
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x143f89c
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 0x1441454
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 0x14414f1
push ebx
push esi
call fcn.0144141d
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.014413b1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x144149e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14414f0
push edi
push eax
call fcn.0143c5e2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x14414be
call fcn.0143aeb3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14414ef
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.014413b1
add esp, 0x20
test eax, eax
jne 0x14414dd
push edi
call fcn.0143aeb3
jmp 0x14414e5
push ebx
call fcn.0143aeb3
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 0x1443f60
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0143be69
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 0x1443fcf
cmp esi, dword [ebp - 4]
je 0x1443fca
cmp dword [ebp + 0xc], 0
je 0x1443fca
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1443fa7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.01443ab2
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1443fd1
xor eax, eax
inc eax
jmp 0x1443fd1
xor eax, eax
pop edi
pop esi
leave
ret