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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e4ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], 0
call fcn.10080780
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
xorps xmm0, xmm0
mov dword [ebp - 0x14], 1
xor eax, eax
mov dword [ebp - 0x24], 0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 1
push eax
push dword [ebp + 0xc]
call fcn.1006a550
add esp, 8
lea ecx, [ebp - 0x10]
cmp dword [ebp - 0x20], 7
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1007fb28
cmp dword [ebp - 0x18], 3
jne 0x1007fb28
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x1007fade
mov eax, dword [edi + 4]
mov edx, dword [edi]
sub eax, edx
cmp ecx, eax
jae 0x1007fa91
lea eax, [edx + ecx]
mov dword [edi + 4], eax
jmp 0x1007fabf
jbe 0x1007fabf
mov eax, dword [edi + 8]
sub eax, edx
cmp ecx, eax
jbe 0x1007faaa
lea eax, [ebp + 0xf]
push eax
push ecx
mov ecx, edi
call fcn.1007eee0
jmp 0x1007fabf
lea esi, [edx + ecx]
push esi
push dword [edi + 4]
call fcn.1005d320
mov dword [edi + 4], esi
add esp, 8
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x20], 7
lea ecx, [ebp - 0x10]
push ecx
push dword [edi]
lea eax, [ebp - 0x34]
cmova eax, dword [ebp - 0x34]
push 0
push 0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x20]
cmp ecx, 7
jbe 0x1007fb14
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007fb0a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007fb53
push ecx
push edx
call fcn.100632cf
add esp, 8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call fcn.10080480
push 0
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 2
call fcn.10066e20
push 0x101f7b64
lea eax, [ebp - 0x78]
push eax
call fcn.10084766
call fcn.1008eccf
int3
Function at 0x1007fb60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e4d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push esi
push edi
mov esi, ecx
call fcn.10080780
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.1006a550
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 0x1007fc38
cmp dword [ebp - 0x14], 0xb
jne 0x1007fc38
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x1007fc22
mov edx, dword [ebp - 0x34]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007fc18
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007fc61
push ecx
push edx
call fcn.100632cf
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.10080480
push 0
push eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 1
call fcn.10066e20
push 0x101f7b64
lea eax, [ebp - 0x78]
push eax
call fcn.10084766
call fcn.1008eccf
int3

Function at 0x1007fc70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e505
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push esi
mov esi, ecx
call fcn.10080780
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.1006a550
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 0x1007fd47
mov eax, dword [ebp - 0x14]
cmp eax, 4
je 0x1007fcfb
cmp eax, 5
jne 0x1007fd47
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
cmp ecx, 7
jbe 0x1007fd34
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007fd2a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007fd72
push ecx
push edx
call fcn.100632cf
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.10080480
push 0
push eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.10066e20
push 0x101f7b64
lea eax, [ebp - 0x74]
push eax
call fcn.10084766
call fcn.1008eccf
int3
Function at 0x10080900
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e625
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
mov esi, ecx
call fcn.10080780
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.1006a550
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.1006a550
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 0x10080a44
mov ecx, dword [ebp - 0x10]
pop esi
cmp ecx, 7
jbe 0x100809ea
mov edx, dword [ebp - 0x24]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100809e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10080a4e
push ecx
push edx
call fcn.100632cf
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 0x10080a34
mov edx, dword [ebp - 0x3c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10080a2a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10080a4e
push ecx
push edx
call fcn.100632cf
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.10080410
call fcn.1008eccf
int3
Function at 0x10080a60
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e655
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.10080780
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 0x10080c1f
xor esi, esi
mov dword [ebp - 0x14], 0x100
cmp dword [ebp - 0x10], esi
jbe 0x10080c1f
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 0x10080c0d
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 0x10080b16
sub eax, edx
lea ecx, [ebp - 0x4c]
sar eax, 1
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.1004b630
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.1006a6f0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x34]
add esp, 8
push ecx
cmp eax, dword [edi + 8]
je 0x10080b82
mov ecx, eax
call fcn.10052820
add dword [edi + 4], 0x18
jmp 0x10080b8a
push eax
mov ecx, edi
call fcn.10057040
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x10080bbe
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10080bb4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10080c30
push ecx
push edx
call fcn.100632cf
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 0x10080c0d
mov edx, dword [ebp - 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10080c03
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10080c30
push ecx
push edx
call fcn.100632cf
add esp, 8
inc esi
mov dword [ebp - 0x14], 0x100
cmp esi, dword [ebp - 0x10]
jb 0x10080ad8
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.1008eccf
int3
Function at 0x10080c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e685
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
call fcn.10080780
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.1006a550
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 0x10080d08
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
cmp ecx, 7
jbe 0x10080cf5
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10080ceb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10080d33
push ecx
push edx
call fcn.100632cf
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.10080480
push 0
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.10066e20
push 0x101f7b64
lea eax, [ebp - 0x70]
push eax
call fcn.10084766
call fcn.1008eccf
int3
Function at 0x10080d40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e6b5
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.10080780
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 0x10080ef9
xor esi, esi
mov dword [ebp - 0x14], 0x100
cmp dword [ebp - 0x10], esi
jbe 0x10080ef9
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 0x10080ee7
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 0x10080df0
sub eax, edx
lea ecx, [ebp - 0x48]
sar eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.1004b630
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.1006a6f0
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x30]
add esp, 8
push ecx
cmp eax, dword [edi + 8]
je 0x10080e5c
mov ecx, eax
call fcn.10052820
add dword [edi + 4], 0x18
jmp 0x10080e64
push eax
mov ecx, edi
call fcn.10057040
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x10080e98
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10080e8e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10080f0a
push ecx
push edx
call fcn.100632cf
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 0x10080ee7
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10080edd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10080f0a
push ecx
push edx
call fcn.100632cf
add esp, 8
inc esi
mov dword [ebp - 0x14], 0x100
cmp esi, dword [ebp - 0x10]
jb 0x10080db0
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
call fcn.1008eccf
int3
Function at 0x10083080
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016e9cd
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.10062e70
mov edi, eax
add esp, 4
test edi, edi
je 0x10083120
push 1
mov dword [ebp - 4], 0
call fcn.10060c2f
add esp, 4
mov dword [edi + 4], eax
jmp 0x10083122
xor edi, edi
mov ecx, esi
mov dword [esi + 0x34], edi
call fcn.100533a0
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.10063685
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 0x1009455c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10063940
mov eax, dword [0x101fc0c0]
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.100a08fc
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1009459e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100946fa
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10063890
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 + 0x10200f68]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100a23c4
mov ecx, dword [esi*4 + 0x10200f68]
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 0x100946f3
cmp eax, dword [ecx + edi + 0x24]
jne 0x100946f3
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 0x100946f3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100a23c4
add esp, 0x14
test edx, edx
jl 0x100946f3
jg 0x10094669
test eax, eax
jb 0x100946f3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100946f3
jl 0x10094683
cmp dword [ebp - 0x1008], eax
ja 0x100946f3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100946a1
test ebx, ebx
je 0x100946da
cmp ecx, edi
jae 0x100946da
mov al, byte [ecx]
cmp al, 0xd
jne 0x100946bb
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100946c7
cmp byte [ecx + 1], 0xa
jne 0x100946c7
inc ecx
jmp 0x100946c7
movzx eax, al
movsx eax, byte [eax + 0x101fc878]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100946a1
cmp edx, ebx
jne 0x100946a1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100946f8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10062e62
leave
ret

Function at 0x1009b44a
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10199860
push 0x10199858
push str.FlsAlloc
push 0x1f
call fcn.1009f49f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009f668
push dword [ebp + 8]
mov ecx, esi
call dword [0x10170288]
call esi
jmp 0x1009f66e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1009f6b2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10199870
push 0x10199868
push str.FlsGetValue
push 0x21
call fcn.1009f49f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009f6e9
push dword [ebp + 8]
mov ecx, esi
call dword [0x10170288]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1009f6f1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10199878
push 0x10199870
push str.FlsSetValue
push 0x22
call fcn.1009f49f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1009f72b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10170288]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100a147e
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 + 0x10200f68]
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 0x100a14be
cmp byte [ebx], 0xa
jne 0x100a14be
or byte [edi + eax + 0x28], 4
jmp 0x100a14c3
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 0x100a15c2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100a15a5
inc eax
cmp dl, 0xd
je 0x100a14ef
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100a1515
cmp eax, ecx
jae 0x100a1523
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 0x100a14d7
jmp 0x100a15c2
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 0x100a15a0
cmp dword [ebp - 0x10], 0
je 0x100a15a0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10200f68]
test byte [eax + edi + 0x28], 0x48
je 0x100a157a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100a1565
mov byte [esi], dl
jmp 0x100a1576
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10200f68]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100a15c2
cmp byte [ebp - 1], 0xa
jne 0x100a1589
cmp esi, ebx
jne 0x100a1589
mov byte [esi], 0xa
jmp 0x100a15c1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100a23e2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100a15c2
mov byte [esi], 0xd
jmp 0x100a15c1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10200f68]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100a15bf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100a15c2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret