joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180059950
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x1800599b1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x180059970
mov ecx, dword [r10]
jmp 0x180059a9a
cmp ecx, 0x4e0
jb 0x180059a9a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1800599d0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x180059a20
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x180059ae0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r10d, r8d
mov rdi, rdx
mov r11, rcx
mov rbx, qword [0x1800d20d8]
add rbx, rcx
mov r9, qword [0x1800d21e8]
add r9, rcx
mov r8d, 2
cmp byte [r9], 0
jne 0x180059b55
mov word [r9 + 1], 1
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rsp + 0x30], rax
mov byte [r9 + 4], al
movzx eax, byte [rsp + 0x31]
mov edx, r8d
mov byte [r9 + 5], al
movzx ecx, byte [rsp + rdx + 0x30]
inc edx
mov byte [r9 + 6], cl
movzx eax, byte [rsp + rdx + 0x30]
mov byte [r9 + 7], al
mov byte [r9 + 8], 0
mov byte [r9], 1
mov rcx, r9
mov dword [rsp + 0x40], r10d
mov eax, dword [r9 + 4]
mov dword [rsp + 0x30], eax
movzx edx, byte [r9 + 1]
lea rax, [r8 + rcx]
test dl, dl
je 0x180059b98
xor ecx, ecx
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rsp + rcx + 0x30]
not eax
xor dword [rsp + rcx + 0x40], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x180059b80
lea rax, [r9 + 2]
movzx eax, byte [rax]
mov ecx, 4
sub rcx, rax
cmp rcx, 4
jae 0x180059bc4
nop dword [rax]
movzx eax, byte [rsp + rcx + 0x30]
not al
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 4
jb 0x180059bb0
movzx eax, byte [r9 + 8]
inc al
and eax, 3
mov ecx, eax
mov eax, dword [rsp + 0x40]
mov dword [r9 + rcx*4 + 0xc], eax
mov byte [r9 + 8], cl
mov dword [rbx + 0x38], r10d
mov r9, qword [0x1800d20d8]
add r9, r11
mov r8, qword [r9 + 0x18]
movabs rdx, 0xcbf29ce484222325
movabs r11, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movsx rcx, byte [r8]
lea r8, [r8 + 1]
xor rdx, rcx
imul rdx, r11
test cl, cl
jne 0x180059c10
movabs rax, 0x2374c594f5e76f06
cmp rdx, rax
jne 0x180059c3d
lea eax, [r10 - 0x1d]
cmp eax, 7
jbe 0x180059c6c
jmp 0x180059c94
movabs rax, 0xf9bdf861cccd5fd1
cmp rdx, rax
jne 0x180059c57
lea eax, [r10 - 0x1a]
cmp eax, 6
jbe 0x180059c6c
jmp 0x180059c94
movabs rax, 0xb4d052affec8dc8e
cmp rdx, rax
jne 0x180059c76
cmp r10d, 0x10
jne 0x180059c94
mov byte [r9 + 0x9c], 0
jmp 0x180059cd7
movabs rcx, 0x2f2959b508f215d2
movabs rax, 0xecc3c7c77aebb7ea
cmp rdx, rcx
je 0x180059cb7
cmp rdx, rax
je 0x180059cb7
cmp byte [r9 + 0x9c], 0xff
je 0x180059cd7
movabs rax, 0xeb5bc0df5355fba6
cmp rdx, rax
je 0x180059cd7
mov byte [r9 + 0x9c], 0xff
jmp 0x180059cd7
cmp r10d, 7
jne 0x180059d4a
cmp rdx, rcx
je 0x180059d5d
mov rax, qword [r9]
cmp rax, qword [r9 + 8]
je 0x180059cd7
mov qword [r9 + 8], rax
mov ecx, dword [0x1800d0e6c]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1800d3690], ecx
jle 0x180059d33
lea rcx, [0x1800d3690]
call fcn.18005efcc
cmp dword [0x1800d3690], 0xffffffff
jne 0x180059d33
mov rax, qword [0x1800cfcd8]
mov rdx, qword [rax]
add rdx, qword [0x1800d21f0]
mov qword [0x1800d3688], rdx
lea rcx, [0x1800d3690]
call fcn.18005ef6c
mov dl, 1
mov rcx, rbx
call qword [0x1800d3688]
nop
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp r10d, 6
jne 0x180059cca
cmp rdx, rax
jne 0x180059cca
mov rax, qword [r9]
cmp rax, qword [r9 + 8]
je 0x180059d6a
mov qword [r9 + 8], rax
mov r8d, r10d
mov rdx, rdi
mov rcx, r9
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.180059d90
Function at 0x18005c950
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18005c9d4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18008d640]
cmp byte [rcx + rax], 0
je 0x18005c9d4
dec r8
sub rdx, 1
jne 0x18005c9ba
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x18006e03c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18005f730
sub rsp, rax
mov rax, qword [0x1800cf098]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18007671c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18006e08b
mov rax, rbp
jmp 0x18006e193
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xd1960]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18007cebc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xd1960]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18006e18f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18006e18f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18007cebc
test rax, rax
js 0x18006e18f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18006e18f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18006e181
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18006e181
cmp byte [rcx], 0xd
jne 0x18006e167
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18006e176
cmp byte [rcx + 1], 0xa
jne 0x18006e176
inc rcx
jmp 0x18006e176
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xcf470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18006e149
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18006e193
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18005f680
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18007a0ec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x18007a11e
call fcn.18006af30
mov dword [rax], 0x16
call fcn.18006dc04
jmp 0x18007a23d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18007a23d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18007a23d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18007a14d
lock or dword [rcx + 0x14], 0x10
jmp 0x18007a23d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18007a161
call fcn.18007c1cc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.18007671c
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.18007c6e4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18007a22b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x18007a1f6
mov rcx, rsi
call fcn.18007671c
cmp eax, edi
je 0x18007a1e1
mov rcx, rsi
call fcn.18007671c
cmp eax, 0xfffffffe
je 0x18007a1e1
mov rcx, rsi
call fcn.18007671c
movsxd rbx, eax
lea r14, [0x1800d1960]
mov rcx, rsi
sar rbx, 6
call fcn.18007671c
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x18007a1e8
lea rdx, [0x1800cf420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18007a1f6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18007a21a
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18007a21a
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18007a21a
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x18007a240
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x18007c238
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1800d1960]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x18007c296
cmp word [rdx], r12w
jne 0x18007c296
or byte [rax + r8*8 + 0x38], cl
jmp 0x18007c29c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18007c3f7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18007c3d2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18007c2d5
mov rcx, r9
jmp 0x18007c2f8
cmp r9, rdx
jae 0x18007c30f
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x18007c2b9
jmp 0x18007c3f7
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18007c3cc
cmp dword [rsp + 0x80], edi
je 0x18007c3cc
mov rdx, r14
lea r11, [0x1800d1960]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x18007c3a5
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18007c378
mov word [rbx], r12w
jmp 0x18007c3f3
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x18007c381
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18007c3f3
cmp word [rsp + 0x70], r12w
jne 0x18007c3b2
cmp rbx, rsi
je 0x18007c372
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18007cec4
cmp word [rsp + 0x70], r12w
je 0x18007c3f7
mov word [rbx], r13w
jmp 0x18007c3f3
lea r11, [0x1800d1960]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18007c3ef
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18007c3f7
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180080c58
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180080c88
xor eax, eax
jmp 0x180080d4b
mov rbp, rbx
cmp word [rax], si
je 0x180080cad
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180080c94
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180080c90
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18007f3dc
movsxd r14, eax
test eax, eax
jne 0x180080ceb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180080c81
mov rcx, r14
call fcn.18007af70
mov rdi, rax
test rax, rax
jne 0x180080d04
xor ecx, ecx
call fcn.180079c6c
jmp 0x180080ce0
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18007f3dc
test eax, eax
jne 0x180080d35
mov rcx, rdi
call fcn.180079c6c
jmp 0x180080d3f
xor ecx, ecx
call fcn.180079c6c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800878e0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18007cec4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18007cec4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180087a30
cmp rax, 0xffffffffffffffff
je 0x180087a30
xor edi, edi
test rbp, rbp
jle 0x1800879db
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18007a258
mov rbx, rax
test rax, rax
jne 0x180087968
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800879d1
mov edx, 0x8000
mov ecx, r14d
call fcn.180087768
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800796fc
cmp eax, 0xffffffff
je 0x1800879b1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180087978
mov edx, r15d
mov ecx, r14d
call fcn.180087768
jmp 0x1800879d1
cmp byte [rsi + 0x38], dil
je 0x1800879c8
cmp dword [rsi + 0x34], 5
jne 0x1800879c8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800879d1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180079c6c
jmp 0x180087a44
jns 0x180087a44
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18007cec4
cmp rax, 0xffffffffffffffff
jne 0x1800879fc
cmp byte [rsi + 0x30], dil
je 0x180087a44
mov edi, dword [rsi + 0x2c]
jmp 0x180087a44
mov ecx, r14d
call fcn.180081410
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180087a44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x180087a44
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180087a3d
mov eax, dword [rsi + 0x2c]
jmp 0x180087a42
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18007cec4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180088130
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180088158
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180088158
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400012a8
Capabilities:
Terminate process

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

Function at 0x140001429
Capabilities:
Terminate process

Disassembly:
jmp 0x14001d60c
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 0x14001d658
call fcn.140001208
test rax, rax
jne 0x14001d658
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.1400016b3

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

Disassembly:
jmp 0x14001d7bc
test r8d, r8d
jle 0x14001d80f
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 0x14001d810
add dword [rdi + 0x34], eax
movsxd rcx, eax
sub ebx, eax
add rsi, rcx
test ebx, ebx
jg 0x14001d7d9
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 0x14000159b
Capabilities:
Terminate process

Disassembly:
jmp 0x14000e328
push rbx
sub rsp, 0x20
movsxd r11, r9d
mov rbx, r8
mov r10, rcx
test edx, edx
jns 0x14000e344
lea rcx, str.bad_value_count
jmp 0x14000e3b9
mov r9, qword [rcx]
cmp r11d, 1
je 0x14000e389
mov ecx, 0x100
cmp dword [rsp + 0x50], ecx
je 0x14000e389
sub ecx, dword [rsp + 0x50]
mov r8d, r11d
jmp 0x14000e37c
inc r9
dec r8d
je 0x14000e372
movzx eax, byte [r9 - 1]
cmp eax, ecx
jge 0x14000e37c
dec edx
mov r8d, r11d
cmp r9, rbx
ja 0x14000e3b2
test edx, edx
jg 0x14000e361
mov qword [r10], r9
add rsp, 0x20
pop rbx
ret
movsxd r8, edx
mov rcx, r11
xor edx, edx
imul r11, r8
mov rax, r11
div rcx
cmp rax, r8
jne 0x14000e3b2
lea rax, [r11 + r9]
cmp rax, rbx
ja 0x14000e3b2
mov qword [r10], rax
add rsp, 0x20
pop rbx
ret
lea rcx, str.EOF_reading_band
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.140001429
Function at 0x1400016ae
Capabilities:
Terminate process

Disassembly:
jmp 0x14001d9f4
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14002de40]
xor rax, rsp
mov qword [rsp + 0x70], rax
movsxd rdi, edx
mov rbx, rcx
test edx, edx
je 0x14001da33
cmp edi, dword [rcx + 0xc]
jne 0x14001da27
mov eax, dword [rcx + 0x10]
jmp 0x14001daf4
mov eax, dword [rcx + 8]
cmp eax, 0
cmove eax, edi
mov dword [rcx + 8], eax
xor edx, edx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
lea r8d, [rdx + 0x24]
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCR100.dll__gmtime64]
mov r10, rax
test rax, rax
jne 0x14001da7d
mov rcx, qword [rbx + 0x50]
lea rdx, str.Error:_gmtime_failure__invalid_input_archive_n
mov rcx, qword [rcx + 0xc0]
call qword [sym.imp.MSVCR100.dll_fprintf]
or ecx, 0xffffffff
call qword [sym.imp.MSVCR100.dll_exit]
int3
mov dword [rbx + 0xc], edi
mov r11d, dword [rax + 0x14]
mov edx, 0x7bc
add r11d, 0x76c
cmp r11d, edx
jge 0x14001daba
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9d, 1
mov rcx, rbx
mov r8d, r9d
call fcn.14000135c
mov r11d, eax
jmp 0x14001daed
add r11d, 0xffffffc4
shl r11d, 9
or r11d, dword [rax + 0xc]
shl r11d, 5
or r11d, dword [rax + 8]
shl r11d, 6
or r11d, dword [rax + 4]
mov eax, dword [rax + 0x10]
inc eax
shl r11d, 5
shl eax, 0x15
or r11d, eax
mov eax, dword [r10]
shr eax, 1
or r11d, eax
mov dword [rbx + 0x10], r11d
mov eax, r11d
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001ea50
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

Function at 0x1400016b3
Capabilities:
Terminate process

Disassembly:
jmp 0x140012bf8
sub rsp, 0x28
test rdx, rdx
lea r8, str.error_unpacking_archive
cmovne r8, rdx
cmp byte [r8], 0x40
jne 0x140012c13
inc r8
mov rcx, qword [rcx + 0xc0]
lea rdx, [0x14002a00c]
call qword [sym.imp.MSVCR100.dll_fprintf]
or ecx, 0xffffffff
call qword [sym.imp.MSVCR100.dll_exit]
int3

Function at 0x1400016cc
Capabilities:
Terminate process

Disassembly:
jmp 0x14001d8f4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rdi, rdx
mov rbx, rcx
jne 0x14001d949
lea rdx, [0x14002af74]
mov rcx, rdi
call qword [sym.imp.MSVCR100.dll_fopen]
mov qword [rbx], rax
test rax, rax
jne 0x14001d949
mov rcx, qword [rbx + 0x50]
lea rdx, str.Error:_Could_not_open_jar_file:__s_n
mov r8, rdi
mov rcx, qword [rcx + 0xc0]
call qword [sym.imp.MSVCR100.dll_fprintf]
mov ecx, 3
call qword [sym.imp.MSVCR100.dll_exit]
int3
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400016db
Capabilities:
Create directory

Disassembly:
jmp 0x14001d558
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x14002de40]
xor rax, rsp
mov qword [rsp + 0x130], rax
movsxd rbx, ecx
mov rcx, rdx
mov rdi, rdx
call sub.MSVCR100.dll_strlen
cmp rax, rbx
jbe 0x14001d5c6
lea rcx, [rsp + 0x20]
mov rdx, rdi
call sub.MSVCR100.dll_strcpy
lea rcx, [rsp + 0x20]
mov edx, 0x2f
call qword [sym.imp.MSVCR100.dll_strrchr]
test rax, rax
je 0x14001d5c6
lea rdx, [rsp + 0x20]
mov ecx, ebx
mov byte [rax], 0
call fcn.1400016db
lea rcx, [rsp + 0x20]
call qword [sym.imp.MSVCR100.dll__mkdir]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14001ea50
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rdi
ret
Function at 0x14000e328
Capabilities:
Terminate process

Disassembly:
jmp 0x14000e328
push rbx
sub rsp, 0x20
movsxd r11, r9d
mov rbx, r8
mov r10, rcx
test edx, edx
jns 0x14000e344
lea rcx, str.bad_value_count
jmp 0x14000e3b9
mov r9, qword [rcx]
cmp r11d, 1
je 0x14000e389
mov ecx, 0x100
cmp dword [rsp + 0x50], ecx
je 0x14000e389
sub ecx, dword [rsp + 0x50]
mov r8d, r11d
jmp 0x14000e37c
inc r9
dec r8d
je 0x14000e372
movzx eax, byte [r9 - 1]
cmp eax, ecx
jge 0x14000e37c
dec edx
mov r8d, r11d
cmp r9, rbx
ja 0x14000e3b2
test edx, edx
jg 0x14000e361
mov qword [r10], r9
add rsp, 0x20
pop rbx
ret
movsxd r8, edx
mov rcx, r11
xor edx, edx
imul r11, r8
mov rax, r11
div rcx
cmp rax, r8
jne 0x14000e3b2
lea rax, [r11 + r9]
cmp rax, rbx
ja 0x14000e3b2
mov qword [r10], rax
add rsp, 0x20
pop rbx
ret
lea rcx, str.EOF_reading_band
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.140001429
Function at 0x1400115c8
Capabilities:
Terminate process

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

Function at 0x140012bf8
Capabilities:
Terminate process

Disassembly:
jmp 0x140012bf8
sub rsp, 0x28
test rdx, rdx
lea r8, str.error_unpacking_archive
cmovne r8, rdx
cmp byte [r8], 0x40
jne 0x140012c13
inc r8
mov rcx, qword [rcx + 0xc0]
lea rdx, [0x14002a00c]
call qword [sym.imp.MSVCR100.dll_fprintf]
or ecx, 0xffffffff
call qword [sym.imp.MSVCR100.dll_exit]
int3