joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001e940
Capabilities:
Connect socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x80
mov rax, qword [0x1400a2078]
xor rax, rsp
mov qword [rsp + 0x70], rax
cmp dword [0x1400aa9b8], 0
je 0x14001ea71
cmp dword [0x1400aa92c], 0
jle 0x14001ea5e
lea rsi, [0x140000000]
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [0x1400aa9b0]
mov edx, 1
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
test eax, eax
js 0x14001ea5e
mov r8d, dword [0x1400aa9c8]
lea rdx, [0x1400aaa38]
movsxd rbx, eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14001ea5e
mov eax, dword [0x1400aa92c]
lea r8, str.En__lx__lx
mov r9d, dword [0x1400aa9b8]
lea rcx, [rsp + 0x30]
dec eax
mov edx, 0x40
mov dword [0x1400aa92c], eax
cdqe
mov eax, dword [rsi + rax*4 + 0xaa920]
mov dword [rsp + 0x20], eax
call fcn.140027a40
movsxd rcx, eax
cmp rcx, 0x40
jae 0x14001ea3a
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov r8d, eax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rcx, rbx
lea r8d, [r9 + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x1400aa92c], 0
jg 0x14001e990
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor ebp, ebp
mov dword [0x1400aa9b8], ebp
jmp 0x14001eafe
mov eax, dword [0x1400aa92c]
test eax, eax
jle 0x14001eafe
mov qword [rsp + 0x90], rdi
lea rsi, [0x140000000]
xor ebp, ebp
dec eax
movsxd rcx, eax
mov dword [0x1400aa92c], eax
lea rbx, [rcx + rcx*2]
add rbx, rbx
mov rdi, qword [rsi + rbx*8 + 0xaa9f0]
mov dword [rsi + rbx*8 + 0xaa9f8], 1
test rdi, rdi
je 0x14001eaf2
mov rcx, rdi
mov qword [rsi + rbx*8 + 0xaa9f0], rbp
call fcn.1400553bc
mov rcx, rdi
call fcn.1400543f0
mov rcx, qword [rsi + rbx*8 + 0xaa9e0]
call fcn.1400563b4
mov rcx, qword [rsi + rbx*8 + 0xaa9e0]
call fcn.1400543f0
mov eax, dword [0x1400aa92c]
test eax, eax
jg 0x14001ea90
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140042470
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rsi
ret
Function at 0x14001eee0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1040
call fcn.140042f20
sub rsp, rax
mov rax, qword [0x1400a2078]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rdi, rcx
mov rdx, rcx
xor ecx, ecx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, eax
dec rax
cmp rax, 0xffe
ja 0x14001f086
movzx eax, byte [rdi]
mov rbx, rdi
test al, al
je 0x14001ef4c
cmp byte [rdi + 1], 0x3a
jne 0x14001ef4c
movzx eax, byte [rdi + 2]
lea rbx, [rdi + 2]
movsx ecx, al
mov rbp, rbx
lea rax, [rbx + 1]
test ecx, ecx
je 0x14001ef7d
nop word [rax + rax]
cmp ecx, 0x2f
je 0x14001ef6c
cmp ecx, 0x5c
je 0x14001ef70
jmp 0x14001ef73
mov byte [rax - 1], 0x5c
mov rbx, rax
movsx ecx, byte [rax]
inc rax
test ecx, ecx
jne 0x14001ef60
cmp byte [rbp], 0x5c
je 0x14001f06d
lea rdx, [rsp + 0x30]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
lea ecx, [rax - 1]
cmp ecx, 0xffe
ja 0x14001f086
cmp rbp, rdi
jbe 0x14001f022
movsx ecx, byte [rsp + 0x30]
test ecx, ecx
je 0x14001f022
cmp byte [rsp + 0x31], 0x3a
jne 0x14001f022
movsx edx, byte [rdi]
lea eax, [rdx - 0x61]
cmp eax, 0x19
ja 0x14001efcb
sub edx, 0x20
lea eax, [rcx - 0x61]
cmp eax, 0x19
ja 0x14001efd6
sub ecx, 0x20
cmp edx, ecx
je 0x14001f022
mov byte [rsp + 0x24], cl
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x20], dl
mov word [rsp + 0x25], 0x3a
mov word [rsp + 0x21], 0x3a
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rdx, [rsp + 0x30]
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rsp + 0x24]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [rsi - 1]
cmp eax, 0xffe
ja 0x14001f086
mov eax, esi
mov byte [rsp + rax + 0x30], 0x5c
lea eax, [rsi + 1]
mov r8d, eax
sub rax, rdi
add rax, rbx
cmp rax, 0x1000
jae 0x14001f086
cmp rbx, rdi
jbe 0x14001f06d
mov rcx, rbx
add rbx, r8
nop dword [rax + rax]
movzx eax, byte [rcx - 1]
dec rcx
mov byte [r8 + rcx], al
cmp rcx, rdi
ja 0x14001f050
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140044760
xor eax, eax
mov rcx, rbx
sub rcx, rdi
add rcx, 2
cmp rcx, 0x1000
cmovb rax, rbx
jmp 0x14001f088
xor eax, eax
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140042470
lea r11, [rsp + 0x1040]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400201d0
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x1410]
mov eax, 0x1510
call fcn.140042f20
sub rsp, rax
mov rax, qword [0x1400a2078]
xor rax, rsp
mov qword [rbp + 0x1400], rax
test rcx, rcx
jne 0x140020206
call fcn.140023390
lea rax, [rbp + 0x400]
xor esi, esi
mov qword [rbp - 0x20], rax
lea rdx, [0x140000000]
mov ecx, esi
nop dword [rax]
movzx eax, byte [rcx + rdx + 0x8fa40]
mov byte [rbp + rcx + 0x400], al
lea rcx, [rcx + 1]
test al, al
jne 0x140020220
lea rax, [rbp + 0x408]
mov rcx, rsi
mov qword [rbp - 0x18], rax
nop word [rax + rax]
movzx eax, byte [rcx + rdx + 0xa4600]
mov byte [rbp + rcx + 0x408], al
lea rcx, [rcx + 1]
test al, al
jne 0x140020250
mov qword [rbp - 0x10], rsi
call fcn.140056a7c
mov r8d, 0x400
lea rdx, [rbp]
lea rcx, [rbp + 0x400]
call fcn.140020420
test rax, rax
jne 0x1400202af
mov rcx, qword [0x1400a9900]
lea r8, [rbp + 0x400]
lea rdx, str._nCould_not_find___s_._n
call fcn.140027720
mov eax, 1
jmp 0x1400203f1
xorps xmm0, xmm0
mov qword [rsp + 0x1520], rbx
xor eax, eax
mov qword [rsp + 0x1528], rdi
mov qword [rbp - 0x30], rax
mov eax, 5
movups xmmword [rsp + 0x70], xmm0
mov dword [rsp + 0x70], WSAGetLastError
movups xmmword [rbp - 0x50], xmm0
lea edx, [rax - 4]
mov word [rbp - 0x50], ax
lea ecx, [rax - 3]
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x40], xmm0
call fcn.140055eb0
lea rcx, [rbp - 0x20]
mov rdi, rax
call fcn.140020680
mov rbx, rax
lea rcx, [rbp]
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rdx, rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140020377
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x1400a9900]
lea r8, [rbp]
mov r9d, eax
lea rdx, str.CreateProcess___s___failure__nError_code__ld._n
call fcn.140027720
mov dword [rsp + 0x50], 1
jmp 0x1400203c8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400203a9
mov rcx, qword [rsp + 0x58]
mov edx, 0x3e7
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], esi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.1400543f0
mov rdx, rdi
mov ecx, 2
call fcn.140055eb0
mov eax, dword [rsp + 0x50]
mov rdi, qword [rsp + 0x1528]
mov rbx, qword [rsp + 0x1520]
mov rcx, qword [rbp + 0x1400]
xor rcx, rsp
call fcn.140042470
mov rsi, qword [rsp + 0x1530]
add rsp, 0x1510
pop rbp
ret
Function at 0x140021250
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
sub rsp, 0x28
lea rdx, [0x14008e640]
mov rbx, rcx
call fcn.14004c9b0
mov rbp, rax
test rax, rax
je 0x140021402
mov qword [rsp + 0x40], rsi
lea rcx, str.AMPL_ENVFILE
mov qword [rsp + 0x48], rdi
mov rdx, rbx
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rdx, rbx
lea rcx, str.AMPL_ENVFILE
call fcn.14005c9f4
xor r15d, r15d
xor r14d, r14d
nop dword [rax + rax]
mov rcx, rbp
call fcn.14005c670
test eax, eax
jne 0x1400213d2
mov rdi, r15
test r15, r15
jne 0x1400212e1
mov ecx, 0x400
mov r14d, ecx
call fcn.14005608c
mov rdi, rax
test rax, rax
je 0x140021409
xor ebx, ebx
mov rcx, rbp
call fcn.140050c2c
mov rcx, rbp
mov esi, eax
call fcn.14005c670
test eax, eax
jne 0x140021329
lea rdx, [r14 - 1]
cmp rbx, rdx
jne 0x14002131c
add r14, r14
mov rcx, rdi
mov rdx, r14
call fcn.140056adc
mov rdi, rax
test rax, rax
je 0x1400213d2
mov byte [rbx + rdi], sil
inc rbx
cmp sil, 0xa
jne 0x1400212e3
mov byte [rbx + rdi], 0
mov r15, rdi
cmp rbx, 0xffffffffffffffff
je 0x1400213d2
mov edx, 0xa
mov rcx, rdi
call fcn.140044214
test rax, rax
je 0x14002134f
mov byte [rax], 0
mov edx, recv
mov rcx, rdi
call fcn.140044214
test rax, rax
je 0x140021364
mov byte [rax], 0
mov rbx, rdi
movzx eax, byte [rbx]
cmp al, 0x20
je 0x140021372
cmp al, 9
jne 0x140021377
inc rbx
jmp 0x140021367
cmp al, 0x23
je 0x1400212b0
mov edx, 0x3d
mov rcx, rdi
call fcn.140044214
mov rdi, rax
test rax, rax
je 0x1400212b0
lea rdx, [rax - 1]
cmp rdx, rbx
jb 0x1400213b1
cmp byte [rdx], 0x20
jne 0x1400213b1
mov byte [rdx], 0
dec rdx
cmp rdx, rbx
jae 0x1400213a1
lea rdx, [rax + 1]
mov byte [rax], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rdx, [rdi + 1]
mov rcx, rbx
call fcn.14005c9f4
jmp 0x1400212b0
mov rcx, r15
call fcn.1400543f0
mov rcx, rbp
call fcn.14004d150
mov r14, qword [rsp + 0x50]
mov eax, 1
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop rbp
pop rbx
ret
add rsp, 0x28
pop rbp
pop rbx
ret
mov ecx, 2
call fcn.14004cadc
mov rcx, rax
lea rdx, str.malloc__lu__failed__n
mov r8d, r14d
call fcn.1400209f0
mov ecx, 1
call fcn.1400563a8
int3
Function at 0x140021740
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1400a2078]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
lea rcx, str.AMPL_ENVFILE
call fcn.14005cdc4
test rax, rax
je 0x140021807
lea rdx, [rsp + 0x20]
sub rdx, rax
nop
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140021780
lea rax, [rsp + 0x20]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400217a0
cmp rbx, 8
jb 0x1400217d9
lea rcx, [rsp + rbx + 0x18]
lea rdx, str.ampl.env
call fcn.14007b630
test eax, eax
jne 0x1400217d9
add rbx, 0xfffffffffffffff8
cmp rbx, 0x104
jae 0x140021870
mov byte [rsp + rbx + 0x20], al
mov edx, 0x104
lea rcx, [rsp + 0x130]
call fcn.1400529dc
test rax, rax
je 0x140021807
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x20]
call fcn.14005118c
jmp 0x14002180f
mov byte [rsp + 0x130], 0
lea rcx, str.AMPLKEY_OUTPUT
call fcn.14005cdc4
mov rdx, rax
mov rcx, rdi
call fcn.140021430
cmp byte [rsp + 0x130], 0
mov ebx, eax
je 0x14002184d
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea rcx, [rsp + 0x130]
call fcn.14005118c
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140042470
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
call fcn.1400425a0
int3

Function at 0x140021bd0
Capabilities:
Encode data using xor
Set environment variable

Disassembly:
push rdi
sub rsp, 0x890
mov rax, qword [0x1400a2078]
xor rax, rsp
mov qword [rsp + 0x880], rax
cmp dword [0x1400a98f8], 0
mov rdi, rcx
jne 0x140021bfe
xor eax, eax
jmp 0x140021d3c
lea rcx, str.AMPLKEY_USAGELOG_CMD
mov qword [rsp + 0x8b0], rsi
call fcn.14005cdc4
mov rsi, rax
test rax, rax
je 0x140021d2f
xor ecx, ecx
mov qword [rsp + 0x8a8], rbx
call fcn.140054380
mov rbx, rax
call sub.KERNEL32.dll_GetCurrentProcessId
mov ecx, dword [0x1400aa9bc]
lea r8, str._d__d:_lld:_s
mov qword [rsp + 0x30], rdi
mov r9d, eax
mov qword [rsp + 0x28], rbx
mov edx, 0x400
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x40]
call fcn.140020a90
mov rbx, qword [rsp + 0x8a8]
test eax, eax
js 0x140021d2f
inc dword [0x1400aa9bc]
lea rdx, [rsp + 0x40]
xor r9d, r9d
lea rcx, [rsp + 0x40]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], r9b
jne 0x140021c90
lea r8, [rsp + 0x40]
add r8, rax
lea rax, [rsp + 0x40]
cmp rax, r8
jae 0x140021cd5
lea r10, [0x140090540]
movzx ecx, byte [rdx]
mov eax, r9d
sar r9d, 8
xor rcx, rax
and r9d, 0xffffff
movzx eax, cl
inc rdx
xor r9d, dword [r10 + rax*4]
cmp rdx, r8
jb 0x140021cb2
lea rax, [rsp + 0x40]
mov edx, 0x440
lea r8, str._lx:_s
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x440]
call fcn.140020a90
test eax, eax
js 0x140021d2f
lea rdx, [rsp + 0x440]
lea rcx, str.AMPLKEY_USAGELOG_MSG
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rdx, [rsp + 0x440]
lea rcx, str.AMPLKEY_USAGELOG_MSG
call fcn.14005c9f4
mov rcx, rsi
call fcn.140021740
jmp 0x140021d34
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x8b0]
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.140042470
add rsp, 0x890
pop rdi
ret
Function at 0x1400430e0
Capabilities:
Parse pe header

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

Function at 0x1400510c8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rbx, rcx
mov ecx, dword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x140051103
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140052e74
call fcn.140052f00
mov eax, dword [rax]
jmp 0x14005117a
cmp rdi, qword [rbx + 0x18]
ja 0x14005110f
mov qword [rbx + 0x20], rdi
jmp 0x140051178
cmp byte [rbx + 0x28], 0
lea rsi, [rdi + 1]
je 0x140051126
mov rcx, qword [rbx + 0x10]
call fcn.140066b8c
mov byte [rbx + 0x28], 0
lea rcx, [rdi*2 + 2]
call fcn.140067c58
mov qword [rbx + 0x10], rax
mov r8, rax
neg rax
mov edx, 0
sbb eax, eax
not eax
and eax, 0xc
cmove rdx, rsi
test eax, eax
sete cl
mov byte [rbx + 0x28], cl
mov qword [rbx + 0x18], rdx
test eax, eax
jne 0x14005117a
mov ecx, dword [rbx + 0x18]
mov rdx, r8
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
test rax, rax
je 0x1400510ed
mov qword [rbx + 0x20], rax
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140051a14
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x1400a2078]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x1400829e8]
mov rbp, rcx
call fcn.140069588
xor edi, edi
test rax, rax
je 0x140051afa
mov ebx, edi
call fcn.140052f00
mov r14d, dword [rax]
call fcn.140052f00
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.140056b94
mov rsi, rax
test rax, rax
je 0x140051a8b
call fcn.140052f00
mov dword [rax], r14d
jmp 0x140051ab5
call fcn.140052f00
cmp dword [rax], 0x22
jne 0x140051af2
call fcn.140052f00
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140056b94
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140051af2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140051ab9
cmp rax, 3
je 0x140051ad4
mov rcx, rsi
call fcn.140051970
test al, al
je 0x140051ae5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140051ae5
mov dil, 1
mov rcx, rbx
call fcn.1400543f0
mov al, dil
jmp 0x140051afc
mov rcx, rbx
call fcn.1400543f0
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140042470
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14005480c
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x14005482b
call fcn.14006a704
jmp 0x1400548e0
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.140049e2c
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x140054876
cmp byte [rbp - 0x38], 0
je 0x1400548ab
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400548ab
call fcn.140066ee8
test eax, eax
jne 0x140054897
cmp byte [rbp - 0x38], al
je 0x14005488f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400548ab
cmp byte [rbp - 0x38], 0
je 0x1400548a8
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.1400512c0
test eax, eax
je 0x1400548c4
or ebx, 0xffffffff
jmp 0x1400548cf
mov rcx, qword [rbp - 0x20]
call fcn.14006a704
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x1400548de
mov rcx, qword [rbp - 0x20]
call fcn.140066b8c
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret

Function at 0x1400563a8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140056207
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140056207
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140056207
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140056207
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140056207
cmp dword [rcx + 0x84], 0xe
jbe 0x140056207
cmp dword [rcx + 0xf8], 0
je 0x140056207
mov ecx, ebx
call fcn.1400562c4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140056094
nop
cmp dword [rbp + 0x20], 0
je 0x140056255
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140056260
int3
xor r8d, r8d
xor edx, edx
jmp 0x140056198
Function at 0x140056fe8
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.140042f20
sub rsp, rax
mov rax, qword [0x1400a2078]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400656bc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140057037
mov rax, rbp
jmp 0x14005713f
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xa9150]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006b5e0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xa9150]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14005713b
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 0x14005713b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006b5e0
test rax, rax
js 0x14005713b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14005713b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14005712d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14005712d
cmp byte [rcx], 0xd
jne 0x140057113
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140057122
cmp byte [rcx + 1], 0xa
jne 0x140057122
inc rcx
jmp 0x140057122
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa2460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400570f5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14005713f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140042470
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 0x140069000
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 0x140069032
call fcn.140052f00
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140055324
jmp 0x140069151
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140069151
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x140069151
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x140069061
lock or dword [rcx + 0x14], 0x10
jmp 0x140069151
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140069075
call fcn.14006a680
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1400656bc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.14006abdc
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14006913f
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x14006910a
mov rcx, rsi
call fcn.1400656bc
cmp eax, edi
je 0x1400690f5
mov rcx, rsi
call fcn.1400656bc
cmp eax, 0xfffffffe
je 0x1400690f5
mov rcx, rsi
call fcn.1400656bc
movsxd rbx, eax
lea r14, [0x1400a9150]
mov rcx, rsi
sar rbx, 6
call fcn.1400656bc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x1400690fc
lea rdx, [0x1400a2410]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14006910a
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x14006912e
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x14006912e
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x14006912e
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 0x140069154
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