joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d9140
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
test ecx, ecx
mov ebp, r8d
mov rdi, rdx
mov ebx, ecx
je 0x1400d91bd
lea eax, [rcx + 0x40]
lea rcx, [rsp + 0x78]
mov byte [rsp + 0x79], 0x3a
mov byte [rsp + 0x7a], VarDateFromDisp
mov byte [rsp + 0x7b], 0
mov byte [rsp + 0x78], al
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x1400d9182
cmp eax, 1
jne 0x1400d91c4
call fcn.14009e350
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.14009e320
xor esi, esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], SafeArrayGetElemsize
mov qword [rsp + 0x20], rsi
call fcn.1400a5fc0
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call fcn.1400d8f30
mov ebx, eax
test rdi, rdi
je 0x1400d9204
test ebp, ebp
jg 0x1400d91fd
call fcn.14009e320
xor esi, esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
mov qword [rsp + 0x20], rsi
call fcn.1400a5fc0
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov esi, ebp
mov byte [rdi], 0
jmp 0x1400d9206
xor esi, esi
test ebx, ebx
je 0x1400d9222
add bl, 0x40
mov byte [rsp + 0x61], 0x3a
mov byte [rsp + 0x62], 0x2e
mov byte [rsp + 0x60], bl
mov byte [rsp + 0x63], 0
jmp 0x1400d922c
mov byte [rsp + 0x60], 0x2e
mov byte [rsp + 0x61], 0
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x60]
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1400d92eb
test rdi, rdi
je 0x1400d927f
cmp eax, esi
jge 0x1400d9262
mov rax, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call fcn.14009e320
mov dword [rax], SafeArrayDestroyData
mov byte [rdi], 0
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
cmp eax, ebp
mov edx, 1
cmovg ebp, eax
movsxd rcx, ebp
call fcn.14009ee40
test rax, rax
mov rbx, rax
jne 0x1400d92be
call fcn.14009e320
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.14009e350
mov dword [rax], 8
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x60]
mov r8, rax
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x1400d92eb
cmp eax, ebp
jge 0x1400d92eb
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009e380
mov rbx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400de4a0
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.1400ce0b0
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x1400de644
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.1400ce0b0
cmp rax, 0xffffffffffffffff
je 0x1400de644
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x1400de5c3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x1400de549
call fcn.14009e320
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.14009e320
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.1400dea00
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.1400ce2c0
cmp eax, 0xffffffff
je 0x1400de585
cdqe
sub rbx, rax
test rbx, rbx
jg 0x1400de560
jmp 0x1400de59e
call fcn.14009e350
cmp dword [rax], 5
jne 0x1400de59a
call fcn.14009e320
mov dword [rax], SafeArrayGetElemsize
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.1400dea00
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x1400de61c
test rbx, rbx
jns 0x1400de626
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.1400ce0b0
cmp rax, 0xffffffffffffffff
je 0x1400de52a
mov ecx, esi
call fcn.1400d40c0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x1400de626
call fcn.14009e320
mov dword [rax], SafeArrayGetElemsize
call fcn.14009e350
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x1400de52a
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.1400ce0b0
cmp rax, 0xffffffffffffffff
je 0x1400de52a
xor eax, eax
jmp 0x1400de531
call fcn.14009e320
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x1400e5cfc
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x14012e6d8]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.14009c4e0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, reloc.OLEAUT32.dll_SysStringByteLen
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.14009c4e0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x1400e5d8f
cmp dword [rsp + 0x24], 5
jb 0x1400e5da9
jmp 0x1400e5da5
cmp dword [rsp + 0x30], esi
jne 0x1400e5da9
cmp dword [rsp + 0x24], 4
ja 0x1400e5da5
jne 0x1400e5da9
cmp dword [rsp + 0x28], 0
jbe 0x1400e5da9
mov byte [rbx + 0x18], sil
lea rax, [0x140104428]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1400e5670
movzx ecx, byte [0x140130160]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x140130160], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14009af10
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001000
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 7
syscall
ret

Function at 0x140043c40
Capabilities:
Get disk information

Disassembly:
push rbx
push rsi
sub rsp, 0x458
mov rax, qword [0x140417f40]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rbx, rcx
mov edx, 0x5c
add rcx, 2
call qword [sym.imp.SHLWAPI.dll_StrChrW]
test rax, rax
je 0x140043e98
mov edx, 0x5c
lea rcx, [rax + 2]
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rsi, rax
test rax, rax
je 0x140043e98
mov qword [rsp + 0x478], rbp
xor edx, edx
movzx ebp, word [rax]
mov r8d, 0x202
mov qword [rsp + 0x480], rdi
mov qword [rsp + 0x450], r14
xor r14d, r14d
mov word [rax], r14w
mov ecx, dword [0x1402a5f38]
mov dword [rsp + 0x20], ecx
movzx ecx, word [0x1402a5f3c]
mov word [rsp + 0x24], cx
lea rcx, [rsp + 0x26]
call sub.VCRUNTIME140.dll_memset
mov edi, 0x41
mov r8d, 0x104
mov word [rsp + 0x20], di
lea rdx, [rsp + 0x230]
mov word [rsp + 0x230], r14w
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x140043d21
mov rdx, rbx
lea rcx, [rsp + 0x230]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x140043d64
inc di
cmp di, 0x5a
jb 0x140043ce1
mov word [rsi], bp
mov eax, 0x80004005
mov rdi, qword [rsp + 0x480]
mov rbp, qword [rsp + 0x478]
mov r14, qword [rsp + 0x450]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14025d0e0
add rsp, 0x458
pop rsi
pop rbx
ret
mov edx, 0x82
lea rax, [rsp + 0x20]
mov ecx, edx
cmp word [rax], r14w
je 0x140043d80
add rax, 2
sub rcx, 1
jne 0x140043d70
mov rax, rdx
mov r9d, 0x7ffffffe
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x140043de3
mov r8, rdx
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
sub r8, rax
je 0x140043dd4
lea r11, [0x1402a5f40]
mov eax, r9d
sub r11, rcx
test rax, rax
je 0x140043dd4
movzx r10d, word [r11 + rcx]
test r10w, r10w
je 0x140043dd4
mov word [rcx], r10w
dec rax
add rcx, 2
sub r8, 1
jne 0x140043db3
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
mov rcx, rdx
lea rax, [rsp + 0x20]
nop dword [rax + rax]
cmp word [rax], r14w
je 0x140043e00
add rax, 2
sub rcx, 1
jne 0x140043df0
mov rax, rdx
sub rax, rcx
test rcx, rcx
cmove rax, r14
je 0x140043e51
mov r8, rdx
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
sub r8, rax
je 0x140043e42
sub rsi, rcx
test r9, r9
je 0x140043e42
movzx eax, word [rsi + rcx + 2]
test ax, ax
je 0x140043e42
mov word [rcx], ax
dec r9
add rcx, 2
sub r8, 1
jne 0x140043e23
test r8, r8
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
lea rcx, [rsp + 0x20]
sub rcx, rbx
nop dword [rax]
lea rax, [rdx + 0x7fffff7c]
test rax, rax
je 0x140043e82
movzx eax, word [rcx + rbx]
test ax, ax
je 0x140043e82
mov word [rbx], ax
add rbx, 2
sub rdx, 1
jne 0x140043e60
test rdx, rdx
lea rax, [rbx - 2]
cmovne rax, rbx
mov word [rax], r14w
xor eax, eax
jmp 0x140043d32
mov eax, 0x80004005
jmp 0x140043d4a
Function at 0x1400447c0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x140417f40]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor bl, bl
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov ecx, Ordinal_26
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14004485f
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x434
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x140044856
nop dword [rax + rax]
mov edx, 0xffffffff
lea rcx, [rsp + 0x250]
call fcn.140043eb0
lea rdx, [rsp + 0x20]
mov rcx, rdi
or bl, al
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140044830
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test bl, bl
setne al
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14025d0e0
mov rbx, qword [rsp + 0x480]
add rsp, 0x470
pop rdi
ret
Function at 0x140045100
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
sub rsp, 0x50
mov rax, qword [0x140417f40]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edx, 0x8000
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x14004515f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.VirtualAlloc_failed._Last_error:__u_n
call fcn.140043a40
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14025d0e0
add rsp, 0x50
pop rsi
ret
mov edx, 0x1000000
mov qword [rsp + 0x60], rbx
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x203000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x1400451b1
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.VirtualAlloc_failed._Last_error:__u_n
call fcn.140043a40
xor eax, eax
jmp 0x1400452c4
mov word [rax], 0x4851
mov edx, 0x1000000
mov byte [rax + 2], 0xb9
mov rcx, rbx
movzx eax, byte [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov byte [rbx + 3], al
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
shr rax, 8
mov byte [rbx + 4], al
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
shr rax, 0x10
mov byte [rbx + 5], al
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
shr rax, 0x18
mov byte [rbx + 6], al
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
shr rax, 0x20
mov byte [rbx + 7], al
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
shr rax, 0x28
mov byte [rbx + 8], al
movzx eax, byte [0x140267476]
mov byte [rbx + 9], al
movzx eax, byte [0x140267477]
mov byte [rbx + 0xa], al
mov dword [rbx + 0xb], 0xc359d1ff
mov qword [rsp + 0x68], rdi
call qword [sym.imp.KERNEL32.dll_ResetWriteWatch]
call rbx
cmp eax, 1
jne 0x140045243
mov edi, eax
jmp 0x14004529b
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], 0x1000
mov qword [rsp + 0x28], rax
mov r9, rsi
lea rax, [rsp + 0x30]
mov r8d, 0x1000
mov rdx, rbx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetWriteWatch]
test eax, eax
je 0x140045290
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetWriteWatch_failed._Last_error:__u_n
call fcn.140043a40
xor edi, edi
jmp 0x14004529b
xor edi, edi
cmp qword [rsp + 0x30], rdi
setne dil
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14025d0e0
add rsp, 0x50
pop rsi
ret

Function at 0x1400452e0
Capabilities:
Check for debugger via api

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140417f40]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14025d0e0
add rsp, 0x38
ret
Function at 0x140045330
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140417f40]
xor rax, rsp
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov dword [rsp + 0x58], 0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [rsp + 0x2c]
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x1400453f1
mov byte [rax], 0xc3
mov edx, dword [rsp + 0x2c]
lea r9, [rsp + 0x58]
mov r8d, 0x140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400453f1
call rbx
nop
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14025d0e0
add rsp, 0x70
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14025d0e0
add rsp, 0x70
pop rbx
ret

Function at 0x140047580
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx + 0x10]
mov eax, dword [rdx + 0x30]
add eax, 0x100000
mov dword [rdx + 0x40], eax
ret

Function at 0x140047670
Capabilities:
Create thread
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
lea r8, [0x140047650]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x1400476ab
lea rcx, str.TLS_callback:_couldnt_start_dummy_thread
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, qword [0x14046e860]
mov ebx, edi
test rax, rax
jne 0x140047701
nop dword [rax]
inc ebx
cmp ebx, 0x3e8
je 0x1400476e4
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
mov rax, qword [0x14046e860]
test rax, rax
je 0x1400476c0
cmp ebx, 0x3e8
jl 0x140047701
lea rcx, str.TLSCallbackThread_timeout_on_event_creation.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [0x14046e860]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140047764
cmp eax, 0xffffffff
jne 0x140047739
lea rcx, str.TLSCallbackThread_wait_failed.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rcx, str.TLSCallbackThread_wait_abandoned.
cmp eax, 0x80
je 0x14004774e
lea rcx, str.TLSCallbackThread_timeout_on_event_wait.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, dword [0x14046e854]
lea rcx, str.TLSCallbackThread_data_did_not_match.
cmp eax, 0xdeadbeef
jne 0x14004777f
lea rcx, str.All_seems_fine_for_TLSCallbackThread.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x14046e854]
cmp ecx, 0xdeadbeef
mov rbx, qword [rsp + 0x40]
setne dil
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x1400477b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x14046e868]
xor edi, edi
mov ebx, edi
test rax, rax
jne 0x140047811
nop word [rax + rax]
inc ebx
cmp ebx, 0x3e8
je 0x1400477f4
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
mov rax, qword [0x14046e868]
test rax, rax
je 0x1400477d0
cmp ebx, 0x3e8
jl 0x140047811
lea rcx, str.TLSCallbackProcess_timeout_on_event_creation.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, qword [0x14046e868]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140047874
cmp eax, 0xffffffff
jne 0x140047849
lea rcx, str.TLSCallbackProcess_wait_failed.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
lea rcx, str.TLSCallbackProcess_wait_abandoned.
cmp eax, 0x80
je 0x14004785e
lea rcx, str.TLSCallbackProcess_timeout_on_event_wait.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov eax, dword [0x14046e858]
lea rcx, str.TLSCallbackProcess_data_did_not_match.
cmp eax, 0xdeadbeef
jne 0x14004788f
lea rcx, str.All_seems_fine_for_TLSCallbackProcess.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x14046e858]
cmp ecx, 0xdeadbeef
mov rbx, qword [rsp + 0x30]
setne dil
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x140056380
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x140431590]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5f1c], ecx
test rbx, rbx
je 0x1400563ef
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.140056400
lea rdx, [0x14026aad4]
mov rcx, rbx
mov rdi, rax
call fcn.14005a440
mov rbx, rax
test rax, rax
je 0x1400563ea
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x140059250
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400592ad
lea rbx, [0x140268740]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140059294
cmp r10, 2
jb 0x140059294
cmp byte [r9], r8b
jne 0x140059294
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140059270
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x1400592ef
lea rbx, [0x140268740]
cmp r8b, 0x23
jne 0x1400592d3
cmp byte [r9], r8b
jne 0x1400592d3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400592c0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x140059f50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
movsxd rax, edx
mov rdi, rcx
dec rax
mov qword [r11 + 0x20], rsi
mov rsi, r9
xor r9d, r9d
lea rax, [rcx + rax*2]
mov qword [rsp], rax
cmp rcx, rax
jae 0x14005a167
mov qword [r11 + 0x18], rbp
lea rbp, [0x140000000]
mov qword [r11 + 0x10], rbx
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
nop
test rsi, rsi
je 0x140059fae
cmp r8, rsi
jae 0x14005a144
movzx edx, byte [r8]
test dl, dl
je 0x14005a144
xor ebx, ebx
mov eax, edx
shr rax, 3
mov rcx, rsi
movsx r9, byte [rax + rbp + 0x269438]
test r9d, r9d
sete bl
add ebx, r9d
test rsi, rsi
jne 0x140059fe2
movsxd rcx, ebx
add rcx, r8
xor r14d, r14d
lea rax, [r8 + 1]
cmp r8, rcx
cmovb r14d, edx
cmp rax, rcx
jae 0x140059ffb
movzx r13d, byte [rax]
jmp 0x140059ffe
xor r13b, r13b
lea rax, [r8 + 2]
cmp rax, rcx
jae 0x14005a00d
movzx r12d, byte [rax]
jmp 0x14005a010
xor r12b, r12b
lea rax, [r8 + 3]
cmp rax, rcx
jae 0x14005a01f
movzx r15d, byte [rax]
jmp 0x14005a022
xor r15b, r15b
lea r10, [r9*4]
movzx eax, r14b
mov ebp, dword [r10 + rbp + 0x269458]
and ebp, eax
movzx r9d, r13b
shl ebp, 6
mov eax, r9d
and eax, 0x3f
movzx edx, r12b
or ebp, eax
movzx r11d, r15b
shl ebp, 6
and r9d, 0xc0
mov eax, edx
and edx, 0xc0
and eax, 0x3f
or ebp, eax
mov eax, r11d
shr r11d, 2
and eax, 0x3f
or r11d, edx
shl ebp, 6
or ebp, eax
shr r11d, 2
or r11d, r9d
lea rax, [0x140000000]
mov ecx, dword [r10 + rax + 0x269488]
shr r11d, 2
shr ebp, cl
mov ecx, 0x100
cmp ebp, dword [r10 + rax + 0x269470]
sbb eax, eax
xor r9d, r9d
and eax, 0x40
mov edx, r9d
or r11d, eax
mov eax, ebp
and eax, 0xfffff800
cmp eax, 0xd800
mov eax, 0x80
cmove edx, eax
mov eax, r9d
or r11d, edx
cmp ebp, 0xffff
cmova eax, ecx
lea rcx, [0x140000000]
mov ecx, dword [r10 + rcx + 0x2694a0]
or r11d, eax
xor r11d, 0x2a
sar r11d, cl
test r11d, r11d
je 0x14005a126
test r15b, r15b
mov eax, r9d
mov ecx, r9d
mov ebp, 0xfffd
setne cl
test r12b, r12b
setne al
add ecx, eax
mov eax, r9d
test r13b, r13b
setne al
add ecx, eax
mov eax, r9d
test r14b, r14b
setne al
add ecx, eax
cmp ebx, ecx
cmovl ecx, ebx
mov ebx, ecx
mov word [rdi], bp
add rdi, 2
movsxd rax, ebx
lea rbp, [0x140000000]
add r8, rax
cmp rdi, qword [rsp]
jb 0x140059fa0
mov rcx, qword [rsp + 0x40]
mov r15, qword [rsp + 0x10]
mov r14, qword [rsp + 0x18]
mov r13, qword [rsp + 0x20]
mov r12, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov word [rdi], r9w
test rax, rax
je 0x14005a17d
mov qword [rax], r8
sub rdi, rcx
sar rdi, 1
mov eax, edi
add rsp, 0x30
pop rdi
ret