joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140021a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x40
mov rsi, rcx
mov rcx, qword [rcx + 8]
movabs rax, 0xffffffff00000000
movzx edi, word [rcx + 0x14]
mov r12, qword [rcx + 0x30]
mov r9d, dword [rsi + 0x70]
add rdi, rcx
and r12, rax
dec r9
mov r10d, dword [rdi + 0x20]
mov eax, dword [rdi + 0x28]
not r9
or r10, r12
and r9, r10
mov qword [rsp + 0x20], r10
mov qword [rsp + 0x28], r9
test eax, eax
jne 0x140021ac5
mov edx, dword [rdi + 0x3c]
test dl, 0x40
je 0x140021abe
mov eax, dword [rcx + 0x20]
jmp 0x140021ac5
test dl, dl
jns 0x140021ac5
mov eax, dword [rcx + 0x24]
mov r8d, dword [rdi + 0x3c]
mov r13d, 1
mov qword [rsp + 0x78], rbx
mov edx, eax
mov qword [rsp + 0x80], rbp
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x88], r14
mov r15d, r13d
mov qword [rsp + 0x30], rdx
cmp r13w, word [rcx + 6]
jae 0x140021bce
add rdi, 0x64
nop word [rax + rax]
mov ebx, dword [rsi + 0x70]
mov r14d, dword [rdi - 0x1c]
mov eax, dword [rdi - 0x14]
dec rbx
or r14, r12
not rbx
and rbx, r14
test eax, eax
jne 0x140021b45
mov ecx, dword [rdi]
test cl, 0x40
je 0x140021b3a
mov rax, qword [rsi + 8]
mov eax, dword [rax + 0x20]
jmp 0x140021b45
test cl, cl
jns 0x140021b45
mov rax, qword [rsi + 8]
mov eax, dword [rax + 0x24]
mov ebp, eax
cmp r9, rbx
je 0x140021b87
lea rax, [rdx + r10]
cmp rax, rbx
ja 0x140021b87
test rdx, rdx
je 0x140021b6f
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400219a0
test eax, eax
je 0x140021bf1
mov r8d, dword [rdi]
mov r10, r14
mov qword [rsp + 0x20], r14
mov r9, rbx
mov qword [rsp + 0x28], rbx
mov rdx, rbp
jmp 0x140021bac
mov eax, dword [rdi]
bt eax, 0x19
jae 0x140021b9b
bt r8d, 0x19
jae 0x140021b9b
or r8d, eax
jmp 0x140021ba3
or r8d, eax
btr r8d, 0x19
mov rdx, rbp
sub rdx, r10
add rdx, r14
mov rax, qword [rsi + 8]
inc r15d
add rdi, 0x28
movzx ecx, word [rax + 6]
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x30], rdx
cmp r15d, ecx
jl 0x140021b10
test rdx, rdx
je 0x140021c44
bt r8d, 0x19
jae 0x140021bf5
cmp r10, r9
jne 0x140021c44
mov r9, qword [rsi + 0x60]
mov r8d, 0x4000
mov rcx, r10
call qword [rsi + 0x38]
jmp 0x140021c44
xor eax, eax
jmp 0x140021c47
mov eax, r8d
shr eax, 0x1d
and eax, r13d
movsxd rcx, eax
mov eax, r8d
shr eax, 0x1e
and eax, r13d
cdqe
lea rcx, [rax + rcx*2]
mov eax, r8d
shr eax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x1400d8a48]
mov eax, dword [rax + rcx*4]
bt r8d, 0x1a
jae 0x140021c2f
bts eax, 9
lea r9, [rsp + 0x70]
mov r8d, eax
mov rcx, r10
push rsi
call 0x140204692
test eax, eax
je 0x140021bf1
mov eax, r13d
mov r14, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1400221f0
Capabilities:
Parse pe header

Disassembly:
push rbp
push r12
push r15
sub rsp, 0x30
xor r8d, r8d
xor r15d, r15d
mov rbp, rdx
mov r12, rcx
test rdx, rdx
je 0x140022228
cmp rdx, 0x40
jae 0x140022228
mov ecx, SafeArrayDestroy
call 0x14024423e
int3
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x140022249
mov ecx, 0xc1
call 0x1403072b1
int3
test rdx, rdx
je 0x14002225d
movsxd rax, dword [rcx + 0x3c]
add rax, 0x108
cmp rdx, rax
jb 0x140022211
mov qword [rsp + 0x60], rdi
movsxd rdi, dword [rcx + 0x3c]
add rdi, rcx
cmp dword [rdi], 0x4550
jne 0x140022284
mov eax, 0x8664
cmp word [rdi + 4], ax
jne 0x140022284
mov ecx, dword [rdi + 0x38]
test cl, 1
je 0x1400222a0
mov ecx, 0xc1
push rsi
call 0x1401df668
mov rdi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x30
pop r15
pop r12
pop rbp
ret
movzx eax, word [rdi + 0x14]
lea rdx, [rdi + 0x24]
mov qword [rsp + 0x58], rsi
add rdx, rax
movzx eax, word [rdi + 6]
mov r9, rcx
test eax, eax
je 0x1400222e2
mov r10d, eax
nop
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x1400222ce
mov eax, dword [rdx]
add rax, r9
jmp 0x1400222d2
mov eax, dword [rdx]
add eax, ecx
cmp rax, r8
cmova r8, rax
add rdx, 0x28
dec r10
jne 0x1400222c0
mov esi, dword [rdi + 0x50]
lea rax, [r9 - 1]
lea rcx, [r9 - 1]
dec rsi
not rax
add rcx, r8
add rsi, r9
and rsi, rax
lea rax, [r9 - 1]
not rax
and rcx, rax
cmp rsi, rcx
je 0x14002231d
mov ecx, 0xc1
call 0x1402fcfd3
int3
mov rcx, qword [rdi + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rsi
mov qword [rsp + 0x20], r14
call 0x140207764
int3
Function at 0x1400240a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x140113750], ecx
mov r8d, 1
lea rax, [0x140113754]
mov edx, dword [rax - 4]
lea rax, [rax + 4]
shr edx, 0x1e
xor edx, dword [rax - 8]
imul ecx, edx, 0x6c078965
add ecx, r8d
inc r8d
mov dword [rax - 4], ecx
cmp r8d, 0x270
jl 0x1400240b3
mov dword [0x14010ca88], 1
mov dword [0x14010f4f4], 1
ret

Function at 0x1400240f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x14010f4f4], 0
lea rbx, [0x140113750]
jne 0x14002414f
call fcn.140193a7e
int3
mov dword [0x14010ca88], 0x270
mov qword [0x140114110], rbx
mov r8d, 0xe3
nop word [rax + rax]
mov eax, dword [rbx + 4]
mov ecx, eax
and al, 1
xor ecx, dword [rbx]
and ecx, 0x7ffffffe
xor ecx, dword [rbx]
shr ecx, 1
neg al
sbb eax, eax
add rbx, 4
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rbx + 0x630]
mov dword [rbx - 4], ecx
dec r8d
jne 0x140024170
mov r8d, 0x18c
nop word [rax + rax]
mov eax, dword [rbx + 4]
lea rdx, [rbx + 4]
mov ecx, eax
and al, 1
xor ecx, dword [rbx]
and ecx, 0x7ffffffe
xor ecx, dword [rbx]
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rbx - 0x38c]
mov dword [rbx], ecx
lea rbx, [rdx]
dec r8d
jne 0x1400241b0
mov eax, dword [0x140113750]
mov ecx, dword [rdx]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
xor ecx, dword [rdx]
shr ecx, 1
neg al
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [rdx - 0x38c]
mov dword [rdx], ecx
add rsp, 0x20
pop rbx
ret

Function at 0x140025090
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
cmp edx, 7
ja case.0x1400250d3.3
movsxd rax, edx
lea rdx, sym.__________SC.bin__Q_0s_5s__K_x_SA.sEsbp_BL_g__h.sb0IFF_b
mov eax, dword [rdx + rax*4 + 0x25158]
add rax, rdx
jmp rax
movzx eax, cl
dec eax
cmp eax, 0xe0
ja case.0x1400250d3.3
cdqe
movzx eax, byte [rdx + rax + 0x25184]
mov ecx, dword [rdx + rax*4 + 0x25178]
add rcx, rdx
jmp rcx
mov al, 2
ret
movzx eax, cl
add eax, 0xffffffd4
cmp eax, 0x8f
ja case.0x1400250d3.3
cdqe
movzx eax, byte [rdx + rax + 0x25274]
mov ecx, dword [rdx + rax*4 + 0x25268]
add rcx, rdx
jmp rcx
mov al, 1
ret
movzx ecx, cl
sub ecx, 0x37
je case.0x1400250d3.1
sub ecx, 0x13
je case.0x1400250d3.1
sub ecx, 0xf
je case.0x1400250d3.1
sub ecx, 0x37
je case.0x1400250d3.1
cmp ecx, 0x2b
jne case.0x1400250d3.3
mov al, 2
ret
movzx eax, cl
add eax, 0xffffffc9
cmp eax, 0x84
ja case.0x1400250d3.3
cdqe
movzx eax, byte [rdx + rax + 0x2530c]
mov ecx, dword [rdx + rax*4 + 0x25304]
add rcx, rdx
jmp rcx
cmp cl, 0x37
je case.0x1400250d3.1
cmp cl, 0xbb
jne case.0x1400250d3.3
mov al, 2
ret
cmp cl, 0xbb
je case.0x1400250d3.1
xor al, al
ret
Function at 0x1400302c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
movzx eax, word [0x14010ca54]
mov r10, r8
mov r8d, 0x20
xor ebp, ebp
mov rsi, rdx
mov r11, rcx
mov word [rsp + 0x22], ax
mov word [rsp + 0x20], r8w
mov dword [rsp + 0x24], 0x90028
mov dword [rsp + 0x28], 0x3e003c
mov dword [rsp + 0x2c], 0x3d003a
mov dword [rsp + 0x30], 0x2d002b
mov dword [rsp + 0x34], 0x2f002a
mov dword [rsp + 0x38], 0x7e0021
mov dword [rsp + 0x3c], 0x7c0026
mov dword [rsp + 0x40], 0x5b005e
mov dword [rsp + 0x44], 0x3f002e
mov dword [rsp + 0x48], 0x7b
mov rbx, r10
test r10, r10
je 0x140030393
movzx edx, word [r10]
test dx, dx
je 0x140030393
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
mov eax, r8d
nop dword [rax + rax]
cmp dx, ax
je 0x1400303ff
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x140030370
movzx edx, word [rbx + 2]
add rbx, 2
test dx, dx
jne 0x140030360
or rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [r10 + rax*2], bp
jne 0x1400303a0
lea rbx, [r10 - 2]
lea rbx, [rbx + rax*2]
cmp rbx, r10
jbe 0x1400303cf
movzx eax, word [rbx]
cmp ax, r8w
je 0x1400303c6
cmp ax, 9
jne 0x1400303cf
sub rbx, 2
cmp rbx, r10
ja 0x1400303b7
mov rdi, rbx
sub rdi, r10
sar rdi, 1
inc rdi
cmp rdi, 0xfd
jbe 0x14003040a
test r9b, r9b
je 0x1400303fb
lea rdx, str.This_line_does_not_contain_a_recognized_action.
mov r8, r10
mov rcx, r11
call fcn.1400475e0
xor eax, eax
jmp 0x140030420
cmp rbx, r10
jbe 0x1400303cf
add rbx, 0xfffffffffffffffe
jmp 0x1400303b2
mov r8, rdi
mov rdx, r10
mov rcx, rsi
push rdx
call 0x1402be8ac
mov word [rsi + rdi*2], bp
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140043d60
Capabilities:
Check http status code

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x14010b028]
mov qword [0x140112e60], rcx
mov rbx, rcx
cmp byte [rax + 0x139], 0
je 0x140043dc7
movsxd rax, dword [0x14010f5c4]
mov qword [rsp + 0x30], rdi
lea rdi, sym.__________SC.bin__Q_0s_5s__K_x_SA.sEsbp_BL_g__h.sb0IFF_b
mov qword [rdi + rax*8 + 0x10fc20], rcx
push rsi
call 0x1401eb8d5
movsxd rdx, dword [0x14010f5c4]
mov dword [rdi + rdx*4 + 0x10f5e0], eax
mov rdi, qword [rsp + 0x30]
inc edx
xor eax, eax
cmp edx, 0x190
cmovge edx, eax
mov dword [0x14010f5c4], edx
xor r9d, r9d
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, rbx
call fcn.140081b50
cmp eax, 1
jne 0x140043dea
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140041660
add rsp, 0x20
pop rbx
ret
Function at 0x14005ef10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor esi, esi
mov rdi, rdx
or r10d, 0xffffffff
mov edx, esi
mov ebp, r9d
mov r14, r8
mov r15, rcx
mov dword [rsp + 0x68], r10d
mov dword [rsp + 0x6c], edx
cmp word [rdi], dx
je 0x14005f018
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], r12
lea r12, sym.__________SC.bin__Q_0s_5s__K_x_SA.sEsbp_BL_g__h.sb0IFF_b
movzx ebx, word [rdi]
test ebx, 0xffffff80
jne 0x14005ef7b
mov edx, 2
mov ecx, ebx
call fcn.1402093ee
int3
movzx eax, bx
add eax, 0xffffffd5
cmp eax, 0x33
ja case.0x14005ef9c.51
cdqe
movzx eax, byte [r12 + rax + 0x5f078]
mov ecx, dword [r12 + rax*4 + 0x5f054]
add rcx, r12
jmp rcx
movzx esi, word [rdi]
jmp case.0x14005ef9c.51
mov ecx, 1
jmp 0x14005efd2
mov ecx, 0x20
jmp 0x14005efd2
mov ecx, 4
jmp 0x14005efd2
mov ecx, 2
jmp 0x14005efd2
mov ecx, 0x80
jmp 0x14005efd2
mov ecx, 0x1000
jmp 0x14005efd2
mov ecx, 0x100
cmp esi, 0x2b
je 0x14005efee
cmp esi, 0x2d
je 0x14005efe5
cmp esi, 0x5e
jne case.0x14005ef9c.51
xor edx, ecx
jmp 0x14005effc
not ecx
and r10d, ecx
and edx, ecx
jmp 0x14005eff7
mov eax, ecx
not eax
and r10d, eax
or edx, ecx
mov dword [rsp + 0x68], r10d
mov dword [rsp + 0x6c], edx
add rdi, 2
cmp word [rdi], 0
jne 0x14005ef53
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
movzx r9d, byte [rsp + 0x80]
lea rax, [rsp + 0x68]
mov r8d, ebp
mov qword [rsp + 0x28], rax
lea rax, [0x14005f0b0]
mov rdx, r14
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.14005f0f0
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401246e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14012470d
xor al, al
jmp 0x14012486f
mov rax, qword [0x1401456c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1401456c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1401456d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1401456d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1401456e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1401456e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1401456f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1401456f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140145700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x140124861
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1401247b9
mov r11d, 2
jmp 0x1401247dd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1401247d3
mov r11d, 1
jmp 0x1401247dd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x140124885
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140124822
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14012483a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14012484a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x140124858
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1401247a0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14012486a
Function at 0x1400015c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movdqa xmm0, xmmword [section..rdata]
movaps xmmword [rsp + 0x20], xmm0
movdqa xmm0, xmmword [0x1402b3010]
mov rsi, rcx
mov edi, edx
lea rcx, [0x140033da0]
mov byte [rsp + 0x40], 0xd3
movaps xmmword [rsp + 0x30], xmm0
call fcn.14000fe00
lea rcx, [0x140033d80]
mov rbp, rax
call fcn.14000fe00
cmp byte [rbp], 0
mov rbx, rax
jne 0x140001641
movdqa xmm1, xmmword [rsp + 0x20]
mov byte [rax + 0x21], 1
xor r8d, r8d
mov rdx, rax
movdqa xmm2, xmmword [rsp + 0x30]
mov byte [rax + 0x20], 0xd3
lea rcx, [0x140022a40]
movups xmmword [rax], xmm1
movups xmmword [rax + 0x10], xmm2
mov byte [rbp], 1
call fcn.14000eb10
cmp byte [rbx + 0x21], 0
je 0x140001679
movabs r8, 0xfd4ff1bda37d1fd3
xor eax, eax
nop dword [rax + rax]
mov rcx, rax
mov rdx, r8
and ecx, 7
shl rcx, 3
shr rdx, cl
xor byte [rbx + rax], dl
add rax, 1
cmp rax, 0x21
jne 0x140001658
mov byte [rbx + 0x21], 0
mov ebp, edi
lea rcx, [rbp + 1]
call sub.msvcrt.dll_malloc
mov byte [rax + rbp], 0
mov r8, rax
xor eax, eax
test edi, edi
je 0x1400016b2
nop dword [rax]
mov rdx, rax
and edx, 0x1f
movzx edx, byte [rbx + rdx]
xor dl, byte [rsi + rax]
mov byte [r8 + rax], dl
add rax, 1
cmp rbp, rax
jne 0x140001698
mov rax, r8
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x140003f90
Capabilities:
Get file size

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x68
mov rbx, rdx
mov edx, 1
call fcn.1400035a0
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140004040
mov qword [rsp + 0x50], 0
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r13d, eax
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r13d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x40], 0
mov r13, rax
mov eax, dword [rbx]
mov rcx, r12
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call fcn.1400048bf
mov rcx, r12
mov esi, eax
call fcn.1400048dd
test esi, esi
js 0x140004058
mov rax, r13
add rsp, 0x68
pop rbx
pop rsi
pop r12
pop r13
ret
xor r13d, r13d
mov rax, r13
add rsp, 0x68
pop rbx
pop rsi
pop r12
pop r13
ret
xor r13d, r13d
mov dword [rbx], 0
mov rax, r13
add rsp, 0x68
pop rbx
pop rsi
pop r12
pop r13
ret

Function at 0x140004330
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140004364
cmp word [rcx], 0x5a4d
jne 0x140004364
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140004364
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004364
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140004270
test eax, eax
jne 0x140004380
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400042e0
test rax, rax
je 0x140004375
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140004955
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret
Function at 0x140004450
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rdi
push rbx
sub rsp, 0x4a8
xor eax, eax
mov r14, rcx
mov ecx, 0x41
mov r12d, r8d
mov r13, rdx
lea rdi, [rsp + 0x80]
lea r15, [rsp + 0x80]
mov rbx, r9
rep stosq qword [rdi], rax
lea rdi, [rsp + 0x290]
mov ecx, 0x41
rep stosq qword [rdi], rax
lea rdi, [rsp + 0x290]
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov r9, r15
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov r8d, r12d
mov rdx, r13
mov rcx, r15
call fcn.140004100
mov r12, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x1400044f8
mov rax, 0xffffffffffffffff
add rsp, 0x4a8
pop rbx
pop rdi
pop r12
pop r13
pop r14
pop r15
ret
lea rdi, [rsp + 0x60]
mov rdx, r14
mov r9d, 0x800000c
mov r8, rbx
mov rcx, rdi
call fcn.1400023c0
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xffffffffffffffff
je 0x1400044d9
lea rax, [rsp + 0x50]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rcx, r12
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
call fcn.1400048ec
test eax, eax
je 0x140004581
cmp eax, 0x40000003
jne 0x1400044d9
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x1400044d9
mov r8, rdi
mov rcx, r13
call fcn.140004330
test al, al
je 0x1400044d9
mov rcx, qword [rsp + 0x68]
xor edx, edx
call fcn.140004928
mov rax, qword [rsp + 0x60]
jmp 0x1400044e0
Function at 0x1400045c0
Capabilities:
Access peb ldr_data
Get ntdll base address
Populate syswhispers2 syscall list
Resolve function by parsing pe exports

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x10]
mov rcx, qword [r8 + 0x30]
test rcx, rcx
je 0x140004791
xor r10d, r10d
nop dword [rax]
mov rdx, rcx
movsxd rcx, dword [rcx + 0x3c]
mov eax, dword [rdx + rcx + 0x88]
test eax, eax
je 0x14000462f
lea r10, [rdx + rax]
mov ecx, dword [r10 + 0xc]
add rcx, rdx
mov r9d, dword [rcx]
or r9d, 0x20202020
cmp r9d, 0x6c64746e
jne 0x14000462f
mov eax, dword [rcx + 4]
or eax, 0x20202020
cmp eax, 0x6c642e6c
je 0x140004644
mov r8, qword [r8]
mov rcx, qword [r8 + 0x30]
test rcx, rcx
jne 0x1400045f0
test r10, r10
je 0x140004791
mov eax, dword [r10 + 0x18]
mov edi, dword [r10 + 0x24]
xor esi, esi
lea r12, [0x1402b1204]
mov ebp, dword [r10 + 0x1c]
lea ecx, [rax - 1]
mov eax, dword [r10 + 0x20]
add rdi, rdx
add rbp, rdx
lea r11, [rdi + rcx*2]
add rax, rdx
lea rbx, [rax + rcx*4]
jmp 0x14000468c
sub rbx, 4
lea rax, [r11 - 2]
cmp rdi, r11
je 0x140004710
mov r11, rax
mov eax, dword [rbx]
add rax, rdx
cmp word [rax], 0x775a
jne 0x140004678
mov ecx, esi
cmp byte [rax], 0
lea r13, [r12 + rcx*8]
je 0x140004786
cmp byte [rax + 1], 0
mov r8d, 0xa8430c8
je 0x1400046de
mov r9d, 1
mov ecx, 1
nop
mov r10d, r8d
movzx ecx, word [rax + rcx]
add r9d, 1
ror r10d, 8
add ecx, r10d
xor r8d, ecx
mov ecx, r9d
cmp byte [rax + rcx], 0
jne 0x1400046c0
movzx eax, word [r11]
mov dword [r13], r8d
add esi, 1
mov eax, dword [rbp + rax*4]
mov dword [r13 + 4], eax
cmp esi, 0x1f4
jne 0x140004678
mov dword [0x1402b1200], 0x1f4
mov ebx, 0x1f3
jmp 0x14000471d
mov dword [0x1402b1200], esi
sub esi, 1
mov ebx, esi
je 0x140004778
xor r11d, r11d
lea edi, [rbx - 1]
lea rsi, [0x1402b120c]
nop word [rax + rax]
cmp ebx, r11d
je 0x14000476f
mov edx, edi
lea rax, [0x1402b1204]
sub edx, r11d
lea r8, [rsi + rdx*8]
nop dword [rax]
mov edx, dword [rax + 4]
mov ecx, dword [rax + 0xc]
cmp edx, ecx
jbe 0x140004766
mov r9d, dword [rax]
mov r10d, dword [rax + 8]
mov dword [rax + 4], ecx
mov dword [rax + 0xc], edx
mov dword [rax], r10d
mov dword [rax + 8], r9d
add rax, 8
cmp r8, rax
jne 0x140004748
add r11d, 1
cmp ebx, r11d
ja 0x140004730
mov eax, 1
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r8d, 0xee6ad2e4
jmp 0x1400046de
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140004850
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, dword [0x1402b21c0]
call fcn.1400047f0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x14000e220
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 fcn.140021920
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140021920
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x14000e290
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1402c00f4]
mov r12, rcx
test ebx, ebx
jle 0x14000e3c0
mov rax, qword [0x1402c00f8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000e2dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000e363
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000e2c0
mov rcx, r12
call fcn.14000ef90
mov rsi, rax
test rax, rax
je 0x14000e3e2
mov rax, qword [0x1402c00f8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.14000f0c0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1402c00f8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000e3c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000e35c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000e370
add dword [0x1402c00f4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1402c00f8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000e35c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000e220
nop dword [rax]
xor ebx, ebx
jmp 0x14000e2e7
mov rax, qword [0x1402c00f8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14000e220
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000e220
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000e8a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1402c0160]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1402c0140]
test rbx, rbx
je 0x14000e8f4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000e8eb
test r12, r12
je 0x14000e8eb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000e8d0
lea rcx, [0x1402c0160]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]