joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433680
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x433906
push rbp
mov rbp, rsp
sub rsp, 0x38
test byte [rax], al
lea rsi, [rax + 0x1298]
mov rcx, qword [rax + 0x1288]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x4338fa
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1288], 0
cmp byte [0x00ae3271], 0
jne 0x4336da
xor edx, edx
xor ebx, ebx
jmp 0x433720
xor edx, edx
jmp 0x433705
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1298]
mov rax, rcx
call fcn.00421ac0
mov rdx, qword [rsp + 0x28]
inc rdx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x4336de
add rax, 0x1288
call fcn.00433600
add rsp, 0x38
pop rbp
ret
inc rdx
nop
cmp rdx, rcx
jge 0x433894
mov rsi, qword [rax + rdx*8 + 0x1298]
cmp rsi, 0x1000
jb 0x43371b
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
call fcn.004153a0
test rax, rax
jne 0x43376c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x43371b
mov rsi, qword [rbx + 0x48]
test byte [rsi], al
mov r8, rcx
shr r8, 3
movzx r9d, byte [rsi + r8]
and ecx, 7
mov r10d, 1
shl r10d, cl
nop
add rsi, r8
test r10b, r9b
je 0x4337ac
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x43371b
nop
lock or byte [rsi], r10b
mov rcx, qword [rbx + 0x18]
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
nop
nop
nop
cmp r8, 0x40
jae 0x4338ed
lea r10, [0x00a75378]
mov r8, qword [r10 + r8*8]
test byte [r8], al
mov r10, rcx
shr r10, 0x10
and r10d, 0x3f
shr rcx, 0xd
and ecx, 7
mov r11d, 1
shl r11d, cl
shr r9, 0x16
and r9d, 0xfffff
mov r8, qword [r8 + r9*8]
test byte [r8], al
movzx r9d, byte [r8 + r10 + 0x1040]
lea r8, [r8 + r10]
lea r8, [r8 + 0x1040]
test r11b, r9b
jne 0x43382f
lock or byte [r8], r11b
movzx r8d, byte [rbx + 0x62]
test r8b, 1
je 0x433865
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x1270]
add r8, qword [rbx + 0x68]
mov qword [rax + 0x1270], r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x43371b
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x4338e5
mov rbx, qword [rsp + 0x48]
mov qword [rbx + r8*8 + 0x1298], rax
inc r8
mov rax, rbx
mov rdx, qword [rsp + 0x28]
mov rbx, r8
jmp 0x43371b
cmp rbx, 0x200
ja 0x4338d4
lea rdx, [rax + 0x1298]
lea rsi, [rax + 0x1260]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.004285a0
mov rax, qword [rsp + 0x48]
add rax, 0x1288
call fcn.00433600
add rsp, 0x38
pop rbp
ret
mov rcx, rbx
mov edx, 0x200
nop dword [rax]
call fcn.0046cb80
mov rax, r8
call fcn.0046cb00
mov rax, r8
mov ecx, 0x40
call fcn.0046cb20
mov edx, 0x200
nop
call fcn.0046cb60
nop
mov qword [rsp + 8], rax
call fcn.00471400
mov rax, qword [rsp + 8]
jmp fcn.00433680
Function at 0x449740
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4498a7
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x449752
cmp edx, ecx
jne 0x449895
nop word [rax + rax]
test rsi, rsi
jne 0x449895
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x4497b4
nop
call fcn.0046e440
xorps xmm15, xmm15
mov r14, qword [0x00ae3510]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.00449660
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x449890
mov rdx, qword [0x00a5c278]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x449885
mov rcx, qword [0x00a5c270]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x00a5f870]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x00a5f870], rax
nop
mov edx, 1
lea rsi, [0x00a5f878]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1248]
shr rdx, 0x3d
test dl, dl
jne 0x449873
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1248], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x007a2d16]
mov ebx, 0x28
nop
call fcn.004396a0
mov rax, rsi
mov rcx, rdx
call fcn.0046cb00
call fcn.00437f20
lea rax, [0x007a032d]
mov ebx, 0x23
call fcn.004396a0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046a820
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00449740
Function at 0x457080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x4571f7
movzx edx, byte [rax]
test edx, edx
jne 0x4570b4
nop dword [rax]
test r8b, r8b
jne 0x4570b4
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x4570c7
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x4571b7
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x4571a5
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x457197
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x45711d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x457160
mov eax, 1
cmp rax, rbx
ja 0x45714b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.0046cbc0
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x45718f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x457153
mov rcx, r11
mov eax, r12d
jmp 0x457122
mov rcx, rbx
call fcn.0046cb00
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046cb00
mov eax, r8d
mov rcx, rbx
call fcn.0046cbc0
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x4571ed
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x4571b0
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x4570cd
mov eax, edx
mov rcx, rbx
call fcn.0046cb00
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0046cb00
nop
int3

Function at 0x45d200
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x45d2b5
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.0045ae80
nop
test bl, bl
je 0x45d2af
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [0x0045d300]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.0046a700
xorps xmm15, xmm15
mov r14, qword [0x00ae3510]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046a820
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.0045d200
Function at 0x460200
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4602af
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00460300]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0046a700
xorps xmm15, xmm15
mov r14, qword [0x00ae3510]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0046a820
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00460200
Function at 0x1401090c0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1401090cd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1401090dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1401090c5
lea eax, [rcx + 1]
jmp 0x1401090eb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1401090fe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1401090e4
sub eax, 3
jb 0x14010911e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14010916d
sar eax, 1
movsxd rbp, eax
jb 0x140109154
jmp 0x14010912c
add ebx, ebx
jne 0x14010912a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140109154
inc ecx
add ebx, ebx
jne 0x14010913a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140109154
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14010914d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14010913c
add ecx, 2
jmp 0x140109159
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140109082
jmp 0x1401090cd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x27800
mov dl, 0x12
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1401091bd
cmp rsi, rcx
jae 0x1401091c5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1401091a4
cmp al, 0x8f
ja 0x1401091a4
cmp byte [rsi - 2], 0xf
je 0x1401091aa
sub al, 0xe8
cmp al, 1
ja 0x14010918e
cmp rsi, rcx
jae 0x1401091c5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140109194
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1401091c5
lodsb al, byte [rsi]
jmp 0x1401091a4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xf4000]
mov eax, dword [rdi]
or eax, eax
je 0x140109222
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x109b28]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1401091d2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14010921c
mov qword [rbx], rax
add rbx, 8
jmp 0x1401091f2
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14010925c
cmp al, 0xef
ja 0x14010924e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14010922e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14010923d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x20f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1401092b0
sub rsp, 0xffffffffffffff80
jmp 0x140013b30
Function at 0x1805ce058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1805ce1df
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 0x1805ce089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805ce06f
add dl, dl
jne 0x1805ce096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805ce0f6
xor eax, eax
add dl, dl
jne 0x1805ce0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805ce1ad
add dl, dl
jne 0x1805ce0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ce0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ce0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ce0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1805ce0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1805ce07e
mov eax, 1
add dl, dl
jne 0x1805ce106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ce113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805ce0fb
sub eax, ebx
mov ebx, 1
jne 0x1805ce14c
mov ecx, 1
add dl, dl
jne 0x1805ce12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805ce13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805ce123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805ce07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1805ce168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805ce175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805ce15d
cmp eax, 0x7d00
jae 0x1805ce19b
cmp eax, 0x500
jb 0x1805ce196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805ce07e
cmp eax, 0x7f
ja 0x1805ce19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805ce07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1805ce1d2
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 0x1805ce07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400080a0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14001d9d0], rbx
je 0x1400080ec
cmp rax, rbx
jne 0x1400080df
mov ebx, 1
mov esi, ebx
jmp 0x1400080f1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400080c4
mov ebx, 1
mov eax, dword [0x14001d9d8]
cmp eax, ebx
jne 0x140008107
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x14000816c
mov eax, dword [0x14001d9d8]
test eax, eax
jne 0x140008166
mov dword [0x14001d9d8], ebx
lea r15, [0x1400106b0]
lea rdi, [0x140010698]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140008158
test eax, eax
jne 0x14000815c
cmp qword [rdi], 0
je 0x14000814d
mov rax, qword [rdi]
mov rcx, qword [0x140010670]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000812e
test eax, eax
je 0x14000816c
mov eax, 0xff
jmp 0x140008248
mov dword [0x14001d404], ebx
mov eax, dword [0x14001d9d8]
cmp eax, ebx
jne 0x140008193
lea rdx, [0x140010690]
lea rcx, [0x140010678]
call sub.msvcrt.dll__initterm
mov dword [0x14001d9d8], 2
test esi, esi
jne 0x1400081a0
xor eax, eax
xchg qword [0x14001d9d0], rax
cmp qword [0x14001d9e0], 0
je 0x1400081d4
lea rcx, [0x14001d9e0]
call fcn.140008ac0
test eax, eax
je 0x1400081d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14001d9e0]
mov r9, qword [0x140010670]
call r9
mov r8, qword [0x14001d418]
mov rdx, qword [0x14001d410]
mov ecx, dword [0x14001d408]
call fcn.140004a48
mov dword [0x14001d400], eax
cmp dword [0x14001d420], 0
jne 0x140008204
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001d404], 0
jne 0x140008219
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001d400]
jmp 0x140008248
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.14014e000
add rsp, 0x28
jmp 0x1400080a0

Function at 0x140008590
Capabilities:
Print debug messages

Disassembly:
jmp 0x14000859c
push rbx
sub rsp, 0x540
mov rax, qword [0x14001d0a0]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x140008619
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
jmp 0x140008639
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.1400082a0
add rsp, 0x540
pop rbx
ret
Function at 0x402000
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x20
call fcn.00401000
add rsp, 0x20
sub rsp, 0x20
mov rcx, str.kernel32.dll
mov rdx, 0x404114
call fcn.00402430
add rsp, 0x20
test rax, rax
jne 0x40204d
sub rsp, 0x20
mov rcx, str.psapi.dll
mov rdx, 0x404114
call fcn.00402430
add rsp, 0x20
test rax, rax
je 0x4020b7
sub rsp, 0x20
call fcn.00402231
add rsp, 0x20
test rax, rax
je 0x4020b7
sub rsp, 0x20
mov rcx, 0x404138
mov rdx, qword [0x00404008]
call fcn.004024c4
add rsp, 0x20
test rax, rax
jne 0x402095
sub rsp, 0x20
mov rcx, str.Failed__n
call fcn.00401098
add rsp, 0x20
jmp 0x4020b7
xor eax, eax
mov eax, dword [0x00404134]
add eax, 4
sub rsp, 0x20
mov rcx, 0x404134
mov rdx, rax
call fcn.004020d9
add rsp, 0x20
sub rsp, 0x20
call fcn.00401012
add rsp, 0x20
sub rsp, 0x20
mov rcx, 0
call qword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x402231
Capabilities:
Accept command line arguments
Get file size
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
push rbx
push rsi
mov qword [rbp - 0x20], 0
xor rdi, rdi
sub rsp, 0x20
mov rcx, str.Cmdl:
call fcn.00401098
add rsp, 0x20
sub rsp, 0x20
call qword [sym.imp.kernel32.dll_GetCommandLineA]
add rsp, 0x20
sub rsp, 0x20
mov rcx, rax
mov rdx, 0
call fcn.00401024
add rsp, 0x20
mov rsi, rax
mov rax, 0x20
sub rsp, 0x20
mov rcx, rsi
mov rdx, rax
call fcn.00401299
add rsp, 0x20
test rax, rax
je 0x4023c2
lea rsi, [rax + 1]
sub rsp, 0x20
mov rcx, 0x404010
mov rdx, rsi
call fcn.004011d4
add rsp, 0x20
sub rsp, 0x40
mov rcx, rsi
movabs rdx, 0x80000000
mov r8, 1
mov r9, 0
mov qword [rsp + 0x20], 3
mov qword [rsp + 0x28], pe_nt_image_headers64
mov qword [rsp + 0x30], 0
call qword [sym.imp.kernel32.dll_CreateFileA]
add rsp, 0x40
mov rbx, rax
inc rax
je 0x4023b0
sub rsp, 0x20
mov rcx, rbx
mov rdx, 0
call qword [sym.imp.kernel32.dll_GetFileSize]
add rsp, 0x20
test eax, eax
je 0x402398
lea edi, [eax + 4]
sub rsp, 0x20
mov rcx, 0x40
mov rdx, rdi
call qword [sym.imp.kernel32.dll_LocalAlloc]
add rsp, 0x20
mov qword [rbp - 0x18], rax
test rax, rax
je 0x402398
sub rsp, 0x30
mov rcx, rbx
mov rdx, qword [rbp - 0x18]
mov r8, rdi
lea r9, [rbp - 0x10]
mov qword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_ReadFile]
add rsp, 0x30
test rax, rax
je 0x402398
mov eax, dword [rbp - 0x10]
mov qword [section..bss], rax
mov rax, qword [rbp - 0x18]
mov qword [0x00404008], rax
mov qword [rbp - 0x20], 1
sub rsp, 0x20
mov rcx, rbx
call qword [sym.imp.kernel32.dll_CloseHandle]
add rsp, 0x20
cmp qword [rbp - 0x20], 1
je 0x4023c2
sub rsp, 0x20
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.kernel32.dll_LocalFree]
add rsp, 0x20
mov rax, qword [rbp - 0x20]
pop rsi
pop rbx
leave
ret
Function at 0x180005c90
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 0x180005cff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180005cff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180005cff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180005cff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180005cff
cmp dword [rcx + 0x84], 0xe
jbe 0x180005cff
cmp dword [rcx + 0xf8], 0
je 0x180005cff
mov ecx, ebx
call fcn.180005db0
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.180005b8c
nop
cmp dword [rbp + 0x20], 0
je 0x180005d4d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180005d58
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180005c90
Function at 0x18000d588
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000d5b8
xor eax, eax
jmp 0x18000d67b
mov rbp, rbx
cmp word [rax], si
je 0x18000d5dd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000d5c4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000d5c0
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000d4a8
movsxd r14, eax
test eax, eax
jne 0x18000d61b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000d5b1
mov rcx, r14
call fcn.18000e484
mov rdi, rax
test rax, rax
jne 0x18000d634
xor ecx, ecx
call fcn.18000bdbc
jmp 0x18000d610
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000d4a8
test eax, eax
jne 0x18000d665
mov rcx, rdi
call fcn.18000bdbc
jmp 0x18000d66f
xor ecx, ecx
call fcn.18000bdbc
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret