joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d910
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140016c60], rbx
je 0x14000d977
cmp rax, rbx
jne 0x14000d96a
mov ebx, 1
mov esi, ebx
jmp 0x14000d97c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000d94f
mov ebx, 1
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000d994
mov edi, 0x1f
mov ecx, edi
call 0x1400a8000
jmp 0x14000da00
mov eax, dword [0x140016c68]
test eax, eax
jne 0x14000d9f5
mov dword [0x140016c68], ebx
lea r15, [0x140010bb8]
lea rdi, [0x140010ba0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000d9e7
test eax, eax
jne 0x14000d9eb
cmp qword [rdi], r14
je 0x14000d9dc
mov rax, qword [rdi]
mov rcx, qword [0x140010b58]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000d9be
test eax, eax
je 0x14000d9fb
mov eax, 0xff
jmp 0x14000db56
mov dword [0x1400163e4], ebx
mov edi, 0x1f
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000da27
lea rdx, [0x140010b98]
lea rcx, [0x140010b60]
call sub.msvcrt.dll__initterm
mov dword [0x140016c68], 2
test esi, esi
jne 0x14000da35
mov rax, r14
xchg qword [0x140016c60], rax
cmp qword [0x140016c80], r14
je 0x14000da68
lea rcx, [0x140016c80]
call fcn.14000dfd0
test eax, eax
je 0x14000da68
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140016c80]
mov r9, qword [0x140010b58]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000da81
mov eax, 0xff
jmp 0x14000db56
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000db07
test ax, ax
je 0x14000da9c
test edx, edx
jne 0x14000db07
sub ax, bx
cmp ax, di
ja 0x14000dab2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000da9c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400019fc
mov dword [0x1400163e0], eax
cmp dword [0x140016400], r14d
jne 0x14000daf0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400163e4], r14d
jne 0x14000db05
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400163e0]
jmp 0x14000db56
cmp ax, 0x22
jne 0x14000db1b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000da8a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14000e064
add rsp, 0x28
jmp 0x14000d910
Function at 0x1401d511d
Capabilities:
Get hostname
Query environment variable

Disassembly:
jmp 0x14054ba80
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rcx, str.CURL_GETHOSTNAME
call fcn.1401d8066
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14054bacb
mov eax, dword [rsp + 0x58]
dec eax
cdqe
mov r8, rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call fcn.1401d7454
mov dword [rsp + 0x20], 0
jmp 0x14054baf0
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
mov byte [rcx + rax], 0
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_gethostname]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x58]
dec eax
cdqe
mov rcx, qword [rsp + 0x50]
mov byte [rcx + rax], 0
cmp dword [rsp + 0x20], 0
je 0x14054bb0e
mov eax, dword [rsp + 0x20]
jmp 0x14054bb34
mov edx, 0x2e
mov rcx, qword [rsp + 0x50]
call fcn.1401d57d5
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14054bb32
mov rax, qword [rsp + 0x28]
mov byte [rax], 0
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x1401d581b
Capabilities:
Send data
Send data on socket

Disassembly:
jmp 0x140476430
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x70]
lea rcx, str.send
call fcn.140476750
movzx eax, al
test eax, eax
je 0x14047646c
mov eax, 0xffffffff
jmp 0x1404764ba
mov r9d, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0x78], 0
je 0x1404764b6
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
lea rcx, str.SEND__s:_d_send__lu____ld_n
call fcn.1401debc3
nop
mov eax, dword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x1401d5d7f
Capabilities:
Write file on windows

Disassembly:
jmp 0x14025fd00
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140850c8c]
call fcn.1401de5f1
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14025fd58
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14025fe6a
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14025fe03
cmp qword [rbp + 0x28], 0
jle 0x14025fe03
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14025fda1
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1401ddc32
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x14025fe59
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14025fe59
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1401d6342
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1404b23e0
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, 0x18
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x74], 4
cmp dword [0x14081fb5c], 0
jne 0x1404b2461
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.1401dcc4c
movzx eax, al
test eax, eax
je 0x1404b2457
mov dword [0x14081fb5c], 2
jmp 0x1404b2461
mov dword [0x14081fb5c], 1
cmp dword [0x14081fb5c], 2
jne 0x1404b246c
jmp 0x1404b24cb
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1404b24a4
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x54], eax
jle 0x1404b24a4
jmp 0x1404b24cb
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_setsockopt]
nop
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401dcb34
add rsp, 0x90
pop rdi
ret

Function at 0x1401d653b
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140565ea0
cmp byte [rcx + 0x47], 0
mov r8, rcx
je 0x140565f2b
mov r9, 0xfffffffffffffffe
lea rax, [rcx + 2]
sub r9, rcx
nop dword [rax + rax]
lea edx, [r9 + rax]
lea ecx, [rdx - 0x2a]
xor byte [rax - 2], cl
lea rax, [rax + 0xe]
lea ecx, [rdx - 0x29]
xor byte [rax - 0xf], cl
lea ecx, [rdx - 0x28]
xor byte [rax - 0xe], cl
lea ecx, [rdx - 0x27]
xor byte [rax - 0xd], cl
lea ecx, [rdx - 0x26]
xor byte [rax - 0xc], cl
lea ecx, [rdx - 0x25]
xor byte [rax - 0xb], cl
lea ecx, [rdx - 0x24]
xor byte [rax - 0xa], cl
lea ecx, [rdx - 0x23]
xor byte [rax - 9], cl
lea ecx, [rdx - 0x22]
xor byte [rax - 8], cl
lea ecx, [rdx - 0x21]
xor byte [rax - 7], cl
lea ecx, [rdx - 0x20]
xor byte [rax - 6], cl
lea ecx, [rdx - 0x1f]
xor byte [rax - 5], cl
lea ecx, [rdx - 0x1e]
xor byte [rax - 4], cl
sub dl, 0x1d
xor byte [rax - 3], dl
lea rcx, [rax + r9]
cmp rcx, 0x46
jb 0x140565ec0
mov byte [r8 + 0x47], 0
mov rax, r8
ret
Function at 0x1401d68dd
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140204030
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x1408505cd]
call fcn.1401de5f1
nop
mov qword [rbp + 8], 0
jmp 0x14020406f
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x1402040c5
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x140204064
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1401d6af9
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140565e60
cmp byte [rcx + 0x136], 0
je 0x140565e88
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 0x2a]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x135
jb 0x140565e70
mov byte [rcx + 0x136], 0
mov rax, rcx
ret
Function at 0x1401d6b76
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1405328b0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
cmp dword [rsp + 0x58], 0
je 0x1405328e5
mov dword [rsp + 0x34], 1
jmp 0x1405328ed
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dcb34
mov rax, rdi
add rsp, 0x40
pop rdi
ret

Function at 0x1401d6c39
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x14021adb0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.1401de5f1
nop
mov rcx, qword [rbp + 0x170]
call fcn.1401ddbfb
movzx eax, al
test eax, eax
jne 0x14021adef
xor al, al
jmp 0x14021af44
mov rax, qword [rbp + 0x178]
mov rcx, qword [rbp + 0x170]
mov qword [rax], rcx
mov rax, qword [rbp + 0x178]
mov rax, qword [rax]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x178]
add rax, qword [rcx]
mov rcx, qword [rbp + 0x178]
mov qword [rcx + 8], rax
mov rax, qword [rbp + 0x178]
mov rax, qword [rax + 8]
add rax, 4
mov rcx, qword [rbp + 0x178]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 0x178]
mov rax, qword [rax + 8]
add rax, 0x18
mov rcx, qword [rbp + 0x178]
mov qword [rcx + 0x18], rax
mov dword [rbp + 4], 0
jmp 0x14021ae68
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0x10
jge 0x14021aebd
mov rax, qword [rbp + 0x178]
mov rax, qword [rax + 8]
movsxd rcx, dword [rbp + 4]
lea rax, [rax + rcx*8 + 0x88]
mov qword [rbp + 0x138], rax
mov rax, qword [rbp + 0x178]
add rax, 0x20
mov qword [rbp + 0x140], rax
movsxd rax, dword [rbp + 4]
mov rdx, rax
mov rcx, qword [rbp + 0x140]
call fcn.1401df2e4
mov rcx, qword [rbp + 0x138]
mov qword [rax], rcx
jmp 0x14021ae60
mov rax, qword [rbp + 0x178]
mov rax, qword [rax + 8]
mov rcx, qword [rbp + 0x178]
mov rcx, qword [rcx + 8]
movzx ecx, word [rcx + 0x14]
lea rax, [rax + rcx + 0x18]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x44], 0
jmp 0x14021aef1
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov rax, qword [rbp + 0x178]
mov rax, qword [rax + 0x10]
movzx eax, word [rax + 2]
cmp dword [rbp + 0x44], eax
jge 0x14021af42
mov rax, qword [rbp + 0x178]
add rax, 0xa0
mov qword [rbp + 0x138], rax
movsxd rax, dword [rbp + 0x44]
imul rax, rax, 0x28
add rax, qword [rbp + 0x28]
mov qword [rbp + 0x128], rax
lea rdx, [rbp + 0x128]
mov rcx, qword [rbp + 0x138]
call fcn.1401d58ca
nop
jmp 0x14021aee9
mov al, 1
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret
Function at 0x1401d6cfc
Capabilities:
Create thread

Disassembly:
jmp 0x14020ad90
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, socket
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x168]
mov rax, qword [0x140814ac0]
xor rax, rbp
mov qword [rbp + 0x100], rax
lea rcx, [0x14085073c]
call fcn.1401de5f1
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1401d7b84
mov rdx, qword [rbp + 0x138]
lea rcx, [rbp + 8]
call fcn.1401d98f3
nop
lea rax, [0x1401db031]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x130]
add rax, 8
mov qword [rbp + 0xf8], rax
lea rcx, [rbp + 8]
call fcn.1401db365
mov rcx, qword [rbp + 0xf8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rbp + 0x130]
mov qword [rcx], rax
mov rax, qword [rbp + 0x130]
cmp qword [rax], 0
je 0x14020ae6c
lea rcx, [rbp + 8]
call fcn.1401d8f2a
nop
jmp 0x14020ae85
mov rax, qword [rbp + 0x130]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1401d7021
nop
lea rcx, [rbp + 8]
call fcn.1401d8c55
nop
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dcb34
mov rcx, qword [rbp + 0x100]
xor rcx, rbp
call fcn.1401d9736
lea rsp, [rbp + 0x118]
pop rdi
pop rbp
ret
Function at 0x1401d740e
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
jmp 0x140266670
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x838
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x172
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x858]
mov rax, qword [0x140814ac0]
xor rax, rbp
mov qword [rbp + 0x7f8], rax
mov dword [rbp + 0x7e4], 0
lea rcx, reloc.WS2_32.dll_accept
call fcn.1401de5f1
nop
lea rax, [rbp + 0x704]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x728]
lea rcx, [rbp + 0x704]
call fcn.140282d70
mov rcx, rax
call fcn.1401df66d
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140266776
lea rax, [rbp + 0x744]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x768]
lea rcx, [rbp + 0x744]
call fcn.140283400
mov rcx, rax
call fcn.1401df785
mov rdx, rax
mov rcx, qword [rbp + 0x820]
call fcn.1401d931c
mov eax, dword [rbp + 0x7e4]
or eax, 1
mov dword [rbp + 0x7e4], eax
mov rax, qword [rbp + 0x820]
jmp 0x1402668b5
mov rcx, qword [rbp + 0x828]
call fcn.1401d5ce9
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x140266814
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rax, [rbp + 0x794]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0x7b8]
lea rcx, [rbp + 0x794]
call fcn.140283a00
mov rcx, rax
call fcn.1401df785
mov rdx, rax
mov rcx, qword [rbp + 0x820]
call fcn.1401d931c
mov eax, dword [rbp + 0x7e4]
or eax, 1
mov dword [rbp + 0x7e4], eax
mov rax, qword [rbp + 0x820]
jmp 0x1402668b5
lea rcx, [rbp + 0x48]
call fcn.1401de556
nop
mov dword [rbp + 0x4a4], 0
lea r9, [rbp + 0x4a4]
mov r8d, 0x400
lea rdx, [rbp + 0x90]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x14026686f
cmp dword [rbp + 0x4a4], 0
jbe 0x14026686f
mov eax, dword [rbp + 0x4a4]
mov r8d, eax
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x48]
call fcn.1401dedbc
nop
jmp 0x140266828
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x820]
call fcn.1401ddbe7
mov eax, dword [rbp + 0x7e4]
or eax, 1
mov dword [rbp + 0x7e4], eax
lea rcx, [rbp + 0x48]
call fcn.1401d6aa4
nop
mov rax, qword [rbp + 0x820]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401dcb34
mov rax, rdi
mov rcx, qword [rbp + 0x7f8]
xor rcx, rbp
call fcn.1401d9736
lea rsp, [rbp + 0x808]
pop rdi
pop rbp
ret
Function at 0x1401d7765
Capabilities:
Query environment variable

Disassembly:
jmp 0x140473f30
push rdi
sub rsp, 0x30
lea rcx, [0x1407c9128]
call fcn.1401d8066
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140473f5b
mov rcx, qword [rsp + 0x20]
call fcn.1401de51f
jmp 0x140473f5d
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x1401d7d2d
Capabilities:
Move file

Disassembly:
jmp 0x1404eb880
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xd8
lea rdi, [rsp + 0x20]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x140814ac0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0x20], 0x3e8
lea rcx, [rsp + 0x78]
call fcn.1401dd6f1
lea rcx, [rsp + 0x38]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0xf0]
call fcn.1401d57da
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0xf8]
call fcn.1401d57da
mov qword [rsp + 0x60], rax
mov r8d, 1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1404eb967
cmp qword [rsp + 0x58], 0
je 0x1404eb93b
mov rcx, qword [rsp + 0x58]
call fcn.1401d83e5
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x1404eb920
cmp qword [rsp + 0x60], 0
je 0x1404eb95c
mov rcx, qword [rsp + 0x60]
call fcn.1401d83e5
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1404eb941
jmp 0x1404eba2b
lea rax, [rsp + 0xb0]
lea rcx, [rsp + 0x38]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x88]
call fcn.1401dd6f1
lea rcx, [rsp + 0xa0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xa0]
call fcn.1401defdd
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jl 0x1404eb9d1
movsxd rax, dword [rsp + 0x20]
cmp qword [rsp + 0x68], rax
jle 0x1404eba1a
cmp qword [rsp + 0x58], 0
je 0x1404eb9ec
mov rcx, qword [rsp + 0x58]
call fcn.1401d83e5
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x1404eb9d1
cmp qword [rsp + 0x60], 0
je 0x1404eba0d
mov rcx, qword [rsp + 0x60]
call fcn.1401d83e5
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x1404eb9f2
mov eax, 1
jmp 0x1404eba2d
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x1404eb906
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1401dcb34
mov rax, rdi
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1401d9736
add rsp, 0xd8
pop rdi
pop rsi
ret
Function at 0x1401d882c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
jmp 0x14058035c
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1405803e9
movsxd rcx, dword [0x14000003c]
lea rdx, [0x140000000]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1405803e9
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1405803e9
sub r8, rdx
movzx edx, word [rcx + 0x14]
add rdx, 0x18
add rdx, rcx
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x1405803d0
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x1405803ca
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1405803d2
add rdx, 0x28
jmp 0x1405803af
xor edx, edx
test rdx, rdx
jne 0x1405803db
xor al, al
jmp 0x1405803ef
cmp dword [rdx + 0x24], 0
jge 0x1405803e5
xor al, al
jmp 0x1405803ef
mov al, 1
jmp 0x1405803ef
xor al, al
jmp 0x1405803ef
add rsp, 0x18
ret
Function at 0x1401d8c4b
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x1404764d0
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov r8, qword [rsp + 0x78]
mov edx, dword [rsp + 0x70]
lea rcx, str.recv
call fcn.140476750
movzx eax, al
test eax, eax
je 0x14047650c
mov eax, 0xffffffff
jmp 0x14047655a
mov r9d, dword [rsp + 0x68]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0x78], 0
je 0x140476556
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x60]
mov r8d, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
lea rcx, str.RECV__s:_d_recv__lu____ld_n
call fcn.1401debc3
nop
mov eax, dword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret