joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140098ae0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rdi
push r13
push r15
sub rsp, 0x30
mov r13d, dword [rcx + 0x64]
mov rdi, rcx
mov rbx, qword [rcx + 0x248]
cmp r13d, 1
mov r8d, 0x2fe
mov qword [rsp + 0x68], rbx
sete al
mov edx, 1
mov byte [rbx + 0x38], al
mov rax, qword [rcx + 8]
mov ecx, 0x100
mov r9d, dword [rdi + 0x7c]
cmovne r8d, ecx
mov rcx, rdi
call qword [rax + 0x10]
mov ebp, dword [rbx + 0x28]
xor r15d, r15d
mov qword [rbx + 0x30], rax
cmp dword [rdi + 0x7c], r15d
jle 0x140098c61
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x28], r12
lea r12, [rbx + 0x3c]
mov qword [rsp + 0x20], r14
xor r14d, r14d
nop dword [rax]
mov esi, dword [r12]
mov eax, ebp
cdq
idiv esi
mov ebp, eax
cmp r13d, 1
jne 0x140098b7d
mov rax, qword [rbx + 0x30]
add qword [r14 + rax], 0xff
mov rax, qword [rbx + 0x30]
lea r11d, [rsi*2 - 2]
xor r8d, r8d
xor r10d, r10d
mov rdi, qword [r14 + rax]
lea eax, [rsi + 0xfe]
cdq
idiv r11d
xor ebx, ebx
mov r9d, eax
cmp r10d, r9d
jle 0x140098bd7
imul ecx, r8d, 0x1fe
add ecx, 0xfe
add ecx, esi
nop word [rax + rax]
add ecx, 0x1fe
inc r8d
mov eax, ecx
cdq
idiv r11d
mov r9d, eax
cmp r10d, eax
jg 0x140098bc0
movzx eax, r8b
inc r10d
movzx ecx, bpl
imul ecx, eax
mov byte [rbx + rdi], cl
inc rbx
cmp rbx, 0xff
jle 0x140098ba2
cmp r13d, 1
jne 0x140098c33
mov ecx, r13d
lea rdx, [rdi - 1]
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi]
mov byte [rdx], al
lea rdx, [rdx - 1]
movzx eax, byte [rdi + 0xff]
mov byte [rdi + rcx + 0xff], al
inc rcx
cmp rcx, 0xff
jle 0x140098c10
mov rax, qword [rsp + 0x60]
inc r15d
mov rbx, qword [rsp + 0x68]
add r12, 4
add r14, 8
cmp r15d, dword [rax + 0x7c]
jl 0x140098b60
mov r14, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r13
pop rdi
pop rbp
pop rbx
ret
Function at 0x1400ab330
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x24]
mov rbx, rcx
cmp eax, 0xca
jne 0x1400ab366
call fcn.1400ad560
cmp byte [rbx + 0x58], 0
je 0x1400ab35d
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], 0xcb
jmp 0x1400ab371
cmp eax, 0xcb
jne 0x1400ab3f5
mov rax, qword [rbx + 0x228]
cmp byte [rax + 0x20], 0
je 0x1400ab3dc
nop
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400ab38e
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x228]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x1400ab3d4
cmp eax, 2
je 0x1400ab3dc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400ab380
dec eax
test eax, 0xfffffffd
jne 0x1400ab380
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x1400ab380
mov ecx, dword [rbx + 0x18c]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x1400ab380
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x9c]
mov rcx, rbx
mov dword [rbx + 0xa4], eax
add rsp, 0x20
pop rbx
jmp fcn.14008ea80
cmp eax, 0xcc
je 0x1400ab417
mov rax, qword [rcx]
mov dword [rax + 0x28], 0x18
mov rcx, qword [rcx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14008ea80
Function at 0x1400acbf0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rbx, rcx
mov qword [rcx + 8], rsi
call fcn.1400392c0
mov edx, 0xa0
mov dword [rsp + 0x38], eax
mov rcx, rbx
call fcn.140093df0
mov rdi, rax
test rax, rax
jne 0x1400acc46
mov rcx, rbx
call fcn.14000a8f0
mov rcx, qword [rbx]
mov dword [rcx + 0x28], 0x3c
mov rcx, qword [rbx]
mov dword [rcx + 0x2c], esi
mov rcx, rbx
mov rdx, qword [rbx]
call qword [rdx]
mov dword [rdi + 0x64], 0x3b9aca00
lea rax, [fcn.1400aca60]
mov qword [rdi], rax
lea rcx, str.JPEGMEM
lea rax, [fcn.140092390]
mov qword [rdi + 8], rax
lea rax, [fcn.1400ac970]
mov qword [rdi + 0x10], rax
lea rax, [fcn.1400ac790]
mov qword [rdi + 0x18], rax
lea rax, [0x1400ac880]
mov qword [rdi + 0x20], rax
lea rax, [0x1400ad000]
mov qword [rdi + 0x28], rax
lea rax, [0x1400acf50]
mov qword [rdi + 0x30], rax
lea rax, [0x1400acd70]
mov qword [rdi + 0x38], rax
lea rax, [0x1400ac520]
mov qword [rdi + 0x40], rax
lea rax, [0x140091ce0]
mov qword [rdi + 0x48], rax
lea rax, [0x140092700]
mov qword [rdi + 0x50], rax
lea rax, [0x140092d00]
mov qword [rdi + 0x58], rax
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x60], eax
mov qword [rdi + 0x70], rsi
mov qword [rdi + 0x80], rsi
mov qword [rdi + 0x68], rsi
mov qword [rdi + 0x78], rsi
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x90], rsi
mov dword [rdi + 0x98], 0xa0
mov qword [rbx + 8], rdi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400acd5c
lea r9, [rsp + 0x30]
mov byte [rsp + 0x30], 0x78
lea r8, [rsp + 0x38]
mov rcx, rax
lea rdx, str._ld_c
call fcn.140024d90
test eax, eax
jle 0x1400acd5c
movzx eax, byte [rsp + 0x30]
sub al, 0x4d
test al, 0xdf
jne 0x1400acd4f
imul eax, dword [rsp + 0x38], 0x3e8
jmp 0x1400acd53
mov eax, dword [rsp + 0x38]
imul eax, eax, 0x3e8
mov dword [rdi + 0x60], eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400bc900
Capabilities:
Check for software breakpoints

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x24]
mov rbx, rcx
cmp eax, 0xca
jne 0x1400bc936
call fcn.1400be8c0
cmp byte [rbx + 0x58], 0
je 0x1400bc92d
mov dword [rbx + 0x24], 0xcf
mov al, 1
add rsp, 0x20
pop rbx
ret
mov dword [rbx + 0x24], 0xcb
jmp 0x1400bc941
cmp eax, 0xcb
jne 0x1400bc9c5
mov rax, qword [rbx + 0x228]
cmp byte [rax + 0x20], 0
je 0x1400bc9ac
nop
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400bc95e
mov rcx, rbx
call qword [rax]
mov rax, qword [rbx + 0x228]
mov rcx, rbx
call qword [rax]
test eax, eax
je 0x1400bc9a4
cmp eax, 2
je 0x1400bc9ac
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400bc950
dec eax
test eax, 0xfffffffd
jne 0x1400bc950
inc dword [rcx + 8]
mov rdx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0xc]
cmp dword [rcx + 8], r8d
jl 0x1400bc950
mov ecx, dword [rbx + 0x18c]
add ecx, r8d
mov dword [rdx + 0xc], ecx
jmp 0x1400bc950
xor al, al
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0x9c]
mov rcx, rbx
mov dword [rbx + 0xa4], eax
add rsp, 0x20
pop rbx
jmp fcn.14008ea80
cmp eax, 0xcc
je 0x1400bc9e7
mov rax, qword [rcx]
mov dword [rax + 0x28], 0x18
mov rcx, qword [rcx]
mov eax, dword [rbx + 0x24]
mov dword [rcx + 0x2c], eax
mov rcx, rbx
mov rax, qword [rbx]
call qword [rax]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14008ea80
Function at 0x1400bdf50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rbx, rcx
mov qword [rcx + 8], rsi
call fcn.1400392c0
mov edx, 0xa0
mov dword [rsp + 0x38], eax
mov rcx, rbx
call fcn.140093df0
mov rdi, rax
test rax, rax
jne 0x1400bdfa6
mov rcx, rbx
call fcn.14000a8f0
mov rcx, qword [rbx]
mov dword [rcx + 0x28], 0x3c
mov rcx, qword [rbx]
mov dword [rcx + 0x2c], esi
mov rcx, rbx
mov rdx, qword [rbx]
call qword [rdx]
mov dword [rdi + 0x64], 0x3b9aca00
lea rax, [fcn.1400bddc0]
mov qword [rdi], rax
lea rcx, str.JPEGMEM
lea rax, [fcn.140092390]
mov qword [rdi + 8], rax
lea rax, [fcn.1400bdcd0]
mov qword [rdi + 0x10], rax
lea rax, [fcn.1400bdaf0]
mov qword [rdi + 0x18], rax
lea rax, [0x1400bdbe0]
mov qword [rdi + 0x20], rax
lea rax, [0x1400be360]
mov qword [rdi + 0x28], rax
lea rax, [0x1400be2b0]
mov qword [rdi + 0x30], rax
lea rax, [0x1400be0d0]
mov qword [rdi + 0x38], rax
lea rax, [0x1400ac520]
mov qword [rdi + 0x40], rax
lea rax, [0x140091ce0]
mov qword [rdi + 0x48], rax
lea rax, [0x140092700]
mov qword [rdi + 0x50], rax
lea rax, [0x140092d00]
mov qword [rdi + 0x58], rax
mov eax, dword [rsp + 0x38]
mov dword [rdi + 0x60], eax
mov qword [rdi + 0x70], rsi
mov qword [rdi + 0x80], rsi
mov qword [rdi + 0x68], rsi
mov qword [rdi + 0x78], rsi
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x90], rsi
mov dword [rdi + 0x98], 0xa0
mov qword [rbx + 8], rdi
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400be0bc
lea r9, [rsp + 0x30]
mov byte [rsp + 0x30], 0x78
lea r8, [rsp + 0x38]
mov rcx, rax
lea rdx, str._ld_c
call fcn.140024d90
test eax, eax
jle 0x1400be0bc
movzx eax, byte [rsp + 0x30]
sub al, 0x4d
test al, 0xdf
jne 0x1400be0af
imul eax, dword [rsp + 0x38], 0x3e8
jmp 0x1400be0b3
mov eax, dword [rsp + 0x38]
imul eax, eax, 0x3e8
mov dword [rdi + 0x60], eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400cc7f0
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 0x10
call fcn.1400cd670
mov rbx, rax
test rax, rax
jne 0x1400cc80e
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
mov edi, 1
nop dword [rax]
xor eax, eax
lock cmpxchg dword [0x1402fe284], edi
jne 0x1400cc820
mov ecx, dword [0x1402fe288]
test ecx, ecx
jne 0x1400cc848
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1402fe280], eax
mov dword [0x1402fe288], edi
xor esi, esi
mov eax, edi
lock cmpxchg dword [0x1402fe284], esi
cmp dword [0x1402fe280], 0xffffffff
je 0x1400cc870
lea ecx, [rsi + 0x28]
call fcn.1400cd670
mov rdi, rax
test rax, rax
jne 0x1400cc88a
mov qword [rbx], rsi
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, qword [rsp + 0x30]
xor eax, eax
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov edx, 0xfa0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov qword [rbx], rdi
mov rax, rbx
mov rdi, qword [rsp + 0x38]
mov qword [rbx + 8], rsi
mov rsi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x1400cc910
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov ecx, dword [0x1402fe280]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400cc95b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [0x1402fe280]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x10
call fcn.1400cd670
mov qword [rax], rbx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov rcx, qword [rdi]
mov qword [rdi + 8], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_EnterCriticalSection]

Function at 0x1400cc9c0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov ecx, 1
cmp eax, ecx
cmovb eax, ecx
add rsp, 0x58
ret
Function at 0x1400ccf30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x1400cd033
mov qword [rsp + 0x48], r14
xor r14d, r14d
test edx, edx
cmovns r14d, edx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rdi + 0x30]
mov dword [rdi + 0x50], r14d
cmp eax, r14d
jle 0x1400cd024
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
nop dword [rax]
mov ecx, dword [0x1402fe280]
mov rbp, qword [rdi + 0x18]
mov rsi, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400ccfbe
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [0x1402fe280]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, 0x10
call fcn.1400cd670
mov qword [rax], rbx
mov rdx, qword [rsi + 8]
mov qword [rax + 8], rdx
mov rcx, qword [rsi]
mov qword [rsi + 8], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [rdi + 0x30]
cmp eax, r14d
jg 0x1400ccf80
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400cd1e0
Capabilities:
Create thread

Disassembly:
push rbx
push r13
push r15
sub rsp, 0x40
movsxd r15, edx
mov rbx, rcx
mov r13d, 1
call fcn.1400cc7f0
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400cd3b8
mov rcx, r15
lea edx, [r13 + 0x27]
call fcn.1400cd640
mov qword [rbx], rax
test rax, rax
je 0x1400cd3b8
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], rdi
xor edi, edi
mov dword [rbx + 8], r15d
mov ebp, edi
test r15d, r15d
jle 0x1400cd364
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x30], r14
mov r14d, edi
mov qword [rsp + 0x38], r12
nop dword [rax]
mov ecx, 0x28
mov qword [r14 + rax], rbx
call fcn.1400cd670
mov rsi, rax
test rax, rax
jne 0x1400cd26b
mov rsi, rdi
jmp 0x1400cd279
mov edx, 0xfa0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov rax, qword [rbx]
mov qword [r14 + rax + 0x18], rsi
mov rax, qword [rbx]
cmp qword [r14 + rax + 0x18], rdi
je 0x1400cd34f
call fcn.1400cc7f0
mov rcx, qword [rbx]
mov qword [r14 + rcx + 0x20], rax
mov rdx, qword [rbx]
movsxd rax, ebp
lea rcx, [rax + rax*4]
lea rsi, [rcx*8]
cmp qword [r14 + rdx + 0x20], rdi
je 0x1400cd334
mov dword [r14 + rdx + 0x10], edi
mov ecx, 0x18
mov r12, qword [rbx]
add r12, rsi
call fcn.1400cd670
mov rsi, rax
test rax, rax
je 0x1400cd30e
lea rax, [0x1400cd3d0]
mov qword [rsp + 0x28], rdi
mov r9, rsi
mov qword [rsi], rax
lea r8, [0x1400cd170]
mov qword [rsi + 8], r12
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsi + 0x10], rax
test rax, rax
jne 0x1400cd311
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rsi, rdi
mov rax, qword [rbx]
mov qword [r14 + rax + 8], rsi
mov rax, qword [rbx]
cmp qword [r14 + rax + 8], rdi
je 0x1400cd34f
inc ebp
add r14, 0x28
cmp ebp, r15d
jl 0x1400cd250
jmp 0x1400cd355
mov rsi, qword [rsi + rdx + 0x18]
test rsi, rsi
je 0x1400cd34f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov dword [rbx + 8], ebp
mov r13d, edi
mov r12, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x30]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbp, qword [rsp + 0x60]
cmp dword [rbx + 0x40], r15d
jge 0x1400cd393
nop dword [rax]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
call fcn.1400cc910
cmp dword [rbx + 0x40], r15d
jl 0x1400cd380
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [rbx + 0x20]
cmp ecx, 2
cmovne edi, r13d
mov eax, edi
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r13
pop rbx
ret
xor eax, eax
add rsp, 0x40
pop r15
pop r13
pop rbx
ret
Function at 0x1400d58d0
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x20
lea rcx, str.OPJ_NUM_THREADS
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdi, rax
test rax, rax
je 0x1400d5957
call fcn.1400cc9f0
test eax, eax
je 0x1400d5957
mov qword [rsp + 0x30], rbx
call fcn.1400cc9c0
lea rdx, str.ALL_CPUS
mov rcx, rdi
mov ebx, eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1400d5920
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, 0x20
test ebx, ebx
mov rcx, rdi
cmove ebx, eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
test eax, eax
jns 0x1400d5944
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
lea ecx, [rbx + rbx]
mov rbx, qword [rsp + 0x30]
cmp eax, ecx
cmovg eax, ecx
add rsp, 0x20
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140115300
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
push rsi
push r14
push r15
sub rsp, 0x40
movzx r9d, byte [rdx + 9]
mov r14, rdx
mov r11d, dword [rdx + 4]
mov r10d, r8d
mov qword [rsp + 0x68], rbx
xor r8d, r8d
mov qword [rsp + 0x38], rbp
mov edx, r9d
shr edx, 1
mov eax, r9d
mov qword [rsp + 0x30], rdi
mov edi, r8d
imul edx, r11d
lea ebp, [r8 + 1]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
mov r13, rcx
add edx, dword [r14]
cmp r9d, edx
jge 0x14011536e
nop word [rax + rax]
inc edi
add eax, eax
mov ecx, edi
cmp eax, edx
jl 0x140115360
test ecx, ecx
jne 0x140115388
test r10d, r10d
jle 0x14011538b
movzx eax, byte [r14 + 0xa]
lea r15, [r14 + 0xa]
add eax, eax
cmp eax, r9d
jae 0x1401153ab
mov r8d, ebp
jmp 0x1401153af
test r10d, r10d
jns 0x1401153ab
movzx eax, byte [r14 + 0xa]
lea r15, [r14 + 0xa]
add eax, eax
cmp eax, r9d
jb 0x1401153a2
mov r8d, ebp
jmp 0x1401153af
test edi, edi
je 0x1401153ab
mov r8d, ebp
jmp 0x1401153af
lea r15, [r14 + 0xa]
movsxd rcx, dword [r13 + 0x1228]
mov eax, r10d
mov ebx, dword [r13 + 0xcc]
cdq
mov esi, eax
lea rax, [0x1402dfd30]
xor esi, edx
sub ebx, dword [rax + rcx*4]
sub esi, edx
add esi, esi
mov ecx, edi
sub esi, r11d
dec ebx
sub esi, r8d
mov r12d, esi
sar r12d, cl
mov ecx, ebx
sub ecx, dword [r13 + 0xc4]
lea eax, [rcx - 1]
cmp r12d, eax
jge 0x140115431
lea eax, [r12 + 1]
cmp eax, 0x1f
jle 0x140115418
mov eax, r12d
mov rcx, r13
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov r8d, eax
mov ebx, eax
call fcn.1401041f0
sub r12d, ebx
lea r8d, [r12 + 1]
mov edx, ebp
mov rcx, r13
call fcn.1401041f0
mov ecx, edi
shl ebp, cl
dec ebp
and ebp, esi
jmp 0x140115471
cmp ecx, 0x1f
jle 0x140115450
xor edx, edx
mov rcx, r13
lea r8d, [rdx + 0x1f]
call fcn.1401041f0
sub ebx, dword [r13 + 0xc4]
sub ebx, 0x1f
jmp 0x140115452
mov ebx, ecx
mov r8d, ebx
mov edx, ebp
mov rcx, r13
call fcn.1401041f0
mov edi, dword [r13 + 0xc4]
lea eax, [rsi - 1]
mov ecx, edi
shl ebp, cl
dec ebp
and ebp, eax
mov r8d, edi
mov edx, ebp
mov rcx, r13
call fcn.1401041f0
cmp dword [rsp + 0x70], 0
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x68]
jge 0x1401154a1
inc byte [r15]
sub esi, dword [r14 + 4]
movzx eax, byte [r14 + 9]
inc esi
sar esi, 1
add esi, dword [r14]
mov dword [r14], esi
cmp al, byte [r14 + 8]
jne 0x1401154c4
shr byte [r15], 1
sar esi, 1
mov dword [r14], esi
shr al, 1
inc al
mov byte [r14 + 9], al
add rsp, 0x40
pop r15
pop r14
pop rsi
ret
Function at 0x1401154e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rdi
push r14
sub rsp, 0x30
movzx r9d, byte [rdx + 9]
mov r14, rdx
mov r10d, dword [rdx + 4]
mov eax, r9d
mov qword [rsp + 0x50], rbx
mov edx, r9d
mov qword [rsp + 0x58], rsi
shr edx, 1
mov qword [rsp + 0x68], r12
mov r12, rcx
xor ecx, ecx
imul edx, r10d
mov qword [rsp + 0x28], r13
mov esi, ecx
mov qword [rsp + 0x20], r15
lea r15d, [rcx + 1]
add edx, dword [r14]
cmp r9d, edx
jge 0x14011553d
add eax, eax
inc esi
cmp eax, edx
jl 0x140115531
test esi, esi
jne 0x140115557
test r8d, r8d
jle 0x14011555a
movzx eax, byte [r14 + 0xa]
lea rbp, [r14 + 0xa]
add eax, eax
cmp eax, r9d
jae 0x14011557a
mov ecx, r15d
jmp 0x14011557e
test r8d, r8d
jns 0x14011557a
movzx eax, byte [r14 + 0xa]
lea rbp, [r14 + 0xa]
add eax, eax
cmp eax, r9d
jb 0x140115571
mov ecx, r15d
jmp 0x14011557e
test esi, esi
je 0x14011557a
mov ecx, r15d
jmp 0x14011557e
lea rbp, [r14 + 0xa]
mov eax, r8d
lea rbx, [0x1402dfd30]
cdq
mov edi, eax
mov eax, 0x16
xor edi, edx
sub edi, edx
add edi, edi
sub edi, r10d
sub edi, ecx
movsxd rcx, dword [r12 + 0x1210]
mov r13d, edi
mov ebx, dword [rbx + rcx*4]
mov ecx, esi
sar r13d, cl
sub eax, ebx
cmp r13d, eax
jge 0x1401155e9
lea eax, [r13 + 1]
cmp eax, 0x1f
jle 0x1401155d8
mov eax, r13d
mov rcx, r12
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov r8d, eax
mov ebx, eax
call fcn.1401041f0
sub r13d, ebx
mov ecx, esi
lea r8d, [r13 + 1]
mov ebx, r15d
shl ebx, cl
dec ebx
and ebx, edi
jmp 0x14011561a
mov r8d, 0x17
sub r8d, ebx
cmp r8d, 0x1f
jle 0x14011560f
xor edx, edx
mov rcx, r12
lea r8d, [rdx + 0x1f]
call fcn.1401041f0
mov r8d, 0xfffffff8
sub r8d, ebx
lea eax, [rdi - 1]
mov esi, 8
movzx ebx, al
mov rcx, r12
mov edx, r15d
call fcn.1401041f0
mov r8d, esi
mov edx, ebx
mov rcx, r12
call fcn.1401041f0
cmp dword [rsp + 0x60], 0
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
jge 0x140115655
inc byte [rbp]
sub edi, dword [r14 + 4]
movzx eax, byte [r14 + 9]
inc edi
sar edi, 1
add edi, dword [r14]
mov dword [r14], edi
cmp al, byte [r14 + 8]
jne 0x140115678
shr byte [rbp], 1
sar edi, 1
mov dword [r14], edi
shr al, 1
inc al
mov byte [r14 + 9], al
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret
Function at 0x140115690
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
push rbp
push rdi
push r14
sub rsp, 0x30
movzx r9d, byte [rdx + 9]
mov r14, rdx
mov r10d, dword [rdx + 4]
mov eax, r9d
mov qword [rsp + 0x50], rbx
mov edx, r9d
mov qword [rsp + 0x58], rsi
shr edx, 1
mov qword [rsp + 0x68], r12
mov r12, rcx
xor ecx, ecx
imul edx, r10d
mov qword [rsp + 0x28], r13
mov esi, ecx
mov qword [rsp + 0x20], r15
lea r15d, [rcx + 1]
add edx, dword [r14]
cmp r9d, edx
jge 0x1401156ed
add eax, eax
inc esi
cmp eax, edx
jl 0x1401156e1
test esi, esi
jne 0x140115707
test r8d, r8d
jle 0x14011570a
movzx eax, byte [r14 + 0xa]
lea rbp, [r14 + 0xa]
add eax, eax
cmp eax, r9d
jae 0x14011572a
mov ecx, r15d
jmp 0x14011572e
test r8d, r8d
jns 0x14011572a
movzx eax, byte [r14 + 0xa]
lea rbp, [r14 + 0xa]
add eax, eax
cmp eax, r9d
jb 0x140115721
mov ecx, r15d
jmp 0x14011572e
test esi, esi
je 0x14011572a
mov ecx, r15d
jmp 0x14011572e
lea rbp, [r14 + 0xa]
mov eax, r8d
lea rbx, [0x1402dfd30]
cdq
mov edi, eax
mov eax, 0x2e
xor edi, edx
sub edi, edx
add edi, edi
sub edi, r10d
sub edi, ecx
movsxd rcx, dword [r12 + 0x1210]
mov r13d, edi
mov ebx, dword [rbx + rcx*4]
mov ecx, esi
sar r13d, cl
sub eax, ebx
cmp r13d, eax
jge 0x140115799
lea eax, [r13 + 1]
cmp eax, 0x1f
jle 0x140115788
mov eax, r13d
mov rcx, r12
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov r8d, eax
mov ebx, eax
call fcn.1401041f0
sub r13d, ebx
mov ecx, esi
lea r8d, [r13 + 1]
mov ebx, r15d
shl ebx, cl
dec ebx
and ebx, edi
jmp 0x1401157c7
mov r8d, 0x2f
mov esi, 0x10
sub r8d, ebx
cmp r8d, 0x1f
jle 0x1401157c1
xor edx, edx
lea r8d, [rsi + 0xf]
mov rcx, r12
call fcn.1401041f0
mov r8d, esi
sub r8d, ebx
lea eax, [rdi - 1]
movzx ebx, ax
mov rcx, r12
mov edx, r15d
call fcn.1401041f0
mov r8d, esi
mov edx, ebx
mov rcx, r12
call fcn.1401041f0
cmp dword [rsp + 0x60], 0
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
jge 0x140115802
inc byte [rbp]
sub edi, dword [r14 + 4]
movzx eax, byte [r14 + 9]
inc edi
sar edi, 1
add edi, dword [r14]
mov dword [r14], edi
cmp al, byte [r14 + 8]
jne 0x140115825
shr byte [rbp], 1
sar edi, 1
mov dword [r14], edi
shr al, 1
inc al
mov byte [r14 + 9], al
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret