joyce8/EMBER2024-capa huggingface dataset:
Function at 0x321f780
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x280
mov rax, qword [0x03260b88]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x03264188], 0
lea rax, [0x0321f110]
mov qword [rsp + 0x28], rax
lea rbx, [0x0324a8f8]
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x0321f540]
mov qword [rsp + 0x38], rax
lea rax, [0x0324a918]
mov qword [rsp + 0x40], rax
lea rax, [0x0321f0c0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rbx
jne 0x321f94c
mov edx, 0x104
lea rcx, [rsp + 0x160]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x321f942
lea r8, [rsp + 0x160]
mov qword [rsp + 0x290], rsi
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.032379e0
lea r8, str.ws2_32
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.03237a40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x321f874
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x321f8d4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.032379e0
lea r8, str.wship6
mov edx, 0x10c
lea rcx, [rsp + 0x50]
call fcn.03237a40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x321f93a
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x321f8d4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x321f93a
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
test rax, rax
je 0x321f929
inc edi
add rbx, 0x10
cmp edi, 3
jl 0x321f8e3
mov rax, qword [rsp + 0x28]
mov qword [0x03260b50], rax
mov rax, qword [rsp + 0x38]
mov qword [0x03260b60], rax
mov rax, qword [rsp + 0x48]
mov qword [0x03260b70], rax
jmp 0x321f932
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x03264188], 1
mov rax, rbp
lea rcx, [0x03260b48]
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.03229100
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x321f980
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x870
mov rax, qword [0x03260b88]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov r13, qword [rsp + 0x8c8]
mov r14, rcx
mov dword [rsp + 0x24], r8d
xor ebp, ebp
mov dword [rsp + 0x28], edx
mov r8d, 0x401
mov qword [rsp + 0x38], rcx
xor edx, edx
lea rcx, [rsp + 0x40]
mov word [rsp + 0x20], r9w
mov r12d, ebp
call fcn.0322a310
xor edx, edx
lea rcx, [rsp + 0x450]
mov r8d, 0x401
call fcn.0322a310
mov r9d, 0x400
lea rbx, [rsp + 0x40]
mov r8, r14
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
lea rdi, [rsp + 0x450]
lea edx, [r9 + 1]
call fcn.03237aac
lea r15, [rbp - 1]
nop dword [rax]
mov rcx, r14
mov qword [r13], rbp
mov rsi, r13
mov byte [rdi], bpl
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov r14, rax
test rax, rax
je 0x321fb7e
cmp word [rax + 0x10], 2
jne 0x321faa7
cmp word [rax + 0x12], 4
jne 0x321faa7
mov rbx, qword [rax + 0x18]
mov rax, qword [rbx]
test rax, rax
je 0x321faa2
nop dword [rax]
mov r9d, dword [rax]
movzx r8d, word [rsp + 0x20]
mov edx, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
call fcn.0321fbe0
mov qword [rsi], rax
test rax, rax
je 0x321fb77
add rbx, 8
lea rsi, [rax + 0x28]
mov rax, qword [rbx]
test rax, rax
jne 0x321fa70
mov rbx, qword [rsp + 0x30]
mov r8, qword [r14]
mov r9d, 0x400
mov rcx, rdi
lea edx, [r9 + 1]
call fcn.03237aac
cmp qword [r13], rbp
jne 0x321fb20
mov rax, r15
inc rax
cmp byte [rdi + rax], bpl
jne 0x321fac5
test rax, rax
je 0x321fb98
mov r8, rdi
mov rax, rbx
sub r8, rbx
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x321faf3
inc rax
test ecx, ecx
jne 0x321fae0
test edx, edx
je 0x321fb98
inc r12d
cmp r12d, 0x10
je 0x321fb98
mov r14, qword [rsp + 0x38]
mov rax, rbx
mov rbx, rdi
mov rdi, rax
mov qword [rsp + 0x30], rbx
jmp 0x321fa30
cmp dword [rsp + 0x8c0], ebp
je 0x321fbab
nop dword [rax]
cmp byte [rdi + r15 + 1], bpl
lea r15, [r15 + 1]
jne 0x321fb30
lea rdx, [r15 + 1]
mov ecx, 1
call fcn.0322fc60
mov rbx, rax
test rax, rax
jne 0x321fb56
mov rbx, rbp
jmp 0x321fb65
mov r8, rdi
lea rdx, [r15 + 1]
mov rcx, rax
call fcn.032379e0
mov rax, qword [r13]
mov qword [rax + 0x18], rbx
mov rax, qword [r13]
cmp qword [rax + 0x18], rbp
jne 0x321fbab
mov ebp, 8
jmp 0x321fbab
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
sub ecx, 0x2af9
je 0x321fba6
sub ecx, 1
je 0x321fb9f
sub ecx, 1
jne 0x321fba6
mov ebp, 0x2afb
jmp 0x321fbab
mov ebp, 0x2afa
jmp 0x321fbab
mov ebp, 0x2af9
mov eax, ebp
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.03229100
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x3226c00
Capabilities:
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x0325c200]
xor ebx, ebx
call qword [rax + 0x2d8]
mov rdi, rax
test rax, rax
je 0x3226c2e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x3226c36
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.0322fc44
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x3226c50
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x0325c200]
mov rbx, rdx
xor edi, edi
call qword [rax + 0x2d8]
mov rsi, rax
mov rcx, rbx
mov rax, qword [0x0325c200]
call qword [rax + 0x2d8]
mov rbx, rax
test rsi, rsi
je 0x3226ca4
test rax, rax
je 0x3226ca4
xor r8d, r8d
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x3226cac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call fcn.0322fc44
mov rcx, rbx
call fcn.0322fc44
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x3226d20
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x0325c200]
xor edi, edi
call qword [rax + 0x2d8]
mov rbx, rax
test rax, rax
je 0x3226d6e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x3226d61
test al, 1
je 0x3226d61
and eax, 0xfffffffe
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x3226d76
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call fcn.0322fc44
mov rbx, qword [rsp + 0x30]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x3226d90
Capabilities:
Query environment variable

Disassembly:
push rbx
mov eax, 0x10030
call fcn.03229130
sub rsp, rax
mov rax, qword [0x03260b88]
xor rax, rsp
mov qword [rsp + 0x10020], rax
mov rax, qword [0x0325c200]
call qword [rax + 0x2d8]
mov rbx, rax
test rax, rax
je 0x3226de6
mov r8d, 0x8000
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, rbx
test eax, eax
jne 0x3226dea
call fcn.0322fc44
xor eax, eax
jmp 0x3226e01
call fcn.0322fc44
mov rax, qword [0x0325c200]
lea rcx, [rsp + 0x20]
call qword [rax + 0x2e0]
mov rcx, qword [rsp + 0x10020]
xor rcx, rsp
call fcn.03229100
add rsp, 0x10030
pop rbx
ret
Function at 0x3226f30
Capabilities:
Get common file path

Disassembly:
push rbx
mov eax, 0x10030
call fcn.03229130
sub rsp, rax
mov rax, qword [0x03260b88]
xor rax, rsp
mov qword [rsp + 0x10020], rax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, 0x8000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x3226f70
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x3226f8c
mov rax, qword [0x0325c200]
lea rcx, [rsp + 0x20]
call qword [rax + 0x2e0]
mov qword [rbx], rax
test rax, rax
je 0x3226f68
xor eax, eax
mov rcx, qword [rsp + 0x10020]
xor rcx, rsp
call fcn.03229100
add rsp, 0x10030
pop rbx
ret
Function at 0x3226fb0
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
mov eax, 0x102b0
call fcn.03229130
sub rsp, rax
mov rax, qword [0x03260b88]
xor rax, rsp
mov qword [rsp + 0x10290], rax
mov qword [rsp + 0x30], r8
mov r13, rdx
mov rbx, rcx
lea r8, [0x0324aac0]
mov r9, rcx
xor esi, esi
mov edx, 0x8000
lea rcx, [rsp + 0x290]
mov edi, esi
call fcn.0321a960
lea edx, [rsi + 0x2a]
mov rcx, rbx
call fcn.0322b074
test rax, rax
jne 0x322704d
mov r9, rbx
lea r8, [0x0324aac4]
mov edx, 0x8000
lea rcx, [rsp + 0x290]
call fcn.0321a960
mov rcx, rbx
call fcn.0322fce4
mov rdi, rax
test rax, rax
jne 0x3227079
mov r14, qword [rsp + 0x30]
mov esi, 8
jmp 0x32271dd
mov edx, 0x5c
mov rcx, rbx
call fcn.0322b074
mov r14, rax
test rax, rax
je 0x3227079
mov rcx, rbx
mov byte [rax], sil
call fcn.0322fce4
mov rdi, rax
test rax, rax
je 0x322703e
mov byte [r14], 0x5c
lea rcx, [rsp + 0x290]
mov qword [rsp + 0x102a8], r12
call fcn.03226d90
mov r12, rax
test rax, rax
jne 0x32270a3
mov r14, qword [rsp + 0x30]
lea esi, [rax + 8]
jmp 0x32271d5
mov rax, qword [0x0325c200]
mov rcx, r12
call qword [rax + 0x2d8]
mov r14, rax
test rax, rax
jne 0x32270c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x32271d5
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x102f8], rbp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbp, rax
test rax, rax
jne 0x32270f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x32271cd
mov qword [rsp + 0x102a0], r15
nop dword [rax + rax]
cmp rbp, 0xffffffffffffffff
je 0x32271ac
mov rax, qword [0x0325c200]
lea rcx, [rsp + 0x6c]
call qword [rax + 0x2e0]
mov rdx, qword [0x0325c200]
lea rcx, [rsp + 0x274]
mov rbx, rax
call qword [rdx + 0x2e0]
lea rcx, [rsp + 0x8290]
mov r15, rax
mov edx, 0x8000
test rdi, rdi
je 0x322715f
mov r9, rdi
mov qword [rsp + 0x20], rbx
lea r8, str._s_s
call fcn.0321a960
jmp 0x322716e
mov r9, rbx
lea r8, [0x0324aac0]
call fcn.0321a960
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x8290]
mov r8, r15
mov rdx, rbx
call r13
mov rcx, rbx
call fcn.0322fc44
mov rcx, r15
call fcn.0322fc44
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x3227100
jmp 0x32271b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, r12
call fcn.0322fc44
mov r15, qword [rsp + 0x102a0]
mov rbp, qword [rsp + 0x102f8]
mov r12, qword [rsp + 0x102a8]
mov rcx, rdi
call fcn.0322fc44
mov rcx, r14
call fcn.0322fc44
mov eax, esi
mov rcx, qword [rsp + 0x10290]
xor rcx, rsp
call fcn.03229100
add rsp, 0x102b0
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret

Function at 0x3227210
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x0325c200]
xor ebx, ebx
call qword [rax + 0x2d8]
mov rdi, rax
test rax, rax
je 0x3227240
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x3227248
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.0322fc44
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x3227260
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [0x0325c200]
mov rbx, rdx
xor edi, edi
call qword [rax + 0x2d8]
mov rsi, rax
mov rcx, rbx
mov rax, qword [0x0325c200]
call qword [rax + 0x2d8]
mov rbx, rax
test rsi, rsi
je 0x32272b1
test rax, rax
je 0x32272b1
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x32272b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call fcn.0322fc44
mov rcx, rbx
call fcn.0322fc44
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x3228f30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x03260b88]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rcx, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rsi, rdx
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
xor edi, edi
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x3228f7f
mov eax, 0x507
jmp 0x322902f
mov ecx, 0x41
mov qword [rsp + 0xe0], rbx
call fcn.0322fc58
mov rbx, rax
test rax, rax
je 0x3229022
movzx eax, word [rsp + 0x30]
cmp ax, 2
jne 0x3228fbf
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rdx, [rsp + 0x34]
mov ecx, 2
jmp 0x3228fda
cmp ax, 0x17
jne 0x3228feb
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
lea rdx, [rsp + 0x38]
mov ecx, 0x17
mov r9d, 0x41
mov r8, rbx
movzx edi, ax
call fcn.03228e70
mov rax, qword [0x0325c200]
mov r8, rbx
mov edx, 0x105de
mov rcx, rsi
call qword [rax + 0x50]
mov rax, qword [0x0325c200]
mov edx, 0x205df
movzx r8d, di
mov rcx, rsi
call qword [rax + 0x58]
mov rcx, rbx
call fcn.0322fc44
xor eax, eax
jmp 0x3229027
mov eax, 0xe
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.03229100
mov rsi, qword [rsp + 0xe8]
add rsp, 0xc0
pop rdi
ret

Function at 0x3229d08
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x3229d52
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x3229d52
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x3229d52
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x3229d52
cmp dword [rcx + 0x84], 0xe
jbe 0x3229d52
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x3229d54
xor al, al
add rsp, 0x28
ret
Function at 0x3236f00
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.03229130
sub rsp, rax
mov rax, qword [0x03260b88]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.0323b7c4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x3236f4f
mov rax, rbp
jmp 0x3237057
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, [0x03201000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x63b70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.0323d98c
mov r13, rax
lea rax, [0x03201000]
mov rcx, qword [rax + rbx*8 + 0x63b70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x3237053
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 0x3237053
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.0323d98c
test rax, rax
js 0x3237053
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x3237053
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x3237045
lea r8, [0x03201000]
cmp rcx, rdx
jae 0x3237045
cmp byte [rcx], 0xd
jne 0x323702b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x323703a
cmp byte [rcx + 1], 0xa
jne 0x323703a
inc rcx
jmp 0x323703a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5fec0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x323700d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x3237057
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.03229100
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 0x3238c98
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x3238a94
Function at 0x323cbc4
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, [0x03264b70]
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 0x323cc1b
cmp word [rdx], r13w
jne 0x323cc1b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x323cc20
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x323cd45
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x323cd66
lea r9, [rdx + 2]
cmp cx, r11w
je 0x323cc59
mov rdx, r9
mov word [rbx], cx
jmp 0x323cc80
cmp r9, r8
jae 0x323cc90
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 0x323cc3a
jmp 0x323cd45
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 0x323cd3a
cmp dword [rsp + 0x80], esi
je 0x323cd3a
lea r8, [0x03264b70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x323cd12
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x323cce2
mov word [rbx], r13w
jmp 0x323cd42
mov ecx, 0xd
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 0x323ccef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x323cd42
cmp word [rsp + 0x70], r13w
jne 0x323cd1f
cmp rbx, r14
je 0x323ccdc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.0323d994
cmp word [rsp + 0x70], r13w
je 0x323cd45
mov ecx, 0xd
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, [0x03264b70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x323cd3f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x323cd45
Function at 0x323e7f8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x323e80e
mov al, 1
jmp 0x323e86e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x323e81f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x323e86c
mov ecx, dword [rcx + 0x18]
nop
call fcn.0324112c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x323e86c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x323e86c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x323e86c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x323e86e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x32406c4
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 0x32406f4
xor eax, eax
jmp 0x32407b7
mov rbp, rbx
cmp word [rax], si
je 0x3240719
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x3240700
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x32406fc
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.0323a144
movsxd r14, eax
test eax, eax
jne 0x3240757
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x32406ed
mov rcx, r14
call fcn.032395c8
mov rdi, rax
test rax, rax
jne 0x3240770
xor ecx, ecx
call fcn.0323958c
jmp 0x324074c
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.0323a144
test eax, eax
jne 0x32407a1
mov rcx, rdi
call fcn.0323958c
jmp 0x32407ab
xor ecx, ecx
call fcn.0323958c
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 0x3245b20
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.03237590
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x3245baa
cmp byte [rbp - 0x21], r15b
je 0x3245ba5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x3245be0
call fcn.0323bf88
test eax, eax
jne 0x3245bcc
cmp byte [rbp - 0x21], r15b
je 0x3245bc4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x3245be0
cmp byte [rbp - 0x21], r15b
je 0x3245bdd
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.0323eea0
test eax, eax
jne 0x3245c80
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.03237590
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x3245c1f
cmp byte [rbp - 0x21], r15b
je 0x3245c54
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x3245c54
call fcn.0323bf88
test eax, eax
jne 0x3245c40
cmp byte [rbp - 0x21], r15b
je 0x3245c39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x3245c54
cmp byte [rbp - 0x21], r15b
je 0x3245c51
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.0323eea0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x3245c80
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x3245c83
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x3245c91
mov rcx, rdi
call fcn.0323958c
cmp byte [rbp + 0x3f], r15b
je 0x3245ca0
mov rcx, qword [rbp + 0x27]
call fcn.0323958c
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