joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400185e0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
cmp byte [rcx + 0x1a], 0
mov r8, rcx
je 0x140018746
xor eax, eax
cmp dword [0x140044090], 5
jl 0x140018705
movdqa xmm5, xmmword [0x14003d9f0]
mov eax, recv
movdqa xmm4, xmmword [0x14003d9c0]
movdqa xmm3, xmmword [0x14003d940]
movdqa xmm2, xmmword [0x14003d960]
movdqa xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm5, xmm0
movd xmm0, dword [rcx]
pshufb xmm1, xmm4
movaps xmmword [rsp], xmm6
movdqa xmm6, xmmword [0x14003d9d0]
andps xmm1, xmm6
psllq xmm3, 3
xorps xmm1, xmm0
movdqa xmm0, xmm2
movd dword [rcx], xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm5, xmm0
movd xmm0, dword [rcx + 4]
pshufb xmm1, xmm4
psllq xmm2, 3
andps xmm1, xmm6
xorps xmm1, xmm0
movdqa xmm0, xmmword [reloc.WS2_32.dll_connect]
movd dword [rcx + 4], xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm5, xmm0
movd xmm0, dword [rcx + 8]
pshufb xmm1, xmm4
andps xmm1, xmm6
xorps xmm1, xmm0
movdqa xmm0, xmmword [0x14003d990]
movd dword [rcx + 8], xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm5, xmm0
movd xmm0, dword [rcx + 0xc]
pshufb xmm1, xmm4
andps xmm1, xmm6
xorps xmm1, xmm0
movd dword [rcx + 0xc], xmm1
movd xmm0, dword [rcx + 0x10]
vpsrlvq xmm1, xmm5, xmm3
pshufb xmm1, xmm4
andps xmm1, xmm6
xorps xmm1, xmm0
movd dword [rcx + 0x10], xmm1
movd xmm0, dword [rcx + 0x14]
vpsrlvq xmm1, xmm5, xmm2
pshufb xmm1, xmm4
andps xmm1, xmm6
movaps xmm6, xmmword [rsp]
xorps xmm1, xmm0
movd dword [rcx + 0x14], xmm1
movabs r9, 0x18bbb0f7187a9df
mov r10d, 0xff
nop word [rax + rax]
movzx ecx, al
mov rdx, r9
and cl, 7
shl cl, 3
shr rdx, cl
and dx, r10w
xor word [r8 + rax*2], dx
inc rax
cmp rax, 0xd
jb 0x140018720
mov byte [r8 + 0x1a], 0
add rsp, 0x18
ret
Function at 0x140018750
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
cmp byte [rcx + 0x1a], 0
mov r8, rcx
je 0x1400188b6
xor eax, eax
cmp dword [0x140044090], 5
jl 0x140018875
movdqa xmm5, xmmword [0x14003dbc0]
mov eax, recv
movdqa xmm4, xmmword [0x14003d9c0]
movdqa xmm3, xmmword [0x14003d940]
movdqa xmm2, xmmword [0x14003d960]
movdqa xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm5, xmm0
movd xmm0, dword [rcx]
pshufb xmm1, xmm4
movaps xmmword [rsp], xmm6
movdqa xmm6, xmmword [0x14003d9d0]
andps xmm1, xmm6
psllq xmm3, 3
xorps xmm1, xmm0
movdqa xmm0, xmm2
movd dword [rcx], xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm5, xmm0
movd xmm0, dword [rcx + 4]
pshufb xmm1, xmm4
psllq xmm2, 3
andps xmm1, xmm6
xorps xmm1, xmm0
movdqa xmm0, xmmword [reloc.WS2_32.dll_connect]
movd dword [rcx + 4], xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm5, xmm0
movd xmm0, dword [rcx + 8]
pshufb xmm1, xmm4
andps xmm1, xmm6
xorps xmm1, xmm0
movdqa xmm0, xmmword [0x14003d990]
movd dword [rcx + 8], xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm5, xmm0
movd xmm0, dword [rcx + 0xc]
pshufb xmm1, xmm4
andps xmm1, xmm6
xorps xmm1, xmm0
movd dword [rcx + 0xc], xmm1
movd xmm0, dword [rcx + 0x10]
vpsrlvq xmm1, xmm5, xmm3
pshufb xmm1, xmm4
andps xmm1, xmm6
xorps xmm1, xmm0
movd dword [rcx + 0x10], xmm1
movd xmm0, dword [rcx + 0x14]
vpsrlvq xmm1, xmm5, xmm2
pshufb xmm1, xmm4
andps xmm1, xmm6
movaps xmm6, xmmword [rsp]
xorps xmm1, xmm0
movd dword [rcx + 0x14], xmm1
movabs r9, 0x57935dcfa56b3d03
mov r10d, 0xff
nop word [rax + rax]
movzx ecx, al
mov rdx, r9
and cl, 7
shl cl, 3
shr rdx, cl
and dx, r10w
xor word [r8 + rax*2], dx
inc rax
cmp rax, 0xd
jb 0x140018890
mov byte [r8 + 0x1a], 0
add rsp, 0x18
ret
Function at 0x1400188c0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
cmp byte [rcx + 0xd6], 0
mov r8, rcx
je 0x140018a59
xor eax, eax
cmp dword [0x140044090], 5
jl 0x140018a18
movdqa xmm0, xmmword [0x14003d9d0]
lea rdx, [rcx + 8]
movdqa xmm2, xmmword [0x14003d940]
movdqa xmm3, xmmword [0x14003d9a0]
movdqa xmm4, xmmword [0x14003de60]
movdqa xmm5, xmmword [0x14003d9c0]
movdqa xmmword [rsp], xmm0
mov r9d, dword [rsp]
nop dword [rax + rax]
lea rcx, [rax + 2]
movq xmm0, rax
punpcklqdq xmm0, xmm0
lea rdx, [rdx + 0x10]
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
pshufb xmm1, xmm5
movd xmm0, r9d
andps xmm1, xmm0
movd xmm0, dword [rdx - 0x18]
xorps xmm1, xmm0
movq xmm0, rcx
punpcklqdq xmm0, xmm0
lea rcx, [rax + 4]
movd dword [rdx - 0x18], xmm1
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
pshufb xmm1, xmm5
movd xmm0, r9d
andps xmm1, xmm0
movd xmm0, dword [rdx - 0x14]
xorps xmm1, xmm0
movq xmm0, rcx
movd dword [rdx - 0x14], xmm1
lea rcx, [rax + 6]
punpcklqdq xmm0, xmm0
add rax, 8
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
pshufb xmm1, xmm5
movd xmm0, r9d
andps xmm1, xmm0
movd xmm0, dword [rdx - 0x10]
xorps xmm1, xmm0
movq xmm0, rcx
movd dword [rdx - 0x10], xmm1
lea rcx, [rax + 4]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, r9d
pshufb xmm1, xmm5
andps xmm1, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm1, xmm0
movd dword [rdx - 0xc], xmm1
cmp rcx, 0x6c
jb 0x140018920
cmp rax, 0x6b
jae 0x140018a51
movabs r9, 0xfbd30f43b12339e1
mov r10d, 0xff
nop dword [rax + rax]
movzx ecx, al
mov rdx, r9
and cl, 7
shl cl, 3
shr rdx, cl
and dx, r10w
xor word [r8 + rax*2], dx
inc rax
cmp rax, 0x6b
jb 0x140018a30
mov byte [r8 + 0xd6], 0
add rsp, 0x18
ret
Function at 0x140018a60
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
cmp byte [rcx + 0x22], 0
mov r8, rcx
je 0x140018bf6
xor eax, eax
cmp dword [0x140044090], 5
jl 0x140018bb8
movdqa xmm0, xmmword [0x14003d9d0]
lea rdx, [rcx + 8]
movdqa xmm2, xmmword [0x14003d940]
movdqa xmm3, xmmword [0x14003d9a0]
movdqa xmm4, xmmword [0x14003ddf0]
movdqa xmm5, xmmword [0x14003d9c0]
movdqa xmmword [rsp], xmm0
mov r9d, dword [rsp]
nop word [rax + rax]
lea rcx, [rax + 2]
movq xmm0, rax
punpcklqdq xmm0, xmm0
lea rdx, [rdx + 0x10]
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
pshufb xmm1, xmm5
movd xmm0, r9d
andps xmm1, xmm0
movd xmm0, dword [rdx - 0x18]
xorps xmm1, xmm0
movq xmm0, rcx
punpcklqdq xmm0, xmm0
lea rcx, [rax + 4]
movd dword [rdx - 0x18], xmm1
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
pshufb xmm1, xmm5
movd xmm0, r9d
andps xmm1, xmm0
movd xmm0, dword [rdx - 0x14]
xorps xmm1, xmm0
movq xmm0, rcx
movd dword [rdx - 0x14], xmm1
lea rcx, [rax + 6]
punpcklqdq xmm0, xmm0
add rax, 8
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
pshufb xmm1, xmm5
movd xmm0, r9d
andps xmm1, xmm0
movd xmm0, dword [rdx - 0x10]
xorps xmm1, xmm0
movq xmm0, rcx
movd dword [rdx - 0x10], xmm1
lea rcx, [rax + 4]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, r9d
pshufb xmm1, xmm5
andps xmm1, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm1, xmm0
movd dword [rdx - 0xc], xmm1
cmp rcx, 0x14
jb 0x140018ac0
cmp rax, 0x11
jae 0x140018bf1
movabs r9, 0xdf03b5cb4d61d7db
mov r10d, 0xff
nop dword [rax + rax]
movzx ecx, al
mov rdx, r9
and cl, 7
shl cl, 3
shr rdx, cl
and dx, r10w
xor word [r8 + rax*2], dx
inc rax
cmp rax, 0x11
jb 0x140018bd0
mov byte [r8 + 0x22], 0
add rsp, 0x18
ret
Function at 0x140018c00
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x18
cmp byte [rcx + 0x30], 0
mov r8, rcx
je 0x140018d96
xor eax, eax
cmp dword [0x140044090], 5
jl 0x140018d5c
movdqa xmm0, xmmword [0x14003d9d0]
mov edx, 4
movdqa xmm2, xmmword [0x14003d940]
add rcx, 8
movdqa xmm3, xmmword [0x14003d9a0]
movdqa xmm4, xmmword [0x14003db60]
movdqa xmm5, xmmword [0x14003d9c0]
movdqa xmmword [rsp], xmm0
mov r9d, dword [rsp]
nop word [rax + rax]
lea rax, [rdx - 4]
movq xmm0, rax
lea rcx, [rcx + 0x10]
punpcklqdq xmm0, xmm0
lea rax, [rdx - 2]
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
pshufb xmm1, xmm5
movd xmm0, r9d
andps xmm1, xmm0
movd xmm0, dword [rcx - 0x18]
xorps xmm1, xmm0
movq xmm0, rax
punpcklqdq xmm0, xmm0
lea rax, [rdx + 2]
movd dword [rcx - 0x18], xmm1
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
pshufb xmm1, xmm5
movd xmm0, r9d
andps xmm1, xmm0
movd xmm0, dword [rcx - 0x14]
xorps xmm1, xmm0
movq xmm0, rdx
movd dword [rcx - 0x14], xmm1
add rdx, 8
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
pshufb xmm1, xmm5
movd xmm0, r9d
andps xmm1, xmm0
movd xmm0, dword [rcx - 0x10]
xorps xmm1, xmm0
movq xmm0, rax
movd dword [rcx - 0x10], xmm1
lea rax, [rdx - 4]
punpcklqdq xmm0, xmm0
paddq xmm0, xmm2
andps xmm0, xmm3
psllq xmm0, 3
vpsrlvq xmm1, xmm4, xmm0
movd xmm0, r9d
pshufb xmm1, xmm5
andps xmm1, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm1, xmm0
movd dword [rcx - 0xc], xmm1
cmp rax, 0x18
jb 0x140018c60
mov byte [r8 + 0x30], 0
add rsp, 0x18
ret
movabs r9, 0x497df58f9d6d63cd
mov r10d, 0xff
nop dword [rax]
movzx ecx, al
mov rdx, r9
and cl, 7
shl cl, 3
shr rdx, cl
and dx, r10w
xor word [r8 + rax*2], dx
inc rax
cmp rax, 0x18
jb 0x140018d70
mov byte [r8 + 0x30], 0
add rsp, 0x18
ret
Function at 0x140019200
Capabilities:
Hash data using fnv

Disassembly:
push rdi
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov edi, 1
bsr rcx, rax
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x1400193ae
lea rax, [rdx - 1]
mov qword [rsp + 0x30], rbx
mov rbx, qword [0x140048798]
or rax, rdi
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [0x1400487a8]
lea rdx, [rdi + rdi]
call fcn.140018da0
mov rax, qword [0x140048798]
lea r9, [rdi - 1]
mov qword [0x1400487c0], r9
mov qword [0x1400487c8], rdi
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x1400193a3
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
movabs rsi, 0xcbf29ce484222325
nop word [rax + rax]
movzx edx, byte [rax + 0x11]
movzx r11d, byte [rax + 0x10]
mov rcx, qword [rcx]
xor r11, rsi
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x12]
imul r11, rdi
xor r11, rdx
movzx edx, byte [rax + 0x13]
imul r11, rdi
xor r11, rdx
imul r11, rdi
and r11, r9
shl r11, 4
add r11, qword [0x1400487a8]
mov r9, qword [r11]
cmp r9, rbx
jne 0x1400192ef
mov qword [r11], rax
mov qword [r11 + 8], rax
jmp 0x140019364
mov rdx, qword [r11 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14001932c
mov r10, qword [rdx]
cmp r10, rax
je 0x140019326
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + 8], rax
jmp 0x140019364
cmp r9, rdx
je 0x140019340
mov rdx, qword [rdx + 8]
cmp r8d, dword [rdx + 0x10]
je 0x140019378
cmp r9, rdx
jne 0x140019331
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r11], rax
mov rax, rcx
cmp rcx, rbx
je 0x14001939e
mov r9, qword [0x1400487c0]
jmp 0x1400192a0
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140019364
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.140019584
int3

Function at 0x14001a4a8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140021d1b
call fcn.140021ea0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14001f4e8
xor eax, eax
jmp 0x140021da9
mov rdx, r9
mov rcx, r8
call fcn.140021c80
mov rbx, rax
test rax, rax
je 0x140021da6
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140021bac]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140021d93
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140021e14
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140021d7a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140021d89
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400243cc
jmp 0x140021da6
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140021da3
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14002319c
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 0x14002320b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002320b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002320b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002320b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002320b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002320b
cmp dword [rcx + 0xf8], 0
je 0x14002320b
mov ecx, ebx
call fcn.1400232bc
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.140023098
nop
cmp dword [rbp + 0x20], 0
je 0x140023259
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140023264
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14002319c

Function at 0x1400233a0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14002319c
Function at 0x140028c04
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 0x140028c34
xor eax, eax
jmp 0x140028cf7
mov rbp, rbx
cmp word [rax], si
je 0x140028c59
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140028c40
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140028c3c
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.140028b24
movsxd r14, eax
test eax, eax
jne 0x140028c97
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140028c2d
mov rcx, r14
call fcn.140024ae0
mov rdi, rax
test rax, rax
jne 0x140028cb0
xor ecx, ecx
call fcn.1400243cc
jmp 0x140028c8c
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.140028b24
test eax, eax
jne 0x140028ce1
mov rcx, rdi
call fcn.1400243cc
jmp 0x140028ceb
xor ecx, ecx
call fcn.1400243cc
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
Function at 0x14002f650
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002f678
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002f678
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000e6d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000e6e0]
mov dword [rax], 1
mov rax, qword [0x14000e6f0]
mov dword [rax], 1
mov rax, qword [0x14000e6c0]
mov dword [rax], 1
mov rax, qword [0x14000e580]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14000e6b0]
mov dword [0x140011020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000e670]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000e650]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000e530]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067

Function at 0x140001820
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x140001890
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400110b4]
mov r12, rcx
test ebx, ebx
jle 0x1400019c0
mov rax, qword [0x1400110b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x1400018dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140001963
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x1400018c0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x1400019e2
mov rax, qword [0x1400110b8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400110b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400019c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000195c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001970
add dword [0x1400110b4], 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 [0x1400110b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000195c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x1400018e7
mov rax, qword [0x1400110b8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140001ea0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140011120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140011100]
test rbx, rbx
je 0x140001ef4
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 0x140001eeb
test r12, r12
je 0x140001eeb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140001ed0
lea rcx, [0x140011120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002110
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002128
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002130
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002140
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x14000218c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002183
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x14000218e
add rax, 0x28
cmp rax, r9
jne 0x140002170
xor eax, eax
ret

Function at 0x140002190
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002220
mov rdx, qword [0x14000e580]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000220e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000220e
cmp word [rax + 0x18], 0x20b
jne 0x14000220e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002220
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x1400021f9
add r12, 0x28
cmp r12, rsi
je 0x140002220
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x1400021f0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x140002230
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000e580]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002250
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002258
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002250
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400022a5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000229c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002250
add rax, 0x28
cmp rax, r9
jne 0x140002288
xor eax, eax
ret

Function at 0x1400022b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000e580]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400022d0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400022d8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022d0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x1400022f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000e580]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002310
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002318
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002310
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002358
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000234f
test rcx, rcx
je 0x140002310
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002340
xor eax, eax
ret