joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009480
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
lea edx, [ebp + 8]
mov esi, 4
mov eax, dword [edi + 0xec]
mov ebx, dword [edi + 0xf4]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x1005f208]
sub esi, 1
jne 0x100094a2
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3fc4], ebx
jne 0x100094d7
push esi
push dword [ebp + 8]
push 4
push ebx
call fcn.10007620
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4

Function at 0x10009540
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x10]
mov edi, 0x10
movss xmm1, dword [edx + 0x108]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x10c]
subss xmm0, xmm1
mov ecx, dword [edx + 0xec]
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 8], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xf4]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 4], xmm0
not edx
nop
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x1005f208]
sub edi, 1
jne 0x100095b0
pop edi
not edx
pop esi
mov eax, edx
mov esp, ebp
pop ebp
ret 4

Function at 0x10009fa0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
not ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
test edi, edi
je 0x1000a003
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10009fe6
cmp edi, 2
jb 0x10009fe6
cmp byte [esi], cl
jne 0x10009fe6
cmp byte [esi + 1], cl
jne 0x10009fe6
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1005f208]
jmp 0x10009fb7
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1005f208]
test edi, edi
jne 0x10009fb7
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x1000a038
nop word [eax + eax]
cmp cl, 0x23
jne 0x1000a01f
cmp byte [esi], cl
jne 0x1000a01f
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x1005f208]
test cl, cl
jne 0x1000a010
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x1001f5c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x1001f5e7
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.1000bdc0
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1001f60c
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.1000bdc0
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1001f631
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.1000bdc0
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x1001f672
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.1000bdc0
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x1001f697
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.1000bdc0
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1001f6bc
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.1000bdc0
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1001b4b0
Function at 0x1002b130
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x10], edx
push ebx
push esi
mov esi, dword [ebp + 8]
test eax, eax
jne 0x1002b14c
xor al, al
jmp 0x1002b168
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x10]
test eax, eax
setne al
mov byte [ebp - 4], al
mov bl, byte [esi]
test al, al
je 0x1002b186
mov ecx, dword [ebp - 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp - 0xc]
mov dword [ebp + 0xc], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10031590
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
mov ebx, dword [ebp + 0x10]
movzx ecx, bl
mov dword [ebp - 8], ecx
mov dword [ebp - 0x18], edx
push esi
mov esi, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test bl, bl
jne 0x100315ba
xor cl, cl
jmp 0x100315d5
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x18], eax
call edi
mov edx, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 0xc], cl
mov ch, byte [esi]
mov byte [ebp + 0x13], ch
test cl, cl
je 0x100315f8
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push edx
call edi
mov eax, dword [ebp + 0xc]
mov ch, byte [ebp + 0x13]
movzx ecx, ch
sub ecx, 0xe8
je 0x10031695
sub ecx, 1
je 0x10031695
sub ecx, 0x16
jne 0x10031685
push ebx
push ecx
mov ecx, esp
inc eax
mov dword [ecx], eax
call fcn.1002b130
add esp, 8
cmp al, 0x15
je 0x1003162c
cmp al, 0x25
jne 0x10031685
mov eax, dword [ebp - 8]
xor ecx, ecx
mov esi, dword [ebp + 0xc]
shl eax, 2
add esi, 2
mov dword [ebp - 0x18], ecx
test eax, eax
jne 0x10031645
xor al, al
jmp 0x1003165d
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
mov ecx, dword [ebp - 0x18]
test eax, eax
setne al
mov byte [ebp - 0xc], al
mov esi, dword [esi]
test al, al
je 0x10031677
mov eax, dword [ebp - 0x10]
lea edx, [ebp + 0x10]
push edx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push ecx
call edi
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
inc eax
push ebx
push 4
push ecx
mov ecx, esp
push esi
mov dword [ecx], eax
call fcn.10032bf0
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10032aa0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
mov dword [ebp - 4], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, 1
je 0x10032ad4
sub eax, 1
je 0x10032b29
sub eax, 2
je 0x10032b86
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
sub bl, al
movzx ecx, byte [ebp + 0x14]
dec bl
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0
test ecx, ecx
jne 0x10032af4
mov byte [ebp - 0xc], cl
mov byte [eax], bl
jmp 0x10032b26
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x18], eax
call edi
mov ecx, dword [ebp - 8]
test eax, eax
setne byte [ebp - 0xc]
mov byte [ecx], bl
test eax, eax
je 0x10032b26
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov ebx, dword [ebp - 4]
mov eax, ebx
mov dword [ebp - 0x18], 0
sub eax, esi
mov esi, dword [ebp + 8]
sub eax, esi
movzx eax, ax
mov dword [ebp - 8], eax
movzx ecx, ax
movzx eax, byte [ebp + 0x14]
add eax, eax
jne 0x10032b53
mov byte [ebp - 0xc], 0
mov word [esi], cx
jmp 0x10032b86
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
mov ecx, dword [ebp - 8]
test eax, eax
setne byte [ebp - 0xc]
mov word [esi], cx
test eax, eax
je 0x10032b86
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
add eax, esi
sub ebx, eax
mov dword [ebp - 0x18], 0
movzx eax, byte [ebp + 0x14]
shl eax, 2
test eax, eax
jne 0x10032bae
mov byte [ebp - 0xc], al
mov dword [esi], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], ebx
test eax, eax
je 0x10032bdd
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x18]
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10032bf0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x10
push ebx
push esi
push edi
sub eax, 1
je 0x10032cf0
sub eax, 1
je 0x10032c87
sub eax, 2
je 0x10032c1f
mov eax, dword [ebp + 8]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp + 0x14]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
shl ecx, 2
mov dword [ebp - 0x10], edx
test ecx, ecx
jne 0x10032c3e
xor cl, cl
jmp 0x10032c59
lea edx, [ebp - 8]
mov dword [ebp - 0xc], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x10], eax
call edi
mov edx, dword [ebp - 0x10]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 4], cl
mov esi, dword [esi]
test cl, cl
je 0x10032c76
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push edx
call edi
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 4]
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp + 0x14]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x10], edx
add ecx, ecx
jne 0x10032ca3
xor cl, cl
jmp 0x10032cbe
lea edx, [ebp - 8]
mov dword [ebp - 0xc], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x10], eax
call edi
mov edx, dword [ebp - 0x10]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 4], cl
movzx esi, word [esi]
test cl, cl
je 0x10032cdc
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push edx
call edi
mov eax, dword [ebp + 0xc]
add eax, 2
movsx ecx, si
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebp + 0x14]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x10], edx
test ecx, ecx
jne 0x10032d0c
xor cl, cl
jmp 0x10032d27
lea edx, [ebp - 8]
mov dword [ebp - 0xc], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x10], eax
call edi
mov edx, dword [ebp - 0x10]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 4], cl
mov bl, byte [esi]
test cl, cl
je 0x10032d44
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push edx
call edi
mov eax, dword [ebp + 0xc]
inc eax
movsx ecx, bl
add ecx, eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10032d60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor ecx, ecx
mov dword [ebp - 0x10], 0
cmp byte [ebp + 0x14], cl
cmovne ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x10032d7f
mov byte [ebp - 4], cl
jmp 0x10032d9c
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1003eb30
add esp, 0xc
cmp byte [ebp - 4], 0
je 0x10032dca
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret

Function at 0x100398b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ecx]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov edx, dword [eax + 8]
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push ebx
push 5
push ecx
mov eax, esp
mov dword [eax], esi
call edx
push ebx
push ecx
mov eax, esp
push dword [ebp + 8]
mov dword [eax], esi
call fcn.10031590
add esp, 0xc
movzx eax, bl
mov dword [ebp - 0x14], 0
test bl, bl
jne 0x100398f8
mov byte [ebp - 8], bl
mov byte [esi], 0xe8
jmp 0x10039931
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
call ebx
test eax, eax
setne byte [ebp - 8]
mov byte [esi], 0xe8
test eax, eax
je 0x1003992e
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
call ebx
mov ebx, dword [ebp + 0x14]
push ebx
push 4
push ecx
mov ecx, esp
inc esi
push ecx
mov dword [ecx], edi
mov ecx, esp
mov dword [ecx], esi
call fcn.10032aa0
mov eax, dword [ebp + 8]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1003b0f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 4]
mov al, byte [ebp + 0x10]
lea ecx, [edi + 4]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp + 0x10], ecx
xor ecx, ecx
test al, al
mov byte [edi + 0x14], 1
mov dword [edi + 0xc], esi
cmovne ecx, edx
mov dword [edi + 0x10], edx
mov byte [edi + 0x15], al
xor edi, edi
mov dword [ebp - 0x10], edi
test ecx, ecx
jne 0x1003b130
xor bl, bl
jmp 0x1003b14f
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
push 0x40
push ecx
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x10]
test eax, eax
mov edx, dword [ebp + 0xc]
setne bl
push edx
push esi
push dword [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.1003eb30
add esp, 0xc
test bl, bl
je 0x1003b178
mov eax, dword [ebp - 8]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1003bf50
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push esi
call fcn.10009430
test eax, eax
je 0x1003bf64
call fcn.100095e0
mov esi, dword [eax + 0x6c]
jmp 0x1003bf66
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1003bf89
mov dword [esi], eax
pop esi
ret

Function at 0x1003cf70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push dword [ebp + 8]
call fcn.1003ced0
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
lea ecx, [ebp - 4]
push eax
call fcn.1003d000
xor edx, edx
mov dword [ebp - 0x18], edx
mov esi, dword [eax]
movzx eax, byte [ebp + 0xc]
shl eax, 2
test eax, eax
jne 0x1003cfa7
xor al, al
jmp 0x1003cfc3
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x18]
test eax, eax
setne al
mov byte [ebp - 0xc], al
mov esi, dword [esi]
test al, al
je 0x1003cfe1
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp + 0xc], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10041d43
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.1005bc50
mov eax, dword [0x10087300]
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.1004e266
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10041d85
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10041efc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1005bba0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x100a2dd8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.100504a7
mov ecx, dword [esi*4 + 0x100a2dd8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x10041ef5
cmp eax, dword [edi + ecx + 0x24]
jne 0x10041ef5
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10041ef5
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100504a7
add esp, 0x14
cmp edx, esi
jl 0x10041ef5
jg 0x10041e50
cmp eax, esi
jb 0x10041ef5
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x10041ef5
jl 0x10041e72
cmp dword [ebp - 0x1008], eax
ja 0x10041ef5
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x10041e97
cmp ebx, esi
je 0x10041edc
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x10041edc
mov al, byte [ecx]
cmp al, 0xd
jne 0x10041ebd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10041ec9
cmp byte [ecx + 1], 0xa
jne 0x10041ec9
inc ecx
jmp 0x10041ec9
movzx eax, al
movsx eax, byte [eax + 0x10087548]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10041ea3
cmp edx, ebx
jne 0x10041ea3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x10041efa
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1003d14d
leave
ret

Function at 0x1004c421
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100a2dd8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1004f7df
cmp byte [ebx], 0xa
jne 0x1004f7df
or byte [edi + eax + 0x28], 4
jmp 0x1004f7e4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1004f8e7
mov cl, byte [eax]
cmp cl, 0x1a
je 0x1004f8c2
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x1004f813
mov eax, dword [ebp - 8]
jmp 0x1004f833
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x1004f84f
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x1004f82d
add eax, 2
mov cl, 0xa
jmp 0x1004f830
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x1004f7f5
jmp 0x1004f8e7
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 0x1004f8bd
cmp dword [ebp - 0x10], 0
je 0x1004f8bd
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x100a2dd8]
test byte [eax + edi + 0x28], 0x48
je 0x1004f89c
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x1004f88c
mov byte [esi], 0xa
jmp 0x1004f8e6
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x100a2dd8]
mov byte [eax + edi + 0x2a], cl
jmp 0x1004f8e6
cmp byte [ebp - 1], 0xa
jne 0x1004f8a6
cmp esi, ebx
je 0x1004f887
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100504c5
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004f8e7
mov byte [esi], 0xd
jmp 0x1004f8e6
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x100a2dd8]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x1004f8e4
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x1004f8e7
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret