joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43326b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [esi + 4]
cmp ecx, 0xffffffff
je 0x43329f
mov eax, dword [esi + 0xc]
test eax, eax
je 0x43329f
push 0
lea edx, [ebp - 4]
push edx
push eax
push dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43329b
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0xc]
je 0x43329f
xor eax, eax
leave
ret
and dword [esi + 0xc], 0
xor eax, eax
inc eax
leave
ret

Function at 0x433328
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
push edi
mov eax, esi
call fcn.004333a5
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov edi, 0x80
push edi
push 2
push 0
push 1
push 0x40000000
push ebx
call ebp
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x433392
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x43338e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push edi
push 2
push 0
push 1
push 0x40000000
push ebx
call ebp
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x433392
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x4333a2
push ebx
call fcn.0045d7de
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
pop ecx
mov dword [esi + 0x18], eax
pop edi
pop ebp
ret

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

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x43351f
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x4335d1
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x487c20]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x487c20]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x487c20]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x487c20]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x487c20]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x487c20]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x487c20]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x487c20]
inc ecx
sub edi, 8
dec esi
jne 0x433536
pop ebx
test edi, edi
je 0x4335ea
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x487c20]
inc ecx
dec edi
jne 0x4335d5
pop esi
not eax
pop edi
ret
Function at 0x43c5fb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x43c603
mov dword [ecx*4 + 0x4a7180], eax
inc ecx
cmp ecx, 0x100
jb 0x43c5fe
mov edx, 0x800
jmp 0x43c650
mov eax, dword [ecx*4 + 0x4a6d80]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4a7180]
inc ecx
mov dword [ecx*4 + 0x4a717c], eax
cmp ecx, edx
jb 0x43c62f
mov eax, 0x43e95a
mov esi, 0x43e9f6
mov dword [0x4a717c], eax
mov dword [0x4a9180], eax
mov dword [0x4a7178], esi
call fcn.0043eb91
test eax, eax
jne 0x43c67d
mov dword [0x4a9180], esi
pop esi
ret

Function at 0x43fd84
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
push edi
xor edi, edi
and edx, 7
cmp ecx, 5
jae 0x43fda3
xor eax, eax
jmp 0x43fea6
sub ecx, 4
add ecx, eax
push ebx
mov dword [ebp - 4], ecx
push esi
lea esi, [edi + eax]
jmp 0x43fdbd
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x43fdc2
inc esi
cmp esi, dword [ebp - 4]
jb 0x43fdb2
mov ecx, esi
sub ecx, edi
mov edi, esi
sub ecx, eax
sub edi, eax
cmp esi, dword [ebp - 4]
jae 0x43fe90
cmp ecx, 2
jbe 0x43fe5e
xor edx, edx
movzx ecx, byte [esi + 4]
lea ebx, [ecx + 1]
test bl, 0xfe
jne 0x43fe85
movzx ebx, byte [esi + 3]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [esi + 2]
shl ecx, 8
or ecx, ebx
movzx ebx, byte [esi + 1]
shl ecx, 8
or ecx, ebx
add edi, 5
mov ebx, ecx
sub ebx, edi
test edx, edx
je 0x43fe3b
and edx, 6
shl edx, 2
mov ecx, edx
mov eax, ebx
shr eax, cl
mov dword [ebp - 8], ecx
inc eax
test al, 0xfe
jne 0x43fe36
mov eax, 0x100
shl eax, cl
dec eax
xor ebx, eax
sub ebx, edi
mov eax, dword [ebp + 8]
xor edx, edx
mov ecx, ebx
shr ecx, 8
mov byte [esi + 1], bl
mov byte [esi + 2], cl
mov ecx, ebx
shr ebx, 0x18
shr ecx, 0x10
and bl, 1
neg bl
mov byte [esi + 3], cl
mov byte [esi + 4], bl
jmp 0x43fdad
shr edx, cl
test edx, edx
je 0x43fde0
cmp edx, 4
ja 0x43fe85
cmp edx, 3
je 0x43fe85
mov ecx, edx
shr ecx, 1
movzx ecx, byte [ecx + esi + 1]
inc ecx
test cl, 0xfe
jne 0x43fde0
or edx, 8
shr edx, 1
inc edi
jmp 0x43fdad
push 2
pop eax
shr edx, cl
cmp eax, ecx
mov ecx, dword [ebp + 0xc]
sbb eax, eax
not eax
and eax, edx
pop esi
mov dword [ecx], eax
mov eax, edi
pop ebx
pop edi
leave
ret

Function at 0x445fe0
Capabilities:
Terminate process

Disassembly:
test esi, esi
je 0x445ff2
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x445ff2
push edi
push esi
call eax
add esp, 8
mov eax, edi
mov ecx, esi
jmp 0x4465e0
push esi
mov esi, ecx
test eax, eax
jne 0x4465ec
mov eax, str.undefined
push eax
push str.libpng_error:__s
call fcn.0046d3d1
add eax, 0x40
push eax
call fcn.004765b6
add esp, 0xc
push 0x491f04
call fcn.0046d3d1
add eax, 0x40
push eax
call fcn.004765b6
add esp, 8
test esi, esi
je 0x446633
mov eax, dword [esi + 0x40]
test eax, eax
je 0x446633
mov esi, dword [esi + 0x44]
test esi, esi
je 0x446633
push 1
push esi
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x44d540
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4a1060]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
push ebx
mov dword [esp + 8], eax
mov eax, dword [esi + 0x74]
push ebp
push edi
test al, 1
jne 0x44d56c
mov eax, str.missing_IHDR
mov ebx, esi
call fcn.00446450
test al, 6
je 0x44d5a8
mov edx, esi
call fcn.0044c690
test dword [esi + 0x78], 0x100000
mov ebx, esi
je 0x44d59e
mov ecx, str.out_of_place
call fcn.00446480
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0045a985
add esp, 0x4c
ret
mov eax, str.out_of_place
call fcn.00446450
cmp ecx, 0x20
je 0x44d5d0
mov edx, esi
call fcn.0044c690
test dword [esi + 0x78], 0x100000
mov ebx, esi
je 0x44d5c6
mov ecx, str.invalid
jmp 0x44d587
mov eax, str.invalid
call fcn.00446450
mov eax, 0x20
lea ebx, [esp + 0x34]
mov ecx, esi
call fcn.0044c650
xor ecx, ecx
mov edx, esi
call fcn.0044c690
test eax, eax
jne 0x44d58c
mov ecx, ebx
call fcn.0044c490
mov edi, eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], edi
call fcn.0044c490
mov ebx, eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x30], ebx
call fcn.0044c490
mov ebp, eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x14], ebp
call fcn.0044c490
lea ecx, [esp + 0x44]
mov dword [esp + 0x18], eax
call fcn.0044c490
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], eax
call fcn.0044c490
lea ecx, [esp + 0x4c]
mov dword [esp + 0x20], eax
call fcn.0044c490
lea ecx, [esp + 0x50]
mov dword [esp + 0x24], eax
call fcn.0044c490
or ecx, 0xffffffff
mov dword [esp + 0x28], eax
cmp edi, ecx
je 0x44d727
cmp ebx, ecx
je 0x44d727
cmp ebp, ecx
je 0x44d727
cmp dword [esp + 0x18], ecx
je 0x44d727
cmp dword [esp + 0x1c], ecx
je 0x44d727
cmp dword [esp + 0x20], ecx
je 0x44d727
cmp dword [esp + 0x24], ecx
je 0x44d727
cmp eax, ecx
je 0x44d727
movzx eax, word [esi + 0x306]
test eax, 0x8000
jne 0x44d58c
test al, 0x10
je 0x44d6ef
or eax, 0x8000
mov word [esi + 0x306], ax
mov eax, dword [esp + 0x10]
mov edx, esi
call fcn.004440a0
mov eax, str.duplicate
mov ecx, esi
call fcn.004464f0
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0045a985
add esp, 0x4c
ret
or eax, 0x10
mov word [esi + 0x306], ax
lea ebx, [esi + 0x2bc]
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.004447f0
mov eax, dword [esp + 0x10]
mov edx, esi
call fcn.004440a0
mov ecx, dword [esp + 0x54]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045a985
add esp, 0x4c
ret
test dword [esi + 0x78], 0x100000
mov ebx, esi
je 0x44d73c
mov ecx, str.invalid_values
jmp 0x44d587
mov eax, str.invalid_values
call fcn.00446450
int3
Function at 0x452470
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [0x4a1060]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
cmp edx, 3
jne 0x4524ef
test eax, eax
jle 0x4524c1
movzx ecx, word [esi + 0x140]
cmp eax, ecx
jg 0x4524c1
push edi
push 0x74524e53
mov ecx, esi
call fcn.00450f70
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0045a985
add esp, 0xc
ret
test dword [esi + 0x78], 0x200000
je 0x4524e5
mov ecx, str.Invalid_number_of_transparent_colors_specified
call fcn.004460f0
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0045a985
add esp, 0xc
ret
mov edi, str.Invalid_number_of_transparent_colors_specified
call fcn.00445fe0
push ebx
test edx, edx
jne 0x45257f
movzx eax, word [ecx + 8]
mov cl, byte [esi + 0x150]
mov edx, 1
shl edx, cl
cmp eax, edx
jl 0x45253c
test dword [esi + 0x78], 0x200000
je 0x452532
mov ecx, str.Ignoring_attempt_to_write_tRNS_chunk_out_of_range_for_bit_depth
call fcn.004460f0
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0045a985
add esp, 0xc
ret
mov edi, str.Ignoring_attempt_to_write_tRNS_chunk_out_of_range_for_bit_depth
call fcn.00445fe0
mov ecx, eax
shr ecx, 8
mov byte [esp + 0xc], cl
push 2
mov ebx, 0x74524e53
mov ecx, esi
mov byte [esp + 0x11], al
call fcn.00450e10
mov eax, dword [esi + 0x58]
add esp, 4
test eax, eax
je 0x452575
push 2
lea edx, [esp + 0x10]
push edx
push esi
call eax
mov eax, 2
jmp 0x452613
mov edi, str.Call_to_NULL_write_function
call fcn.00445fe0
cmp edx, 2
jne 0x452639
movzx eax, word [ecx + 2]
mov edx, eax
mov byte [esp + 0xd], al
movzx eax, word [ecx + 4]
movzx ecx, word [ecx + 6]
mov ebx, eax
mov byte [esp + 0xf], al
mov eax, ecx
shr edx, 8
shr ebx, 8
shr eax, 8
cmp byte [esi + 0x150], 8
mov byte [esp + 0xc], dl
mov byte [esp + 0xe], bl
mov byte [esp + 0x10], al
mov byte [esp + 0x11], cl
jne 0x4525e8
or al, bl
or al, dl
je 0x4525e8
mov ecx, str.Ignoring_attempt_to_write_16_bit_tRNS_chunk_when_bit_depth_is_8
mov eax, esi
call fcn.00446330
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.0045a985
add esp, 0xc
ret
push 6
mov ebx, 0x74524e53
mov ecx, esi
call fcn.00450e10
mov eax, dword [esi + 0x58]
add esp, 4
test eax, eax
je 0x452575
push 6
lea ecx, [esp + 0x10]
push ecx
push esi
call eax
mov eax, 6
push esi
lea ecx, [esp + 0x1c]
call fcn.00443380
add esp, 0x10
mov eax, esi
call fcn.00450f10
mov ecx, dword [esp + 0x14]
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.0045a985
add esp, 0xc
ret
test dword [esi + 0x78], 0x200000
je 0x45264c
mov ecx, str.Cant_write_tRNS_with_an_alpha_channel
jmp 0x45251b
mov edi, str.Cant_write_tRNS_with_an_alpha_channel
call fcn.00445fe0
int3
Function at 0x455d10
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x455d17
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00455d20
Function at 0x45a85f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4a44c8], 0
push esi
jne 0x45a7d2
call fcn.0045a6f8
test eax, eax
je 0x45a815
mov eax, dword [0x4a44c8]
cmp eax, 1
jne 0x45a7f3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x45a815
pop esi
ret
push eax
call dword [0x4a44d0]
test eax, eax
jne 0x45a85d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x45a819
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4a44c8]
call dword [0x4a44d0]
mov edi, eax
test edi, edi
je 0x45a83e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x45a85a
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4a44c8]
call dword [0x4a44cc]
add edi, 0x10
cmp edi, esi
jb 0x45a846
mov eax, edi
pop edi
pop esi
ret
jmp 0x45a7bf

Function at 0x45a985
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a1060]
jne 0x45a98f
repz ret
jmp fcn.0045e82c

Function at 0x46ea13
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0046055d
and dword [ebp - 4], 0
cmp dword [0x4a509c], 0
mov ebx, eax
jne 0x46eac4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46eb75
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x46eb75
push eax
call fcn.004604eb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a509c], eax
call esi
push eax
call fcn.004604eb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a50a0], eax
call esi
push eax
call fcn.004604eb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a50a4], eax
call esi
push eax
call fcn.004604eb
pop ecx
mov dword [0x4a50ac], eax
test eax, eax
je 0x46eac4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004604eb
pop ecx
mov dword [0x4a50a8], eax
mov eax, dword [0x4a50a8]
cmp eax, ebx
je 0x46eb1c
cmp dword [0x4a50ac], ebx
je 0x46eb1c
push eax
call fcn.00460566
push dword [0x4a50ac]
mov esi, eax
call fcn.00460566
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x46eb1c
test edi, edi
je 0x46eb1c
call esi
test eax, eax
je 0x46eb13
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46eb13
test byte [ebp - 0xc], 1
jne 0x46eb1c
or dword [ebp + 0x10], 0x200000
jmp 0x46eb55
mov eax, dword [0x4a50a0]
cmp eax, ebx
je 0x46eb55
push eax
call fcn.00460566
pop ecx
test eax, eax
je 0x46eb55
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46eb55
mov eax, dword [0x4a50a4]
cmp eax, ebx
je 0x46eb55
push eax
call fcn.00460566
pop ecx
test eax, eax
je 0x46eb55
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a509c]
call fcn.00460566
pop ecx
test eax, eax
je 0x46eb75
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46eb77
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4068fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x40691f
xor eax, eax
test eax, eax
je 0x406932
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406932
xor ecx, ecx
jmp 0x406935
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x46590c], 0
push esi
jne 0x406a8f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a69
mov dword [ecx*4 + 0x465908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a64
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406ac0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x465908]
xor eax, esi
inc ecx
dec edx
jne 0x406aa2
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
mov ecx, 0x4beb553a
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x670a4009
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x10001c10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ba18
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], ecx
xor ecx, ecx
mov esi, edx
mov dword [ebp - 0x40], 0xf
mov dword [ebp - 0x44], ecx
mov byte [ebp - 0x54], cl
push eax
push esi
lea ebx, [ebp - 0x54]
mov dword [ebp - 4], ecx
call fcn.10001df0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x5c]
xor ecx, ecx
mov dword [edi], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x58], ecx
mov dword [edx], ecx
cmp eax, ecx
je 0x10001d05
push eax
call fcn.10034252
mov ecx, dword [ebp - 0x24]
mov ebx, eax
mov eax, dword [esi + 0x24]
push eax
push ecx
push 1
push ebx
call fcn.1003556c
add esp, 0x14
cmp eax, dword [ebp - 0x24]
je 0x10001cb7
push ebx
call fcn.10032d80
add esp, 4
cmp dword [ebp - 0x40], 0x10
jb 0x10001cb3
mov edx, dword [ebp - 0x54]
push edx
call fcn.10032d80
add esp, 4
xor al, al
jmp 0x10001d19
mov esi, dword [esi + 0x4c]
mov edx, dword [esi]
mov edx, dword [edx + 4]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push eax
push ebx
mov ecx, esi
call edx
push ebx
test al, al
jne 0x10001cf0
call fcn.10032d80
add esp, 4
cmp dword [ebp - 0x40], 0x10
jb 0x10001cb3
mov eax, dword [ebp - 0x54]
push eax
call fcn.10032d80
add esp, 4
xor al, al
jmp 0x10001d19
call fcn.10032d80
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x5c]
mov dword [edi], ecx
add esp, 4
mov dword [eax], edx
cmp dword [ebp - 0x40], 0x10
jb 0x10001d17
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.10032d80
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10034d1a
mov esp, ebp
pop ebp
ret 4
Function at 0x10001ed0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi + 0x24]
push edi
push eax
push 2
lea edi, [esi + 0x28]
push 1
push edi
call fcn.1003556c
add esp, 0x10
cmp eax, 2
jne 0x10001fd1
mov ecx, dword [esi + 0x64]
lea eax, [esi + 0x50]
cmp ecx, 0x10
jb 0x10001efd
mov edx, dword [eax]
jmp 0x10001eff
mov edx, eax
movzx edi, byte [edi]
movsx edx, byte [edx]
cmp edi, edx
jne 0x10001fd1
cmp ecx, 0x10
jb 0x10001f14
mov eax, dword [eax]
movsx eax, byte [eax + 1]
movzx ecx, byte [esi + 0x29]
cmp ecx, eax
jne 0x10001fd1
mov edx, dword [esi + 0x24]
push edx
push 4
lea eax, [esi + 0x2c]
push 1
push eax
call fcn.1003556c
add esp, 0x10
cmp eax, 4
jne 0x10001fd1
mov ecx, dword [esi + 0x24]
push ecx
push 2
lea edi, [esi + 0x30]
push 1
push edi
call fcn.1003556c
add esp, 0x10
cmp eax, 2
jne 0x10001fd1
cmp word [edi], 1
ja 0x10001fd1
mov edx, dword [esi + 0x24]
push edx
push 1
lea eax, [esi + 0x32]
push 1
push eax
call fcn.1003556c
add esp, 0x10
cmp eax, 1
jne 0x10001fd1
mov ecx, dword [esi + 0x24]
push ecx
push 4
push eax
lea edx, [esi + 0x34]
push edx
call fcn.1003556c
add esp, 0x10
cmp eax, 4
jne 0x10001fd1
mov eax, dword [esi + 0x24]
push eax
push 4
lea ecx, [esi + 0x38]
push 1
push ecx
call fcn.1003556c
add esp, 0x10
cmp eax, 4
jne 0x10001fd1
mov edx, dword [esi + 0x24]
push edx
push 0xf
lea eax, [esi + 0x3c]
push 1
push eax
call fcn.1003556c
add esp, 0x10
cmp eax, 0xf
jne 0x10001fd1
mov ecx, esi
call fcn.10002180
test al, al
setne al
pop edi
ret
xor al, al
pop edi
ret
Function at 0x10001fe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
mov eax, dword [edi + 0x24]
push eax
push 4
lea ecx, [ebp - 4]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.1003556c
add esp, 0x10
cmp eax, 4
jne 0x10002143
mov eax, dword [ebp - 4]
lea edx, [eax - 1]
cmp edx, 0x103
ja 0x10002143
inc eax
push esi
push eax
call fcn.10034252
mov esi, eax
mov eax, dword [ebp - 4]
inc eax
push eax
push 0
push esi
call fcn.10037e20
mov ecx, dword [edi + 0x24]
mov edx, dword [ebp - 4]
push ecx
push edx
push 1
push esi
call fcn.1003556c
mov ecx, dword [ebp - 4]
add esp, 0x20
cmp eax, ecx
je 0x1000205f
push esi
call fcn.10032d80
add esp, 4
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
test ecx, ecx
jle 0x10002072
mov dl, byte [eax + esi]
not dl
mov byte [eax + esi], dl
inc eax
cmp eax, ecx
jl 0x10002065
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10002077
sub eax, edx
push eax
push esi
mov ecx, ebx
call fcn.100028b0
push esi
call fcn.10032d80
xor eax, eax
lea esi, [ebx + 0x1c]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x24]
push eax
push 0x14
push 1
push esi
call fcn.1003556c
add esp, 0x14
cmp eax, 0x14
jne 0x10002057
xor eax, eax
lea ebx, [ebx]
mov cl, byte [esi + eax]
not cl
mov byte [esi + eax], cl
inc eax
cmp eax, 0x14
jl 0x100020c0
mov edx, dword [edi + 0x24]
push edx
push 4
lea eax, [ebx + 0x30]
push 1
push eax
call fcn.1003556c
add esp, 0x10
cmp eax, 4
jne 0x10002057
mov ecx, dword [edi + 0x24]
push ecx
push eax
lea edx, [ebx + 0x34]
push 1
push edx
call fcn.1003556c
add esp, 0x10
cmp eax, 4
jne 0x10002057
mov eax, dword [edi + 0x24]
push eax
push 1
lea ecx, [ebx + 0x38]
push 1
push ecx
call fcn.1003556c
add esp, 0x10
cmp eax, 1
jne 0x10002057
mov edx, dword [edi + 0x24]
push edx
push 4
push eax
add ebx, 0x3c
push ebx
call fcn.1003556c
add esp, 0x10
cmp eax, 4
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e848
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1005d500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x10005ff1
cmp byte [edi + 0x49], bl
je 0x10005ff1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x10005fe5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x10005f45
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x10005f5d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x10005f86
dec eax
je 0x10005f8a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x10005fe0
jmp 0x10005fec
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x10005f9a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x10005fc3
cmp ebx, 0x10
jae 0x10005fa9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.10035cde
add esp, 0x10
cmp esi, eax
jne 0x10005fdd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x10005fe9
test esi, esi
jne 0x10005f51
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.10005a90
jmp 0x10005f4b
lea ecx, [ebp - 0x2c]
call fcn.10002e90
xor al, al
jmp 0x10005ff3
lea ecx, [ebp - 0x2c]
call fcn.10002e90
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10034d1a
mov esp, ebp
pop ebp
ret