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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push ebx
push ecx
mov ecx, esp
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.10015ea0
mov esi, dword [ebp + 0xc]
add esp, 0xc
movzx eax, bl
mov dword [ebp - 0x10], 0
test bl, bl
jne 0x10016038
mov byte [ebp - 4], bl
mov byte [esi], 0xe9
jmp 0x10016070
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 4]
mov byte [esi], 0xe9
test eax, eax
je 0x10016070
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push 4
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, esp
push ecx
mov dword [edx], ecx
mov edx, esp
mov ecx, dword [ebp + 0xc]
inc ecx
mov dword [edx], ecx
call fcn.10015d50
mov eax, dword [ebp + 8]
add esp, 0x10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100160a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push ebx
push ecx
mov ecx, esp
push dword [ebp + 8]
mov dword [ecx], eax
call fcn.10015ea0
mov esi, dword [ebp + 0xc]
add esp, 0xc
movzx eax, bl
mov dword [ebp - 0x10], 0
test bl, bl
jne 0x100160d8
mov byte [ebp - 4], bl
mov byte [esi], 0xe8
jmp 0x10016110
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 4]
mov byte [esi], 0xe8
test eax, eax
je 0x10016110
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push 4
push ecx
mov ecx, dword [ebp + 0x10]
mov edx, esp
push ecx
mov dword [edx], ecx
mov edx, esp
mov ecx, dword [ebp + 0xc]
inc ecx
mov dword [edx], ecx
call fcn.10015d50
mov eax, dword [ebp + 8]
add esp, 0x10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100163c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 8]
call fcn.100119f0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.100166c0
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
xor eax, eax
cmp byte [ebp + 0x10], al
cmovne eax, dword [ebp + 0xc]
test eax, eax
jne 0x100163fc
mov byte [ebp - 0xc], al
jmp 0x10016416
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
push dword [ebp + 0xc]
push 0x90
push esi
call fcn.10103910
add esp, 0xc
cmp byte [ebp - 0xc], 0
je 0x10016444
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10016450
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push dword [ebp + 8]
call fcn.100119f0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.100166c0
mov ebx, dword [ebp + 0x10]
push ebx
push ecx
mov esi, dword [eax]
mov eax, esp
mov dword [eax], esi
lea eax, [ebp + 0x10]
push eax
call fcn.10015ea0
add esp, 0xc
movzx eax, bl
mov dword [ebp - 0x18], 0
test bl, bl
jne 0x1001649c
mov byte [ebp - 0xc], bl
jmp 0x100164b6
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe8
cmp byte [ebp - 0xc], 0
je 0x100164d6
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
inc esi
push ebx
push 4
push ecx
mov ecx, esp
push ecx
mov dword [ecx], eax
mov eax, esp
mov dword [eax], esi
call fcn.10015d50
add esp, 0x10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016500
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push dword [ebp + 8]
call fcn.100119f0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.100166c0
mov ebx, dword [ebp + 0x10]
push ebx
push ecx
mov esi, dword [eax]
mov eax, esp
mov dword [eax], esi
lea eax, [ebp + 0x10]
push eax
call fcn.10015ea0
add esp, 0xc
movzx eax, bl
mov dword [ebp - 0x18], 0
test bl, bl
jne 0x1001654c
mov byte [ebp - 0xc], bl
jmp 0x10016566
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe9
cmp byte [ebp - 0xc], 0
je 0x10016586
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0xc]
inc esi
push ebx
push 4
push ecx
mov ecx, esp
push ecx
mov dword [ecx], eax
mov eax, esp
mov dword [eax], esi
call fcn.10015d50
add esp, 0x10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100165b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 8]
call fcn.100119f0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.100166c0
mov dword [ebp - 0x18], 0
mov esi, dword [eax]
movzx eax, byte [ebp + 0x10]
add eax, eax
jne 0x100165e8
mov byte [ebp - 0xc], 0
jmp 0x10016602
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov ax, word [ebp + 0xc]
mov word [esi], ax
cmp byte [ebp - 0xc], 0
je 0x10016626
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10016630
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push ecx
call fcn.100119f0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.100166c0
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1001668d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10016740
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x10], edx
push ebx
push esi
mov esi, dword [ebp + 8]
test eax, eax
jne 0x1001675c
xor al, al
jmp 0x10016778
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x10]
test eax, eax
setne al
mov byte [ebp - 4], al
mov bl, byte [esi]
test al, al
je 0x10016796
mov ecx, dword [ebp - 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp - 0xc]
mov dword [ebp + 0xc], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100a8c90
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push edi
push ecx
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
jmp 0x100a8cbd
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xc8
jge 0x100a8e04
push 0
push 0xffffffffffffffff
call fcn.10016900
add esp, 8
test eax, eax
je 0x100a8dff
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x18]
call fcn.10012540
lea ecx, [ebp - 0x2c]
call fcn.10011e50
movss xmm0, dword [ebp - 0x18]
subss xmm0, dword [0x101413fc]
push ecx
movss dword [esp], xmm0
movss xmm0, dword [ebp - 0x18]
addss xmm0, dword [0x101413fc]
push ecx
movss dword [esp], xmm0
call fcn.10016ac0
add esp, 8
fstp dword [ebp - 0x2c]
movss xmm0, dword [ebp - 0x14]
subss xmm0, dword [0x101413fc]
push ecx
movss dword [esp], xmm0
movss xmm0, dword [ebp - 0x14]
addss xmm0, dword [0x101413fc]
push ecx
movss dword [esp], xmm0
call fcn.10016ac0
add esp, 8
fstp dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x10]
addss xmm0, dword [0x10141444]
push ecx
movss dword [esp], xmm0
movss xmm0, dword [ebp - 0x10]
subss xmm0, dword [0x101414a8]
push ecx
movss dword [esp], xmm0
call fcn.10016ac0
add esp, 8
fstp dword [ebp - 0x24]
mov edx, dword [0x101977f0]
mov dword [ebp - 0x40], edx
push 0
push 0xffffffffffffffff
call fcn.10016900
add esp, 8
movzx eax, byte [eax + 0x434]
shl eax, 2
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
lea ecx, [ebp - 0x3c]
call fcn.10012460
mov dword [ebp - 0x4c], eax
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x48]
push edx
push ecx
xorps xmm0, xmm0
movss dword [esp], xmm0
push 0
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0x18
call fcn.10022aa0
add esp, 0x28
jmp 0x100a8cb4
push edx
mov ecx, ebp
push eax
lea edx, [0x100a8e28]
call fcn.10101c0e
pop eax
pop edx
pop edi
add esp, 0x4c
cmp ebp, esp
call fcn.10101c62
mov esp, ebp
pop ebp
ret 0x24
Function at 0x100ea180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push edi
push ecx
lea edi, [ebp - 0x38]
mov ecx, 0xe
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], 0
jg 0x100ea1b2
jl 0x100ea1a9
cmp dword [ebp + 0xc], 0
ja 0x100ea1b2
xor eax, eax
xor edx, edx
jmp 0x100ea2f3
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x100ea1d4
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.100ea350
jmp 0x100ea2f3
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 4]
call fcn.100c1c50
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jbe 0x100ea243
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0xc]
push edx
call fcn.10012130
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 4]
call fcn.100df3f0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.10011ed0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x28]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp - 4]
call fcn.100defa0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c], 0
je 0x100ea2e4
mov ecx, dword [ebp - 4]
call fcn.100ca330
mov dword [ebp - 0x2c], 0xfff
cmp dword [ebp - 0xc], 0xfff
jbe 0x100ea2b3
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.1010c652
add esp, 0x10
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x30]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x30]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x30], 0xfff
je 0x100ea2b1
xor eax, eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
sbb edx, eax
mov eax, ecx
jmp 0x100ea2f3
jmp 0x100ea25f
cmp dword [ebp - 0xc], 0
jbe 0x100ea2e4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.1010c652
add esp, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x34]
mov dword [ebp - 0xc], ecx
xor edx, edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
sbb ecx, edx
mov edx, ecx
push edx
mov ecx, ebp
push eax
lea edx, [0x100ea318]
call fcn.10101c0e
pop eax
pop edx
pop edi
add esp, 0x38
cmp ebp, esp
call fcn.10101c62
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10100678
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1010069f
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x101006a2
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.10100654
pop esi
leave
ret 8

Function at 0x101024d0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x10b7e4b8], 6
jl 0x101024ef
vbroadcastss xmm0, xmm0
vcvttps2qq xmm0, xmm0
vmovd eax, xmm0
vpextrd edx, xmm0, 1
ret
movd eax, xmm0
cdq
shl eax, 1
cmp eax, 0x9e000000
jae 0x10102503
cvttss2si eax, xmm0
cdq
ret
cmp eax, 0xbe000000
jae 0x10102523
mov ecx, eax
bts eax, 0x18
shr ecx, 0x18
shl eax, 7
sub cl, 0xbe
xor eax, edx
sub eax, edx
shld edx, eax, cl
shl eax, cl
ret
jne 0x10102529
test edx, edx
js 0x10102531
cvttss2si ecx, dword [0x10161ad8]
mov edx, 0x80000000
xor eax, eax
ret

Function at 0x10113365
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x101133a4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101133a4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101133a4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x101133a4
cmp dword [ecx + 0x74], 0xe
jbe 0x101133a4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10114253
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10103340
mov eax, dword [0x10196d40]
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.1011c14a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10114295
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x101143f1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10128ec0
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 + 0x10b7ec68]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1011e0cd
mov ecx, dword [esi*4 + 0x10b7ec68]
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 0x101143ea
cmp eax, dword [ecx + edi + 0x24]
jne 0x101143ea
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 0x101143ea
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1011e0cd
add esp, 0x14
test edx, edx
jl 0x101143ea
jg 0x10114360
test eax, eax
jb 0x101143ea
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x101143ea
jl 0x1011437a
cmp dword [ebp - 0x1008], eax
ja 0x101143ea
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10114398
test ebx, ebx
je 0x101143d1
cmp ecx, edi
jae 0x101143d1
mov al, byte [ecx]
cmp al, 0xd
jne 0x101143b2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x101143be
cmp byte [ecx + 1], 0xa
jne 0x101143be
inc ecx
jmp 0x101143be
movzx eax, al
movsx eax, byte [eax + 0x10196ff8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10114398
cmp edx, ebx
jne 0x10114398
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x101143ef
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10101c85
leave
ret

Function at 0x1011b484
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10165bd8
push 0x10165bd0
push str.FlsAlloc
push 0x1f
call fcn.1011b2cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1011b4b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x1013218c]
call esi
jmp 0x1011b4be
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x1011b502
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10165be8
push 0x10165be0
push str.FlsGetValue
push 0x21
call fcn.1011b2cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1011b539
push dword [ebp + 8]
mov ecx, esi
call dword [0x1013218c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1011b541
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10165bf0
push 0x10165be8
push str.FlsSetValue
push 0x22
call fcn.1011b2cc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1011b57b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1013218c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1011d565
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 + 0x10b7ec68]
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 0x1011d5a5
cmp byte [ebx], 0xa
jne 0x1011d5a5
or byte [edi + eax + 0x28], 4
jmp 0x1011d5aa
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 0x1011d6a9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1011d68c
inc eax
cmp dl, 0xd
je 0x1011d5d6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1011d5fc
cmp eax, ecx
jae 0x1011d60a
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 0x1011d5be
jmp 0x1011d6a9
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 0x1011d687
cmp dword [ebp - 0x10], 0
je 0x1011d687
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10b7ec68]
test byte [eax + edi + 0x28], 0x48
je 0x1011d661
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1011d64c
mov byte [esi], dl
jmp 0x1011d65d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10b7ec68]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1011d6a9
cmp byte [ebp - 1], 0xa
jne 0x1011d670
cmp esi, ebx
jne 0x1011d670
mov byte [esi], 0xa
jmp 0x1011d6a8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1011e0eb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1011d6a9
mov byte [esi], 0xd
jmp 0x1011d6a8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10b7ec68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1011d6a6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1011d6a9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1011d6b2
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 + 0x10b7ec68]
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 0x1011d6f8
cmp word [ebx], dx
jne 0x1011d6f8
or byte [eax + edi + 0x28], 4
jmp 0x1011d6fd
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 0x1011d860
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 0x1011d840
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1011d73e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1011d774
cmp eax, edx
jae 0x1011d782
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 0x1011d719
jmp 0x1011d860
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 0x1011d83b
cmp dword [ebp - 0x18], 0
je 0x1011d83b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10b7ec68]
test byte [eax + edi + 0x28], 0x48
je 0x1011d811
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 0x1011d7d5
mov word [esi], cx
jmp 0x1011d80c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10b7ec68]
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 + 0x10b7ec68]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10b7ec68]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1011d860
pop eax
cmp word [ebp - 4], ax
jne 0x1011d821
cmp esi, ebx
jne 0x1011d821
mov word [esi], ax
jmp 0x1011d85d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1011e0eb
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1011d860
push 0xd
pop eax
jmp 0x1011d81c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10b7ec68]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1011d85a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1011d860
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 0x1011f83a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1011f7bc