joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10145c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10240d25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
push edi
mov esi, ecx
call fcn.101468a0
xorps xmm0, xmm0
mov dword [ebp - 0x10], 8
xor eax, eax
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.1012b730
add esp, 8
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x20], 7
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10145d58
cmp dword [ebp - 0x14], 0xb
jne 0x10145d58
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x10145d42
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10145d38
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10145d81
push ecx
push edx
call fcn.10123601
add esp, 8
mov ecx, dword [ebp - 0xc]
mov edx, edi
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.101465a0
push 0
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.10127550
push 0x102e5da8
lea eax, [ebp - 0x78]
push eax
call fcn.1014a5a6
call fcn.10154fbf
int3

Function at 0x10145d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10240d55
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push esi
mov esi, ecx
call fcn.101468a0
xorps xmm0, xmm0
mov dword [ebp - 0x10], 4
xor eax, eax
mov dword [ebp - 0x20], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 8]
call fcn.1012b730
add esp, 8
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10145e67
mov eax, dword [ebp - 0x14]
cmp eax, 4
je 0x10145e1b
cmp eax, 5
jne 0x10145e67
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x10145e54
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10145e4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10145e92
push ecx
push edx
call fcn.10123601
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call fcn.101465a0
push 0
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.10127550
push 0x102e5da8
lea eax, [ebp - 0x74]
push eax
call fcn.1014a5a6
call fcn.10154fbf
int3
Function at 0x10146a20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10240e75
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
mov esi, ecx
call fcn.101468a0
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x28], 7
movups xmmword [ebp - 0x3c], xmm0
mov word [ebp - 0x3c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call fcn.1012b730
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x10], 7
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 0xc]
call fcn.1012b730
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
add esp, 0x10
cmp dword [ebp - 0x10], 7
cmova ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x28], 7
lea edx, [eax*2 + 2]
push edx
push ecx
push 1
lea eax, [ebp - 0x3c]
cmova eax, dword [ebp - 0x3c]
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10146b64
mov ecx, dword [ebp - 0x10]
pop esi
cmp ecx, 7
jbe 0x10146b0a
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10146b00
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10146b6e
push ecx
push edx
call fcn.10123601
add esp, 8
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp ecx, 7
jbe 0x10146b54
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10146b4a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10146b6e
push ecx
push edx
call fcn.10123601
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 8]
mov ecx, esi
call fcn.10146530
call fcn.10154fbf
int3
Function at 0x10146b80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10240ea5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push esi
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.101468a0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x10146d3f
xor esi, esi
mov dword [ebp - 0x14], 0x100
cmp dword [ebp - 0x10], esi
jbe 0x10146d3f
push edi
mov edi, dword [ebp + 8]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24c]
push eax
mov eax, dword [ebp - 0x1c]
push esi
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10146d2d
mov dword [ebp - 0x3c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x24c]
movups xmmword [ebp - 0x4c], xmm0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10146c36
sub eax, edx
lea ecx, [ebp - 0x4c]
sar eax, 1
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.1004d150
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.1012b8d0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x34]
add esp, 8
push ecx
cmp eax, dword [edi + 8]
je 0x10146ca2
mov ecx, eax
call fcn.100548f0
add dword [edi + 4], 0x18
jmp 0x10146caa
push eax
mov ecx, edi
call fcn.100638b0
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x10146cde
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10146cd4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10146d50
push ecx
push edx
call fcn.10123601
add esp, 8
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x10146d2d
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10146d23
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10146d50
push ecx
push edx
call fcn.10123601
add esp, 8
inc esi
mov dword [ebp - 0x14], 0x100
cmp esi, dword [ebp - 0x10]
jb 0x10146bf8
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.10154fbf
int3
Function at 0x10146d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10240ed5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
call fcn.101468a0
xorps xmm0, xmm0
mov dword [ebp - 0x10], 0
xor eax, eax
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
call fcn.1012b730
add esp, 8
lea ecx, [ebp - 0x14]
cmp dword [ebp - 0x18], 7
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10146e28
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
cmp ecx, 7
jbe 0x10146e15
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10146e0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10146e53
push ecx
push edx
call fcn.10123601
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.101465a0
push 0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.10127550
push 0x102e5da8
lea eax, [ebp - 0x70]
push eax
call fcn.1014a5a6
call fcn.10154fbf
int3
Function at 0x10146e60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10240f05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push esi
mov esi, ecx
mov dword [ebp - 0x18], esi
call fcn.101468a0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x10147019
xor esi, esi
mov dword [ebp - 0x14], 0x100
cmp dword [ebp - 0x10], esi
jbe 0x10147019
push edi
mov edi, dword [ebp + 8]
nop
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x248]
push eax
mov eax, dword [ebp - 0x18]
push esi
push dword [eax + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10147007
mov dword [ebp - 0x38], eax
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x248]
movups xmmword [ebp - 0x48], xmm0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10146f10
sub eax, edx
lea ecx, [ebp - 0x48]
sar eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.1004d150
xorps xmm0, xmm0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1012b8d0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x30]
add esp, 8
push ecx
cmp eax, dword [edi + 8]
je 0x10146f7c
mov ecx, eax
call fcn.100548f0
add dword [edi + 4], 0x18
jmp 0x10146f84
push eax
mov ecx, edi
call fcn.100638b0
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x10146fb8
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10146fae
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1014702a
push ecx
push edx
call fcn.10123601
add esp, 8
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x10147007
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10146ffd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1014702a
push ecx
push edx
call fcn.10123601
add esp, 8
inc esi
mov dword [ebp - 0x14], 0x100
cmp esi, dword [ebp - 0x10]
jb 0x10146ed0
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.10154fbf
int3
Function at 0x101490c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1024017d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
push edi
push 8
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.101231a2
mov edi, eax
add esp, 4
test edi, edi
je 0x10149160
push 1
mov dword [ebp - 4], 0
call fcn.1010a9ef
add esp, 4
mov dword [edi + 4], eax
jmp 0x10149162
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.10055660
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ecx
mov dword [ebp - 4], 1
mov dword [esi], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
call fcn.101239b7
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
lea ecx, [eax + 4]
mov eax, dword [esi + 0xc]
pop edi
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1015ad74
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10123c70
mov eax, dword [0x102ec100]
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.1016b850
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1015adb6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1015af12
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10123bc0
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 + 0x102f3680]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1016d316
mov ecx, dword [esi*4 + 0x102f3680]
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 0x1015af0b
cmp eax, dword [ecx + edi + 0x24]
jne 0x1015af0b
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 0x1015af0b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1016d316
add esp, 0x14
test edx, edx
jl 0x1015af0b
jg 0x1015ae81
test eax, eax
jb 0x1015af0b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1015af0b
jl 0x1015ae9b
cmp dword [ebp - 0x1008], eax
ja 0x1015af0b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1015aeb9
test ebx, ebx
je 0x1015aef2
cmp ecx, edi
jae 0x1015aef2
mov al, byte [ecx]
cmp al, 0xd
jne 0x1015aed3
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1015aedf
cmp byte [ecx + 1], 0xa
jne 0x1015aedf
inc ecx
jmp 0x1015aedf
movzx eax, al
movsx eax, byte [eax + 0x102ec8b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1015aeb9
cmp edx, ebx
jne 0x1015aeb9
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1015af10
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10123194
leave
ret

Function at 0x10165e68
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10279344
push 0x1027933c
push str.FlsAlloc
push 0x1f
call fcn.1016a2e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1016a4f1
push dword [ebp + 8]
mov ecx, esi
call dword [0x10243704]
call esi
jmp 0x1016a4f7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1016a53b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10279354
push 0x1027934c
push str.FlsGetValue
push 0x21
call fcn.1016a2e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1016a572
push dword [ebp + 8]
mov ecx, esi
call dword [0x10243704]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1016a57a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1027935c
push 0x10279354
push str.FlsSetValue
push 0x22
call fcn.1016a2e8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1016a5b4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10243704]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1016c3d0
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 + 0x102f3680]
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 0x1016c410
cmp byte [ebx], 0xa
jne 0x1016c410
or byte [edi + eax + 0x28], 4
jmp 0x1016c415
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 0x1016c514
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1016c4f7
inc eax
cmp dl, 0xd
je 0x1016c441
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1016c467
cmp eax, ecx
jae 0x1016c475
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 0x1016c429
jmp 0x1016c514
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 0x1016c4f2
cmp dword [ebp - 0x10], 0
je 0x1016c4f2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x102f3680]
test byte [eax + edi + 0x28], 0x48
je 0x1016c4cc
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1016c4b7
mov byte [esi], dl
jmp 0x1016c4c8
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x102f3680]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1016c514
cmp byte [ebp - 1], 0xa
jne 0x1016c4db
cmp esi, ebx
jne 0x1016c4db
mov byte [esi], 0xa
jmp 0x1016c513
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1016d334
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1016c514
mov byte [esi], 0xd
jmp 0x1016c513
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x102f3680]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1016c511
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1016c514
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1016c51d
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 + 0x102f3680]
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 0x1016c563
cmp word [ebx], dx
jne 0x1016c563
or byte [eax + edi + 0x28], 4
jmp 0x1016c568
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 0x1016c6cb
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 0x1016c6ab
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1016c5a9
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1016c5df
cmp eax, edx
jae 0x1016c5ed
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 0x1016c584
jmp 0x1016c6cb
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 0x1016c6a6
cmp dword [ebp - 0x18], 0
je 0x1016c6a6
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x102f3680]
test byte [eax + edi + 0x28], 0x48
je 0x1016c67c
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 0x1016c640
mov word [esi], cx
jmp 0x1016c677
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x102f3680]
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 + 0x102f3680]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x102f3680]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1016c6cb
pop eax
cmp word [ebp - 4], ax
jne 0x1016c68c
cmp esi, ebx
jne 0x1016c68c
mov word [esi], ax
jmp 0x1016c6c8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1016d334
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1016c6cb
push 0xd
pop eax
jmp 0x1016c687
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x102f3680]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1016c6c5
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1016c6cb
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret