joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408a15
Capabilities:
Check os version
Enumerate processes
Get common file path
Link many functions at runtime

Disassembly:
push esi
mov esi, eax
mov eax, dword [edi + 4]
cmp dword [esi], eax
je 0x408a32
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi], eax
je 0x408a32
and dword [ebx], 0
xor eax, eax
inc eax
pop esi
ret
mov esi, dword [esi + 8]
lea ecx, [esi + 0xd5]
xor eax, eax
cmp ecx, 0xd
ja case.0x408a42.211
jmp dword [ecx*4 + 0x408a65]
mov eax, edi
call fcn.00445c1f
neg eax
sbb eax, eax
neg eax
dec eax
pop esi
ret
mov ecx, edi
pop esi
jmp fcn.00447ddd
mov dword [ebx], eax
pop esi
ret

Function at 0x409c77
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x409c85
push 0xd
pop eax
jmp 0x409cb8
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x409c8c
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x409cd1
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc
Function at 0x40a10c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x463060]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.0040a0d9
mov ebx, eax
cmp ebx, esi
je 0x40a177
lea esi, [ebp - 0x214]
call fcn.0040a226
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042bd77
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40a195
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040a10c
cmp eax, esi
jne 0x40a1dd
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x40a17f
lea esi, [ebp - 0x214]
call fcn.0040a226
push dword [ebp - 0x21c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea esi, [ebp - 0x214]
mov edi, eax
call fcn.0040a226
mov eax, edi
jmp 0x40a166
Function at 0x40b6e1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b745
cmp dword [ebp + 0xc], 1
je 0x40b71d
cmp dword [ebp + 0xc], 2
je 0x40b71d
push 0xd
pop eax
jmp 0x40b745
mov eax, dword [ebp - 4]
test edi, edi
je 0x40b73f
test eax, eax
je 0x40b73a
test al, 1
jne 0x40b718
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40b73f
jmp 0x40b718
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x40bb10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x44ec27
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x463060]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi], vtable.NKZ::CKZArchive.0
mov dword [esi + 4], vtable.NKZ::CKZArchive.1.0
mov dword [esi + 0xc], ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x70], 7
mov dword [esi + 0x6c], ebx
xor eax, eax
mov word [esi + 0x5c], ax
xor ecx, ecx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov word [esi + 0x52], cx
mov byte [esi + 0x41], bl
mov byte [esi + 0x42], bl
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], bl
mov dword [esi + 0x49], eax
mov dword [esi + 0x4d], eax
xor edx, edx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov word [esi + 0x80], dx
mov word [esi + 0x54], ax
mov byte [esi + 0x40], bl
lea ecx, [esi + 0x88]
push ecx
mov byte [esp + 0x18], 4
call fcn.0040e1c0
mov dword [esi + 0xa0], vtable.NKZ::CBuffer_unsigned_char_.0
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc4], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40eae0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x16c
mov eax, dword [0x463060]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push ebp
mov ebp, dword [esp + 0x178]
push edi
cmp esi, 0xffffffff
je 0x40ecae
test ebp, ebp
je 0x40ecae
mov edi, dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
xor ecx, ecx
push ecx
push ecx
push ecx
xor eax, eax
push eax
push esi
call edi
test eax, eax
jne 0x40eb41
call fcn.004096e7
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0042bd77
add esp, 0x16c
ret
push 0x40
lea eax, [esp + 0x134]
push 0
push eax
call fcn.0042e560
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x40
lea edx, [esp + 0x13c]
push edx
push esi
mov dword [esp + 0x20], 0
call ebx
test eax, eax
je 0x40eb24
cmp dword [esp + 0xc], 0x40
je 0x40eb9f
mov eax, 0x80004005
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0042bd77
add esp, 0x16c
ret
mov eax, dword [esp + 0x16c]
push 0
cdq
push 0
push edx
push eax
push esi
call edi
test eax, eax
je 0x40eb24
push 0xf8
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0042e560
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xf8
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
test eax, eax
je 0x40eb24
cmp dword [esp + 0xc], 0xf8
jne 0x40eb82
movzx eax, word [esp + 0x16]
dec eax
lea eax, [eax + eax*4]
push 1
add eax, eax
xor ecx, ecx
push ecx
add eax, eax
push ecx
add eax, eax
push eax
push esi
call edi
test eax, eax
je 0x40eb24
xor eax, eax
push eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
lea eax, [esp + 0x10]
push eax
push 0x28
lea ecx, [esp + 0x114]
push ecx
push esi
call ebx
test eax, eax
je 0x40eb24
cmp dword [esp + 0xc], 0x28
jne 0x40eb82
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x118]
add eax, edx
mov dword [ebp], eax
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0042bd77
add esp, 0x16c
ret
mov ecx, dword [esp + 0x174]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x80070057
call fcn.0042bd77
add esp, 0x16c
ret
Function at 0x40ecd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
je 0x40edd8
cmp eax, ebx
je 0x40edd8
cmp word [eax], bx
je 0x40edd8
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x40ed02
mov dword [ecx], ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ed28
call fcn.004096e7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [esp + 0x18]
push eax
push 4
push edi
push esi
mov dword [edi], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40ed59
call fcn.004096e7
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0x4d
jne 0x40edc8
cmp byte [edi + 1], 0x5a
jne 0x40edc8
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], ebx
call fcn.0040eae0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40ed8b
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x40ed42
mov eax, dword [ebp + 8]
mov dword [edi], 0
test eax, eax
je 0x40edaf
mov dword [eax], ebx
push 0
lea edx, [esp + 0x18]
push edx
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x40ed42
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f080
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40f08f
mov dword [esi], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [eax + 8]
push edx
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40f0c3
call fcn.004096e7
pop esi
ret 0x10
test esi, esi
je 0x40f0cd
mov edx, dword [esp + 0x14]
mov dword [esi], edx
xor eax, eax
pop esi
ret 0x10

Function at 0x40f140
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x40f158
mov eax, 0x80070057
pop esi
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
lea eax, [esp + 4]
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
jne 0x40f17b
call fcn.004096e7
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esi], eax
mov dword [esi + 4], ecx
xor eax, eax
pop esi
add esp, 8
ret 8
Function at 0x4146c0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x88
mov eax, dword [0x463060]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
push ebx
xor ebx, ebx
push ebp
xor ecx, ecx
mov dword [esp + 0x14], eax
xor eax, eax
push esi
push edi
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x8c], bl
mov dword [esp + 0x8d], eax
mov word [esp + 0x91], ax
mov byte [esp + 0x93], al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jmp 0x414764
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0xa4]
mov edi, dword [esp + 0xa0]
mov esi, ecx
and esi, 0x3f
cmp ebp, ebx
jbe 0x4147aa
jmp 0x414780
mov cl, byte [edi]
mov byte [esp + esi + 0x48], cl
inc esi
inc edi
add dword [esp + 0x40], 1
adc dword [esp + 0x44], ebx
dec ebp
cmp esi, 0x40
jne 0x4147a2
lea edx, [esp + 0x20]
xor esi, esi
call fcn.00419af0
cmp ebp, ebx
ja 0x414780
mov ecx, dword [esp + 0x40]
and ecx, 0x3f
mov ebp, 8
lea edi, [esp + 0x8c]
mov esi, ecx
jmp 0x4147c0
mov dl, byte [edi]
mov byte [esp + esi + 0x48], dl
inc esi
inc edi
add dword [esp + 0x40], 1
adc dword [esp + 0x44], ebx
dec ebp
cmp esi, 0x40
jne 0x4147e2
lea edx, [esp + 0x20]
xor esi, esi
call fcn.00419af0
cmp ebp, ebx
ja 0x4147c0
xor eax, eax
jmp 0x4147f0
add byte [esp + eax + 0x8c], 1
jne 0x414800
inc eax
cmp eax, 8
jl 0x4147f0
add dword [esp + 0x10], 1
adc dword [esp + 0x14], ebx
jne 0x414819
cmp dword [esp + 0x10], 0x80000
jb 0x414760
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x20]
call fcn.00419bb0
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042bd77
add esp, 0x88
ret 0xc
Function at 0x419f70
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
lea ebp, [ebx + 0x1c]
shr ebx, 2
mov eax, ebx
shr eax, 1
add eax, 3
push esi
mov dword [ecx], eax
add ecx, 0x10
xor esi, esi
mov dword [esp + 0xc], ebp
test ebx, ebx
jbe 0x419fa1
mov eax, dword [edx]
mov dword [ecx + esi*4], eax
inc esi
add edx, 4
cmp esi, ebx
jb 0x419f94
cmp esi, ebp
jae 0x41a092
mov edx, esi
sub edx, ebx
lea eax, [ecx + edx*4]
mov dword [esp + 0x14], eax
push edi
xor edx, edx
mov eax, esi
div ebx
mov edi, dword [ecx + esi*4 - 4]
test edx, edx
jne 0x41a01e
movzx eax, byte [eax + 0x4645b4]
mov edx, edi
and edx, 0xff
movzx edx, byte [edx + str.cw]
mov ebp, edi
shr ebp, 0x18
movzx ebp, byte [ebp + str.cw]
shl edx, 8
or edx, ebp
mov ebp, edi
shr ebp, 0x10
shr edi, 8
and ebp, 0xff
movzx ebp, byte [ebp + str.cw]
and edi, 0xff
movzx edi, byte [edi + str.cw]
shl edx, 8
or edx, ebp
mov ebp, dword [esp + 0x10]
shl edx, 8
xor edi, eax
or edi, edx
jmp 0x41a076
cmp ebx, 6
jbe 0x41a076
cmp edx, 4
jne 0x41a076
mov edx, edi
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl edx, 8
or eax, edx
mov edx, edi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl eax, 8
and edi, 0xff
or eax, edx
movzx edx, byte [edi + str.cw]
shl eax, 8
or eax, edx
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
xor edx, edi
mov dword [ecx + esi*4], edx
inc esi
add eax, 4
mov dword [esp + 0x18], eax
cmp esi, ebp
jb 0x419fb5
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x41acc0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 8
push ebp
mov ebp, dword [edx]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x41acd9
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], edx
jmp 0x41ad00
mov ecx, dword [esp + 0x1c]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x41ad1d
jmp 0x41ad10
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41ad1d
inc edi
cmp edi, edx
jb 0x41ad10
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x10]
cmp edi, edx
jae 0x41ae32
cmp ecx, 3
jbe 0x41ad51
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x10], eax
test cl, cl
je 0x41ad8b
cmp cl, 0xff
je 0x41ad8b
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x41ad00
dec ecx
shl ebp, cl
and ebp, 7
je 0x41ad36
movzx ecx, byte [ebp + 0x4589f8]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x4589f0], 0
mov cl, byte [ebx + 4]
je 0x41ad79
test cl, cl
je 0x41ad79
cmp cl, 0xff
jne 0x41ad36
and ebp, 3
add ebp, ebp
mov dword [esp + 0x10], eax
or ebp, 1
inc eax
jmp 0x41ad00
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x41adbe
lea ebx, [edx + eax]
add ebx, esi
jmp 0x41adc4
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x41ae04
movzx esi, byte [ebp + 0x4589f8]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x41ade9
cmp dl, 0xff
jne 0x41ae00
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x41adb0
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x14]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x41ad00
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x41ae47
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
add esp, 8
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
add esp, 8
ret
Function at 0x41e8e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44e5d1
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push edi
mov eax, dword [0x463060]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov dword [edi + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 2
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x30], esi
je 0x41e952
cmp esi, ebx
je 0x41e940
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x41e94f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x30], esi
cmp dword [edi + 0x2c], ebp
je 0x41e976
cmp ebp, ebx
je 0x41e964
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
push ebp
call ecx
mov eax, dword [edi + 0x2c]
cmp eax, ebx
je 0x41e973
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0x2c], ebp
mov eax, dword [edi + 0x14]
sub eax, 1
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ebx
mov byte [edi + 8], bl
je 0x41e9a5
sub eax, 1
mov eax, edi
jne 0x41e9ac
call fcn.0041ec10
jmp 0x41e9aa
call fcn.0041eb70
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x41e9d0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44e421
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x463060]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, 2
mov dword [esp + 0x14], eax
cmp dword [esi + 0x14], eax
jne 0x41ea49
cmp dword [esi + 0x10], 1
jne 0x41ea49
mov edi, dword [esi]
cmp byte [edi], 0
jne 0x41ea49
mov eax, dword [edi + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 4]
push eax
push ecx
mov byte [edi + 0x18], 0
call fcn.0042cb15
mov dword [edi + 4], eax
mov dword [esi + 0xc], eax
call fcn.00434d26
mov edx, dword [esi + 0x18]
add eax, 0x20
push eax
mov eax, dword [esi + 0xc]
push edx
push 1
push eax
call fcn.0042d79b
add esp, 0x18
cmp dword [esi + 0x14], 0
jne 0x41ea72
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x41eab5
mov edx, dword [esi + 0x34]
test edx, edx
je 0x41eab5
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x41eab5
mov edi, dword [eax]
push 0
push ecx
mov ecx, dword [edi + 0xc]
push edx
push eax
call ecx
jmp 0x41eab5
cmp dword [esi + 0x10], 0
jne 0x41ea94
cmp byte [esi + 8], 0
je 0x41ea8a
mov edx, dword [esi + 0xc]
push edx
call fcn.0042c825
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x41eab5
push eax
jmp 0x41eaad
mov edi, dword [esi]
test edi, edi
je 0x41eab5
cmp byte [edi + 0x18], 0
je 0x41eaac
mov eax, dword [edi + 4]
push eax
call fcn.0042c825
add esp, 4
push edi
call fcn.0042bd6c
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x41eacc
push eax
call fcn.0042cb0a
add esp, 4
mov dword [esi + 0x34], 0
mov byte [esp + 0x14], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x41eae0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x41eaf7
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x41ec10
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
mov edi, eax
xor ebx, ebx
cmp dword [edi + 0x10], ebx
jne 0x41ed02
push ebp
push esi
push 0x1c
call fcn.0042be1e
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x41ec5a
mov eax, 0x10000
push eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov byte [esi], bl
mov byte [esi + 0x18], 1
mov dword [esi + 8], eax
call fcn.0042c902
add esp, 4
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x41ec5c
mov byte [esi], 1
jmp 0x41ec5c
xor esi, esi
push 1
push 0x100000
call fcn.0043e977
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x41ecb1
call fcn.00434d26
push eax
push 0x100000
push 1
push ebp
call fcn.0042e11b
add esp, 0x10
cmp eax, ebx
jle 0x41ecb1
jmp 0x41ec90
mov ecx, ebp
call fcn.0041e7f0
call fcn.00434d26
push eax
push 0x100000
push 1
push ebp
call fcn.0042e11b
add esp, 0x10
cmp eax, ebx
jg 0x41ec90
cmp byte [esi], bl
je 0x41ecbd
mov dword [edi + 0xc], ebx
mov dword [edi + 0x18], ebx
jmp 0x41ecdc
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 4]
push eax
push ecx
mov byte [esi + 0x18], bl
call fcn.0042cb15
mov dword [esi + 4], eax
mov dword [edi + 0xc], eax
mov edx, dword [esi + 0x14]
add esp, 8
mov dword [edi + 0x18], edx
cmp byte [esi + 0x18], bl
je 0x41eced
mov eax, dword [esi + 4]
push eax
call fcn.0042c825
add esp, 4
push esi
call fcn.0042bd6c
push ebp
call fcn.0042c825
add esp, 8
pop esi
mov byte [edi + 8], 1
pop ebp
call fcn.0041eb70
pop edi
pop ebx
ret