joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e844c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov ebx, eax
mov esi, ecx
mov byte [ecx], dl
mov dword [ecx + 8], 0
mov word [ecx + 0xc], 0
cmp eax, 0xd
je 0x4e850c
mov edi, ebx
mov eax, dword [0x5e81c8]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
movzx eax, dl
mov dword [esp], eax
mov dword [ebp - 0x12c], edx
call sub.USER32.dll_MapVirtualKeyExA
sub esp, 0xc
cmp ebx, 0x6b
mov edx, dword [ebp - 0x12c]
jle 0x4e84f4
cmp ebx, 0x6f
je 0x4e84cc
jg 0x4e8594
cmp ebx, 0x6d
je 0x4e84cc
lea ecx, [eax - 0xc]
cmp ecx, 0x22
jbe switch.0x004e85b0
test eax, eax
jne 0x4e85a8
nop
mov eax, dword [edi*4 + 0x5e81d8]
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e84e7
mov edi, dword [0x5e34d8]
test edi, edi
jne 0x4e8520
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
cmp ebx, 0x6a
jge 0x4e84cc
cmp ebx, 0x2c
je 0x4e84cc
jg 0x4e85b8
cmp ebx, 0x13
jne 0x4e84b6
jmp 0x4e84cc
test dh, 1
je 0x4e8474
mov dword [ecx + 4], 0x10f
jmp 0x4e84d6
lea edi, [ebp - 0x11c]
mov dword [esp], edi
mov dword [ebp - 0x12c], edx
call sub.USER32.dll_GetKeyboardState
push ecx
test byte [ebp - 0x8c], 1
mov edx, dword [ebp - 0x12c]
je 0x4e854e
cmp ebx, 0x5f
jbe 0x4e854e
cmp ebx, 0x69
jbe 0x4e85cc
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], edx
mov dword [esp], ebx
call dword [0x54ae94]
sub esp, 0x18
test eax, eax
jle 0x4e84e7
mov eax, dword [ebp - 0x1c]
mov word [esi + 0xc], ax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
lea ecx, [ebx - 0xa0]
cmp ecx, 5
jbe 0x4e84cc
jmp 0x4e84b6
mov edi, eax
jmp 0x4e84cc
jmp dword [ecx*4 + 0x598790]
lea ecx, [ebx - 0x5b]
cmp ecx, 2
ja 0x4e84b6
jmp 0x4e84cc
sub ebx, 0x30
mov word [esi + 0xc], bx
jmp 0x4e84e7
test dh, 1
jne 0x4e85a8
mov edi, 0x6e
jmp 0x4e84cc
test dh, 1
jne 0x4e85a8
mov edi, 0x60
jmp 0x4e84cc
test dh, 1
jne 0x4e85a8
mov edi, 0x62
jmp 0x4e84cc
test dh, 1
jne 0x4e85a8
mov edi, 0x66
jmp 0x4e84cc
test dh, 1
jne 0x4e85a8
mov edi, 0x68
jmp 0x4e84cc
test dh, 1
jne 0x4e85a8
mov edi, 0x64
jmp 0x4e84cc
test dh, 1
jne 0x4e85a8
mov edi, 0x67
jmp 0x4e84cc
test dh, 1
jne 0x4e85a8
mov edi, 0x61
jmp 0x4e84cc
test dh, 1
jne 0x4e85a8
mov edi, 0x63
jmp 0x4e84cc
test dh, 1
jne 0x4e85a8
mov edi, 0x69
jmp 0x4e84cc
test dh, 1
jne 0x4e85a8
mov edi, 0x65
jmp 0x4e84cc
Function at 0x4e9b68
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov ebx, eax
mov byte [edx], al
mov eax, dword [eax*4 + 0x5eaba8]
mov dword [edx + 4], eax
mov dword [edx + 8], 0
mov word [edx + 0xc], 0
test ecx, ecx
je 0x4e9b9d
mov ecx, dword [0x5e34d8]
test ecx, ecx
jne 0x4e9ba8
mov eax, edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 4], 1
mov dword [esp], ebx
mov dword [ebp - 0x12c], edx
call sub.USER32.dll_MapVirtualKeyA
sub esp, 8
mov esi, eax
lea edi, [ebp - 0x11c]
mov dword [esp], edi
call sub.USER32.dll_GetKeyboardState
push eax
test byte [ebp - 0x8c], 1
mov edx, dword [ebp - 0x12c]
je 0x4e9beb
cmp esi, 0x5f
jbe 0x4e9beb
cmp esi, 0x69
jbe 0x4e9c3c
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [ebp - 0x12c], edx
call dword [0x54ae94]
sub esp, 0x18
test eax, eax
mov edx, dword [ebp - 0x12c]
jle 0x4e9b9d
mov eax, dword [ebp - 0x1c]
mov word [edx + 0xc], ax
mov eax, edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
sub esi, 0x30
mov word [edx + 0xc], si
jmp 0x4e9b9d
Function at 0x51a76c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 8
mov esi, dword [ebp + 8]
test esi, esi
je 0x51a823
mov eax, dword [esi]
mov byte [eax + 0x16], 0
mov eax, dword [esi]
mov byte [eax + 0x17], 0
mov eax, dword [esi]
mov byte [eax + 0x18], 0
mov eax, dword [esi]
mov byte [eax + 0x19], 0
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x51a82b
mov edi, dword [esi]
xor eax, eax
xor edx, edx
mov ecx, edx
shl ecx, 8
shr edx, 0x18
movzx ebx, byte [edi + eax]
xor edx, ebx
mov edx, dword [edx*4 + 0x5ac380]
xor edx, ecx
inc eax
cmp eax, dword [ebp - 0x10]
jne 0x51a7ac
mov eax, edx
shr eax, 0x18
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], ecx
test ecx, ecx
jle 0x51a809
mov ecx, dword [esi + 8]
xor eax, eax
mov dword [ebp - 0x14], edi
mov edi, ecx
nop
mov ecx, edx
shl ecx, 8
shr edx, 0x18
movzx ebx, byte [edi + eax]
xor edx, ebx
mov edx, dword [edx*4 + 0x5ac380]
xor edx, ecx
inc eax
cmp eax, dword [ebp - 0x10]
jne 0x51a7e4
mov edi, dword [ebp - 0x14]
mov eax, edx
shr eax, 0x18
mov byte [edi + 0x16], dl
mov ecx, dword [esi]
mov ebx, edx
shr ebx, 8
mov byte [ecx + 0x17], bl
mov ecx, dword [esi]
shr edx, 0x10
mov byte [ecx + 0x18], dl
mov edx, dword [esi]
mov byte [edx + 0x19], al
add esp, 8
pop ebx
pop esi
pop edi
leave
ret
mov edi, dword [esi]
xor eax, eax
xor edx, edx
jmp 0x51a7ce

Function at 0x526ce0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
call dword [esi + eax*8 - 0x7b]
invalid
clc
invalid
dec dword [edi - 0x3a]
test ebx, ebx
clc
invalid
invalid
dec ecx
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
invalid
test eax, esp
clc
Function at 0x537170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], ebx
test esi, esi
je 0x5372c2
mov ebx, dword [esi + 0x1c]
test ebx, ebx
je 0x5372c2
mov eax, dword [esi + 0x20]
test eax, eax
je 0x5372c2
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x5372c2
mov dword [esi + 0x2c], 2
mov edx, dword [ebx + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [ebx + 0x10], edx
mov edx, dword [ebx + 0x18]
mov dword [esi + 0x18], 0
mov dword [ebx + 0x14], 0
test edx, edx
js 0x5372ee
cmp edx, 1
sbb eax, eax
and eax, 0x47
add eax, 0x2a
cmp edx, 2
mov dword [ebx + 4], eax
je 0x5372d1
mov dword [esp], 0
xor ecx, ecx
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call fcn.005397c0
mov dword [esi + 0x30], eax
mov dword [ebx + 0x28], 0
mov dword [esp], ebx
call fcn.00539b70
mov edx, dword [ebx + 0x2c]
xor ecx, ecx
mov eax, dword [ebx + 0x4c]
add edx, edx
lea esi, [eax + eax - 2]
mov dword [ebx + 0x3c], edx
mov edx, dword [ebx + 0x44]
mov word [edx + eax*2 - 2], 0
mov dword [esp + 8], esi
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.msvcrt.dll_memset
mov dword [ebx + 0x6c], 0
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x74], 0
lea eax, [eax + eax*2]
shl eax, 2
movzx esi, word [eax + 0x5b20a2]
movzx ecx, word [eax + 0x5b20a0]
movzx edx, word [eax + 0x5b20a4]
mov dword [ebx + 0x78], 2
mov dword [ebx + 0x80], esi
movzx esi, word [eax + 0x5b20a6]
xor eax, eax
mov dword [ebx + 0x8c], ecx
mov dword [ebx + 0x90], edx
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x60], 2
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x48], 0
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 8]
mov eax, 0xfffffffe
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], 0
xor edx, edx
xor ecx, ecx
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call fcn.00535b40
jmp 0x53720b
neg edx
mov dword [ebx + 0x18], edx
jmp 0x5371dc
Function at 0x537cf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x1c
mov eax, dword [eax + 0x2c]
mov edx, dword [edi + 0x74]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edx
jmp 0x537dc9
mov ebx, dword [edi]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x18], ebx
test edx, edx
je 0x537e80
mov eax, dword [edi + 0x38]
mov ebx, edx
add esi, eax
mov eax, dword [edi + 0x74]
add esi, eax
cmp edx, dword [ebp - 0x10]
jbe 0x537d34
mov ebx, dword [ebp - 0x10]
xor ecx, ecx
test ebx, ebx
je 0x537d7e
mov eax, dword [ebp - 0x18]
sub edx, ebx
mov ecx, dword [eax + 0x1c]
mov dword [eax + 4], edx
mov edx, eax
mov eax, dword [ecx + 0x18]
cmp eax, 1
je 0x537e88
cmp eax, 2
je 0x537ea8
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [esp], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov esi, dword [ebp - 0x18]
mov ecx, ebx
mov eax, dword [edi + 0x74]
add dword [esi], ebx
add dword [esi + 8], ebx
lea esi, [eax + ecx]
cmp esi, 2
mov dword [ebp - 0x1c], esi
mov dword [edi + 0x74], esi
jbe 0x537dad
mov ebx, dword [edi + 0x6c]
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx eax, byte [ebx + edx]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + ebx + 1]
mov ebx, dword [edi + 0x54]
xor eax, ecx
and eax, ebx
mov dword [edi + 0x48], eax
cmp esi, 0x105
ja 0x537e80
mov eax, dword [edi]
mov esi, dword [eax + 4]
test esi, esi
je 0x537e80
mov eax, dword [edi + 0x2c]
mov ecx, dword [edi + 0x3c]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [edi + 0x6c]
sub ecx, ebx
sub ecx, esi
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx - 0x106]
cmp esi, eax
jb 0x537d10
mov dword [esp + 8], ecx
mov esi, dword [edi + 0x38]
mov ebx, ecx
mov dword [esp], esi
add ebx, esi
mov dword [esp + 4], ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x14]
mov esi, dword [edi + 0x6c]
mov ecx, dword [edi + 0x4c]
sub dword [edi + 0x70], eax
mov edx, dword [edi + 0x44]
sub esi, eax
sub dword [edi + 0x5c], eax
mov dword [edi + 0x6c], esi
lea eax, [edx + ecx*2]
lea esi, [esi]
sub eax, 2
xor ebx, ebx
movzx edx, word [eax]
cmp edx, dword [ebp - 0x14]
jb 0x537e34
mov ebx, edx
mov edx, dword [ebp - 0x14]
sub ebx, edx
mov word [eax], bx
dec ecx
jne 0x537e20
mov ecx, dword [ebp - 0x14]
mov eax, dword [edi + 0x40]
lea eax, [eax + ecx*2]
lea esi, [esi]
lea edi, [edi]
sub eax, 2
xor ebx, ebx
movzx edx, word [eax]
cmp edx, dword [ebp - 0x14]
jb 0x537e64
mov ebx, edx
mov edx, dword [ebp - 0x14]
sub ebx, edx
mov word [eax], bx
dec ecx
jne 0x537e50
mov ebx, dword [edi]
mov ecx, dword [ebp - 0x14]
add dword [ebp - 0x10], ecx
mov edx, dword [ebx + 4]
mov dword [ebp - 0x18], ebx
test edx, edx
jne 0x537d20
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov eax, dword [edx]
mov dword [esp + 4], eax
mov ecx, dword [edx + 0x30]
mov dword [esp], ecx
call fcn.005397c0
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x30], eax
jmp 0x537d5c
mov dword [esp + 8], ebx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [esp + 4], eax
mov ecx, dword [edx + 0x30]
mov dword [esp], ecx
call fcn.00535b40
jmp 0x537e9d
Function at 0x53ca70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x11c
mov ebx, dword [esp + 0x130]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x53cc2e
cmp byte [ebx], 0
je 0x53cbf0
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x53cc1c
test al, 0x10
je 0x53cbf0
push eax
push 0x104
push ebx
lea edi, [esp + 0x24]
push edi
call sub.msvcrt.dll__fullpath
pop eax
mov ecx, edi
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
xor eax, 0xffffffff
and edx, eax
and edx, 0x80808080
je 0x53cace
test edx, 0x8080
je 0x53cbe2
add dl, dl
sbb ecx, 3
sub ecx, edi
lea eax, [ecx + 0x233]
push eax
call sub.msvcrt.dll_malloc
add esp, 0x10
mov ebx, eax
test eax, eax
je 0x53cc0a
lea esi, [eax + 0x22c]
mov ebp, eax
push eax
push eax
push edi
push esi
call sub.msvcrt.dll_strcpy
add esp, 0x10
cmp byte [ebx + 0x22c], 0
jne 0x53cb94
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0xc
mov word [eax + esi], 0x2a
lea eax, [ebx + 0x120]
mov dword [ebx + 0x224], 0xffffffff
mov dword [ebx + 0x228], 0
mov dword [ebx + 0x118], 0
mov word [ebx + 0x11c], 0
mov word [ebx + 0x11e], 0
push 0x104
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0x10
add esp, 0x11c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
pop edx
pop ecx
push 0x2f
lea edi, [esi + eax - 1]
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp eax, edi
je 0x53cb2f
push eax
push eax
push 0x5c
push esi
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp edi, eax
je 0x53cb2f
sub esp, 0xc
push esi
call sub.msvcrt.dll_strlen
add esp, 0x10
mov word [eax + esi], 0x5c
jmp 0x53cb2f
shr edx, 0x10
add ecx, 2
jmp 0x53caf2
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0x14
add esp, 0x11c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0xc
jmp 0x53cb87
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 2
jmp 0x53cb87
call sub.msvcrt.dll__errno
xor ebp, ebp
mov dword [eax], 0xe
jmp 0x53cb87
Function at 0x401040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x48
push ebx
push esi
xor ebx, ebx
lea eax, [esp + 0x18]
push 0x38
push str.1.2.13
push eax
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call fcn.0040a9b0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401094
mov eax, dword [esp + 0x58]
push esi
add eax, 0x12
push eax
push str.Failed_to_extract__s:_inflateInit___failed_with_return_code__d__n
call fcn.00402690
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x48
ret
push 0x2000
call fcn.00412a89
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4010c8
mov eax, dword [esp + 0x58]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
push str.malloc
call fcn.00402530
add esp, 0xc
jmp 0x4011ee
push 0x2000
call fcn.00412a89
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4010fa
mov ecx, dword [esp + 0x58]
add ecx, 0x12
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
push str.malloc
call fcn.00402530
add esp, 0xc
jmp 0x4011ee
mov eax, dword [esp + 0x58]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x60]
push edi
mov eax, dword [eax + 8]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jb 0x401129
ja 0x401122
cmp eax, 0x2000
jbe 0x401129
mov esi, 0x2000
jmp 0x40112b
mov esi, eax
push dword [esp + 0x5c]
push esi
push 1
push dword [esp + 0x24]
call fcn.0040e982
add esp, 0x10
cmp eax, esi
jne 0x4011e9
push dword [esp + 0x5c]
call fcn.0040e77d
add esp, 4
test eax, eax
jne 0x4011e9
sub dword [esp + 0x10], esi
mov dword [esp + 0x24], esi
sbb dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], eax
nop
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0x2000
push 0
push eax
mov dword [esp + 0x34], ebx
call fcn.00408ee0
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [eax + 4]
cmp ecx, 6
ja case.0x40119e.1
movzx ecx, byte [ecx + 0x401274]
jmp dword [ecx*4 + 0x401268]
mov esi, 0x2000
sub esi, dword [esp + 0x30]
test ebp, ebp
je 0x401212
push ebp
push esi
push 1
push ebx
call fcn.0040f0a5
add esp, 0x10
cmp eax, esi
jne 0x4011d0
push ebp
call fcn.0040e77d
add esp, 4
test eax, eax
je 0x401223
or eax, 0xffffffff
push eax
mov eax, dword [esp + 0x64]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_decompression_resulted_in_return_code__d__n
call fcn.00402690
add esp, 0xc
or esi, 0xffffffff
pop edi
pop ebp
lea eax, [esp + 0x18]
push eax
call fcn.0040a7a0
push dword [esp + 0x14]
call fcn.00412a6e
push ebx
call fcn.00412a6e
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret
test edi, edi
je 0x401227
push esi
push ebx
push edi
call fcn.0040be60
add esp, 0xc
add edi, esi
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0
je 0x401170
cmp eax, 1
je 0x401261
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x401245
cmp dword [esp + 0x10], ecx
jbe 0x4011d3
mov eax, dword [esp + 0x10]
jmp 0x401115
mov eax, 0xfffffffd
jmp 0x4011d3
cmp eax, 1
jne 0x4011d3
xor esi, esi
jmp 0x4011ec
Function at 0x401280
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x101c
call fcn.0040b1e0
mov eax, dword [0x436040]
xor eax, esp
mov dword [esp + 0x1018], eax
push ebx
mov ebx, dword [esp + 0x1028]
push ebp
push esi
mov esi, dword [esp + 0x102c]
push edi
push 0x428580
mov dword [esp + 0x20], esi
lea eax, [esi + 0x68]
mov dword [esp + 0x24], 0xffffffff
push eax
call fcn.00403a10
mov ebp, eax
add esp, 8
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x4012e4
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402690
jmp 0x401460
mov ecx, dword [ebx + 4]
xor eax, eax
add ecx, dword [esi]
push 0
adc eax, dword [esi + 4]
push eax
push ecx
push ebp
call fcn.0040eda6
add esp, 0x10
test eax, eax
jns 0x401320
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push str.fseek
call fcn.00402530
push ebp
call fcn.0040e721
add esp, 0x10
jmp 0x401463
push dword [ebx + 0xc]
call fcn.00412a89
add esp, 4
mov dword [esp + 0x14], eax
mov edi, eax
mov dword [esp + 0x24], edi
test eax, eax
jne 0x40135d
push dword [ebx + 0xc]
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push str.malloc
call fcn.00402530
push ebp
call fcn.0040e721
add esp, 0x14
jmp 0x401465
cmp byte [ebx + 0x10], 1
jne 0x40137e
push eax
push 0
push ebx
push ebp
call fcn.00401040
add esp, 0x10
test eax, eax
jne 0x401451
mov dword [esp + 0x14], edi
jmp 0x4013e1
mov edi, dword [ebx + 0xc]
xor ebp, ebp
mov dword [esp + 0x18], eax
test edi, edi
je 0x4013d9
nop dword [eax + eax]
test ebp, ebp
jb 0x4013a5
ja 0x40139e
cmp edi, 0x2000
jbe 0x4013a5
mov esi, 0x2000
jmp 0x4013a7
mov esi, edi
push dword [esp + 0x10]
push 1
push esi
push eax
call fcn.0040e982
add esp, 0x10
cmp eax, 1
jb 0x401437
mov eax, dword [esp + 0x18]
sub edi, esi
sbb ebp, 0
add eax, esi
mov dword [esp + 0x18], eax
test ebp, ebp
ja 0x40139e
jb 0x4013d5
test edi, edi
jne 0x401390
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x10]
push ebp
add ebx, 0x12
call fcn.0040e721
add esi, 0x3068
push ebx
push esi
call fcn.00407210
add esp, 0xc
test eax, eax
js 0x401465
push ebx
push 0x5c
push esi
push str._s_c_s
lea eax, [esp + 0x38]
push 0x1000
push eax
call fcn.00401db0
add esp, 0x18
cmp eax, 0x1000
jge 0x401465
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
call fcn.00403b80
add esp, 8
mov dword [esp + 0x20], eax
jmp 0x401465
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.00402530
mov ebp, dword [esp + 0x1c]
add esp, 0xc
push dword [esp + 0x14]
call fcn.00412a6e
push ebp
call fcn.0040e721
add esp, 8
xor edi, edi
push edi
call fcn.00412a6e
mov ecx, dword [esp + 0x102c]
add esp, 4
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040b1c7
add esp, 0x101c
ret
Function at 0x401510
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push 0x428580
xor edi, edi
lea eax, [esi + 0x68]
push eax
call fcn.00403a10
mov ebp, eax
add esp, 8
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x401555
mov eax, dword [esp + 0x1c]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402690
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 8
ret
push ebx
mov ebx, dword [esp + 0x20]
xor eax, eax
push 0
mov ecx, dword [ebx + 4]
add ecx, dword [esi]
adc eax, dword [esi + 4]
push eax
push ecx
push ebp
call fcn.0040eda6
add esp, 0x10
test eax, eax
jns 0x40158d
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push str.fseek
call fcn.00402530
add esp, 0xc
jmp 0x4015bd
push dword [ebx + 0xc]
call fcn.00412a89
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4015d3
push dword [ebx + 0xc]
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push str.malloc
call fcn.00402530
add esp, 0x10
mov edi, dword [esp + 0x10]
push dword [esp + 0x14]
call fcn.0040e721
add esp, 4
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret
cmp byte [ebx + 0x10], 1
jne 0x4015fb
push eax
push 0
push ebx
push ebp
call fcn.00401040
add esp, 0x10
test eax, eax
je 0x4015b9
mov edi, dword [esp + 0x10]
push edi
call fcn.00412a6e
add esp, 4
xor edi, edi
jmp 0x4015bd
mov esi, dword [ebx + 0xc]
mov ebp, eax
xor ebx, ebx
test esi, esi
je 0x40167a
test ebx, ebx
jb 0x40161b
ja 0x401614
cmp esi, 0x2000
jbe 0x40161b
mov edi, 0x2000
jmp 0x40161d
mov edi, esi
push dword [esp + 0x14]
push 1
push edi
push ebp
call fcn.0040e982
add esp, 0x10
cmp eax, 1
jb 0x40164c
sub esi, edi
sbb ebx, 0
add ebp, edi
test ebx, ebx
ja 0x401614
jb 0x4015b9
test esi, esi
jne 0x401606
jmp 0x4015b9
mov eax, dword [esp + 0x20]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.00402530
mov edi, dword [esp + 0x1c]
add esp, 0xc
push edi
call fcn.00412a6e
add esp, 4
xor edi, edi
jmp 0x4015bd
mov edi, eax
jmp 0x4015bd
Function at 0x401690
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push edi
mov edi, dword [esp + 0x18]
cmp dword [edi + 0x506c], 1
je 0x4016b6
push str.pyi_arch_extract2fs_was_called_before_temporary_directory_was_initialized__n
call fcn.00402690
add esp, 4
or eax, 0xffffffff
pop edi
add esp, 0x10
ret
push esi
mov esi, dword [esp + 0x20]
cmp byte [esi + 0x11], 0x6e
jne 0x4016ea
push esi
push edi
call fcn.00401280
mov edi, eax
add esp, 8
test edi, edi
jns 0x4016e2
lea ecx, [esi + 0x12]
push ecx
push str.Failed_to_create_symbolic_link__s__n
call fcn.00402690
add esp, 8
pop esi
mov eax, edi
pop edi
add esp, 0x10
ret
push ebx
lea ebx, [esi + 0x12]
lea eax, [edi + 0x3068]
mov dword [esp + 0x14], ebx
push ebx
push eax
call fcn.00407600
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401727
push ebx
push str.Failed_to_extract__s:_failed_to_open_target_file__n
push str.fopen
call fcn.00402530
add esp, 0xc
or eax, 0xffffffff
pop ebx
pop esi
pop edi
add esp, 0x10
ret
push ebp
lea eax, [edi + 0x68]
push 0x428580
push eax
call fcn.00403a10
mov ebp, eax
add esp, 8
mov dword [esp + 0x1c], ebp
test ebp, ebp
jne 0x401759
push ebx
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402690
add esp, 8
or ebp, 0xffffffff
jmp 0x40188a
mov ecx, dword [esi + 4]
xor eax, eax
add ecx, dword [edi]
push 0
adc eax, dword [edi + 4]
push eax
push ecx
push ebp
call fcn.0040eda6
add esp, 0x10
test eax, eax
jns 0x40178f
push ebx
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push str.fseek
call fcn.00402530
add esp, 0xc
or ebp, 0xffffffff
jmp 0x40187e
cmp byte [esi + 0x10], 1
jne 0x4017ac
push 0
push dword [esp + 0x18]
push esi
push ebp
call fcn.00401040
add esp, 0x10
mov ebp, eax
jmp 0x40187e
push 0x2000
xor ebp, ebp
call fcn.00412a89
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4017de
push ebx
push str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
push str.malloc
call fcn.00402530
add esp, 0xc
or ebp, 0xffffffff
jmp 0x40187e
mov esi, dword [esi + 0xc]
xor ebx, ebx
test esi, esi
je 0x401875
nop dword [eax + eax]
test ebx, ebx
jb 0x401805
ja 0x4017fe
cmp esi, 0x2000
jbe 0x401805
mov edi, 0x2000
jmp 0x401807
mov edi, esi
push dword [esp + 0x1c]
push 1
push edi
push eax
call fcn.0040e982
add esp, 0x10
cmp eax, 1
jb 0x401858
push dword [esp + 0x14]
push 1
push edi
push dword [esp + 0x1c]
call fcn.0040f0a5
add esp, 0x10
cmp eax, 1
jb 0x401848
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebx, ebp
test ebx, ebx
ja 0x4017fe
jb 0x401871
test esi, esi
jne 0x4017f0
jmp 0x401871
push dword [esp + 0x18]
push str.Failed_to_extract__s:_failed_to_write_data_chunk__n
push str.fwrite
jmp 0x401866
push dword [esp + 0x18]
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push str.fread
call fcn.00402530
add esp, 0xc
or ebp, 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call fcn.00412a6e
add esp, 4
push dword [esp + 0x1c]
call fcn.0040e721
add esp, 4
push dword [esp + 0x14]
call fcn.0040e721
add esp, 4
mov eax, ebp
pop ebp
pop ebx
pop esi
pop edi
add esp, 0x10
ret