joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400023c0
Capabilities:
Allocate or change rwx memory
Compress data via winapi
Execute shellcode via indirect call
Terminate process
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rcx, [0x1400225f0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.RtlDecompressBuffer
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [0x140025a40]
xor r12d, r12d
mov edx, ebx
mov dword [rsp + 0x40], r12d
xor ecx, ecx
mov r8d, 0x3000
mov rdi, rax
lea r9d, [r12 + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [r12 + 2]
mov r8d, ebx
mov rsi, rax
lea r9, [0x140025a44]
lea rax, [rsp + 0x40]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x12c78
call rdi
test eax, eax
je 0x14000247d
mov edx, eax
lea rcx, str.Decompress_failed:__d
call fcn.140001330
lea ecx, [r12 + 1]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x200
mov ebp, r12d
call fcn.140005730
cmp dword [rsp + 0x40], r12d
jbe 0x14000255f
nop dword [rax]
mov edi, ebp
lea r9, [rsi + 4]
add r9, rdi
mov ebx, r12d
mov r15d, dword [rdi + rsi]
cmp byte [r9], bl
je 0x1400024ce
nop word [rax + rax]
inc ebx
mov eax, ebx
add rax, rdi
cmp byte [rax + rsi + 4], r12b
jne 0x1400024c0
lea r8, str.C:UsersPublicDocuments_
inc ebx
lea rdx, str._s_s
lea rcx, [rsp + 0x50]
call fcn.140001390
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x50]
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
test rax, rax
je 0x140002571
mov edx, ebx
lea r9, [rsp + 0x44]
add rdx, 4
mov dword [rsp + 0x44], r12d
add rdx, rdi
mov qword [rsp + 0x20], r12
add rdx, rsi
mov r8d, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add ebp, 4
lea eax, [rbx + r15]
add ebp, eax
cmp ebp, dword [rsp + 0x40]
jb 0x1400024a0
call fcn.1400025a0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140002564
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateFile_failed:__d
call fcn.140001330
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x140003210
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000335f
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140003356
mov esi, 1
mov qword [rsp + 0x68], rbx
cmp dword [rsp + 0x20], 0x10
jb 0x14000330c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x14000330c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x14000330c
mov rdx, qword [rdi]
test rdx, rdx
jne 0x1400032cd
mov rcx, qword [0x140039be0]
mov r8d, 0x200
mov dword [rdi + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x140003335
lea rbx, [rdi + 0xc]
jmp 0x140003301
mov eax, dword [rdi + 8]
lea rbx, [rdi + 0xc]
cmp dword [rbx], eax
jb 0x140003301
mov rcx, qword [0x140039be0]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x140003335
mov qword [rdi], rax
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140003273
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x140003351
mov r8, qword [rdi]
xor esi, esi
test r8, r8
je 0x140003351
mov rcx, qword [0x140039be0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140003f90
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140003380
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r8d
mov qword [rcx], 0
mov r14d, edx
mov qword [rcx + 8], 0
mov rdi, rcx
call fcn.140003210
test eax, eax
jne 0x1400033c7
mov eax, 9
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rdi], 0
je 0x14000343e
mov qword [rsp + 0x30], rbx
xor ebx, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x140003426
mov qword [rsp + 0x38], rsi
nop
mov r8, qword [rdi]
xor edx, edx
mov r8d, dword [r8 + rbx*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x14000341a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rsi
call fcn.140003060
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [rdi + 0xc]
jb 0x1400033e0
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rbp, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140003460
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140025010]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov r8d, 0x40
add rbx, qword [0x140039be8]
mov rdx, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [rdx - 5]
cmove rdi, rdx
lea rsi, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400034c9
mov eax, 0xa
jmp 0x140003516
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x1400034e5
mov rax, qword [rbx]
mov word [rax], 0xf9eb
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [rbx + 0x20], 6
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140003f90
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140003540
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbx
push rdi
sub rsp, 0x38
mov eax, dword [0x140039bf4]
xor edi, edi
mov ebx, edi
test eax, eax
je 0x1400036d8
mov rcx, qword [0x140039be8]
add rcx, 0x20
test byte [rcx], 2
je 0x14000357c
inc ebx
add rcx, 0x38
cmp ebx, eax
jb 0x140003564
mov eax, edi
add rsp, 0x38
pop rdi
pop rbx
ret
cmp ebx, 0xffffffff
je 0x1400036d8
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rdi
call fcn.140003210
test eax, eax
jne 0x1400035a9
mov eax, 9
add rsp, 0x38
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov r12d, dword [rsp + 0x2c]
mov qword [rsp + 0x30], r15
mov r15, qword [rsp + 0x20]
test r15, r15
je 0x14000362a
test r12d, r12d
je 0x14000362a
mov qword [rsp + 0x68], r14
mov rsi, r15
mov r14d, r12d
nop dword [rax]
mov r8d, dword [rsi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x14000361b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, 0xffffffff
mov r8d, 1
mov rcx, rbp
call fcn.140003060
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 4
sub r14, 1
jne 0x1400035e0
mov r14, qword [rsp + 0x68]
mov edx, dword [0x140039bf4]
cmp ebx, edx
jae 0x14000366d
nop dword [rax]
nop dword [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x140039be8]
test byte [rcx + rax + 0x20], 2
jne 0x140003667
mov ecx, ebx
call fcn.140003460
mov edi, eax
test eax, eax
jne 0x14000366d
mov edx, dword [0x140039bf4]
inc ebx
cmp ebx, edx
jb 0x140003640
test r15, r15
je 0x1400036c4
test r12d, r12d
je 0x1400036b2
mov rsi, r15
mov rbp, r12
nop dword [rax]
mov r8d, dword [rsi]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x1400036a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsi, 4
sub rbp, 1
jne 0x140003680
mov rcx, qword [0x140039be0]
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r15, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x38
pop rdi
pop rbx
ret
Function at 0x1400039f0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov rdi, rcx
mov ebx, r15d
xor eax, eax
mov esi, 1
lock cmpxchg dword [0x140039bd8], esi
je 0x140003a41
nop
cmp rbx, 0x20
jae 0x140003a2a
xor ecx, ecx
jmp 0x140003a2c
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x140039bd8], esi
jne 0x140003a20
cmp qword [0x140039be0], r15
je 0x140003b34
test rdi, rdi
jne 0x140003a5f
call fcn.140003540
mov esi, eax
jmp 0x140003b39
mov ecx, dword [0x140039bf4]
mov ebx, r15d
test ecx, ecx
je 0x140003a85
mov r8, qword [0x140039be8]
mov rax, r8
cmp rdi, qword [rax]
je 0x140003a8f
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x140003a76
mov esi, 4
jmp 0x140003b39
cmp ebx, 0xffffffff
je 0x140003a85
mov eax, ebx
imul rdx, rax, 0x38
test byte [rdx + r8 + 0x20], 2
jne 0x140003b2d
mov r8d, esi
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.140003380
mov esi, eax
test eax, eax
jne 0x140003b39
mov ecx, ebx
call fcn.140003460
mov esi, eax
cmp qword [rsp + 0x20], r15
je 0x140003b39
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140003b17
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x140003b08
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x140003ae0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x140039be0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140003b39
mov esi, 5
jmp 0x140003b39
mov esi, 2
xchg dword [0x140039bd8], r15d
mov rbx, qword [rsp + 0x48]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x140004a64
Capabilities:
Parse pe header

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

Function at 0x14000b2a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000b0a0
Function at 0x140011014
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x140011044
xor eax, eax
jmp 0x140011107
mov rbp, rbx
cmp word [rax], si
je 0x140011069
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140011050
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001104c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140010f34
movsxd r14, eax
test eax, eax
jne 0x1400110a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001103d
mov rcx, r14
call fcn.14000d6ac
mov rdi, rax
test rax, rax
jne 0x1400110c0
xor ecx, ecx
call fcn.14000ca34
jmp 0x14001109c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140010f34
test eax, eax
jne 0x1400110f1
mov rcx, rdi
call fcn.14000ca34
jmp 0x1400110fb
xor ecx, ecx
call fcn.14000ca34
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001532c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140015342
mov al, 1
jmp 0x1400153a2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140015353
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400153a0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140011cb0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400153a0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400153a0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400153a0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400153a2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400163e0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140010004
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001646a
cmp byte [rbp - 0x21], r15b
je 0x140016465
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400164a0
call fcn.14000cc84
test eax, eax
jne 0x14001648c
cmp byte [rbp - 0x21], r15b
je 0x140016484
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400164a0
cmp byte [rbp - 0x21], r15b
je 0x14001649d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000f5e4
test eax, eax
jne 0x140016540
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140010004
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400164df
cmp byte [rbp - 0x21], r15b
je 0x140016514
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140016514
call fcn.14000cc84
test eax, eax
jne 0x140016500
cmp byte [rbp - 0x21], r15b
je 0x1400164f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140016514
cmp byte [rbp - 0x21], r15b
je 0x140016511
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000f5e4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140016540
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140016543
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140016551
mov rcx, rdi
call fcn.14000ca34
cmp byte [rbp + 0x3f], r15b
je 0x140016560
mov rcx, qword [rbp + 0x27]
call fcn.14000ca34
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140018a90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140018ab8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140018ab8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140023ad0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400359f0], rbx
je 0x140023b37
cmp rax, rbx
jne 0x140023b2a
mov ebx, 1
mov esi, ebx
jmp 0x140023b3c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140023b0f
mov ebx, 1
mov eax, dword [0x1400359f8]
cmp eax, ebx
jne 0x140023b54
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140023bc0
mov eax, dword [0x1400359f8]
test eax, eax
jne 0x140023bb5
mov dword [0x1400359f8], ebx
lea r15, [0x140028bb0]
lea rdi, [0x140028b98]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140023ba7
test eax, eax
jne 0x140023bab
cmp qword [rdi], r14
je 0x140023b9c
mov rax, qword [rdi]
mov rcx, qword [0x140028b50]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x140023b7e
test eax, eax
je 0x140023bbb
mov eax, 0xff
jmp 0x140023d16
mov dword [0x1400350c4], ebx
mov edi, 0x1f
mov eax, dword [0x1400359f8]
cmp eax, ebx
jne 0x140023be7
lea rdx, [0x140028b90]
lea rcx, [0x140028b58]
call sub.msvcrt.dll__initterm
mov dword [0x1400359f8], 2
test esi, esi
jne 0x140023bf5
mov rax, r14
xchg qword [0x1400359f0], rax
cmp qword [0x140035a10], r14
je 0x140023c28
lea rcx, [0x140035a10]
call fcn.140023fd0
test eax, eax
je 0x140023c28
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140035a10]
mov r9, qword [0x140028b50]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140023c41
mov eax, 0xff
jmp 0x140023d16
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140023cc7
test ax, ax
je 0x140023c5c
test edx, edx
jne 0x140023cc7
sub ax, bx
cmp ax, di
ja 0x140023c72
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x140023c5c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140002250
mov dword [0x1400350c0], eax
cmp dword [0x1400350e0], r14d
jne 0x140023cb0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400350c4], r14d
jne 0x140023cc5
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400350c0]
jmp 0x140023d16
cmp ax, 0x22
jne 0x140023cdb
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x140023c4a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1400d6000
add rsp, 0x28
jmp 0x140023ad0
Function at 0x140023ebc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140023f08
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140023f00
cmp dword [rcx + 0x3c], edx
jl 0x140023f00
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140023f00
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140023f08
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140003b64
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140003990
Function at 0x140009bf4
Capabilities:
Create http request
Read data from internet
Receive data
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0xc3550
call fcn.140011210
sub rsp, rax
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.Mozilla_5.0__Macintosh__Intel_Mac_OS_X_10_7_4__AppleWebKit_537.13__KHTML__like_Gecko__Chrome_24.0.1290.1_Safari_537.13
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140009cc6
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xc3560]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140009cc6
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0xc3500
rep stosb byte [rdi], al
lea r9, [rsp + 0x40]
mov r8d, 0xc3500
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140009cc6
mov r8d, 0xc3500
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0xc3568]
call fcn.140011d50
xor eax, eax
jmp 0x140009ccb
mov rax, qword [rsp + 0x48]
add rsp, 0xc3550
pop rdi
ret