joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008c9ec
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1800da720]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1800c0050]
mov rbp, rcx
call fcn.1800887fc
xor edi, edi
test rax, rax
je 0x18008cad2
mov ebx, edi
call fcn.180085dcc
mov r14d, dword [rax]
call fcn.180085dcc
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.18009cd18
mov rsi, rax
test rax, rax
je 0x18008ca63
call fcn.180085dcc
mov dword [rax], r14d
jmp 0x18008ca8d
call fcn.180085dcc
cmp dword [rax], 0x22
jne 0x18008caca
call fcn.180085dcc
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.18009cd18
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x18008caca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x18008ca91
cmp rax, 3
je 0x18008caac
mov rcx, rsi
call fcn.18008c948
test al, al
je 0x18008cabd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x18008cabd
mov dil, 1
mov rcx, rbx
call fcn.18008610c
mov al, dil
jmp 0x18008cad4
mov rcx, rbx
call fcn.18008610c
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1800768c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x18008d17c
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 0x18008d1b3
call fcn.180085dcc
mov dword [rax], socket
call fcn.180086d20
xor eax, eax
jmp 0x18008d241
mov rdx, r9
mov rcx, r8
call fcn.18008d118
mov rbx, rax
test rax, rax
je 0x18008d23e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x18008d044]
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 0x18008d22b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180085d40
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18008d212
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x18008d221
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800983d4
jmp 0x18008d23e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18008d23b
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 0x180093dc4
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, [0x1800dd560]
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 0x180093e1b
cmp word [rdx], r13w
jne 0x180093e1b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180093e20
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180093f45
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180093f66
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180093e59
mov rdx, r9
mov word [rbx], cx
jmp 0x180093e80
cmp r9, r8
jae 0x180093e90
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 0x180093e3a
jmp 0x180093f45
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 0x180093f3a
cmp dword [rsp + 0x80], esi
je 0x180093f3a
lea r8, [0x1800dd560]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180093f12
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180093ee2
mov word [rbx], r13w
jmp 0x180093f42
mov ecx, reloc.WS2_32.dll_listen
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 0x180093eef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180093f42
cmp word [rsp + 0x70], r13w
jne 0x180093f1f
cmp rbx, r14
je 0x180093edc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18008d968
cmp word [rsp + 0x70], r13w
je 0x180093f45
mov ecx, reloc.WS2_32.dll_listen
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, [0x1800dd560]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180093f3f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180093f45
Function at 0x180096004
Capabilities:
Get file size

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

Function at 0x18009c7c0
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.18008d968
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18008d968
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18009c910
cmp rax, 0xffffffffffffffff
je 0x18009c910
xor edi, edi
test rbp, rbp
jle 0x18009c8bb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18009835c
mov rbx, rax
test rax, rax
jne 0x18009c848
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18009c8b1
mov edx, 0x8000
mov ecx, r14d
call fcn.18009c120
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.18009517c
cmp eax, 0xffffffff
je 0x18009c891
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18009c858
mov edx, r15d
mov ecx, r14d
call fcn.18009c120
jmp 0x18009c8b1
cmp byte [rsi + 0x38], dil
je 0x18009c8a8
cmp dword [rsi + 0x34], 5
jne 0x18009c8a8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x18009c8b1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800983d4
jmp 0x18009c924
jns 0x18009c924
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18008d968
cmp rax, 0xffffffffffffffff
jne 0x18009c8dc
cmp byte [rsi + 0x30], dil
je 0x18009c924
mov edi, dword [rsi + 0x2c]
jmp 0x18009c924
mov ecx, r14d
call fcn.18009c6b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18009c924
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x18009c924
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18009c91d
mov eax, dword [rsi + 0x2c]
jmp 0x18009c922
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18008d968
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 0x18009ff2c
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 0x18009ff5c
xor eax, eax
jmp 0x1800a001f
mov rbp, rbx
cmp word [rax], si
je 0x18009ff81
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18009ff68
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18009ff64
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.18009bd6c
movsxd r14, eax
test eax, eax
jne 0x18009ffbf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18009ff55
mov rcx, r14
call fcn.18009a948
mov rdi, rax
test rax, rax
jne 0x18009ffd8
xor ecx, ecx
call fcn.1800983d4
jmp 0x18009ffb4
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.18009bd6c
test eax, eax
jne 0x1800a0009
mov rcx, rdi
call fcn.1800983d4
jmp 0x1800a0013
xor ecx, ecx
call fcn.1800983d4
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 0x1800a003c
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1800a00c3
mov rsi, rbx
cmp word [rax], bp
je 0x1800a0082
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800a006c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800a0068
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18009a948
mov rdi, rax
test rax, rax
je 0x1800a00b0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800787b0
mov rbp, rdi
xor ecx, ecx
call fcn.1800983d4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800a0734
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800a0754
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180085d40
or eax, 0xffffffff
jmp 0x1800a0756
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800a3314
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.180096508
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 0x1800a33b5
cmp ebx, dword [rsp + 0x30]
je 0x1800a33ae
test esi, esi
je 0x1800a33ae
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800a3389
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800a3396
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800a3373
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800a339a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800a33b7
mov eax, 1
jmp 0x1800a33b7
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800a5438
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1800da720]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1800a5482
call fcn.180085dac
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.180085dcc
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.180086d20
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800768c0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1800a548d
lea eax, [rbx + 1]
jmp 0x1800a546f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1800a546d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1800a546f
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1401f7ac0]
mov dword [rax], 1
mov rax, qword [0x1401f7ad0]
mov dword [rax], 1
mov rax, qword [0x1401f7ae0]
mov dword [rax], 1
mov rax, qword [0x1401f7a40]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140163de0
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1401ce6d0
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x140163e89
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x140163e4e
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140163e40
test rax, rax
je 0x1401df5f0
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x140163e28
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140163eb8
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140163ed0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x140163f71
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x140163f36
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140163f28
test rax, rax
je 0x1401df5f6
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x140163f10
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1401c40d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x140217589], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1401c4158
lea rdx, [0x1401f398a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1401c41c0
mov rbx, qword [0x140217440]
jmp 0x1401c4115
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1401c4110
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.1401b26f0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x140217440], rax
mov ebx, dword [rax]
mov qword [0x140217440], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x140217440], rdx
call fcn.1401c3200
cmp eax, ebx
jne 0x1401c4228
mov byte [0x140217589], 1
jmp 0x1401c40ec
cmp byte [0x140217588], 0
jne 0x1401c4103
mov rbx, qword [sym.imp.python311.dll_PyDict_New]
call rbx
mov qword [0x140217ee8], rax
call rbx
mov qword [0x140217ee0], rax
call rbx
mov qword [0x140217ed8], rax
call rbx
mov qword [0x140217ed0], rax
call rbx
mov qword [0x140217ec8], rax
call rbx
mov qword [0x140217ec0], rax
call rbx
mov qword [0x140217eb8], rax
call rbx
mov byte [0x140217588], 1
mov qword [0x140217eb0], rax
jmp 0x1401c4103
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1401cd3b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1401deb40
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1401deb40
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1401ce082
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1402183a8]
test eax, eax
je 0x1401ce11a
lea rax, [0x140218380]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1402183b0]
mov qword [rbp - 8], rax
jmp 0x1401ce0fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1401ce0f2
cmp qword [rbp - 0x10], 0
je 0x1401ce0f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1401ce0b8
lea rax, [0x140218380]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1401ce11b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1401ce220
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1401ce248
mov eax, 0
jmp 0x1401ce296
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1401ce271
mov eax, 0
jmp 0x1401ce296
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1401ce291
mov eax, 0
jmp 0x1401ce296
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1401ce29c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1401ce31a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1401ce311
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1401ce311
mov rax, qword [rbp - 8]
jmp 0x1401ce32f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1401ce2e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400db680
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400db68d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400db69d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400db685
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x1400db6b5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400db6a2
sub eax, 3
jb 0x1400db6cf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400db706
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400db6f6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400db6f4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400db6e3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400db642
jmp 0x1400db68d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x5a00
mov dl, 7
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400db752
cmp rsi, rcx
jae 0x1400db75a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400db739
cmp al, 0x8f
ja 0x1400db739
cmp byte [rsi - 2], 0xf
je 0x1400db73f
sub al, 0xe8
cmp al, 1
ja 0x1400db723
cmp rsi, rcx
jae 0x1400db75a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400db729
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400db75a
lodsb al, byte [rsi]
jmp 0x1400db739
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xd9000]
mov eax, dword [rdi]
or eax, eax
je 0x1400db7b7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xdb1b8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400db767
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400db7b1
mov qword [rbx], rax
add rbx, 8
jmp 0x1400db787
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400db7f1
cmp al, 0xef
ja 0x1400db7e3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400db7c3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400db7d2
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400db845
sub rsp, 0xffffffffffffff80
jmp 0x140005fec