joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005b60
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002af7f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x10038080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0x70]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], eax
mov dword [ebx], 0x10034144
call fcn.10005d30
sub esp, 8
mov dword [ebp - 4], 0
lea esi, [ebx + 0x10]
mov dword [ebp - 0x24], 1
mov ecx, ebx
mov dword [ebp - 0x18], esi
push esi
call fcn.10006890
mov dword [ebp - 4], 1
mov eax, dword [ebx]
mov dword [ebp - 0x14], esi
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 ecx, esi
call fcn.10006730
lea eax, [ebx + 0x10]
lea ebx, [eax + 4]
mov dword [eax], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [eax + 0xc], ebx
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea esi, [eax + 8]
mov byte [eax + 0x48], 0
lea edi, [eax + 0x14]
mov byte [eax + 0x3d], 0
lea edx, [eax + 0x24]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [0x10039e74]
mov dword [eax], 0
mov eax, dword [0x10039e70]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x18]
mov dword [edi], 0
mov dword [edx], 0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x38], 0
mov byte [ebp - 4], 2
cmp dword [ebx + 0x4c], 0
jne 0x10005cf6
push 0x40
push 0x21
push dword [ebp - 0x1c]
call fcn.1000c469
add esp, 0xc
test eax, eax
je 0x10005cf6
push 1
push eax
mov ecx, ebx
call fcn.10005930
mov eax, dword [ebx + 0x34]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 3
push eax
call fcn.10007000
add esp, 4
mov ecx, ebx
push eax
call fcn.100057d0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x10005cdf
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x10005cdf
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp - 0x10]
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
xor eax, eax
add ecx, esi
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001c80
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10006730
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b050
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10038080]
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.1000ca85
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1000c0e6
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.100066d0
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 0x10006890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b09d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10038080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx]
push 0
push 0
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.10001c80
push 8
call fcn.1000ca85
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 1
call fcn.1000c0e6
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 ecx, dword [esi + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 2
push eax
call fcn.10006b80
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, dword [ebp - 0x1c]
mov byte [ebp + 0xb], al
test ecx, ecx
je 0x100069ba
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x100069ba
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 0x100069d6
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.10001c80
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10008390
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10008560
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000846d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100083da
mov eax, dword [ebp - 4]
cmp eax, dword [0x10038004]
ja 0x100083da
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100083aa
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1000e4f0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x100083ff
jmp 0x1000846d
cmp dword [ebp - 0x14], 0x10000
jne 0x10008453
cmp dword [ebp - 0x18], 0x10000
jb 0x10008453
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10008436
mov eax, dword [ebp - 8]
jmp 0x1000846f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10008446
xor eax, eax
jmp 0x1000846f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10008468
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10008560
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100083aa
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10008480
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10008590
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10008555
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100084c5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10038004]
ja 0x100084c5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10008495
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1000e4f0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x100084ea
jmp 0x10008555
cmp dword [ebp - 0x14], 0x10000
jne 0x1000853e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000853e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10008521
mov eax, dword [ebp - 8]
jmp 0x10008557
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10008531
xor eax, eax
jmp 0x10008557
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10008550
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10008590
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10008495
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100085c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100089b0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10039104], 0
jne 0x100085fd
cmp dword [0x10039100], 0
je 0x100085fd
mov eax, dword [0x10039100]
mov dword [0x10039104], eax
cmp dword [0x10039104], 0
je 0x1000867a
mov ecx, dword [0x10039104]
cmp dword [ecx + 8], 0
je 0x1000867a
mov edx, dword [0x10039104]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000867a
mov ecx, dword [0x10039104]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000867a
mov eax, dword [0x10039104]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10008649
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10008650
xor eax, eax
jmp 0x10008799
mov ecx, dword [0x10039104]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1000e4f0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10008799
mov edx, dword [0x10039100]
mov dword [0x10039104], edx
jmp 0x10008696
mov eax, dword [0x10039104]
mov ecx, dword [eax + 4]
mov dword [0x10039104], ecx
cmp dword [0x10039104], 0
je 0x100086d6
cmp dword [0x10039104], 0
je 0x100086d4
mov edx, dword [0x10039104]
cmp dword [edx + 8], 0
je 0x100086d4
mov eax, dword [0x10039104]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100086d4
mov edx, dword [0x10039104]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100086d4
jmp 0x1000862e
jmp 0x10008688
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100087a0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10008797
mov eax, dword [ebp - 0x18]
mov dword [0x10039104], eax
mov ecx, dword [0x10039104]
mov dword [ecx], 0x52727464
mov edx, dword [0x10039104]
mov dword [edx + 8], 0
mov eax, dword [0x10039104]
mov ecx, dword [0x10039100]
mov dword [eax + 4], ecx
mov edx, dword [0x10039104]
mov dword [0x10039100], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10039104]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10008767
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10008787
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000875e
mov eax, dword [0x10039104]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000862e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100094e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10039100]
mov dword [ebp - 4], eax
jmp 0x100094f9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10009520
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000951e
call sub.KERNEL32.dll_GetLastError
jmp 0x10009522
jmp 0x100094f0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10009b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10039110], eax
je 0x10009b74
mov eax, 0x10dd
jmp 0x10009d1c
cmp dword [0x10039114], 0
je 0x10009b87
mov eax, dword [0x10039114]
jmp 0x10009d1c
cmp dword [ebp + 0xc], 0
jne 0x10009b97
mov eax, 0x57
jmp 0x10009d1c
cmp dword [ebp + 8], 0
jne 0x10009ba7
mov eax, 6
jmp 0x10009d1c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10009bd0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x10039114], ecx
mov edx, dword [ebp + 8]
mov dword [0x10039118], edx
mov eax, dword [ebp - 8]
jmp 0x10009d1c
push 0x18
call fcn.1000ca85
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10009c2b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x10039114], ecx
cmp dword [ebp - 4], 0
je 0x10009c1a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1000cdcf
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10039118], ecx
mov eax, dword [ebp - 8]
jmp 0x10009d1c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10009b30
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10009b30
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x10009c6b
cmp dword [ebp - 0xc], 0x1e
jbe 0x10009c87
mov dword [ebp - 8], 9
cmp dword [0x10039108], 0
je 0x10009c82
jmp 0x10009bf9
jmp 0x10009bf0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10009cae
mov dword [ebp - 8], 9
cmp dword [0x10039108], 0
je 0x10009ca9
jmp 0x10009bf9
jmp 0x10009bf0
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10009cd9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10009bf0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10039120]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10039120], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10009d30
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10039110], eax
je 0x10009d4d
mov eax, 0x10dd
jmp 0x10009e30
mov eax, dword [0x10039120]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10009dcc
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10009da8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10009da8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10008a40
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000cdcf
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10009d55
mov dword [0x10039120], 0
call fcn.10009320
mov ecx, dword [0x1003911c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10009e1a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000cdcf
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10009de4
mov dword [0x1003911c], 0
mov dword [0x10039110], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000a310
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10039114], 0
je 0x1000a329
mov eax, dword [0x10039114]
jmp 0x1000a3c8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000a33a
xor eax, eax
jmp 0x1000a3c8
push 8
call fcn.1000ca85
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000a392
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000a37b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000cdcf
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10039114], eax
mov dword [0x10039118], 0
mov eax, dword [ebp - 8]
jmp 0x1000a3c8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000a3aa
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000a35a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1003911c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1003911c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10017617
Capabilities:
Parse pe header

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

Function at 0x1001b3ca
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10030260
push 0x10030258
push str.FlsAlloc
push 0x1f
call fcn.1001b235
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001b3fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002c1a8]
call esi
jmp 0x1001b404
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001b448
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10030270
push 0x10030268
push str.FlsGetValue
push 0x21
call fcn.1001b235
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001b47f
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002c1a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001b487
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10030278
push 0x10030270
push str.FlsSetValue
push 0x22
call fcn.1001b235
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001b4c1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002c1a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001dd6b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1000d940
mov eax, dword [0x10038080]
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.10018d6e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001ddad
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001df09
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1002a590
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 + 0x100399f0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001f559
mov ecx, dword [esi*4 + 0x100399f0]
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 0x1001df02
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001df02
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 0x1001df02
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001f559
add esp, 0x14
test edx, edx
jl 0x1001df02
jg 0x1001de78
test eax, eax
jb 0x1001df02
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001df02
jl 0x1001de92
cmp dword [ebp - 0x1008], eax
ja 0x1001df02
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001deb0
test ebx, ebx
je 0x1001dee9
cmp ecx, edi
jae 0x1001dee9
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001deca
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001ded6
cmp byte [ecx + 1], 0xa
jne 0x1001ded6
inc ecx
jmp 0x1001ded6
movzx eax, al
movsx eax, byte [eax + 0x10038340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001deb0
cmp edx, ebx
jne 0x1001deb0
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001df07
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1000ca72
leave
ret
Function at 0x1001e9f1
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 + 0x100399f0]
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 0x1001ea31
cmp byte [ebx], 0xa
jne 0x1001ea31
or byte [edi + eax + 0x28], 4
jmp 0x1001ea36
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 0x1001eb35
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001eb18
inc eax
cmp dl, 0xd
je 0x1001ea62
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001ea88
cmp eax, ecx
jae 0x1001ea96
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 0x1001ea4a
jmp 0x1001eb35
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 0x1001eb13
cmp dword [ebp - 0x10], 0
je 0x1001eb13
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100399f0]
test byte [eax + edi + 0x28], 0x48
je 0x1001eaed
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001ead8
mov byte [esi], dl
jmp 0x1001eae9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100399f0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001eb35
cmp byte [ebp - 1], 0xa
jne 0x1001eafc
cmp esi, ebx
jne 0x1001eafc
mov byte [esi], 0xa
jmp 0x1001eb34
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001f577
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001eb35
mov byte [esi], 0xd
jmp 0x1001eb34
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100399f0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001eb32
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001eb35
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret