joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1011fc20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
movzx eax, word [esp + 0xc]
mov ecx, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 8], eax
push esi
push edi
movzx eax, word [ebp + eax*2 + 0x11a]
cmp eax, ecx
jbe 0x1011fc94
mov edi, dword [ebp + 0x10]
mov dl, byte [edi + eax*8 + 4]
lea ebx, [edi + eax*8]
movzx eax, word [ebx]
and dl, 0x1f
cmp eax, ecx
je 0x1011fcc1
test dl, dl
jne 0x1011fc8c
cmp word [esp + 0x1c], 0x40
movzx edx, word [edi + eax*8 + 2]
movzx esi, word [edi + ecx*8 + 2]
je 0x1011fc78
mov al, byte [edi + esi*8 + 4]
xor al, byte [edi + edx*8 + 4]
test al, 0x1f
jne 0x1011fc8c
cmp edx, esi
je 0x1011fcb9
cmp edx, 0x8000
jae 0x1011fcb9
cmp esi, 0x8000
jae 0x1011fcb9
movzx eax, word [ebx + 6]
cmp eax, ecx
ja 0x1011fc45
mov eax, dword [esp + 0x10]
movzx eax, word [ebp + eax*2 + 0x10c]
cmp eax, ecx
jbe 0x1011fcb9
mov esi, dword [ebp + 0x10]
lea edx, [esi + eax*8]
movzx eax, word [edx]
cmp eax, ecx
je 0x1011fcce
movzx eax, word [edx + 6]
cmp eax, ecx
ja 0x1011fca7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
xor eax, eax
test dl, dl
pop esi
pop ebp
setne al
pop ebx
pop ecx
ret
test byte [edx + 4], 0x1f
mov eax, 0
pop edi
pop esi
pop ebp
setne al
pop ebx
pop ecx
ret
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x403a34
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4067f8
cmp edx, dword [eax]
je 0x403a56
add eax, 8
inc ecx
cmp eax, 0x406888
jl 0x403a47
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4067f8]
jne 0x403b84
mov eax, dword [0x406998]
cmp eax, 1
je 0x403b5e
test eax, eax
jne 0x403a87
cmp dword [0x406074], 1
je 0x403b5e
cmp edx, 0xfc
je 0x403b84
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403abe
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404890
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404980
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403b01
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404980
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4053f0
push edi
call fcn.00404a90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404890
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004048a0
lea eax, [ebp - 0xa0]
push 0x4053d0
push eax
call fcn.004048a0
push dword [esi + 0x4067fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004048a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004049fb
add esp, 0x2c
pop edi
jmp 0x403b84
lea eax, [ebp + 8]
lea esi, [esi + 0x4067fc]
push 0
push eax
push dword [esi]
call fcn.00404980
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10002bb8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10035840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push esi
mov esi, dword [ebp + 0xc]
push eax
push 0x40
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp + 0x10]
push esi
push ebx
call fcn.1000d630
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10009c5b
leave
ret

Function at 0x10003bd5
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 0xc]
push eax
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne al
ret

Function at 0x100047be
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10035840]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0x40
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp + 0xc]
push 0x90
push edi
call fcn.1000dbb0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10009c5b
leave
ret

Function at 0x10004ae5
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x100384cc]
push esi
xor esi, esi
jmp 0x10004af7
cmp dword [edx + 4], esi
jne 0x10004b4b
mov edx, dword [edx]
test edx, edx
jne 0x10004af0
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10004b47
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x10004b1e
mov eax, dword [0x100384cc]
mov dword [edx], eax
mov dword [0x100384cc], edx
pop edi
test edx, edx
jne 0x10004b4b
xor eax, eax
pop esi
ret
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
Function at 0x10005360
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0xc
mov eax, dword [0x10035840]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
push ebx
push ebp
imul ebp, eax, 0x2c
push esi
add ebp, dword [0x100384c0]
mov eax, dword [ebp]
mov cl, byte [ebp + 0x14]
and cl, 1
lea ebx, [eax - 5]
cmove ebx, eax
movzx eax, cl
lea esi, [eax*2 + 5]
lea eax, [esp + 0x10]
mov dword [esp + 0xc], esi
push eax
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100053b6
push 0xa
pop eax
jmp 0x1000543d
cmp dword [esp + 0x20], 0
je 0x100053db
mov byte [ebx], 0xe9
mov eax, dword [ebp + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [ebp + 0x14], 1
je 0x100053fd
mov eax, dword [ebp]
mov word [eax], 0xf9eb
jmp 0x100053fd
test byte [ebp + 0x14], 1
je 0x100053f2
push edi
mov edi, ebx
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
pop edi
jmp 0x100053fd
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
mov al, byte [ebp + 0x10]
mov byte [ebx + 4], al
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [esp + 0x20]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [ebp + 0x14]
and cl, 2
xor cl, byte [ebp + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [ebp + 0x14], dl
mov ecx, dword [esp + 0x14]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10009c5b
add esp, 0xc
ret
Function at 0x1000547c
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x20
mov eax, dword [0x10035840]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
xor edi, edi
push edi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10005588
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x1c
push eax
push ebp
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10005581
inc edi
push ebx
cmp dword [esp + 0x10], 0x10
jb 0x10005543
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x1c], eax
jne 0x10005543
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x18], eax
je 0x10005543
mov edx, dword [esi]
test edx, edx
jne 0x1000550e
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x100375d8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10005569
lea ebx, [esi + 8]
jmp 0x10005538
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x10005538
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x100375d8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10005569
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [esp + 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1c
push eax
push ebp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100054c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10005580
xor edi, edi
cmp dword [esi], edi
je 0x10005580
push dword [esi]
push edi
push dword [0x100375d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.10009c5b
add esp, 0x20
ret

Function at 0x10005604
Capabilities:
Suspend thread

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
push edi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.1000547c
pop ecx
test eax, eax
jne 0x10005624
push 9
pop esi
jmp 0x1000566c
cmp dword [edi], esi
je 0x1000566c
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x1000566b
push ebp
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebp, eax
test ebp, ebp
je 0x10005664
push ebp
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebp
call fcn.10005975
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x10005631
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
ret
Function at 0x10005a99
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
push edi
xor edi, edi
call fcn.1000544f
cmp dword [0x100375d8], edi
je 0x10005b17
cmp dword [esp + 0x10], edi
jne 0x10005ae7
mov ebp, edi
cmp dword [0x100384c8], edi
jbe 0x10005b1a
push ebx
mov bl, byte [esp + 0x18]
mov esi, edi
shl bl, 2
mov edx, dword [0x100384c0]
lea esi, [esi + 0x2c]
mov cl, byte [esi + edx - 0x18]
xor cl, bl
and cl, 4
xor byte [esi + edx - 0x18], cl
inc ebp
cmp ebp, dword [0x100384c8]
jb 0x10005ac5
pop ebx
jmp 0x10005b1a
push dword [esp + 0x10]
call fcn.1000559c
pop ecx
cmp eax, 0xffffffff
je 0x10005b13
mov edx, dword [0x100384c0]
mov cl, byte [esp + 0x14]
imul esi, eax, 0x2c
shl cl, 2
xor cl, byte [esi + edx + 0x14]
and cl, 4
xor byte [esi + edx + 0x14], cl
jmp 0x10005b1a
push 4
jmp 0x10005b19
push 2
pop edi
xor ecx, ecx
mov eax, 0x100375d4
xchg dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10005b29
Capabilities:
Resume thread

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
xor ebp, ebp
cmp dword [esi], ebp
je 0x10005b77
push edi
mov edi, ebp
cmp dword [esi + 8], ebp
jbe 0x10005b67
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push ebp
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10005b60
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10005b3e
pop ebx
push dword [esi]
push ebp
push dword [0x100375d8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
ret
Function at 0x1000c207
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x1000c228
jl 0x1000c21f
test edi, edi
jne 0x1000c228
xor eax, eax
xor edx, edx
jmp 0x1000c2e9
cmp dword [ebx + 0x38], 0
je 0x1000c23d
push eax
push edi
push dword [ebp + 8]
call fcn.1000c2ef
jmp 0x1000c2e9
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000c284
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000c284
cmp eax, edi
jb 0x1000c25e
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.1000d630
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x1000c28a
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x1000c2de
mov ecx, ebx
call fcn.1000b934
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x1000c2c9
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.10014db7
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x1000c2de
jmp 0x1000c29c
test edx, edx
je 0x1000c2de
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.10014db7
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x1001329d
Capabilities:
Parse pe header

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

Function at 0x100197b7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002d528
push 0x1002d520
push str.FlsAlloc
push 0x1f
call fcn.1001967f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100197eb
push dword [ebp + 8]
mov ecx, esi
call dword [0x10028188]
call esi
jmp 0x100197f1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10019835
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002d538
push 0x1002d530
push str.FlsGetValue
push 0x21
call fcn.1001967f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001986c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10028188]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10019874
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002d540
push 0x1002d538
push str.FlsSetValue
push 0x22
call fcn.1001967f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100198ae
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10028188]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001c57f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001c61c
push ebx
push esi
call fcn.1001c548
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001c4dc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001c5c9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001c61b
push edi
push eax
call fcn.100192c6
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001c5e9
call fcn.1001928c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001c61a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001c4dc
add esp, 0x20
test eax, eax
jne 0x1001c608
push edi
call fcn.1001928c
jmp 0x1001c610
push ebx
call fcn.1001928c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1001e0d0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10009fe0
mov eax, dword [0x10035840]
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.10019dea
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1001e112
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1001e26e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1000a190
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 + 0x10038170]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1001ee75
mov ecx, dword [esi*4 + 0x10038170]
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 0x1001e267
cmp eax, dword [ecx + edi + 0x24]
jne 0x1001e267
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 0x1001e267
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001ee75
add esp, 0x14
test edx, edx
jl 0x1001e267
jg 0x1001e1dd
test eax, eax
jb 0x1001e267
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1001e267
jl 0x1001e1f7
cmp dword [ebp - 0x1008], eax
ja 0x1001e267
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1001e215
test ebx, ebx
je 0x1001e24e
cmp ecx, edi
jae 0x1001e24e
mov al, byte [ecx]
cmp al, 0xd
jne 0x1001e22f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1001e23b
cmp byte [ecx + 1], 0xa
jne 0x1001e23b
inc ecx
jmp 0x1001e23b
movzx eax, al
movsx eax, byte [eax + 0x10036030]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1001e215
cmp edx, ebx
jne 0x1001e215
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1001e26c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10009c5b
leave
ret
Function at 0x1001e30d
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 + 0x10038170]
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 0x1001e34d
cmp byte [ebx], 0xa
jne 0x1001e34d
or byte [edi + eax + 0x28], 4
jmp 0x1001e352
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 0x1001e451
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001e434
inc eax
cmp dl, 0xd
je 0x1001e37e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001e3a4
cmp eax, ecx
jae 0x1001e3b2
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 0x1001e366
jmp 0x1001e451
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 0x1001e42f
cmp dword [ebp - 0x10], 0
je 0x1001e42f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10038170]
test byte [eax + edi + 0x28], 0x48
je 0x1001e409
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001e3f4
mov byte [esi], dl
jmp 0x1001e405
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10038170]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001e451
cmp byte [ebp - 1], 0xa
jne 0x1001e418
cmp esi, ebx
jne 0x1001e418
mov byte [esi], 0xa
jmp 0x1001e450
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001ee93
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001e451
mov byte [esi], 0xd
jmp 0x1001e450
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10038170]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001e44e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001e451
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001e45a
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 + 0x10038170]
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 0x1001e4a0
cmp word [ebx], dx
jne 0x1001e4a0
or byte [eax + edi + 0x28], 4
jmp 0x1001e4a5
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 0x1001e608
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 0x1001e5e8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001e4e6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001e51c
cmp eax, edx
jae 0x1001e52a
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 0x1001e4c1
jmp 0x1001e608
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 0x1001e5e3
cmp dword [ebp - 0x18], 0
je 0x1001e5e3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10038170]
test byte [eax + edi + 0x28], 0x48
je 0x1001e5b9
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 0x1001e57d
mov word [esi], cx
jmp 0x1001e5b4
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10038170]
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 + 0x10038170]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10038170]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001e608
pop eax
cmp word [ebp - 4], ax
jne 0x1001e5c9
cmp esi, ebx
jne 0x1001e5c9
mov word [esi], ax
jmp 0x1001e605
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001ee93
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001e608
push 0xd
pop eax
jmp 0x1001e5c4
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10038170]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001e602
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001e608
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret