joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001108c
Capabilities:
Get file size
Read file on windows

Disassembly:
jmp 0x140013080
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
mov rax, qword [0x140026048]
xor rax, rbp
mov qword [rbp + 0x140], rax
lea rcx, [0x14002c239]
call fcn.1400114ce
mov qword [rbp + 8], 0xffffffffffffffff
mov dword [rbp + 0x24], 0
mov dword [rbp + 0x44], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14001312c
xor eax, eax
jmp 0x1400131fc
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov qword [rbp + 0x138], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x138]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x68], rax
mov eax, dword [rbp + 0x24]
mov r8d, eax
xor edx, edx
mov rcx, qword [rbp + 0x68]
call fcn.1400113c0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400131b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x170]
lea rcx, str.____Error_Rading_File__s:__d
call fcn.140011230
mov rax, qword [rbp + 0x178]
mov rcx, qword [rbp + 0x68]
mov qword [rax], rcx
mov rax, qword [rbp + 0x180]
mov ecx, dword [rbp + 0x44]
mov dword [rax], ecx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0x178]
cmp qword [rax], 0
je 0x1400131f3
mov rax, qword [rbp + 0x180]
mov eax, dword [rax]
test rax, rax
jne 0x1400131f7
xor eax, eax
jmp 0x1400131fc
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140020800]
call fcn.14001142e
mov rax, rdi
mov rcx, qword [rbp + 0x140]
xor rcx, rbp
call fcn.140011249
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret
Function at 0x14001109b
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library
Send data
Send data on socket

Disassembly:
jmp 0x1400132a0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x418
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x9e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x438]
mov rax, qword [0x140026048]
xor rax, rbp
mov qword [rbp + 0x3e8], rax
lea rcx, [0x14002c239]
call fcn.1400114ce
mov qword [rbp + 0x238], 0
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x254], eax
cmp dword [rbp + 0x254], 0
je 0x140013338
mov edx, dword [rbp + 0x254]
lea rcx, str.____WSAStartup_failed:__d_n
call fcn.140011230
xor eax, eax
jmp 0x1400134bf
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0x1c8], rax
cmp qword [rbp + 0x1c8], 0xffffffffffffffff
jne 0x14001337d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Socket_creation_failed:__ld_n
call fcn.140011230
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400134bf
mov eax, 2
mov word [rbp + 0x1e8], ax
movzx ecx, word [rbp + 0x418]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x1ea], ax
lea r8, [rbp + 0x1ec]
mov rdx, qword [rbp + 0x410]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, send
lea rdx, [rbp + 0x1e8]
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140013403
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Connection_failed:__ld_n
call fcn.140011230
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400134bf
mov eax, dword [rbp + 0x428]
cmp qword [rbp + 0x238], rax
jae 0x1400134a7
mov eax, dword [rbp + 0x428]
sub rax, qword [rbp + 0x238]
mov rcx, qword [rbp + 0x238]
mov rdx, qword [rbp + 0x420]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rbp + 0x214], eax
cmp dword [rbp + 0x214], 0xffffffff
jne 0x140013487
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.____Send_failed:__ld_n
call fcn.140011230
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x1400134bf
movsxd rax, dword [rbp + 0x214]
mov rcx, qword [rbp + 0x238]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x238], rax
jmp 0x140013403
mov rcx, qword [rbp + 0x1c8]
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400208d0]
call fcn.14001142e
mov rax, rdi
mov rcx, qword [rbp + 0x3e8]
xor rcx, rbp
call fcn.140011249
lea rsp, [rbp + 0x3f8]
pop rdi
pop rbp
ret
Function at 0x14001111d
Capabilities:
Convert ip address from string

Disassembly:
jmp 0x140012e80
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x140026048]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x14002c239]
call fcn.1400114ce
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140012f04
lea rcx, str.strdup_failed
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
xor eax, eax
jmp 0x140012fe0
mov edx, 0x3a
mov rcx, qword [rbp + 8]
call fcn.14001105f
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140012fc3
mov rax, qword [rbp + 0x28]
mov byte [rax], 0
mov r8d, send
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov eax, 1
imul rax, rax, 0xf
mov rcx, qword [rbp + 0x168]
mov byte [rcx + rax], 0
mov rax, qword [rbp + 0x28]
inc rax
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov rcx, qword [rbp + 0x170]
mov dword [rcx], eax
lea r8, [rbp + 0x44]
mov rdx, qword [rbp + 0x168]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x140012fb3
mov ecx, dword [rbp + 0x44]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
shl rax, 0x10
mov rcx, qword [rbp + 0x170]
movsxd rcx, dword [rcx]
or rax, rcx
mov rcx, qword [rbp + 0x178]
mov qword [rcx], rax
jmp 0x140012fc1
mov rcx, qword [rbp + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140012fe0
jmp 0x140012fd1
mov rcx, qword [rbp + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140012fe0
mov rcx, qword [rbp + 8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140020960]
call fcn.14001142e
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.140011249
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1400111cc
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x140019d04
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140019d91
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140019d91
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140019d91
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140019d78
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140019d72
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140019d7a
add rdx, 0x28
jmp 0x140019d57
xor edx, edx
test rdx, rdx
jne 0x140019d83
xor al, al
jmp 0x140019d97
cmp dword [rdx + 0x24], 0
jge 0x140019d8d
xor al, al
jmp 0x140019d97
mov al, 1
jmp 0x140019d97
xor al, al
jmp 0x140019d97
add rsp, 0x18
ret

Function at 0x1400111ef
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
jmp 0x140012a20
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x140026048]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x14002c16c]
call fcn.1400114ce
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x190]
mov dword [rbp + 0x2c], eax
mov rax, qword [rbp + 0x180]
mov qword [rbp + 0x30], rax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x198]
mov dword [rbp + 0x5c], eax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x60], rax
lea rcx, str.Advapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.SystemFunction032
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 0x88], rax
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 0x58]
call qword [rbp + 0x88]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140012b07
mov edx, dword [rbp + 4]
lea rcx, str.____SystemFunction032_FAILED_With_Error_:_0x_0.8X_n
call fcn.140011230
xor eax, eax
jmp 0x140012b0c
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x140020510]
call fcn.14001142e
mov rax, rdi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.140011249
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x1400112ad
Capabilities:
Terminate process

Disassembly:
jmp 0x14001864c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140011361
Capabilities:
Terminate process

Disassembly:
jmp 0x140018e9c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.140011500
test al, al
je 0x140018d67
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.14001144c
mov bl, al
mov ecx, dword [0x140026880]
cmp ecx, 1
je 0x140018d72
test ecx, ecx
jne 0x140018c9d
mov dword [0x140026880], 1
lea rdx, [0x14001f660]
lea rcx, [0x14001f330]
call fcn.140011235
test eax, eax
je 0x140018c7e
mov eax, 0xff
jmp 0x140018d57
lea rdx, [0x14001f220]
lea rcx, [section..rdata]
call fcn.140011442
mov dword [0x140026880], 2
jmp 0x140018ca5
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.140011424
call fcn.140011393
mov rbx, rax
cmp qword [rax], 0
je 0x140018cd8
mov rcx, rax
call fcn.1400111cc
test al, al
je 0x140018cd8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x14002d020]
call fcn.1400113d4
mov rbx, rax
cmp qword [rax], 0
je 0x140018cfa
mov rcx, rax
call fcn.1400111cc
test al, al
je 0x140018cfa
mov rcx, qword [rbx]
call fcn.1400114b0
call fcn.1400110c3
mov rdi, rax
call fcn.14001141a
mov rbx, qword [rax]
call fcn.1400113ca
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call fcn.14001135c
mov ebx, eax
call fcn.140011366
test al, al
je 0x140018d7c
test sil, sil
jne 0x140018d31
call fcn.1400114ba
xor edx, edx
mov cl, 1
call fcn.1400111b8
mov eax, ebx
jmp 0x140018d57
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.140011438
nop
mov ecx, 7
call fcn.140011438
mov ecx, ebx
call fcn.140011078
nop
mov ecx, ebx
call fcn.1400112d5
nop
int3
sub rsp, 0x28
call fcn.14001137a
add rsp, 0x28
jmp 0x140018c10

Function at 0x140011366
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140012d90
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14002c239]
call fcn.1400114ce
lea rdx, [0x140020ad4]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140012e3d
mov rcx, qword [rbp + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x140012e12
cmp dword [rbp + 0x108], 0
je 0x140012e09
mov rdx, qword [rbp + 0x100]
lea rcx, str._i___s_Deleted._n
call fcn.140011230
mov eax, 1
jmp 0x140012e3f
cmp dword [rbp + 0x108], 0
je 0x140012e37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x100]
lea rcx, str.____Error_deleting_file__s:__d_n
call fcn.140011230
xor eax, eax
jmp 0x140012e3f
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140011492
Capabilities:
Write file on windows

Disassembly:
jmp 0x140013590
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x14002c239]
call fcn.1400114ce
lea rdx, [0x140020984]
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x1400135ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x24], eax
mov r8d, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x170]
lea rcx, str.____Error_opening_file__s:__ld_n
call fcn.140011230
jmp 0x140013675
mov r9, qword [rbp + 8]
mov r8, qword [rbp + 0x168]
mov edx, 1
mov rcx, qword [rbp + 0x160]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x168]
cmp qword [rbp + 0x48], rax
je 0x14001364f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x64], eax
mov r8d, dword [rbp + 0x64]
mov rdx, qword [rbp + 0x170]
lea rcx, str.____Error_Writing_to_File__s:__ld_n
call fcn.140011230
jmp 0x14001366b
cmp dword [rbp + 0x178], 0
je 0x14001366b
mov rdx, qword [rbp + 0x170]
lea rcx, str._i___s_Written_to_Disk._n
call fcn.140011230
mov rcx, qword [rbp + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x14001149c
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400136c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x140026048]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x14002c239]
call fcn.1400114ce
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140013751
xor eax, eax
jmp 0x1400137f4
mov rcx, qword [rbp + 0x148]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140013783
lea rcx, str.____Memory_allocation_failed_n
call fcn.140011230
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400137f4
mov r8, qword [rbp + 0x148]
xor edx, edx
mov rcx, qword [rbp + 0x28]
call fcn.1400113c0
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x148]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400137e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x140]
lea rcx, str.____Failed_to_write_to_file__s:__d_n
call fcn.140011230
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400137f4
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x140020770]
call fcn.14001142e
mov rax, rdi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.140011249
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x1400114c4
Capabilities:
Resume thread

Disassembly:
jmp 0x140017940
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x14002c3cb]
call fcn.1400114ce
cmp qword [rbp + 0x140], 0
je 0x14001797b
cmp dword [rbp + 0x148], 0
jne 0x14001798c
lea rcx, str.No_threads_to_resume._n
call fcn.140011230
jmp 0x140017a77
mov dword [rbp + 4], 0
jmp 0x14001799d
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x148]
cmp dword [rbp + 4], eax
jae 0x140017a77
mov eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x140]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400179f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbp + 4]
mov r8d, eax
mov rax, qword [rbp + 0x140]
mov edx, dword [rax + rcx*4]
lea rcx, str.Failed_to_open_thread__lu:__lu_n
call fcn.140011230
jmp 0x140017995
mov dword [rbp + 0x44], 0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0xffffffff
jne 0x140017a34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbp + 4]
mov r8d, eax
mov rax, qword [rbp + 0x140]
mov edx, dword [rax + rcx*4]
lea rcx, str.Failed_to_resume_thread__lu:__lu_n
call fcn.140011230
jmp 0x140017a3a
cmp dword [rbp + 0x44], 1
ja 0x1400179fd
cmp dword [rbp + 0x44], 1
je 0x140017a46
cmp dword [rbp + 0x44], 0
jne 0x140017a68
cmp dword [rbp + 0x150], 0
je 0x140017a68
mov eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x140]
mov edx, dword [rcx + rax*4]
lea rcx, str._i_Thread__lu_resumed_successfully._n
call fcn.140011230
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140017995
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret
Function at 0x140de7160
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140de72e7
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 0x140de7191
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140de7177
add dl, dl
jne 0x140de719e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140de71fe
xor eax, eax
add dl, dl
jne 0x140de71ad
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140de72b5
add dl, dl
jne 0x140de71be
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140de71cb
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140de71d8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140de71e5
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140de71f2
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140de7186
mov eax, 1
add dl, dl
jne 0x140de720e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140de721b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140de7203
sub eax, ebx
mov ebx, 1
jne 0x140de7254
mov ecx, 1
add dl, dl
jne 0x140de7236
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140de7243
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140de722b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140de7186
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140de7270
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140de727d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140de7265
cmp eax, 0x7d00
jae 0x140de72a3
cmp eax, 0x500
jb 0x140de729e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140de7186
cmp eax, 0x7f
ja 0x140de72a6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140de7186
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140de72da
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 0x140de7186
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140018f50
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push r15
push rbp
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
mov r9, rbp
xor ecx, ecx
mov r10b, byte [r15]
cmp r10b, 0x20
jne 0x140018fb8
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jne 0x140018fb8
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jne 0x140018fb8
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jne 0x140018fb8
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
je 0x140018fac
jl 0x140019066
cmp r10b, 0x22
je 0x140019043
mov rax, r15
cmp r10b, 0x20
jle 0x140019006
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jle 0x140018ffd
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jle 0x140018ffd
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jle 0x140018ffd
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jg 0x140018ff1
jne 0x140019006
mov byte [r15], 0
inc r15
inc ecx
mov qword [r9], rax
add r9, 8
cmp ecx, 0x200
jl 0x140018f7f
mov rdx, rbp
call fcn.140019070
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
inc r15
mov rax, r15
mov r10b, byte [r15]
cmp r10b, 0x22
je 0x140018fff
cmp r10b, 0x20
jl 0x140019006
inc r15
mov r10b, byte [r15]
cmp r10b, 0x22
jne 0x140019052
jmp 0x140018fff
mov byte [r15], 0
jmp 0x14001901b