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

Disassembly:
jmp 0x1400146b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400146d0
xor al, al
jmp 0x140014751
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400146e3
xor al, al
jmp 0x140014751
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001470d
xor al, al
jmp 0x140014751
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014721
xor al, al
jmp 0x140014751
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014733
xor al, al
jmp 0x140014751
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001474f
xor al, al
jmp 0x140014751
mov al, 1
add rsp, 0x38
ret
Function at 0x1400125a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113b6
movzx eax, al
test eax, eax
jne 0x1400125c0
mov ecx, 7
call fcn.140011334
nop
mov byte [rsp + 0x20], 0
call fcn.140011348
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x1400125e4
mov ecx, 7
call fcn.140011334
nop
jmp 0x14001263c
cmp dword [0x14001e868], 0
jne 0x140012637
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a9
test eax, eax
je 0x140012618
mov eax, 0xff
jmp 0x140012741
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.14001133e
mov dword [0x14001e868], 2
jmp 0x14001263c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011320
call fcn.1400112b7
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012699
mov rcx, qword [rsp + 0x30]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x140012699
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.1400112e9
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400126cd
mov rcx, qword [rsp + 0x38]
call fcn.140011159
movzx eax, al
test eax, eax
je 0x1400126cd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011375
nop
call fcn.1400127f0
mov dword [rsp + 0x28], eax
call fcn.140011294
movzx eax, al
test eax, eax
jne 0x1400126ec
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400126fb
call fcn.14001137f
nop
xor edx, edx
mov cl, 1
call fcn.14001114a
mov eax, dword [rsp + 0x28]
jmp 0x140012741
add rsp, 0x68
ret
Function at 0x140006d50
Capabilities:
Check mutex on windows
Create directory
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x170
mov rax, qword [0x14008e080]
xor rax, rsp
mov qword [rsp + 0x160], rax
lea r8, str.Globalmanual
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rdi, rax
test rax, rax
jne 0x140006dc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.CreateMutex_failed:
mov ebx, eax
lea rcx, [0x14008f6d0]
call fcn.14000be40
mov rcx, rax
mov edx, ebx
call fcn.1400071d0
mov rcx, rax
call fcn.14000c0f0
mov eax, 1
jmp 0x140006fc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140006dfd
lea rdx, str.Another_instance_of_this_application_is_already_running.
lea rcx, [0x14008f6d0]
call fcn.14000be40
mov rcx, rax
call fcn.14000c0f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140006fc7
cmp qword [0x1400913b8], 0xf
lea rcx, [0x1400913a0]
mov r8d, 0x104
mov qword [rsp + 0x180], rsi
cmova rcx, qword [0x1400913a0]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov rbx, 0xffffffffffffffff
lea rax, [rsp + 0x50]
mov r8, rbx
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140006e40
lea rdx, [rsp + 0x50]
lea rcx, [0x140091568]
call fcn.14000a8a0
lea rax, [rsp + 0x50]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140006e63
lea rdx, [rsp + 0x50]
lea rcx, [0x140091328]
call fcn.14000a8a0
mov r8d, 7
lea rdx, str.Intel_
lea rcx, [0x140091568]
call fcn.14000aa50
mov r8d, 9
lea rdx, str.TestLog_
lea rcx, [0x140091328]
call fcn.14000aa50
cmp qword [0x140091348], 0xf
lea rsi, [0x140091330]
cmova rsi, qword [0x140091330]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp qword [0x140091588], 0xf
lea rcx, [0x140091570]
cmova rcx, qword [0x140091570]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xorps xmm0, xmm0
mov qword [rsp + 0x20], 0
xorps xmm1, xmm1
lea rax, [rsp + 0x50]
movups xmmword [rsp + 0x28], xmm0
movdqu xmmword [rsp + 0x38], xmm1
inc rbx
cmp byte [rax + rbx], 0
jne 0x140006f10
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.14000c410
cmp qword [0x140091538], 0xf
lea rdx, [0x140091520]
mov r8, qword [0x140091530]
lea rcx, [rsp + 0x20]
cmova rdx, qword [0x140091520]
call fcn.14000aa50
cmp qword [rsp + 0x40], 0xf
lea rbx, [rsp + 0x28]
cmova rbx, qword [rsp + 0x28]
call fcn.140003980
mov rcx, rsi
call fcn.140003380
call fcn.140004620
mov ecx, 0x7a120
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call fcn.1400067a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x20]
call fcn.14000a780
mov rcx, qword [rsp + 0x20]
mov edx, 0x10
mov qword [rsp + 0x20], 0
call fcn.14000d1d0
mov rsi, qword [rsp + 0x180]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140010fd0
mov rbx, qword [rsp + 0x188]
add rsp, 0x170
pop rdi
ret
Function at 0x140007a80
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140007aa4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140007b32
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140007b00
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140007b00
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14006ad70
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140007b1d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140007b25
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140007ac1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140007c10
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140007b49
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140007b4b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140007b7d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14006ad70
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140007c0d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140007bb8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x140007bee
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.140033fb0
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x140007c0d
cmp rsi, rax
ja 0x140007bc1
test rsi, rsi
je 0x140007c0d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140033fb0
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x140011750
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011280
movzx eax, al
test eax, eax
jne 0x140011770
mov ecx, 7
call fcn.140012500
nop
mov byte [rsp + 0x20], 0
call fcn.140011210
mov byte [rsp + 0x21], al
cmp dword [0x14008f9e8], 1
jne 0x140011794
mov ecx, 7
call fcn.140012500
nop
jmp 0x1400117ec
cmp dword [0x14008f9e8], 0
jne 0x1400117e7
mov dword [0x14008f9e8], 1
lea rdx, [0x14006e630]
lea rcx, [0x14006e5f0]
call fcn.14003c840
test eax, eax
je 0x1400117c8
mov eax, 0xff
jmp 0x1400118f1
lea rdx, [0x14006e5e8]
lea rcx, [0x14006e3d0]
call fcn.14003c7d0
mov dword [0x14008f9e8], 2
jmp 0x1400117ec
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011470
call fcn.140012a90
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140011849
mov rcx, qword [rsp + 0x30]
call fcn.1400113e0
movzx eax, al
test eax, eax
je 0x140011849
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14006e3a8]
nop
call fcn.140012aa0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001187d
mov rcx, qword [rsp + 0x38]
call fcn.1400113e0
movzx eax, al
test eax, eax
je 0x14001187d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14003a3f0
nop
call fcn.140011900
mov dword [rsp + 0x28], eax
call fcn.140012710
movzx eax, al
test eax, eax
jne 0x14001189c
mov ecx, dword [rsp + 0x28]
call fcn.14003a440
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400118ab
call fcn.14003a3b0
nop
xor edx, edx
mov cl, 1
call fcn.1400114a0
mov eax, dword [rsp + 0x28]
jmp 0x1400118f1
add rsp, 0x68
ret

Function at 0x14001b180
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14001ac60
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14001b1bf
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 [0x14006e3a8]
jmp 0x14001b1c9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140042af0
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 0x140045aa0
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.140045180
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140045b07
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 [0x14006e3b0]
jmp 0x140045b29
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140045e30
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 0x1400478f0
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.14006a5c0
sub rsp, rax
mov rax, qword [0x14008e080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140090bd0]
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, reloc.WS2_32.dll_inet_ntoa
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 0x140047ae2
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 0x140047a36
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140047a36
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 0x140047a1b
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 0x1400479b8
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 0x140047aa2
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, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140047b01
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 0x140047add
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140047b01
jmp 0x14004798e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140010fd0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140047b20
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.14006a5c0
sub rsp, rax
mov rax, qword [0x14008e080]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140090bd0]
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, reloc.WS2_32.dll_inet_ntoa
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 0x140047d2d
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 0x140047c79
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140047c79
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 0x140047c59
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
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 0x140047be8
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 0x140047ced
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, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140047d4c
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 0x140047d28
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140047d4c
jmp 0x140047bbe
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, reloc.WS2_32.dll_inet_ntoa
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140010fd0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400497f0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004981c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400364d0
mov eax, 0xffffffff
jmp 0x14004981e
xor eax, eax
add rsp, 0x28
ret
Function at 0x140059920
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140010820
lea rcx, [rsp + 0x40]
call fcn.1400598e0
movzx eax, al
test eax, eax
jne 0x140059968
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140059810
mov rax, qword [rsp + 0x70]
jmp 0x140059b39
lea rcx, [rsp + 0x40]
call fcn.140010890
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140059890
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.140010890
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.1400565f0
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140059a0e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140059810
mov rax, qword [rsp + 0x80]
jmp 0x140059b39
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.140030760
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140010820
lea rcx, [rsp + 0x48]
call fcn.140010f70
movzx eax, al
test eax, eax
jne 0x140059a75
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.140010f50
lea rcx, [rsp + 0x40]
call fcn.140059810
mov rax, qword [rsp + 0x88]
jmp 0x140059b39
lea rcx, [rsp + 0x48]
call fcn.140010890
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140010890
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.1400565f0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140059b0b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.140010f50
lea rcx, [rsp + 0x40]
call fcn.140059810
mov rax, qword [rsp + 0xa0]
jmp 0x140059b39
lea rcx, [rsp + 0x48]
call fcn.140014330
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.140010f50
lea rcx, [rsp + 0x40]
call fcn.140059810
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400051d0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov eax, 4
imul rax, rax, 1
lea rcx, [0x14021f570]
cmp dword [rcx + rax], 0
jne 0x140005272
mov dword [rsp + 0x2c], 0xedb88320
mov dword [rsp + 0xc], 0
jmp 0x140005214
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
cmp dword [rsp + 0xc], 0x100
jae 0x140005272
mov eax, dword [rsp + 0xc]
mov dword [rsp + 0x10], eax
mov dword [rsp + 0x20], 0
jmp 0x14000523a
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 8
jae 0x14000525e
mov eax, dword [rsp + 0x10]
shr eax, 1
mov ecx, dword [rsp + 0x10]
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp + 0x10], eax
jmp 0x140005230
mov eax, dword [rsp + 0xc]
lea rcx, [0x14021f570]
mov edx, dword [rsp + 0x10]
mov dword [rcx + rax*4], edx
jmp 0x14000520a
mov eax, dword [rsp + 0x50]
not eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 4], eax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x18], rax
cmp dword [rsp + 0x48], 0
jle 0x1400052f5
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x24], 0
je 0x1400052f0
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
mov rdx, qword [rsp + 0x18]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
lea rdx, [0x14021f570]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x18]
inc rax
mov qword [rsp + 0x18], rax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 4], eax
jmp 0x140005295
jmp 0x140005389
mov rax, qword [rsp + 0x18]
movzx eax, byte [rax]
mov byte [rsp + 8], al
mov rax, qword [rsp + 0x18]
inc rax
mov qword [rsp + 0x18], rax
movzx eax, byte [rsp + 8]
mov byte [rsp], al
movzx eax, byte [rsp]
test eax, eax
je 0x140005389
movzx eax, byte [rsp]
cmp eax, 0x23
jne 0x14000535d
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x18]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14000535d
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x18]
movzx eax, byte [rcx + rax]
cmp eax, 0x23
jne 0x14000535d
mov eax, dword [rsp + 0x50]
mov dword [rsp + 4], eax
mov eax, dword [rsp + 4]
shr eax, 8
mov ecx, dword [rsp + 4]
and ecx, 0xff
movzx edx, byte [rsp]
xor ecx, edx
mov ecx, ecx
lea rdx, [0x14021f570]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 4], eax
jmp 0x1400052f5
mov eax, dword [rsp + 4]
not eax
add rsp, 0x38
ret