joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001020
Capabilities:
Connect socket
Get common file path
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set current directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r15
push rbp
lea rbp, [rax - 0x8d8]
sub rsp, 0x9d0
mov ecx, 0x202
lea rdx, [rbp + 0x730]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x180001079
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Error
lea rdx, str.WSAStartup_failed
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x180001254
mov edx, 1
lea r15d, [rdx + 1]
mov ecx, r15d
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1800010b7
lea r9d, [r15 + 0xe]
xor ecx, ecx
lea r8, str.Error
lea rdx, str.Socket_creation_failed
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x18000124e
lea rcx, str.127.0.0.1
mov word [rsp + 0x20], r15w
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, 0x1388
mov dword [rsp + 0x24], eax
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov word [rsp + 0x22], ax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x180001103
lea rdx, str.Failed_to_connect_to_server
jmp 0x180001230
mov r14d, 0x400
jmp 0x180001204
mov eax, eax
lea rdx, [0x180014424]
mov r8, r15
lea rcx, [rsp + 0x30]
mov byte [rsp + rax + 0x30], 0
call fcn.180005b90
test eax, eax
jne 0x180001149
lea rcx, [rsp + 0x33]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x180001204
lea rdx, str.Failed_to_change_directory
jmp 0x1800011ac
lea rdx, str.getcwd
lea rcx, [rsp + 0x30]
call fcn.180005a50
test eax, eax
jne 0x18000118c
lea rdx, [rsp + 0x30]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rcx, [rsp + 0x30]
call fcn.180005ad0
mov r8, rax
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
jmp 0x180001204
lea rdx, [0x18001444c]
lea rcx, [rsp + 0x30]
call fcn.180006560
mov rsi, rax
test rax, rax
jne 0x1800011e5
lea rdx, str.Failed_to_execute_command
lea r8, str.Error
mov r9d, reloc.WS2_32.dll_recv
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x180001204
lea rcx, [rbp + 0x330]
call fcn.180005ad0
mov r8, rax
lea rdx, [rbp + 0x330]
xor r9d, r9d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov r8, rsi
lea rcx, [rbp + 0x330]
mov edx, r14d
call fcn.180005d78
test rax, rax
jne 0x1800011c3
mov rcx, rsi
call fcn.180006488
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov r8d, r14d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x18000110e
lea rdx, str.Connection_closed
je 0x180001230
lea rdx, str.recv_failed
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea r11, [rsp + 0x9d0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov r15, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180001910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
mov eax, 0x25b0
call fcn.180001c50
sub rsp, rax
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
xor esi, esi
mov ebp, r8d
mov r14, rdx
mov r10, rcx
mov r9d, dword [rax + rcx + 0x88]
add r9, rcx
mov r15d, dword [r9 + 0x1c]
mov r11d, dword [r9 + 0x20]
add r15, rcx
mov edi, dword [r9 + 0x24]
add r11, rcx
mov r9d, dword [r9 + 0x18]
add rdi, rcx
test r9d, r9d
je 0x1800019c5
mov ecx, dword [r11]
mov eax, 0x775a
add rcx, r10
cmp word [rcx], ax
jne 0x1800019b6
mov al, byte [rcx]
xor r8d, r8d
inc rcx
ror r8d, 0xd
movsx eax, al
add r8d, eax
mov al, byte [rcx]
test al, al
jne 0x180001980
movzx eax, word [rdi]
mov edx, ebx
inc ebx
add rdx, rdx
mov ecx, dword [r15 + rax*4]
add rcx, r10
mov dword [rsp + rdx*8 + 0x28], r8d
mov qword [rsp + rdx*8 + 0x30], rcx
cmp ebx, 0x258
je 0x1800019c5
inc esi
add r11, 4
add rdi, 2
cmp esi, r9d
jb 0x18000196b
xor edx, edx
mov dword [rsp + 0x20], ebx
lea eax, [rbx - 1]
test eax, eax
je 0x180001a35
mov eax, ebx
xor ecx, ecx
sub eax, edx
cmp eax, 1
je 0x180001a2c
lea r10d, [rcx + 1]
mov r9d, ecx
add r9, r9
mov r8d, r10d
add r8, r8
mov rdi, qword [rsp + r9*8 + 0x30]
mov r11, qword [rsp + r8*8 + 0x30]
cmp rdi, r11
jbe 0x180001a1e
mov ecx, dword [rsp + r9*8 + 0x28]
mov eax, dword [rsp + r8*8 + 0x28]
mov dword [rsp + r9*8 + 0x28], eax
mov dword [rsp + r8*8 + 0x28], ecx
mov qword [rsp + r9*8 + 0x30], r11
mov qword [rsp + r8*8 + 0x30], rdi
mov ebx, dword [rsp + 0x20]
mov eax, ebx
mov ecx, r10d
sub eax, edx
dec eax
cmp r10d, eax
jb 0x1800019dd
inc edx
lea eax, [rbx - 1]
cmp edx, eax
jb 0x1800019d2
xor esi, esi
test ebp, ebp
je 0x180001a92
mov rdi, r14
xor eax, eax
test ebx, ebx
je 0x180001a72
mov rdx, qword [rdi]
mov r8d, dword [rdx]
mov ecx, eax
add rcx, rcx
cmp dword [rsp + rcx*8 + 0x28], r8d
je 0x180001a5e
inc eax
cmp eax, ebx
jb 0x180001a4a
jmp 0x180001a72
mov rcx, qword [rsp + rcx*8 + 0x30]
mov dword [rdx + 8], eax
mov rdx, qword [rdi]
call fcn.180001274
test eax, eax
je 0x180001ab4
inc esi
add rdi, 8
cmp esi, ebp
jb 0x180001a3e
xor ecx, ecx
mov rax, qword [r14]
cmp qword [rax + 0x10], 0
je 0x180001ab4
inc ecx
add r14, 8
cmp ecx, ebp
jb 0x180001a7e
mov eax, 1
lea r11, [rsp + 0x25b0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
xor eax, eax
jmp 0x180001a97
Function at 0x180007de0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x180007dbd
call fcn.180007bc0
mov dword [rax], socket
call fcn.180007a84
or eax, 0xffffffff
jmp 0x180007dda
sub dword [rcx + 0x10], 1
jns 0x180007dcc
add rsp, 0x28
jmp 0x18000cda4
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x180007d9c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x18000cdd6
call fcn.180007bc0
mov dword [rax], socket
call fcn.180007a84
jmp 0x18000cef5
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18000cef5
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18000cef5
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18000ce05
lock or dword [rcx + 0x14], 0x10
jmp 0x18000cef5
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18000ce19
call fcn.180010268
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.180007be0
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.180010780
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18000cee3
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x18000ceae
mov rcx, rsi
call fcn.180007be0
cmp eax, edi
je 0x18000ce99
mov rcx, rsi
call fcn.180007be0
cmp eax, 0xfffffffe
je 0x18000ce99
mov rcx, rsi
call fcn.180007be0
movsxd rbx, eax
lea r14, [0x18001ee30]
mov rcx, rsi
sar rbx, 6
call fcn.180007be0
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x18000cea0
lea rdx, [0x18001e160]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18000ceae
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18000ced2
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18000ced2
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18000ced2
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x18000cef8
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x18000b72c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000b75c
xor eax, eax
jmp 0x18000b81f
mov rbp, rbx
cmp word [rax], si
je 0x18000b781
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000b768
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000b764
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000b67c
movsxd r14, eax
test eax, eax
jne 0x18000b7bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000b755
mov rcx, r14
call fcn.18000ca48
mov rdi, rax
test rax, rax
jne 0x18000b7d8
xor ecx, ecx
call fcn.1800080d4
jmp 0x18000b7b4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000b67c
test eax, eax
jne 0x18000b809
mov rcx, rdi
call fcn.1800080d4
jmp 0x18000b813
xor ecx, ecx
call fcn.1800080d4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x18000edb0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1800086bc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18000ee3a
cmp byte [rbp - 0x21], r15b
je 0x18000ee35
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18000ee70
call fcn.18000be9c
test eax, eax
jne 0x18000ee5c
cmp byte [rbp - 0x21], r15b
je 0x18000ee54
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18000ee70
cmp byte [rbp - 0x21], r15b
je 0x18000ee6d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.180008540
test eax, eax
jne 0x18000ef10
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800086bc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18000eeaf
cmp byte [rbp - 0x21], r15b
je 0x18000eee4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18000eee4
call fcn.18000be9c
test eax, eax
jne 0x18000eed0
cmp byte [rbp - 0x21], r15b
je 0x18000eec9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18000eee4
cmp byte [rbp - 0x21], r15b
je 0x18000eee1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.180008540
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18000ef10
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18000ef13
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18000ef21
mov rcx, rdi
call fcn.1800080d4
cmp byte [rbp + 0x3f], r15b
je 0x18000ef30
mov rcx, qword [rbp + 0x27]
call fcn.1800080d4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1800102d4
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x18001ee30]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x180010332
cmp word [rdx], r12w
jne 0x180010332
or byte [rax + r8*8 + 0x38], cl
jmp 0x180010338
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180010493
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18001046e
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180010371
mov rcx, r9
jmp 0x180010394
cmp r9, rdx
jae 0x1800103ab
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x180010355
jmp 0x180010493
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180010468
cmp dword [rsp + 0x80], edi
je 0x180010468
mov rdx, r14
lea r11, [0x18001ee30]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x180010441
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180010414
mov word [rbx], r12w
jmp 0x18001048f
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x18001041d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18001048f
cmp word [rsp + 0x70], r12w
jne 0x18001044e
cmp rbx, rsi
je 0x18001040e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1800111dc
cmp word [rsp + 0x70], r12w
je 0x180010493
mov word [rbx], r13w
jmp 0x18001048f
lea r11, [0x18001ee30]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18001048b
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180010493
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180012450
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180012478
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180012478
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Execute command

Disassembly:
sub rsp, 0x68
movabs rdx, 0xa017ee14ee88a771
movabs rcx, 0xa0e8ad15d40f2462
mov qword [rsp + 0x38], rcx
movabs rax, 0x31c08552d44eb272
mov qword [rsp + 0x20], rax
movabs rax, 0x2125a7b4dccb91e4
mov qword [rsp + 0x28], rax
movabs rax, 0x5da5cd72bb26d117
movdqa xmm0, xmmword [rsp + 0x20]
mov qword [rsp + 0x40], rax
movabs rax, 0x4549d5db8bebfe88
mov qword [rsp + 0x30], rdx
movdqa xmm1, xmmword [rsp + 0x30]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x48], rax
xorps xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x50], rdx
xorps xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x20], xmm0
movdqa xmmword [rsp + 0x30], xmm1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
add rsp, 0x68
ret

Function at 0x140001978
Capabilities:
Parse pe header

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

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

Disassembly:
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140010672
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword gs:[0x58]
mov edi, eax
mov eax, 4
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x14008ce04], ecx
jle 0x140010659
lea rcx, [0x14008ce04]
call fcn.1400347b0
cmp dword [0x14008ce04], 0xffffffff
jne 0x140010659
lea rcx, [0x140067e70]
call fcn.140034b34
lea rcx, [0x14008ce04]
call fcn.140034750
lea rax, [0x140089e40]
mov dword [rsp + 0x20], edi
test edi, edi
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x40]
jne 0x14001067a
mov eax, ebx
add rsp, 0x30
pop rbx
ret
lea rdx, [0x1400782b8]
lea rcx, [rsp + 0x20]
call fcn.140010430
int3

Function at 0x140010690
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400106c9
mov rdx, qword [rax + 8]
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.140015000
xor edx, edx
mov r8, rbx
add rsp, 0x20
pop rbx
jmp fcn.140015000

Function at 0x1400106e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
sub rsp, 0x28
mov rbx, rcx
mov rdi, rdx
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r8d, r8d
test rax, rax
je 0x140010710
mov r9, qword [rax + 8]
jmp 0x140010713
mov r9, r8
cmp rdi, 0x3fc
ja 0x140010737
test r9, r9
je 0x140010737
mov rax, r8
cmp qword [r9 + rax*8], 0
je 0x140010745
inc r8d
inc rax
cmp rax, 2
jl 0x140010724
mov rcx, rbx
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.140034b4c
movzx eax, byte [rbx + rdi]
mov byte [rbx], al
movsxd rax, r8d
mov qword [r9 + rax*8], rbx
add rsp, 0x28
pop rdi
pop rbx
ret
Function at 0x1400108b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x30
mov rax, qword [rcx]
xor r14d, r14d
mov rbx, rcx
mov qword [rdx], r14
mov rsi, rdx
mov qword [rdx + 8], r14
mov rbp, r8
mov edx, r14d
mov rcx, qword [rax]
mov r9d, r14d
test rcx, rcx
je 0x140010908
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9, qword [rax]
mov rdx, qword [rax + 8]
mov rax, qword [rbx]
mov qword [rsi], r9
mov qword [rsi + 8], rdx
mov qword [rax], r14
cmp rbp, rdx
jbe 0x140010a24
mov ebx, 6
test r9, r9
je 0x140010969
mov ecx, dword [0x14008ce6c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140010932
mov rdx, qword [rax + 8]
jmp 0x140010935
mov rdx, r14
mov r9, qword [rsi + 8]
mov r8, qword [rsi]
cmp r9, 0x3fc
ja 0x140010961
test rdx, rdx
je 0x140010961
mov ecx, ebx
mov rax, rbx
nop
cmp qword [rdx + rax*8], r14
je 0x1400109ca
inc ecx
inc rax
cmp rax, 8
jl 0x140010950
mov rcx, r8
call fcn.140034b4c
mov ecx, dword [0x14008ce6c]
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
lea rdi, [rbp + 3]
shr rdi, 2
test rax, rax
je 0x1400109f6
mov r9, qword [rax + 8]
test r9, r9
je 0x1400109f6
mov ecx, ebx
lea r8, [r9 + 0x30]
mov rdx, qword [r8]
test rdx, rdx
je 0x1400109a6
movzx eax, byte [rdx]
cmp rax, rdi
jae 0x1400109db
inc ecx
add r8, 8
cmp ecx, 8
jl 0x140010996
mov rax, rbx
mov rcx, qword [r9 + rax*8]
test rcx, rcx
jne 0x1400109ea
inc ebx
inc rax
cmp rax, 8
jl 0x1400109b4
jmp 0x1400109f6
movzx eax, byte [r8 + r9]
mov byte [r8], al
movsxd rax, ecx
mov qword [rdx + rax*8], r8
jmp 0x140010969
movsxd rax, ecx
mov qword [r9 + rax*8], r14
movzx eax, byte [rdx]
mov byte [rdx + rbp], al
jmp 0x140010a18
movsxd rax, ebx
mov qword [r9 + rax*8], r14
call fcn.140034b4c
lea rcx, [rdi*4 + 1]
call fcn.1400348c0
cmp rdi, 0xff
movzx ecx, dil
mov rdx, rax
cmova ecx, r14d
mov byte [rax + rbp], cl
mov rdi, qword [rsp + 0x40]
mov qword [rsi], rdx
mov qword [rsi + 8], rbp
mov rbx, qword [rsp + 0x48]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x140010b80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r14
push r15
sub rsp, 0x40
xor r9d, r9d
mov rdi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r15d, 4
lea r14, [0x140089e40]
mov qword [rdi + 8], rax
mov rbx, rax
test rax, rax
jne 0x140010c38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi]
lea edx, [rbx + 1]
mov rcx, rdi
mov esi, eax
call qword [r8]
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, dword [r15 + rdx]
cmp dword [0x14008ce04], ecx
jle 0x140010c27
lea rcx, [0x14008ce04]
call fcn.1400347b0
cmp dword [0x14008ce04], 0xffffffff
jne 0x140010c27
lea rcx, [0x140067e70]
call fcn.140034b34
lea rcx, [0x14008ce04]
call fcn.140034750
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], r14
test esi, esi
jne 0x140010dc3
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x10], rax
mov qword [rdi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x140010cc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
mov esi, eax
call qword [r8]
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, dword [r15 + rdx]
cmp dword [0x14008ce04], ecx
jle 0x140010cb4
lea rcx, [0x14008ce04]
call fcn.1400347b0
cmp dword [0x14008ce04], 0xffffffff
jne 0x140010cb4
lea rcx, [0x140067e70]
call fcn.140034b34
lea rcx, [0x14008ce04]
call fcn.140034750
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], r14
test esi, esi
jne 0x140010dd5
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea r8, [0x140010df0]
mov r9, rdi
mov dword [rsp + 0x20], ecx
xor edx, edx
mov dword [rsp + 0x70], ecx
call fcn.14003b1c8
mov qword [rbp + 8], rax
test rax, rax
jne 0x140010d7c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [rdi]
mov edx, 1
mov rcx, rdi
mov esi, eax
call qword [r8]
test rbx, rbx
je 0x140010d1b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140010d2a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, dword [r15 + rdx]
cmp dword [0x14008ce04], eax
jle 0x140010d6f
lea rcx, [0x14008ce04]
call fcn.1400347b0
cmp dword [0x14008ce04], 0xffffffff
jne 0x140010d6f
lea rcx, [0x140067e70]
call fcn.140034b34
lea rcx, [0x14008ce04]
call fcn.140034750
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], r14
test esi, esi
jne 0x140010db1
test rbx, rbx
je 0x140010d98
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.140010430
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.140010430
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.140010430
int3