joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017ac
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4175b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x421850
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebx
call fcn.0041119c
push 0x421850
lea ecx, [esp + 0x18]
mov dword [esp + 0x14c], ebx
call fcn.0041119c
push 0x421850
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 1
call fcn.0041119c
push 0x421850
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 2
call fcn.0041119c
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
add esi, 0x108
rep stosd dword es:[edi], eax
push esi
lea eax, [esp + 0x14]
push 0x41d474
push eax
mov byte [esp + 0x154], 3
call fcn.0041076a
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00411420
lea ecx, [esp + 0x20]
call fcn.004055f0
mov ecx, dword [esp + 0x150]
push str.AutoRun.Inf
push ecx
lea edx, [esp + 0x1c]
push str._s_s
push edx
mov byte [esp + 0x158], 4
call fcn.0041076a
mov eax, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x20]
push ebx
push eax
call fcn.004056b3
test eax, eax
jne 0x4018ea
push str._t_tIs_not_exist_Autorun.inf_file_r_n
call fcn.004055e0
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 3
call fcn.0040562d
lea ecx, [esp + 0x18]
mov byte [esp + 0x148], 2
call fcn.0041112e
lea ecx, [esp + 0xc]
mov byte [esp + 0x148], 1
call fcn.0041112e
lea ecx, [esp + 0x14]
mov byte [esp + 0x148], bl
call fcn.0041112e
lea ecx, [esp + 0x10]
mov dword [esp + 0x148], 0xffffffff
call fcn.0041112e
xor eax, eax
jmp 0x4019ff
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
xor esi, esi
push 0x421850
lea ecx, [esp + 0x20]
call fcn.0041126b
push 0x421850
lea ecx, [esp + 0x14]
call fcn.0041126b
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x40]
push esi
rep stosd dword es:[edi], eax
push str.DRIVER_NAME
lea ecx, [esp + 0x24]
push str._s__d
push ecx
call fcn.0041076a
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x40]
push edx
push 0x104
push eax
push 0x421850
push ecx
push str.INFOMATION
call ebp
lea edx, [esp + 0x40]
lea eax, [esp + 0x10]
push edx
push 0x41d474
push eax
call fcn.0041076a
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.00411420
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebx
jle 0x4019a3
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.004103e4
test eax, eax
je 0x40199b
inc esi
cmp esi, 0x14
jl 0x4018f3
jmp 0x4019a3
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 3
call fcn.0040562d
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14c], 2
call fcn.0041112e
lea ecx, [esp + 0x10]
mov byte [esp + 0x14c], 1
call fcn.0041112e
lea ecx, [esp + 0x18]
mov byte [esp + 0x14c], bl
call fcn.0041112e
lea ecx, [esp + 0x14]
mov dword [esp + 0x14c], 0xffffffff
call fcn.0041112e
mov eax, dword [esp + 0x20]
pop ebp
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x140
ret 4
Function at 0x404990
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4178bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push str._nMyCheckAllInfInstallerKey_Start_n
call fcn.004055e0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x2c]
add esp, 4
rep stosd dword es:[edi], eax
push 0x421850
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 0x3f2
mov dword [esp + 0x20], 0x104
mov bl, 1
xor esi, esi
call fcn.0041119c
lea eax, [esp + 0x18]
mov dword [esp + 0x134], esi
push eax
push 0xf003f
push esi
push str.Software
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404af7
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x28]
push eax
rep stosd dword es:[edi], eax
push eax
push eax
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x38]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x3c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x404abf
push 0x421850
lea ecx, [esp + 0x14]
call fcn.0041126b
lea ecx, [ebp + 0x11c4]
lea edx, [esp + 0x28]
push ecx
push edx
lea eax, [esp + 0x18]
push str.Software_sINF_Installer_s
push eax
call fcn.0041076a
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
push 0xf003f
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404ae1
mov eax, dword [esp + 0x10]
push eax
push str._n_t_t__s__Key_is_found_n
call fcn.004055e0
mov ecx, dword [esp + 0x28]
add esp, 8
mov dword [esp + 0x14], 0
xor bl, bl
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404ae1
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.RegEnumKeyEx
call fcn.0041119c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405530
add esp, 8
xor bl, bl
inc esi
test bl, bl
jne 0x404a17
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404b17
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push str.RegOpenKeyEx
call fcn.0041119c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405530
add esp, 8
push str._nMyCheckAllInfInstallerKey_End_n
call fcn.004055e0
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], 0xffffffff
call fcn.0041112e
mov ecx, dword [esp + 0x12c]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x128
ret
Function at 0x405310
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x41797b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x40537d
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
jne 0x40537d
pop edi
pop esi
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
add esp, 0xac
ret
lea edx, [esp + 0x20]
lea ecx, [esp + 8]
push edx
call fcn.0041119c
lea ecx, [esp + 8]
mov dword [esp + 0xb0], 0
call fcn.00411420
mov eax, dword [esp + 0x1c]
sub eax, 0
je 0x4054dd
dec eax
je 0x40542b
dec eax
jne 0x4054f1
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x10]
sub ecx, 3
mov dword [eax + 4], 0xf
je 0x405420
dec ecx
je 0x405415
dec ecx
je 0x4053de
mov dword [eax], 0xf
jmp 0x4054f1
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], 0x11
sub ecx, 0
je 0x4053f4
dec ecx
je 0x40540a
dec ecx
je 0x4053ff
mov dword [eax], 0xd
jmp 0x4054f1
mov dword [eax], 0x10
jmp 0x4054f1
mov dword [eax], 0xe
jmp 0x4054f1
mov dword [eax], 0xc
jmp 0x4054f1
mov dword [eax], 0xb
jmp 0x4054f1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x405485
cmp eax, 0xa
je 0x405458
xor ecx, ecx
cmp eax, 0x5a
mov eax, dword [esp + 0xb8]
setne cl
add ecx, 9
mov dword [eax + 4], 0xa
mov dword [eax], ecx
jmp 0x4054f1
mov edx, dword [esp + 8]
push 0x41e3b4
push edx
call fcn.00406626
mov ecx, eax
mov eax, dword [esp + 0xc0]
add esp, 8
neg ecx
sbb ecx, ecx
mov dword [eax + 4], 0xa
add ecx, 7
mov dword [eax], ecx
jmp 0x4054f1
mov edx, dword [esp + 8]
push 0x41e3b0
push edx
call fcn.00406626
add esp, 8
test eax, eax
je 0x4054c7
mov eax, dword [esp + 8]
push 0x41e3ac
push eax
call fcn.00406626
add esp, 8
test eax, eax
je 0x4054c7
mov eax, dword [esp + 0xb8]
mov dword [eax], 3
mov dword [eax + 4], 0xa
jmp 0x4054f1
mov eax, dword [esp + 0xb8]
mov dword [eax], 4
mov dword [eax + 4], 0xa
jmp 0x4054f1
mov eax, dword [esp + 0xb8]
mov dword [eax], 2
mov dword [eax + 4], 2
lea ecx, [esp + 8]
mov dword [esp + 0xb0], 0xffffffff
call fcn.0041112e
mov ecx, dword [esp + 0xa8]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0xac
ret
Function at 0x40ad85
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41ef90
cmp edx, dword [eax]
je 0x40ada7
add eax, 8
inc ecx
cmp eax, 0x41f020
jl 0x40ad98
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41ef90]
jne 0x40aed5
mov eax, dword [0x424d30]
cmp eax, 1
je 0x40aeaf
test eax, eax
jne 0x40add8
cmp dword [0x41e884], 1
je 0x40aeaf
cmp edx, 0xfc
je 0x40aed5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ae0f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040cc00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407660
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ae52
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407660
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x419844
push edi
call fcn.0040df20
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040cc00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040cc10
lea eax, [ebp - 0xa0]
push 0x419824
push eax
call fcn.0040cc10
push dword [esi + 0x41ef94]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040cc10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040de94
add esp, 0x2c
pop edi
jmp 0x40aed5
lea eax, [ebp + 8]
lea esi, [esi + 0x41ef94]
push 0
push eax
push dword [esi]
call fcn.00407660
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4168a7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4168d5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4168f3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041680d
jmp 0x4168f3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4168f3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041680d
test edi, edi
mov eax, edi
jne 0x4168dd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10002780
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [0x10035080]
xor eax, esp
mov dword [esp + 0x14], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 4
call fcn.10008f45
add esp, 4
lea ecx, [esp + 8]
mov dword [eax], 0x10002050
push ecx
push 0
push eax
push 0x10007dd0
push 0
push 0
call fcn.1000e17e
add esp, 0x18
mov dword [esp + 4], eax
test eax, eax
je 0x10002885
push 4
call fcn.10008f45
add esp, 4
lea ecx, [esp + 0x10]
mov dword [eax], 0x10002400
push ecx
push 0
push eax
push 0x10007dd0
push 0
push 0
call fcn.1000e17e
add esp, 0x18
mov dword [esp + 0xc], eax
test eax, eax
je 0x100028ae
cmp dword [esp + 8], 0
je 0x100028a7
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 8]
cmp ecx, eax
je 0x100028a0
push 0
push ecx
push dword [esp + 0xc]
call fcn.10007e4e
add esp, 0xc
test eax, eax
jne 0x10002899
xorps xmm0, xmm0
movlpd qword [esp + 4], xmm0
cmp dword [esp + 0x10], eax
je 0x100028a7
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 0x10]
cmp ecx, eax
je 0x100028a0
push 0
push ecx
push dword [esp + 0x14]
call fcn.10007e4e
add esp, 0xc
test eax, eax
jne 0x10002899
xorps xmm0, xmm0
movlpd qword [esp + 0xc], xmm0
cmp dword [esp + 8], eax
jne 0x10002894
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.10008f32
mov esp, ebp
pop ebp
ret
push 6
mov dword [esp + 0xc], 0
call fcn.10007fc3
call fcn.100106dc
push 2
call fcn.10007fc3
push 5
call fcn.10007fc3
push 1
call fcn.10007fc3
push 6
mov dword [esp + 0x14], 0
call fcn.10007fc3
int3
Function at 0x10002e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10002ea2
jl 0x10002e95
test ecx, ecx
jne 0x10002ea2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10002f62
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.100056f0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10002f0e
jg 0x10002ecd
test esi, esi
je 0x10002f0e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10002ee5
mov eax, dword [esp + 0x10]
jl 0x10002edf
cmp eax, esi
jae 0x10002ee5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1000a570
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10002f2f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10002f4b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10002eb4
jl 0x10002f4b
test ecx, ecx
jne 0x10002eb4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10002fa6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10002fa6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.1000a570
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10003017
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10002fcc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10003002
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.100112ba
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10003017
cmp edi, eax
ja 0x10002fe0
test edi, edi
je 0x10003017
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.100112ba
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005ef0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100280d0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10035080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
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.10008f45
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10008433
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.10005e90
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001335b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001339a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001339a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001339a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001339a
cmp dword [ecx + 0x74], 0xe
jbe 0x1001339a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10017cbd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002d38c
push 0x1002d384
push str.FlsAlloc
push 0x1f
call fcn.10017ae8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10017cf1
push dword [ebp + 8]
mov ecx, esi
call dword [0x10029194]
call esi
jmp 0x10017cf7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10017d3b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002d39c
push 0x1002d394
push str.FlsGetValue
push 0x21
call fcn.10017ae8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10017d72
push dword [ebp + 8]
mov ecx, esi
call dword [0x10029194]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10017d7a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.CONIN_
push 0x1002d39c
push str.FlsSetValue
push 0x22
call fcn.10017ae8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10017db4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10029194]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001a5f7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10009ed0
mov eax, dword [0x10035080]
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.10014652
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001a639
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001a795
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10027690
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 + 0x10036c30]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001bde5
mov ecx, dword [esi*4 + 0x10036c30]
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 0x1001a78e
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001a78e
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 0x1001a78e
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001bde5
add esp, 0x14
test edx, edx
jl 0x1001a78e
jg 0x1001a704
test eax, eax
jb 0x1001a78e
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001a78e
jl 0x1001a71e
cmp dword [ebp - 0x1008], eax
ja 0x1001a78e
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001a73c
test ebx, ebx
je 0x1001a775
cmp ecx, edi
jae 0x1001a775
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001a756
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001a762
cmp byte [ecx + 1], 0xa
jne 0x1001a762
inc ecx
jmp 0x1001a762
movzx eax, al
movsx eax, byte [eax + 0x10035340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001a73c
cmp edx, ebx
jne 0x1001a73c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001a793
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10008f32
leave
ret
Function at 0x1001b27d
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 + 0x10036c30]
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 0x1001b2bd
cmp byte [ebx], 0xa
jne 0x1001b2bd
or byte [edi + eax + 0x28], 4
jmp 0x1001b2c2
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 0x1001b3c1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001b3a4
inc eax
cmp dl, 0xd
je 0x1001b2ee
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001b314
cmp eax, ecx
jae 0x1001b322
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 0x1001b2d6
jmp 0x1001b3c1
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 0x1001b39f
cmp dword [ebp - 0x10], 0
je 0x1001b39f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10036c30]
test byte [eax + edi + 0x28], 0x48
je 0x1001b379
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001b364
mov byte [esi], dl
jmp 0x1001b375
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10036c30]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001b3c1
cmp byte [ebp - 1], 0xa
jne 0x1001b388
cmp esi, ebx
jne 0x1001b388
mov byte [esi], 0xa
jmp 0x1001b3c0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001be03
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001b3c1
mov byte [esi], 0xd
jmp 0x1001b3c0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10036c30]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001b3be
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001b3c1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret