joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140124ba0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140124bb0]
mov dword [rax], 1
mov rax, qword [0x140124bc0]
mov dword [rax], 1
mov rax, qword [0x140124b90]
mov dword [rax], 1
mov rax, qword [0x140124a20]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x140124b80]
mov dword [0x14012800c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x1400010c0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140124b40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140124b20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140124990]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x1400016a4
Capabilities:
Query environment variable
Write file on windows

Disassembly:
push rbp
sub rsp, 0x170
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], rcx
mov dword [rbp + 0x108], edx
mov qword [rbp + 0x110], r8
lea rcx, str.USERNAME
call sym.getenv
mov rcx, rax
lea rax, [rbp - 0x30]
mov rdx, qword [rbp + 0x110]
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str.C:Users_sAppDataLocal_s
mov edx, 0x104
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x30]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0xe8], 0xffffffffffffffff
jne 0x14000175a
lea rcx, str.Erreur_lors_de_louverture_du_fichier_pour_lcriture_de_la_DLL
call sym.vmmbsNFViE
jmp 0x1400017e9
lea rcx, [rbp - 0x34]
mov edx, dword [rbp + 0x108]
mov rax, qword [rbp + 0xe8]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8d, edx
mov rdx, qword [rbp + 0x100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
je 0x14000179c
mov eax, dword [rbp - 0x34]
cmp dword [rbp + 0x108], eax
je 0x1400017a8
lea rcx, str.Erreur_lors_de_lcriture_des_donnes_de_la_DLL
call sym.vmmbsNFViE
mov rax, qword [rbp + 0xe8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0xe0], rax
cmp qword [rbp + 0xe0], 0
jne 0x1400017e9
lea rcx, str.Erreur_lors_du_chargement_de_la_DLL
call sym.vmmbsNFViE
nop
add rsp, 0x170
pop rbp
ret
Function at 0x14000181f
Capabilities:
Query environment variable

Disassembly:
push rbp
sub rsp, 0x340
lea rbp, [rsp + 0x80]
lea rcx, str.Lancement_de_la_fonction_JvLMlHDKub_n
call sym.vmmbsNFViE
mov rax, qword [0x140124a00]
mov eax, dword [rax]
lea r8, str.poc_ping_dll_header.dll
mov edx, eax
mov rcx, qword [str._4_v_]
call sym.RwqzBoKiIP
lea rcx, str.USERNAME
call sym.getenv
mov rdx, rax
lea rax, [rbp + 0x1a0]
mov r9, rdx
lea r8, str.C:Users_sAppDataLocalJvLMlHDKub.dll
mov edx, 0x104
mov rcx, rax
call sym.snprintf
lea rdx, [rbp + 0x1a0]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str.Chargement_de_la_DLL_:__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.vmmbsNFViE
lea rax, [rbp + 0x1a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp + 0x2b8], rax
cmp qword [rbp + 0x2b8], 0
je 0x14000194e
lea rcx, str.Chargement_de_la_fonction_ping_ip_n
call sym.vmmbsNFViE
mov rax, qword [rbp + 0x2b8]
lea rdx, str.ping_ip
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp + 0x2b0], rax
cmp qword [rbp + 0x2b0], 0
je 0x14000192d
lea rcx, str.Appel_de_la_fonction_ping_ip_avec_succs_n
call sym.vmmbsNFViE
mov rax, qword [rbp + 0x2b0]
lea rcx, str.172.27.229.14
call rax
jmp 0x140001939
lea rcx, str.Erreur_lors_de_lappel_de_la_fonction_ping_ip_:_fonction_non_trouve
call sym.vmmbsNFViE
mov rax, qword [rbp + 0x2b8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FreeLibrary]
call rax
jmp 0x14000197c
lea rdx, [rbp + 0x1a0]
lea rax, [rbp - 0x60]
mov r9, rdx
lea r8, str.Erreur_lors_du_chargement_de_la_DLL_:__s
mov edx, 0x200
mov rcx, rax
call sym.snprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.vmmbsNFViE
nop
add rsp, 0x340
pop rbp
ret

Function at 0x140001c90
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001d00
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1401280a4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x140001eb0
mov rax, qword [0x1401280a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x140001d4c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001dd7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x140001d30
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x140001f0d
mov rax, qword [0x1401280a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1401280a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ef2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001dd0
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001e60
add dword [0x1401280a4], 1
cmp ebx, 8
jae 0x140001e08
test bl, 4
jne 0x140001ec0
test ebx, ebx
je 0x140001df9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x140001ee0
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x140001df9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x140001e3a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1401280a8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001dd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x140001d57
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x140001df9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x140001df9
mov rax, qword [0x1401280a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop dword [rax]
Function at 0x140002420
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140128100]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401280e0]
test rbx, rbx
je 0x140002474
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000246b
test r12, r12
je 0x14000246b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002450
lea rcx, [0x140128100]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400026a0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x1400026b0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x1400026c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002705
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400026fc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x140002707
add rax, 0x28
cmp rax, r9
jne 0x1400026e8
xor eax, eax
ret

Function at 0x1400027b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140124a20]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x140002829
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002829
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x140002826
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x14000281d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x140002829
add r8, 0x28
cmp r8, r9
jne 0x140002808
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x140002910
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140124a20]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x14000297f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x14000297f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x14000297d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002974
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002988
add rax, 0x28
cmp rax, r9
jne 0x140002960
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x1400029a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140124a20]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x140002a18
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x140002a18
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002a18
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x140002a18
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x140002a0c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002a20
add rdx, 0x28
cmp rdx, r10
jne 0x1400029f8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x140002a30
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x140002a3e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002a15
test r8d, r8d
jg 0x140002a28
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140050130
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa8f], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x1400501fb
cmp qword [rcx + 0x258], 0
je 0x1400501ae
mov qword [rsp + 0x40], rbx
call fcn.140037b10
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140037f30
mov rcx, qword [rdi + 0x1d0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x258]
movzx edx, bl
mov rcx, rdi
call fcn.140037f30
mov rbx, qword [rsp + 0x40]
jmp 0x1400501fb
mov ecx, esi
test edx, edx
je 0x1400501be
sub ecx, 1
je 0x1400501be
cmp ecx, 1
jne 0x1400501fb
mov r9, qword [rdi + 0x1c8]
lea rax, [0x1400bef08]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x1c8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1400539a0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret
Function at 0x140053d60
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_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140053d8a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400ccea8]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x140053dea
mov rcx, rbx
test r14, r14
je 0x140053dd7
xor edx, edx
lea r8d, [rdx + 8]
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test r14, r14
je 0x140053e21
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140053e21
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x140053ee8
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop word [rax + rax]
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x140053e50
lea ecx, [rax + 1]
add rcx, rdx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140053eda
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140053eda
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x140053e80
mov word [rax + rdi], 0x5c
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x140053e91
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x140053eb0
mov rcx, rdi
test r14, r14
je 0x140053ed1
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140053ed7
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [case.0x14004023b.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 0x14007a440
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 + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x14007a480
lea rdx, str.Couldnt_set_desired_mode
call fcn.140050220
lea eax, [rdi + 0x11]
jmp 0x14007a5e5
cmp edx, 0xc8
je 0x14007a497
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140050310
cmp sil, 0x13
jne 0x14007a4ad
mov rdx, rbp
mov rcx, rbx
call fcn.14007a0a0
jmp 0x14007a5e1
cmp sil, 0x14
jne 0x14007a5c3
cmp byte [rbx + 0x6d8], 2
mov rbp, qword [rbx + 0x20]
jne 0x14007a52b
mov rax, qword [rbx + 0x198]
mov rcx, qword [rax]
test rcx, rcx
je 0x14007a52b
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.14008a4a0
test eax, eax
jne 0x14007a5e1
mov rcx, qword [rsp + 0x40]
lea edx, [rax + 0x2f]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x14007a520
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x14007a52b
mov rcx, qword [rsp + 0x40]
call qword [case.0x14004023b.0]
mov rdx, qword [rbx + 0x730]
test rdx, rdx
jne 0x14007a550
cmp byte [rbx + 0x136b], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1400cd4ab]
test rdi, rdi
mov r9, r8
lea rax, [0x1400b6648]
cmovne r9, rdi
lea rcx, [0x1400bec64]
cmovne r8, rax
call fcn.140059c50
mov rcx, rdi
mov rsi, rax
call qword [case.0x14004023b.0]
test rsi, rsi
jne 0x14007a58e
lea edi, [rsi + 0x1b]
jmp 0x14007a5e3
lea rdx, [rbp + 0x590]
mov r9, rsi
lea r8, [0x1400bd430]
mov rcx, rbx
call fcn.1400a21a0
mov rcx, rsi
mov edi, eax
call qword [case.0x14004023b.0]
test edi, edi
jne 0x14007a5e3
mov rcx, qword [rbx + 0x20]
mov byte [rcx + 0x69e], 0x1f
jmp 0x14007a5e3
cmp sil, 0x15
jne 0x14007a5ce
mov r8b, reloc.WS2_32.dll_listen
jmp 0x14007a5d7
cmp sil, 0x16
jne 0x14007a5e3
mov r8b, ntohs
mov dl, 1
mov rcx, rbx
call fcn.140079aa0
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 0x140084ac0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140163040]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x20]
mov rbp, rcx
xor r9d, r9d
xor esi, esi
mov rdi, qword [rax + 0x590]
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]
mov dword [rdi + 0x13c], eax
cmp dword [rdi + 0x138], esi
jne 0x140084b56
movsxd r8, dword [rsp + 0x30]
lea rcx, [rdi + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x138], eax
mov r8d, dword [rdi + 0x13c]
mov qword [rsp + 0x100], r14
cmp r8d, 4
jge 0x140084ba6
lea rdx, str.Received_too_short_packet
mov rcx, rbp
call fcn.140050220
mov dword [rdi + 0xc], 7
mov eax, esi
mov r14, qword [rsp + 0x100]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400adfa0
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
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.0x140084bdc.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x84ce4]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x140084bdc.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.0x140084bdc.4
lea eax, [r8 - 4]
mov rcx, rbp
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140050d50
mov esi, eax
test eax, eax
je case.0x140084bdc.4
mov edx, 5
mov rcx, rdi
call fcn.1400856f0
jmp 0x140084b81
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
shl ecx, 8
lea r14, [rdx + 4]
mov qword [rsp + 0xf8], rbx
movsxd rbx, eax
movzx eax, byte [rdx + 3]
mov rdx, rbx
or ecx, eax
mov dword [rdi + 8], ecx
mov rcx, r14
call fcn.140085810
cmp rax, rbx
mov rbx, qword [rsp + 0xf8]
jae case.0x140084bdc.4
mov r8, r14
lea rdx, str.TFTP_error:__s
mov rcx, rbp
call fcn.140050310
jmp case.0x140084bdc.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rdi
call fcn.1400847a0
mov esi, eax
test eax, eax
je case.0x140084bdc.4
jmp 0x140084b83
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rbp
lea rdx, [0x1400bd430]
call fcn.140050220
mov rcx, rbp
call fcn.140066320
test eax, eax
je 0x140084b81
mov edx, 5
mov rcx, rdi
call fcn.1400856f0
mov eax, Ordinal_45
jmp 0x140084b83
Function at 0x1400a67e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1400a6823
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x1400a6870
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor r14d, r14d
test r15, r15
je 0x1400a68d2
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x1400a6890
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x1400a6911
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1400cca49]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400cca4a]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x1400a68e0
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x20
movsd xmm0, qword [0x1400032b0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
movzx ebx, byte [0x1400032b8]
movsd qword [rsp + 0x30], xmm0
call fcn.140001060
mov edx, 9
mov r9d, 0x40
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movsd xmm0, qword [rsp + 0x30]
movsd qword [rax], xmm0
mov byte [rax + 8], bl
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140001b68
Capabilities:
Parse pe header

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