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

Disassembly:
push ebp
mov ebp, esp
push ecx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x15b71a4], eax
je 0x1401bec
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x15b71a8]
test eax, eax
jne 0x1401d06
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x1401c0b
lea eax, [esi + 0x57]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1401c28
cmp dword [ebx], 0
jne 0x1401c35
mov dword [0x15b71a8], 6
mov dword [0x15b71ac], ebx
pop ebx
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
push 0x157f9c5
push 0x18
call fcn.01423f36
mov edi, eax
add esp, 8
test edi, edi
jne 0x1401c53
lea esi, [eax + 8]
jmp 0x1401ce6
push 0
push dword [ebx]
call fcn.01401b40
push 0
push esi
mov dword [ebp + 0xc], eax
call fcn.01401b40
mov esi, dword [ebp + 0xc]
mov edx, eax
movzx ecx, byte [esi + 0x36]
mov eax, dword [esi + 0x40]
sub eax, ecx
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x1401cd8
cmp ecx, 0x1e
ja 0x1401cd8
cmp dword [esi + 0x44], edx
jne 0x1401cd8
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 0x1401ca7
call sub.KERNEL32.dll_GetLastError
mov esi, eax
jmp 0x1401ce6
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 8], ebx
mov dword [edi + 0x10], esi
mov dword [edi + 4], 1
mov eax, dword [ebp - 4]
mov dword [edi + 0x14], eax
mov eax, dword [0x15b71b4]
mov dword [edi], eax
xor eax, eax
mov dword [0x15b71b4], edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [0x15b719c], 0
mov esi, 9
jne 0x1401cf0
mov dword [0x15b71a8], esi
test edi, edi
je 0x1401cfb
push 0x18
push edi
call fcn.01423f28
add esp, 8
pop edi
mov dword [0x15b71ac], ebx
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x1401d10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x15b71a4], 0
jne 0x1401d87
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov edx, 0x15b71a4
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1401d87
push esi
mov esi, dword [0x15b7194]
mov dword [0x15b71b4], eax
mov dword [0x15b71b0], eax
mov dword [0x15b71ac], eax
test esi, esi
je 0x1401d6c
nop dword [eax]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1401d78
mov esi, dword [esi + 4]
test esi, esi
jne 0x1401d50
xor eax, eax
mov dword [0x15b71a8], eax
pop esi
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x15b71a8], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
Function at 0x14057d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1405807
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1405930
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push edi
mov edi, dword [ebp + 8]
push eax
push 0x40
push esi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1405971
push esi
push dword [ebp + 0xc]
push edi
call fcn.014261c0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x14060b0
Capabilities:
Access pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.01404ac0
add esp, 4
test eax, eax
je 0x14060db
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.01404da0
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
push ebx
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x1406129
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 0x1406129
mov edi, 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 [edi]
jne 0x1406123
mov eax, dword [ebp - 4]
mov eax, dword [eax + edx*8 + 4]
cmp eax, dword [edi + 4]
je 0x1406132
inc ecx
cmp cx, si
jb 0x1406107
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 8]
test esi, esi
je 0x140614b
mov ecx, dword [edi + edx*8 + 0x28]
cmp ecx, dword [edi + edx*8 + 0x20]
cmovbe ecx, dword [edi + edx*8 + 0x20]
mov dword [esi], ecx
mov eax, dword [edi + edx*8 + 0x24]
pop edi
pop esi
add eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1406810
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.014241f0
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push 0xfff
push eax
call fcn.014035c0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0142d76a
mov eax, dword [0x15b8ad8]
add esp, 0x1c
mov byte [ebp - 1], 0
test eax, eax
je 0x1406866
mov eax, dword [eax + 0x50]
test eax, eax
je 0x1406866
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 0x14083a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1446bbc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0x14], ebx
push edi
mov dword [ebp - 0x10], 0
je 0x1408410
mov dword [ebx], 0x1448d50
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea edi, [ebx + 0x10]
mov ecx, ebx
push 0
push edi
mov dword [ebp + 8], edi
call fcn.01408520
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], edi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0142423e
mov esi, eax
add esp, 4
test esi, esi
je 0x140846d
push 1
mov byte [ebp - 4], 2
call fcn.01425526
add esp, 4
mov dword [esi + 4], eax
jmp 0x140846f
xor esi, esi
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.0140e3f0
mov eax, dword [ebp + 8]
lea ebx, [edi + 4]
mov dword [edi + 0xc], ebx
lea esi, [edi + 8]
mov dword [edi + 0x10], esi
lea ecx, [eax + 0x18]
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
lea edx, [eax + 0x24]
mov byte [edi + 0x48], 0
mov byte [edi + 0x3d], 0
add edi, 0x14
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov edx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [edx + 0x4c], 0
mov eax, dword [0x15b8b10]
mov ecx, dword [0x15b8b14]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0xc]
mov dword [edx + 0x38], 0
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x14089e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1446caf
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.01425319
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 0x1408a6b
push eax
push esi
call fcn.01425623
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.01424e45
int3

Function at 0x1409c70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov al, byte [esi]
cmp al, 0xe8
je 0x1409c81
cmp al, 0xe9
jne 0x1409cd1
mov eax, dword [ebp + 0x10]
push edi
add eax, esi
lea edi, [esi + 1]
add eax, dword [edi]
cmp eax, dword [0x15b7a4c]
jne 0x1409cd0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1409cca
mov eax, 0x140a610
sub eax, esi
sub eax, 5
mov dword [edi], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp + 0x1c]
mov byte [eax], 1
pop edi
mov cl, byte [esi]
pop esi
cmp cl, 0xcc
je 0x1409ce5
xor eax, eax
cmp cl, 0x90
sete al
pop ebp
ret 0x18
mov eax, 1
pop ebp
ret 0x18

Function at 0x140a560
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 3
call fcn.0140d440
mov esi, eax
add esp, 4
test esi, esi
jne 0x140a57a
pop esi
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0x20]
mov eax, dword [edi]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x28], edi
mov dword [esi + 0x10], eax
cmp byte [0x15b7a95], 0
je 0x140a5c0
xor al, al
mov byte [esi + 4], al
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140a5ef
mov eax, dword [esi + 0xc]
mov dword [edi], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x140a5fb
mov ecx, dword [esi + 8]
mov dword [eax], ecx
mov al, 1
mov byte [esi + 4], al
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x140d920
Capabilities:
Set environment variable

Disassembly:
push 0x15b71d0
call fcn.01424e65
mov eax, dword [0x15b71c4]
add esp, 4
cmp eax, dword [0x15b71c8]
je 0x1403a0f
mov dword [0x15b71c8], eax
push 0x15b71d0
call fcn.01424e81
pop ecx
ret
push esi
push edi
call fcn.01403ec0
mov edi, dword [0x15b7a9c]
test edi, edi
je 0x140da06
mov esi, edi
mov edi, dword [edi + 0x40]
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x140d958
mov eax, dword [esi + 0x3c]
sub eax, 2
je 0x140d953
sub eax, 1
je 0x140d953
sub eax, 1
jne 0x140d958
mov eax, dword [ecx]
call dword [eax + 8]
push dword [esi + 0x30]
call fcn.014010c0
mov ecx, dword [esi + 0x2c]
add esp, 4
cmp ecx, 0x10
jb 0x140d997
mov eax, dword [esi + 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x140d98d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140daa7
mov eax, edx
push ecx
push eax
call fcn.01423f28
add esp, 8
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xf
mov byte [esi + 0x18], 0
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x140d9dc
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x140d9d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x140daa7
mov eax, edx
push ecx
push eax
call fcn.01423f28
add esp, 8
push 0x44
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
call fcn.01423f28
add esp, 8
test edi, edi
jne 0x140d935
mov dword [0x15b7a9c], edi
mov eax, dword [0x15b8ad4]
test eax, eax
je 0x140da27
push 0xac
push eax
call fcn.01423f28
add esp, 8
mov dword [0x15b8ad4], 0
mov eax, dword [0x15b8ad8]
test eax, eax
je 0x140da48
push 0x218
push eax
call fcn.01423f28
add esp, 8
mov dword [0x15b8ad8], 0
mov edi, dword [0x15b8ae4]
mov esi, dword [0x15b8ae0]
mov dword [0x15b7a34], 0
cmp esi, edi
je 0x140da8b
push 0xc
push dword [esi]
call fcn.01423f28
add esi, 4
add esp, 8
cmp esi, edi
jne 0x140da62
mov edi, dword [0x15b8ae4]
mov esi, dword [0x15b8ae0]
cmp esi, edi
je 0x140da8b
mov dword [0x15b8ae4], esi
call fcn.0140d800
push 0x15b7aa0
push str.PATH
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
pop edi
pop esi
jmp 0x14039f0
call fcn.01431c47
int3
Function at 0x140dac0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [0x15b7a80]
test esi, esi
je 0x140dc04
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [eax]
cmp byte [esi + 4], 0
jne 0x140dbf7
mov eax, dword [esi]
cmp eax, 1
jne 0x140db19
call fcn.01401d10
push dword [esi + 0xc]
lea ebx, [esi + 0x28]
push ebx
call fcn.014016e0
call fcn.01401d90
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x140dbf3
mov eax, dword [ebx]
jmp 0x140dbf1
cmp eax, 2
jne 0x140db54
mov ebx, dword [esi + 0x38]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push ebx
call edi
test eax, eax
je 0x140dbe7
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
jmp 0x140dbe5
cmp eax, 3
jne 0x140db88
mov ebx, dword [esi + 0x28]
mov dword [ebp - 4], 0
mov eax, dword [ebx]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push ebx
call edi
test eax, eax
je 0x140dbe7
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
jmp 0x140dbe5
cmp eax, 4
jne 0x140dbf3
push 1
push dword [esi + 0x28]
call fcn.014051b0
push dword [esi + 0x2c]
mov dword [esi + 8], eax
lea eax, [esi + 0x30]
push dword [esi + 0x28]
push eax
call fcn.014261c0
mov ebx, dword [esi + 0x2c]
lea ecx, [ebp - 4]
mov eax, dword [esi + 0x28]
add esp, 0x14
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
push ecx
push 0x40
push ebx
push eax
call edi
test eax, eax
je 0x140dbe7
push ebx
lea eax, [esi + 0x38]
push eax
push dword [ebp - 8]
call fcn.014261c0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp - 8]
call edi
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x140dbf3
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov byte [esi + 4], 1
mov esi, dword [esi + 0x24]
test esi, esi
jne 0x140dae0
pop edi
pop ebx
mov byte [0x15b7a95], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1411cf0
Capabilities:
Query or enumerate registry value

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

Function at 0x1411d40
Capabilities:
Query or enumerate registry value

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

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

Function at 0x1437506
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1583388
push 0x1583380
push str.FlsAlloc
push 0x1f
call fcn.014373ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x143753a
push dword [ebp + 8]
mov ecx, esi
call dword [0x14481c8]
call esi
jmp 0x1437540
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1437584
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1583398
push 0x1583390
push str.FlsGetValue
push 0x21
call fcn.014373ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x14375bb
push dword [ebp + 8]
mov ecx, esi
call dword [0x14481c8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x14375c3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x15833a0
push 0x1583398
push str.FlsSetValue
push 0x22
call fcn.014373ce
mov esi, eax
add esp, 0x10
test esi, esi
je 0x14375fd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x14481c8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x143ae2e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.014241f0
mov eax, dword [0x15b6008]
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.01437b39
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x143ae70
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x143afcc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.01446640
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 + 0x15b9de8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0143be2b
mov ecx, dword [esi*4 + 0x15b9de8]
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 0x143afc5
cmp eax, dword [ecx + edi + 0x24]
jne 0x143afc5
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 0x143afc5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0143be2b
add esp, 0x14
test edx, edx
jl 0x143afc5
jg 0x143af3b
test eax, eax
jb 0x143afc5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x143afc5
jl 0x143af55
cmp dword [ebp - 0x1008], eax
ja 0x143afc5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x143af73
test ebx, ebx
je 0x143afac
cmp ecx, edi
jae 0x143afac
mov al, byte [ecx]
cmp al, 0xd
jne 0x143af8d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x143af99
cmp byte [ecx + 1], 0xa
jne 0x143af99
inc ecx
jmp 0x143af99
movzx eax, al
movsx eax, byte [eax + 0x15b62e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x143af73
cmp edx, ebx
jne 0x143af73
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x143afca
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.014244b9
leave
ret
Function at 0x143b2c3
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 + 0x15b9de8]
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 0x143b303
cmp byte [ebx], 0xa
jne 0x143b303
or byte [edi + eax + 0x28], 4
jmp 0x143b308
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 0x143b407
mov dl, byte [eax]
cmp dl, 0x1a
je 0x143b3ea
inc eax
cmp dl, 0xd
je 0x143b334
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x143b35a
cmp eax, ecx
jae 0x143b368
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 0x143b31c
jmp 0x143b407
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 0x143b3e5
cmp dword [ebp - 0x10], 0
je 0x143b3e5
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x15b9de8]
test byte [eax + edi + 0x28], 0x48
je 0x143b3bf
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x143b3aa
mov byte [esi], dl
jmp 0x143b3bb
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x15b9de8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x143b407
cmp byte [ebp - 1], 0xa
jne 0x143b3ce
cmp esi, ebx
jne 0x143b3ce
mov byte [esi], 0xa
jmp 0x143b406
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0143be49
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x143b407
mov byte [esi], 0xd
jmp 0x143b406
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x15b9de8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x143b404
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x143b407
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret