joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800097f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
lea r12d, [rcx - 9]
mov rbx, r8
mov r13, rdx
mov r14d, ecx
cmp ecx, r12d
jbe case.0x180009842.7
mov edi, dword [rsp + 0x90]
lea r15d, [rcx - 0x39]
lea rdx, [0x180000000]
cmp r15d, 0x13
ja case.0x180009842.2
mov ecx, dword [rdx + r15*4 + 0x9a74]
add rcx, rdx
jmp rcx
movzx eax, byte [r13 + reloc.SHLWAPI.dll_SHRegGetIntW]
mov byte [rsp + 0x30], al
jmp case.0x180009842.2
mov r8, qword [r13]
lea rcx, [r13 + 0x78]
mov rdx, qword [r13 + 0x100]
mov r9d, 0x12b
call fcn.1800107b0
mov byte [r13 + reloc.SHLWAPI.dll_SHRegGetIntW], al
lea rdx, [0x180000000]
dec r14d
dec r15d
cmp r14d, r12d
ja 0x180009831
jmp case.0x180009842.7
cmp byte [r13 + reloc.SHLWAPI.dll_SHRegGetIntW], 0
je case.0x180009842.2
mov byte [rsp + 0x30], 0
jmp case.0x180009842.7
mov eax, dword [rbx]
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x90], eax
xor r9d, r9d
lea rax, [r13 + 0x48]
xor edx, edx
mov r8d, 0x12c
mov qword [rsp + 0x20], rax
call fcn.180010070
test rax, rax
je 0x180009873
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 0x61]
call fcn.180053ed0
cmp eax, 1
jne 0x180009873
movsd xmm0, qword [0x18007acd0]
movsd qword [rsp + 0x30], xmm0
jmp case.0x180009842.7
mov rcx, qword [rbx]
test rcx, rcx
je 0x18000991b
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x180009910
jmp 0x18000991d
xor eax, eax
add eax, 8
lea r8, [rsp + 0x40]
mov dword [rsp + 0xa8], eax
mov edx, 0x12
cdqe
xor ecx, ecx
mov qword [rsp + 0x40], rax
call fcn.18005d4b0
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x90]
mov qword [r13], rax
mov r9d, 0xb9
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x90], 1
call fcn.18004eab0
mov rsi, qword [rbx]
mov ebp, 0x79
nop word [rax + rax]
mov eax, ebp
sub eax, 0x76
je 0x180009a21
sub eax, 3
je 0x1800099e4
cmp eax, 1
jne 0x1800099fd
xor r9d, r9d
mov dword [rsp + 0x90], edi
lea r8, [rsp + 0x38]
mov ecx, 0x128
lea rdx, [rsp + 0x90]
call fcn.180045490
test edi, edi
jle 0x1800099fd
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
movsxd rbx, edi
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
add qword [rsp + 0x38], rbx
jmp 0x1800099fd
test rsi, rsi
jne 0x1800099ed
xor edi, edi
jmp 0x1800099fd
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rsi + rdi], 0
jne 0x1800099f4
inc ebp
cmp ebp, 0x7c
jb 0x180009990
mov rbx, qword [rsp + 0xa0]
jmp 0x180009873
movsd xmm0, qword [rbx + 8]
movsd qword [rsp + 0x30], xmm0
jmp case.0x180009842.2
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, [rsp + 0x38]
lea rdx, [0x18007a85c]
call fcn.18005f710
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18002dd00
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rdi, rcx
mov rbx, rdx
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, dword [rsp + 0x50]
lea rdx, str._s:_d:
mov rcx, rax
mov r8, rbx
call fcn.18005f710
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r8, [rsp + 0x54]
mov rdx, rdi
mov rcx, rax
call fcn.18005f920
cmp byte [rdi], 0
je 0x18002ddb3
mov rax, 0xffffffffffffffff
cmp byte [rdi + rax + 1], 0
lea rax, [rax + 1]
jne 0x18002dd73
cmp byte [rax + rdi - 1], 0x3a
jne 0x18002ddb3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov ecx, 2
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rbx
lea rdx, [0x1800763e8]
mov rcx, rax
call fcn.18005f710
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, [0x1800763ec]
call fcn.18005f710
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x18002f660
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rbx, qword [rsp + 0x78]
mov r15, r9
imul ecx, edx, 0xaf
mov r13, r8
mov esi, edx
mov dword [rsp + 0x60], ecx
cmp edx, ecx
ja 0x18002f789
mov rbp, qword [rsp + 0xe0]
xor edi, edi
mov r12d, dword [rsp + 0xc8]
mov r14, qword [rsp + 0x78]
nop word [rax + rax]
cmp esi, 0xbc
ja 0x18002f769
je 0x18002f897
mov eax, esi
sub eax, 0x54
je 0x18002f752
sub eax, 0x42
je 0x18002f72f
cmp eax, 8
jne 0x18002f880
mov rax, qword [r13]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x78]
mov rax, qword [rsp + 0xe8]
lea rdx, [rsp + 0x68]
mov ecx, 0x2a
mov dword [rsp + 0x68], 1
mov qword [rsp + 0x20], rbp
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
call fcn.180057280
mov ecx, dword [rsp + 0x60]
jmp 0x18002f880
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.error__n
call fcn.18005f710
mov ecx, dword [rsp + 0x60]
jmp 0x18002f880
mov rax, qword [rsp + 0xe8]
mov r14, rdi
mov r12d, dword [rax + 0x504]
jmp 0x18002f880
cmp esi, 0x888
je 0x18002f7a7
cmp esi, 0xf3c
je 0x18002f8e3
cmp esi, 0x10bc
jne 0x18002f880
mov rax, rbx
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test r13, r13
je 0x18002f87d
test r15, r15
je 0x18002f87d
mov qword [rsp + 0x50], rdi
lea eax, [r12*4]
mov qword [rsp + 0x48], rdi
xor r9d, r9d
mov qword [rsp + 0x40], rdi
xor r8d, r8d
mov qword [rsp + 0x38], rbp
xor edx, edx
mov dword [rsp + 0x68], eax
mov ecx, 0xfd
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.1800227c0
mov r14, rax
test r12d, r12d
jle 0x18002f879
mov rdi, qword [rsp + 0xc0]
mov r10, r13
sub r10, r15
mov r9d, r12d
mov r11, rax
mov rcx, r15
sub r11, r15
mov edx, dword [rdi]
mov r8d, 0x10000
mov eax, dword [r10 + rcx]
sub r8d, edx
and eax, 0x7fff
imul r8d, eax
mov eax, dword [rcx]
and eax, 0x7fff
imul edx, eax
add edx, 0x8000
add edx, r8d
sar edx, 0x10
mov dword [r11 + rcx], edx
test dword [r10 + rcx], 0x8000
je 0x18002f86d
test dword [rcx], 0x8000
je 0x18002f86d
bts edx, 0xf
mov dword [r11 + rcx], edx
add rcx, 4
sub r9, 1
jne 0x18002f821
xor edi, edi
mov ecx, dword [rsp + 0x60]
mov rbx, r14
imul eax, dword [rsp + 0xc8], 0x19
add esi, eax
cmp esi, ecx
jbe 0x18002f6c0
jmp 0x18002f789
cmp dword [rbp + 8], 0
je 0x18002f8cd
mov rax, qword [rsp + 0xe8]
movsxd rax, dword [rax]
test eax, eax
jns 0x18002f8d6
cmp dword [rbp + 0x80], 3
jl 0x18002f8cd
movsxd rax, dword [rbp + 0x88]
lea rcx, [rax + rax*4]
mov rax, qword [rbp + 0x68]
lea rax, [rax + rcx*8]
jmp 0x18002f78c
mov rax, qword [rbp + 0x68]
jmp 0x18002f78c
cmp eax, dword [rbp + 0x40]
jl 0x18002f8bc
mov rax, rdi
jmp 0x18002f78c
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x18003cc80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov ebx, dword [rsp + 0x80]
mov rbp, r9
imul r13d, ecx, 0xcb
mov r14, r8
mov r15, rdx
mov r12d, ecx
mov edi, ecx
cmp ecx, r13d
ja 0x18003ce21
mov rsi, qword [rsp + 0xa0]
xor ecx, ecx
cmp edi, 0x117
ja 0x18003ce09
je 0x18003cdca
mov eax, edi
sub eax, 0x49
je 0x18003ce9a
sub eax, 0x32
je 0x18003cd63
cmp eax, 0x63
jne 0x18003ce8a
mov eax, dword [r14]
test eax, eax
je 0x18003cd59
nop dword [rax]
dec dword [r14]
mov r9d, 0x60
movsx eax, byte [r15]
mov r8, rsi
mov qword [rsp + 0x38], rcx
xor edx, edx
mov dword [rsp + 0x40], eax
inc r15
lea rax, [rsp + 0x80]
mov dword [rsp + 0x80], 8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call fcn.18002bb20
cmp dword [r14], 0
mov ecx, 0
jne 0x18003cd00
xor eax, eax
dec eax
mov dword [r14], eax
jmp 0x18003ce8a
test r14, r14
jne 0x18003cd78
lea rcx, str.task_log.js
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r14, rax
test r15, r15
jne 0x18003cd8d
lea rcx, str._implicit_1_
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r15, rax
test rsi, rsi
je 0x18003ce21
mov r9d, dword [rbp]
cmp r9d, 5
jge 0x18003ceb0
mov dword [rsp + 0x80], r9d
lea rdx, [rsp + 0x80]
xor r9d, r9d
mov r8d, 0x85
mov rcx, rsi
call fcn.180051420
jmp 0x18003ce8a
mov ebx, ecx
mov rax, rcx
movsxd rcx, dword [r15]
test ecx, ecx
jle 0x18003cdff
movsxd r9, dword [rbp]
mov r8, r14
sub r8, rsi
mov r10, rcx
cmp rax, r9
jge 0x18003cdff
lea rdx, [rax + rsi]
movzx ecx, byte [r8 + rdx]
cmp byte [rdx], cl
jne 0x18003cdff
inc ebx
inc rax
cmp rax, r10
jl 0x18003cde3
mov edi, SHRegGetIntW
jmp 0x18003ce8a
cmp edi, 0xe6a
je 0x18003ce63
cmp edi, 0x1c59
je 0x18003ce41
cmp edi, 0x20b2
jne 0x18003ce8a
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, dword [rbp]
lea rcx, [rsp + 0x80]
mov r8d, 0x24
mov dword [rsp + 0x80], eax
mov rdx, rsi
call fcn.18003b370
jmp 0x18003ce8a
mov eax, dword [rbp]
lea r8, [rsp + 0x80]
mov r9, r14
mov dword [rsp + 0x80], eax
mov edx, 0x75
mov qword [rsp + 0x20], r15
mov rcx, rsi
call fcn.180053ed0
imul eax, r12d, 0x1d
add edi, eax
cmp edi, r13d
ja 0x18003ce21
jmp 0x18003ccc9
test rsi, rsi
je 0x18003cea9
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm0
mov eax, ecx
jmp 0x18003ce23
xor r8d, r8d
lea rdx, [0x180074bc1]
lea rcx, str.IPDL::PLayerTransaction::SendSetTestSampleTime
call fcn.18002dd00
int3
Function at 0x180043d50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov rax, qword [0x180081de0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov ebx, dword [rsp + 0x28]
lea r13d, [r8 + 0x414]
mov r15d, r8d
mov r12, rdx
mov r14, rcx
cmp r8d, r13d
jae 0x180043ee2
mov rsi, qword [rsp + 0x28]
movzx r10d, byte [rsp + 0x20]
movzx r11d, byte [rsp + 0x20]
movzx edi, byte [rsp + 0x20]
nop dword [rax]
cmp r15d, 0xbe
ja 0x180043ed3
je 0x180043ecd
mov eax, r15d
sub eax, 0xe
je 0x180043e8b
sub eax, 0x72
je 0x180043f29
cmp eax, 0x3c
jne 0x180043f17
cmp qword [r14 + 0x18], 0x10
mov rbp, r14
jb 0x180043dee
mov rbp, qword [r14]
cmp rsi, qword [r14 + 0x10]
jae 0x180043e7e
nop dword [rax + rax]
mov eax, 0x4d
cmp eax, 0x4d
je 0x180043e3d
cmp eax, 0x108
je 0x180043e29
cmp eax, 0x1c3
jne 0x180043e68
movzx ecx, dil
movzx edx, byte [rsp + rcx + 0x30]
xor byte [rsi + rbp], dl
inc rsi
jmp 0x180043e68
movzx edx, r11b
movzx ecx, r10b
movzx edi, byte [rsp + rdx + 0x30]
add dil, byte [rsp + rcx + 0x30]
jmp 0x180043e68
inc r10b
lea r8, [rsp + 0x30]
movzx ecx, r10b
lea rdx, [rsp + 0x30]
add r8, rcx
movzx r9d, byte [r8]
add r11b, r9b
movzx ecx, r11b
add rdx, rcx
movzx ecx, byte [rdx]
mov byte [r8], cl
mov byte [rdx], r9b
add eax, 0xbb
cmp eax, 0x27e
jb 0x180043e05
cmp rsi, qword [r14 + 0x10]
jb 0x180043e00
mov byte [rsp + 0x130], r10b
jmp 0x180043f17
xor esi, esi
mov r8, r12
cmp qword [r12 + 0x18], 0x10
jb 0x180043e9c
mov r8, qword [r12]
mov eax, dword [r12 + 0x10]
lea r9, [rsp + 0x28]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x28], eax
mov ecx, 0x102
call fcn.1800576b0
movzx r10d, byte [rsp + 0x130]
movzx r11d, byte [rsp + 0x131]
jmp 0x180043f17
mov ebx, dword [r14 + 0x40]
jmp 0x180043f17
mov eax, r15d
sub eax, 0x16a
je 0x180043f0f
cmp eax, 2
jne 0x180043f17
mov eax, ebx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18005fed0
mov rbx, qword [rsp + 0x1a0]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov byte [rsp + 0x131], r11b
add r15d, 0xae
cmp r15d, r13d
jb 0x180043db0
jmp 0x180043ee2
xor eax, eax
jmp 0x180043ee4
Function at 0x18004a0b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov ebx, ecx
test rdx, rdx
je 0x18004a0e8
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rdx, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov rcx, rax
call fcn.18005f920
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x180052fd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
lea edi, [rdx + 7]
mov r14, r9
mov rsi, r8
mov rbp, rcx
cmp edx, edi
jae case.0x180053029.1
lea ebx, [rdx - 0x3c]
mov rdx, qword [rsp + 0x28]
lea r15, [0x180000000]
nop dword [rax + rax]
cmp ebx, 0x15
ja case.0x180053029.6
movzx eax, byte [r15 + rbx + 0x530fc]
mov ecx, dword [r15 + rax*4 + 0x530e0]
add rcx, r15
jmp rcx
mov rax, qword [rsi + 8]
mov qword [rsp + 0x20], rax
jmp case.0x180053029.6
mov qword [rsp + 0x20], rdx
jmp case.0x180053029.6
cmp qword [rsi + 0x18], 0
jne case.0x180053029.1
mov qword [rsi + 0x18], r14
jmp case.0x180053029.6
lea r8, [rsp + 0x28]
mov qword [rsp + 0x28], 7
mov edx, 0x12
xor ecx, ecx
call fcn.18005d4b0
mov ecx, dword [str.Passed]
mov rdx, rax
mov dword [rax], ecx
movzx ecx, word [0x1800780dc]
mov word [rax + 4], cx
movzx ecx, byte [0x1800780de]
mov byte [rax + 6], cl
inc ebx
lea ecx, [rbx + 0x3c]
cmp ecx, edi
jb 0x180053010
jmp case.0x180053029.1
mov r8d, dword [r14]
mov rdx, rbp
mov ecx, dword [rsi]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cmp eax, 0xffffffff
je 0x1800530c4
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov r8d, 0xfffffffc
lea rdx, [0x180074bc1]
lea rcx, str.Bad_datetime_string:_
call fcn.18002dd00
int3
Function at 0x18005f230
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov eax, dword [rsp + 0x80]
mov r15, r9
imul r10d, r8d, 0x16c
mov r9d, r8d
mov rbp, rcx
mov r14d, r8d
mov dword [rsp + 0x20], r10d
cmp r8d, r10d
ja 0x18005f3b0
mov r13, qword [rsp + 0x20]
lea r11, [0x180081ef0]
cmp r14d, 0x2e6
ja 0x18005f330
je 0x18005f3b0
mov ecx, r14d
sub ecx, 0xe
je 0x18005f2d8
sub ecx, 0xfa
je 0x18005f2d0
cmp ecx, 0x11
jne 0x18005f38a
mov r8d, dword [rdx]
test r8d, r8d
je 0x18005f2c7
mov edx, dword [r15 + 0x28]
add edx, r8d
cmp edx, dword [r15 + 0x24]
jg 0x18005f3a0
add dword [r15 + 0x28], r8d
jmp 0x18005f38a
mov r13, rdx
jmp 0x18005f38a
xor esi, esi
cmp dword [rbp], esi
jle 0x18005f32c
mov r12, rdx
mov rbx, r15
sub r12, r15
nop dword [rax + rax]
movsx ecx, byte [r12 + rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
movsx ecx, byte [rbx]
mov edi, eax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
cmp eax, edi
jne 0x18005f3a7
inc esi
inc rbx
cmp esi, dword [rbp]
jl 0x18005f2f0
mov r9d, dword [rsp + 0x80]
lea r11, [0x180081ef0]
mov r10d, dword [rsp + 0x20]
xor eax, eax
jmp 0x18005f38a
cmp r14d, 0x36a8
je 0x18005f350
cmp r14d, 0x3a2d
je 0x18005f3ae
cmp r14d, 0x6c48
jne 0x18005f38a
mov eax, dword [r15]
jmp 0x18005f3b0
cmp qword [rbp], 0
jbe 0x18005f38a
nop word [rax + rax]
movzx ecx, byte [r13]
inc r13
mov r8d, dword [r15]
xor rcx, r8
movzx edx, cl
shr r8d, 8
mov ecx, dword [r11 + rdx*4]
xor ecx, r8d
mov dword [r15], ecx
dec qword [rbp]
cmp qword [rbp], 0
ja 0x18005f360
imul ecx, r9d, 0x34
add r14d, ecx
cmp r14d, r10d
ja 0x18005f3b0
mov rdx, qword [rsp + 0x78]
jmp 0x18005f282
mov eax, 0xffffff7d
jmp 0x18005f3b0
mov eax, 1
jmp 0x18005f3b0
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x40c230
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00418ea0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00418ea0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x40c2a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x005e6614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x40c448
mov rax, qword [0x005e6618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40c2ec
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40c377
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x40c2d0
mov rcx, r12
call fcn.0040d000
mov rbp, rax
test rax, rax
je 0x40c482
mov rax, qword [0x005e6618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.0040d130
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x005e6618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40c491
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40c370
sub eax, 4
and eax, 0xfffffffb
jne 0x40c400
add dword [0x005e6614], 1
cmp ebx, 8
jae 0x40c3a8
test bl, 4
jne 0x40c450
test ebx, ebx
je 0x40c399
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x40c470
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40c399
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40c3da
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x005e6618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40c370
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040c230
nop dword [rax]
xor edi, edi
jmp 0x40c2f7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x40c399
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x40c399
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0040c230
mov rax, qword [0x005e6618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0040c230
nop
nop dword [rax]
Function at 0x40cc70
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x005e6900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x005e68e0]
test rbx, rbx
je 0x40ccc4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40ccbb
test r12, r12
je 0x40ccbb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40cca0
lea rcx, [0x005e6900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x40d000
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00515200]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x40d079
mov rcx, r10
call fcn.0040ced0
test eax, eax
je 0x40d079
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x40d076
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40d06d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x40d079
add r8, 0x28
cmp r8, r9
jne 0x40d058
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x40d370
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x005e68e8]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x40cd00
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x40cd53
mov dword [rax], edi
lea rcx, [0x005e6900]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x005e68e0]
lea rcx, [0x005e6900]
mov qword [0x005e68e0], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x40ccf6
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x40d3a0
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x419000
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x419010
xor eax, eax
ret
jmp 0x40cce0

Function at 0x40d3e0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x40d420
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40d438
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]