joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5868f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468af8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [fcn.0046a3c8]
push 0
lea ecx, [esp + 0x20]
call 0x5aca42
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00586290
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call 0x5ac970
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call 0x5a9236
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call 0x5a9236
push 1
push 0
push 0
mov ecx, esi
call 0x5a91de
push 1
push 0
push 1
mov ecx, esi
call 0x5a91de
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x5acab4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x586a70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468b18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call 0x5aca42
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00586290
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call 0x5ac970
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [fcn.0046a3c8]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x586b34
cmp dword [esp + 0x40], 1
jne 0x586b32
cmp ecx, eax
jge 0x586b34
mov eax, ecx
cmp eax, 0xc8
jge 0x586b40
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.005868f0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [fcn.0046a3cc]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call 0x5acab4
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x5872b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468b83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call 0x5a7652
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x518098
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x517160
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x46a0b0]
push eax
mov ecx, edi
call 0x5accea
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call 0x5ae206
test eax, eax
je 0x5873cc
mov ecx, dword [esp + 0x3c]
call 0x5acd17
mov ecx, dword [esi + 0x1c]
mov ebp, dword [fcn.0046a3a8]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x587390
push edi
mov ecx, esi
call 0x5aa381
mov ecx, esi
call fcn.00587530
cmp dword [esp + 0x38], 1
jne 0x5873c5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call 0x5aa4bc
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x589e00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x589e33
push esi
call fcn.0058cef0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x589e2c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x589eb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x589ea2
mov eax, dword [esi + 8]
test eax, eax
je 0x589e57
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x589e9e
cmp eax, 2
je 0x589ea2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x589e4a
cmp eax, 3
je 0x589e7d
cmp eax, 1
jne 0x589e4a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x589e4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x589e4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00589ee0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x589ec8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00589ee0
add esp, 4
pop esi
ret
Function at 0x410280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x41029c
mov dword [eax], ecx
jmp 0x41029e
mov eax, ecx
push ecx
push ecx
push esi
push 0x410310
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret

Function at 0x410fbe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x410fcd
pop dword [ebp - 0x20]
mov eax, 0xcb3483e9
add eax, 0x350c8be4
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x69655f6e
add dword [ebp - 0x30], 0xe4ece5dd
mov dword [ebp - 0x2c], 0x6ea76cc1
add dword [ebp - 0x2c], 0xc38bdf84
mov dword [ebp - 0x28], 0xc63d9fcc
sub dword [ebp - 0x28], 0x79f15b9e
mov dword [ebp - 0x24], 0xe8aa18f9
add dword [ebp - 0x24], 0x1755e707
lea eax, [ebp - 0x30]
push eax
mov eax, 0xc6ea83ef
add eax, 0x3956aca1
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xe46505d9
add dword [ebp - 0x30], 0x900d637d
mov dword [ebp - 0x2c], 0x1b4a58ef
add dword [ebp - 0x2c], 0x26220886
mov dword [ebp - 0x28], 0xe35ffc99
add dword [ebp - 0x28], 0x800f6fd3
mov dword [ebp - 0x24], 0xafc6ec2d
sub dword [ebp - 0x24], 0xafc6ec2d
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3c39c
push 0
call eax
mov ecx, 0x4ec5
xor esi, esi
add esi, eax
mov edx, 0x41a000
add edx, dword [ebp - 0x20]
mov edi, 0xe8b12e2b
xor dword [ebp - 0x1c], ebx
mov ebx, dword [edx]
add ebx, edi
mov dword [ebp - 0x10], 0x5aa50d5b
mov dword [esi], ebx
xor dword [ebp - 0x18], 0xf5755488
add esi, 4
add edx, 4
loop 0x4110da
add eax, 0x12de7
xor ebx, ebx
add ebx, eax
add eax, 0xd8f1fb2a
sub eax, 0xd8f1fb25
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x438c9a
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop edi
and esi, esi
call fcn.00438ccf
add esi, 0x59df4869
sub esi, 0x7f7fa8c6
xor dword [edx], edi
push eax
pop esi
sub eax, esi
sub esi, 0x6c4718e1
inc edx
or esi, eax
inc eax
cmp edx, ecx
jne fcn.00438c9a
and esi, esi
sub eax, eax
or esi, eax
ret
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0xb42a48
Capabilities:
Encode data using xor

Disassembly:
jmp 0xb42a52
pushal
call 0xb42a58
pop ebp
sub ebp, 0x10
sub ebp, 0x742a48
jmp 0xb42a6e
mov eax, 0x742a48
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b9
mov edx, 0x972c21d8
xor byte [eax], dl
inc eax
dec ecx
jne 0xb42a85
jmp 0xb42a98
push ebx
adc eax, 0xd8e45153
fcomp st(0)
pop ecx
sbb dword [eax], esp
fcomp st(0)
fcomp st(3)
adc eax, 0xd8d8df60
fsub dword [edx - 0x10]
fcomp st(0)
fsubr dword [edi]
cmp bl, bl
adc byte [ebx + 0x59], dl
aam 0xd8
fcomp st(0)
fistp dword [0xb0b08888]
stosd dword es:[edi], eax
salc
fdiv dword [eax - 0x274291c8]
fxtract
cld
mov al, 0x35
cmpsd dword [esi], dword es:[edi]
or eax, 0xd8dd3055
fcomp st(0)
xor eax, esi
fcomp st(0)
fmul dword [ebp + 0x5d53858c]
rcr al, 1
fcomp st(0)
push ebx
dec ebp
aam 0xd8
fcomp st(0)
push ebx
push ebp
enter 0xffffffffffffd8d8, 0xffffffffffffffd8
sbb dword [ecx], esi
fucompp
ficomp dword [ebx + 0x1a]
fcom qword [ecx + 0x272c5dd7]
daa
daa
test dword [edx], ebx
aam 0xd8
push ebx
push esp
cld
invalid
Function at 0x40f0d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47afb8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x49b058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x74], esi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x78], esi
call fcn.0040eee0
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov dword [ebp - 4], 0
mov dword [esi + 0x1c], 0x47e438
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
cmp byte [0x49ce55], 0
mov byte [ebp - 4], 1
je 0x40f1c8
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x40f159
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x28]
push str.Reading__s
push eax
call fcn.0041cc60
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov ecx, eax
mov byte [ebp - 4], 2
jb 0x40f179
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push 0x49d330
call fcn.0040e540
push eax
call fcn.0040ea60
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov byte [ebp - 4], 1
cmp ecx, 0x10
jb 0x40f1c8
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f1be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f2e4
push ecx
push edx
call fcn.004222be
add esp, 8
xorps xmm0, xmm0
mov dword [ebp - 0x18], 2
mov eax, 0x6272
mov dword [ebp - 0x14], 0xf
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
push edi
lea ecx, [ebp - 0x60]
call fcn.0041f760
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp ecx, 0x10
jb 0x40f22f
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40f225
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f2e9
push ecx
push edx
call fcn.004222be
add esp, 8
lea eax, [ebp - 0x61]
mov dword [ebp - 0x18], 0
push eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.0041fef0
push eax
lea ecx, [ebp - 0x70]
call fcn.0040f040
push dword [ebp - 0x5c]
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
sub eax, ecx
push eax
push 1
push ecx
mov byte [ebp - 4], 6
call fcn.0043d31b
push dword [ebp - 0x5c]
call fcn.0043d116
add esp, 0x14
test eax, eax
jne 0x40f2ee
and byte [ebp - 0x34], 0xf8
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x38], eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x14], al
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], 7
movups xmmword [ebp - 0x30], xmm0
mov byte [ebp - 0x18], 1
call fcn.00410fa0
mov ecx, esi
call fcn.00412ae0
lea ecx, [ebp - 0x70]
call fcn.0040fd00
lea ecx, [ebp - 0x60]
call fcn.0041f820
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004222d1
mov esp, ebp
pop ebp
ret 8
call fcn.0043d0aa
call fcn.0043d0aa
push edi
push eax
lea ecx, [ebp - 0x20]
call fcn.0040f350
push 0x496d60
lea eax, [ebp - 0x20]
push eax
call fcn.0043917d
int3
Function at 0x416a60
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x14]
test eax, eax
jg 0x416a81
jl 0x416a77
test esi, esi
jne 0x416a81
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ecx
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x416b34
mov ebp, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
nop dword [eax]
mov ecx, ebx
call fcn.004153e0
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x416af1
jg 0x416ab9
test esi, esi
je 0x416af1
cmp ebp, eax
jg 0x416ac9
jl 0x416ac3
cmp edi, esi
jae 0x416ac9
mov esi, edi
mov dword [esp + 0x10], ebp
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push dword [esp + 0x20]
call fcn.004395d0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
sub edi, esi
sbb ebp, dword [esp + 0x10]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x18]
jmp 0x416b10
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x416b20
mov eax, dword [esp + 0x18]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [eax], cl
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
jg 0x416aa0
jl 0x416b20
test edi, edi
jne 0x416aa0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
pop ecx
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x18]
mov edx, dword [eax]
test edx, edx
je 0x416b79
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x416b80
mov edi, dword [esp + 0x1c]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.004395d0
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x1c]
jmp 0x416b80
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x416be9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x416baa
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x416bd4
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.0043d31b
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x416be9
cmp edi, eax
ja 0x416bb2
test edi, edi
je 0x416be9
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.0043d31b
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x20]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
pop ecx
ret 0xc
Function at 0x422f2a
Capabilities:
Parse pe header

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

Function at 0x44677e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00422560
mov eax, dword [0x49b058]
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.00446068
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4467c0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44691c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00472bb0
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 + 0x49db50]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0044ff6f
mov ecx, dword [esi*4 + 0x49db50]
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 0x446915
cmp eax, dword [ecx + edi + 0x24]
jne 0x446915
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 0x446915
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044ff6f
add esp, 0x14
test edx, edx
jl 0x446915
jg 0x44688b
test eax, eax
jb 0x446915
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x446915
jl 0x4468a5
cmp dword [ebp - 0x1008], eax
ja 0x446915
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4468c3
test ebx, ebx
je 0x4468fc
cmp ecx, edi
jae 0x4468fc
mov al, byte [ecx]
cmp al, 0xd
jne 0x4468dd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4468e9
cmp byte [ecx + 1], 0xa
jne 0x4468e9
inc ecx
jmp 0x4468e9
movzx eax, al
movsx eax, byte [eax + 0x49b2e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4468c3
cmp edx, ebx
jne 0x4468c3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x44691a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004222d1
leave
ret
Function at 0x44cfeb
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 + 0x49db50]
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 0x44d02b
cmp byte [ebx], 0xa
jne 0x44d02b
or byte [edi + eax + 0x28], 4
jmp 0x44d030
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 0x44d12f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x44d112
inc eax
cmp dl, 0xd
je 0x44d05c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x44d082
cmp eax, ecx
jae 0x44d090
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 0x44d044
jmp 0x44d12f
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 0x44d10d
cmp dword [ebp - 0x10], 0
je 0x44d10d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x49db50]
test byte [eax + edi + 0x28], 0x48
je 0x44d0e7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44d0d2
mov byte [esi], dl
jmp 0x44d0e3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x49db50]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44d12f
cmp byte [ebp - 1], 0xa
jne 0x44d0f6
cmp esi, ebx
jne 0x44d0f6
mov byte [esi], 0xa
jmp 0x44d12e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044ff8d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44d12f
mov byte [esi], 0xd
jmp 0x44d12e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x49db50]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44d12c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44d12f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret