joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10088f80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10122094]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], eax
call fcn.10036be0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa0
mov dword [ebp - 0x28], eax
call esi
test al, al
js 0x10088fc3
push 0xa1
call esi
test al, al
js 0x10088fc3
xor bl, bl
jmp 0x10088fc5
mov bl, 1
push 0xa2
mov byte [ebp - 0x24], bl
call esi
test al, al
js 0x10088fe2
push 0xa3
call esi
test al, al
js 0x10088fe2
xor al, al
jmp 0x10088fe4
mov al, 1
cmp byte [ebp + 8], 0
mov byte [ebp - 0x20], al
jne 0x10089143
cmp dword [ebp - 0x28], 0
je 0x10089143
test bl, bl
jne 0x10089007
test al, al
je 0x10089143
mov ecx, edi
call fcn.100886f0
test al, al
je 0x10089143
mov ecx, 1
call fcn.100557d0
mov esi, eax
mov ecx, 0x19
mov dword [ebp - 0xc], esi
call fcn.100557d0
mov ecx, 0x1a
mov ebx, eax
call fcn.100557d0
mov dword [ebp - 0x10], eax
test esi, esi
jne 0x1008904e
test ebx, ebx
jne 0x1008904e
test eax, eax
je 0x10089143
mov edx, dword [edi + 0x44]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
cmp eax, dword [edx + 4]
jb 0x1008907e
cmp eax, dword [edx + 8]
ja 0x1008907e
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x14], ecx
cmp esi, ecx
jb 0x1008907e
cmp esi, dword [edx + 0x10]
ja 0x1008907e
sub eax, dword [edx + 4]
sub esi, ecx
mov dword [ebp - 0x10], 0
jmp 0x100890f6
test ebx, ebx
je 0x100890b8
mov ecx, dword [edi + 0x40]
mov esi, dword [ecx + 4]
cmp eax, esi
mov dword [ebp - 0x14], esi
mov esi, dword [ebp + 0x10]
jb 0x100890b8
cmp eax, dword [ecx + 8]
ja 0x100890b8
mov edx, dword [ecx + 0xc]
cmp esi, edx
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 0x44]
jb 0x100890b8
cmp esi, dword [ecx + 0x10]
ja 0x100890b8
sub eax, dword [ebp - 0x14]
sub esi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 4
jmp 0x100890f6
cmp dword [ebp - 0x10], 0
je 0x10089143
mov ecx, dword [edi + 0x48]
mov esi, dword [ecx + 4]
cmp eax, esi
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp + 0x10]
jb 0x10089143
cmp eax, dword [ecx + 8]
ja 0x10089143
mov edx, dword [ecx + 0xc]
cmp esi, edx
mov dword [ebp - 0x14], edx
mov edx, dword [edi + 0x44]
jb 0x10089143
cmp esi, dword [ecx + 0x10]
ja 0x10089143
sub eax, dword [ebp - 0x1c]
sub esi, dword [ebp - 0x14]
mov dword [ebp - 0x10], 3
movzx ecx, byte [edx + 0x15]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x18], eax
mov eax, esi
div ecx
push dword [ebp - 0xc]
mov ecx, edi
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x28]
call fcn.100887c0
test al, al
je 0x1008913d
mov eax, dword [edi + 0x60]
mov dword [ebp - 0xb], eax
lea eax, [ebp - 0xc]
push eax
push 1
push 5
mov byte [ebp - 0xc], 0x19
call fcn.1003b7d0
mov eax, dword [ebp - 0x2c]
mov byte [eax], 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100b4e9c
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10090d90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov dword [ebp - 0xc], ecx
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x80
jne 0x10090dcc
push 0xa3
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x80
jne 0x10090dcc
mov dword [ebp - 0x10], 0
jmp 0x10090dd3
mov dword [ebp - 0x10], 1
mov dl, byte [ebp - 0x10]
mov byte [ebp - 1], dl
movzx eax, byte [ebp + 0xc]
cmp eax, 0x52
jne 0x10090dea
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x10090df6
movzx edx, byte [ebp + 0xc]
mov eax, dword [ebp - 0xc]
cmp edx, dword [eax + 0x34]
jne 0x10090e0e
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
movzx edx, byte [ebp + 8]
test edx, edx
je 0x10090e09
call fcn.1003e610
jmp 0x10090eb8
mov eax, dword [ebp - 0xc]
add eax, 0x1b8
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.10079170
jmp 0x10090e35
push 0
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 8]
call fcn.10078e90
mov eax, dword [ebp - 0xc]
add eax, 0x1b8
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.10078e80
push eax
lea ecx, [ebp - 8]
call fcn.10078df0
movzx edx, al
test edx, edx
je 0x10090eb8
movzx esi, byte [ebp + 0xc]
lea ecx, [ebp - 8]
call fcn.10078ef0
cmp esi, dword [eax + 0x18]
jne 0x10090eb3
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x10090eb1
lea ecx, [ebp - 8]
call fcn.10078ef0
movzx edx, byte [eax + 0x1c]
test edx, edx
jne 0x10090e94
mov dword [ebp - 0x14], 1
jmp 0x10090e9b
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.10078ef0
mov cl, byte [ebp - 0x14]
mov byte [eax + 0x1c], cl
mov ecx, dword [ebp - 0xc]
call fcn.1008dac0
jmp 0x10090eb8
jmp 0x10090e27
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10094a10
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
push esi
lea eax, [ebp - 8]
push eax
call fcn.1007a220
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
test ecx, ecx
jne 0x10094a69
mov ecx, dword [edi + 4]
pop edi
mov dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10094d80
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e6865
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10122094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.1007a220
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10094e13
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
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
cmp dword [edi + 8], 0xfffffff
je 0x10094f4d
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x10], 0
call fcn.100b4eaa
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ecx
mov byte [esi + 0xc], 0
mov dword [ebp - 4], 1
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
movss xmm3, dword [edi]
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movd xmm1, ebx
addsd xmm0, qword [eax*8 + 0x1010ddc0]
cvtdq2pd xmm1, xmm1
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x1010ddc0]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x10094eec
divss xmm0, xmm3
call fcn.10059670
call fcn.100df580
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x10094ecb
cmp ebx, 0x200
jae 0x10094ec9
shl ebx, 3
cmp ebx, ecx
jae 0x10094ecb
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.1007a2d0
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.1007a220
mov ecx, dword [edi + 8]
mov edx, dword [eax]
jmp 0x10094eef
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
lea eax, [ecx + 1]
mov dword [edi + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x10]
jne 0x10094f1d
mov dword [ecx + eax*8], esi
jmp 0x10094f2c
cmp edi, edx
jne 0x10094f26
mov dword [ecx + eax*8], esi
jmp 0x10094f30
cmp dword [ecx + eax*8 + 4], ebx
jne 0x10094f30
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 1
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
push str.unordered_map_set_too_long
call fcn.100b2c5b
int3
Function at 0x1009de20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, edi
cmp dword [edi + 0x14], 0x10
mov ebx, dword [edi + 0x10]
jb 0x1009de39
mov esi, dword [edi]
xor eax, eax
mov edx, 0x811c9dc5
test ebx, ebx
je 0x1009de55
movzx ecx, byte [eax + esi]
inc eax
xor ecx, edx
imul edx, ecx, 0x1000193
cmp eax, ebx
jb 0x1009de44
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
imul ecx, ecx, 0x1000193
shr edx, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
xor eax, edx
mov edx, dword [ebp - 4]
imul esi, eax, 0x1000193
shl edx, 8
or edx, dword [ebp + 8]
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
add esi, 0x9e3779b9
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
imul ecx, ecx, 0x1000193
shr edx, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
xor eax, edx
imul edx, eax, 0x1000193
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, edx
shr eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
shr edx, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, esi
shl ecx, 6
xor eax, edx
imul edx, eax, 0x1000193
mov eax, esi
shr eax, 2
add edx, 0x9e3779b9
add ecx, edx
add eax, ecx
xor eax, esi
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.1009fe20
cmp eax, edi
je 0x1009df49
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x1009df40
mov edi, dword [edi]
push ecx
push edi
mov ecx, eax
call fcn.1003f030
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100ac5e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
cmp byte [ebx + 0x1c], 0
jne 0x100ac6c6
push dword [ebx + 0x10]
call fcn.100b554a
mov edx, dword [0x10122eb8]
add esp, 4
mov dword [ebp - 4], eax
cmp edx, 0xffffffff
jne 0x100ac619
call fcn.10055890
mov edx, dword [0x10122eb8]
mov edx, dword [ebx + edx*4 + 8]
mov ecx, dword [ebx]
call fcn.100ac500
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 0x18]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push esi
mov esi, dword [ebp - 8]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [ebx + 4], 0x68
mov eax, dword [ebx + 0x10]
mov edi, dword [ebp - 4]
push eax
jne 0x100ac653
push 0
jmp 0x100ac658
push 0x90
push edi
call fcn.100b7cc0
mov eax, dword [ebx + 4]
add esp, 0xc
cmp eax, 0x90
je 0x100ac691
mov byte [edi], al
mov eax, dword [ebx + 4]
cmp eax, 0xe8
je 0x100ac686
cmp eax, 0xe9
je 0x100ac686
mov al, byte [ebx + 0x14]
mov byte [edi + 1], al
jmp 0x100ac691
mov eax, dword [ebx + 0x14]
sub eax, esi
sub eax, 5
mov dword [edi + 1], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebx + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
mov edx, dword [ebx + 0x10]
push edx
push edi
mov edi, dword [ebp - 8]
mov ecx, edi
call fcn.100ac3f0
add esp, 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push dword [ebx + 0x10]
push edi
call esi
mov byte [ebx + 0x1c], 1
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100ac6d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push edi
cmp byte [ebx + 0x1c], 0
je 0x100ac739
mov edx, dword [0x10122eb8]
cmp edx, 0xffffffff
jne 0x100ac6f6
call fcn.10055890
mov edx, dword [0x10122eb8]
mov edx, dword [ebx + edx*4 + 8]
mov ecx, dword [ebx]
call fcn.100ac500
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebx + 0x10]
mov ecx, edi
push edx
push dword [ebx + 0x18]
call fcn.100ac3f0
add esp, 8
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebx + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [ebx + 0x1c], 0
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100c5ec3
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100fb960
push 0x100fb958
push str.FlsAlloc
push 0x1f
call fcn.100d0dc3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d100c
push dword [ebp + 8]
mov ecx, esi
call dword [0x100f2204]
call esi
jmp 0x100d1012
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100d1056
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100fb970
push 0x100fb968
push str.FlsGetValue
push 0x21
call fcn.100d0dc3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d108d
push dword [ebp + 8]
mov ecx, esi
call dword [0x100f2204]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100d1095
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100fb978
push 0x100fb970
push str.FlsSetValue
push 0x22
call fcn.100d0dc3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d10cf
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100f2204]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100d19d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100b6150
mov eax, dword [0x10122094]
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.100ce2b4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100d1a13
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100d1b6f
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100df1c0
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 + 0x1012ec10]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100d27e2
mov ecx, dword [esi*4 + 0x1012ec10]
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 0x100d1b68
cmp eax, dword [ecx + edi + 0x24]
jne 0x100d1b68
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 0x100d1b68
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100d27e2
add esp, 0x14
test edx, edx
jl 0x100d1b68
jg 0x100d1ade
test eax, eax
jb 0x100d1b68
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100d1b68
jl 0x100d1af8
cmp dword [ebp - 0x1008], eax
ja 0x100d1b68
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100d1b16
test ebx, ebx
je 0x100d1b4f
cmp ecx, edi
jae 0x100d1b4f
mov al, byte [ecx]
cmp al, 0xd
jne 0x100d1b30
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100d1b3c
cmp byte [ecx + 1], 0xa
jne 0x100d1b3c
inc ecx
jmp 0x100d1b3c
movzx eax, al
movsx eax, byte [eax + 0x10122350]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100d1b16
cmp edx, ebx
jne 0x100d1b16
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100d1b6d
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100b4e9c
leave
ret
Function at 0x100d1c7a
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 + 0x1012ec10]
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 0x100d1cba
cmp byte [ebx], 0xa
jne 0x100d1cba
or byte [edi + eax + 0x28], 4
jmp 0x100d1cbf
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 0x100d1dbe
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100d1da1
inc eax
cmp dl, 0xd
je 0x100d1ceb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100d1d11
cmp eax, ecx
jae 0x100d1d1f
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 0x100d1cd3
jmp 0x100d1dbe
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 0x100d1d9c
cmp dword [ebp - 0x10], 0
je 0x100d1d9c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1012ec10]
test byte [eax + edi + 0x28], 0x48
je 0x100d1d76
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100d1d61
mov byte [esi], dl
jmp 0x100d1d72
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1012ec10]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100d1dbe
cmp byte [ebp - 1], 0xa
jne 0x100d1d85
cmp esi, ebx
jne 0x100d1d85
mov byte [esi], 0xa
jmp 0x100d1dbd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100d2800
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100d1dbe
mov byte [esi], 0xd
jmp 0x100d1dbd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1012ec10]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100d1dbb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100d1dbe
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100d1dc7
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 + 0x1012ec10]
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 0x100d1e0d
cmp word [ebx], dx
jne 0x100d1e0d
or byte [eax + edi + 0x28], 4
jmp 0x100d1e12
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 0x100d1f75
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 0x100d1f55
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100d1e53
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100d1e89
cmp eax, edx
jae 0x100d1e97
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 0x100d1e2e
jmp 0x100d1f75
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 0x100d1f50
cmp dword [ebp - 0x18], 0
je 0x100d1f50
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1012ec10]
test byte [eax + edi + 0x28], 0x48
je 0x100d1f26
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 0x100d1eea
mov word [esi], cx
jmp 0x100d1f21
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1012ec10]
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 + 0x1012ec10]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1012ec10]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100d1f75
pop eax
cmp word [ebp - 4], ax
jne 0x100d1f36
cmp esi, ebx
jne 0x100d1f36
mov word [esi], ax
jmp 0x100d1f72
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100d2800
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100d1f75
push 0xd
pop eax
jmp 0x100d1f31
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1012ec10]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100d1f6f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100d1f75
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 0x100d2be1
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100d2b63