joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140667000
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov eax, 0x10088
call fcn.140695120
sub rsp, rax
mov rax, qword [0x1406d5b28]
xor rax, rsp
mov qword [rsp + 0x10080], rax
mov word [rsp + 0x80], 0
mov word [rsp + 0x30], 0
movzx ebp, byte [rcx]
test bpl, bpl
je 0x1406670d8
mov rsi, rcx
mov r14d, 0x28
lea r15, [rsp + 0x30]
xor eax, eax
lea rdi, [rsp + 0x2e]
nop dword [rax]
mov rbx, r15
mov rcx, r14
test ax, ax
je 0x140667091
mov rcx, r14
mov rax, r15
nop word cs:[rax + rax]
lea rbx, [rax + 2]
dec rcx
cmp word [rax + 2], 0
mov rax, rbx
jne 0x140667080
test rcx, rcx
je 0x140667134
mov rcx, rbx
call fcn.1406a6058
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2e], bpl
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rdx, rdi
call fcn.1406a3f70
movzx ebp, byte [rsi + 1]
test bpl, bpl
je 0x1406670d8
inc rsi
dec r14
movzx eax, word [r15 + 2]
add r15, 2
jmp 0x140667060
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x80]
mov r8d, 0x10000
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
add eax, 0xfffeffff
cmp eax, 0xffff0000
jae 0x140667101
xor esi, esi
jmp 0x140667111
lea rcx, [rsp + 0x80]
call fcn.1406a2830
mov rsi, rax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140695180
mov rax, rsi
add rsp, 0x10088
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1406a3c24
int3

Function at 0x140667140
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x90
mov rsi, rdx
mov rax, qword [0x1406d5b28]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov word [rsp + 0x30], 0
movzx ebp, byte [rcx]
test bpl, bpl
je 0x140667205
mov rdi, rcx
mov r15d, 0x28
lea r12, [rsp + 0x30]
xor eax, eax
lea rbx, [rsp + 0x2e]
nop
mov r14, r12
mov rcx, r15
test ax, ax
je 0x1406671c1
mov rcx, r15
mov rax, r12
nop word cs:[rax + rax]
lea r14, [rax + 2]
dec rcx
cmp word [rax + 2], 0
mov rax, r14
jne 0x1406671b0
test rcx, rcx
je 0x140667236
mov rcx, r14
call fcn.1406a6058
lea rcx, [r14 + rax*2]
mov byte [rsp + 0x2e], bpl
mov byte [rsp + 0x2f], 0
mov r8d, 2
mov rdx, rbx
call fcn.1406a3f70
movzx ebp, byte [rdi + 1]
test bpl, bpl
je 0x140667205
inc rdi
dec r15
movzx eax, word [r12 + 2]
add r12, 2
jmp 0x140667190
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140695180
nop
add rsp, 0x90
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1406a3c24
int3
Function at 0x140681800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp byte [0x140713980], 0
jne 0x14068187e
mov edx, 3
mov r8d, 0xa
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140713978], rax
mov ebp, dword [rax]
lea rcx, [rax + 4]
mov qword [0x140713978], rcx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140713978], rdx
xor ecx, ecx
call fcn.140680fa0
cmp eax, ebp
jne 0x140681970
mov byte [0x140713980], 1
lea rdx, [0x1406c2564]
mov rcx, rbx
call fcn.1406a5cc0
test eax, eax
je 0x1406818f8
cmp byte [0x140713bd8], 0
jne 0x1406818f8
mov r14, qword [sym.imp.python311.dll_PyDict_New]
call r14
mov qword [0x140713be0], rax
call r14
mov qword [0x140713be8], rax
call r14
mov qword [0x140713bf0], rax
call r14
mov qword [0x140713bf8], rax
call r14
mov qword [0x140713c00], rax
call r14
mov qword [0x140713c08], rax
call r14
mov qword [0x140713c10], rax
call r14
mov qword [0x140713c18], rax
mov byte [0x140713bd8], 1
mov r14, qword [0x140713978]
mov rcx, rbx
mov rdx, r14
call fcn.1406a5cc0
mov ebp, eax
mov rcx, r14
call fcn.1406a5d40
lea r8, [rax + r14]
inc r8
test ebp, ebp
je 0x140681950
nop
mov eax, dword [r8]
lea r15, [r8 + rax]
lea r14, [r8 + rax]
add r14, 4
mov rcx, rbx
mov rdx, r14
call fcn.1406a5cc0
mov ebp, eax
mov rcx, r14
call fcn.1406a5d40
lea r8, [rax + r15]
add r8, 5
test ebp, ebp
jne 0x140681920
movzx r9d, word [r8 + 4]
add r8, 6
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140690730
lea rcx, str.Error__corrupted_constants_object
call fcn.1406a58a4
call fcn.1406a3c24
int3

Function at 0x14069592c
Capabilities:
Parse pe header

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

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1406a178c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1406a17fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1406a17fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1406a17fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1406a17fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1406a17fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1406a17fb
cmp dword [rcx + 0xf8], 0
je 0x1406a17fb
mov ecx, ebx
call fcn.1406a16c4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1406a1920
nop
cmp dword [rbp + 0x20], 0
je 0x1406a1849
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1406a1758
int3

Function at 0x1406a64e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1406a6508
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1406a6508
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1406abee8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1406abf6f
mov rsi, rbx
cmp word [rax], bp
je 0x1406abf2e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1406abf18
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1406abf14
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1406a90fc
mov rdi, rax
test rax, rax
je 0x1406abf5c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140696250
mov rbp, rdi
xor ecx, ecx
call fcn.1406a8258
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1406af870
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1406af886
mov al, 1
jmp 0x1406af8e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1406af897
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1406af8e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1406abf84
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1406af8e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1406af8e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1406af8e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1406af8e6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14004aa20
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14004aa2d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004aa3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14004aa25
lea eax, [rcx + 1]
jmp 0x14004aa4b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14004aa5e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14004aa44
sub eax, 3
jb 0x14004aa7e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14004aacd
sar eax, 1
movsxd rbp, eax
jb 0x14004aab4
jmp 0x14004aa8c
add ebx, ebx
jne 0x14004aa8a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004aab4
inc ecx
add ebx, ebx
jne 0x14004aa9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004aab4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14004aaad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14004aa9c
add ecx, 2
jmp 0x14004aab9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14004a9e2
jmp 0x14004aa2d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2a000
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14004ab19
cmp rsi, rcx
jae 0x14004ab21
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14004ab00
cmp al, 0x8f
ja 0x14004ab00
cmp byte [rsi - 2], 0xf
je 0x14004ab06
sub al, 0xe8
cmp al, 1
ja 0x14004aaea
cmp rsi, rcx
jae 0x14004ab21
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14004aaf0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14004ab21
lodsb al, byte [rsi]
jmp 0x14004ab00
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x48000]
mov eax, dword [rdi]
or eax, eax
je 0x14004ab8a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4a56c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14004ab2e
jns 0x14004ab63
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14004ab6d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14004ab84
mov qword [rbx], rax
add rbx, 8
jmp 0x14004ab4e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14004abc4
cmp al, 0xef
ja 0x14004abb6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14004ab96
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14004aba5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14004ac18
sub rsp, 0xffffffffffffff80
jmp 0x14000cdb0
Function at 0x409310
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
mov rsi, rdx
mov byte [rsp + 0x27], 1
mov eax, dword [rbx + 0x38]
mov edx, dword [rbx + 0x34]
mov byte [rsp + 0x26], 0x81
mov ecx, dword [rcx + 0x30]
mov r8d, ecx
add r8d, eax
adc edx, 0
mov r9d, r8d
bswap edx
bswap r9d
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x2c], r9d
cmp eax, 0x1b8
je 0x409540
cmp eax, 0x1b7
jg 0x4094c0
test eax, eax
je 0x4094b0
sub r8d, 0x1b8
mov ecx, 0x1b8
lea rdx, [0x0079c6c0]
sub ecx, eax
mov dword [rbx + 0x30], r8d
movsxd r8, ecx
mov rcx, rbx
call fcn.00408ee0
lea rdx, [rsp + 0x27]
mov r8d, 8
mov rcx, rbx
call fcn.00408ee0
sub dword [rbx + 0x30], 0x48
lea rdx, [rsp + 0x28]
mov rcx, rbx
mov r8d, 0x40
call fcn.00408ee0
mov eax, dword [rbx]
shr eax, 0x18
mov byte [rsi], al
mov r8d, dword [rbx]
shr r8d, 0x10
mov byte [rsi + 1], r8b
mov edx, dword [rbx]
mov byte [rsi + 2], dh
mov r9d, dword [rbx]
mov byte [rsi + 3], r9b
movzx r10d, byte [rbx + 7]
mov byte [rsi + 4], r10b
movzx r11d, word [rbx + 6]
mov byte [rsi + 5], r11b
mov ecx, dword [rbx + 4]
mov byte [rsi + 6], ch
mov eax, dword [rbx + 4]
mov byte [rsi + 7], al
movzx r8d, byte [rbx + 0xb]
mov byte [rsi + 8], r8b
movzx edx, word [rbx + 0xa]
mov byte [rsi + 9], dl
mov ecx, dword [rbx + 8]
mov byte [rsi + 0xa], ch
mov r9d, dword [rbx + 8]
mov byte [rsi + 0xb], r9b
movzx r10d, byte [rbx + 0xf]
mov byte [rsi + 0xc], r10b
movzx r11d, word [rbx + 0xe]
mov byte [rsi + 0xd], r11b
mov eax, dword [rbx + 0xc]
mov byte [rsi + 0xe], ah
mov r8d, dword [rbx + 0xc]
mov byte [rsi + 0xf], r8b
movzx edx, byte [rbx + 0x13]
mov byte [rsi + 0x10], dl
movzx ecx, word [rbx + 0x12]
mov byte [rsi + 0x11], cl
mov eax, dword [rbx + 0x10]
mov byte [rsi + 0x12], ah
mov r9d, dword [rbx + 0x10]
mov byte [rsi + 0x13], r9b
movzx r10d, byte [rbx + 0x17]
mov byte [rsi + 0x14], r10b
movzx r11d, word [rbx + 0x16]
mov byte [rsi + 0x15], r11b
mov edx, dword [rbx + 0x14]
mov byte [rsi + 0x16], dh
mov r8d, dword [rbx + 0x14]
mov byte [rsi + 0x17], r8b
movzx ecx, byte [rbx + 0x1b]
mov byte [rsi + 0x18], cl
movzx eax, word [rbx + 0x1a]
mov byte [rsi + 0x19], al
mov edx, dword [rbx + 0x18]
mov byte [rsi + 0x1a], dh
mov r9d, dword [rbx + 0x18]
mov byte [rsi + 0x1b], r9b
movzx r10d, byte [rbx + 0x1f]
mov byte [rsi + 0x1c], r10b
movzx r11d, word [rbx + 0x1e]
mov byte [rsi + 0x1d], r11b
mov ecx, dword [rbx + 0x1c]
mov byte [rsi + 0x1e], ch
mov ebx, dword [rbx + 0x1c]
mov byte [rsi + 0x1f], bl
add rsp, 0x38
pop rbx
pop rsi
ret
mov dword [rbx + 0x3c], 1
jmp 0x409367
sub r8d, 0x200
mov r10d, 0x200
lea rdx, [0x0079c6c0]
mov rcx, rbx
mov dword [rbx + 0x30], r8d
sub r10d, eax
movsxd r8, r10d
call fcn.00408ee0
sub dword [rbx + 0x30], 0x1b8
mov r8d, 0x1b8
mov rcx, rbx
lea rdx, [0x0079c6c1]
call fcn.00408ee0
mov dword [rbx + 0x3c], 1
lea rdx, [rsp + 0x27]
mov rcx, rbx
mov r8d, 8
call fcn.00408ee0
mov r11d, dword [rbx + 0x30]
sub r11d, 8
sub r11d, 0x40
mov dword [rbx + 0x30], r11d
jmp 0x4093a2
sub ecx, 8
lea rdx, [rsp + 0x26]
mov r8d, 8
mov dword [rbx + 0x30], ecx
mov rcx, rbx
call fcn.00408ee0
mov r11d, dword [rbx + 0x30]
jmp 0x409524
Function at 0x409560
Capabilities:
Hash data using sha256

Disassembly:
push rsi
push rbx
sub rsp, 0xa8
movdqa xmm0, xmmword [0x0079c850]
movdqa xmm1, xmmword [0x0079c860]
pxor xmm2, xmm2
mov r8d, 0x100
movaps xmmword [rsp + 0x20], xmm0
lea rbx, [rsp + 0x20]
mov rsi, rcx
movaps xmmword [rsp + 0x30], xmm1
mov rcx, rbx
movaps xmmword [rsp + 0x40], xmm2
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
call fcn.00408ee0
mov rdx, rsi
mov rcx, rbx
call fcn.00409310
nop
add rsp, 0xa8
pop rbx
pop rsi
ret
Function at 0x42a370
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
cmp byte [0x007ac4a8], 0
je 0x42a390
add rsp, 0x1c8
ret
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WSOCK32.dll_WSAStartup]
mov byte [0x007ac4a8], 1
add rsp, 0x1c8
ret
Function at 0x77df30
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x007ae3a4]
mov rsi, rcx
mov rbp, rdx
mov rbx, r8
test edi, edi
jle 0x77e0d0
mov rax, qword [0x007ae3a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x77df7c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x77e009
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x77df60
mov rcx, rsi
call fcn.0077ec70
mov r12, rax
test rax, rax
je 0x77e105
mov rax, qword [0x007ae3a8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0077edb0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x007ae3a8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x77e114
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x77e002
sub eax, 0x40
and eax, 0xffffffbf
jne 0x77e082
add dword [0x007ae3a4], 1
cmp ebx, 8
jae 0x77e035
test bl, 4
jne 0x77e0e0
test ebx, ebx
je 0x77e02a
movzx eax, byte [rbp]
mov byte [rsi], al
test bl, 2
jne 0x77e0f4
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
lea rcx, [rsi + 8]
and rcx, 0xfffffffffffffff8
mov qword [rsi], rax
mov eax, ebx
mov rdx, qword [rbp + rax - 8]
mov qword [rsi + rax - 8], rdx
sub rsi, rcx
add ebx, esi
sub rbp, rsi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x77e02a
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rbp + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x77e065
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 [0x007ae3a8]
mov r9, rdi
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x77e002
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0077dec0
nop word cs:[rax + rax]
xor edi, edi
jmp 0x77df87
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rsi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rsi + rbx - 4], eax
jmp 0x77e02a
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rsi + rbx - 2], ax
jmp 0x77e02a
mov rdx, rsi
lea rcx, str.Address__p_has_no_image_section
call fcn.0077dec0
mov rax, qword [0x007ae3a8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0077dec0
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x77e8c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x007ae680]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x007ae660]
test rbx, rbx
je 0x77e914
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 0x77e90b
test rsi, rsi
je 0x77e90b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x77e8f0
lea rcx, [0x007ae680]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x77ec70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x0079d570]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x77ecdf
mov rcx, r9
call fcn.0077eb40
test eax, eax
je 0x77ecdf
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x77ecdd
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x77ecd4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x77ecdf
add rdx, 0x28
cmp rdx, r9
jne 0x77ecc0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14003173c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400317b4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400317b4
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400317b4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400317a8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400317c6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140031796
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400317b6

Function at 0x140033300
Capabilities:
Parse pe header

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

Function at 0x14003c094
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003bdf8

Function at 0x140045fb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140045fd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140045fd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001000
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x28], 5
lea r8, str.https:__trollface.dk_
xor r9d, r9d
mov qword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
add rsp, 0x38
ret

Function at 0x140001908
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r14d, r14d
lea rbx, [rsp + 0x30]
mov rbp, rdx
mov rdi, rcx
mov word [rsp + 0x30], r14w
lea esi, [r14 + 0x28]
cmp byte [rcx], r14b
je 0x14000aea2
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdi]
lea rdx, [rsp + 0x20]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rcx, [rsp + 0x24]
mov byte [rsp + 0x21], r14b
call fcn.14000e940
cmp rax, 1
jne 0x14000aede
mov rcx, rsi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000ae80
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000ae73
cmp rcx, 1
jb 0x14000aed8
movzx ecx, word [rsp + 0x24]
inc rdi
add rbx, 2
mov word [rax], cx
dec rsi
mov word [rax + 2], r14w
cmp byte [rdi], r14b
jne 0x14000ae40
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c720
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14000e5fc
int3
call fcn.14000e5fc
int3