joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030770
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
push esi
push edi
mov edi, ecx
mov esi, 1
bsr ecx, eax
mov eax, esi
mov dword [ebp - 0x10], edi
shl eax, cl
cmp edx, eax
ja 0x100308bc
mov ebx, dword [edi + 4]
lea eax, [edx - 1]
or eax, esi
mov dword [ebp - 8], ebx
bsr ecx, eax
push ebx
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
lea eax, [esi + esi]
push eax
call fcn.10030a50
lea eax, [esi - 1]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x18], eax
mov ecx, dword [edi + 4]
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x10030897
mov eax, ecx
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
movzx edx, byte [eax + 0xa]
imul esi, esi, 0x1000193
xor esi, edx
movzx edx, byte [eax + 0xb]
imul esi, esi, 0x1000193
xor esi, edx
imul edx, esi, 0x1000193
mov esi, dword [edi + 0x18]
and esi, edx
mov edx, dword [edi + 0xc]
mov edi, dword [edx + esi*8]
lea ebx, [edx + esi*8]
mov dword [ebp - 4], ebx
cmp edi, dword [ebp - 8]
jne 0x10030825
mov dword [ebx], eax
mov dword [ebx + 4], eax
jmp 0x10030889
mov edx, dword [ebx + 4]
mov esi, dword [eax + 8]
cmp esi, dword [edx + 8]
jne 0x1003085c
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x10030857
mov edi, dword [eax + 4]
mov ebx, dword [ebp - 0xc]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov ebx, dword [ebp - 4]
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov dword [ebx + 4], eax
jmp 0x10030889
cmp edi, edx
je 0x1003086c
mov edx, dword [edx + 4]
cmp esi, dword [edx + 8]
je 0x100308a0
cmp edi, edx
jne 0x10030860
mov ebx, dword [eax + 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], eax
mov dword [edx + 4], edi
mov edx, dword [ebp - 4]
mov dword [ecx + 4], ebx
mov dword [eax + 4], esi
mov dword [edx], eax
mov eax, ecx
mov edi, dword [ebp - 0x10]
cmp ecx, dword [ebp - 8]
jne 0x100307d2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [eax + 4]
mov ebx, dword [edx]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x10030889
push str.invalid_hash_bucket_count
call fcn.1005daf7
int3
Function at 0x10030d60
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
cmp edx, eax
je 0x10030eb4
mov eax, dword [ebx + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push esi
push edi
mov edi, dword [ebx + 0xc]
mov esi, edx
xor ecx, eax
mov dword [ebp - 0x18], edi
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 0xc], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.100771cc
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x14]
je 0x10030e19
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x10030dd7
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x10030eaa
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
pop edi
mov dword [edx], esi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
cmp ecx, dword [ebp + 8]
jne 0x10030e2d
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov dword [edx], eax
jmp 0x10030e30
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], ecx
cmp esi, eax
je 0x10030eaa
nop word [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebp - 0x18]
and eax, dword [ebx + 0x18]
lea eax, [ecx + eax*8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0xc
push eax
call fcn.100771cc
dec dword [ebx + 8]
add esp, 8
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp - 0x14]
je 0x10030ebb
cmp esi, eax
jne 0x10030e85
mov ecx, dword [ebp - 0xc]
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x10030e40
mov ecx, dword [ebp - 4]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10040c40
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c25b0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x60
mov eax, dword [0x100df024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6c], esi
mov edx, dword [ebx + 8]
mov dword [ebp - 0x70], esi
mov dword [esi], 0x100d5528
mov dword [esi + 4], 0xf1e2d3c4
mov dword [esi + 8], 0x4e21
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x10]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [ebp - 4], 0
mov dword [esi + 0x14], 0x100d52d0
mov byte [ebp - 4], 1
lea ecx, [edx + 0x45c]
push esi
mov dword [esi], 0x100d552c
mov dword [esi + 0x14], 0x100d553c
mov dword [esi + 0x18], edx
call fcn.1002f400
mov dword [ebp - 4], 2
xorps xmm0, xmm0
mov dword [esi], 0x100d5568
mov dword [esi + 0x14], 0x100d5564
mov dword [esi + 0x1c], 0
movq qword [esi + 0x20], xmm0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x30], 0
lea edi, [ecx + 0x2d0]
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 1
mov eax, dword [ecx + 0x178]
mov dword [ebp - 0x60], eax
mov eax, dword [edi]
or eax, dword [edi + 4]
movlpd qword [ebp - 0x68], xmm0
jne 0x10040d86
lea eax, [ebp - 0x38]
add ecx, 0x184
movups xmmword [ebp - 0x28], xmm0
push eax
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0x1c
mov dword [ebp - 0x24], 0x21
call fcn.10043aa0
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov dword [edi], ecx
or ecx, eax
mov dword [edi + 4], eax
jne 0x10040d86
push edi
mov dword [edi + 4], ecx
lea ecx, [ebp - 0x68]
push str.Predefined_default_gpu_timestamp_oa_frequency_used
mov dword [edi], 0xb71b00
call fcn.10043b40
mov eax, dword [edi]
xorps xmm0, xmm0
mov ecx, dword [edi + 4]
mov dword [esi + 0x44], ecx
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x40], eax
lea edi, [ecx + 0x2d8]
movlpd qword [ebp - 0x68], xmm0
mov eax, dword [ecx + 0x178]
mov dword [ebp - 0x60], eax
mov eax, dword [edi]
or eax, dword [edi + 4]
jne 0x10040dfd
lea eax, [ebp - 0x58]
add ecx, 0x184
movups xmmword [ebp - 0x48], xmm0
push eax
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x48], 0x1c
mov dword [ebp - 0x44], 0x2f
call fcn.10043aa0
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x3c]
mov dword [edi], ecx
or ecx, eax
mov dword [edi + 4], eax
jne 0x10040dfd
push edi
mov dword [edi + 4], ecx
lea ecx, [ebp - 0x68]
push str.Predefined_default_gpu_timestamp_cs_frequency_used
mov dword [edi], 0xb71b00
call fcn.10043b40
mov ecx, dword [edi]
mov eax, esi
mov edx, dword [edi + 4]
mov dword [esi + 0x14], 0x100d5564
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], edx
mov dword [esi], 0x100d5568
mov dword [esi + 0x14], 0x100d5564
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10077040
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x10056a40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c2f30
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x100df024]
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 ebx, ecx
mov dword [ebp - 0x840], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x85c], ebx
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
lea edi, [ebx + 0x30]
mov dword [ebp - 4], 0
imul ecx, eax, 0x248
mov dword [ebx + 4], esi
mov dword [ebx], 0x100d5574
mov edx, dword [esi + 0x18]
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], edx
add ecx, dword [esi + 0x2c]
mov dword [ebx + 0x10], ecx
lea esi, [edx + 0x178]
push 0x824
push 0
mov eax, dword [ecx + 8]
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], eax
add eax, 0x1c0
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x20], eax
lea eax, [ecx + 0x24]
mov dword [ebx + 0x24], eax
lea eax, [edx + 0x2e8]
mov dword [ebx + 0x28], eax
lea eax, [ebp - 0x83c]
push eax
mov dword [ebx + 0x2c], esi
call fcn.100794e0
add esp, 0xc
mov dword [ebp - 0x82c], 0x10000
mov dword [ebp - 0x828], 0x10
push 0x804
push 0
push edi
call fcn.100794e0
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [ebp - 0x840], eax
lea eax, [ebp - 0x83c]
mov dword [ebp - 0x850], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x858], eax
lea eax, [ebp - 0x858]
push eax
push dword [esi + 0x14]
mov esi, dword [esi + 0x18]
mov ecx, esi
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x844], 0
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x854], 0
mov dword [ebp - 0x84c], 0x824
mov dword [ebp - 0x834], 0xc
mov dword [ebp - 0x83c], 0x814
call dword [0x100c51ac]
call esi
test eax, eax
mov eax, dword [ebp - 0x82c]
js 0x10056bb7
test eax, eax
jne 0x10056bb7
mov ecx, 0x201
lea esi, [ebp - 0x81c]
rep movsd dword es:[edi], dword [esi]
jmp 0x10056bda
cmp eax, 3
jne 0x10056bce
push str.Instrumentation_is_disabled
lea ecx, [ebp - 0x844]
call fcn.1002f9c0
jmp 0x10056bda
push ecx
lea ecx, [ebp - 0x844]
call fcn.1002fb80
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x2c]
add eax, 0x28
mov dword [ebx + 0x834], eax
mov eax, dword [ecx + 0xb0]
shr eax, 0x1d
and al, 1
mov byte [ebx + 0x838], al
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x244]
cmp eax, 3
je 0x10056c12
cmp eax, 4
mov eax, 2
jne 0x10056c17
mov eax, 1
push eax
mov dword [ebx + 0x83c], eax
call fcn.100432c0
mov dword [ebx + 0x840], eax
mov eax, ebx
mov dword [ebx + 0x844], edx
mov dword [ebx], 0x100d5574
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.10077040
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10059940
Capabilities:
Enumerate pe sections

Disassembly:
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10059975
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1005995c
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x1005996d
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x10059977
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10059952
xor eax, eax
pop edi
pop esi
ret

Function at 0x1005cd10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x100df024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp eax, 0xffffffff
jne 0x1005cd4f
push str._A__
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.1005d4f0
add esp, 0xc
jmp 0x1005cd69
push eax
push str._A_u_
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.1005d4f0
add esp, 0x10
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.100947c2
push esi
push 0x100d79f4
lea ecx, [ebp - 0x208]
add eax, ecx
push 0x200
push eax
call fcn.1005d4f0
mov esi, dword [0x100dfab0]
add esp, 0x18
mov edi, 0x200
test esi, 0x4000000
je 0x1005cde6
and esi, 0x8000000
lea eax, [ebp - 0x208]
neg esi
push edi
sbb esi, esi
push eax
and esi, 0xfffffff9
call fcn.100947c2
push ebx
push esi
mov ecx, edi
sub ecx, eax
push str.:_s
push ecx
lea ecx, [ebp - 0x208]
add eax, ecx
push eax
call fcn.1005d4f0
mov esi, dword [0x100dfab0]
add esp, 0x1c
test esi, 0x2000000
je 0x1005ce2d
and esi, 0x8000000
lea eax, [ebp - 0x208]
neg esi
push 0x200
sbb esi, esi
push eax
and esi, 0xfffffff2
call fcn.100947c2
push str._umd_
push esi
mov ecx, edi
sub ecx, eax
push str.:_s
push ecx
lea ecx, [ebp - 0x208]
add eax, ecx
push eax
call fcn.1005d4f0
add esp, 0x1c
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.100947c2
push dword [ebp + 0x1c]
mov ecx, edi
sub ecx, eax
push str.:__s
push ecx
lea ecx, [ebp - 0x208]
add eax, ecx
push eax
call fcn.1005d4f0
add esp, 0x18
test dword [0x100dfab0], 0x40000000
je 0x1005ce97
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.100947c2
push 0x100d7a08
sub edi, eax
lea ecx, [ebp - 0x208]
push 0x100d7a0c
add eax, ecx
push edi
push eax
call fcn.1005d4f0
add esp, 0x18
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x408]
push 0x200
push eax
call fcn.1005d080
add esp, 0x10
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x100dfab0]
test eax, eax
js 0x1005ced2
cmp dword [ebp + 0x10], 0
jge 0x1005cef6
shr eax, 0x1e
not al
test al, 1
lea eax, [ebp - 0x408]
push eax
je 0x1005cee9
push 0x100d7aa4
jmp 0x1005ceee
push 0x100d7a0c
call fcn.1005d050
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10077040
mov esp, ebp
pop ebp
ret
Function at 0x1005cf60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov eax, 4
mov dword [ebp - 8], 0
mov word [ebp - 4], ax
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.SOFTWAREIntelIGFXINSTRUMD
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1005cfba
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x100785d4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10078613
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10078613
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10078613
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10078613
cmp dword [ecx + 0x74], 0xe
jbe 0x10078613
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100aa446
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10078700
mov eax, dword [0x100df024]
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.100a37b5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x100aa488
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100aa5e4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100bfe40
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 + 0x100e14a8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.100ac2fa
mov ecx, dword [esi*4 + 0x100e14a8]
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 0x100aa5dd
cmp eax, dword [ecx + edi + 0x24]
jne 0x100aa5dd
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 0x100aa5dd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100ac2fa
add esp, 0x14
test edx, edx
jl 0x100aa5dd
jg 0x100aa553
test eax, eax
jb 0x100aa5dd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100aa5dd
jl 0x100aa56d
cmp dword [ebp - 0x1008], eax
ja 0x100aa5dd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100aa58b
test ebx, ebx
je 0x100aa5c4
cmp ecx, edi
jae 0x100aa5c4
mov al, byte [ecx]
cmp al, 0xd
jne 0x100aa5a5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100aa5b1
cmp byte [ecx + 1], 0xa
jne 0x100aa5b1
inc ecx
jmp 0x100aa5b1
movzx eax, al
movsx eax, byte [eax + 0x100df2b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100aa58b
cmp edx, ebx
jne 0x100aa58b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100aa5e2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10077040
leave
ret
Function at 0x100ab474
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 + 0x100e14a8]
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 0x100ab4b4
cmp byte [ebx], 0xa
jne 0x100ab4b4
or byte [edi + eax + 0x28], 4
jmp 0x100ab4b9
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 0x100ab5b8
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100ab59b
inc eax
cmp dl, 0xd
je 0x100ab4e5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100ab50b
cmp eax, ecx
jae 0x100ab519
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 0x100ab4cd
jmp 0x100ab5b8
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 0x100ab596
cmp dword [ebp - 0x10], 0
je 0x100ab596
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100e14a8]
test byte [eax + edi + 0x28], 0x48
je 0x100ab570
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100ab55b
mov byte [esi], dl
jmp 0x100ab56c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100e14a8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100ab5b8
cmp byte [ebp - 1], 0xa
jne 0x100ab57f
cmp esi, ebx
jne 0x100ab57f
mov byte [esi], 0xa
jmp 0x100ab5b7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100ac318
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100ab5b8
mov byte [esi], 0xd
jmp 0x100ab5b7
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100e14a8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100ab5b5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100ab5b8
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100ab5c1
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 + 0x100e14a8]
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 0x100ab607
cmp word [ebx], dx
jne 0x100ab607
or byte [eax + edi + 0x28], 4
jmp 0x100ab60c
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 0x100ab76f
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 0x100ab74f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100ab64d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100ab683
cmp eax, edx
jae 0x100ab691
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 0x100ab628
jmp 0x100ab76f
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 0x100ab74a
cmp dword [ebp - 0x18], 0
je 0x100ab74a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100e14a8]
test byte [eax + edi + 0x28], 0x48
je 0x100ab720
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 0x100ab6e4
mov word [esi], cx
jmp 0x100ab71b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100e14a8]
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 + 0x100e14a8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100e14a8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100ab76f
pop eax
cmp word [ebp - 4], ax
jne 0x100ab730
cmp esi, ebx
jne 0x100ab730
mov word [esi], ax
jmp 0x100ab76c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100ac318
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100ab76f
push 0xd
pop eax
jmp 0x100ab72b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100e14a8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100ab769
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100ab76f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret