joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11662
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, dword [esi + 0xc]
xor edx, edx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x60]
mov dword [ebp + 8], edx
cmp dword [eax + 8], 4
mov ecx, dword [eax + 4]
push edi
mov dword [ebp - 4], edx
jb 0x11692
mov edx, dword [ebx]
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
cmp ecx, 4
jb 0x11736
test edx, edx
je 0x11736
mov eax, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
push eax
mov dword [0x13208], eax
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
jne 0x116cb
and dword [0x13208], 0
jmp 0x11743
mov eax, dword [0x13208]
xor edi, edi
cmp dword [eax], edi
jne 0x116dd
xor eax, eax
mov dword [0x13208], eax
cmp eax, edi
je 0x11743
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1c]
push eax
push 0x108f6
push edi
push edi
push edi
push 0x10000000
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x1174c
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebx], 1
jmp 0x1173d
mov dword [ebp - 4], 0xc000000d
cmp dword [ebp - 4], 0
jl 0x1174c
mov dword [esi + 0x1c], 4
jmp 0x11750
and dword [esi + 0x1c], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1187a
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
and dword [ecx + 0x1c], 0
and dword [ecx + 0x18], 0
xor dl, dl
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
pop ebp
ret 8
Function at 0x11b06
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x60]
mov eax, dword [eax + 0xc]
push edi
mov edi, 0xc00000bb
cmp eax, 0x222004
jne 0x11b30
push esi
push dword [ebp + 8]
call fcn.000114d0
jmp 0x11bd3
cmp eax, 0x222000
jne 0x11b45
push esi
push dword [ebp + 8]
call fcn.00011760
jmp 0x11bd3
cmp eax, 0x222400
jne 0x11b57
push esi
push dword [ebp + 8]
call fcn.0001189e
jmp 0x11bd3
cmp eax, 0x222404
jne 0x11b69
push esi
push dword [ebp + 8]
call fcn.00011950
jmp 0x11bd3
cmp eax, 0x222008
jne 0x11b7b
push esi
push dword [ebp + 8]
call fcn.000117de
jmp 0x11bd3
cmp eax, 0x222408
jne 0x11b8d
push esi
push dword [ebp + 8]
call fcn.00011834
jmp 0x11bd3
cmp eax, 0x222010
jne 0x11b9f
push esi
push dword [ebp + 8]
call fcn.00011662
jmp 0x11bd3
cmp eax, 0x22200c
jne 0x11bb1
push esi
push dword [ebp + 8]
call fcn.00011406
jmp 0x11bd3
cmp eax, 0x222014
jne 0x11bc3
push esi
push dword [ebp + 8]
call fcn.000119fa
jmp 0x11bd3
cmp eax, 0x222018
jne 0x11bd5
push esi
push dword [ebp + 8]
call fcn.00011aba
mov edi, eax
xor dl, dl
mov ecx, esi
mov dword [esi + 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x11c1a
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov ebx, 0x1000
push edi
mov dword [ebp - 4], esi
mov edi, ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
test esi, esi
je 0x11c47
push 0x5446434c
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0x5446434c
push edi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
test esi, esi
je 0x11c77
push edi
push 0
push esi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 5
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [ebp - 4], eax
add edi, ebx
cmp dword [ebp - 4], 0xc0000004
je 0x11c37
cmp dword [ebp - 4], 0
jl 0x11ce1
test esi, esi
je 0x11ce1
add edi, esi
mov eax, esi
mov dword [ebp - 4], edi
cmp esi, edi
jae 0x11cd5
mov edi, dword [eax + 4]
xor ecx, ecx
test edi, edi
jbe 0x11cc8
lea edx, [eax + 0xdc]
mov ebx, dword [edx]
cmp ebx, dword [ebp + 8]
je 0x11cb7
inc ecx
add edx, 0x40
cmp ecx, edi
jb 0x11ca6
jmp 0x11cc8
shl ecx, 6
mov ecx, dword [ecx + eax + 0xd4]
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x11cd5
mov ecx, dword [eax]
test ecx, ecx
je 0x11cd5
add eax, ecx
cmp eax, dword [ebp - 4]
jb 0x11c97
push 0x5446434c
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1206c
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push dword [ebp + 8]
mov byte [ebp - 4], 0xc7
mov byte [ebp - 3], 0x46
mov byte [ebp - 2], 0x74
xor ebx, ebx
call sub.ntoskrnl.exe_RtlImageNtHeader
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x120e4
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
push esi
mov dword [ebp - 8], ecx
mov dword [ebp + 8], ebx
push edi
mov edx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push 3
add esi, edx
pop ecx
lea edi, [ebp - 4]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x120d6
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ecx + edx + 3]
sub ebx, dword [eax + 0x34]
push eax
push dword [ebp - 8]
push ebx
call fcn.0001238c
test al, al
jne 0x120e2
mov eax, dword [ebp - 0xc]
xor ebx, ebx
inc dword [ebp + 8]
cmp dword [ebp + 8], 0x200
jb 0x120a2
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc

Function at 0x123be
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, 0x1000
mov dword [ebp - 8], edi
mov esi, 0x5446434c
test edi, edi
je 0x123e6
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push esi
push ebx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
test edi, edi
je 0x12412
push ebx
push 0
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ebx
push edi
push 0xb
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov dword [ebp - 4], eax
add ebx, 0x1000
cmp dword [ebp - 4], 0xc0000004
je 0x123da
cmp dword [ebp - 4], 0
jge 0x12435
test edi, edi
je 0x12435
push esi
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x125c8
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call sub.ntoskrnl.exe_RtlImageNtHeader
test eax, eax
je 0x125e2
mov esi, dword [eax + 0x28]
add esi, dword [ebp + 8]
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x126bc
Capabilities:
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push esi
xor esi, esi
push esi
push esi
push 0x20
push 1
push 1
push esi
mov dword [ebp - 0x24], eax
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x80100000
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x200
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jl 0x12761
push edi
push dword [ebp - 8]
lea eax, [ebp - 4]
push 0x8000000
push 2
push esi
push esi
push 4
push eax
call dword [sym.imp.ntoskrnl.exe_ZwCreateSection]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
test eax, eax
jl 0x1275b
push 2
push esi
push 2
push dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push esi
push esi
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwMapViewOfSection]
test eax, eax
jge 0x12756
mov dword [ebp - 0xc], esi
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call edi
pop edi
mov eax, dword [ebp - 0xc]
pop esi
leave
ret 8

Function at 0x12788
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call sub.ntoskrnl.exe_RtlImageNtHeader
test eax, eax
je 0x127b3
movzx ecx, word [eax + 0x14]
push eax
lea eax, [ecx + eax + 0x18]
push eax
push dword [ebp + 0xc]
call fcn.0001235c
mov esi, eax
add esi, dword [ebp + 8]
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x12820
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
push dword [ebp + 0x14]
xor edi, edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call fcn.00012312
cmp eax, edi
je 0x1289f
push ebx
push esi
mov esi, dword [eax + 0x10]
push dword [ebp + 0x14]
add esi, dword [eax + 0xc]
push dword [ebp + 8]
sub esi, dword [ebp + 0x14]
call fcn.00012788
mov ebx, eax
cmp ebx, edi
je 0x1289d
add esi, 0xfffffff9
cmp edi, esi
jae 0x1289d
cmp byte [ebx + edi], 0xe9
jne 0x12897
mov al, byte [ebx + edi + 5]
cmp al, 0x90
je 0x12873
cmp al, 0xcc
jne 0x12897
push dword [ebp + 0xc]
mov eax, dword [ebx + edi + 1]
mov ecx, dword [ebp + 0x14]
push dword [ebp + 0x10]
add eax, edi
lea eax, [eax + ecx + 5]
push eax
mov dword [ebp - 4], eax
call fcn.0001238c
test al, al
jne 0x1289d
and dword [ebp - 4], 0
inc edi
cmp edi, 0x59
jb 0x1285d
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 0x10
Function at 0x129fa
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor edi, edi
call sub.ntoskrnl.exe_RtlImageNtHeader
mov esi, eax
test esi, esi
je 0x12a44
movzx eax, word [esi + 0x14]
push ebx
push dword [ebp + 8]
lea ebx, [eax + esi + 0x18]
call fcn.000125c8
mov edi, eax
test edi, edi
je 0x12a43
sub edi, dword [ebp + 8]
push esi
push ebx
push edi
push ebx
push esi
push dword [ebp + 8]
call fcn.00012820
push eax
call fcn.0001235c
add eax, dword [ebp + 8]
mov edi, eax
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x12a52
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
call fcn.000128ac
mov dword [ebp - 8], eax
cmp eax, edi
je 0x12aab
push esi
push eax
call sub.ntoskrnl.exe_RtlImageNtHeader
mov esi, eax
cmp esi, edi
je 0x12aaa
movzx eax, word [esi + 0x14]
push ebx
push dword [ebp + 8]
lea ebx, [eax + esi + 0x18]
call fcn.000125c8
mov edi, eax
test edi, edi
je 0x12aa9
sub edi, dword [ebp + 8]
push edi
push ebx
push esi
push dword [ebp - 8]
call fcn.00012820
add eax, dword [ebp + 8]
mov edi, eax
pop ebx
pop esi
mov eax, edi
pop edi
leave
ret 4
Function at 0x4f3770
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x4f37a2
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x4f379d
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
add byte [eax], al
add byte [eax], al
jne 0x4f3787
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x4f378f
cmp edx, ebx
jne 0x4f38dd
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x4f375e
add eax, dword [eax + 4]
jmp 0x4f374b
mov dword [ebp + 0xc], ebx
jmp 0x4f37ad
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4f37c5
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4f37e3
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4f3841
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4f3828
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4f3831
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4f383b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4f381d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4f37a7
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x4f3bd0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x534]
push eax
call fcn.004f30fe
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004f30b3
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.004f30ee
push 0x4d
stc
and byte [ebp - 0x664], 0
inc dword [eax]
and byte [ebp - 0x663], 0
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.004f30fe
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004f30b3
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
invalid
invalid
Function at 0x4f3c00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x534]
push eax
call fcn.004f30fe
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004f30b3
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.004f30ee
push 0x4d
stc
and byte [ebp - 0x664], 0
inc dword [eax]
and byte [ebp - 0x663], 0
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.004f30fe
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004f30b3
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
invalid
invalid

Function at 0x4f49e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.004f30fe
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004f30b3
add esp, 0xc
mov dword [ebp - 0x704], eax
and byte [ebp - 0x6f4], 0
and byte [ebp - 0x6f3], 0
mov byte [ebp - 0x6f2], 0x43
and byte [ebp - 0x6f1], 0
mov byte [ebp - 0x6f0], 0xeb
mov byte [ebp - 0x6ef], 0xce
mov byte [ebp - 0x6ee], 0xd5
mov byte [ebp - 0x6ed], 0xc8
mov byte [ebp - 0x6ec], 0xd9
invalid
invalid
invalid
stc
invalid

Function at 0x4f9d50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x5979d8]
test eax, eax
jne 0x4f9d66
call fcn.0044ef40
mov dword [0x5979d8], eax
mov eax, dword [eax + 0x140]
cmp eax, 2
jne 0x4f9d89
mov eax, dword [0x5979d8]
mov ecx, dword [eax + 0x140]
cmp ecx, 2
jne 0x4f9d89
mov eax, dword [eax + 0x88]
jmp 0x4f9d8b
xor eax, eax
test eax, eax
je 0x4f9d92
pop ebp
jmp eax
pop ebp
jmp dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
Function at 0x40654e
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 0x40656f
jl 0x406566
test edi, edi
jne 0x40656f
xor eax, eax
xor edx, edx
jmp 0x406630
cmp dword [ebx + 0x38], 0
je 0x406584
push eax
push edi
push dword [ebp + 8]
call fcn.00402584
jmp 0x406630
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4065cb
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4065cb
cmp eax, edi
jb 0x4065a5
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408890
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 0x4065d1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x406625
mov ecx, ebx
call fcn.00405e71
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x406610
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040ecee
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 0x406625
jmp 0x4065e3
test edx, edx
je 0x406625
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040ecee
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 0x408064
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004081d0
mov eax, dword [0x430040]
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.00415287
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x418186
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4182fd
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004232c0
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 + 0x431a18]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041918a
mov ecx, dword [esi*4 + 0x431a18]
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 0x4182f6
cmp eax, dword [edi + ecx + 0x24]
jne 0x4182f6
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 0x4182f6
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041918a
add esp, 0x14
cmp edx, esi
jl 0x4182f6
jg 0x418251
cmp eax, esi
jb 0x4182f6
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x4182f6
jl 0x418273
cmp dword [ebp - 0x1008], eax
ja 0x4182f6
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 0x418298
cmp ebx, esi
je 0x4182dd
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x4182dd
mov al, byte [ecx]
cmp al, 0xd
jne 0x4182be
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4182ca
cmp byte [ecx + 1], 0xa
jne 0x4182ca
inc ecx
jmp 0x4182ca
movzx eax, al
movsx eax, byte [eax + 0x430300]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4182a4
cmp edx, ebx
jne 0x4182a4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x4182fb
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004071e3
leave
ret
Function at 0x41857c
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x418596
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x4185ad
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x418605
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0041bfc7
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x418605
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x418605
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x418605
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x4185ff
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x418601
xor bl, bl
mov al, bl
jmp 0x418607
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x418616
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 + 0x431a18]
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 0x418658
cmp byte [ebx], 0xa
jne 0x418658
or byte [edi + eax + 0x28], 4
jmp 0x41865d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x418760
mov cl, byte [eax]
cmp cl, 0x1a
je 0x41873b
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x41868c
mov eax, dword [ebp - 8]
jmp 0x4186ac
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x4186c8
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x4186a6
add eax, 2
mov cl, 0xa
jmp 0x4186a9
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 0x41866e
jmp 0x418760
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 0x418736
cmp dword [ebp - 0x10], 0
je 0x418736
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x431a18]
test byte [eax + edi + 0x28], 0x48
je 0x418715
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x418705
mov byte [esi], 0xa
jmp 0x41875f
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x431a18]
mov byte [eax + edi + 0x2a], cl
jmp 0x41875f
cmp byte [ebp - 1], 0xa
jne 0x41871f
cmp esi, ebx
je 0x418700
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004191a8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x418760
mov byte [esi], 0xd
jmp 0x41875f
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x431a18]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x41875d
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x418760
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret