joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140375160
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14037518a
add rcx, 0xc8
call fcn.140331d10
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1403751d6
mov ecx, dword [0x140542764]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x1403751c6
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1403751c6
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x1403751e1
inc ecx
inc rax
cmp rax, 6
jl 0x1403751b4
mov rcx, rbx
call fcn.140309430
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x140]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x140375210
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14037523a
add rcx, 0x170
call fcn.140332020
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140375286
mov ecx, dword [0x140542764]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140375276
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140375276
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x140375291
inc ecx
inc rax
cmp rax, 6
jl 0x140375264
mov rcx, rbx
call fcn.140309430
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x258]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x1403752c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1403752e7
add rcx, 0x78
call fcn.140331d10
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140375333
mov ecx, dword [0x140542764]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140375323
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140375323
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x14037533e
inc ecx
inc rax
cmp rax, 6
jl 0x140375311
mov rcx, rbx
call fcn.140309430
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xf0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x140375370
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14037539a
add rcx, 0x88
call fcn.140331d10
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1403753e6
mov ecx, dword [0x140542764]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x1403753d6
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1403753d6
mov ecx, 4
mov eax, ecx
cmp qword [rdx + rax*8], 0
je 0x1403753f1
inc ecx
inc rax
cmp rax, 6
jl 0x1403753c4
mov rcx, rbx
call fcn.140309430
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x100]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x140375420
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rdi, rcx
test rax, rax
je 0x14037545f
lea rbx, [rax + 0x70]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140375457
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], 0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1403754b2
mov ecx, dword [0x140542764]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x1403754a2
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1403754a2
mov ecx, 4
mov eax, ecx
nop dword [rax]
cmp qword [rdx + rax*8], 0
je 0x1403754bd
inc ecx
inc rax
cmp rax, 6
jl 0x140375490
mov rcx, rbx
call fcn.140309430
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xd0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret

Function at 0x1403754e0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x10]
mov rdi, rcx
test rax, rax
je 0x140375522
lea rbx, [rax + 0x80]
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14037551a
mov rax, qword [rcx]
cmp rcx, rbx
setne dl
call qword [rax + 0x20]
mov qword [rbx + 0x38], 0
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x140375572
mov ecx, dword [0x140542764]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
je 0x140375562
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140375562
mov ecx, 4
mov eax, ecx
nop dword [rax]
cmp qword [rdx + rax*8], 0
je 0x14037557d
inc ecx
inc rax
cmp rax, 6
jl 0x140375550
mov rcx, rbx
call fcn.140309430
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0xe0]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov rbx, qword [rsp + 0x30]
mov qword [rdi + 8], 0
add rsp, 0x20
pop rdi
ret
Function at 0x140376cd0
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, 0xb0
mov rsi, rdx
mov rbx, rcx
xor edi, edi
mov eax, edi
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x140376d19
call fcn.14037ea20
mov dword [rsp + 0x20], edi
lea rax, [0x1405203c8]
mov qword [rsp + 0x28], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
xor eax, eax
jmp 0x140376e1c
mov dword [rsp + 0x90], edi
lea rcx, [rsp + 0x98]
call fcn.140389188
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
lea rax, [rbx + 0x28]
test rbx, rbx
cmove rax, rdi
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x140542764]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov ecx, dword [0x140542764]
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
nop
mov r9, rsi
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14034ff00
test rax, rax
je 0x140376dd9
nop dword [rax]
nop word [rax + rax]
lea rax, [rdi + 1]
cmp rdi, 0xffffffffffffffff
cmove rax, rdi
mov rdi, rax
mov r9, rsi
lea r8, [rsp + 0x40]
mov edx, 0xffffffff
mov rcx, rbx
call fcn.14034ff00
test rax, rax
jne 0x140376db0
mov rdx, qword [rsp + 0x30]
mov ecx, dword [0x140542764]
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
nop
lea rbx, [rsp + 0x40]
mov esi, 0xa
mov rcx, qword [rbx]
test rcx, rcx
je 0x140376e02
call fcn.140309430
add rbx, 8
sub rsi, 1
jne 0x140376df5
lea rcx, [rsp + 0x98]
call fcn.140389214
mov rax, rdi
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14037cee0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rdi, r9
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov esi, ecx
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14037cf59
mov dword [rdi], 0
cmp esi, 0x17
jne 0x14037cf46
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.1401692c0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rsi, qword [rsp + 0x68]
mov dword [rsp + 0x38], eax
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x40], rbx
movups xmm0, xmmword [rsp + 0x38]
mov rbx, qword [rsp + 0x60]
movups xmmword [rdi], xmm0
add rsp, 0x50
pop rdi
ret
Function at 0x14037e530
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rbx, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x14037e56a
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rbx
jmp fcn.140367b30
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14037e592
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rbx
jmp fcn.140367b30
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x78], edx
mov r8d, r10d
mov qword [rsp + 0x58], rsi
mov rdx, r11
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x14037e5eb
mov eax, 0x2746
jmp 0x14037e5f8
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x58]
je 0x14037e627
cmp eax, 0x3e5
je 0x14037e627
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.140367b30
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.140367dc0
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret

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

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x14037e7ca
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rdi
jmp fcn.140367b30
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x14037e7f2
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rdi + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rdi
jmp fcn.140367b30
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x78]
mov dword [rsp + 0x78], eax
mov r8d, r10d
mov eax, dword [rsp + 0x70]
mov rdx, r11
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
mov rbx, qword [rsp + 0x50]
je 0x14037e871
cmp eax, 0x3e5
je 0x14037e871
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.140367b30
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.140367dc0
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14037e890
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor r9d, r9d
mov r14d, r8d
mov rsi, rdx
mov rbp, rcx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.DLL_CreateEventW]
mov qword [rsi + 8], rax
mov rdi, rax
test rax, rax
jne 0x14037e8f3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r8, qword [rsi]
lea edx, [rdi + 1]
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x30], ebx
call fcn.1401692c0
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x14037e9f5
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 [rsi + 0x10], rax
cmp qword [rbp + 0x10], 0
jne 0x14037e940
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
mov dword [rsp + 0x30], ebx
call fcn.1401692c0
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x14037ea07
xor ecx, ecx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r8, [0x1403823b0]
mov r9, rsi
mov dword [rsp + 0x20], ecx
mov edx, r14d
mov dword [rsp + 0x68], ecx
call fcn.140398cdc
mov qword [rbp + 8], rax
test rax, rax
jne 0x14037e9b4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov ebx, eax
call qword [r8]
test rdi, rdi
je 0x14037e993
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x14037e9a2
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [rsp + 0x30], ebx
call fcn.1401692c0
mov qword [rsp + 0x38], rax
test ebx, ebx
jne 0x14037e9e3
test rdi, rdi
je 0x14037e9d0
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
lea rdx, str.thread
lea rcx, [rsp + 0x30]
call fcn.1401681f0
int3
lea rdx, str.thread.entry_event
lea rcx, [rsp + 0x30]
call fcn.1401681f0
int3
lea rdx, str.thread.exit_event
lea rcx, [rsp + 0x30]
call fcn.1401681f0
int3

Function at 0x140387bec
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.DLL_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.DLL_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140387c70
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140387c70
dec r8
sub rdx, 1
jne 0x140387c56
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x14038b1fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x14038b246
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14038b246
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14038b246
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14038b246
cmp dword [rcx + 0x84], 0xe
jbe 0x14038b246
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14038b248
xor al, al
add rsp, 0x28
ret

Function at 0x140391afc
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14039198f
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test rax, rax
je 0x14039198f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14039198f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14039198f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14039198f
cmp dword [rcx + 0x84], 0xe
jbe 0x14039198f
cmp dword [rcx + 0xf8], 0
je 0x14039198f
mov ecx, ebx
call fcn.140391a30
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140391820
cmp dword [rbp + 0x20], 0
je 0x1403919dc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1403919e4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140391928
Function at 0x140405df0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, 0x28
call fcn.14038ab90
sub rsp, rax
cmp r9d, 1
jne 0x140405e0c
add rsp, 0x28
jmp fcn.1400022e0
add rsp, 0x28
jmp fcn.140002890
Function at 0x140001000
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x140
mov rax, qword gs:[0x60]
mov esi, ecx
mov rbx, qword [rax + 0x18]
mov rbx, qword [rbx + 0x20]
test ecx, ecx
jne 0x140001039
mov rax, qword [rbx + 0x20]
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rsi
ret
mov qword [rsp + 0x150], rbp
mov qword [rsp + 0x158], rdi
test rbx, rbx
je 0x140001105
mov ebp, 0x104
nop word [rax + rax]
mov rdi, qword [rbx + 0x50]
test rdi, rdi
je 0x1400010f9
cmp word [rbx + 0x48], bp
jae 0x1400010f9
mov r8, rbp
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.140002620
xor r9d, r9d
cmp word [rdi], r9w
je 0x1400010d1
xor r10d, r10d
mov r11, rdi
xor eax, eax
nop word [rax + rax]
movzx r8d, byte [rax + r11]
lea eax, [r8 + 0x20]
movzx ecx, al
lea edx, [r8 - 0x41]
cmp dl, 0x19
cmova ecx, r8d
inc r9d
mov byte [rsp + r10 + 0x30], cl
mov rdi, qword [rbx + 0x50]
mov r10d, r9d
lea rax, [r9 + r9]
cmp word [rax + rdi], 0
jne 0x1400010a0
mov rcx, rdi
mov byte [rsp + r9 + 0x30], 0
call fcn.1400014c0
cmp eax, esi
je 0x1400011d2
lea rcx, [rsp + 0x30]
call fcn.1400014c0
cmp eax, esi
je 0x1400011d2
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140001060
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400011af
lea rbx, str.C:UsersMALDEV01DesktopMaldev_codeNew_ModulesPePackerPePackerPePackerApiHashing.c
mov edx, 0x5c
mov rcx, rbx
call fcn.140002650
test rax, rax
je 0x140001155
mov edx, 0x5c
mov rcx, rbx
call fcn.140002650
lea rbx, [rax + 1]
mov r9, rbx
mov dword [rsp + 0x20], 0x8d
mov r8d, esi
lea rdx, str.____GetModuleHandleH_Failed:_Module_Of_Hash_0x_08X_Was_Not_Found____s._d_n
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rbp, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x158]
mov rbx, qword [rsp + 0x160]
add rsp, 0x140
pop rsi
ret
mov rax, qword [rbx + 0x20]
jmp 0x1400011b1

Function at 0x1400014c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffefff
movzx ecx, byte [rcx]
test cl, cl
je 0x14000156c
movsx edx, cl
lea r8, [r8 + 1]
xor eax, edx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
movzx ecx, byte [r8]
test cl, cl
jne 0x1400014d3
not eax
ret
Function at 0x140001d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r9, rcx
test rcx, rcx
je 0x140001db5
test rdx, rdx
je 0x140001db5
test r8d, r8d
je 0x140001db5
mov qword [rcx], rdx
mov dword [rcx + 8], r8d
movsxd rax, dword [rdx + 0x3c]
add rdx, rax
mov qword [rcx + 0x10], rdx
cmp dword [rdx], 0x4550
jne 0x140001db5
movzx eax, word [rdx + 0x16]
shr eax, 0xd
and eax, 1
mov dword [rcx + 0x48], eax
lea rax, [rdx + 0x90]
movzx ecx, word [rdx + 0x14]
mov qword [r9 + 0x20], rax
add rcx, 0x18
lea rax, [rdx + 0xb0]
add rcx, rdx
mov qword [r9 + 0x28], rax
lea rax, [rdx + 0xd0]
mov qword [r9 + 0x30], rax
lea rax, [rdx + 0xa0]
mov qword [r9 + 0x38], rax
lea rax, [rdx + 0x88]
mov qword [r9 + 0x40], rax
mov eax, 1
mov qword [r9 + 0x18], rcx
ret
xor eax, eax
ret
Function at 0x140002a00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
call fcn.140001570
mov edi, eax
xor ebx, ebx
and edi, 0xf
cmp byte [0x140008090], bl
jne 0x140002ac3
mov ecx, 0xd0af56f
call fcn.140001000
mov qword [0x140008088], rax
mov rdx, rax
test rax, rax
je 0x140002be7
movsxd rax, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x140002be7
mov ecx, dword [rax + rdx + 0x88]
add rcx, rdx
mov r9d, dword [rcx + 0x18]
mov dword [0x140008080], r9d
mov r8d, dword [rcx + 0x20]
add r8, rdx
mov qword [0x140008070], r8
mov r10d, dword [rcx + 0x1c]
add r10, rdx
mov qword [0x140008068], r10
mov ecx, dword [rcx + 0x24]
add rcx, rdx
mov qword [0x140008078], rcx
test r9d, r9d
je 0x140002be7
test r8, r8
je 0x140002be7
test r10, r10
je 0x140002be7
test rcx, rcx
je 0x140002be7
mov byte [0x140008090], 1
jmp 0x140002aca
mov r9d, dword [0x140008080]
xor r8d, r8d
test r9d, r9d
je 0x140002b46
mov rax, qword [0x140008078]
movzx edx, word [rax + r8*2]
mov rax, qword [0x140008068]
mov r9d, dword [rax + rdx*4]
add r9, qword [0x140008088]
xor edx, edx
mov rax, r9
nop word [rax + rax]
movzx ecx, word [0x140008004]
xor cx, 0x5f
cmp word [rax], cx
jne 0x140002b1c
cmp byte [rax + 2], 0xc3
jne 0x140002b1c
cmp ebx, edi
je 0x140002b28
inc ebx
inc edx
inc rax
cmp edx, 0x20
jb 0x140002b00
jmp 0x140002b30
mov eax, edx
add rax, r9
mov qword [rsi], rax
cmp qword [rsi], 0
jne 0x140002bf9
inc r8d
cmp r8d, dword [0x140008080]
jb 0x140002ad2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x208
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140002be7
lea rbx, str.C:UsersMALDEV01DesktopMaldev_codeNew_ModulesPePackerPePackerPePackerHellsHall.c
mov edx, 0x5c
mov rcx, rbx
call fcn.140002650
test rax, rax
je 0x140002b92
mov edx, 0x5c
mov rcx, rbx
call fcn.140002650
lea rbx, [rax + 1]
mov r9d, 0x7d
lea rdx, str.____FetchWin32uSyscallInst_Failed_To_Fetch_A_Syscall_Instruction_Address____s._d__n
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfA]
mov ecx, 0xfffffff5
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteConsoleA]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret