joyce8/EMBER2024-capa huggingface dataset:
Function at 0x199568f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1995698d
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
push edi
push 4
pop edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x10
push dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
push ebx
push dword [ebp - 8]
call esi
test eax, eax
jne 0x1995694b
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x14], ebx
je 0x19956979
cmp eax, ebx
je 0x19956979
cmp eax, 1
je 0x19956979
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
push ebx
push 0x10
push 0x198dd850
push ebx
push dword [ebp - 8]
mov dword [ebp + 0xc], edi
call esi
test eax, eax
jne 0x19956982
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x14], ebx
je 0x19956979
cmp eax, ebx
je 0x19956979
cmp eax, 1
jne 0x19956982
mov ecx, dword [ebp + 0x18]
mov byte [ebp - 1], 1
mov dword [ecx], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret 0x14

Function at 0x199572f1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp + 8]
push eax
push esi
call fcn.199570f1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x19957312
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov ecx, eax
shr ecx, 2
sub eax, ecx
mov ecx, eax
shr ecx, 1
xor ecx, eax
and ecx, 0xf
movzx eax, byte [ecx + 0x19957388]
cmp eax, 0xb
jl 0x19957333
or eax, 0xffffffff
jmp 0x1995737d
movzx ecx, byte [eax + 0x198dd974]
add ecx, 0x198dd908
push edi
movzx edx, word [esi]
test edx, 0xff00
je 0x19957350
xor edx, edx
jmp 0x1995735a
movzx edx, dx
movzx edx, byte [edx + 0x198de308]
movzx edx, dl
inc esi
inc esi
test edx, edx
je 0x19957374
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x198de308]
inc ecx
cmp edi, edx
jne 0x19957379
jmp 0x19957341
cmp byte [ecx], 0
je 0x1995737c
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret 8
Function at 0x1995879e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, eax
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
sub eax, ecx
cmp eax, 0x13
jg 0x199587bc
call fcn.19900da8
jmp 0x199588e1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0xc]
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx edx, dl
shl eax, 8
or eax, edx
movzx edx, byte [ebp + 0xc]
shl eax, 8
push 0xd
or eax, edx
pop edx
push ebx
cmp dword [edx*4 + 0x198de198], eax
je 0x1995882b
inc edx
cmp edx, 0x1c
jle 0x199587e0
mov byte [ecx + edi], 0x23
inc dword [esi]
mov edx, dword [esi]
mov ecx, eax
shr ecx, 4
xor ecx, eax
test ecx, 0xf0f0f
movzx ecx, al
jne 0x19958868
shr ecx, 4
mov cl, byte [ecx + 0x199588e8]
mov byte [edx + edi], cl
mov edx, eax
shr eax, 0x10
movzx eax, al
shr edx, 8
movzx edx, dl
shr eax, 4
jmp 0x199588bb
movzx eax, word [edx*2 + 0x198ddff0]
lea ecx, [eax + 0x198ddd08]
mov eax, ecx
lea edx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x1995883e
sub eax, edx
mov ebx, eax
mov eax, dword [esi]
lea edx, [eax + ebx]
cmp edx, dword [ebp + 8]
jge 0x199588e0
push ebx
push ecx
add eax, edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
add dword [esi], ebx
jmp 0x199588da
mov ebx, ecx
shr ebx, 4
mov bl, byte [ebx + 0x199588e8]
mov byte [edx + edi], bl
inc dword [esi]
mov edx, dword [esi]
and ecx, 0xf
mov cl, byte [ecx + 0x199588e8]
mov byte [edx + edi], cl
inc dword [esi]
mov edx, dword [esi]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov ebx, ecx
shr ebx, 4
mov bl, byte [ebx + 0x199588e8]
mov byte [edx + edi], bl
inc dword [esi]
mov edx, dword [esi]
shr eax, 0x10
and ecx, 0xf
mov cl, byte [ecx + 0x199588e8]
movzx eax, al
mov byte [edx + edi], cl
mov edx, eax
and eax, 0xf
inc dword [esi]
mov ecx, dword [esi]
shr edx, 4
mov dl, byte [edx + 0x199588e8]
mov byte [edi + ecx], dl
inc dword [esi]
mov ecx, dword [esi]
mov al, byte [eax + 0x199588e8]
mov byte [ecx + edi], al
inc dword [esi]
mov esi, dword [esi]
mov byte [esi + edi], 0
pop ebx
pop esi
pop ebp
ret 8

Function at 0x1995d161
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
lea eax, [ebp + 8]
push eax
push esi
call fcn.199570f1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1995d182
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov ecx, eax
shr ecx, 6
xor ecx, eax
and ecx, 0xf
movzx eax, byte [ecx + 0x1995d240]
cmp eax, 9
jl 0x1995d19d
or eax, 0xffffffff
jmp 0x1995d1e7
movzx ecx, byte [eax + 0x1995d234]
add ecx, 0x1995d1f0
push edi
movzx edx, word [esi]
test edx, 0xff00
je 0x1995d1ba
xor edx, edx
jmp 0x1995d1c4
movzx edx, dx
movzx edx, byte [edx + 0x198de308]
movzx edx, dl
inc esi
inc esi
test edx, edx
je 0x1995d1de
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x198de308]
inc ecx
cmp edi, edx
jne 0x1995d1e3
jmp 0x1995d1ab
cmp byte [ecx], 0
je 0x1995d1e6
or eax, 0xffffffff
pop edi
pop esi
pop ebp
ret 8
Function at 0x447970
Capabilities:
Hash data with md5

Disassembly:
push esi
sub esp, 8
mov eax, 0x8530a074
mov dword [esp + 4], ecx
mov dx, word [0x4a6b14]
mov si, dx
dec esi
mov dx, si
mov word [0x4a6b14], dx
movsx esi, dx
xor esi, 0xf13c0005
cmp eax, esi
mov dword [esp], ecx
jg 0x4479e5
mov eax, dword [0x49eb40]
mov ecx, eax
dec ecx
mov dword [0x49eb40], ecx
mov dx, word [0x4a84b8]
mov cx, dx
mov esi, dword [0x498470]
dec esi
mov dword [0x498470], esi
sub ecx, esi
or eax, ecx
mov dx, word [0x4a2050]
mov cx, dx
and ecx, eax
mov dx, cx
mov word [0x4a2050], dx
mov eax, dword [esp]
mov dword [eax], 0
mov ecx, dword [0x4a0a88]
add ecx, 0xe17c130a
mov dword [0x4a0a88], ecx
mov dword [eax + 4], 0
mov ecx, dword [0x498dc4]
mov edx, ecx
dec edx
mov dword [0x498dc4], edx
or ecx, 0x30214dd2
mov edx, dword [0x49d354]
or edx, 0xfbfd7edb
cmp ecx, edx
je 0x447a5a
mov eax, dword [0x499864]
mov ecx, eax
dec ecx
mov dword [0x499864], ecx
imul eax, eax, 0xf593468e
mov ecx, dword [0x49e448]
xor eax, ecx
mov ecx, dword [0x499c3c]
add ecx, eax
mov dword [0x499c3c], ecx
mov eax, dword [esp]
mov dword [eax + 8], 0x67452301
mov cx, word [0x4a5564]
mov dx, cx
add edx, 0x5bb38414
mov cx, dx
mov word [0x4a5564], cx
mov dword [eax + 0xc], 0xefcdab89
mov cx, word [0x4a35d2]
mov dx, cx
imul edx, edx, 0x3f81453
mov cx, word [0x4a5470]
mov si, cx
xor esi, edx
mov cx, si
mov word [0x4a5470], cx
mov dword [eax + 0x10], 0x98badcfe
mov edx, dword [0x49c5b4]
imul edx, edx, 0xbff7fb7
mov dword [0x49c5b4], edx
mov dword [eax + 0x14], 0x10325476
mov edx, dword [0x49b66c]
xor edx, 0xef7ebfbb
mov dword [0x49b66c], edx
add esp, 8
pop esi
ret
Function at 0x44fb80
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [0x494dfc]
add eax, 0xa7055610
mov dword [0x494dfc], eax
mov eax, dword [0x4a8c54]
mov ecx, esp
mov dword [ecx], eax
call fcn.00437e10
mov ecx, dword [0x4a0778]
xor ecx, 0xffffffff
xor ecx, 0xc71fdf65
cmp ecx, 0xadce4a3c
mov byte [esp + 0xb], al
jl 0x44fc0c
mov eax, 0xa8fd8c07
mov cx, word [0x4a7db0]
movsx edx, cx
shl edx, 9
or edx, 0xbf0f5353
cmp eax, edx
jg 0x44fc07
mov eax, 0x58674972
mov ecx, dword [0x495e80]
shl ecx, 7
cmp eax, ecx
jne 0x44fc02
jmp 0x44fc02
jmp 0x44fc07
jmp 0x44fc1b
mov eax, dword [0x49d21c]
add eax, 0xbd9b7b6e
mov dword [0x49d21c], eax
mov eax, 1
mov dword [esp], 1
mov dword [esp + 4], eax
call fcn.00456e5d
Function at 0x4729aa
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x492b20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0046072b
mov dword [ebp - 0x14], eax
cmp dword [0x4a9eec], esi
jne 0x472a9d
push 0x800
push esi
push 0x4882b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x472a2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x472b7d
push esi
push esi
push 0x4882b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x472b7d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x472b7d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4a9eec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4a9ef0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4a9ef4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a9efc], eax
test eax, eax
je 0x472a9a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a9ef8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x472ac2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x472ab5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x472ad7
push 4
pop eax
jmp 0x472b7f
cmp dword [ebp - 0x14], esi
je 0x472ad7
push dword [0x4a9eec]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x472abc
mov eax, dword [0x4a9ef8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x472b35
cmp dword [0x4a9efc], edi
je 0x472b35
push eax
call ebx
push dword [0x4a9efc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x472b35
test eax, eax
je 0x472b35
call ecx
test eax, eax
je 0x472b2a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x472b2a
test byte [ebp - 8], 1
jne 0x472b35
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x472b65
mov eax, dword [0x4a9ef0]
cmp eax, edi
je 0x472b62
push eax
call ebx
test eax, eax
je 0x472b62
call eax
mov esi, eax
test esi, esi
je 0x472b62
mov eax, dword [0x4a9ef4]
cmp eax, edi
je 0x472b62
push eax
call ebx
test eax, eax
je 0x472b62
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4a9eec]
call ebx
test eax, eax
je 0x472b7d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x472b7f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00465f08
mov esp, ebp
pop ebp
ret
Function at 0x401040
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
xor ebp, ebp
push edi
push 0x4285c0
push esi
mov dword [esp + 0x1c], 0xffffffff
call fcn.004040b0
mov edi, eax
add esp, 8
mov dword [esp + 0x10], edi
test edi, edi
jne 0x401095
mov eax, dword [esp + 0x20]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402470
add esp, 8
push ebp
call fcn.0041324e
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x24]
xor eax, eax
push 0
mov ecx, dword [ebx + 4]
add ecx, dword [esi + 0x1000]
adc eax, dword [esi + 0x1004]
push eax
push ecx
push edi
call fcn.0040f4d6
add esp, 0x10
test eax, eax
jns 0x4010e0
call fcn.00413230
mov ecx, eax
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push dword [ecx]
push str.fseek
call fcn.004025f0
add esp, 0x10
jmp 0x4011c2
push dword [ebx + 0xc]
call fcn.00413269
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x401119
mov esi, dword [ebx + 0xc]
call fcn.00413230
mov ecx, eax
lea eax, [ebx + 0x12]
push esi
push eax
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push dword [ecx]
push str.malloc
call fcn.004025f0
add esp, 0x14
jmp 0x4011c2
cmp byte [ebx + 0x10], 1
jne 0x401131
push ebp
push 0
push ebx
push edi
call fcn.00401200
add esp, 0x10
jmp 0x4011b3
mov esi, dword [ebx + 0xc]
xor ebx, ebx
mov dword [esp + 0x10], eax
test esi, esi
je 0x401185
nop
test ebx, ebx
jb 0x401155
ja 0x40114e
cmp esi, 0x2000
jbe 0x401155
mov edi, 0x2000
jmp 0x401157
mov edi, esi
push dword [esp + 0x14]
push 1
push edi
push eax
call fcn.0040f0b2
add esp, 0x10
cmp eax, 1
jb 0x401189
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebx, 0
add eax, edi
mov dword [esp + 0x10], eax
test ebx, ebx
ja 0x40114e
jb 0x401185
test esi, esi
jne 0x401140
xor eax, eax
jmp 0x4011af
call fcn.00413230
mov ecx, eax
mov eax, dword [esp + 0x24]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push dword [ecx]
push str.fread
call fcn.004025f0
add esp, 0x10
or eax, 0xffffffff
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4011c2
push ebp
call fcn.0041324e
add esp, 4
xor ebp, ebp
push edi
call fcn.0040ee51
add esp, 4
pop ebx
test ebp, ebp
je 0x4011e1
push dword [esp + 0x24]
push ebp
call fcn.004041c0
add esp, 8
mov dword [esp + 0x14], eax
push ebp
call fcn.0041324e
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x401200
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.3.1
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.0040af80
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401254
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.00402470
add esp, 0xc
or eax, 0xffffffff
pop esi
pop ebx
add esp, 0x48
ret
push 0x2000
call fcn.00413269
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401291
call fcn.00413230
mov ecx, eax
mov eax, dword [esp + 0x58]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_allocate_temporary_input_buffer__n
push dword [ecx]
push str.malloc
call fcn.004025f0
add esp, 0x10
jmp 0x4013be
push 0x2000
call fcn.00413269
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4012ca
call fcn.00413230
mov ecx, dword [esp + 0x58]
add ecx, 0x12
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_temporary_output_buffer__n
push dword [eax]
push str.malloc
call fcn.004025f0
add esp, 0x10
jmp 0x4013be
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 0x4012f9
ja 0x4012f2
cmp eax, 0x2000
jbe 0x4012f9
mov esi, 0x2000
jmp 0x4012fb
mov esi, eax
push dword [esp + 0x5c]
push esi
push 1
push dword [esp + 0x24]
call fcn.0040f0b2
add esp, 0x10
cmp eax, esi
jne 0x4013b9
push dword [esp + 0x5c]
call fcn.0040eead
add esp, 4
test eax, eax
jne 0x4013b9
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.004094a0
add esp, 8
mov dword [esp + 0x1c], eax
lea ecx, [eax + 4]
cmp ecx, 6
ja case.0x40136e.1
movzx ecx, byte [ecx + 0x401444]
jmp dword [ecx*4 + 0x401438]
mov esi, 0x2000
sub esi, dword [esp + 0x30]
test ebp, ebp
je 0x4013e2
push ebp
push esi
push 1
push ebx
call fcn.0040f7d5
add esp, 0x10
cmp eax, esi
jne 0x4013a0
push ebp
call fcn.0040eead
add esp, 4
test eax, eax
je 0x4013f3
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.00402470
add esp, 0xc
or esi, 0xffffffff
pop edi
pop ebp
lea eax, [esp + 0x18]
push eax
call fcn.0040ad70
push dword [esp + 0x14]
call fcn.0041324e
push ebx
call fcn.0041324e
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 0x48
ret
test edi, edi
je 0x4013f7
push esi
push ebx
push edi
call fcn.0040c590
add esp, 0xc
add edi, esi
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], 0
je 0x401340
cmp eax, 1
je 0x401431
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x401415
cmp dword [esp + 0x10], ecx
jbe 0x4013a3
mov eax, dword [esp + 0x10]
jmp 0x4012e5
mov eax, 0xfffffffd
jmp 0x4013a3
cmp eax, 1
jne 0x4013a3
xor esi, esi
jmp 0x4013bc
Function at 0x401450
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
xor ebp, ebp
push 0x4285c0
push esi
call fcn.004040b0
mov ebx, eax
add esp, 8
mov dword [esp + 0xc], ebx
test ebx, ebx
jne 0x401492
mov eax, dword [esp + 0x1c]
add eax, 0x12
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402470
add esp, 8
xor eax, eax
pop esi
pop ebp
pop ebx
add esp, 8
ret
push edi
mov edi, dword [esp + 0x20]
xor eax, eax
push 0
mov ecx, dword [edi + 4]
add ecx, dword [esi + 0x1000]
adc eax, dword [esi + 0x1004]
push eax
push ecx
push ebx
call fcn.0040f4d6
add esp, 0x10
test eax, eax
jns 0x4014eb
call fcn.00413230
mov ecx, eax
lea eax, [edi + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push dword [ecx]
push str.fseek
call fcn.004025f0
add esp, 0x10
push ebx
call fcn.0040ee51
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push dword [edi + 0xc]
call fcn.00413269
mov ebp, eax
add esp, 4
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x401534
mov esi, dword [edi + 0xc]
call fcn.00413230
push esi
lea ecx, [edi + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_data_buffer___u_bytes___n
push dword [eax]
push str.malloc
call fcn.004025f0
add esp, 0x14
push ebx
call fcn.0040ee51
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp byte [edi + 0x10], 1
jne 0x401549
push ebp
push 0
push edi
push ebx
call fcn.00401200
add esp, 0x10
jmp 0x4015bf
mov esi, dword [edi + 0xc]
xor ebx, ebx
test esi, esi
je 0x40158f
test ebx, ebx
jb 0x401567
ja 0x401560
cmp esi, 0x2000
jbe 0x401567
mov edi, 0x2000
jmp 0x401569
mov edi, esi
push dword [esp + 0x10]
push 1
push edi
push ebp
call fcn.0040f0b2
add esp, 0x10
cmp eax, 1
jb 0x401593
sub esi, edi
sbb ebx, 0
add ebp, edi
test ebx, ebx
ja 0x401560
jb 0x40158f
test esi, esi
jne 0x401552
xor eax, eax
jmp 0x4015b7
call fcn.00413230
mov ecx, dword [esp + 0x20]
add ecx, 0x12
push ecx
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push dword [eax]
push str.fread
call fcn.004025f0
add esp, 0x10
or eax, 0xffffffff
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test eax, eax
je 0x4015ce
push ebp
call fcn.0041324e
add esp, 4
xor ebp, ebp
push ebx
call fcn.0040ee51
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4015f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x18]
push esi
cmp byte [ebx + 0x11], 0x6e
jne 0x40162f
push dword [esp + 0x20]
push ebx
push dword [esp + 0x20]
call fcn.00401040
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x401627
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_create_symbolic_link__s__n
call fcn.00402470
add esp, 8
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret
push edi
push 0x4286a8
push dword [esp + 0x28]
call fcn.004040b0
mov edi, eax
add esp, 8
mov dword [esp + 0x14], edi
test edi, edi
jne 0x401672
call fcn.00413230
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_open_target_file__n
push dword [eax]
push str.fopen
call fcn.004025f0
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov esi, dword [esp + 0x1c]
push ebp
push 0x4285c0
push esi
call fcn.004040b0
mov ebp, eax
add esp, 8
mov dword [esp + 0x14], ebp
test ebp, ebp
jne 0x4016a8
lea eax, [ebx + 0x12]
push eax
push str.Failed_to_extract__s:_failed_to_open_archive_file__n
call fcn.00402470
add esp, 8
or edi, 0xffffffff
jmp 0x4017fc
mov ecx, dword [ebx + 4]
xor eax, eax
add ecx, dword [esi + 0x1000]
push 0
adc eax, dword [esi + 0x1004]
push eax
push ecx
push ebp
call fcn.0040f4d6
add esp, 0x10
test eax, eax
jns 0x4016ef
call fcn.00413230
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_seek_to_the_entrys_data__n
push dword [eax]
push str.fseek
call fcn.004025f0
add esp, 0x10
or edi, 0xffffffff
jmp 0x4017f3
cmp byte [ebx + 0x10], 1
jne 0x401709
push 0
push edi
push ebx
push ebp
call fcn.00401200
add esp, 0x10
mov edi, eax
jmp 0x4017f3
push 0x2000
xor edi, edi
call fcn.00413269
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x401745
call fcn.00413230
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_allocate_temporary_buffer__n
push dword [eax]
push str.malloc
call fcn.004025f0
add esp, 0x10
or edi, 0xffffffff
jmp 0x4017f3
mov esi, dword [ebx + 0xc]
xor ebp, ebp
test esi, esi
je 0x4017e6
test ebp, ebp
jb 0x401767
ja 0x401760
cmp esi, 0x2000
jbe 0x401767
mov edi, 0x2000
jmp 0x401769
mov edi, esi
push dword [esp + 0x14]
push 1
push edi
push eax
call fcn.0040f0b2
add esp, 0x10
cmp eax, 1
jb 0x4017c2
push dword [esp + 0x18]
push 1
push edi
push dword [esp + 0x1c]
call fcn.0040f7d5
add esp, 0x10
cmp eax, 1
jb 0x4017ab
mov eax, dword [esp + 0x10]
sub esi, edi
sbb ebp, 0
jne 0x401752
jb 0x4017a7
test esi, esi
jne 0x401752
xor edi, edi
jmp 0x4017e2
call fcn.00413230
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_write_data_chunk__n
push dword [eax]
push str.fwrite
jmp 0x4017d7
call fcn.00413230
lea ecx, [ebx + 0x12]
push ecx
push str.Failed_to_extract__s:_failed_to_read_data_chunk__n
push dword [eax]
push str.fread
call fcn.004025f0
add esp, 0x10
or edi, 0xffffffff
mov eax, dword [esp + 0x10]
push eax
call fcn.0041324e
mov ebp, dword [esp + 0x18]
add esp, 4
push ebp
call fcn.0040ee51
add esp, 4
push dword [esp + 0x18]
call fcn.0040ee51
add esp, 4
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret