joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801f0860
Capabilities:
Create process memory minidump
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
lea rdi, [rsp + 0x40]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xd0]
mov rax, qword [0x180591580]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rcx, [0x180606a43]
call fcn.180278fb0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x4c], rax
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x70]
call fcn.1801f0750
mov qword [rsp + 0xa0], rax
mov rcx, qword [rsp + 0xa0]
call fcn.180069090
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x70]
call fcn.180038190
nop
call fcn.1801f0720
mov dword [rsp + 0xa8], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0xac], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0xa8]
mov r8, qword [rsp + 0x68]
mov edx, dword [rsp + 0xac]
mov rcx, qword [rsp + 0xb0]
call sub.dbghelp.dll_MiniDumpWriteDump
test eax, eax
jne 0x1801f09bb
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.Minidump_Error
lea rdx, str.There_was_an_error_creating_the_minidump__Hit_OK_to_close_the_program.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0x7b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov rax, qword [rsp + 0x68]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804a0c90]
call fcn.180278d80
mov rax, rdi
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1802791f0
add rsp, 0xc0
pop rdi
ret
Function at 0x1801f0a00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x20c0
call fcn.1802797d0
sub rsp, rax
lea rdi, [rsp + 0x30]
mov ecx, 0x824
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20d0]
mov rax, qword [0x180591580]
xor rax, rsp
mov qword [rsp + 0x20b8], rax
mov dword [rsp + 0x20b0], 0
lea rcx, [0x180606a43]
call fcn.180278fb0
mov rcx, qword [rsp + 0x20d8]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x20d8]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0x38]
call fcn.18005bfa0
nop
mov dword [rsp + 0x74], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x74]
mov r8d, 0x2000
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x20d8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1801f0af1
mov rcx, qword [rsp + 0x20d0]
call fcn.18005bfa0
mov eax, dword [rsp + 0x20b0]
or eax, 1
mov dword [rsp + 0x20b0], eax
lea rcx, [rsp + 0x38]
call fcn.180038190
mov rax, qword [rsp + 0x20d0]
jmp 0x1801f0b50
mov eax, dword [rsp + 0x74]
mov r8d, eax
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x38]
call fcn.180068cb0
nop
mov eax, dword [rsp + 0x74]
cmp rax, 0x2000
je 0x1801f0a91
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x20d0]
call fcn.18005b700
mov eax, dword [rsp + 0x20b0]
or eax, 1
mov dword [rsp + 0x20b0], eax
lea rcx, [rsp + 0x38]
call fcn.180038190
mov rax, qword [rsp + 0x20d0]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.180278d80
mov rax, rdi
mov rcx, qword [rsp + 0x20b8]
xor rcx, rsp
call fcn.1802791f0
add rsp, 0x20c0
pop rdi
ret

Function at 0x1801f3d40
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
lea rcx, [0x180606c16]
call fcn.180278fb0
nop
mov rcx, qword [rsp + 0x40]
call fcn.18003b560
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x1801f3d72
mov al, 1
jmp 0x1801f3d94
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1801f3d87
mov dword [rsp + 0x20], 1
jmp 0x1801f3d8f
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x1802081c0
Capabilities:
Hash data using murmur3

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rcx, [0x180606cab]
call fcn.180278fb0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x28]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x28], 0x10
jb 0x180208281
mov eax, 4
imul rax, rax, 0
mov dl, 1
mov rcx, qword [rsp + 0x60]
mov ecx, dword [rcx + rax]
call fcn.180208b60
mov dword [rsp + 0x38], eax
mov ecx, 4
imul rcx, rcx, 1
mov dl, 7
mov r8, qword [rsp + 0x60]
mov ecx, dword [r8 + rcx]
call fcn.180208b60
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
mov ecx, 4
imul rcx, rcx, 2
mov dl, 0xc
mov r8, qword [rsp + 0x60]
mov ecx, dword [r8 + rcx]
call fcn.180208b60
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov ecx, 4
imul rcx, rcx, 3
mov dl, reloc.WS2_32.dll_select
mov r8, qword [rsp + 0x60]
mov ecx, dword [r8 + rcx]
call fcn.180208b60
add eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x40]
add eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x1802082a1
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx + rax]
mov ecx, dword [rsp + 0x20]
lea eax, [rcx + rax + 0x165667b1]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
add rax, 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
jmp 0x1802082d7
mov rax, qword [rsp + 0x28]
add rax, 4
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 4
cmp rax, qword [rsp + 0x30]
ja 0x18020830f
mov rax, qword [rsp + 0x28]
imul eax, dword [rax], 0xc2b2ae3d
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dl, reloc.WS2_32.dll_recvfrom
mov ecx, eax
call fcn.180208b60
imul eax, eax, 0x27d4eb2f
mov dword [rsp + 0x20], eax
jmp 0x1802082c9
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
je 0x180208359
mov rax, qword [rsp + 0x28]
movzx eax, byte [rax]
imul eax, eax, 0x165667b1
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x28]
inc rax
mov qword [rsp + 0x28], rax
mov dl, 0xb
mov ecx, dword [rsp + 0x44]
call fcn.180208b60
imul eax, eax, 0x9e3779b1
mov dword [rsp + 0x20], eax
jmp 0x18020830f
mov eax, dword [rsp + 0x20]
shr eax, 0xf
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
imul eax, dword [rsp + 0x20], 0x85ebca77
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xd
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
imul eax, dword [rsp + 0x20], 0xc2b2ae3d
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x10
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x50
pop rdi
ret
Function at 0x18020a4b0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x20]
mov ecx, 0x58
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x180591580]
xor rax, rsp
mov qword [rsp + 0x178], rax
mov dword [rsp + 0x170], 0
lea rcx, [0x180606eb3]
call fcn.180278fb0
mov dword [rsp + 0x154], 0x101
lea rdx, [rsp + 0x154]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x18020a550
lea rdx, [0x1804aaee0]
mov rcx, qword [rsp + 0x190]
call fcn.180037460
mov eax, dword [rsp + 0x170]
or eax, 1
mov dword [rsp + 0x170], eax
mov rax, qword [rsp + 0x190]
jmp 0x18020a589
mov eax, dword [rsp + 0x154]
dec eax
mov eax, eax
mov r8d, eax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x190]
call fcn.1800374d0
mov eax, dword [rsp + 0x170]
or eax, 1
mov dword [rsp + 0x170], eax
mov rax, qword [rsp + 0x190]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804aafa0]
call fcn.180278d80
mov rax, rdi
mov rcx, qword [rsp + 0x178]
xor rcx, rsp
call fcn.1802791f0
add rsp, 0x180
pop rdi
ret

Function at 0x18020a790
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x64], 0
lea rcx, [0x180606eb3]
call fcn.180278fb0
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x80]
call fcn.18015a8a0
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x64]
or eax, 1
mov dword [rsp + 0x64], eax
mov r9d, dword [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov edx, eax
mov rcx, qword [rsp + 0x80]
call fcn.1801d1760
mov rcx, qword [rsp + 0x80]
call fcn.1801d1380
mov r9d, dword [rsp + 0x20]
mov r8, rax
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.dll_GetSystemFirmwareTable]
mov rax, qword [rsp + 0x80]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x1804ab060]
call fcn.180278d80
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x180237c30
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x180237c6d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.180237bd0
add rsp, 0x58
ret

Function at 0x18023eac0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rax, str.SYSTEMCurrentControlSetControlLeapSecondInformation
mov qword [rsp + 0x58], rax
lea rax, str.LeapSeconds
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x98]
mov qword [rax], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18023eb38
xor eax, eax
jmp 0x18023ec68
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
xor edx, edx
mov eax, dword [rsp + 0x38]
mov ecx, recv
div ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x98]
mov qword [rcx], rax
mov qword [rsp + 0x48], 0
cmp dword [rsp + 0x30], 0
je 0x18023ebab
cmp dword [rsp + 0x30], 0xea
jne 0x18023ec45
mov eax, dword [rsp + 0x34]
cmp rax, qword [rsp + 0x90]
jbe 0x18023ec45
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x60], rax
mov eax, recv
mov rcx, qword [rsp + 0x60]
mul rcx
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.180279840
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x18023ec43
mov rax, qword [rsp + 0x98]
mov qword [rax], 0
jmp 0x18023ec45
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x30], 0
je 0x18023ec63
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rax, qword [rsp + 0x48]
add rsp, 0x88
ret
Function at 0x180277410
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x30
call fcn.1802fbf90
mov ecx, 8
imul rcx, rcx, 5
mov rax, qword [rax + rcx]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18027743c
mov eax, 2
jmp 0x1802774a9
lea rax, [rsp + 0x24]
mov rdi, rax
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov r9d, 2
lea r8, [rsp + 0x24]
mov edx, 0x22
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
nop
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x24]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x30
je 0x180277492
cmp dword [rsp + 0x20], 0x31
je 0x180277499
cmp dword [rsp + 0x20], 0x32
je 0x1802774a0
jmp 0x1802774a7
mov eax, 2
jmp 0x1802774a9
mov eax, 1
jmp 0x1802774a9
mov eax, 3
jmp 0x1802774a9
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x180295e40
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.180295920
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x180295e7f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1804198b0]
jmp 0x180295e89
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x180312ed0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret

Function at 0x180318950
Capabilities:
Get geographical location

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.180317c00
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1803189b7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1804198b8]
jmp 0x1803189d9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.180318ee0
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret
Function at 0x180325940
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1802797d0
sub rsp, rax
mov rax, qword [0x180591580]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1805b3ff0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x180325b32
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x180325a86
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x180325a86
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x180325a6b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x180325a08
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180325af2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x180325b51
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x180325b2d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x180325b51
jmp 0x1803259de
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1802791f0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x180325b70
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1802797d0
sub rsp, rax
mov rax, qword [0x180591580]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x1805b3ff0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, recv
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x180325d7d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x180325cc9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x180325cc9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x180325ca9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, recv
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x180325c38
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180325d3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x180325d9c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x180325d78
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x180325d9c
jmp 0x180325c0e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, recv
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1802791f0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x180334030
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180333ec0
lea rcx, [rsp + 0x40]
call fcn.180333ff0
movzx eax, al
test eax, eax
jne 0x180334078
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.180333ee0
mov rax, qword [rsp + 0x70]
jmp 0x180334249
lea rcx, [rsp + 0x40]
call fcn.180333fd0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.180333f80
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.180333fd0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.180317570
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x18033411e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.180333ee0
mov rax, qword [rsp + 0x80]
jmp 0x180334249
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.18029d450
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.18027ef20
lea rcx, [rsp + 0x48]
call fcn.18027efa0
movzx eax, al
test eax, eax
jne 0x180334185
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.18027ef60
lea rcx, [rsp + 0x40]
call fcn.180333ee0
mov rax, qword [rsp + 0x88]
jmp 0x180334249
lea rcx, [rsp + 0x48]
call fcn.18027f070
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.180333fd0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.180317570
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x18033421b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.18027ef60
lea rcx, [rsp + 0x40]
call fcn.180333ee0
mov rax, qword [rsp + 0xa0]
jmp 0x180334249
lea rcx, [rsp + 0x48]
call fcn.18029fbb0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.18027ef60
lea rcx, [rsp + 0x40]
call fcn.180333ee0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret