joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4453e0
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x44554a
sub rsp, 0x20
mov qword [rsp + 0x18], rbp
lea rbp, [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 0x4453f8
cmp edx, ecx
jne 0x445538
nop dword [rax]
test rsi, rsi
jne 0x445538
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x445454
nop
call fcn.00467500
xorps xmm15, xmm15
mov r14, qword [0x00917fc0]
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.004452e0
mov rcx, qword [0x008c33b8]
mov rdx, qword [0x008c33b0]
mov rbx, qword [rsp + 0x28]
mov esi, dword [rbx]
mov edi, esi
sar esi, 0x1f
shr esi, 0x1b
add esi, edi
mov r8d, esi
and esi, 0xffffffe0
sub edi, esi
test edi, edi
jl 0x445533
cmp edi, 0x20
sbb esi, esi
sar r8d, 5
mov rax, rcx
mov ecx, edi
mov r9d, 1
shl r9d, cl
and r9d, esi
movsxd rsi, r8d
cmp rax, rsi
jbe 0x445528
lea rcx, [rdx + rsi*4]
lock or dword [rcx], r9d
mov rcx, qword [0x008c4830]
mov qword [rbx + 8], rcx
nop
mov rcx, rbx
mov qword [0x008c4830], rbx
nop
mov edx, 1
lea rsi, [0x008c4838]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1220]
shr rdx, 0x3d
test dl, dl
jne 0x445517
nop
nop
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
xchg qword [rcx + 0x1220], rdx
mov rbp, qword [rsp + 0x18]
add rsp, 0x20
ret
lea rax, [0x006ca004]
mov ebx, 0x28
call fcn.00436bc0
mov rcx, rax
mov rax, rsi
call fcn.00465b40
call fcn.00435080
lea rax, [0x006c810a]
mov ebx, 0x23
call fcn.00436bc0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004634e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.004453e0
Function at 0x452280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x4523f8
movzx edx, byte [rax]
nop
test edx, edx
jne 0x4522bc
test r8b, r8b
jne 0x4522bc
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
bt edx, 7
jae 0x4522cf
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x4523b8
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
cmp rbx, r8
jb 0x4523a6
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rcx
sar rcx, 0x3f
and r8, rcx
lea rsi, [rax + r8]
test rbx, rbx
jbe 0x45239c
movzx r8d, byte [rax + r8]
bt r8d, 7
jae 0x452323
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x452366
mov eax, 1
cmp rax, rbx
ja 0x452355
add qword [rdi], r8
sub rdx, rax
sub rbx, rax
mov rcx, rdx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, rsi
mov edi, 1
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rcx, rbx
call fcn.00465c00
lea r8d, [rcx + 7]
mov ecx, eax
mov eax, r10d
cmp rax, rbx
jae 0x452394
movzx r9d, byte [rax + rsi]
lea r10d, [rax + 1]
mov r11d, r9d
and r9d, 0x7f
mov eax, ecx
mov ecx, r8d
shl r9d, cl
or eax, r9d
test r11b, 0x80
jne 0x45235d
mov r8d, eax
mov eax, r10d
jmp 0x452328
mov rcx, rbx
call fcn.00465b40
xor eax, eax
mov rcx, rax
call fcn.00465b40
mov eax, r8d
mov rcx, rbx
call fcn.00465c00
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x4523ee
movzx r10d, byte [rdx + rax]
inc edx
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
or r8d, r10d
test r11b, 0x80
jne 0x4523b1
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x4522d5
mov eax, edx
mov rcx, rbx
call fcn.00465b40
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.00465b40
nop
int3
Function at 0x459f00
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x459fb9
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov qword [rsp + 0x70], rbx
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 rdx, [0x0045a000]
mov qword [rsp + 0x10], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x18], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
mov rdx, r14
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.004633a0
xorps xmm15, xmm15
mov r14, qword [0x00917fc0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.004634e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00459f00
Function at 0x4655e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00918320]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
nop
nop
xor rax, rdx
ret
cmp byte [0x00917da1], 0
je 0x465616
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x009186a0]
aesenc xmm0, xmmword [0x009186b0]
aesenc xmm0, xmmword [0x009186c0]
movq rax, xmm0
ret
jmp 0x40a040
Function at 0x1400011bc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400011ed
xor eax, eax
jmp 0x1400013ef
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
jne 0x140001235
xor eax, eax
jmp 0x1400013ef
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
add rax, qword [rsp + 0x80]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x1c]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x1c], eax
mov rax, qword [rsp + 0x10]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x20], eax
mov qword [rsp + 8], 0
jmp 0x14000129a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 8], rax
jae 0x1400013ed
mov eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 8]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 8]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x50]
movzx ecx, word [rcx]
lea rax, [rax + rcx*4]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov qword [rsp], 0
mov qword [rsp], 0
jmp 0x140001344
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
test eax, eax
je 0x1400013a2
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
test eax, eax
je 0x1400013a2
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
mov rcx, qword [rsp]
mov rdx, qword [rsp + 0x28]
add rdx, rcx
mov rcx, rdx
movsx ecx, byte [rcx]
cmp eax, ecx
je 0x1400013a0
jmp 0x1400013a2
jmp 0x140001339
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
test eax, eax
jne 0x1400013e8
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movsx eax, byte [rax]
test eax, eax
jne 0x1400013e8
mov rax, qword [rsp + 0x60]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
jmp 0x1400013ef
jmp 0x14000128d
xor eax, eax
add rsp, 0x78
ret
Function at 0x1400013f4
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x68
mov qword [rsp + 0x30], 0
mov rax, qword gs:[0x60]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
mov rdi, rax
lea rsi, [rcx + 0x10]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140001622
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x30], 0
je 0x140001622
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x60], 0
jne 0x14000147a
jmp 0x140001450
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x18], rax
mov qword [rsp], 0
mov qword [rsp], 0
jmp 0x1400014a5
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
test eax, eax
je 0x1400015e0
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
test eax, eax
je 0x1400015e0
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
cmp eax, 0x5a
jg 0x140001537
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
cmp eax, 0x41
jl 0x140001537
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
sub eax, 0x41
add eax, 0x61
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp]
movzx edx, word [rsp + 0x28]
mov word [rax + rcx*2], dx
movzx eax, word [rsp + 0x28]
mov word [rsp + 8], ax
jmp 0x14000154c
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
mov word [rsp + 8], ax
movzx eax, word [rsp + 8]
mov word [rsp + 0xc], ax
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
cmp eax, 0x5a
jg 0x1400015af
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
cmp eax, 0x41
jl 0x1400015af
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
sub eax, 0x41
add eax, 0x61
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp]
movzx edx, word [rsp + 0x2c]
mov word [rax + rcx*2], dx
movzx eax, word [rsp + 0x2c]
mov word [rsp + 0xa], ax
jmp 0x1400015c1
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
mov word [rsp + 0xa], ax
movzx eax, word [rsp + 0xa]
mov word [rsp + 0x10], ax
movzx eax, word [rsp + 0xc]
movzx ecx, word [rsp + 0x10]
cmp eax, ecx
je 0x1400015db
jmp 0x1400015e0
jmp 0x14000149a
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
test eax, eax
jne 0x140001610
mov rax, qword [rsp + 0x18]
mov rcx, qword [rsp]
movzx eax, word [rax + rcx*2]
test eax, eax
jne 0x140001610
mov rax, qword [rsp + 0x20]
mov rax, qword [rax + 0x30]
jmp 0x140001624
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
jmp 0x140001450
xor eax, eax
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x1400017a5
Capabilities:
Execute syscall

Disassembly:
xor r10, r10
mov rax, rcx
mov r10, rax
mov eax, dword [section..data]
jmp 0x1400017bf
syscall
ret

Function at 0x1400020b4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400020fe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400020fe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400020fe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400020fe
cmp dword [rcx + 0x84], 0xe
jbe 0x1400020fe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002100
xor al, al
add rsp, 0x28
ret
Function at 0x140ab729c
Capabilities:
Execute anti-debugging instructions

Disassembly:
movabs rax, 0x140a7f54c
jmp 0x140ab74b9
mov edi, dword [rsp + 2]
xchg r10d, eax
jmp 0x140ab72be
btr rdi, rbp
jl 0x140ab7364
mov byte [rsp + 2], bl
jmp 0x140ab7368
clc
jmp 0x140ab7348
xor r11b, 0x2c
mov r15, rbx
neg r9w
je 0x140ab731e
clc
jmp 0x140ab7385
rdtsc
mov r13, r11
lea rdi, [rax*8]
mov rax, qword [rsp]
mov r10w, r15w
jmp 0x140ab736f
mov byte [rsp + 2], bl
lea rsp, [rsp + 0x10]
jmp 0x140ab7334
lea r10, [rcx + rsi]
jmp 0x140ab73f5
rdtsc
jmp 0x140ab734a
shl r13, 2
mov r10d, 0x4873b6f0
bswap r8
xchg si, di
not rsi
call fcn.140ab739f
add r13, rcx
mov di, word [rsp]
jmp 0x140ab7447
mov r13d, dword [r13 + riz + reloc.IPHLPAPI.DLL_GetInterfaceInfo]
xchg si, r10w
inc di
jmp 0x140ab74e8
xchg r10b, al
bswap ecx
lea r15, [rcx*8]
jmp 0x140ab7431
neg edi
jnp 0x140ab7498
not ecx
mov r9, qword [rsp]
jmp 0x140ab74be
mov si, r14w
bswap edi
xchg sil, r15b
add r13, rax
mov r15b, byte [rsp]
jmp 0x140ab7470
not ecx
mov r9, qword [rsp]
jmp 0x140ab74be
xchg rdx, r8
jmp 0x140ab7486
mov rsp, r12
push r13
ret
jo 0x140ab7545
xchg sil, al
shl ax, cl
jmp 0x140ab638d
xchg sil, al
shl ax, cl
jmp 0x140ab638d

Function at 0x140ecedee
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
call fcn.140ece016
lea rsp, [rsp + 5]
lea rsp, [rsp + 0x28]
jmp 0x140ecee24
mov rax, qword [rax + riz]
jmp 0x140ecee39
mov rax, qword gs:[0x60]
mov rax, qword [rax + riz + 0x18]
mov rax, qword [rax + riz + 0x30]
jmp 0x140ecee0e
mov rax, qword [rax + riz + 0x10]
jmp 0x140ecee96
push rax
jmp 0x140ece011
Function at 0x140002cc0
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x168750d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x168751d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1687505
lea eax, [rcx + 1]
jmp 0x168752b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x168753e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1687524
sub eax, 3
jb 0x168755e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x16875ad
sar eax, 1
movsxd rbp, eax
jb 0x1687594
jmp 0x168756c
add ebx, ebx
jne 0x168756a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1687594
inc ecx
add ebx, ebx
jne 0x168757a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1687594
call r11
adc ecx, ecx
add ebx, ebx
jne 0x168758d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x168757c
add ecx, 2
jmp 0x1687599
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.016874c2
jmp 0x168750d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1274000]
mov eax, dword [rdi]
or eax, eax
je 0x1687609
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1287000]
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 0x16875b9
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 0x1687603
mov qword [rbx], rax
add rbx, 8
jmp 0x16875d9
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 0x168764d
cmp al, 0xef
ja 0x1687635
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1687615
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1687624
mov eax, dword [rdi]
add rdi, 4
jmp 0x1687624
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
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x16876a1
sub rsp, 0xffffffffffffff80
jmp 0x461d80
Function at 0x1800018b0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x18016b020]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rsi, rdx
mov dword [rsp + 0x38], 1
mov rbx, rcx
mov dword [rsp + 0x20], 0
xor edx, edx
lea rcx, str.RookIE_1.0
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdi, rax
test rax, rax
je 0x1800019b5
mov qword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x4000000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
je 0x1800019ac
lea r8, [0x180034984]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.18000ca7c
test eax, eax
jne 0x1800019a3
cmp dword [rsp + 0x38], eax
jbe 0x180001999
nop dword [rax]
nop dword [rax + rax]
lea r9, [rsp + 0x38]
mov r8d, 0x3ff
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r8d, dword [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov r9, qword [rsp + 0x30]
mov edx, 1
call fcn.18000c91c
cmp dword [rsp + 0x38], 0
ja 0x180001960
mov rcx, qword [rsp + 0x30]
call fcn.18000c154
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180005c60
lea r11, [rsp + 0x450]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180001f50
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001f97
cmp qword [0x1802d4040], 0
jne 0x180001f97
xor eax, eax
lea r8, [0x1800019e0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov qword [0x1802d4040], rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180003150
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 0x180003172
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 0x1800031ec
mov rdi, r14
mov rcx, rbx
call fcn.180004110
test rax, rax
jle 0x1800031c4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180007c00
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 0x1800031dc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1800031e4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180003186
sub r14, rdi
jmp 0x1800032d9
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180003203
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180003205
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18000323a
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180007c00
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1800032d6
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x180003275
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x1800032b1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18000e10c
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x1800032ef
cmp rbp, rax
ja 0x180003281
mov r8, rdi
test rdi, rdi
je 0x1800032d6
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18000e10c
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
sub r14, rbp
jmp 0x1800032d9
Function at 0x180018114
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18001812a
mov al, 1
jmp 0x18001818a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18001813b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180018188
mov ecx, dword [rcx + 0x18]
nop
call fcn.18001f1cc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180018188
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180018188
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180018188
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18001818a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180019b74
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.1800064e0
sub rsp, rax
mov rax, qword [0x18016b020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180013cc8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180019bc3
mov rax, rbp
jmp 0x180019ccb
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x2d39c0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18001aac0
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x2d39c0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180019cc7
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 0x180019cc7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18001aac0
test rax, rax
js 0x180019cc7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180019cc7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180019cb9
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180019cb9
cmp byte [rcx], 0xd
jne 0x180019c9f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180019cae
cmp byte [rcx + 1], 0xa
jne 0x180019cae
inc rcx
jmp 0x180019cae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x16b5d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180019c81
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x180019ccb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180005c60
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret