joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f6b0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x14008b0a0]
mov rbp, rcx
mov r14, rcx
shr rbp, 0x38
mov r15, rcx
shr r14, 0x30
mov r12, rcx
shr r15, 0x28
mov rbx, qword [rax + 0x1ae0]
mov r13, rcx
mov rax, rcx
shr r12, 0x20
shr rax, 0x10
add rbx, 0xc8
mov qword [rsp + 0x68], rax
mov rdi, rcx
mov rax, rcx
shr r13, 0x18
shr rax, 8
cmp dword [rbx], 0
mov qword [rsp + 0x60], rax
jg 0x14000f736
mov r8d, 0x67f
lea rdx, str.D:eieieieiFifa_23_tpimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd rdx, dword [rbx]
lea r8, [0x140038790]
mov rax, qword [rbx + 8]
mov esi, dword [rax + rdx*4 - 4]
not esi
movzx eax, dil
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, byte [rsp + 0x60]
xor esi, dword [r8 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, byte [rsp + 0x68]
xor esi, dword [r8 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, r13b
xor esi, dword [r8 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, r12b
xor esi, dword [r8 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, r15b
xor esi, dword [r8 + rcx*4]
movzx ecx, sil
xor rcx, rax
shr esi, 8
movzx eax, r14b
xor esi, dword [r8 + rcx*4]
movzx ecx, sil
shr esi, 8
xor rcx, rax
xor esi, dword [r8 + rcx*4]
movzx ecx, sil
shr esi, 8
xor rcx, rbp
xor esi, dword [r8 + rcx*4]
mov r8d, dword [rbx + 4]
not esi
cmp edx, r8d
jne 0x14000f80c
lea ecx, [rdx + 1]
test r8d, r8d
je 0x14000f7f8
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x14000f7fd
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rbx
call fcn.140017c50
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], esi
inc dword [rbx]
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400105e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x14008b0a0]
mov edi, edx
cmp byte [rbx + 0x1e25], 0
jne 0x140010631
cmp byte [rbx + 0x1e26], 0
jne 0x140010631
mov r9d, dword [rbx + 0x2ec8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.140002900
test dil, 1
je 0x140010756
jmp 0x1400106bb
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x14006fe44]
xor eax, eax
mov edx, 0x10
mulss xmm1, dword [0x14006fe34]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1ba0], rax
mov dword [rbx + 0x1b8c], 1
movss dword [rbx + 0x1b98], xmm0
movss dword [rbx + 0x1b9c], xmm1
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x14006fdc4]
or dword [rbx + 0x1b88], 0x41
movss dword [rbx + 0x1be8], xmm0
mov r9d, dword [rbx + 0x2ec8]
call fcn.140002900
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140010710
lea r11, [0x140038790]
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x1400106f3
cmp byte [r8], r9b
jne 0x1400106f3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x1400106e0
not ecx
call fcn.140009bc0
test rax, rax
je 0x140010756
cmp byte [rax + 0x8e], 0
je 0x140010756
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xac], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x2ec8]
mov edx, 0x10
mov r9d, dword [rbx + 0x2ec8]
call fcn.140002900
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000c240
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400157d0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x40
mov rbx, qword [0x14008b0a0]
cmp byte [rbx + 0x2f5c], 0
je 0x1400158bc
cmp qword [rbx + 0x2f68], 0
mov qword [rax - 0x18], rsi
lea rsi, [rax + 0x10]
mov qword [rax - 0x20], rdi
lea rdi, [rbx + 0x2f70]
je 0x1400158a4
mov r9d, dword [rdi + 4]
mov qword [rax - 0x10], rbp
xor ebp, ebp
test r9d, r9d
jns 0x14001584b
mov eax, r9d
mov rcx, rdi
cdq
sub eax, edx
mov edx, ebp
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1400179d0
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov dword [rdi], ebp
mov rcx, rdi
mov r8, rsi
call fcn.1400030b0
mov eax, dword [rdi]
mov edx, 1
mov r9, qword [rbx + 0x2f68]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rbx + 0x2f78]
cmove ecx, ebp
test rax, rax
movsxd r8, ecx
lea rcx, [0x14008b098]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
mov rdx, rcx
mov r8, rsi
mov rcx, rdi
call fcn.1400030b0
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
ret
Function at 0x14003330c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140033356
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140033356
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140033356
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140033356
cmp dword [rcx + 0x84], 0xe
jbe 0x140033356
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140033358
xor al, al
add rsp, 0x28
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004470]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004480]
mov dword [rax], 1
mov rax, qword [0x140004490]
mov dword [rax], 1
mov rax, qword [0x1400043e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004460]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140004530]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140004510]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400043c0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400018c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001930
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400070a4]
mov rbx, rcx
test esi, esi
jle 0x140001a60
mov rax, qword [0x1400070a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000197b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001960
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001a82
mov rax, qword [0x1400070a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400070a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400019fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001a10
add dword [0x1400070a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400070a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400019fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001988
mov rax, qword [0x1400070a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002010
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000206c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002063
test eax, eax
jne 0x140002063
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002048
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002280
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002298
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400022a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400022b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400022fd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400022f4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400022ff
add rax, 0x28
cmp rax, r9
jne 0x1400022e0
xor eax, eax
ret

Function at 0x140002300
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002390
mov rdx, qword [0x1400043e0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000237e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000237e
cmp word [rax + 0x18], 0x20b
jne 0x14000237e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002390
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002369
add rbx, 0x28
cmp rbx, rdi
je 0x140002390
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002360
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400023a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400023c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400023c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400023c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000241d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002414
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400023c0
add rax, 0x28
cmp rax, r9
jne 0x140002400
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000243f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002448
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000243f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002460
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002480
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002488
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002480
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400024d0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400024c7
test rcx, rcx
je 0x140002480
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x1400024b8
xor eax, eax
ret
Function at 0x1400024e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043e0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400024ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002508
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002520
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400043e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002540
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002548
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002540
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002540
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002594
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400025a0
add rdx, 0x28
cmp rdx, r9
jne 0x140002580
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x1400025b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1400043e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400025d2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400025e0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025d2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400025d2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400025d2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002635
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002648
add rdx, 0x28
cmp r10, rdx
jne 0x140002620
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002657
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002667
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000263e
test ecx, ecx
jg 0x140002650
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180721108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18072128f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180721139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18072111f
add dl, dl
jne 0x180721146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807211a6
xor eax, eax
add dl, dl
jne 0x180721155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18072125d
add dl, dl
jne 0x180721166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180721173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180721180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18072118d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18072119a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18072112e
mov eax, 1
add dl, dl
jne 0x1807211b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807211c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807211ab
sub eax, ebx
mov ebx, 1
jne 0x1807211fc
mov ecx, 1
add dl, dl
jne 0x1807211de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1807211eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807211d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18072112e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180721218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180721225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18072120d
cmp eax, 0x7d00
jae 0x18072124b
cmp eax, 0x500
jb 0x180721246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18072112e
cmp eax, 0x7f
ja 0x18072124e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18072112e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180721282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18072112e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001280
Capabilities:
Terminate process

Disassembly:
jmp 0x14000f25c
push rbx
sub rsp, 0x20
mov ebx, edx
mov edx, 2
call fcn.1400013ac
movzx ecx, bx
mov r11, rax
cmp ebx, ecx
je 0x14000f28b
lea rcx, str.Internal_buffer_overflow
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.1400013e8
mov eax, ebx
mov byte [r11 + 1], bl
sar eax, 8
mov byte [r11], al
add rsp, 0x20
pop rbx
ret

Function at 0x140001325
Capabilities:
Terminate process
Write file on windows

Disassembly:
jmp 0x14001b05c
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xa0]
mov bl, r8b
mov r14d, dword [rsi + 8]
mov rdi, rcx
xor r8d, r8d
add r14d, dword [rbp + 8]
xor edx, edx
xor ecx, ecx
call fcn.140001393
cmp qword [rbp + 8], 0
mov r15d, eax
je 0x14001b0c0
mov r8d, dword [rbp + 8]
mov rdx, qword [rbp]
mov ecx, eax
call fcn.140001393
mov r15d, eax
cmp qword [rsi + 8], 0
je 0x14001b0d9
mov r8d, dword [rsi + 8]
mov rdx, qword [rsi]
mov ecx, r15d
call fcn.140001393
mov r15d, eax
test bl, bl
je 0x14001b0fd
test r14d, r14d
jle 0x14001b0fd
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
mov r12b, 1
call fcn.1400015b4
test al, al
je 0x14001b0fd
mov r13d, dword [rdi + 0x40]
jmp 0x14001b103
xor r12b, r12b
mov r13d, r14d
mov r9d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x88]
mov dword [rsp + 0x30], r15d
test r12b, r12b
mov rcx, rdi
mov dword [rsp + 0x28], r13d
sete bl
mov dword [rsp + 0x20], r14d
mov r8b, bl
call fcn.140001537
mov r9d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x88]
mov dword [rsp + 0x30], r15d
mov r8b, bl
mov rcx, rdi
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r14d
call fcn.140001442
mov rcx, rdi
test r12b, r12b
je 0x14001b16f
mov r8d, dword [rdi + 0x40]
mov rdx, qword [rdi + 0x38]
jmp 0x14001b186
mov r8d, dword [rbp + 8]
mov rdx, qword [rbp]
call fcn.14000141a
mov r8d, dword [rsi + 8]
mov rdx, qword [rsi]
mov rcx, rdi
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.14000141a
Function at 0x1400013e8
Capabilities:
Terminate process

Disassembly:
jmp 0x14001a54c
push rbx
sub rsp, 0x20
test rcx, rcx
lea rbx, str.corrupt_pack_file_or_internal_error
mov rax, rdx
cmovne rbx, rcx
test rdx, rdx
jne 0x14001a598
call fcn.1400011ea
test rax, rax
jne 0x14001a598
call qword [sym.imp.MSVCR100.dll___iob_func]
lea rdx, str.Error:_unpacker:__s_n
mov r8, rbx
lea rcx, [rax + 0x60]
call qword [sym.imp.MSVCR100.dll_fprintf]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.MSVCR100.dll_abort]
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.140001631

Function at 0x14000141a
Capabilities:
Terminate process
Write file on windows

Disassembly:
jmp 0x14001a6fc
test r8d, r8d
jle 0x14001a74f
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov r9, qword [rdi]
movsxd r8, ebx
mov edx, 1
mov rcx, rsi
call qword [sym.imp.MSVCR100.dll_fwrite]
test eax, eax
jle 0x14001a750
add dword [rdi + 0x34], eax
movsxd rcx, eax
sub ebx, eax
add rsi, rcx
test ebx, ebx
jg 0x14001a719
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.MSVCR100.dll__errno]
mov rcx, qword [rdi + 0x50]
lea rdx, str.Error:_write_on_output_file_failed_err_d_n
mov rcx, qword [rcx + 0xc0]
mov r8d, dword [rax]
call qword [sym.imp.MSVCR100.dll_fprintf]
mov ecx, 1
call qword [sym.imp.MSVCR100.dll_exit]
int3
Function at 0x14000145b
Capabilities:
Get common file path

Disassembly:
jmp 0x1400195dc
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
mov rax, qword [0x140028ec0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
cmp qword [rcx + 0xd0], 0
mov rbx, rcx
lea rax, [0x140024ff4]
cmovne rax, qword [rcx + 0xd0]
mov qword [rcx + 0xd0], rax
mov rcx, rax
cmp rax, qword [rbx + 0xc8]
je 0x1400197c7
lea rsi, [0x140022c1d]
mov qword [rbx + 0xc8], rax
mov rdx, rsi
call sub.MSVCR100.dll_strcmp
test eax, eax
jne 0x140019661
call qword [sym.imp.MSVCR100.dll___iob_func]
jmp 0x1400197bc
mov rcx, qword [rbx + 0xd0]
lea rdx, [0x140024ff4]
call sub.MSVCR100.dll_strcmp
test eax, eax
jne 0x140019687
call qword [sym.imp.MSVCR100.dll___iob_func]
add rax, 0x30
jmp 0x1400197c0
mov rcx, qword [rbx + 0xd0]
cmp byte [rcx], 0
je 0x1400196b0
lea rdx, [0x14002589c]
call qword [sym.imp.MSVCR100.dll_fopen]
mov qword [rbx + 0xc0], rax
test rax, rax
jne 0x1400197c7
mov edi, 0x104
lea rdx, [rbp + 0xa0]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 1
jl 0x1400196cd
cmp eax, edi
jle 0x1400196e1
lea rdx, [0x140025898]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.MSVCR100.dll_sprintf]
lea r8, [rbp + 0xa0]
lea rdx, str._sunpack.log
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR100.dll_sprintf]
lea rdx, [0x14002589c]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR100.dll_fopen]
mov qword [rbx + 0xc0], rax
test rax, rax
je 0x14001974c
lea rcx, [rsp + 0x30]
call sub.MSVCR100.dll_strlen
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov r9, rax
mov rcx, rbx
call fcn.14000114f
mov r11, qword [rsp + 0x20]
mov qword [rbx + 0xc8], r11
mov qword [rbx + 0xd0], r11
jmp 0x1400197c7
lea rdx, str.upkg
lea rcx, [rbp + 0xa0]
call qword [sym.imp.MSVCR100.dll__tempnam]
mov rdi, rax
test rax, rax
je 0x1400197c7
lea rdx, [0x140025878]
lea rcx, [rsp + 0x30]
mov r8, rax
call qword [sym.imp.MSVCR100.dll_sprintf]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_free]
lea rdx, [0x14002589c]
lea rcx, [rsp + 0x30]
call qword [sym.imp.MSVCR100.dll_fopen]
mov qword [rbx + 0xc0], rax
test rax, rax
jne 0x140019718
call qword [sym.imp.MSVCR100.dll___iob_func]
mov qword [rbx + 0xc8], rsi
mov qword [rbx + 0xd0], rsi
add rax, 0x60
mov qword [rbx + 0xc0], rax
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14001c6b0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret