joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140050210
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140050248
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov rbx, rsi
cmp rsi, r14
jae 0x140050252
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140050259
add rdi, rbx
sub rsi, rbx
jne 0x14005022a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ebx, 0xffffffff
jmp 0x140050232
int3

Function at 0x140050260
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400e79d0]
mov ecx, dword [0x1400e040c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140050295
lea rcx, [0x1400e79c8]
add rsp, 0x28
jmp fcn.14004c690
lea rcx, [0x1400e79d0]
call fcn.14005ac00
cmp dword [0x1400e79d0], 0xffffffff
jne 0x140050285
mov qword [0x1400e79c8], 0
lea rcx, [0x1400e79c8]
xor edx, edx
call fcn.14002cb70
lea rcx, [0x1400e79d0]
call fcn.14005ac98
jmp 0x140050285

Function at 0x140052580
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140052617
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140052601
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400525de
mov qword [rsi], rdi
call fcn.1400474a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
inc rax
cmp rax, 1
jbe 0x14005261b
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400474a0
mov rcx, qword [rsi]
call fcn.140049d90
mov qword [rsi], 0
jmp 0x1400525cc
mov byte [rsi + 8], 1
int3

Function at 0x140053ba0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1400e82a8]
cmp rsi, 1
jbe 0x140053bc3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14004c6d0
lea rcx, [0x1400e82a8]
call fcn.140030750
test al, al
je 0x140053c09
mov qword [0x1400e82b0], 0
lea rdi, [0x1400e82a8]
lea rsi, [0x1400e82b0]
mov rcx, rsi
xor edx, edx
call fcn.14002cb70
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400307f0
jmp 0x140053bb3
mov rsi, qword [0x1400e82a8]
jmp 0x140053bb3

Function at 0x1400594a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1400e8338]
cmp rsi, 1
jbe 0x1400594c3
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14004c6d0
lea rcx, [0x1400e8338]
call fcn.140030750
test al, al
je 0x140059509
mov qword [0x1400e8340], 0
lea rdi, [0x1400e8338]
lea rsi, [0x1400e8340]
mov rcx, rsi
xor edx, edx
call fcn.14002cb70
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400307f0
jmp 0x1400594b3
mov rsi, qword [0x1400e8338]
jmp 0x1400594b3
Function at 0x140059520
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1400e8350]
mov ecx, dword [0x1400e040c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005955d
lea rcx, [0x1400e8348]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14004c6d0
lea rcx, [0x1400e8350]
call fcn.14005ac00
cmp dword [0x1400e8350], 0xffffffff
jne 0x140059549
mov qword [0x1400e8348], 0
lea rcx, [0x1400e8348]
xor edx, edx
call fcn.14002cb70
lea rcx, [0x1400e8350]
call fcn.14005ac98
jmp 0x140059549

Function at 0x14005a710
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400e8360]
mov ecx, dword [0x1400e040c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005a7b2
lea rcx, [0x1400e8358]
xor edx, edx
call fcn.14004c6d0
mov eax, dword [0x1400e8370]
mov ecx, dword [0x1400e040c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005a776
lea rcx, [0x1400e8368]
xor edx, edx
add rsp, 0x28
jmp fcn.14004c6d0
lea rcx, [0x1400e8370]
call fcn.14005ac00
cmp dword [0x1400e8370], 0xffffffff
jne 0x14005a764
mov qword [0x1400e8368], 0
lea rcx, [0x1400e8368]
xor edx, edx
call fcn.14002cb70
lea rcx, [0x1400e8370]
call fcn.14005ac98
jmp 0x14005a764
lea rcx, [0x1400e8360]
call fcn.14005ac00
cmp dword [0x1400e8360], 0xffffffff
jne 0x14005a735
mov qword [0x1400e8358], 0
lea rcx, [0x1400e8358]
xor edx, edx
call fcn.14002cb70
lea rcx, [0x1400e8360]
call fcn.14005ac98
jmp 0x14005a735

Function at 0x140066e8c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140066fbc
Function at 0x140084930
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov al, 1
xchg byte [rcx + 0xb0], al
test al, 1
je 0x140084968
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14005b820
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov edi, edx
mov rbx, rcx
xor eax, eax
xchg qword [rcx + 0x90], rax
mov qword [rcx + 0xa8], rax
lock inc qword [rcx + 0xa0]
mov ecx, 0x58
call fcn.140084a10
mov rsi, rax
mov rcx, rax
mov rdx, rbx
call fcn.140084cf0
cmp edi, 1
jne 0x1400849b9
call fcn.140085080
lea rdx, [rsp + 0x20]
mov qword [rdx], rsi
mov rcx, rax
call fcn.140085140
jmp 0x140084952
mov rcx, rsi
call fcn.140085200
test rsi, rsi
je 0x140084952
lea rcx, [rsi + 0x40]
mov rdx, qword [rsi + 0x48]
call fcn.1400853f0
mov rcx, rsi
add rcx, 0x28
call fcn.140085740
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400849f1
mov qword [rsi + 0x18], rcx
call fcn.140085a80
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14005b820
mov rcx, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp fcn.140085a80
Function at 0x140085140
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.14003f2a0
mov rax, qword [rsi]
mov qword [rsi], 0
mov rbx, qword [rdi + 0x10]
mov qword [rdi + 0x10], rax
test rbx, rbx
jne 0x140085194
mov rcx, rdi
call fcn.14003f2d0
add rdi, 8
mov rcx, rdi
call fcn.14001bf70
mov rdi, qword [rsi]
mov qword [rsi], 0
test rdi, rdi
jne 0x1400851c6
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [rbx + 0x40]
mov rdx, qword [rbx + 0x48]
call fcn.1400853f0
lea rcx, [rbx + 0x28]
call fcn.140085740
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400851bc
mov qword [rbx + 0x18], rcx
call fcn.140085a80
mov rcx, rbx
call fcn.140085a80
jmp 0x140085169
lea rcx, [rdi + 0x40]
mov rdx, qword [rdi + 0x48]
call fcn.1400853f0
lea rcx, [rdi + 0x28]
call fcn.140085740
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400851ee
mov qword [rdi + 0x18], rcx
call fcn.140085a80
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140085a80
Function at 0x1400881b0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x38], rax
call fcn.140085dc0
mov rsi, rax
mov r15, rax
mov byte [rsp + 0x37], 0
cmp byte [rax + 2], 0
je 0x14008827d
mov edi, dword [0x1400e78f0]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test ebx, ebx
jne 0x140088273
cmp rdi, 1
jbe 0x14008830e
inc qword [rdi + 0x298]
mov rbx, qword [rdi + 0xc0]
test rbx, rbx
je 0x140088338
inc qword [rdi + 0x2a0]
mov rax, qword [rbx]
test rax, rax
je 0x140088244
mov rcx, rax
not rcx
cmp qword [rbx + 8], rcx
jne 0x1400883ae
bswap rax
dec byte [rdi + 0xc8]
mov qword [rdi + 0xc0], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14005b820
mov rax, rbx
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140088204
lea r14, [rsi + 0x1f0]
add rsi, 8
mov edi, 1
xor ebx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov ebp, 0x40
mov rcx, rsi
call r12
test al, al
jne 0x1400882ca
jmp 0x1400883b3
pause
dec eax
jne 0x1400882aa
add ebx, edi
add edi, edi
cmp edi, 0x40
cmovge edi, ebp
cmp ebx, 0x3e8
jl 0x14008829b
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [r14]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400883ca
mov byte [rsp + 0x37], 0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400882f6
mov rdx, rcx
not rdx
cmp qword [rbx + 8], rdx
jne 0x1400883ae
bswap rcx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
jmp 0x140088254
je 0x140088363
mov byte [r15 + 2], 0
mov rcx, r15
call fcn.14004e290
mov rdi, rax
mov byte [r15 + 2], 1
inc qword [rax + 0x298]
mov rbx, qword [rax + 0xc0]
jmp 0x14008821c
inc qword [rdi + 0x2b0]
inc qword [rdi + 0x2a8]
mov edx, 0xc
mov rcx, rdi
call fcn.14004e510
mov rbx, qword [rdi + 0xc0]
test rbx, rbx
jne 0x14008822c
lea r14, [rsi + 0x1f0]
add rsi, 8
mov edi, 1
xor ebx, ebx
mov r12, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov ebp, 0x40
mov rcx, rsi
call r12
test al, al
jne 0x1400882ca
jmp 0x1400883c2
pause
dec eax
jne 0x140088391
add ebx, edi
add edi, edi
cmp edi, 0x40
cmovge edi, ebp
cmp ebx, 0x3e8
jl 0x140088381
jmp 0x1400882c2
call 0x140084730
mov eax, edi
test edi, edi
jg 0x1400882aa
jmp 0x1400882b2
mov eax, edi
test edi, edi
jg 0x140088391
jmp 0x140088399
lea rax, [rsp + 0x37]
mov qword [rsp + 0x20], rax
mov r9d, 0x28
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140038f30
mov rbx, rax
jmp 0x140088300
Function at 0x1400a5b00
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov ecx, 0x10
call fcn.14005aaac
mov qword [rax], rdi
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400a5b70]
xor ecx, ecx
xor edx, edx
mov r9, rax
call fcn.140066c80
mov qword [rbx], rax
test rax, rax
je 0x1400a5b57
xor eax, eax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
add rsp, 0x30
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400a7670
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x1400a7717
mov rbx, qword [rsi + 8]
cmp rdi, rbx
ja 0x1400a7805
jae 0x1400a77fd
cmp rbx, 3
jb 0x1400a7738
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs rcx, 0x101010101010101
imul rcx, rax
shr rcx, 0x38
cmp ecx, 1
ja 0x1400a7738
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400a7748
cvtsi2ss xmm0, rax
jmp 0x1400a775d
lea rax, [rdx - 1]
test rdx, rax
jne 0x1400a7728
mov rdi, rdx
jmp 0x1400a7689
mov rcx, rdx
call fcn.14003bbc0
mov rdi, rax
jmp 0x1400a7689
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400a77a8
cvtsi2ss xmm0, rax
jmp 0x1400a77bd
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.140083dd0
cvttss2si rcx, xmm0
movss xmm1, dword [0x1400c7690]
movaps xmm2, xmm0
subss xmm2, xmm1
cvttss2si rax, xmm2
btc rax, 0x3f
ucomiss xmm0, xmm1
cmovb rax, rcx
cmp rax, 2
jb 0x1400a77f1
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x1400a77f1
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.140083dd0
cvttss2si rax, xmm0
movss xmm1, dword [0x1400c7690]
movaps xmm2, xmm0
subss xmm2, xmm1
cvttss2si rcx, xmm2
btc rcx, 0x3f
ucomiss xmm0, xmm1
cmovb rcx, rax
call fcn.14003bbc0
cmp rdi, rax
cmovb rdi, rax
cmp rdi, rbx
jb 0x1400a7805
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14008a610
Function at 0x1400a7880
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x1400a7917
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x1400a791c
test bl, bl
je 0x1400a78db
cmp byte [rdi + 8], 0
je 0x1400a7995
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rdi + 8], 0
jne 0x1400a79a2
mov rcx, qword [rdi]
call fcn.14002a100
mov rcx, qword [0x1400e45c8]
mov dil, 1
test rcx, rcx
jne 0x1400a79b0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14005b820
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rdi]
jmp 0x1400a78ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x1400a7944
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400a7949
xor edi, edi
jmp 0x1400a7900
mov rcx, qword [rdi]
jmp 0x1400a7931
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rdi + 8], 0
je 0x1400a799d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x1400a7973
mov esi, dword [rsp + 0x24]
cmp byte [rdi + 8], 0
jne 0x1400a79bf
mov rcx, qword [rdi]
call fcn.14002a100
mov rcx, qword [0x1400e45c8]
test rcx, rcx
jne 0x1400a79ca
mov dil, 1
jmp 0x1400a7900
mov rcx, qword [rdi]
jmp 0x1400a78d0
mov rcx, qword [rdi]
jmp 0x1400a7960
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400a78e8
mov edx, eax
mov r8d, esi
call fcn.1400a92f0
jmp 0x1400a7900
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x1400a797c
mov edx, eax
mov r8d, esi
call fcn.1400a92f0
jmp 0x1400a798d
Function at 0x1400016c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
mov dword [rbp + 0xd8], edx
mov qword [rbp + 0xe0], r8
mov dword [rbp + 0xe8], r9d
mov dword [rbp + 0xbc], 0
jmp 0x140001712
mov eax, dword [rbp + 0xbc]
mov edx, eax
mov eax, dword [rbp + 0xbc]
cdqe
mov byte [rbp + rax - 0x60], dl
add dword [rbp + 0xbc], 1
cmp dword [rbp + 0xbc], 0xff
jle 0x1400016f7
mov dword [rbp + 0xb8], 0
mov dword [rbp + 0xb4], 0
jmp 0x1400017b3
mov eax, dword [rbp + 0xb4]
cdqe
movzx eax, byte [rbp + rax - 0x60]
movzx eax, al
mov edx, dword [rbp + 0xb8]
lea ecx, [rax + rdx]
mov eax, dword [rbp + 0xb4]
cdq
idiv dword [rbp + 0xe8]
mov eax, edx
cdqe
mov rdx, qword [rbp + 0xe0]
add rax, rdx
movzx eax, byte [rax]
movzx eax, al
lea edx, [rcx + rax]
mov eax, edx
sar eax, 0x1f
shr eax, 0x18
add edx, eax
movzx edx, dl
sub edx, eax
mov dword [rbp + 0xb8], edx
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0xb8]
cdqe
add rdx, rax
lea rcx, [rbp - 0x60]
mov eax, dword [rbp + 0xb4]
cdqe
add rax, rcx
mov rcx, rax
call fcn.140003050
add dword [rbp + 0xb4], 1
cmp dword [rbp + 0xb4], 0xff
jle 0x140001734
mov dword [rbp + 0xb0], 0
mov dword [rbp + 0xb8], 0
mov dword [rbp + 0xac], 0
jmp 0x1400018bf
mov eax, dword [rbp + 0xb0]
lea edx, [rax + 1]
mov eax, edx
sar eax, 0x1f
shr eax, 0x18
add edx, eax
movzx edx, dl
sub edx, eax
mov dword [rbp + 0xb0], edx
mov eax, dword [rbp + 0xb0]
cdqe
movzx eax, byte [rbp + rax - 0x60]
movzx eax, al
mov edx, dword [rbp + 0xb8]
add edx, eax
mov eax, edx
sar eax, 0x1f
shr eax, 0x18
add edx, eax
movzx edx, dl
sub edx, eax
mov dword [rbp + 0xb8], edx
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0xb8]
cdqe
add rdx, rax
lea rcx, [rbp - 0x60]
mov eax, dword [rbp + 0xb0]
cdqe
add rax, rcx
mov rcx, rax
call fcn.140003050
mov eax, dword [rbp + 0xb0]
cdqe
movzx edx, byte [rbp + rax - 0x60]
mov eax, dword [rbp + 0xb8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
add eax, edx
movzx eax, al
mov dword [rbp + 0xa8], eax
mov eax, dword [rbp + 0xac]
cdqe
mov rdx, qword [rbp + 0xd0]
add rax, rdx
movzx r8d, byte [rax]
mov eax, dword [rbp + 0xa8]
cdqe
movzx ecx, byte [rbp + rax - 0x60]
mov eax, dword [rbp + 0xac]
cdqe
mov rdx, qword [rbp + 0xd0]
add rdx, rax
mov eax, r8d
xor eax, ecx
mov byte [rdx], al
add dword [rbp + 0xac], 1
mov eax, dword [rbp + 0xac]
cmp eax, dword [rbp + 0xd8]
jl 0x1400017e6
nop
nop
add rsp, 0x140
pop rbp
ret
Function at 0x140001b0f
Capabilities:
Parse pe header

Disassembly:
push rbp
sub rsp, 0x160
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], rdx
mov rax, qword [rbp + 0xf0]
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0xd0]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140001b63
mov eax, 0
jmp 0x140001ce8
mov rax, qword [rbp + 0xc8]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 0xd0]
add rax, rdx
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp + 0xc0]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001b9a
mov eax, 0
jmp 0x140001ce8
mov rdx, qword [rbp + 0xc0]
lea rax, [rbp - 0x60]
add rdx, 0x18
mov ecx, 0xf0
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov eax, dword [rbp + 0x10]
mov edx, eax
mov rax, qword [rbp + 0xd0]
add rax, rdx
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp + 0xd0]
add rax, rdx
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xb8]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp + 0xd0]
add rax, rdx
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xb8]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp + 0xd0]
add rax, rdx
mov qword [rbp + 0xa0], rax
mov dword [rbp + 0xdc], 0
jmp 0x140001ccd
mov eax, dword [rbp + 0xdc]
lea rdx, [rax*4]
mov rax, qword [rbp + 0xb0]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0xd0]
add rax, rdx
mov qword [rbp + 0x98], rax
mov eax, dword [rbp + 0xdc]
lea rdx, [rax + rax]
mov rax, qword [rbp + 0xa0]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp + 0xa8]
add rax, rdx
mov eax, dword [rax]
mov edx, eax
mov rax, qword [rbp + 0xd0]
add rax, rdx
mov qword [rbp + 0x90], rax
mov rdx, qword [rbp + 0x98]
mov rax, qword [rbp + 0xf8]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140001cc6
mov rax, qword [rbp + 0x90]
jmp 0x140001ce8
add dword [rbp + 0xdc], 1
mov rax, qword [rbp + 0xb8]
mov eax, dword [rax + 0x14]
cmp dword [rbp + 0xdc], eax
jb 0x140001c35
mov eax, 0
add rsp, 0x160
pop rbp
ret

Function at 0x140002080
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140002ed0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002ed0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x1400020f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008094]
test esi, esi
mov rbx, rcx
jle 0x140002220
mov rax, qword [0x140008098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000213b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400021c5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002120
mov rcx, rbx
call fcn.140002b60
test rax, rax
mov rdi, rax
je 0x140002242
mov rax, qword [0x140008098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002ca0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002227
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400021be
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400021d0
add dword [0x140008094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140008098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400021be
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002080
nop dword [rax]
xor esi, esi
jmp 0x140002148
mov rax, qword [0x140008098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.140002080
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140002080
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400027b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000280c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002803
test rsi, rsi
je 0x140002803
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400027e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002a20
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002a58
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002a60
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140002a30
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002a58
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002a60
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002a40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.msvcrt.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002a58
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002a60
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

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

Disassembly:
mov rdx, qword [0x140005920]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002b80
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002b88
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002b80
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002bdd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140002bd4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002b80
add rax, 0x28
cmp rax, r9
jne 0x140002bc0
xor eax, eax
ret

Function at 0x140002be0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005920]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002bff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002c08
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002bff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002ca0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005920]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002cbf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002cc8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret