joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000fa60
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rax, qword [0x1400fdeb0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r13d, r8d
mov rbp, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
mov rsi, r9
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edi, edi
mov r12b, 1
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x30], rdi
mov ebx, edi
movzx r15d, r12b
movzx r14d, r12b
test rax, rax
je 0x14000fcd2
mov qword [rsp + 0x68], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x50], bl
cmp byte [rsi], bl
jne 0x14000fade
mov r8d, edi
jmp 0x14000faeb
or r8, 0xffffffffffffffff
inc r8
cmp byte [rsi + r8], bl
jne 0x14000fae2
lea rcx, [rsp + 0x50]
mov rdx, rsi
call fcn.14000b7d0
cmp qword [rsp + 0x68], 0x10
mov rbx, qword [rsp + 0x60]
mov r8d, 4
lea rcx, [rsp + 0x50]
cmovae rcx, qword [rsp + 0x50]
cmp rbx, r8
cmovb r8, rbx
test r8, r8
jne 0x14000fb24
mov eax, edi
jmp 0x14000fb30
lea rdx, [0x14001330c]
call sub.MSVCR110.dll_memcmp
cdqe
test rax, rax
jne 0x14000fb42
cmp rbx, 4
jb 0x14000fba9
mov eax, edi
setne al
test eax, eax
jne 0x14000fba9
mov rsi, r13
mov r13, qword [rsp + 0x38]
nop
mov r9d, 0x3000
mov r8, rsi
xor edx, edx
mov rcx, r13
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x14000fb7b
inc edi
cmp edi, 5
jl 0x14000fb50
xor dil, dil
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0x68], 0x10
jb 0x14000fb99
mov rcx, qword [rsp + 0x50]
call sub.MSVCR110.dll_void___cdecl_operator_delete_void____ptr64_
test dil, dil
je 0x14000fcd2
xor eax, eax
jmp 0x14000fcd5
test rbp, rbp
jne 0x14000fbb3
mov ebp, 0x7fff
mov rax, r13
mov r13, qword [rsp + 0x38]
mov rsi, rbp
mov qword [rsp + 0x40], rax
nop word [rax + rax]
mov r9d, 0x3000
mov r8, rax
mov rdx, rsi
mov rcx, r13
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x14000fc1b
cmp rax, rsi
je 0x14000fc1b
sub rax, rbp
cmp rax, 0x7fffffff
jb 0x14000fb7e
mov rax, rbp
sub rax, rbx
cmp rax, 0x7fffffff
jb 0x14000fb7e
test r14b, r14b
je 0x14000fc65
test r12b, r12b
je 0x14000fcbc
mov rax, qword [rsp + 0x48]
test r15b, r15b
movzx r14d, r14b
cmovne r14d, edi
add rax, 0xffff
movabs rcx, 0x7fffffffffffffff
mov esi, eax
mov qword [rsp + 0x48], rax
add rsi, rbp
cmp rsi, rcx
jae 0x14000fc60
cmp rax, 0x7fffffff
jb 0x14000fcae
xor r12b, r12b
jmp 0x14000fcbc
test r15b, r15b
je 0x14000fcae
test r12b, r12b
mov ecx, 1
movzx r14d, r14b
cmovne r14d, ecx
mov rcx, qword [rsp + 0x30]
mov rsi, rbp
add rcx, 0xffff
mov eax, ecx
mov qword [rsp + 0x30], rcx
sub rsi, rax
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
jae 0x14000fcab
cmp rcx, 0x7fffffff
jb 0x14000fcae
xor r15b, r15b
mov rax, qword [rsp + 0x40]
test r12b, r12b
jne 0x14000fbd0
mov rax, qword [rsp + 0x40]
test r15b, r15b
jne 0x14000fbd0
mov dil, 1
jmp 0x14000fb7e
mov rax, rbx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400104e0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400106b4
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, 0x30
xor r15d, r15d
mov dword [rax - 0x18], r15d
call qword [sym.imp.MSVCR110.dll___crtGetShowWindowMode]
movzx r14d, ax
mov rcx, qword gs:[0x30]
mov rdx, qword [rcx + 8]
mov esi, r15d
xor eax, eax
lock cmpxchg qword [0x1400fe528], rdx
je 0x14001070b
cmp rax, rdx
jne 0x140010709
mov ebx, 1
mov esi, ebx
jmp 0x140010710
jmp 0x1400106ee
mov ebx, 1
mov eax, dword [0x1400fe530]
cmp eax, ebx
jne 0x140010728
mov edi, 0x1f
mov ecx, edi
call sub.MSVCR110.dll__amsg_exit
jmp 0x140010764
mov eax, dword [0x1400fe530]
test eax, eax
jne 0x140010759
mov dword [0x1400fe530], ebx
lea rdx, [0x1400123d8]
lea rcx, [0x1400123b8]
call sub.MSVCR110.dll__initterm_e
test eax, eax
je 0x14001075f
mov eax, 0xff
jmp 0x14001088f
mov dword [0x1400fdf74], ebx
mov edi, 0x1f
mov eax, dword [0x1400fe530]
cmp eax, ebx
jne 0x14001078b
lea rdx, [0x1400123b0]
lea rcx, [0x140012358]
call sub.MSVCR110.dll__initterm
mov dword [0x1400fe530], 2
test esi, esi
jne 0x140010799
mov rax, r15
xchg qword [0x1400fe528], rax
cmp qword [0x1400fe538], r15
je 0x1400107c4
lea rcx, [0x1400fe538]
call fcn.140010bb0
test eax, eax
je 0x1400107c4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400fe538]
call rax
mov rax, qword [sym.imp.MSVCR110.dll__wcmdln]
mov rcx, qword [rax]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x140010840
cmp word [rcx], r15w
je 0x1400107e7
test edx, edx
jne 0x140010840
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x1400107fd
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400107e7
movzx r9d, r14w
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.14000fd00
mov dword [0x1400fdf70], eax
cmp dword [0x1400fdf90], r15d
jne 0x140010829
mov ecx, eax
call qword [sym.imp.MSVCR110.dll_exit]
cmp dword [0x1400fdf74], r15d
jne 0x14001083e
call qword [sym.imp.MSVCR110.dll__cexit]
mov eax, dword [0x1400fdf70]
jmp 0x14001088f
cmp word [rcx], 0x22
jne 0x140010854
mov eax, r15d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400107d7
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140010c30
add rsp, 0x28
jmp 0x1400106b4
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 [0x140035490]
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 [0x1400354a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140015930
jmp 0x14000123c
mov rax, qword [0x1400354a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400354a0]
mov dword [rax], 1
mov rax, qword [0x1400354e0]
mov rdx, rax
mov rax, qword [0x1400354d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140039024], 1
mov rax, qword [0x1400354a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400354c0]
mov rdx, rax
mov rax, qword [0x1400354b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400354a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140035490]
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 [0x1400353e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400353e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140014bb8
mov rax, qword [0x140035520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140035480]
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.1400143b0
mov eax, dword [0x140039004]
lea rdx, [0x140039008]
mov ecx, eax
call fcn.14000147c
call fcn.140014147
mov rax, qword [0x140035410]
mov rax, qword [rax]
mov rdx, qword [0x140039010]
mov qword [rax], rdx
mov rcx, qword [0x140039010]
mov rdx, qword [0x140039008]
mov eax, dword [0x140039004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14003901c], eax
mov eax, dword [0x140039020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14003901c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140039024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14003901c]
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 [0x140035440]
mov dword [rax], 1
mov rax, qword [0x140035450]
mov dword [rax], 1
mov rax, qword [0x140035460]
mov dword [rax], 1
mov rax, qword [0x140035400]
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 0x1400143c0
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.140015720
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x140015092
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140039168]
test eax, eax
je 0x14001512a
lea rax, [0x140039140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140039170]
mov qword [rbp - 8], rax
jmp 0x14001510e
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 0x140015102
cmp qword [rbp - 0x10], 0
je 0x140015102
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 0x1400150c8
lea rax, [0x140039140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001512b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140015230
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 0x140015258
mov eax, 0
jmp 0x1400152a6
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 0x140015281
mov eax, 0
jmp 0x1400152a6
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 0x1400152a1
mov eax, 0
jmp 0x1400152a6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400152ac
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 0x14001532a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015321
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 0x140015321
mov rax, qword [rbp - 8]
jmp 0x14001533f
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 0x1400152f4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400018e4
Capabilities:
Parse pe header

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

Disassembly:
call 0x140ea91df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140ea9089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ea906f
add dl, dl
jne 0x140ea9096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ea90f6
xor eax, eax
add dl, dl
jne 0x140ea90a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ea91ad
add dl, dl
jne 0x140ea90b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ea90c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ea90d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ea90dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ea90ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ea907e
mov eax, 1
add dl, dl
jne 0x140ea9106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ea9113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ea90fb
sub eax, ebx
mov ebx, 1
jne 0x140ea914c
mov ecx, 1
add dl, dl
jne 0x140ea912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ea913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ea9123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ea907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ea9168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ea9175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ea915d
cmp eax, 0x7d00
jae 0x140ea919b
cmp eax, 0x500
jb 0x140ea9196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ea907e
cmp eax, 0x7f
ja 0x140ea919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ea907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ea91d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140ea907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
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 [0x14003f490]
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 [0x14003f4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14001f620
jmp 0x14000123c
mov rax, qword [0x14003f4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14003f4a0]
mov dword [rax], 1
mov rax, qword [0x14003f4e0]
mov rdx, rax
mov rax, qword [0x14003f4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140043024], 1
mov rax, qword [0x14003f4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14003f4c0]
mov rdx, rax
mov rax, qword [0x14003f4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x14003f4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14003f490]
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 [0x14003f3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14003f3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14001e8a8
mov rax, qword [0x14003f520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14003f480]
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.14001e0a0
mov eax, dword [0x140043004]
lea rdx, [0x140043008]
mov ecx, eax
call fcn.14000147c
call fcn.14001de37
mov rax, qword [0x14003f410]
mov rax, qword [rax]
mov rdx, qword [0x140043010]
mov qword [rax], rdx
mov rcx, qword [0x140043010]
mov rdx, qword [0x140043008]
mov eax, dword [0x140043004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004301c], eax
mov eax, dword [0x140043020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004301c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140043024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004301c]
add rsp, 0x70
pop rbp
ret
Function at 0x14001e0b0
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.14001f410
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14001ed82
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140043168]
test eax, eax
je 0x14001ee1a
lea rax, [0x140043140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140043170]
mov qword [rbp - 8], rax
jmp 0x14001edfe
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 0x14001edf2
cmp qword [rbp - 0x10], 0
je 0x14001edf2
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 0x14001edb8
lea rax, [0x140043140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001ee1b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14001ef20
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 0x14001ef48
mov eax, 0
jmp 0x14001ef96
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 0x14001ef71
mov eax, 0
jmp 0x14001ef96
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 0x14001ef91
mov eax, 0
jmp 0x14001ef96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001ef9c
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 0x14001f01a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001f011
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 0x14001f011
mov rax, qword [rbp - 8]
jmp 0x14001f02f
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 0x14001efe4
mov eax, 0
add rsp, 0x20
pop rbp
ret