joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a0bf0
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 0x1400a0c32
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 0x1400a0c79
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 0x1400a0cd2
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 0x1400a0c90
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x1400a0d13
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400b32e2]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400b32e3]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400a0ce0
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 0x1400a1bcc
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x90], rcx
mov r12, rdx
call sub.msvcrt.dll_wcslen
mov r15, qword [rsp + 0x90]
mov rbp, rax
jmp 0x1400015a1
add rbp, 1
mov rax, rbx
sub rax, r15
sar rax, 1
sub rbp, rax
lea r10, [rbp + rbp]
lea ebp, [rdi - 1]
test r9d, r9d
jg 0x140001680
sub ebp, r9d
mov dword [rsp + 0x28], r9d
mov r8d, edi
mov rdx, rsi
movsxd rbp, ebp
mov qword [rsp + 0x38], r10
mov rcx, r13
mov qword [rsp + 0x30], r11
movzx ebp, word [rsi + rbp*2]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r9d, dword [rsp + 0x28]
test r9d, r9d
je 0x140001599
mov r11, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov rdx, rbx
lea rcx, [rbx + r11*2]
call sub.msvcrt.dll_memmove
mov word [rsi + rdi*2 - 2], bp
mov rbp, r14
lea rdx, section..rdata
mov rcx, r15
call sub.msvcrt.dll_wcsstr
mov rsi, rax
test rax, rax
je 0x1400016e8
lea r13, [rax + 4]
lea rdx, section..rdata
mov rcx, r13
call sub.msvcrt.dll_wcsstr
test rax, rax
je 0x1400016e8
xor edx, edx
lea rbx, [rax + 4]
xor r8d, r8d
mov rcx, r13
mov word [rax], dx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r9, rbx
sub r9, rsi
movsxd rdi, eax
sar r9, 1
not r9d
add r9d, edi
movsxd r11, r9d
lea r14, [r11 + rbp]
cmp r14, r12
jb 0x140001530
lea r12, [r12 + r12*2 + 0x30]
lea rax, [r14 + 1]
mov dword [rsp + 0x30], r9d
shr r12, 1
mov qword [rsp + 0x28], r11
cmp r14, r12
cmovae r12, rax
cmp r15, qword [rsp + 0x90]
lea rdx, [r12 + r12]
je 0x1400016b0
mov rcx, r15
call sub.msvcrt.dll_realloc
mov r11, qword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
test rax, rax
mov rcx, rax
je 0x1400016fc
add rbp, 1
mov rax, rcx
sub rax, r15
mov r15, rcx
add rsi, rax
add rbx, rax
lea r13, [rsi + 4]
jmp 0x140001534
lea rcx, [rbx + r11*2]
mov r8, r10
mov rdx, rbx
movsxd rbp, ebp
call sub.msvcrt.dll_memmove
movzx ebp, word [rsi + rbp*2]
mov r8d, edi
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x140001599
mov rcx, rdx
call sub.msvcrt.dll_malloc
mov rcx, rax
test rax, rax
je 0x1400016fc
add rbp, 1
mov rdx, r15
lea r8, [rbp + rbp]
call sub.msvcrt.dll_memcpy
mov r11, qword [rsp + 0x28]
mov r9d, dword [rsp + 0x30]
mov rcx, rax
jmp 0x14000165e
mov rax, r15
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call qword [fcn.140002cc0]
mov r8, r13
lea rdx, str.Substituting__s_results_in_too_large_a_command_line_n
mov rcx, rax
call sub.msvcrt.dll_fwprintf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop word cs:[rax + rax]
nop
Function at 0x140001730
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rdi, rcx
mov rbp, rdx
lea rdx, [rsp + 0x2c]
mov rsi, r8
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
mov eax, dword [rsp + 0x2c]
test eax, eax
jle 0x1400017b5
mov rdi, qword [rbx]
movzx ecx, word [rdi]
cmp cx, 0x5c
je 0x1400017a8
call qword [sym.imp.msvcrt.dll_isalpha]
test eax, eax
je 0x140001774
cmp word [rdi + 2], 0x3a
je 0x1400017a8
mov rdx, rbp
mov rcx, rsi
call sub.msvcrt.dll_wcscpy
mov rdx, qword [rbx]
mov r8d, 0x1000
mov rcx, rsi
call fcn.140001450
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rdx, rdi
mov rcx, rsi
call sub.msvcrt.dll_wcscpy
jmp 0x140001790
mov ecx, 2
call qword [fcn.140002cc0]
mov r8, rdi
lea rdx, str.Invalid_command_line:__s_n
mov rcx, rax
call sub.msvcrt.dll_fwprintf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop dword [rax]

Function at 0x140001a20
Capabilities:
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, r8d
mov rbx, rcx
mov r13, rdx
call sub.msvcrt.dll_wcscpy
test esi, esi
je 0x140001a53
js 0x140001a70
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140001b4d
call fcn.140001800
test eax, eax
jne 0x140001b2d
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rbp, qword [sym.imp.msvcrt.dll__waccess]
mov r14, qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r12, [0x14004a040]
jmp 0x140001afa
mov r8d, 0x1000
mov rdx, r12
mov rcx, rbx
movsxd rdi, edi
call fcn.140001450
xor edx, edx
mov rcx, rbx
lea rdi, [rbx + rdi*2]
call rbp
cmp eax, 0xffffffff
jne 0x140001b43
xor eax, eax
mov r8d, 0x1000
lea rdx, str.mingw_bin
mov rcx, rbx
mov word [rdi], ax
call fcn.140001450
xor edx, edx
mov rcx, rbx
call rbp
xor edx, edx
mov word [rdi], dx
cmp eax, 0xffffffff
jne 0x140001a60
add esi, 1
je 0x140001b75
mov rcx, rbx
call r14
test eax, eax
je 0x140001b4d
mov rcx, rbx
call sub.msvcrt.dll_wcslen
mov rdi, rax
call fcn.140001800
test eax, eax
je 0x140001a90
mov rcx, rbx
call fcn.1400019c0
test eax, eax
je 0x140001a90
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp fcn.1400019c0
mov word [rdi], 0
jmp 0x140001a60
mov ecx, 2
call qword [fcn.140002cc0]
mov r8, r13
lea rdx, str.Invalid_executable_path:__s_n
mov rcx, rax
call sub.msvcrt.dll_fwprintf
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 2
call qword [fcn.140002cc0]
mov r8, r13
lea rdx, str.Top_level_not_found:__s_n
mov rcx, rax
call sub.msvcrt.dll_fwprintf
mov ecx, 1
call sub.msvcrt.dll_exit
nop
nop dword [rax]
Function at 0x1400025d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14004a180]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14004a160]
test rbx, rbx
je 0x14000262c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002623
test eax, eax
jne 0x140002623
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002608
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002960
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006d40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002980
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002988
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002980
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400029dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400029d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002980
add rax, 0x28
cmp rax, r9
jne 0x1400029c0
xor eax, eax
ret

Function at 0x1400029e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006d40]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400029ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002a08
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400029ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002aa0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006d40]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002abf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002ac8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x40182a
Capabilities:
Capture screenshot

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xe8
mov rbx, qword [rcx + 8]
mov rsi, qword [rcx]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x98], rbx
lea r13, [rsp + 0x78]
mov qword [rsp + 0x78], rax
cmp rbx, 7
jbe 0x40188c
lea rdx, [rsp + 0x98]
xor r8d, r8d
mov rcx, r13
call fcn.004a6130
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x78]
xor eax, eax
cmp rax, rbx
je 0x4018a6
movsx cx, byte [rsi + rax]
mov word [rdx + rax*2], cx
inc rax
jmp 0x401893
mov rdx, qword [rsp + 0x98]
mov rcx, r13
call fcn.004a4890
mov edx, 1
xor ecx, ecx
call qword [sym.imp.USER32.dll_MonitorFromPoint]
mov rcx, rax
test rax, rax
je 0x401a46
mov dword [rsp + 0x98], 0x48
lea rdx, [rsp + 0x98]
call qword [sym.imp.USER32.dll_GetMonitorInfoA]
test eax, eax
jne 0x4018fd
mov rcx, qword [0x004e70e8]
call sub.gdiplus.dll_GdiplusShutdown
jmp 0x401a46
mov ebx, dword [rsp + 0xa4]
mov ebp, dword [rsp + 0xa8]
xor ecx, ecx
sub ebx, dword [rsp + 0x9c]
sub ebp, dword [rsp + 0xa0]
call qword [sym.imp.USER32.dll_GetDC]
mov r12, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r14, rax
mov r8d, ebp
mov edx, ebx
mov rcx, r12
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdi, qword [sym.imp.GDI32.dll_SelectObject]
mov r15, rax
mov rdx, rax
mov rcx, r14
call rdi
mov dword [rsp + 0x40], 0xcc0020
mov rsi, rax
mov r9d, ebx
xor edx, edx
mov dword [rsp + 0x38], 0
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], ebp
call qword [sym.imp.GDI32.dll_BitBlt]
lea rbp, [rsp + 0x50]
lea rax, fcn.00423340
xor edx, edx
mov rcx, r15
mov r8, rbp
mov dword [rsp + 0x70], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], 0
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x50]
mov rdx, rbp
lea rcx, str.image_jpeg
lea rbx, [rsp + 0x60]
mov qword [rsp + 0x68], rax
call fcn.00401778
jmp 0x4019fc
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov r8, rbp
call sub.gdiplus.dll_GdipSaveImageToFile
test eax, eax
je 0x401a19
mov dword [rsp + 0x70], eax
mov rdx, rsi
mov rcx, r14
call rdi
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r12
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, rbx
call fcn.00423340
mov rcx, r13
call fcn.004a4200
nop
add rsp, 0xe8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x401c74
Capabilities:
Create process on windows
Terminate process

Disassembly:
push r12
push rdi
sub rsp, 0xd8
mov r12, rcx
mov rcx, qword [0x004e70e8]
call sub.gdiplus.dll_GdiplusShutdown
lea rdx, [rsp + 0x68]
xor eax, eax
xor r9d, r9d
lea r8, [rsp + 0x50]
mov rdi, rdx
mov ecx, 0x1a
rep stosd dword [rdi], eax
mov rdi, r8
mov ecx, 6
rep stosd dword [rdi], eax
mov qword [rsp + 0x48], r8
xor r8d, r8d
mov qword [rsp + 0x40], rdx
mov rdx, r12
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rsp + 0x50]
mov r12, qword [sym.imp.KERNEL32.dll_CloseHandle]
call r12
mov rcx, qword [rsp + 0x58]
call r12
mov rcx, qword [0x004e70e0]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x402339
Capabilities:
Get file attributes
Get graphical window text
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0x708
mov rdx, qword [0x004e7060]
mov r8d, 5
lea r12, [rsp + 0x130]
mov r14, rcx
mov rcx, r12
call fcn.00493540
mov rcx, qword [0x004e7060]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
je 0x402385
test byte [rsp + 0x218], 5
je 0x402399
jmp 0x4023ba
or eax, 2
mov rcx, qword [0x004e7060]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x402379
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
test rax, rax
jne 0x4023d3
mov rdx, r14
mov rcx, r12
call fcn.004b22d0
mov rcx, r12
call fcn.004933b0
mov rcx, r12
call fcn.00493f10
nop
add rsp, 0x708
pop r12
pop r13
pop r14
pop r15
ret
lea r15, [rsp + 0x300]
mov r8d, 0x400
mov rdx, r15
call qword [sym.imp.USER32.dll_GetWindowTextA]
lea rdx, [rsp + 0x40]
lea r13, [rsp + 0x30]
cdqe
xor r9d, r9d
mov qword [rsp + 0x30], rdx
lea r8, [r15 + rax]
mov rdx, r15
mov rcx, r13
call fcn.004a1db0
mov rdx, r13
lea rcx, [0x004e70a0]
call fcn.004a3f40
mov rcx, r13
call fcn.004a18b0
lea rdx, [0x004e7080]
lea rcx, [0x004e70a0]
call fcn.004b2240
test al, al
jne 0x4023a7
lea rdx, [0x004e70a0]
lea rcx, [0x004e7080]
call fcn.004a3600
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__time64]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
call qword [sym.imp.msvcrt.dll__localtime64]
mov edx, 0x100
mov rcx, r13
mov r9, rax
lea r8, [0x004ba094]
call sub.msvcrt.dll_strftime
lea rdx, [0x004ba097]
mov rcx, r12
call fcn.004b22d0
mov rcx, rax
lea rdx, [0x004e70a0]
call fcn.004b2540
mov rcx, rax
lea rdx, str._____
call fcn.004b22d0
mov rcx, rax
mov rdx, r13
call fcn.004b22d0
mov rcx, rax
lea rdx, [0x004ba0a1]
call fcn.004b22d0
jmp 0x4023a7
Function at 0x4035e8
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push r14
mov eax, 0x13d0
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.00411880
sub rsp, rax
mov r13, rcx
mov esi, edx
lea rax, [rsp + 0x30]
mov byte [rsp + 0x30], 0
lea r12, [rsp + 0xa08]
lea rdx, str.mt19937
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
mov rcx, r12
call fcn.00403210
lea r14, [rsp + 0x40]
mov rdx, r12
mov rcx, r14
call fcn.00490630
mov rcx, r12
call fcn.004a18b0
mov rcx, r14
call fcn.00490650
mov dword [rsp + 0xa08], eax
mov edx, 1
jmp 0x403674
mov eax, dword [r12 + rdx*4 - 4]
mov ecx, eax
shr ecx, 0x1e
xor eax, ecx
imul eax, eax, 0x6c078965
add eax, edx
mov dword [r12 + rdx*4], eax
inc rdx
cmp rdx, 0x270
jne 0x403674
xor ebx, ebx
mov edi, 0x9d89d89
lea rbp, [rsp + 0x20]
mov qword [rsp + 0x13c8], 0x270
cmp ebx, esi
jge 0x4036d4
mov rcx, r12
call fcn.0049cfc0
cmp eax, 0xffffffe9
ja 0x4036b4
xor edx, edx
mov rcx, rbp
div edi
lea edx, [rax + 0x61]
call fcn.004a38a0
inc ebx
jmp 0x4036b0
lea r12, [rsp + 0x20]
lea rdx, str.____
mov rcx, r13
mov r8, r12
call fcn.004b2990
mov rcx, r12
call fcn.004a18b0
mov rax, r13
add rsp, 0x13d0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x4047d4
Capabilities:
Get session user name

Disassembly:
push r13
push r12
sub rsp, 0x138
mov r12, rcx
lea r13, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov dword [rsp + 0x2c], 0x100
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov rdx, r13
mov rcx, r12
call fcn.00403210
mov rax, r12
add rsp, 0x138
pop r12
pop r13
ret
Function at 0x404e15
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0xc8
lea r13, [rsp + 0x80]
lea r14, [rsp + 0x40]
mov rcx, r13
call fcn.00404d9b
lea rdx, [0x004ba144]
mov rcx, r14
call fcn.00403210
movabs rax, 0xcf5fcd5ad2ebab97
lea rcx, [rsp + 0x30]
lea r15, [rsp + 0x60]
movabs rdx, 0xcf5fcd5a82a6eec3
mov qword [rsp + 0x30], rax
movabs rax, 0x43c85e17a87245b8
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rax
vmovdqu xmm1, xmmword [rsp + 0x20]
vpxor xmm0, xmm1, xmmword [rsp + 0x30]
vmovups xmmword [rsp + 0x30], xmm0
call sub.msvcrt.dll_getenv
mov r8, r14
mov rcx, r15
mov rdx, rax
call fcn.004b2960
lea r12, [rsp + 0xa0]
mov r8, r13
mov rdx, r15
mov rcx, r12
call fcn.004b28e0
mov rdx, r12
lea rcx, [0x004e7060]
call fcn.004a3f40
mov rcx, r12
call fcn.004a18b0
mov rcx, r15
call fcn.004a18b0
mov rcx, r14
call fcn.004a18b0
mov rcx, r13
call fcn.004a18b0
or r8, 0xffffffffffffffff
lea rdx, [0x004ba156]
lea rcx, [0x004e7060]
call fcn.0042f2e0
cmp rax, 0xffffffffffffffff
je 0x404f62
lea rdx, [rax + 1]
or r8, 0xffffffffffffffff
lea rcx, [0x004e7060]
call fcn.004a23f0
lea rdx, [0x004ba5ed]
lea rcx, [0x004e7060]
call fcn.004a2470
jmp 0x404f62
add rsp, 0xc8
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x410800
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.0041c6b0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.0041c6b0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x410870
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x004e7714]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x410a18
mov rax, qword [0x004e7718]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x4108bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x410947
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x4108a0
mov rcx, r12
call fcn.004115d0
mov rbp, rax
test rax, rax
je 0x410a52
mov rax, qword [0x004e7718]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00411700
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004e7718]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x410a61
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x410940
sub eax, 4
and eax, 0xfffffffb
jne 0x4109d0
add dword [0x004e7714], 1
cmp ebx, 8
jae 0x410978
test bl, 4
jne 0x410a20
test ebx, ebx
je 0x410969
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x410a40
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x410969
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x4109aa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x004e7718]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x410940
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00410800
nop dword [rax]
xor edi, edi
jmp 0x4108c7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x410969
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x410969
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00410800
mov rax, qword [0x004e7718]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00410800
nop
nop dword [rax]
Function at 0x411240
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004e7a00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004e79e0]
test rbx, rbx
je 0x411294
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x41128b
test r12, r12
je 0x41128b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x411270
lea rcx, [0x004e7a00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x4115d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004bfa20]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x411649
mov rcx, r10
call fcn.004114a0
test eax, eax
je 0x411649
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x411646
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x41163d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x411649
add r8, 0x28
cmp r8, r9
jne 0x411628
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x41e500
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x004b8158], eax
cmp eax, 0xffffffff
je 0x4b7300
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x41eb60
Capabilities:
Print debug messages

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rbx, rcx
test rcx, rcx
je 0x41eb85
call fcn.0041e3c0
cmp eax, 1
je 0x41eb92
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
ret
lea r12, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
mov rdi, r12
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x41ec18
mov eax, 0x28
jmp 0x41ebea
add rax, 1
cmp rax, 0x6b
je 0x41ec0a
cmp byte [r12 + rax], 0
mov edx, eax
jne 0x41ebe0
cmp eax, 0x6a
je 0x41ec0a
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
jmp 0x41ebf8