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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [0x1400f1991], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x14005e17f
test rdi, rdi
je 0x14005e17f
mov eax, dword [0x1400f1994]
test eax, eax
jne 0x14005e177
mov r8d, dword [rsp + 0x60]
lea rsi, str.recv
mov r9, rsi
lea rcx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rdx, rdi
call fcn.14005de20
mov ecx, 2
call fcn.140039098
mov r9d, dword [rsp + 0x60]
lea rdx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8, rdi
call fcn.1400606d0
mov rcx, qword [0x1400f1988]
call fcn.1400347b8
call fcn.140039528
mov dword [rax], recvfrom
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
dec eax
mov dword [0x1400f1994], eax
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
test rdi, rdi
je 0x14005e1a7
mov r8d, dword [rsp + 0x60]
lea rcx, str.RECV__s:_d_recv__lu____ld_n
mov r9d, esi
mov dword [rsp + 0x20], eax
mov rdx, rdi
call fcn.14005de20
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14005e220
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp byte [0x1400f1991], 0
mov esi, r8d
mov rdi, qword [rsp + 0x68]
je 0x14005e2cf
test rdi, rdi
je 0x14005e2cf
mov eax, dword [0x1400f1994]
test eax, eax
jne 0x14005e2c7
mov r8d, dword [rsp + 0x60]
lea rsi, str.send
mov r9, rsi
lea rcx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rdx, rdi
call fcn.14005de20
mov ecx, 2
call fcn.140039098
mov r9d, dword [rsp + 0x60]
lea rdx, str.LIMIT__s:_d__s_reached_memlimit_n
mov rcx, rax
mov qword [rsp + 0x20], rsi
mov r8, rdi
call fcn.1400606d0
mov rcx, qword [0x1400f1988]
call fcn.1400347b8
call fcn.140039528
mov dword [rax], recvfrom
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
dec eax
mov dword [0x1400f1994], eax
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
test rdi, rdi
je 0x14005e2f7
mov r8d, dword [rsp + 0x60]
lea rcx, str.SEND__s:_d_send__lu____ld_n
mov r9d, esi
mov dword [rsp + 0x20], eax
mov rdx, rdi
call fcn.14005de20
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14006aeb0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14004937c
cdqe
add rsp, 0x28
ret
Function at 0x1400735e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp byte [rcx + 0xb1e], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x140073696
cmp qword [rcx + 0x278], 0
je 0x14007364b
mov dl, 1
call fcn.14006d340
mov rax, qword [rdi + 0x1d8]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x278]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14006d340
mov eax, ebx
jmp 0x140073698
mov edx, ebx
test ebx, ebx
je 0x14007365b
sub edx, 1
je 0x14007365b
cmp edx, 1
jne 0x140073696
mov r9, qword [rdi + 0x1d0]
lea rax, [0x1400ccb78]
mov edx, 2
lea rcx, [rbx + rbx*2]
add rcx, rax
lea r8d, [rdx - 1]
call fcn.1400393ec
mov r9, qword [rdi + 0x1d0]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call fcn.1400393ec
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400736b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x160
mov rax, qword [0x1400ee098]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xb1e], 0
mov rbx, rcx
jne 0x1400736f3
cmp qword [rcx + 0x1e0], 0
je 0x1400737c0
mov r8, rdx
mov qword [rsp + 0x158], rdi
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.140060820
mov rdx, qword [rbx + 0x1e0]
movsxd rdi, eax
test rdx, rdx
je 0x140073758
cmp byte [rbx + 0x12d4], 0
jne 0x140073758
lea rcx, [rsp + 0x30]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140073740
mov byte [rbx + 0x12d4], 1
mov byte [rsp + rdi + 0x30], 0xa
inc rdi
cmp rdi, 0x102
jae 0x140073811
cmp byte [rbx + 0xb1e], 0
mov byte [rsp + rdi + 0x30], 0
je 0x1400737b8
cmp qword [rbx + 0x278], 0
je 0x1400737d9
mov dl, 1
mov rcx, rbx
call fcn.14006d340
mov rax, qword [rbx + 0x1d8]
lea r8, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rbx
call qword [rbx + 0x278]
xor edx, edx
mov rcx, rbx
call fcn.14006d340
mov rdi, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002de90
add rsp, 0x160
pop rbx
ret
mov r9, qword [rbx + 0x1d0]
lea rcx, [0x1400ccb78]
mov edx, 2
lea r8d, [rdx - 1]
call fcn.1400393ec
mov r9, qword [rbx + 0x1d0]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rdi
call fcn.1400393ec
jmp 0x1400737b8
call fcn.14002e728
int3
Function at 0x140074490
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1400ee098]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rax, rdx
mov rdi, r8
mov rsi, rcx
lea r8, [rsp + 0x20]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rbx, r9
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140074538
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.14007c290
mov r8d, ebx
lea rdx, str.getsockname___failed_with_errno__d:__s
jmp 0x1400745c1
movzx eax, word [rsp + 0x30]
cmp eax, 2
je 0x140074573
cmp eax, 0x17
jne 0x14007457f
lea rdx, [rsp + 0x38]
mov ecx, eax
mov r8, rdi
mov r9d, 0x2e
call fcn.1400a0710
test rax, rax
je 0x14007457f
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov dword [rbx], eax
jmp 0x1400745cc
lea rdx, [rsp + 0x34]
mov ecx, 2
jmp 0x14007454e
mov byte [rdi], 0
mov dword [rbx], 0
call fcn.140039528
mov dword [rax], 0x273f
call fcn.140039528
mov ebx, dword [rax]
call fcn.140039528
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.14007c290
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400736b0
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14002de90
add rsp, 0x1c0
pop rdi
pop rsi
pop rbx
ret
Function at 0x14007a660
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
lea r9, str.C:dev_vcpkg_buildtreescurl_src7a634d33bf_24fa6e04fd.cleanlibgetenv.c
xor ebp, ebp
mov ebx, 1
mov edx, ebx
xor ecx, ecx
lea r8d, [rbp + 0x2d]
call fcn.14005dfc0
mov rdi, rax
test rax, rax
je 0x14007a6e9
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 0x14007a71f
cmp ebx, esi
je 0x14007a71f
cmp ebx, 0x8000
ja 0x14007a71f
cmp ebx, esi
jb 0x14007a71a
mov edx, ebx
lea r9, str.C:dev_vcpkg_buildtreescurl_src7a634d33bf_24fa6e04fd.cleanlibgetenv.c
mov r8d, 0x2d
mov rcx, rdi
call fcn.14005dfc0
mov rdi, rax
test rax, rax
jne 0x14007a6a0
mov edx, 0x2f
mov rcx, rbp
lea r8, str.C:dev_vcpkg_buildtreescurl_src7a634d33bf_24fa6e04fd.cleanlibgetenv.c
call fcn.14005ddc0
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 0x14007a6ff
mov edx, 0x3a
mov rcx, rdi
jmp 0x14007a6f1

Function at 0x14007dde0
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x14007ddf5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.14007d940

Function at 0x14007e990
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.140070870
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.1400b4080
mov rcx, rdi
mov rsi, rax
call fcn.1400b4080
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x14007ea40
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140070870
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140070900
cmp rax, 0x3e8
ja 0x14007ea71
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_MoveFileExA]
test eax, eax
je 0x14007e9f0
test rsi, rsi
je 0x14007ea4d
mov rcx, rsi
call fcn.14003ac40
test rbx, rbx
je 0x14007ea5a
mov rcx, rbx
call fcn.14003ac40
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 0x14007ea7e
mov rcx, rsi
call fcn.14003ac40
test rbx, rbx
je 0x14007ea8b
mov rcx, rbx
call fcn.14003ac40
mov eax, 1
jmp 0x14007ea5c
Function at 0x140084eb0
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, 0xd0
mov rax, qword [0x1400ee098]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x30]
mov rdi, rcx
lea rdx, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
mov rbp, qword [rsi + 0x1f0]
mov rcx, rbp
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140084f3c
lea rax, str.C:dev_vcpkg_buildtreescurl_src7a634d33bf_24fa6e04fd.cleanlib_ftp.c
mov dword [rsp + 0x30], 0x80
mov r9d, 0x11c
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov rcx, rbp
lea rdx, [rsp + 0x40]
call fcn.14005dba0
mov rbx, rax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.1400740d0
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x140084f64
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400736b0
lea eax, [rbx + 0x1f]
jmp 0x140084fe0
lea rdx, str.Connection_accepted_from_server
call fcn.140073820
mov edx, 1
mov byte [rsi + 0x3da], 0
mov rcx, rbx
mov qword [rsi + 0x1f0], rbx
call fcn.1400a06e0
mov byte [rsi + 0x3ed], 1
cmp qword [rdi + 0x288], 0
je 0x140084fde
mov dl, 1
mov rcx, rdi
call fcn.14006d340
mov rcx, qword [rdi + 0x290]
mov r8d, 1
mov rdx, rbx
call qword [rdi + 0x288]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14006d340
test ebx, ebx
je 0x140084fde
mov rdx, rsi
mov rcx, rdi
call fcn.1400854e0
mov eax, 0x2a
jmp 0x140084fe0
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14002de90
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
mov rbx, rcx
mov rdx, qword [rcx + 0x18]
cmp dword [rax + 0x10], 0
je 0x140086be6
mov dword [rdx + 0x7d0], 0xd
mov r8d, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.140086cd0
cmp byte [rcx + 0xb0e], 0
je 0x140086bfb
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.1400877a0
cmp byte [rcx + 0xb11], 0
je 0x140086c7c
mov r9, qword [rdx + 0x790]
test r9, r9
jne 0x140086c3e
mov r9, qword [rcx + 0x7b8]
test r9, r9
jne 0x140086c35
cmp byte [rbx + 0x12e2], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x140086c55
cmp byte [rcx + 0xb1d], 0
lea r8, str.PRET_STOR__s
jne 0x140086c55
lea r8, str.PRET_RETR__s
add rdx, 0x700
mov rcx, rbx
call fcn.1400a8630
test eax, eax
jne 0x140086c86
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7d0], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400876f0
add rsp, 0x20
pop rbx
ret
Function at 0x140086fc0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
add rdx, 0x700
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x14008700e
cmp qword [rdx + 0x90], 0
je 0x14008700e
xor r9d, r9d
lea r8, str.REST__d
call fcn.1400a8630
test eax, eax
jne 0x140087018
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7d0], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140086bb0
add rsp, 0x20
pop rbx
ret

Function at 0x1400872e0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x14008731f
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400736b0
lea eax, [rdi + 0x11]
jmp 0x1400874ac
cmp edx, 0xc8
je 0x140087336
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140073820
cmp esi, 0x13
jne 0x14008734b
mov rdx, rbp
mov rcx, rbx
call fcn.1400871e0
jmp 0x1400874a8
cmp esi, 0x14
jne 0x14008748a
cmp dword [rbx + 0x750], 2
mov rbp, qword [rbx + 0x18]
jne 0x1400873d9
mov rax, qword [rbx + 0x1b0]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400873d9
mov dword [rsp + 0x28], 3
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov qword [rsp + 0x40], rdi
call fcn.14005ae90
test eax, eax
jne 0x1400874a8
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + 0x1b]
call fcn.1400afe30
test rax, rax
je 0x1400873c3
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x1400873d9
mov rcx, qword [rsp + 0x40]
lea r8, str.C:dev_vcpkg_buildtreescurl_src7a634d33bf_24fa6e04fd.cleanlib_ftp.c
mov edx, 0x5cc
call fcn.14005ddc0
mov rdx, qword [rbx + 0x7b8]
test rdx, rdx
jne 0x1400873fe
cmp byte [rbx + 0x12e2], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400dcb93]
test rdi, rdi
mov r9, r8
lea rax, [0x1400dcc98]
cmovne r9, rdi
lea rcx, [0x1400cbe8c]
cmovne r8, rax
call fcn.140060620
lea r8, str.C:dev_vcpkg_buildtreescurl_src7a634d33bf_24fa6e04fd.cleanlib_ftp.c
mov edx, 0x5d5
mov rcx, rdi
mov rsi, rax
call fcn.14005ddc0
test rsi, rsi
jne 0x140087447
lea edi, [rsi + 0x1b]
jmp 0x1400874aa
lea rdx, [rbp + 0x700]
mov r9, rsi
lea r8, [0x1400cc7f8]
mov rcx, rbx
call fcn.1400a8630
lea r8, str.C:dev_vcpkg_buildtreescurl_src7a634d33bf_24fa6e04fd.cleanlib_ftp.c
mov edx, 0x5db
mov rcx, rsi
mov edi, eax
call fcn.14005ddc0
test edi, edi
jne 0x1400874aa
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7d0], 0x1f
jmp 0x1400874aa
cmp esi, 0x15
jne 0x140087495
lea r8d, [rsi - 8]
jmp 0x14008749e
cmp esi, 0x16
jne 0x1400874aa
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.140086cd0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140095990
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1400ee098]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rsi, rcx
xor r9d, r9d
mov rdi, qword [rax + 0x700]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rdi + 0x144]
mov rdx, qword [rdi + 0x150]
add r8d, 4
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rdi + 0x138], 0
mov dword [rdi + 0x13c], eax
jne 0x140095a27
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.14002fee0
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0xe8], rbx
mov qword [rsp + 0xf0], rbp
cmp r8d, 4
jge 0x140095a8d
lea rdx, str.Received_too_short_packet
mov rcx, rsi
call fcn.1400736b0
mov dword [rdi + 0xc], 7
xor eax, eax
mov rbp, qword [rsp + 0xf0]
mov rbx, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14002de90
mov rsi, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rdi + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rdi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x140095ac3.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x95bdc]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x140095ac3.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rdi + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x140095ac3.4
lea eax, [r8 - 4]
mov rcx, rsi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400735d0
mov ebx, eax
test eax, eax
je 0x140095b22
mov edx, 5
mov rcx, rdi
call fcn.140096620
mov eax, ebx
jmp 0x140095a5c
mov eax, dword [rdi + 0x13c]
mov rcx, rsi
sub eax, 4
cdqe
add qword [rsi + 0xf8], rax
mov rdx, qword [rsi + 0xf8]
call fcn.14007a970
jmp case.0x140095ac3.4
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbx, eax
lea rbp, [rdx + 4]
movzx eax, byte [rdx + 3]
mov rdx, rbx
shl ecx, 8
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, rbp
call fcn.140096690
cmp rax, rbx
jae case.0x140095ac3.4
mov r8, rbp
lea rdx, str.TFTP_error:__s
mov rcx, rsi
call fcn.140073820
jmp case.0x140095ac3.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.1400956c0
test eax, eax
je case.0x140095ac3.4
jmp 0x140095a5c
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rsi
lea rdx, [0x1400cc7f8]
call fcn.1400736b0
mov rcx, rsi
call fcn.14007ac80
test eax, eax
je 0x140095a5a
mov edx, 5
mov rcx, rdi
call fcn.140096620
mov eax, 0x2a
jmp 0x140095a5c
Function at 0x1400b48ac
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400b48cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400394b8
or eax, 0xffffffff
jmp 0x1400b48ce
xor eax, eax
add rsp, 0x28
ret
Function at 0x140002170
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000226b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002273
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400022aa
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002280
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400022d5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x1400022fb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400022e0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a450
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
lea edi, [r14 + 0x28]
test al, al
je 0x14000a501
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14000e1ac
cmp rax, 1
jne 0x14000a537
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a4dd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a4d0
cmp rcx, 1
jb 0x14000a537
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000a4a0
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000bdf0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14000deb0
int3
Function at 0x14000a5c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a605
xor al, al
jmp 0x14000a652
cmp word [rbx], 0
je 0x14000a61d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a610
cmp word [rsp + 0x30], 0
je 0x14000a64b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a673
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a630
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000bdf0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000deb0
int3
Function at 0x14000af50
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001cee0
sub rsp, rax
mov rax, qword [0x14002b008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002f520]
lea rsi, [0x140031560]
mov rdi, rcx
test r11d, r11d
jne 0x14000afc9
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a680
test al, al
je 0x14000b0af
lea rcx, [rsp + 0x20]
call fcn.1400118c8
movsxd r11, dword [0x14002f520]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002f520], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000b004
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000aff4
add rax, 2
test ecx, ecx
jne 0x14000afe0
test edx, edx
je 0x14000b027
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000afd4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000b010
cmp rax, 2
jne 0x14000b02b
cmp word [rdi + 2], 0x3a
jne 0x14000b02b
mov al, 1
jmp 0x14000b08e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000b058
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000b058
mov bl, 1
jmp 0x14000b05c
test bl, bl
je 0x14000b083
cmp dword [0x14002f520], 0x400
jge 0x14000b083
mov rcx, rdi
call fcn.1400118c8
movsxd rdx, dword [0x14002f520]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002f520], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000bdf0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000adf0
int3