joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140048600
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, r8
mov dword [rsp + 0x48], 0
mov rbx, rdx
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.WWW_Authenticate:
mov rcx, r9
mov rdi, r9
call fcn.14001d590
test eax, eax
je 0x14004864c
mov esi, dword [rbx + 0x148]
cmp esi, 0x191
je 0x140048673
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rdi
call fcn.14001d590
test eax, eax
je 0x1400486b9
mov esi, dword [rbx + 0x148]
cmp esi, 0x197
jne 0x1400486b9
mov rcx, rdi
call fcn.1400232f0
mov rdi, rax
test rax, rax
jne 0x14004868b
lea eax, [rdi + 0x1b]
jmp 0x14004882a
cmp esi, 0x197
mov r8, rdi
mov rcx, rbx
sete dl
call fcn.140024f50
mov rcx, rdi
mov ebx, eax
call qword [case.0x140016fdf.0]
test ebx, ebx
je 0x140048828
mov eax, ebx
jmp 0x14004882a
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rdi
call fcn.14001d590
test eax, eax
je 0x140048714
mov r8d, dword [rbx + 0x148]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400486f9
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rbx
call fcn.140017d40
jmp 0x140048828
xor edx, edx
lea r9, [rbp + 0x298]
lea rcx, [rdi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.140028a10
jmp 0x140048828
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, recv
lea rdx, str.Connection:
mov rcx, rdi
call fcn.140023220
test al, al
jne 0x140048821
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rdi
call fcn.14001d590
test eax, eax
je 0x1400487ca
mov r8d, dword [rbx + 0x148]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140048781
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rbx
call fcn.140017d40
jmp 0x140048828
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rdi
call fcn.140023220
test al, al
je 0x140048828
lea rdx, str.CONNECT_responded_chunked
mov rcx, rbx
call fcn.140017d40
mov rcx, rbx
mov byte [rbp + 0x2a4], 1
call fcn.14004b900
jmp 0x140048828
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.140023220
test al, al
jne 0x140048821
lea r9, [rbx + 0x148]
mov rcx, rdi
lea r8, [rsp + 0x48]
lea rdx, str.HTTP_1._d__d
call fcn.14000b930
cmp eax, 2
jne 0x140048828
mov eax, dword [rbx + 0x148]
mov dword [rbx + 0x135c], eax
jmp 0x140048828
mov byte [rbp + 0x2a5], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140057e70
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 [section..data]
mov rdi, rax
test rax, rax
jne 0x140057eb2
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 0x140057ef9
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 0x140057f52
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 0x140057f10
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140057f93
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140069c31]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140069c32]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140057f60
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 0x140002850
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
sub rsp, 0x158
mov rax, qword [0x141302020]
xor rax, rsp
mov qword [rsp + 0x140], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x100
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, 0xf
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
call fcn.140017270
xor r9d, r9d
mov r8, qword [rax]
lea edx, [r9 + 1]
lea ecx, [rdx + 3]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
call fcn.140017270
lea rdx, [0x140043218]
lea rcx, [rsp + 0x30]
mov r8, qword [rax]
call fcn.140001490
xor eax, eax
lea r9, [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea r8, [0x140043228]
lea rdx, [0x140043230]
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x140002900
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x468
mov rax, qword [0x141302020]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rsi, rdx
mov rbx, rcx
xor r15d, r15d
lea rcx, [0x140043238]
xor edx, edx
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r14, rax
test rax, rax
jne 0x14000295a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [r15 - 1]
jmp 0x140002a8f
cmp qword [rbx + 0x18], 0x10
mov qword [rsp + 0x4a0], rbp
jb 0x14000296c
mov rbx, qword [rbx]
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x4000000
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbp, rax
test rax, rax
jne 0x1400029aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [rbp - 2]
jmp 0x140002a87
mov ecx, 0x401
mov qword [rsp + 0x460], rdi
call fcn.140017230
xor edx, edx
mov qword [rsi], rax
mov r8d, 0x401
mov rcx, rax
call fcn.14000f2a0
mov ebx, r15d
mov edi, 0x401
nop word [rax + rax]
xor edx, edx
mov dword [rsp + 0x30], r15d
mov r8d, 0x401
lea rcx, [rsp + 0x40]
call fcn.14000f2a0
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetReadFile]
test ebx, ebx
jne 0x140002a1b
cmp byte [rsp + 0x40], 0xe6
je 0x140002a5d
mov ecx, dword [rsp + 0x30]
lea eax, [rbx + rcx]
cmp eax, edi
jb 0x140002a3e
mov rcx, qword [rsi]
add edi, 0x401
movsxd rdx, edi
call fcn.140013b14
mov ecx, dword [rsp + 0x30]
mov qword [rsi], rax
mov r8d, ecx
lea rdx, [rsp + 0x40]
movsxd rcx, ebx
add rcx, qword [rsi]
call fcn.14000ee90
mov eax, dword [rsp + 0x30]
add ebx, eax
test eax, eax
jne 0x1400029e0
jmp 0x140002a6b
mov rcx, qword [rsi]
mov ebx, r15d
call fcn.140015dc8
mov qword [rsi], r15
mov rcx, rbp
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rdi, qword [rsp + 0x460]
mov eax, ebx
mov rbp, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14000cf10
add rsp, 0x468
pop r15
pop r14
pop rsi
pop rbx
ret
Function at 0x1400071a0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x450]
sub rsp, 0x550
mov rax, qword [0x141302020]
xor rax, rsp
mov qword [rbp + 0x440], rax
mov rbx, rdx
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x110]
call fcn.14000f2a0
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x220]
call fcn.14000f2a0
mov eax, dword [0x140043404]
mov dword [rsp + 0x30], eax
movzx eax, byte [0x140043408]
mov byte [rsp + 0x34], al
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x110]
call fcn.140002300
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x220]
call fcn.140002300
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0xd0]
call fcn.1400087b0
lea rcx, [rbp + 0xd0]
call fcn.140007180
lea rcx, [rbp + 0xd0]
call fcn.1400086c0
lea rdx, [rbp + 0x220]
lea rcx, [rbp + 0xd0]
call fcn.1400087b0
lea rcx, [rbp + 0xd0]
call fcn.140007180
lea rcx, [rbp + 0xd0]
call fcn.1400086c0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x1d4c0
jge 0x1400072a7
lea rcx, [rbp + 0x110]
call fcn.140003200
test eax, eax
jne 0x1400072a7
lea rcx, [rbp + 0x220]
call fcn.140005220
mov rbx, qword [rbx + 8]
movups xmm0, xmmword [0x140043440]
movups xmmword [rbp + 0xf0], xmm0
mov eax, dword [0x140043450]
mov dword [rbp + 0x100], eax
movzx eax, word [0x140043454]
mov word [rbp + 0x104], ax
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x50]
call fcn.140008270
nop
mov r8d, 0x12b7dea
lea rdx, [0x140043540]
lea rcx, [rbp - 0x40]
call fcn.140008530
lea rcx, [rbp - 0x50]
call fcn.140008220
mov r8, rbx
lea rdx, [0x140043458]
lea rcx, [rbp + 0x330]
call fcn.1400095c0
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x44], 0x40
xor ecx, ecx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rcx
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x330]
test rbx, rbx
cmove rax, rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x70], 5
mov qword [rsp + 0x78], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x140007384
mov edx, 0xffffffff
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 0xf0]
call fcn.140013a34
lea rcx, [rbp + 0x110]
call fcn.140013a34
lea rcx, [rbp + 0x220]
call fcn.140013a34
call fcn.140002850
int3
Function at 0x140007670
Capabilities:
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 r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
je 0x14000770a
mov rbx, r8
test r8, r8
jle 0x140007702
mov rcx, rdi
call fcn.140008f80
test rax, rax
jle 0x1400076e0
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.14000ee90
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x1400076fa
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140007702
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x1400076a2
sub r14, rbx
mov rax, r14
jmp 0x140007781
mov rax, qword [rcx + 0x40]
mov rsi, r14
mov r9, qword [rax]
test r9, r9
je 0x140007721
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140007723
xor ecx, ecx
movsxd rbx, ecx
test r14, r14
jle 0x14000777b
test ecx, ecx
jle 0x140007757
cmp r14, rbx
mov rcx, r9
cmovl rbx, r14
mov r8, rbx
call fcn.14000ee90
mov rax, qword [rdi + 0x58]
add rbp, rbx
sub r14, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x40]
movsxd rax, ebx
add qword [rcx], rax
test r14, r14
jle 0x14000777b
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000777b
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.140015a68
sub r14, rax
sub rsi, r14
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400077a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x1400077d1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14000784b
mov rdi, r14
mov rcx, rbx
call fcn.140008fa0
test rax, rax
jle 0x140007823
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14000ee90
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000783b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140007843
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x1400077e5
sub r14, rdi
jmp 0x140007938
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140007862
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007864
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007899
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14000ee90
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140007935
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x1400078d4
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140007910
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140016ca4
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140007956
cmp rbp, rax
ja 0x1400078e0
mov r8, rdi
test rdi, rdi
je 0x140007935
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140016ca4
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub r14, rbp
jmp 0x140007938
Function at 0x14001b580
Capabilities:
Parse pe header

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

Function at 0x140021634
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140021654
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140017ff0
or eax, 0xffffffff
jmp 0x140021656
xor eax, eax
add rsp, 0x28
ret
Function at 0x140005bd0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140005c04
cmp word [rcx], 0x5a4d
jne 0x140005c04
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005c04
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005c04
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140005b10
test eax, eax
jne 0x140005c20
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140005b80
test rax, rax
je 0x140005c15
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.1400063cf
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x1400062d0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140006270
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140006734
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x1409bad98]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x1409bad94]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x140006782
mov rdx, qword [rax]
cmp r12, rdx
jb 0x14000677a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140006869
inc ebx
add rax, 0x28
jmp 0x14000675a
mov rcx, r12
call fcn.140006f61
mov rbp, rax
test rax, rax
jne 0x1400067a1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400066d0
movsxd rbx, ebx
mov rax, qword [0x1409bad98]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000700f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1409bad98]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140006803
mov rax, qword [0x1409bad98]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400066d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140006863
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140006863
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1409bad98]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140006863
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400066d0
inc dword [0x1409bad94]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140006c90
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x1409bae00]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1409bade0]
test rbx, rbx
je 0x140006cdc
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140006cd6
test eax, eax
jne 0x140006cd6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140006cae
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140006e90
Capabilities:
Parse pe header

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

Function at 0x140006eb4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140006eee
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140006ee5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006ef0
inc r8d
add rax, 0x28
jmp 0x140006ecc
xor eax, eax
ret

Function at 0x140006f61
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1409b3570]
mov r8, rcx
mov rcx, r9
call fcn.140006e90
test eax, eax
je 0x140006f8d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140006eb4
xor eax, eax
add rsp, 0x28
ret
Function at 0x140007d80
Capabilities:
Accept command line arguments

Disassembly:
push r15
push rbp
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
mov r9, rbp
xor ecx, ecx
mov r10b, byte [r15]
cmp r10b, 0x20
jne 0x140007de8
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jne 0x140007de8
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jne 0x140007de8
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jne 0x140007de8
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
je 0x140007ddc
jl 0x140007e9c
cmp r10b, 0x22
je 0x140007e79
mov rax, r15
cmp r10b, 0x20
jle 0x140007e33
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jle 0x140007e31
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jle 0x140007e31
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jle 0x140007e31
inc r15
mov r10b, byte [r15]
cmp r10b, 0x20
jg 0x140007e25
je 0x140007e70
inc ecx
mov qword [r9], rax
add r9, 8
cmp ecx, 0x200
jl 0x140007daf
mov rdx, rbp
call fcn.140007eb0
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov byte [r15], 0
inc r15
jmp 0x140007e33
inc r15
mov rax, r15
mov r10b, byte [r15]
cmp r10b, 0x22
je 0x140007e70
cmp r10b, 0x20
jl 0x140007e33
inc r15
mov r10b, byte [r15]
cmp r10b, 0x22
jne 0x140007e88
jmp 0x140007e70
mov byte [r15], 0
jmp 0x140007e48
Function at 0x1400088a0
Capabilities:
Get memory capacity

Disassembly:
push r14
push r15
push rbp
sub rsp, 0x1b0
mov r14, r8
mov rbp, r9
lea r8, [rsp + 0x68]
mov r15, rcx
call fcn.140008b30
test eax, eax
lea rax, [rsp + 0x68]
mov dword [rax + 0x108], 0x40
lea rcx, [rsp + 0x170]
cmovne rbp, rax
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x14000892c
mov rax, qword [rsp + 0x180]
cmp rax, qword [rsp + 0x1a0]
mov r9, qword [rsp + 0x1a0]
cmovb r9, qword [rsp + 0x180]
mov rax, rsp
mov rcx, r15
mov rdx, rbp
mov r8, r14
mov dword [rax + 0x20], 0
call fcn.140008960
add rsp, 0x1b0
pop rbp
pop r15
pop r14
ret
mov dword [rsp + 0x30], 0x38
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea rdx, [rsp + 0x40]
mov rax, qword [rdx]
cmp rax, qword [rdx + 0x20]
mov r9, qword [rdx + 0x20]
cmovb r9, qword [rdx]
jmp 0x140008907

Function at 0x140008b30
Capabilities:
Read .ini file

Disassembly:
sub rsp, 0x48
mov r9, r8
movsxd rax, dword [rcx + 0x160]
mov r10d, 1
cmp rax, 1
jle 0x140008b94
mov r8, qword [rcx + 0x168]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], rbp
mov rbp, qword [r8 + r10*8]
cmp byte [rbp], 0x2d
jne 0x140008b7a
xor r11d, r11d
mov r15b, byte [r11 + rdx]
inc r11
test r15b, r15b
je 0x140008bc1
cmp r15b, byte [r11 + rbp]
je 0x140008b68
nop dword [rax + rax]
inc r10
cmp r10, rax
jl 0x140008b5b
mov r15, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, rsp
lea r10, [rcx + 0x178]
add rcx, 0x188
xor r8d, r8d
mov qword [rax + 0x28], rcx
mov rcx, r10
mov dword [rax + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add rsp, 0x48
ret
mov rax, rbp
mov r15, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
cmp byte [r11 + rax], 0x3d
jne 0x140008bdf
inc r11
cmp byte [r11 + rax], 0x3d
je 0x140008bd5
add r11, rax
xor edx, edx
mov al, byte [r11]
test al, al
je 0x140008bfa
mov byte [rdx + r9], al
inc rdx
mov al, byte [rdx + r11]
test al, al
jne 0x140008beb
mov byte [rdx + r9], 0
mov eax, edx
add rsp, 0x48
ret

Function at 0x140008b4a
Capabilities:
Read .ini file

Disassembly:
sub rsp, 0x48
mov r9, r8
movsxd rax, dword [rcx + 0x160]
mov r10d, 1
cmp rax, 1
jle 0x140008b94
mov r8, qword [rcx + 0x168]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], rbp
mov rbp, qword [r8 + r10*8]
cmp byte [rbp], 0x2d
jne 0x140008b7a
xor r11d, r11d
mov r15b, byte [r11 + rdx]
inc r11
test r15b, r15b
je 0x140008bc1
cmp r15b, byte [r11 + rbp]
je 0x140008b68
nop dword [rax + rax]
inc r10
cmp r10, rax
jl 0x140008b5b
mov r15, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, rsp
lea r10, [rcx + 0x178]
add rcx, 0x188
xor r8d, r8d
mov qword [rax + 0x28], rcx
mov rcx, r10
mov dword [rax + 0x20], 0x104
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
add rsp, 0x48
ret
mov rax, rbp
mov r15, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
cmp byte [r11 + rax], 0x3d
jne 0x140008bdf
inc r11
cmp byte [r11 + rax], 0x3d
je 0x140008bd5
add r11, rax
xor edx, edx
mov al, byte [r11]
test al, al
je 0x140008bfa
mov byte [rdx + r9], al
inc rdx
mov al, byte [rdx + r11]
test al, al
jne 0x140008beb
mov byte [rdx + r9], 0
mov eax, edx
add rsp, 0x48
ret