joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401bb5a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rdi
mov rdi, qword [0x1402be970]
mov r10, rdx
mov r11, qword [str.Pp_]
mov r9, rcx
sub r11, rdi
sar r11, 4
test r11, r11
jle 0x1401bb661
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
nop word [rax + rax]
mov rax, r11
cqo
sub rax, rdx
sar rax, 1
mov rsi, rax
mov rbp, rax
add rsi, rsi
mov rax, r9
mov rbx, qword [rdi + rsi*8 + 8]
mov rcx, qword [rdi + rsi*8]
cmp rcx, rbx
je 0x1401bb631
cmp rax, r10
je 0x1401bb62c
movzx edx, word [rcx]
movzx r8d, word [rax]
cmp dx, r8w
jb 0x1401bb636
cmp r8w, dx
jb 0x1401bb64a
add rcx, 2
add rax, 2
cmp rcx, rbx
jne 0x1401bb605
jmp 0x1401bb631
cmp rcx, rbx
jne 0x1401bb64a
cmp rax, r10
je 0x1401bb64a
or rax, 0xffffffffffffffff
lea rdi, [rdi + rsi*8]
add rdi, 0x10
sub rax, rbp
add r11, rax
jmp 0x1401bb64d
mov r11, rbp
test r11, r11
jg 0x1401bb5e0
mov rsi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
cmp rdi, qword [str.Pp_]
je 0x1401bb6b9
mov r8, qword [rdi]
mov rax, r10
mov rcx, qword [rdi + 8]
sub rax, r9
sub rcx, r8
xor rcx, rax
test rcx, 0xfffffffffffffffe
jne 0x1401bb6b9
cmp r9, r10
je 0x1401bb6a7
sub r8, r9
nop
movzx edx, word [r9]
movzx ecx, word [r8 + r9]
add r9, 2
cmp dx, cx
jne 0x1401bb6b9
cmp r9, r10
jne 0x1401bb690
lea rax, str.alnumalphablankcntrldigitgraphlowerprintpunctspaceunicodeuppervwordxdigit
sub rdi, rax
sar rdi, 4
mov eax, edi
pop rdi
ret
or eax, 0xffffffff
pop rdi
ret

Function at 0x1401bb7b0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
xor r8d, r8d
mov r11, rdx
sub r11, rcx
mov r9, rcx
inc r11
mov r10d, r8d
shr r11, 1
cmp rcx, rdx
cmova r11, r8
test r11, r11
je 0x1401bb80e
mov qword [rsp], rbx
mov ebx, 0x9e3779b9
nop
movzx ecx, word [r9]
lea r9, [r9 + 2]
mov rdx, r8
mov rax, r8
shr rax, 2
inc r10
shl rdx, 6
add rax, rdx
add rax, rbx
add rcx, rax
xor r8, rcx
cmp r10, r11
jne 0x1401bb7e0
mov rbx, qword [rsp]
movabs rax, 0x200009c482fb3f8b
mul r8
shr rdx, 0x1c
imul eax, edx, 0x7fffd8ee
sub r8d, eax
lea eax, [r8 + 0x2710]
add rsp, 8
ret
Function at 0x1401d3360
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1402be8f8]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov edx, 0x361
mov dword [rbp - 0x59], 0x3610300
mov dword [rbp - 0x55], 0x4860483
lea rax, [rbp - 0x57]
mov dword [rbp - 0x51], 0x9030903
mov dword [rbp - 0x4d], 0x940093e
mov dword [rbp - 0x49], 0x94c0949
mov dword [rbp - 0x45], 0x9830982
mov dword [rbp - 0x41], 0x9c009be
mov dword [rbp - 0x3d], 0x9cc09c7
mov dword [rbp - 0x39], 0x9d709d7
mov dword [rbp - 0x35], 0xa400a3e
mov dword [rbp - 0x31], 0xa830a83
mov dword [rbp - 0x2d], 0xac00abe
mov dword [rbp - 0x29], 0xacc0ac9
mov dword [rbp - 0x25], 0xb030b02
mov dword [rbp - 0x21], 0xb3e0b3e
mov dword [rbp - 0x1d], 0xb400b40
mov dword [rbp - 0x19], 0xb4c0b47
mov dword [rbp - 0x15], 0xb570b57
mov dword [rbp - 0x11], 0xb830b83
mov dword [rbp - 0xd], 0xbbf0bbe
mov dword [rbp - 9], 0xbcc0bc1
mov dword [rbp - 5], 0xbd70bd7
mov dword [rbp - 1], 0xc030c01
mov dword [rbp + 3], 0xc440c41
mov dword [rbp + 7], 0xc830c82
mov dword [rbp + 0xb], 0xcbe0cbe
mov dword [rbp + 0xf], 0xcc40cc0
mov dword [rbp + 0x13], 0xccb0cc7
mov dword [rbp + 0x17], 0xcd60cd5
mov dword [rbp + 0x1b], 0xd030d02
mov dword [rbp + 0x1f], 0xd400d3e
mov dword [rbp + 0x23], 0xd4c0d46
mov dword [rbp + 0x27], 0xd570d57
mov dword [rbp + 0x2b], 0xf7f0f7f
mov dword [rbp + 0x2f], 0x20e120d0
mov dword [rbp + 0x33], 0x309a3099
mov qword [rbp + 0x37], 0xfffffffffe23fe20
cmp dx, cx
jae 0x1401d3499
nop
add rax, 4
cmp word [rax], cx
jb 0x1401d3490
sub rax, 2
cmp cx, word [rax]
jb 0x1401d34ac
cmp cx, word [rax + 2]
ja 0x1401d34ac
mov al, 1
jmp 0x1401d34ae
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1401b6fe0
add rsp, 0xb0
pop rbp
ret
Function at 0x1401e84ac
Capabilities:
Parse pe header

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, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1401e8280
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401e8280
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401e8280
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401e8280
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401e8280
cmp dword [rcx + 0x84], 0xe
jbe 0x1401e8280
cmp dword [rcx + 0xf8], esi
je 0x1401e8280
mov ecx, r14d
call fcn.1401e83c8
mov ecx, 2
call fcn.1401ec058
nop
cmp byte [0x1402cf6e0], 0
jne 0x1401e834a
mov r15d, 1
mov eax, r15d
xchg dword [0x1402cf6d4], eax
test ebx, ebx
jne 0x1401e82f3
mov rdi, qword [0x1402be8f8]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1402cf6d8]
cmp rcx, rax
je 0x1401e82ea
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140002530]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1402cf6f0]
jmp 0x1401e82ff
cmp ebx, r15d
jne 0x1401e8305
lea rcx, [0x1402cf708]
call fcn.1401e8acc
nop
test ebx, ebx
jne 0x1401e831c
lea rdx, [0x14020a9a0]
lea rcx, [0x14020a980]
call fcn.1401e8140
lea rdx, [0x14020a9b0]
lea rcx, [0x14020a9a8]
call fcn.1401e8140
movzx eax, byte [0x1402cf6e0]
test esi, esi
cmove eax, r15d
mov byte [0x1402cf6e0], al
jmp 0x1401e834a
mov ecx, 2
call fcn.1401ec0ac
test esi, esi
jne 0x1401e8361
mov ecx, r14d
call fcn.1401e837c
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1401e8210

Function at 0x1401eba20
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x1401eb9fd
call fcn.1401d7494
mov dword [rax], 0x16
call fcn.1401d7344
or eax, 0xffffffff
jmp 0x1401eba1a
sub dword [rcx + 0x10], 1
jns 0x1401eba0c
add rsp, 0x28
jmp fcn.1401ed994
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1401eb9dc
Function at 0x1401ed994
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401ed650
call fcn.1401d7494
mov dword [rax], 0x16
call fcn.1401d7344
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401ed638
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401ed638
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1401ed682
lock or dword [rax + 0x14], 0x10
jmp 0x1401ed638
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401ed69f
mov rcx, qword [rbp + 0x10]
call fcn.1401f3df4
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401dcf14
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401ed088
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1401ed6f6
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1401ed638
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401ed762
mov rcx, qword [rbp + 0x10]
call fcn.1401dcf14
cmp eax, 0xffffffff
je 0x1401ed749
mov rcx, qword [rbp + 0x10]
call fcn.1401dcf14
cmp eax, 0xfffffffe
je 0x1401ed749
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401dcf14
movsxd rdi, eax
lea rsi, [0x1402cf760]
mov rcx, rbx
sar rdi, 6
call fcn.1401dcf14
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401ed750
lea rax, [0x1402bf190]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401ed762
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1401ed798
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401ed794
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401ed794
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1401ed63b
jmp 0x1401ed608
Function at 0x1401ed99c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401ed802
call fcn.1401d7494
mov dword [rax], 0x16
call fcn.1401d7344
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401ed7e4
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401ed7e4
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x1401ed834
lock or dword [rax + 0x14], 0x10
jmp 0x1401ed7e4
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401ed851
mov rcx, qword [rbp + 0x20]
call fcn.1401f3df4
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x1401ed866
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x1401ed86c
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1401dcf14
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401ed088
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x1401ed8bf
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x1401ed7e4
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401ed92b
mov rcx, qword [rbp + 0x20]
call fcn.1401dcf14
cmp eax, 0xffffffff
je 0x1401ed912
mov rcx, qword [rbp + 0x20]
call fcn.1401dcf14
cmp eax, 0xfffffffe
je 0x1401ed912
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.1401dcf14
movsxd rdi, eax
lea r15, [0x1402cf760]
mov rcx, rbx
sar rdi, 6
call fcn.1401dcf14
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x1401ed919
lea rax, [0x1402bf190]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401ed92b
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x1401ed961
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401ed95d
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401ed95d
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x1401ed97f
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x1401ed98a
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x1401ed7e9
jmp 0x1401ed7b0
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 [0x140043490]
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 [0x1400434a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140023c70
jmp 0x14000123c
mov rax, qword [0x1400434a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400434a0]
mov dword [rax], 1
mov rax, qword [0x1400434e0]
mov rdx, rax
mov rax, qword [0x1400434d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140047024], 1
mov rax, qword [0x1400434a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400434c0]
mov rdx, rax
mov rax, qword [0x1400434b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400434a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140043490]
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 [0x1400433e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400433e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140022ef8
mov rax, qword [0x140043520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140043480]
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.1400226f0
mov eax, dword [0x140047004]
lea rdx, [0x140047008]
mov ecx, eax
call fcn.14000147c
call fcn.140022487
mov rax, qword [0x140043410]
mov rax, qword [rax]
mov rdx, qword [0x140047010]
mov qword [rax], rdx
mov rcx, qword [0x140047010]
mov rdx, qword [0x140047008]
mov eax, dword [0x140047004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004701c], eax
mov eax, dword [0x140047020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004701c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140047024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004701c]
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 [0x140043440]
mov dword [rax], 1
mov rax, qword [0x140043450]
mov dword [rax], 1
mov rax, qword [0x140043460]
mov dword [rax], 1
mov rax, qword [0x140043400]
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 0x140022700
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.140023a60
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400233d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140047168]
test eax, eax
je 0x14002346a
lea rax, [0x140047140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140047170]
mov qword [rbp - 8], rax
jmp 0x14002344e
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 0x140023442
cmp qword [rbp - 0x10], 0
je 0x140023442
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 0x140023408
lea rax, [0x140047140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002346b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140023570
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 0x140023598
mov eax, 0
jmp 0x1400235e6
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 0x1400235c1
mov eax, 0
jmp 0x1400235e6
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 0x1400235e1
mov eax, 0
jmp 0x1400235e6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400235ec
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 0x14002366a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140023661
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 0x140023661
mov rax, qword [rbp - 8]
jmp 0x14002367f
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 0x140023634
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400111ea
Capabilities:
Terminate process

Disassembly:
jmp 0x140014f80
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011267
Capabilities:
Parse pe header

Disassembly:
jmp 0x140012c90
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140012cb0
xor al, al
jmp 0x140012d31
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140012cc3
xor al, al
jmp 0x140012d31
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140012ced
xor al, al
jmp 0x140012d31
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140012d01
xor al, al
jmp 0x140012d31
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140012d13
xor al, al
jmp 0x140012d31
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140012d2f
xor al, al
jmp 0x140012d31
mov al, 1
add rsp, 0x38
ret
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 [0x14004b490]
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 [0x14004b4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.14002aed0
jmp 0x14000123c
mov rax, qword [0x14004b4a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x14004b4a0]
mov dword [rax], 1
mov rax, qword [0x14004b4e0]
mov rdx, rax
mov rax, qword [0x14004b4d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x14004f024], 1
mov rax, qword [0x14004b4a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x14004b4c0]
mov rdx, rax
mov rax, qword [0x14004b4b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x14004b4a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x14004b490]
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 [0x14004b3e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x14004b3e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14002a158
mov rax, qword [0x14004b520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x14004b480]
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.140029950
mov eax, dword [0x14004f004]
lea rdx, [0x14004f008]
mov ecx, eax
call fcn.14000147c
call fcn.1400296e7
mov rax, qword [0x14004b410]
mov rax, qword [rax]
mov rdx, qword [0x14004f010]
mov qword [rax], rdx
mov rcx, qword [0x14004f010]
mov rdx, qword [0x14004f008]
mov eax, dword [0x14004f004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004f01c], eax
mov eax, dword [0x14004f020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004f01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x14004f024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004f01c]
add rsp, 0x70
pop rbp
ret