joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10016e90
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 4], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x10016fea
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.100127f0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10016fbd
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 8], edx
cmp edi, esi
jne 0x10016f43
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10016fb3
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x10016f7d
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x10016f75
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x10016fb0
cmp edi, edx
je 0x10016f8d
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x10016fc6
cmp edi, edx
jne 0x10016f81
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 4]
mov eax, ecx
cmp ecx, esi
jne 0x10016ef2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x10016fb0
push str.invalid_hash_bucket_count
call fcn.10060b4c
int3
Function at 0x10017000
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x10], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
ja 0x1001717a
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp + 8], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.100127f0
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov esi, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x10017155
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
mov edi, dword [edi]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
jbe 0x10017081
mov edx, dword [ecx]
mov dword [ebp - 4], edx
xor edx, edx
mov ebx, 0x811c9dc5
cmp dword [ecx + 0x10], edx
jbe 0x100170aa
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
movzx ecx, byte [edx + eax]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, edi
jb 0x10017093
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
and edx, ebx
lea ecx, [ecx + edx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x100170c9
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x1001714b
mov ebx, dword [ecx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.100174b0
test al, al
jne 0x10017103
mov ebx, dword [ebx]
cmp ebx, esi
je 0x100170fb
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x10017148
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x1001712b
nop word [eax + eax]
mov ebx, dword [ebx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.100174b0
test al, al
je 0x1001715e
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x10017110
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov esi, edi
cmp edi, eax
jne 0x10017065
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x10017148
push str.invalid_hash_bucket_count
call fcn.10060b4c
int3
Function at 0x10017690
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jne 0x100176a0
xor eax, eax
jmp 0x100176d6
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x100176b8
xor eax, eax
jmp 0x100176d6
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
je 0x100176d3
xor eax, eax
jmp 0x100176d6
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x100176e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
call fcn.10017690
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1001770d
xor eax, eax
jmp 0x100177a3
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x34]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov word [ebp - 4], cx
jmp 0x1001773b
mov dx, word [ebp - 4]
add dx, 1
mov word [ebp - 4], dx
movzx eax, word [ebp - 4]
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 6]
cmp eax, edx
jge 0x10017787
movzx eax, word [ebp - 4]
imul ecx, eax, 0x28
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 8]
push eax
movzx ecx, word [ebp - 4]
imul edx, ecx, 0x28
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + edx + 0xc]
push ecx
movzx edx, word [ebp - 4]
imul eax, edx, 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0xc]
add edx, dword [ecx + eax + 0xc]
push edx
call fcn.10064db0
add esp, 0xc
jmp 0x1001772f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10064db0
add esp, 0xc
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x100177b0
Capabilities:
Enumerate pe sections
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0xc], edx
xor eax, eax
mov word [ebp - 4], ax
jmp 0x10017817
mov cx, word [ebp - 4]
add cx, 1
mov word [ebp - 4], cx
movzx edx, word [ebp - 4]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 6]
cmp edx, ecx
jge 0x1001786a
movzx edx, word [ebp - 4]
imul eax, edx, 0x28
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x34]
mov ecx, dword [ebp - 0xc]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x20]
sub edx, 1
and edx, dword [ebp - 0x10]
jne 0x10017851
mov dword [ebp - 0x14], 1
jmp 0x10017858
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10017868
jmp 0x1001788e
jmp 0x1001780b
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov edx, dword [ebp + 8]
and ecx, dword [edx + 0x34]
jne 0x10017881
mov dword [ebp - 0x18], 1
jmp 0x10017888
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x100192f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 1
mov eax, dword [ebp + 8]
push eax
call fcn.10017690
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1001931a
mov dword [ebp - 8], 0
jmp 0x10019386
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x10], ecx
xor edx, edx
mov word [ebp - 4], dx
jmp 0x1001933f
mov ax, word [ebp - 4]
add ax, 1
mov word [ebp - 4], ax
movzx ecx, word [ebp - 4]
mov edx, dword [ebp - 0xc]
movzx eax, word [edx + 6]
cmp ecx, eax
jge 0x10019377
movzx ecx, word [ebp - 4]
imul edx, ecx, 0x28
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx + 0xc]
push ecx
call fcn.10018e70
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10019375
jmp 0x10019386
jmp 0x10019333
mov edx, dword [ebp + 8]
push edx
call fcn.10018e70
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x10023110
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088764
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100b0040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
lea ecx, [edi + 0x50]
mov dword [edi], 0x10098828
call fcn.10024c10
mov dword [ebp - 4], 0
mov eax, dword [edi]
push 0
push 0
mov dword [ebp - 0x14], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ebx, dword [eax + 4]
add ebx, edi
mov ecx, ebx
mov dword [ebx + 0x30], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x201
mov dword [ebx + 0x18], 6
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call fcn.1001e130
push 8
call fcn.100624b9
mov esi, eax
push 1
mov dword [ebp - 4], 2
call fcn.10061a6d
mov dword [esi + 4], eax
add edi, 4
mov dword [ebx + 0x30], esi
add esp, 8
mov dword [ebx + 0x38], edi
mov dword [ebx + 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], 3
push eax
call fcn.10025930
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov edx, dword [edx + 0x20]
call edx
mov byte [ebp - 4], 1
mov ecx, esi
mov edx, dword [esi]
mov byte [ebp - 0xd], al
call dword [edx + 8]
test eax, eax
je 0x10023244
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
cmp dword [ebx + 0x38], 0
mov al, byte [ebp - 0xd]
mov byte [ebx + 0x40], al
jne 0x10023260
mov eax, dword [ebx + 0xc]
mov ecx, ebx
push 0
or eax, 4
push eax
call fcn.1001e130
mov dword [ebp - 4], 4
mov ebx, dword [ebp - 0x18]
push 8
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
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.100624b9
mov esi, eax
push 1
mov byte [ebp - 4], 5
call fcn.10061a6d
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.100258c0
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, ebx
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100254c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088940
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100b0040]
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.100624b9
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10061a6d
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.100258c0
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 0x10061734
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x10061755
jl 0x1006174c
test edi, edi
jne 0x10061755
xor eax, eax
xor edx, edx
jmp 0x10061816
cmp dword [ebx + 0x38], 0
je 0x1006176a
push eax
push edi
push dword [ebp + 8]
call fcn.10022ea0
jmp 0x10061816
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x100617b1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x100617b1
cmp eax, edi
jb 0x1006178b
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.10064db0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x100617b7
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1006180b
mov ecx, ebx
call fcn.1006109f
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x100617f6
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10072203
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1006180b
jmp 0x100617c9
test edx, edx
je 0x1006180b
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10072203
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x10074579
Capabilities:
Parse pe header

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

Function at 0x1007a956
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100948e8
push 0x100948e0
push str.FlsAlloc
push 0x1f
call fcn.1007a7c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007a98a
push dword [ebp + 8]
mov ecx, esi
call dword [0x10090168]
call esi
jmp 0x1007a990
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1007a9d4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100948f8
push 0x100948f0
push str.FlsGetValue
push 0x21
call fcn.1007a7c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007aa0b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10090168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1007aa13
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10094900
push 0x100948f8
push str.FlsSetValue
push 0x22
call fcn.1007a7c1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1007aa4d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10090168]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1007c129
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10063550
mov eax, dword [0x100b0040]
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.10078a03
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1007c16b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1007c2c7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100870e0
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 + 0x100b29a0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1007d126
mov ecx, dword [esi*4 + 0x100b29a0]
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 0x1007c2c0
cmp eax, dword [ecx + edi + 0x24]
jne 0x1007c2c0
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 0x1007c2c0
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1007d126
add esp, 0x14
test edx, edx
jl 0x1007c2c0
jg 0x1007c236
test eax, eax
jb 0x1007c2c0
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1007c2c0
jl 0x1007c250
cmp dword [ebp - 0x1008], eax
ja 0x1007c2c0
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1007c26e
test ebx, ebx
je 0x1007c2a7
cmp ecx, edi
jae 0x1007c2a7
mov al, byte [ecx]
cmp al, 0xd
jne 0x1007c288
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1007c294
cmp byte [ecx + 1], 0xa
jne 0x1007c294
inc ecx
jmp 0x1007c294
movzx eax, al
movsx eax, byte [eax + 0x100b04b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1007c26e
cmp edx, ebx
jne 0x1007c26e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1007c2c5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100623cb
leave
ret
Function at 0x1007c5be
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 + 0x100b29a0]
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 0x1007c5fe
cmp byte [ebx], 0xa
jne 0x1007c5fe
or byte [edi + eax + 0x28], 4
jmp 0x1007c603
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 0x1007c702
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1007c6e5
inc eax
cmp dl, 0xd
je 0x1007c62f
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1007c655
cmp eax, ecx
jae 0x1007c663
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 0x1007c617
jmp 0x1007c702
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 0x1007c6e0
cmp dword [ebp - 0x10], 0
je 0x1007c6e0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100b29a0]
test byte [eax + edi + 0x28], 0x48
je 0x1007c6ba
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1007c6a5
mov byte [esi], dl
jmp 0x1007c6b6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100b29a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1007c702
cmp byte [ebp - 1], 0xa
jne 0x1007c6c9
cmp esi, ebx
jne 0x1007c6c9
mov byte [esi], 0xa
jmp 0x1007c701
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1007d144
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1007c702
mov byte [esi], 0xd
jmp 0x1007c701
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100b29a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1007c6ff
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1007c702
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret