joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140064720
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub rsp, 0x4a8
mov rax, rcx
mov r10, rcx
mov qword [rsp + 0x4a0], r10
mov qword [rsp + 0x498], r9
mov qword [rsp + 0x490], r8
mov qword [rsp + 0x488], rdx
mov byte [rsp + 0x487], 0
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
call fcn.1400016c0
mov dword [rsp + 0x480], 0x400
mov qword [rsp + 0x78], 0
mov rcx, qword [rsp + 0x498]
add rcx, 0x60
lea rdx, [0x1401193e0]
mov qword [rsp + 0x38], rax
call fcn.140022590
test al, 1
jne 0x1400647a5
jmp 0x1400647ff
lea rcx, [rsp + 0x58]
lea rdx, [0x140120db1]
mov r8d, 0x22
call fcn.14002f4b0
lea rcx, [rsp + 0x58]
call fcn.1400073b0
mov rcx, qword [rsp + 0x498]
add rcx, 0x60
mov qword [rsp + 0x30], rax
call fcn.1400073b0
lea rcx, [rsp + 0x78]
mov rdx, rax
mov r8, qword [rsp + 0x30]
call fcn.1400da4ec
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x2c], eax
call fcn.140001770
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x50], 0xffffffff
xor eax, eax
cmp dword [rsp + 0x54], 0
mov byte [rsp + 0x2b], al
je 0x14006482c
cmp dword [rsp + 0x50], 0
setne al
mov byte [rsp + 0x2b], al
mov al, byte [rsp + 0x2b]
test al, 1
jne 0x14006483d
jmp 0x1400648d5
lea rdx, [rsp + 0x80]
mov rax, qword [rsp + 0x488]
mov rcx, qword [rax]
mov r8d, 0x400
lea r9, [rsp + 0x50]
call qword [sym.imp.WININET.dll_InternetReadFile]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x50], 0
je 0x140064888
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x490]
add eax, dword [rcx + 0xe4]
mov dword [rcx + 0xe4], eax
cmp qword [rsp + 0x78], 0
je 0x1400648b7
lea rcx, [rsp + 0x80]
mov r9, qword [rsp + 0x78]
mov eax, dword [rsp + 0x50]
mov r8d, eax
mov edx, 1
call fcn.1400dd918
jmp 0x1400648d0
lea rdx, [rsp + 0x80]
mov eax, dword [rsp + 0x50]
mov r8d, eax
mov rcx, qword [rsp + 0x48]
call fcn.14001d870
jmp 0x14006480f
cmp qword [rsp + 0x78], 0
je 0x1400648f9
mov rcx, qword [rsp + 0x78]
call fcn.1400dc858
mov rcx, qword [rsp + 0x78]
mov dword [rsp + 0x24], eax
call fcn.1400dc770
mov byte [rsp + 0x487], 1
test byte [rsp + 0x487], 1
jne 0x140064919
mov rcx, qword [rsp + 0x48]
call fcn.140001770
mov rax, qword [rsp + 0x40]
add rsp, 0x4a8
ret
Function at 0x140064930
Capabilities:
Check http status code

Disassembly:
sub rsp, 0xf8
mov rax, rcx
mov r9, rcx
mov qword [rsp + 0xf0], r9
mov qword [rsp + 0xe8], r8
mov qword [rsp + 0xe0], rdx
mov dword [rsp + 0xdc], 0
mov dword [rsp + 0xd8], 4
mov byte [rsp + 0xd7], 0
mov qword [rsp + 0x68], rcx
lea rdx, [0x1401193e0]
mov qword [rsp + 0x60], rax
call fcn.140006090
xor r10d, r10d
mov ecx, r10d
lea rdx, [rsp + 0xdc]
mov r8, qword [rsp + 0xe0]
mov r8, qword [r8]
mov qword [rsp + 0x58], rcx
mov rcx, r8
mov r10d, 0x20000013
mov qword [rsp + 0x50], rdx
mov edx, r10d
mov r8, qword [rsp + 0x50]
lea r9, [rsp + 0xd8]
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x48], rax
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp eax, 0
je 0x140064afc
cmp dword [rsp + 0xdc], 0x12b
jbe 0x140064a04
cmp dword [rsp + 0xdc], 0x190
jb 0x140064a15
cmp dword [rsp + 0xdc], 0xc9
jne 0x140064abc
lea rcx, [rsp + 0xb0]
lea rdx, [0x140120dd4]
mov r8d, 0x22
call fcn.14002f4b0
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0xb0]
call fcn.140015f40
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
call fcn.140001770
mov rax, qword [rsp + 0xe8]
mov r9d, dword [rax + 0xe8]
add r9d, 1
mov dword [rax + 0xe8], r9d
lea rcx, [rsp + 0x90]
lea rdx, [0x140120df7]
mov r8d, 0x28
call fcn.14002f4b0
mov rax, qword [rsp + 0xe8]
add rax, 0xa0
mov rcx, rax
lea rdx, [rsp + 0x90]
call fcn.140015f40
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x38], rax
call fcn.140001770
jmp 0x140064af7
mov edx, dword [rsp + 0xdc]
lea rcx, [rsp + 0x70]
call fcn.140023990
mov rax, qword [rsp + 0xe8]
add rax, 0xa0
mov rcx, rax
lea rdx, [rsp + 0x70]
call fcn.140015f40
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rax
call fcn.140001770
jmp 0x140064b01
jmp 0x140064b01
mov byte [rsp + 0xd7], 1
test byte [rsp + 0xd7], 1
jne 0x140064b21
mov rcx, qword [rsp + 0x68]
call fcn.140001770
mov rax, qword [rsp + 0x60]
add rsp, 0xf8
ret
Function at 0x140089310
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14009c470
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14009c4a2
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14009c485
mov rax, r8
ret

Function at 0x140094ddc
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14009bdb0
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14009bde2
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14009bdc5
mov rax, r8
ret

Function at 0x1400d66f4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400d6968
Function at 0x1409c2c00
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1409c2c0a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1409c2c33
pop rbp
sub rbp, 0x33
sub rbp, 0x9c2c00
sub rsp, 0x20
jmp 0x1409c2c52
mov rax, 0x9c2c00
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0xffffffffb60a8dd6
xor byte [rax], dl
inc rax
dec rcx
jne 0x1409c2c71
jmp 0x1409c2c88
sahf
pop rdi
invalid

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x14000ade0
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.140016ec0
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.140016ec0
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 0x14000ae50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x1400dd0b4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x14000b000
mov rax, qword [0x1400dd0b8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000ae9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000af27
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x14000ae80
mov rcx, r12
call fcn.14000b900
mov rbp, rax
test rax, rax
je 0x14000b05d
mov rax, qword [0x1400dd0b8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.14000ba30
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400dd0b8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b042
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000af20
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000afb0
add dword [0x1400dd0b4], 1
cmp ebx, 8
jae 0x14000af58
test bl, 4
jne 0x14000b010
test ebx, ebx
je 0x14000af49
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x14000b030
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 0x14000af49
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 0x14000af8a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x1400dd0b8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000af20
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000ade0
xor edi, edi
jmp 0x14000aea7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x14000af49
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x14000af49
mov rax, qword [0x1400dd0b8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.14000ade0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.14000ade0
nop
nop dword [rax]
Function at 0x14000b570
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400dd120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400dd100]
test rbx, rbx
je 0x14000b5c4
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 0x14000b5bb
test r12, r12
je 0x14000b5bb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b5a0
lea rcx, [0x1400dd120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000b900
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x1400b85a0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x14000b979
mov rcx, r10
call fcn.14000b7d0
test eax, eax
je 0x14000b979
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 0x14000b976
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 0x14000b96d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x14000b979
add r8, 0x28
cmp r8, r9
jne 0x14000b958
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x14000bc70
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x1400dd108]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x14000b600
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x14000b653
mov dword [rax], edi
lea rcx, [0x1400dd120]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400dd100]
lea rcx, [0x1400dd120]
mov qword [0x1400dd100], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x14000b5f6
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x14000bca0
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x140017110
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x140017120
xor eax, eax
ret
jmp 0x14000b5e0

Function at 0x14000bce0
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x14000bd20
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000bd38
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x140073930
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x140073957
call rbp
cmp dword [rax], 4
jne 0x140073974
mov rcx, rdi
call fcn.140073750
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x140073950
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x0048ed30]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x0048ed40]
mov dword [rax], 1
mov rax, qword [0x0048ed50]
mov dword [rax], 1
mov rax, qword [0x0048ed20]
mov dword [rax], 1
mov rax, qword [0x0048eba0]
cmp word [rax], 0x5a4d
je 0x4010d0
mov rax, qword [0x0048ed10]
mov dword [0x004aa008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010c2
mov ecx, 2
call sub.msvcrt.dll___set_app_type
mov rcx, 0xffffffffffffffff
call fcn.0040ec60
mov rdx, qword [0x0048ec50]
mov qword [rdx], rax
mov rdx, qword [0x0048ec40]
mov qword [rdx], rax
mov rax, qword [0x0048ecd0]
mov edx, dword [rax]
mov rax, qword [sym.imp.msvcrt.dll__fmode]
mov rax, qword [rax]
mov dword [rax], edx
call fcn.0040ec70
mov rax, qword [0x0048e2a0]
cmp dword [rax], 1
je 0x401120
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sub.msvcrt.dll___set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401133
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [0x0040ece0]
call fcn.0040ecd0
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x4021e1
Capabilities:
Get disk information

Disassembly:
push rbp
push rbx
sub rsp, 0x158
lea rbp, [rsp + 0x80]
mov byte [rbp + 0xcf], 0x30
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x104
mov rax, qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
call rax
mov dword [rbp + 0xc4], eax
lea rax, [rbp + 0xc3]
mov rcx, rax
call sym.unk_230
lea rdx, [rbp + 0xc3]
lea rax, [rbp + 0xb0]
mov r8, rdx
lea rdx, [0x0048a0ff]
mov rcx, rax
call sym.unk_222
lea rax, [rbp + 0xc3]
mov rcx, rax
call sym.unk_234
mov dword [rbp + 0xc8], 0
jmp 0x4022f3
mov eax, dword [rbp + 0xc8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
cmp al, 0x40
jle 0x4022ec
mov eax, dword [rbp + 0xc8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
cmp al, 0x59
jg 0x4022ec
mov eax, dword [rbp + 0xc8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
movsx edx, al
lea rax, [rbp + 0xb0]
mov r8d, edx
mov edx, 1
mov rcx, rax
call sym.unk_182
mov eax, dword [rbp + 0xc8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
movsx eax, al
mov r8d, 0
mov edx, eax
lea rcx, [0x004aa030]
call sym.unk_83
cmp rax, 0x64
seta al
test al, al
je 0x4022ec
mov eax, dword [rbp + 0xc8]
cdqe
movzx eax, byte [rbp + rax - 0x60]
mov byte [rbp + 0xcf], al
add dword [rbp + 0xc8], 1
mov eax, dword [rbp + 0xc8]
cmp eax, dword [rbp + 0xc4]
jb 0x402261
lea rax, [rbp + 0xb0]
mov rdx, rax
lea rcx, [0x004aa030]
call sym.unk_191
movzx ebx, byte [rbp + 0xcf]
lea rax, [rbp + 0xb0]
mov rcx, rax
call sym.unk_55
mov eax, ebx
jmp 0x40236f
add rsp, 0x158
pop rbx
pop rbp
ret
Function at 0x4024b9
Capabilities:
Get session user name

Disassembly:
push rbp
push rbx
sub rsp, 0x138
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xd0], rcx
mov dword [rbp + 0xa8], 0x101
lea rdx, [rbp + 0xa8]
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_GetUserNameA]
call rax
test eax, eax
setne al
test al, al
je 0x402538
lea rax, [rbp + 0xae]
mov rcx, rax
call sym.unk_230
lea rdx, [rbp + 0xae]
lea rax, [rbp - 0x60]
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0xd0]
call sym.unk_222
lea rax, [rbp + 0xae]
mov rcx, rax
call sym.unk_234
jmp 0x4025af
lea rax, [rbp + 0xaf]
mov rcx, rax
call sym.unk_230
lea rax, [rbp + 0xaf]
mov r8, rax
lea rdx, [0x0048a0ff]
mov rcx, qword [rbp + 0xd0]
call sym.unk_222
lea rax, [rbp + 0xaf]
mov rcx, rax
call sym.unk_234
jmp 0x4025af
mov rax, qword [rbp + 0xd0]
add rsp, 0x138
pop rbx
pop rbp
ret

Function at 0x40ee50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x004aa064]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x40ef6a
mov rax, qword [0x004aa068]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40ee9e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x40ef50
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x40ee82
mov rcx, rbx
call fcn.0040fc90
test rax, rax
mov r12, rax
je 0x40efa2
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x004aa068]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.0040fdb0
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004aa068]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40ef85
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x40ef49
sub eax, 0x40
and eax, 0xffffffbf
je 0x40ef49
mov r9, rbp
add r9, qword [0x004aa068]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40ef71
add dword [0x004aa064], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebp, ebp
jmp 0x40eeab
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040ede0
mov rax, qword [0x004aa068]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call fcn.0040ede0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0040ede0
nop
nop word cs:[rax + rax]

Function at 0x40fba0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x40fbe1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x40fbd8
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40fbe3
add rax, 0x28
cmp rax, r9
jne 0x40fbc4
xor eax, eax
repz ret
Function at 0x40fc90
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x0048eba0]
cmp word [rbx], 0x5a4d
je 0x40fcb0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call fcn.0040fb60
test eax, eax
je 0x40fca4
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.0040fba0

Function at 0x40ff00
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004aa9c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004aa9a0]
test rbx, rbx
je 0x40ff54
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40ff4b
test rsi, rsi
je 0x40ff4b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x40ff30
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004aa9c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x4106f0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov rdi, rcx
movsxd r12, edx
mov r13, r8
call sub.msvcrt.dll_strlen
mov rsi, rax
lea ebx, [rax + 0xf]
lea eax, [rax + 0x52]
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.00410630
sub rsp, rax
movsxd r14, esi
movabs rax, 0x656d68732d636367
lea r15, [rsp + 0x20]
lea rcx, [rsp + 0x2f]
mov r8, r14
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov eax, 0x326d
mov dword [rsp + 0x28], 0x64742d6d
mov word [rsp + 0x2c], ax
movsxd rbx, ebx
mov byte [rsp + 0x2e], 0x2d
call sub.msvcrt.dll_memcpy
lea rax, [r15 + r14 + 0x10]
lea r14d, [rsi + 0x50]
movabs rdx, 0x6161616161616161
xor ecx, ecx
mov r8, r15
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [rax + 0x20], rdx
mov qword [rax + 0x28], rdx
mov qword [rax + 0x30], rdx
mov qword [rax + 0x38], rdx
movsxd rax, r14d
xor edx, edx
mov byte [rsp + rax + 0x20], 0
mov byte [rsp + rbx + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov byte [rsp + rbx + 0x20], 0x2d
mov rdi, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4107d9
int3
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x410878
mov rcx, r12
call sub.msvcrt.dll_malloc
lea r9d, [rsi + 0x10]
mov rbx, rax
mov r10d, 0x40
bt rbx, r10
jae 0x410814
mov r11d, r14d
sub r11d, r10d
movsxd r11, r11d
mov byte [r15 + r11], 0x41
sub r10d, 1
jne 0x410800
mov dword [rbp - 0x54], r9d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
mov r9d, dword [rbp - 0x54]
je 0x410875
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.00410670
cmp rax, rbx
mov rsi, rax
je 0x410890
mov rcx, rbx
call fcn.0041b420
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
int3
lea r9d, [rsi + 0x10]
lea r8d, [rsi + 0x51]
movzx ecx, ax
mov rdx, r15
call fcn.00410670
mov rsi, rax
jmp 0x41084f
xor edx, edx
mov r8, r12
mov rcx, rbx
call sub.msvcrt.dll_memset
test r13, r13
je 0x41084f
mov rcx, rbx
call r13
jmp 0x41084f