joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008fc60
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
cmp byte [rcx + 0xf1e], 0
movsxd r10, r9d
je 0x14008fd84
cmp r8d, 0xff
jne 0x14008fcc1
lea eax, [r10 - 0xec]
cmp eax, 0x13
ja 0x14008fcab
lea r8, [0x140000000]
mov r9, qword [r8 + r10*8 + 0xff520]
mov r8, rdx
lea rdx, str._s_IAC__s_n
add rsp, 0x38
jmp fcn.14006c2c0
mov r8, rdx
mov r9d, r10d
lea rdx, str._s_IAC__d_n
add rsp, 0x38
jmp fcn.14006c2c0
cmp r8d, 0xfb
jne 0x14008fcd3
lea r9, str.WILL
jmp 0x14008fd11
cmp r8d, 0xfc
jne 0x14008fce5
lea r9, str.WONT
jmp 0x14008fd11
cmp r8d, 0xfd
jne 0x14008fcf7
lea r9, [0x1400fff44]
jmp 0x14008fd11
xor r9d, r9d
lea rax, str.DONT
cmp r8d, 0xfe
cmove r9, rax
test r9, r9
je 0x14008fd6d
cmp r10d, 0x27
jg 0x14008fd44
lea r8, [0x140000000]
mov r8, qword [r8 + r10*8 + 0xffb40]
test r8, r8
jne 0x14008fd54
mov r8, rdx
mov dword [rsp + 0x20], r10d
lea rdx, str._s__s__d_n
call fcn.14006c2c0
add rsp, 0x38
ret
cmp r10d, 0xff
jne 0x14008fd2b
lea r8, str.EXOPL
mov qword [rsp + 0x20], r8
mov r8, rdx
lea rdx, str._s__s__s_n
call fcn.14006c2c0
add rsp, 0x38
ret
mov r9d, r8d
mov dword [rsp + 0x20], r10d
mov r8, rdx
lea rdx, str._s__d__d_n
call fcn.14006c2c0
add rsp, 0x38
ret

Function at 0x1400900d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx]
mov edi, r8d
mov esi, edx
mov byte [rax + 0x10], 0xff
xor r9d, r9d
mov byte [rax + 0x11], sil
mov rbx, rcx
mov byte [rax + 0x12], dil
mov rcx, qword [rcx + 0x4c0]
lea rdx, [rax + 0x10]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14009012f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14006c140
mov rcx, qword [rbx]
lea rdx, str.SENT
mov r9d, edi
mov r8d, esi
call fcn.14008fc60
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400902e0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140090488
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140090345
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140090345
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140090345
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14009037c
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x1400903d2
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400903d2
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400903d2
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400903d2
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1400903d2
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.14008fd90
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140090434
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14006c140
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140090160
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140090480
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14006c140
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140091bf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140ae95a8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x140091c85
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140091ce6
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14006c140
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400a4e30
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x140091da1
sub ecx, 1
je 0x140091e14
sub ecx, 1
je 0x140091d50
cmp ecx, 1
je 0x140091d33
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1400a9934]
call fcn.14006c140
jmp 0x140091e14
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140091920
test eax, eax
je 0x140091e14
jmp 0x140091cba
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140091e14
sub rax, rsi
cmp rax, rbp
jae 0x140091e14
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14006c2c0
jmp 0x140091e14
cmp r8d, 4
jle 0x140091e14
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140091e14
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14006c060
mov esi, eax
test eax, eax
je 0x140091df3
mov edx, 5
mov rcx, rbx
call fcn.1400928e0
mov eax, esi
jmp 0x140091cba
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14007ab40
mov rcx, r14
call fcn.14007ae20
test eax, eax
je 0x140091cb8
mov edx, 5
mov rcx, rbx
call fcn.1400928e0
mov eax, Ordinal_46
jmp 0x140091cba
Function at 0x1400a4bb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x1400a4bf2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400a4c39
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400a4c92
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400a4c50
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400a4cd3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401030c2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401030c3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400a4ca0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x180001ba0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x180001bbe
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x180001bda
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180001bf1
cmp byte [rcx + 1], 0x25
jne 0x180001c35
movsxd rax, dword [rcx + 2]
add rcx, 6
jmp 0x180001bfd
cmp al, 0xe9
jne 0x180001c35
movsxd rax, dword [rcx + 1]
add rcx, 5
add rcx, rax
cmp rcx, r9
jae 0x180001c20
cmp rcx, 0xffffffff80000000
jae 0x180001c17
lea rdi, [rcx + 0x7ff80000]
jmp 0x180001c35
mov rdi, 0xfffffffffff80000
jmp 0x180001c35
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180001c35
mov ebx, 0x80000
mov rax, qword [0x18006c3f8]
mov rcx, qword [0x18006c408]
test rax, rax
jne 0x180001c57
test rcx, rcx
je 0x180001c6e
mov rax, rcx
mov qword [0x18006c3f8], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x180001c6e
cmp rdx, rbx
jb 0x180001c6e
cmp rdx, rdi
jbe 0x180001d19
mov qword [0x18006c3f8], rcx
mov rax, rcx
test rcx, rcx
je 0x180001ca9
test rcx, rcx
je 0x180001c99
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x180001c99
cmp rcx, rbx
jb 0x180001c99
cmp rcx, rdi
jbe 0x180001d19
mov rax, qword [rax + 8]
mov qword [0x18006c3f8], rax
test rax, rax
jne 0x180001c82
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.180001ad0
test rax, rax
je 0x180001d5c
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x18006c3f8], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x18006c408]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x18006c408], rax
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x180001d01
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x180001d5c
cmp rdx, rdi
ja 0x180001d5c
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x180061f80]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180018060
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x18006b3b0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x18006bfe8]
mov edi, ecx
cmp byte [rbx + 0x427d], 0
jne 0x1800180c1
cmp byte [rbx + 0x427e], 0
jne 0x1800180c1
movsx r9d, word [rbx + 0x5362]
lea r8, [0x18005fdd8]
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.180009770
test dil, 1
je 0x1800181e8
jmp 0x18001814a
movss xmm1, dword [rbx + 0x38b0]
lea r8, [0x18005fdd8]
movsx r9d, word [rbx + 0x5362]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x180061a50]
mulss xmm1, dword [0x180061a38]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xd94]
addss xmm1, dword [rbx + 0xd98]
mov qword [rbx + 0x3ff8], rax
mov dword [rbx + 0x3fe4], 1
movss dword [rbx + 0x3ff0], xmm0
movss dword [rbx + 0x3ff4], xmm1
movss xmm0, dword [rbx + 0x3918]
mulss xmm0, dword [0x180061948]
or dword [rbx + 0x3fe0], 0x41
movss dword [rbx + 0x4040], xmm0
call fcn.180009770
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x1800181a0
lea r11, [0x180059eb0]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x180018183
cmp byte [r8], r9b
jne 0x180018183
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x180018170
not ecx
call fcn.180010e40
test rax, rax
je 0x1800181e8
cmp byte [rax + 0x96], 0
je 0x1800181e8
mov byte [rax + 0x9d], 1
lea r8, [0x18005fdd8]
mov byte [rax + 0xb8], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5362]
mov edx, 0x10
movsx r9d, word [rbx + 0x5362]
call fcn.180009770
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.1800136f0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180053970
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x18001c870
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5410], 0
lea rbx, [rcx + 0x5418]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x18001c917
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x18001c8ca
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180006460
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.18000a080
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5410]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5420]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x18006be05]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x18001c91f
mov rcx, rbx
call fcn.18000a080
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x180042fe0
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
cmp byte [0x18006c139], 0
je 0x18004310d
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], rdi
call fcn.18004d8f0
mov rcx, qword [0x18006bdd8]
mov rdi, rax
mov rdx, qword [rcx]
mov r8, qword [rdx + 0x30]
lea rdx, str.com_craftrise_client_S
call r8
mov rcx, qword [0x18006bdd8]
lea r9, str.__Lcom_craftrise_client_fa_
lea r8, [0x1800605ec]
mov qword [0x18006c2a8], rax
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x108]
mov rdx, rax
call r10
mov rbx, rax
call fcn.18004d8f0
mov rcx, qword [0x18006bdd8]
mov r8, rbx
mov rdx, rax
call fcn.18003f890
test rdi, rdi
mov rdi, qword [rsp + 0x30]
je 0x180043108
mov ecx, 0x57
movaps xmmword [rsp + 0x20], xmm6
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
movsd xmm6, qword [0x1800619a8]
jae 0x180043096
movaps xmm0, xmm6
call fcn.180042df0
mov ecx, 0x41
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1800430b0
movaps xmm0, xmm6
call fcn.180042df0
mov ecx, 0x53
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1800430ca
movaps xmm0, xmm6
call fcn.180042df0
mov ecx, 0x44
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x1800430e4
movaps xmm0, xmm6
call fcn.180042df0
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
movaps xmm6, xmmword [rsp + 0x20]
jae 0x180043108
movsd xmm0, qword [0x1800619b0]
call fcn.180042df0
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x180046740
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x18006b3b0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
cmp byte [0x18006d220], sil
jne 0x18004678d
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, [0x180016050]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [0x18006d220], 1
mov rbx, qword [0x18006bfe8]
mov rax, qword [rbx + 0x3ed8]
mov byte [rax + 0x98], 1
mov rax, qword [rbx + 0x3ed8]
movss xmm0, dword [rax + 0x1c]
subss xmm0, dword [rax + 0x68]
addss xmm0, dword [0x180061a90]
movss xmm2, dword [rax + 0x18]
subss xmm2, dword [rax + 0x64]
addss xmm2, dword [0x180061adc]
movss dword [rax + 0xe0], xmm2
movss dword [rax + 0xe4], xmm0
movss xmm1, dword [rax + 0xfc]
maxss xmm1, xmm0
movss xmm0, dword [rax + 0xf8]
maxss xmm0, xmm2
movss dword [rax + 0xf8], xmm0
movss dword [rax + 0xfc], xmm1
movss xmm0, dword [0x180061b18]
movss dword [rsp + 0x40], xmm0
movss xmm1, dword [0x180061b00]
movss dword [rsp + 0x44], xmm1
mov rax, qword [rbx + 0x3ed8]
mov byte [rax + 0x98], 1
mov rax, qword [rbx + 0x3ed8]
movsxd rcx, dword [rax + 0xd0]
mov rax, qword [rax + 0xd8]
mov r8d, dword [rax + rcx*4 - 4]
xor edx, edx
lea rcx, [0x18005fb7e]
call fcn.1800098e0
mov edi, eax
cmp dword [rbx + 0x3f0c], eax
jne 0x180046874
lea r8, [0x18005fb7e]
mov edx, 0xb
mov ecx, eax
call fcn.18001dc80
lea r8, [rsp + 0x40]
mov edx, edi
lea rcx, [0x18005fb7e]
call fcn.18003dc50
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x100
lea rbx, [0x18006c000]
mov r8, rbx
xor edx, edx
lea rcx, str.Takim_arkadasi_ismi_:
call fcn.1800393e0
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x40]
lea rcx, str.Guncelle
call fcn.1800331c0
test al, al
je 0x18004697b
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x180046900
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.180004b30
nop
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
lea rcx, [0x18006b448]
call fcn.180004b30
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x18004697b
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180046976
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180046976
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800539cc
call fcn.180010b70
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180053970
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004e3190]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x004e31a0]
mov dword [rax], 1
mov rax, qword [0x004e31b0]
mov dword [rax], 1
mov rax, qword [0x004e3180]
mov dword [rax], 1
mov rax, qword [0x004e3040]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x004e3170]
mov dword [0x00517008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004e3130]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004e24c0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058
Function at 0x40bd90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x005176c4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x40bf18
mov rax, qword [0x005176c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x40bddc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x40be65
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x40bdc0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x40bf4d
mov rax, qword [0x005176c8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x005176c8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40bf30
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40be5e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x40bec0
add dword [0x005176c4], 1
cmp edi, 8
jae 0x40be93
test dil, 4
jne 0x40bf04
test edi, edi
je 0x40be88
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x40bf1f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x40be88
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x40beac
jmp 0x40be88
add rsi, qword [0x005176c8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40be5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x40be88
xor esi, esi
jmp 0x40bde7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x40be88
mov rax, qword [0x005176c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x40c6a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x005179a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00517980]
test rbx, rbx
je 0x40c6f4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40c6eb
test rsi, rsi
je 0x40c6eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40c6d0
lea rcx, [0x005179a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]