joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140031a30
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14006d060]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
test cl, 2
je 0x140031a96
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140031a79
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x140031a73
shr ax, 8
cmp al, 2
je 0x140031a96
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140054a30
add rsp, 0x1d8
ret
lea rcx, str.iphlpapi.dll
call fcn.140031890
mov qword [0x14006d888], rax
test rax, rax
je 0x140031ad3
lea rdx, str.if_nametoindex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14006d880]
test rax, rax
cmovne rcx, rax
mov qword [0x14006d880], rcx
xor edx, edx
lea r9d, [rdx + 3]
lea r8d, [rdx + 2]
lea ecx, [rdx + 6]
call fcn.14004dd90
test al, al
lea rcx, [0x14006e608]
setne byte [0x14006e604]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140054a30
add rsp, 0x1d8
ret
Function at 0x1400321a0
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 [0x14006d060]
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 0x1400321f5
jmp 0x1400323a4
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 0x14003237b
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x14003237b
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x14003237b
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x14003237b
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 0x14003237b
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14003237b
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 0x14003237b
mov r9, rsi
lea r8, [0x140063748]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.14002bea0
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140032315
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 0x14003237b
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 0x14003237b
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14003237b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x14003239c
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.140054a30
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140032400
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor ebp, ebp
mov qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x140032589
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14003256e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14003246e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140032460
inc rbx
jmp 0x140032470
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x14003247e
lea r14d, [rax + 0xe]
jmp 0x14003248b
cmp eax, 0x17
jne 0x140032524
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x140032524
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140032524
cmp rax, r14
jb 0x140032524
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x140032533
mov ecx, dword [rdi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x140032511
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x140032521
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140032450
jmp 0x140032539
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x140032558
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140032569
mov rcx, rbp
call fcn.1400323d0
xor ebp, ebp
jmp 0x14003257d
test rbp, rbp
jne 0x14003257d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret

Function at 0x140032a60
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x14003f740
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14003f79f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140028ce0
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.14003ef20
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140040e00
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x14006d060]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rdi, qword [rcx + 0x790]
lea rax, [rsp + 0x30]
mov rsi, qword [rcx]
mov r15, rcx
mov dword [rsp + 0x30], Ordinal_133
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rdi + 0x15c]
lea r14, [rdi + 0x168]
mov rdx, qword [r14]
add r8d, 4
mov rcx, qword [rdi + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x150], 0
mov dword [rdi + 0x154], eax
jne 0x140040e9d
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x150], eax
mov r9d, dword [rdi + 0x154]
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0x100], rbp
cmp r9d, 4
jge 0x140040f07
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.140028ce0
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0x100]
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140054a30
mov rsi, qword [rsp + 0x108]
add rsp, 0xd0
pop r15
pop r14
pop rdi
ret
mov rcx, r14
call fcn.140040930
movzx r8d, ax
mov dword [rdi + 0xc], r8d
sub r8d, 3
je 0x140040fb6
sub r8d, 1
je 0x140041025
sub r8d, 1
je 0x140040f72
cmp r8d, 1
je 0x140040f52
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x140063d84]
call fcn.140028ce0
jmp 0x140041025
mov rdx, qword [r14]
lea r8d, [r9 - 2]
add rdx, 2
mov rcx, rdi
call fcn.140040b50
test eax, eax
je 0x140041025
jmp 0x140040ed2
mov rbp, qword [r14]
lea eax, [r9 - 4]
mov rcx, r14
movsxd rbx, eax
call fcn.140040910
movzx r9d, ax
lea rcx, [rbp + 4]
mov rdx, rbx
mov dword [rdi + 8], r9d
call fcn.1400408d0
cmp rax, rbx
jae 0x140041025
lea r8, [rbp + 4]
mov rcx, rsi
lea rdx, str.TFTP_error:__s_n
call fcn.140028df0
jmp 0x140041025
cmp r9d, 4
jle 0x140041025
mov rcx, r14
call fcn.140040910
movzx ecx, word [rdi + 0x48]
inc ecx
cmp cx, ax
jne 0x140041025
mov r8, qword [r14]
lea eax, [r9 - 4]
movsxd r9, eax
add r8, 4
mov edx, 1
mov rcx, r15
call fcn.140028c00
mov ebx, eax
test eax, eax
je 0x140041004
mov edx, 5
mov rcx, rdi
call fcn.140041940
mov eax, ebx
jmp 0x140040ed2
mov eax, dword [rdi + 0x154]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.140027e00
mov rcx, r15
call fcn.140028090
test eax, eax
je 0x140040ed0
mov edx, 5
mov rcx, rdi
call fcn.140041940
mov eax, Ordinal_46
jmp 0x140040ed2
Function at 0x140045c00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x14006d060]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbp, qword [rcx + 0x4c8]
lea r8, [rsp + 0x20]
mov rsi, qword [rcx]
lea rdx, [rsp + 0x30]
mov rdi, rcx
mov dword [rsp + 0x20], Ordinal_133
mov rcx, rbp
mov rbx, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140045c7a
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov rdx, rbp
mov rcx, rdi
call fcn.1400261f0
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140045c9f
lea rdx, str.Error_accept__ing_server_connect
call fcn.140028ce0
lea eax, [rbx + 0x1f]
jmp 0x140045d18
lea rdx, str.Connection_accepted_from_server_n
call fcn.140028df0
mov byte [rdi + 0x64a], 0
mov edx, 1
mov rcx, rbx
mov qword [rdi + 0x4c8], rbx
call fcn.14004dd60
mov byte [rdi + 0x65d], 1
cmp qword [rsi + 0x710], 0
je 0x140045d16
mov dl, 1
mov rcx, rsi
call fcn.140012d40
mov rcx, qword [rsi + 0x718]
mov r8d, 1
mov rdx, rbx
call qword [rsi + 0x710]
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.140012d40
test ebx, ebx
je 0x140045d16
mov rcx, rdi
call fcn.1400461e0
mov eax, Ordinal_46
jmp 0x140045d18
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140054a30
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140046d60
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x842], 0
lea r9, [rcx + 0x790]
mov rbx, rcx
jne 0x140046e18
xor r10d, r10d
mov dword [r9 + 0xd0], r10d
mov rax, qword [rcx]
mov ecx, r10d
cmp dword [rax + 0xbc4], 2
sete cl
mov dword [r9 + 0xd4], ecx
cmp byte [rbx + 0x642], r10b
je 0x140046dd4
mov r8, qword [r9 + 0x90]
test r8, r8
je 0x140046dd4
cmp dword [r9 + 0xa0], r10d
je 0x140046dcb
mov rax, qword [r9 + 0x98]
mov rdx, qword [rax]
cmp byte [rdx], 0x2f
je 0x140046dd4
mov dword [r9 + 0xb4], r10d
jmp 0x140046df2
cmp dword [r9 + 0xa0], r10d
je 0x140046e15
mov r8, qword [r9 + 0x98]
mov dword [r9 + 0xb4], 1
mov r8, qword [r8]
lea rdx, str.CWD__s
mov rcx, r9
call fcn.14004f690
test eax, eax
jne 0x140046e22
lea edx, [rax + 0x10]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400461d0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400471d0
add rsp, 0x20
pop rbx
ret

Function at 0x1400471d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx]
mov rbx, rcx
add rcx, 0x790
cmp byte [rax + 0xf59], 0
jne 0x1400471f5
cmp dword [rax + 0x9e0], 0
je 0x140047221
mov r8, qword [rcx + 0xa8]
test r8, r8
je 0x140047221
lea rdx, str.MDTM__s
call fcn.14004f690
test eax, eax
jne 0x14004722e
lea edx, [rax + 0x12]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400461d0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400482b0
add rsp, 0x20
pop rbx
ret
Function at 0x140047980
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rcx]
lea eax, [rdx - 0xc8]
mov rdi, rcx
cmp eax, 0x64
jb 0x140047a01
mov qword [rsp + 0x30], rbx
mov ebx, dword [rcx + 0x85c]
test ebx, ebx
jne 0x1400479bf
lea rdx, str.disabling_EPRT_usage_n
mov rcx, rsi
call fcn.140028df0
mov byte [rdi + 0x650], bl
inc ebx
cmp ebx, 2
jne 0x1400479e8
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.140028ce0
lea eax, [rbx + 0x1c]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x140048680
lea rdx, str.Connect_data_stream_actively_n
mov rcx, rsi
call fcn.140028df0
xor edx, edx
mov rcx, rdi
call fcn.1400461d0
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140046370
Function at 0x140047d10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x790
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1a8]
cmp dword [rdx + 0x10], 0
je 0x140047d5d
cmp qword [rcx + 0xa8], 0
je 0x140047d5d
xor r8d, r8d
lea rdx, str.REST__d
call fcn.14004f690
test eax, eax
jne 0x140047d6a
lea edx, [rax + 0x1a]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400461d0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140047a30
add rsp, 0x20
pop rbx
ret

Function at 0x140048000
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x790
mov rax, qword [rbx]
mov rdx, qword [rax + 0x1a8]
cmp dword [rdx + 0x10], 1
jne 0x14004804c
mov r8, qword [rcx + 0xa8]
test r8, r8
je 0x14004804c
lea rdx, str.SIZE__s
call fcn.14004f690
test eax, eax
jne 0x140048059
lea edx, [rax + 0x17]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400461d0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140047d10
add rsp, 0x20
pop rbx
ret

Function at 0x1400482b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x28
mov r10, qword [rcx]
mov r9, rcx
cmp byte [r10 + 0xf6c], 0
je 0x140048307
cmp qword [rcx + 0x838], 0
je 0x140048307
movzx edx, byte [r10 + 0xf5b]
call fcn.1400465c0
test eax, eax
je 0x140048307
mov rax, qword [r10 + 0x1a8]
mov r8d, reloc.WS2_32.dll_send
mov rcx, r9
mov dword [rax + 0x10], 1
movzx edx, byte [r10 + 0xf5b]
add rsp, 0x28
jmp fcn.140046530
mov rcx, r9
add rsp, 0x28
jmp fcn.140048000

Function at 0x14004c630
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 r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x14006d010]
mov rdi, rax
test rax, rax
je 0x14004c6ad
nop word [rax + 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 0x14004c6d8
cmp ebx, esi
je 0x14004c6d8
cmp ebx, 0x8000
ja 0x14004c6d8
cmp ebx, esi
jb 0x14004c6d3
mov edx, ebx
mov rcx, rdi
call qword [0x14006d010]
mov rdi, rax
test rax, rax
jne 0x14004c670
mov rcx, rbp
call qword [fcn.140055d0a]
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 0x14004c6b8
mov rcx, rdi
jmp 0x14004c6b0
jmp 0x14004c630
Function at 0x14004c6e0
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 r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [0x14006d010]
mov rdi, rax
test rax, rax
je 0x14004c6ad
nop word [rax + 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 0x14004c6d8
cmp ebx, esi
je 0x14004c6d8
cmp ebx, 0x8000
ja 0x14004c6d8
cmp ebx, esi
jb 0x14004c6d3
mov edx, ebx
mov rcx, rdi
call qword [0x14006d010]
mov rdi, rax
test rax, rax
jne 0x14004c670
mov rcx, rbp
call qword [fcn.140055d0a]
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 0x14004c6b8
mov rcx, rdi
jmp 0x14004c6b0
jmp 0x14004c630

Function at 0x14004e300
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.140018280
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.14004def0
mov rcx, rdi
mov rsi, rax
call fcn.14004def0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14004e3b0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140018280
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140018310
cmp rax, 0x3e8
ja 0x14004e3e3
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14004e360
test rsi, rsi
je 0x14004e3be
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14004e3cc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x14004e3f1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14004e3ff
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x14004e3ce
Function at 0x14004ef70
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14006d060]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov dword [rsp + 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14004f03c
mov qword [rsp + 0xa0], rbp
lea rdx, [rsp + 0x64]
xor ebp, ebp
mov dword [rsp + 0x58], 0x208
mov rcx, rsi
mov qword [rsp + 0x64], rbp
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
call fcn.14004f0b0
lea rcx, [rsp + 0x64]
lea edx, [rbp + 8]
call fcn.1400517a0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r8d, [rbp + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rbp, qword [rsp + 0xa0]
test eax, eax
jne 0x14004f040
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14004f08a
mov rax, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140054a30
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400515e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x140051622
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140051669
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400516c2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140051680
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140051703
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140061f1e]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140061f1f]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400516d0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret