joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005a9e0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x14005ab04
cmp r8d, 0xff
jne 0x14005aa41
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14005aa2b
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0x7e730]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.1400373f0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.1400373f0
cmp r8d, 0xfb
jne 0x14005aa53
lea r9, str.WILL
jmp 0x14005aa91
cmp r8d, 0xfc
jne 0x14005aa65
lea r9, str.WONT
jmp 0x14005aa91
cmp r8d, 0xfd
jne 0x14005aa77
lea r9, [0x14007f154]
jmp 0x14005aa91
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14005aaed
cmp r10d, 0x27
jg 0x14005aac4
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0x7ed50]
test r8, r8
jne 0x14005aad4
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.1400373f0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14005aaab
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.1400373f0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.1400373f0
add rsp, 0x38
ret

Function at 0x14005ae50
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 0x14005aeaf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140037270
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.14005a9e0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14005b060
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14005b208
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x14005b0c5
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14005b0c5
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14005b0c5
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14005b0fc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14005b152
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005b152
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005b152
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005b152
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005b152
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.14005ab10
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14005b1b4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140037270
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14005aee0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14005b200
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140037270
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14005c970
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14008f080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14005ca05
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14005ca66
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140037270
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140070310
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14005cb21
sub ecx, 1
je 0x14005cb94
sub ecx, 1
je 0x14005cad0
cmp ecx, 1
je 0x14005cab3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14007cbb0]
call fcn.140037270
jmp 0x14005cb94
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14005c6a0
test eax, eax
je 0x14005cb94
jmp 0x14005ca3a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14005cb94
sub rax, rsi
cmp rax, rbp
jae 0x14005cb94
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400373f0
jmp 0x14005cb94
cmp r8d, 4
jle 0x14005cb94
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14005cb94
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140037190
mov esi, eax
test eax, eax
je 0x14005cb73
mov edx, 5
mov rcx, rbx
call fcn.14005d660
mov eax, esi
jmp 0x14005ca3a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.140045a90
mov rcx, r14
call fcn.140045d70
test eax, eax
je 0x14005ca38
mov edx, 5
mov rcx, rbx
call fcn.14005d660
mov eax, Ordinal_46
jmp 0x14005ca3a
Function at 0x14006f930
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 [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14006f972
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 0x14006f9b9
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 0x14006fa12
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 0x14006f9d0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14006fa53
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14008233a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14008233b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14006fa20
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14006fa6c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14006faa6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14006faab
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14006faf4
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14006faf4
dec r8
sub rdx, 1
jne 0x14006fada
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400711bc
Capabilities:
Parse pe header

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

Disassembly:
pushfq
movabs eax, dword [0xa99ca79694a598a7]
xchg esp, eax
xchg esi, eax
cmpsd dword [rsi], dword [rdi]
pushfq
test eax, 0x36b73398
stosb byte [rdi], al
test al, 0x77
cwde
xor esi, dword [rdi + 0x77a8aa36]
cwde
test eax, 0x9c98969c
cwde
pushfq
xchg edi, eax
xor eax, dword [rdx - 0x58]
movabs dword [0xa198968698a79497], eax
xchg esp, eax
movsd dword [rdi], dword [rsi]
xchg esp, eax
cmpsd dword [rsi], dword [rdi]
cwde
xchg byte [rsi - 0x5a6b5e68], dl
pushfq
movabs byte [0x9f993a3398a3ac87], al
pushfq
invalid
sahf
jbe 0x100411ca5
cmpsb byte [rsi], byte [rdi]
cmpsd dword [rsi], dword [rdi]
and dword [rdx - 0x53696361], 0x33
cmp dh, byte [rbx]
xor esi, dword [rbx]
xor esi, dword [rbx]
xchg esi, eax
je 0x100411ca0
je 0x100411cb8
jne 0x100411c9b
movsb byte [rdi], byte [rsi]
movabs eax, dword [0x616369756774a888]
invalid
Function at 0x180387058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1803871df
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 0x180387089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18038706f
add dl, dl
jne 0x180387096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1803870f6
xor eax, eax
add dl, dl
jne 0x1803870a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1803871ad
add dl, dl
jne 0x1803870b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1803870c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1803870d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1803870dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1803870ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18038707e
mov eax, 1
add dl, dl
jne 0x180387106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180387113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1803870fb
sub eax, ebx
mov ebx, 1
jne 0x18038714c
mov ecx, 1
add dl, dl
jne 0x18038712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18038713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180387123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18038707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180387168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180387175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18038715d
cmp eax, 0x7d00
jae 0x18038719b
cmp eax, 0x500
jb 0x180387196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18038707e
cmp eax, 0x7f
ja 0x18038719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18038707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1803871d2
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 0x18038707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401880
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x250
lea rsi, fcn.00758190
movq xmm0, rsi
mov r10, qword [r8]
mov r11, qword [r8 + 8]
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x20], r10
mov r9, rcx
lea r8, [rsp + 0x20]
movq xmm1, rbx
mov qword [rsp + 0x28], r11
lea rcx, [rsp + 0x30]
punpcklqdq xmm0, xmm1
movaps xmmword [rsp + 0x30], xmm0
movdqa xmm0, xmmword [0x008beb10]
movaps xmmword [rsp + 0x40], xmm0
call r9
mov rdi, qword [fcn.00745b20]
mov ecx, 2
call rdi
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call rdi
mov ecx, 0xa
mov rdx, rax
call sub.msvcrt.dll_fputc
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x30], rsi
cmp rcx, rbx
je 0x401926
call fcn.008ae300
nop
add rsp, 0x250
pop rbx
pop rsi
pop rdi
ret
Function at 0x403690
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x690
lea rdi, fcn.00758190
xor r9d, r9d
movq xmm0, rdi
mov r10, qword [rdx]
mov r11, qword [rdx + 8]
mov rdx, qword [r8 + 8]
mov rax, qword [r8]
lea rsi, [rsp + 0x80]
lea r13, [rsp + 0x40]
mov qword [rsp + 0x38], rdx
mov rbx, rcx
movq xmm1, rsi
lea rcx, [rsp + 0x60]
lea r8, [rsp + 0x30]
mov rdx, r13
punpcklqdq xmm0, xmm1
mov qword [rsp + 0x40], r10
movaps xmmword [rsp + 0x60], xmm0
movdqa xmm0, xmmword [0x008beb10]
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x30], rax
movaps xmmword [rsp + 0x70], xmm0
call fcn.007576d0
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__fileno]
mov r12d, eax
mov ecx, eax
call qword [sym.imp.msvcrt.dll__isatty]
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
test eax, eax
jne 0x403778
mov r9, rbx
mov r8, rbp
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp rax, rbp
jb 0x40389c
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
cmp rcx, rsi
je 0x40375f
call fcn.008ae300
nop
add rsp, 0x690
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov qword [rsp + 0x40], rcx
mov rdx, r13
lea rcx, [rsp + 0x280]
mov qword [rsp + 0x48], rbp
call fcn.004019e0
mov rax, qword [rsp + 0x290]
mov dword [rsp + 0x5c], 0
mov ecx, r12d
mov r13, qword [rsp + 0x288]
lea rbx, [rax - 1]
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov rcx, rax
lea r9, [rsp + 0x5c]
mov r8d, ebx
mov rdx, r13
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x40380a
lea rax, fcn.007582b0
mov rcx, qword [rsp + 0x288]
mov qword [rsp + 0x280], rax
lea rax, [rsp + 0x2a0]
cmp rcx, rax
je 0x40374a
call fcn.008ae300
jmp 0x40374a
mov ecx, 0x10
call fcn.008ae430
lea rdx, str.failed_to_write_to_console
mov rcx, rax
mov r13, rax
call fcn.00859550
lea rax, [0x009708e0]
lea r8, [0x00401770]
mov rcx, r13
mov qword [r13], rax
lea rdx, [0x0096ba20]
call fcn.008aebd0
mov r12, rax
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
cmp rcx, rsi
je 0x40385e
call fcn.008ae300
mov rcx, r12
call fcn.00738fd0
mov rcx, r13
mov r12, rax
call fcn.008ae780
lea rax, fcn.007582b0
mov rcx, qword [rsp + 0x288]
mov qword [rsp + 0x280], rax
lea rax, [rsp + 0x2a0]
cmp rcx, rax
je 0x40384a
call fcn.008ae300
jmp 0x40384a
mov ecx, 0x18
call fcn.008ae430
mov r14, rax
call qword [sym.imp.msvcrt.dll__errno]
mov edx, dword [rax]
lea rbx, str.cannot_write_to_file
mov r8, r13
mov rcx, r14
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0x14
call fcn.007580f0
lea r8, [0x004017b0]
lea rdx, [0x0096ba40]
mov rcx, r14
call fcn.008aebd0
mov r12, rax
jmp 0x403871
Function at 0x406420
Capabilities:
Get hostname

Disassembly:
push r13
push r12
sub rsp, 0x128
mov edx, 0x100
lea r13, [rsp + 0x20]
mov r12, rcx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
mov rcx, r13
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4065c8
mov rax, r12
mov qword [r12], 0
mov qword [r12 + 8], 0
add rsp, 0x128
pop r12
pop r13
ret
mov rdx, r13
mov rcx, r12
call fcn.00442310
mov rax, r12
add rsp, 0x128
pop r12
pop r13
ret
Function at 0x406f80
Capabilities:
Query environment variable

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp qword [0x009e2168], 0
mov r12, rcx
mov rsi, rdx
mov r13, r8
je 0x407100
mov rbx, qword [0x009e2150]
test rbx, rbx
je 0x407040
lea rbp, [0x009e2148]
mov rdi, rbp
nop dword [rax]
cmp qword [rbx + 0x28], 0
je 0x406fe0
cmp qword [rsi + 8], 0
je 0x406fe0
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rsi]
call sub.msvcrt.dll_strcmp
test eax, eax
js 0x407018
nop
mov rdi, rbx
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x406fc0
cmp rdi, rbp
je 0x407040
cmp qword [rsi + 8], 0
jne 0x407020
lea rdx, [rdi + 0x30]
mov rcx, r12
call fcn.00442400
mov rax, r12
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rbx, qword [rbx + 0x18]
jmp 0x406fe7
cmp qword [rdi + 0x28], 0
je 0x406ff8
mov rdx, qword [rdi + 0x20]
mov rcx, qword [rsi]
call sub.msvcrt.dll_strcmp
test eax, eax
jns 0x406ff8
nop word [rax + rax]
cmp qword [r13 + 0x28], 0
je 0x4070d0
mov rbx, qword [r13 + 0x10]
lea rbp, [r13 + 8]
mov rdi, rbp
test rbx, rbx
je 0x4070d0
nop dword [rax + rax]
cmp qword [rbx + 0x28], 0
je 0x407080
cmp qword [rsi + 8], 0
je 0x407080
mov rcx, qword [rbx + 0x20]
mov rdx, qword [rsi]
call sub.msvcrt.dll_strcmp
test eax, eax
js 0x4070f8
nop
mov rdi, rbx
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x407060
cmp rdi, rbp
je 0x4070d0
cmp qword [rsi + 8], 0
je 0x406ff8
cmp qword [rdi + 0x28], 0
je 0x406ff8
mov rcx, qword [rsi]
mov rdx, qword [rdi + 0x20]
mov qword [rsp + 0x28], rcx
call sub.msvcrt.dll_strcmp
mov rcx, qword [rsp + 0x28]
test eax, eax
jns 0x406ff8
jmp 0x4070d3
mov rcx, qword [rsi]
call sub.msvcrt.dll_getenv
mov rcx, r12
mov rdx, rax
call fcn.00442310
mov rax, r12
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rbx, qword [rbx + 0x18]
jmp 0x407087
call fcn.00406670
jmp 0x406fa3
Function at 0x40df00
Capabilities:
Set console window title

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x30
lea rax, [0x00970ba0]
mov qword [rcx], rax
mov rbx, rcx
mov r13, rdx
mov qword [rcx + 8], 0
mov qword [rcx + 0x10], 0
mov ecx, 1
call fcn.006d9d90
cmp eax, 0xe
je 0x40df58
cmp eax, 7
je 0x40df58
mov rax, qword [0x00968390]
mov byte [rax], 0
add rsp, 0x30
pop rbx
pop r12
pop r13
ret
mov ecx, 0x158
call fcn.008ae350
mov qword [rbx + 8], rax
mov r12, rax
call fcn.006cde40
xor r9d, r9d
mov r8d, 1
mov rdx, r12
mov rcx, rax
call fcn.006e9ed0
test eax, eax
js 0x40df3d
mov rcx, qword [rbx + 8]
xor edx, edx
call fcn.006ebe40
mov rax, qword [rbx + 8]
mov ecx, 0xfffffff6
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x40dfc7
mov dword [rsp + 0x20], 0
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
jne 0x40e008
cmp byte [r13], 0
je 0x40df47
lea rcx, [rsp + 0x20]
mov rdx, r13
call fcn.00413000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x40df47
call fcn.008ae2f0
jmp 0x40df47
mov edx, dword [rsp + 0x20]
mov rcx, r12
and edx, 0xffffffbf
mov dword [rsp + 0x20], edx
or dl, 0x80
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
jmp 0x40dfc7
Function at 0x44c610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
call fcn.0040f440
movzx r12d, byte [rax + 0x10]
mov rsi, rax
test r12b, r12b
jne 0x44c650
mov r12d, 1
mov eax, r12d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ecx, 0x20
call fcn.008ae350
lea rdx, [rbx + 0x18]
mov rcx, rax
mov r13, rax
call fcn.004bec70
mov qword [rbx + 0x38], r13
mov rcx, qword [rbx + 0x10]
call fcn.0040f440
mov rcx, r13
lea rdx, [rax + 0xd8]
call fcn.004beca0
movzx ebp, word [rsi + 0x38]
mov ecx, 0xa8
mov edi, eax
call fcn.008ae350
mov r9, qword [rbx + 0x38]
lea rdx, [rsi + 0x18]
mov r8d, ebp
mov rcx, rax
mov r13, rax
call fcn.00463e10
mov qword [rbx + 0x28], r13
mov rcx, r13
call fcn.00463f60
mov r13d, eax
test eax, eax
js 0x44c768
mov r9, qword [rsi + 0x18]
test dil, dil
jne 0x44c7f8
lea rax, [0x008cdb19]
mov dword [rsp + 0x20], r13d
mov r8d, 0x24
lea rdx, str.HTTP_API
mov qword [rsp + 0x28], rax
lea rcx, str.e_1_32m__e_0me_1_37m__13se_0me_1__dm_s:_d_e_1_31m_se_0m
call fcn.0040e800
mov word [rbx + 0x30], r13w
mov r8d, 3
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r13, rax
test rax, rax
je 0x44c635
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
test rax, rax
je 0x44c635
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, r13
xor ecx, ecx
mov qword [0x009e3a08], rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov eax, eax
mov qword [0x009e3a00], rax
mov eax, r12d
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov ecx, eax
call fcn.006ccef0
movzx edx, word [rsi + 0x38]
mov r9, qword [rsi + 0x18]
test dil, dil
jne 0x44c830
mov dword [rsp + 0x20], edx
mov r8d, 0x24
lea rdx, str.HTTP_API
lea rcx, str.e_1_32m__e_0me_1_37m__13se_0me_1__dm_s:_d_e_1_31m_se_0m
mov qword [rsp + 0x28], rax
call fcn.0040e800
mov r12, qword [rbx + 0x28]
test r12, r12
je 0x44c7bb
mov rcx, r12
call fcn.00463f20
mov rcx, r12
call fcn.008ae300
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x44c7ca
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
xor r12d, r12d
mov qword [rbx + 0x28], 0
mov word [rbx + 0x30], ax
mov eax, r12d
mov qword [rbx + 0x38], 0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [0x008cdb19]
mov dword [rsp + 0x20], r13d
mov r8d, 0x20
lea rdx, str.HTTP_API
mov qword [rsp + 0x28], rax
lea rcx, str.e_1_32m__e_0me_1_37m__13se_0me_1__dm_s:_d_e_1_31m_se_0m
call fcn.0040e800
jmp 0x44c6f9
mov dword [rsp + 0x20], edx
mov r8d, 0x20
lea rdx, str.HTTP_API
lea rcx, str.e_1_32m__e_0me_1_37m__13se_0me_1__dm_s:_d_e_1_31m_se_0m
mov qword [rsp + 0x28], rax
call fcn.0040e800
jmp 0x44c7a2