joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14010cd80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x1401610c0]
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 0x14010ce15
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 0x14010ce76
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1400ec150
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.140120bb0
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 0x14010cf31
sub ecx, 1
je 0x14010cfa4
sub ecx, 1
je 0x14010cee0
cmp ecx, 1
je 0x14010cec3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14014d0f0]
call fcn.1400ec150
jmp 0x14010cfa4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14010cab0
test eax, eax
je 0x14010cfa4
jmp 0x14010ce4a
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 0x14010cfa4
sub rax, rsi
cmp rax, rbp
jae 0x14010cfa4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1400ec2d0
jmp 0x14010cfa4
cmp r8d, 4
jle 0x14010cfa4
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 0x14010cfa4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400ec070
mov esi, eax
test eax, eax
je 0x14010cf83
mov edx, 5
mov rcx, rbx
call fcn.14010da70
mov eax, esi
jmp 0x14010ce4a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400f6520
mov rcx, r14
call fcn.1400f6800
test eax, eax
je 0x14010ce48
mov edx, 5
mov rcx, rbx
call fcn.14010da70
mov eax, Ordinal_46
jmp 0x14010ce4a
Function at 0x140120a20
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 0x140120a62
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 0x140120aa9
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 0x140120b02
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 0x140120ac0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140120b43
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x14014ccf2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x14014ccf3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140120b10
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 0x140121970
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401219ba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401219ba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401219ba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401219ba
cmp dword [rcx + 0x84], 0xe
jbe 0x1401219ba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1401219bc
xor al, al
add rsp, 0x28
ret
Function at 0x401090
Capabilities:
Create directory
Get common file path

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x248
lea rbx, [rsp + 0x30]
mov rbp, rcx
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.kernel32.dll_GetTempPathW]
test eax, eax
je 0x401146
mov rsi, qword [sym.imp.ucrtbase.dll_malloc]
mov ecx, 0x18
call rsi
mov r12, rax
test rax, rax
je 0x401146
mov ecx, 0x230
call rsi
mov qword [r12 + 0x10], rax
mov r9, rax
test rax, rax
je 0x401184
mov rdi, qword [sym.imp.kernel32.dll_GetTempFileNameW]
mov r13, qword [sym.imp.kernel32.dll_CreateDirectoryW]
lea rsi, section..rdata
jmp 0x401116
xor edx, edx
call r13
test eax, eax
jne 0x401160
mov r9, qword [r12 + 0x10]
mov eax, dword [section..bss]
mov rcx, rbx
mov rdx, rsi
lea r8d, [rax + 1]
mov dword [section..bss], r8d
call rdi
mov rcx, qword [r12 + 0x10]
test eax, eax
jne 0x401108
mov rbx, qword [sym.imp.ucrtbase.dll_free]
call rbx
mov rcx, r12
call rbx
xor r9d, r9d
mov rax, r9
add rsp, 0x248
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
lea rax, [rbp + 8]
movq xmm0, rax
mov rax, qword [rbp + 0x10]
movhps xmm0, qword [rbp + 0x10]
movups xmmword [r12], xmm0
mov qword [rax], r12
mov r9, qword [r12 + 0x10]
mov qword [rbp + 0x10], r12
jmp 0x401149
mov qword [rsp + 0x28], rax
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_free]
mov r9, qword [rsp + 0x28]
jmp 0x401149

Function at 0x4011b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
call qword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
mov eax, 0
cmovne eax, dword [rsp + 0x3c]
add rsp, 0x48
ret

Function at 0x4011e0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
mov eax, 0
cmovne eax, dword [rsp + 0x3c]
add rsp, 0x48
ret
Function at 0x401290
Capabilities:
Extract cabinet on windows

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea r9, [sym.cabinet_read]
lea r8, [sym.cabinet_open]
xor r14d, r14d
lea rax, [rsp + 0x54]
mov dword [rsp + 0x38], 0
mov rsi, rcx
mov rbx, rdx
mov qword [rsp + 0x40], rax
lea rax, [sym.cabinet_seek]
lea rdx, [sym.cabinet_free]
mov qword [rsp + 0x30], rax
lea rax, [sym.cabinet_close]
lea rcx, [sym.cabinet_alloc]
mov qword [rsp + 0x28], rax
lea rax, [sym.cabinet_write]
mov qword [rsp + 0x20], rax
call sym.FDICreate
mov r12, rax
test rax, rax
je 0x4013cc
test rsi, rsi
je 0x4013e0
mov r9d, 0xffffffff
mov r8, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x38], 0
mov rdi, qword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rdi
mov ecx, eax
mov r14, rcx
call qword [sym.imp.ucrtbase.dll_malloc]
mov r13, rax
test rax, rax
je 0x4013e0
mov dword [rsp + 0x28], r14d
mov r9d, 0xffffffff
mov r8, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
call rdi
lea rax, [sym.cabinet_notify]
mov rcx, r12
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call sym.FDICopy
mov rcx, r13
mov r14d, eax
call qword [sym.imp.ucrtbase.dll_free]
mov rcx, r12
call sym.FDIDestroy
mov eax, r14d
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
xor r14d, r14d
jmp 0x4013c4

Function at 0x401630
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x288
mov r12, rcx
test rcx, rcx
je 0x401728
lea rdx, [0x0040d00c]
call sym.path_combine.part.0
mov r14, rax
test rax, rax
je 0x401728
lea rdi, [rsp + 0x30]
mov rcx, rax
mov rdx, rdi
call qword [sym.imp.kernel32.dll_FindFirstFileW]
mov rcx, r14
mov r14, qword [sym.imp.ucrtbase.dll_free]
mov r13, rax
call r14
cmp r13, 0xffffffffffffffff
je 0x401706
mov rsi, qword [sym.imp.ucrtbase.dll_wcscmp]
lea rbx, [rsp + 0x5c]
lea rbp, [0x0040d010]
lea r15, [0x0040d014]
mov rdx, rbp
mov rcx, rbx
call rsi
test eax, eax
je 0x4016ed
mov rdx, r15
mov rcx, rbx
call rsi
test eax, eax
je 0x4016ed
mov rcx, r12
mov rdx, rbx
call sym.path_combine.part.0
mov rcx, rax
test rax, rax
je 0x4016ed
test byte [rsp + 0x30], 0x10
mov qword [rsp + 0x28], rax
jne 0x401730
call qword [sym.imp.kernel32.dll_DeleteFileW]
mov rcx, qword [rsp + 0x28]
call r14
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x4016a8
mov rcx, r13
call qword [sym.imp.kernel32.dll_FindClose]
mov rcx, r12
call qword [sym.imp.kernel32.dll_RemoveDirectoryW]
add rsp, 0x288
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x40170f
call sym.delete_directory
mov rcx, qword [rsp + 0x28]
jmp 0x4016ea
Function at 0x401cd0
Capabilities:
Accept command line arguments
Create process on windows
Get common file path
Terminate process

Disassembly:
push r12
push rdi
push rbx
sub rsp, 0x300
xor eax, eax
mov ecx, 0xd
mov edx, 0x104
lea rbx, [rsp + 0x80]
lea r12, [rsp + 0xf0]
mov dword [rsp + 0x54], 1
mov rdi, rbx
rep stosq qword [rdi], rax
mov rcx, r12
mov dword [rsp + 0x80], 0x68
call qword [sym.imp.kernel32.dll_GetSystemDirectoryW]
lea rdx, str.wusa.exe
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_wcscat]
lea rcx, [rsp + 0x58]
call qword [sym.imp.kernel32.dll_Wow64DisableWow64FsRedirection]
call qword [sym.imp.kernel32.dll_GetCommandLineW]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rbx
mov rdx, rax
lea rax, [rsp + 0x60]
mov rcx, r12
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x401dd6
test byte [section..data], 8
jne 0x401e20
mov rcx, qword [rsp + 0x60]
or edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x54]
call qword [sym.imp.kernel32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x60]
mov rbx, qword [sym.imp.kernel32.dll_CloseHandle]
call rbx
mov rcx, qword [rsp + 0x68]
call rbx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.kernel32.dll_Wow64RevertWow64FsRedirection]
mov ecx, dword [rsp + 0x54]
call qword [sym.imp.kernel32.dll_ExitProcess]
test byte [section..data], 2
je 0x401dc1
or edx, 0xffffffff
mov rcx, r12
mov rax, qword gs:[0x30]
mov ebx, dword [rax + 0x68]
call sym.wine_dbgstr_wn
lea r9, str.Failed_to_restart_64_bit__s__err__lu_n
mov ecx, 1
lea r8, str.restart_as_x86_64
mov dword [rsp + 0x28], ebx
lea rdx, section..data
mov qword [rsp + 0x20], rax
call sym.wine_dbg_log.constprop.1
jmp 0x401dc1
or edx, 0xffffffff
mov rcx, r12
call sym.wine_dbgstr_wn
lea r9, str.Restarting__s_n
mov ecx, 3
lea r8, str.restart_as_x86_64
mov qword [rsp + 0x20], rax
lea rdx, section..data
call sym.wine_dbg_log.constprop.0
jmp 0x401d8e
Function at 0x401e60
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
call qword [sym.imp.ucrtbase.dll__wcsdup]
mov r12, rax
test rax, rax
je 0x401f8b
mov rcx, rax
call qword [sym.imp.shlwapi.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x401eb0
xor r13d, r13d
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_free]
mov eax, r13d
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov rsi, qword [sym.imp.kernel32.dll_GetFileAttributesW]
mov rcx, r12
call rsi
cmp eax, 0xffffffff
je 0x401ec9
test al, 0x10
jne 0x401f80
movzx eax, word [r12]
test ax, ax
je 0x401f43
mov rdi, qword [sym.imp.kernel32.dll_CreateDirectoryW]
mov rbx, r12
mov rbp, qword gs:[0x30]
jmp 0x401efd
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
je 0x401f43
cmp ax, 0x5c
jne 0x401ef0
xor edx, edx
mov rcx, r12
mov word [rbx], dx
call rsi
cmp eax, 0xffffffff
je 0x401f16
test al, 0x10
jne 0x401f2e
xor edx, edx
mov rcx, r12
call rdi
test eax, eax
jne 0x401f2e
cmp dword [rbp + 0x68], 0xb7
jne 0x401e8b
mov eax, 0x5c
add rbx, 2
mov word [rbx - 2], ax
movzx eax, word [rbx]
test ax, ax
jne 0x401efd
mov rcx, r12
call rsi
cmp eax, 0xffffffff
je 0x401f51
test al, 0x10
jne 0x401f80
xor edx, edx
mov rcx, r12
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x401f80
xor r13d, r13d
mov rax, qword gs:[0x30]
cmp dword [rax + 0x68], 0xb7
sete r13b
jmp 0x401e8e
mov r13d, 1
jmp 0x401e8e
xor r13d, r13d
jmp 0x401e97
Function at 0x4028d0
Capabilities:
Set registry value

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x38
mov r13, rdx
mov rdx, qword [r9]
mov rbx, r9
mov rsi, r8
call sym.expand_expression
cmp qword [rbx], 0
mov r12, rax
je 0x402950
test rax, rax
je 0x4029d0
cmp word [r12], 0
mov rax, r12
je 0x4029e8
nop dword [rax]
add rax, 2
cmp word [rax], 0
jne 0x402910
sub rax, r12
sar rax, 1
lea eax, [rax + rax + 2]
mov edx, dword [rsp + 0x88]
test edx, edx
je 0x402962
mov r13d, 1
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_free]
mov eax, r13d
add rsp, 0x38
pop rbx
pop rsi
pop r12
pop r13
ret
test rax, rax
jne 0x4028fd
mov edx, dword [rsp + 0x88]
xor eax, eax
test edx, edx
jne 0x40292f
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, qword [rsi]
mov rcx, r13
mov qword [rsp + 0x20], r12
mov r9d, dword [rsp + 0x80]
call qword [sym.imp.advapi32.dll_RegSetValueExW]
test eax, eax
je 0x40292f
xor r13d, r13d
test byte [section..data], 2
je 0x402935
mov rcx, qword [rsi]
mov edx, 0xffffffff
call sym.wine_dbgstr_wn
lea r9, str.Failed_to_set_registry_key__s_n
mov ecx, 1
lea r8, str.install_registry_string
mov qword [rsp + 0x20], rax
lea rdx, section..data
call sym.wine_dbg_log.constprop.1
jmp 0x402935
xor r13d, r13d
mov eax, r13d
add rsp, 0x38
pop rbx
pop rsi
pop r12
pop r13
ret
mov eax, 2
jmp 0x402924
Function at 0x409790
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov r12, rcx
call qword [sym.imp.ucrtbase.dll_strlen]
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x4097e3
cmp byte [r12 + rbx - 1], 0xa
je 0x4097be
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x48]
xchg dword [0x00412124], eax
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, 1
mov r9, rax
mov r8, rbx
mov rcx, r12
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x28
pop rbx
pop r12
ret
Function at 0x409da0
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x100
cmp qword [0x00412140], 0
mov ebx, ecx
mov rsi, rdx
mov rdi, r8
je 0x409fa8
mov rcx, rsi
call qword [0x00412140]
movzx eax, al
bt eax, ebx
jae 0x40a080
mov ecx, dword [0x00412124]
xor eax, eax
mov rbp, qword gs:[0x30]
cmp dword [rbp + 0x48], ecx
je 0x409e97
test byte [0x0040b030], 8
jne 0x409f40
lea r12, [rsp + 0x30]
mov rbp, r12
test byte [0x0040b040], 8
jne 0x409ef0
mov rax, qword gs:[0x30]
mov r8d, dword [rax + 0x48]
lea rdx, str._04x:
mov rcx, rbp
call sym.sprintf
test rdi, rdi
je 0x409e3e
cmp ebx, 3
jbe 0x409eb0
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov r8, r12
mov r9, rax
mov ecx, dword [r8]
add r8, 4
lea edx, [rcx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x409e4f
mov eax, edx
mov rcx, r12
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea rax, [r8 + 2]
cmove r8, rax
mov eax, edx
add al, dl
mov edx, 1
sbb r8, 3
sub r8, r12
call qword [sym.imp.ucrtbase.dll_fwrite]
add rsp, 0x100
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cdqe
add rsi, 1
mov qword [rsp + 0x28], rdi
lea r8, str._s:_s:_s
lea rcx, [rbp + rax]
mov rax, r12
mov qword [rsp + 0x20], rsi
sub rax, rcx
lea rdx, [rax + 0xc8]
lea rax, str.fixme
mov r9, qword [rax + rbx*8]
call sym.snprintf.constprop.0
jmp 0x409e3e
cmp qword [0x00412140], 0
je 0x40a030
lea rcx, [0x0040b040]
call qword [0x00412140]
test al, 8
je 0x409e18
mov rax, qword gs:[0x30]
mov r8d, dword [rax + 0x40]
mov rcx, rbp
lea rdx, str._04x:
call sym.sprintf
cdqe
add rbp, rax
jmp 0x409e18
cmp qword [0x00412140], 0
je 0x409ff0
lea rcx, [0x0040b030]
call qword [0x00412140]
test al, 8
je 0x409e03
call qword [sym.imp.kernel32.dll_GetTickCount]
lea r12, [rsp + 0x30]
lea rdx, str._3u._03u:
mov r8d, eax
mov rcx, r12
mov r9, r8
imul r8, r8, 0x10624dd3
shr r8, 0x26
imul eax, r8d, 0x3e8
sub r9d, eax
call sym.sprintf
movsxd rbp, eax
add rbp, r12
jmp 0x409e0b
mov rbp, qword gs:[0x30]
lea rcx, str.ntdll.dll
mov r12d, dword [rbp + 0x68]
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
lea rdx, str.__wine_dbg_get_channel_flags
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
lea rdx, [sym.fallback__wine_dbg_get_channel_flags]
test rax, rax
cmove rax, rdx
xchg qword [0x00412140], rax
mov dword [rbp + 0x68], r12d
jmp 0x409dc7
mov r12d, dword [rbp + 0x68]
lea rcx, str.ntdll.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
lea rdx, str.__wine_dbg_get_channel_flags
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
lea rdx, [sym.fallback__wine_dbg_get_channel_flags]
test rax, rax
cmove rax, rdx
xchg qword [0x00412140], rax
mov dword [rbp + 0x68], r12d
jmp 0x409f4e
mov r13, qword gs:[0x30]
lea rcx, str.ntdll.dll
mov r14d, dword [r13 + 0x68]
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
lea rdx, str.__wine_dbg_get_channel_flags
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
lea rdx, [sym.fallback__wine_dbg_get_channel_flags]
test rax, rax
cmove rax, rdx
xchg qword [0x00412140], rax
mov dword [r13 + 0x68], r14d
jmp 0x409efe
mov eax, 0xffffffff
jmp 0x409e97
Function at 0x40a420
Capabilities:
Terminate process

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov ecx, 1
call sym._configure_wide_argv
call sym._initialize_wide_environment
call sym.__p___argc
mov r12d, dword [rax]
call sym.__p___wargv
mov r13, qword [rax]
call sym._get_initial_wide_environment
xor ecx, ecx
mov rbx, rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x10]
mov edx, dword [rax + 0x3c]
cmp word [rax + rdx + 0x5c], 2
sete cl
add ecx, 1
call sym._set_app_type
mov ecx, r12d
mov r8, rbx
mov rdx, r13
call sym.wmain
mov ecx, eax
call sym.exit
nop
nop
nop
nop
Function at 0x140130917
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add rcx, r9
movzx eax, byte [rcx]
inc rcx
jmp 0x140130967
mov r11d, dword [rbx + r9 + 0x20]
nop dword [rax + rax]
mov r10d, r8d
mov edx, 0xdda05123
lea rax, [r11 + r10*4]
mov ecx, dword [rax + r9]
jmp 0x1401308b8
je 0x1401309b2
inc r8d
jmp 0x1401308d0
xchg rbp, rax
xchg rsi, rcx
mov rsi, qword [rax]
xchg rsi, rcx
jmp 0x14013099d
mov rbp, qword [rcx + 0x10]
jne 0x140130951
je 0x140130951
jmp rcx
jmp 0x1401308f3
test al, al
je 0x1401308eb
nop dword [rax]
movsx eax, al
lea rcx, [rcx + 1]
xor eax, edx
jmp 0x140130980
imul edx, eax, 0x1000193
movzx eax, byte [rcx - 1]
test al, al
jne 0x140130972
cmp edx, 0xf6110457
jmp 0x1401308e5
mov r9, qword [rcx + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov ebx, dword [rax + r9 + 0x88]
jmp 0x1401308c6
mov ecx, dword [rbx + r9 + 0x24]
xorps xmm0, xmm0
add rcx, r9
mov qword [rsp + 0x20], r15
movzx edx, word [rcx + r10*2]
mov ecx, dword [rbx + r9 + 0x1c]
jmp 0x140130d7f
Function at 0x140132fda
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
fimul dword [rcx + 0x3b]
fimul dword [rdi]
test byte [rbx + 0x44fffffe], dh
mov ecx, dword [rbx + 0x18]
Function at 0x140003f80
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0xad], 0
je 0x140003fa8
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x1d]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0xac
jb 0x140003f90
mov byte [rcx + 0xad], 0
mov rax, rcx
ret

Function at 0x140003fb0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x57], 0
mov r8, rcx
mov rax, rcx
je 0x140003ff5
mov r9, rcx
neg r9
nop dword [rax]
nop word [rax + rax]
lea edx, [rax + r9]
lea ecx, [rdx + 0x1d]
add dl, 0x1e
xor byte [rax], cl
xor byte [rax + 1], dl
lea rax, [rax + 2]
lea rcx, [r9 + rax]
cmp rcx, 0x56
jb 0x140003fd0
mov byte [r8 + 0x57], 0
mov rax, r8
ret

Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x62], 0
je 0x140004023
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x1d]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x61
jb 0x140004010
mov byte [rcx + 0x62], 0
mov rax, rcx
ret

Function at 0x140004030
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x81], 0
mov r8, rcx
je 0x1400040cd
mov r9, 0xfffffffffffffffe
lea rax, [rcx + 2]
sub r9, rcx
nop
lea edx, [r9 + rax]
lea ecx, [rdx + 0x1d]
xor byte [rax - 2], cl
lea rax, [rax + 0x10]
lea ecx, [rdx + 0x1e]
xor byte [rax - 0x11], cl
lea ecx, [rdx + 0x1f]
xor byte [rax - 0x10], cl
lea ecx, [rdx + 0x20]
xor byte [rax - 0xf], cl
lea ecx, [rdx + 0x21]
xor byte [rax - 0xe], cl
lea ecx, [rdx + 0x22]
xor byte [rax - 0xd], cl
lea ecx, [rdx + 0x23]
xor byte [rax - 0xc], cl
lea ecx, [rdx + 0x24]
xor byte [rax - 0xb], cl
lea ecx, [rdx + 0x25]
xor byte [rax - 0xa], cl
lea ecx, [rdx + 0x26]
xor byte [rax - 9], cl
lea ecx, [rdx + 0x27]
xor byte [rax - 8], cl
lea ecx, [rdx + 0x28]
xor byte [rax - 7], cl
lea ecx, [rdx + 0x29]
xor byte [rax - 6], cl
lea ecx, [rdx + 0x2a]
xor byte [rax - 5], cl
lea ecx, [rdx + 0x2b]
xor byte [rax - 4], cl
add dl, 0x2c
xor byte [rax - 3], dl
lea rcx, [rax + r9]
cmp rcx, 0x80
jb 0x140004050
mov byte [r8 + 0x81], 0
mov rax, r8
ret

Function at 0x1400040e0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x5e], 0
mov r8, rcx
je 0x140004129
mov r9, 0xfffffffffffffffe
lea rax, [rcx + 2]
sub r9, rcx
nop word [rax + rax]
lea edx, [rax + r9]
lea ecx, [rdx + 0x1d]
xor byte [rax - 2], cl
lea rax, [rax + 3]
lea ecx, [rdx + 0x1e]
add dl, 0x1f
xor byte [rax - 4], cl
lea rcx, [r9 + rax]
xor byte [rax - 3], dl
cmp rcx, 0x5d
jb 0x140004100
mov byte [r8 + 0x5e], 0
mov rax, r8
ret