joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100605c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d7ddd
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x10106024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [ebp + 8]
cmp eax, dword [edi + 4]
je 0x10060783
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10060605
mov eax, dword [esi]
push eax
push str._event_:_Loading_settings_with_name__s._n
call fcn.100a0980
mov ecx, dword [0x101149e4]
mov eax, 0x7fffffff
mov ebx, dword [esi + 0x10]
add ecx, 0x28
add esp, 8
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, ebx
jb 0x100607a1
cmp dword [ecx + 0x14], 0x10
jb 0x10060639
mov ecx, dword [ecx]
cmp dword [esi + 0x14], 0x10
jb 0x10060641
mov esi, dword [esi]
push ebx
push esi
push edx
push ecx
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.10029d20
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [edi + 0x30], 0
mov ebx, dword [edi + 4]
mov esi, dword [edi]
mov dword [ebp - 0x30], ebx
cmp esi, ebx
je 0x1006069b
nop
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
push esi
call fcn.100603c0
add esi, 0x40
cmp esi, ebx
jne 0x10060680
mov ebx, dword [edi + 4]
mov esi, dword [edi]
mov dword [ebp - 0x30], ebx
mov dword [edi + 0x30], 1
cmp esi, ebx
je 0x10060753
nop word [eax + eax]
mov ebx, dword [ebp - 0x1c]
mov eax, 0x7fffffff
mov edx, dword [esi + 0x38]
sub eax, ebx
cmp eax, edx
jb 0x100607a1
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
lea eax, [esi + 0x28]
cmovae ecx, dword [ebp - 0x2c]
cmp dword [esi + 0x3c], 0x10
jb 0x100606db
mov eax, dword [eax]
push edx
push eax
push ebx
push ecx
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x4c]
call fcn.10029d20
cmp dword [ebp - 0x38], 0x10
lea eax, [ebp - 0x4c]
push 0
cmovae eax, dword [ebp - 0x4c]
push eax
call fcn.100be3b8
mov edx, dword [ebp - 0x38]
add esp, 8
cmp eax, 0xffffffff
setne bl
cmp edx, 0x10
jb 0x10060737
mov ecx, dword [ebp - 0x4c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1006072d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100607a6
push edx
push ecx
call fcn.100aa01d
add esp, 8
test bl, bl
jne 0x10060747
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
push esi
call fcn.100603c0
add esi, 0x40
cmp esi, dword [ebp - 0x30]
jne 0x100606b0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10060783
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10060779
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100607a6
push edx
push ecx
call fcn.100aa01d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100aa00f
mov esp, ebp
pop ebp
ret 4
call fcn.10029f50
call fcn.100bb40e
int3
Function at 0x100607b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d7e1d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10106024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov esi, dword [ebp + 8]
cmp eax, dword [edi + 4]
je 0x100608b3
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x100607f5
mov eax, dword [esi]
push eax
push str._event_:_Saving_settings_with_name__s._n
call fcn.100a0980
mov ecx, dword [0x101149e4]
mov eax, 0x7fffffff
mov ebx, dword [esi + 0x10]
add ecx, 0x28
add esp, 8
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, ebx
jb 0x100608d1
cmp dword [ecx + 0x14], 0x10
jb 0x10060829
mov ecx, dword [ecx]
cmp dword [esi + 0x14], 0x10
jb 0x10060831
mov esi, dword [esi]
push ebx
push esi
push edx
push ecx
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
call fcn.10029d20
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [edi + 0x30], 1
mov ebx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ebx
je 0x10060883
nop dword [eax]
lea eax, [ebp - 0x2c]
mov ecx, edi
push eax
push esi
call fcn.100603c0
add esi, 0x40
cmp esi, ebx
jne 0x10060870
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x100608b3
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100608a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100608d6
push edx
push ecx
call fcn.100aa01d
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100aa00f
mov esp, ebp
pop ebp
ret 4
call fcn.10029f50
call fcn.100bb40e
int3
Function at 0x100800d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d8c97
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x10106024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
jne 0x100801a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100801a1
push 0xf8
call fcn.100aa6d7
mov esi, eax
mov dword [ebp + 0xc], esi
push 0xf8
push 0
push esi
mov dword [ebp - 4], 0
call fcn.100ac370
add esp, 0x10
mov ecx, esi
call fcn.1005ea80
mov esi, dword [0x101149e4]
mov dword [0x101149e4], eax
test esi, esi
je 0x10080164
mov ecx, esi
call fcn.1005ef60
push 0xf8
push esi
call fcn.100aa01d
mov eax, dword [0x101149e4]
add esp, 8
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x100801a1
cmp ecx, 0xffffffff
je 0x100801a1
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
push 0x1007ffc0
push 0
push 0
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1008abe0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d98d6
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x10106024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
push 0x40
mov dword [ebp - 0x1c], eax
call fcn.100aa6d7
mov edi, eax
mov dword [ebp - 0x18], edi
push 0x40
push 0
push edi
mov dword [ebp - 4], 0
call fcn.100ac370
push 0x2c
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.100aa6d7
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [edi], eax
mov dword [edi + 8], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0xf
mov byte [edi + 8], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0xf
mov byte [edi + 0x20], 0
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 3
push 1
mov dword [ebp - 0x10], esi
call fcn.100aa6d7
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], edi
mov edi, eax
mov dword [ebp - 4], 4
push 1
lea esi, [edi + 4]
mov dword [ebp - 0x10], esi
call fcn.100aa6d7
mov dword [esi], eax
lea esi, [edi + 8]
mov byte [ebp - 4], 5
push 1
mov dword [ebp - 0x10], esi
call fcn.100aa6d7
mov dword [esi], eax
lea esi, [edi + 0xc]
mov byte [ebp - 4], 6
push 0x14
mov dword [ebp - 0x10], esi
call fcn.100aa6d7
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [esi], eax
lea esi, [edi + 0x10]
mov byte [ebp - 4], 7
push 0x10
mov dword [ebp - 0x10], esi
call fcn.100aa6d7
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [esi], eax
lea esi, [edi + 0x14]
mov byte [ebp - 4], 8
push 1
mov dword [ebp - 0x10], esi
call fcn.100aa6d7
mov dword [esi], eax
add esp, 0x2c
mov byte [edi + 0x18], 1
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
call fcn.1008aa60
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 0x100a1cc0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100da84d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10106024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100aa6d7
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100a950c
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
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 eax, dword [ebp + 8]
mov dword [ebp - 4], 1
mov ebx, dword [ebp - 0x10]
mov dword [ebx], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmp dword [eax + 0x14], 0x10
mov esi, dword [eax + 0x10]
jb 0x100a1d8f
mov eax, dword [eax]
mov dword [ebp + 8], eax
xor eax, eax
cmp esi, 0x7fffffff
ja 0x100a1e30
test esi, esi
je 0x100a1e14
cmp esi, 0x1000
jb 0x100a1dcc
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x100a1e35
push eax
call fcn.100aa6d7
add esp, 4
test eax, eax
je 0x100a1e3a
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x100a1dd7
push esi
call fcn.100aa6d7
add esp, 4
mov edi, eax
push esi
push dword [ebp + 8]
push edi
call fcn.100abd30
mov eax, dword [ebx + 0xc]
lea ecx, [esi + edi]
mov dword [ebx + 0x38], ecx
add esp, 0xc
mov dword [eax], edi
mov eax, dword [ebx + 0x1c]
mov dword [eax], edi
mov eax, dword [ebx + 0x2c]
mov dword [eax], esi
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x38]
sub ecx, edi
mov dword [eax], edi
mov eax, dword [ebx + 0x20]
mov dword [eax], edi
mov eax, dword [ebx + 0x30]
mov dword [eax], ecx
mov eax, 1
jmp 0x100a1e17
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
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 8
call fcn.100a8fa9
call fcn.10029f30
call fcn.100bb40e
int3
Function at 0x100a5660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [0x10119214]
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, dword [ebx + 4]
mov ecx, ebp
mov edx, dword [ebx]
sub ecx, edx
sar ecx, 3
push edi
mov edi, dword [esi + 0x14]
test ecx, ecx
je 0x100a56a6
cmp dword [edx + eax*8], edi
je 0x100a568f
inc eax
cmp eax, ecx
jb 0x100a5683
jmp 0x100a56a6
lea ecx, [edx + eax*8]
lea eax, [ecx + 8]
sub ebp, eax
push ebp
push eax
push ecx
call fcn.100abd30
add esp, 0xc
add dword [ebx + 4], 0xfffffff8
push 0xa0
lea eax, [esi + 0x8c]
mov dword [esi], 2
push 0
push eax
mov word [esi + 4], 0
mov dword [esi + 7], 0x100
mov dword [esi + 0xb], 0
mov dword [esi + 0xf], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
call fcn.100ac370
mov dword [esi + 0x12c], 0
lea eax, [esi + 0x474]
mov dword [esi + 0x130], 0
lea edx, [esi + 0xe54]
mov dword [esi + 0x134], 0
lea ecx, [esi + 0x188]
mov dword [esi + 0x138], 0
add esp, 0xc
mov dword [esi + 0x13c], 0
mov edi, 0x15
mov dword [esi + 0x140], 0
mov dword [esi + 0x144], 0
mov dword [esi + 0x148], 0
mov dword [esi + 0x14c], 0
mov dword [esi + 0x150], 0
mov dword [esi + 0x154], 0
mov dword [esi + 0x158], 0
mov dword [esi + 0x15c], 0
mov dword [esi + 0x160], 0
mov dword [esi + 0x164], 0
mov dword [esi + 0x174], 0xc1800000
mov dword [esi + 0x178], 0xc1800000
mov dword [esi + 0x17c], 0xc2100000
mov dword [esi + 0x168], 0x41800000
mov dword [esi + 0x16c], 0x41800000
mov dword [esi + 0x170], 0x42100000
mov dword [ecx - 8], 0
lea esi, [eax + 0x60]
mov dword [ecx - 4], 0
mov dword [ecx], 0
mov dword [ecx + 0xf4], 0
mov dword [ecx + 0xf8], 0
mov dword [ecx + 0xfc], 0
mov dword [ecx + 0x1f0], 0
mov dword [ecx + 0x1f4], 0
mov dword [ecx + 0x1f8], 0
mov dword [ecx + 0xacc], 0
mov dword [ecx + 0xad0], 0
mov dword [ecx + 0xad4], 0
mov dword [ecx + 0xbc8], 0
mov dword [ecx + 0xbcc], 0
mov dword [ecx + 0xbd0], 0
mov dword [edx - 8], 0
mov dword [edx - 4], 0
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov dword [edx + 0x1c], 0
mov dword [edx + 0x20], 0
mov dword [edx + 0x24], 0
cmp eax, esi
je 0x100a599b
nop dword [eax]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
add eax, 0xc
cmp eax, esi
jne 0x100a5980
add ecx, 0xc
add edx, 0x30
mov eax, esi
sub edi, 1
jne 0x100a5893
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x100b5411
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100ab410
mov eax, dword [0x10106024]
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.100c2d50
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100b5453
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100b55af
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100d27d0
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 + 0x1010e058]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100c45c9
mov ecx, dword [esi*4 + 0x1010e058]
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 0x100b55a8
cmp eax, dword [ecx + edi + 0x24]
jne 0x100b55a8
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 0x100b55a8
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100c45c9
add esp, 0x14
test edx, edx
jl 0x100b55a8
jg 0x100b551e
test eax, eax
jb 0x100b55a8
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100b55a8
jl 0x100b5538
cmp dword [ebp - 0x1008], eax
ja 0x100b55a8
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100b5556
test ebx, ebx
je 0x100b558f
cmp ecx, edi
jae 0x100b558f
mov al, byte [ecx]
cmp al, 0xd
jne 0x100b5570
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100b557c
cmp byte [ecx + 1], 0xa
jne 0x100b557c
inc ecx
jmp 0x100b557c
movzx eax, al
movsx eax, byte [eax + 0x10106298]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100b5556
cmp edx, ebx
jne 0x100b5556
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100b55ad
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100aa00f
leave
ret

Function at 0x100be039
Capabilities:
Parse pe header

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

Function at 0x100c3ecf
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100c3e51
Function at 0x100c4645
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 + 0x1010e058]
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 0x100c4685
cmp byte [ebx], 0xa
jne 0x100c4685
or byte [edi + eax + 0x28], 4
jmp 0x100c468a
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 0x100c4789
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100c476c
inc eax
cmp dl, 0xd
je 0x100c46b6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100c46dc
cmp eax, ecx
jae 0x100c46ea
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 0x100c469e
jmp 0x100c4789
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 0x100c4767
cmp dword [ebp - 0x10], 0
je 0x100c4767
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1010e058]
test byte [eax + edi + 0x28], 0x48
je 0x100c4741
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100c472c
mov byte [esi], dl
jmp 0x100c473d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1010e058]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100c4789
cmp byte [ebp - 1], 0xa
jne 0x100c4750
cmp esi, ebx
jne 0x100c4750
mov byte [esi], 0xa
jmp 0x100c4788
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100c45e7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100c4789
mov byte [esi], 0xd
jmp 0x100c4788
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1010e058]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100c4786
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100c4789
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100c4792
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 + 0x1010e058]
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 0x100c47d8
cmp word [ebx], dx
jne 0x100c47d8
or byte [eax + edi + 0x28], 4
jmp 0x100c47dd
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 0x100c4940
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 0x100c4920
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100c481e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100c4854
cmp eax, edx
jae 0x100c4862
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 0x100c47f9
jmp 0x100c4940
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 0x100c491b
cmp dword [ebp - 0x18], 0
je 0x100c491b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1010e058]
test byte [eax + edi + 0x28], 0x48
je 0x100c48f1
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 0x100c48b5
mov word [esi], cx
jmp 0x100c48ec
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1010e058]
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 + 0x1010e058]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1010e058]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100c4940
pop eax
cmp word [ebp - 4], ax
jne 0x100c4901
cmp esi, ebx
jne 0x100c4901
mov word [esi], ax
jmp 0x100c493d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100c45e7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100c4940
push 0xd
pop eax
jmp 0x100c48fc
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1010e058]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100c493a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100c4940
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 0x100c5b11
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100e0a30
push 0x100e0a28
push str.FlsAlloc
push 0x1f
call fcn.100c58fc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100c5b45
push dword [ebp + 8]
mov ecx, esi
call dword [0x100dc2b4]
call esi
jmp 0x100c5b4b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100c5b8f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100e0a40
push 0x100e0a38
push str.FlsGetValue
push 0x21
call fcn.100c58fc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100c5bc6
push dword [ebp + 8]
mov ecx, esi
call dword [0x100dc2b4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100c5bce
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100e0a48
push 0x100e0a40
push str.FlsSetValue
push 0x22
call fcn.100c58fc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100c5c08
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100dc2b4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]