joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180074f10
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0xffffffffffffffff
mov rbx, rcx
je 0x180074faa
cmp dword [rcx + 0x1c], 0
je 0x180074f80
mov ecx, dword [rcx + 0x20]
xor eax, eax
mov byte [rsp + 0x40], 0
mov dword [rsp + 0x41], eax
mov word [rsp + 0x45], ax
mov byte [rsp + 0x47], al
call qword [sym.imp.WS2_32.dll_htonl]
xor ecx, ecx
mov dword [rsp + 0x40], eax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
xor edx, edx
lea r9, [rsp + 0x40]
mov dword [rsp + 0x44], eax
lea r8d, [rdx + 0xd]
mov dword [rsp + 0x20], 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x180074f80
xor eax, eax
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rbx + 0x10]
mov edx, 1
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WS2_32.dll_closesocket]
xor ecx, ecx
mov qword [rbx + 0x10], 0xffffffffffffffff
mov qword [rbx + 0x18], rcx
mov dword [rbx + 0x20], ecx
mov eax, 1
add rsp, 0x30
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx + 0x10]
mov rdi, r8
mov rbx, rdx
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x1800750b3
xor eax, eax
jmp 0x1800750d2
mov ecx, dword [rsp + 0x2c]
call qword [sym.imp.WS2_32.dll_ntohl]
movzx ecx, word [rsp + 0x2a]
mov dword [rbx], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [rdi], ax
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18002f6f0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x180075130
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x20], r9d
mov r9, r8
mov r8d, edx
mov edx, dword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_setsockopt]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x180075180
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push r12
sub rsp, 0x58
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp byte [rsp + 0xa0], 0xff
movzx r12d, r9w
mov ebp, r8d
mov rsi, rdx
mov rbx, rcx
jne 0x1800751de
cmp dword [rcx + 0x18], 0
lea r9, [rcx + 0x18]
jne 0x1800751de
mov rcx, qword [rcx + 0x10]
mov edx, 0xffff
mov r8d, 0x20
mov dword [r9], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 2
movzx ecx, r12w
mov word [rsp + 0x30], ax
call qword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [rsp + 0xa0]
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x30]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x58
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x180075250
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x58
mov rax, qword [0x1800bc650]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r13, qword [rsp + 0xb0]
mov r12, r9
mov ebp, r8d
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rdi + 0x10]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov r8d, ebp
mov rdx, rsi
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
test eax, eax
je 0x1800752ea
jns 0x1800752c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x1800752ea
test ebx, ebx
jle 0x180075280
mov ecx, dword [rsp + 0x3c]
call qword [sym.imp.WS2_32.dll_ntohl]
movzx ecx, word [rsp + 0x3a]
mov dword [r12], eax
call qword [sym.imp.WS2_32.dll_ntohs]
mov word [r13], ax
mov eax, ebx
jmp 0x1800752ec
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18002f6f0
add rsp, 0x58
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180075310
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov ebx, r8d
mov rdi, rcx
test edx, edx
jne 0x180075330
mov dword [rsp + 0x48], 1
jmp 0x18007533d
cmp edx, 0x7fffffff
cmova edx, eax
mov dword [rsp + 0x48], edx
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 4
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x180075379
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x48], eax
je 0x1800753a7
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x48]
mov r8d, ebx
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x18007536c
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov r8d, 0x1005
mov dword [rcx + 8], edx
jmp 0x180075310

Function at 0x180075420
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
xor eax, eax
mov ebx, r8d
mov rdi, rcx
test edx, edx
jne 0x180075330
mov dword [rsp + 0x48], 1
jmp 0x18007533d
cmp edx, 0x7fffffff
cmova edx, eax
mov dword [rsp + 0x48], edx
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x40]
mov edx, 0xffff
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 4
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x180075379
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x48], eax
je 0x1800753a7
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x48]
mov r8d, ebx
mov edx, 0xffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x18007536c
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov r8d, 0x1005
mov dword [rcx + 8], edx
jmp 0x180075310

Function at 0x180075430
Capabilities:
Set socket configuration

Disassembly:
mov r8d, 0x1006
mov dword [rcx + 0xc], edx
jmp 0x180075310
Function at 0x1400292ec
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.14001c9b4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c9b4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002943c
cmp rax, 0xffffffffffffffff
je 0x14002943c
xor edi, edi
test rbp, rbp
jle 0x1400293e7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f2e0
mov rbx, rax
test rax, rax
jne 0x140029374
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400293dd
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a2e8
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.14001d690
cmp eax, 0xffffffff
je 0x1400293bd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029384
mov edx, r15d
mov ecx, r14d
call fcn.14001a2e8
jmp 0x1400293dd
cmp byte [rsi + 0x38], dil
je 0x1400293d4
cmp dword [rsi + 0x34], 5
jne 0x1400293d4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400293dd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b07c
jmp 0x140029450
jns 0x140029450
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c9b4
cmp rax, 0xffffffffffffffff
jne 0x140029408
cmp byte [rsi + 0x30], dil
je 0x140029450
mov edi, dword [rsi + 0x2c]
jmp 0x140029450
mov ecx, r14d
call fcn.1400187a4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029450
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029450
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029449
mov eax, dword [rsi + 0x2c]
jmp 0x14002944e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c9b4
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 0x1414ae284
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1414ae28e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1414ae2b7
pop rbp
sub rbp, 0x33
sub rbp, 0x14ae284
sub rsp, 0x20
jmp 0x1414ae2d6
mov rax, 0x14ae284
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff82ab9bc4
xor byte [rax], dl
inc rax
dec rcx
jne 0x1414ae2f5
jmp 0x1414ae30c
mov word [rbp + 0x2d], cs
clc
invalid
Function at 0x1000043b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x10000a100]
xor rax, rsp
mov qword [rsp + 0xc0], rax
and qword [rsp + 0x50], 0
mov rsi, rcx
mov rcx, qword [0x10000ba10]
lea r8, [rsp + 0x58]
mov r9d, 0xa
mov edx, 0x1b82
call qword [sym.imp.USER32.dll_LoadStringA]
mov rcx, qword [0x10000ba10]
test eax, eax
je 0x1000044d8
lea r8, [rsp + 0x70]
mov r9d, 0x28
mov edx, 0x1b87
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1000044d1
and qword [rsi], 0
lea r8, [rsp + 0x58]
mov edx, 0x65
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov rdi, rax
je 0x1000044c7
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x1000044c7
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
test edi, edi
je 0x1000044be
test rax, rax
je 0x1000044be
mov edx, dword [0x10000a41c]
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
lea rcx, [0x10000b8f4]
mov r9d, edi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x70]
mov r8, rax
mov qword [rsp + 0x28], rcx
mov rcx, qword [0x10000b9c0]
and qword [rsp + 0x20], 0
call sub.MSSIGN32.dll_PvkPrivateKeyAcquireContextFromMemory
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rax, qword [rsp + 0x50]
test rax, rax
jne 0x1000044e7
mov rcx, qword [0x10000ba10]
mov edx, 0x1b61
call fcn.100007180
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.100007b10
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10000692c
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x10000a100]
xor rax, rsp
mov qword [rsp + 0x68], rax
and qword [r11 - 0x48], 0
and qword [r11 - 0x30], 0
lea rcx, [r11 - 0x20]
xor ebx, ebx
xor ebp, ebp
xor edi, edi
mov qword [r11 - 0x38], rbx
call qword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x1000069cf
mov rdx, qword [0x10000ba10]
lea ecx, [rbp + 0x42]
mov r8d, 0x1b6c
call fcn.1000070e4
test rax, rax
mov rbp, rax
je 0x1000069cf
lea rdx, [rsp + 0x58]
lea ecx, [rbx + 0x10]
mov r8, rax
call fcn.100005ddc
mov r9d, dword [0x10000a420]
mov r8, qword [0x10000b9c8]
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x100006a6b
and qword [rsp + 0x30], rbx
mov r8, qword [0x10000b900]
mov rcx, qword [0x10000ba10]
mov edx, 0x1b69
call fcn.100007180
xor esi, esi
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x100006a1f
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov r9d, dword [0x10000a420]
mov r8, qword [0x10000b9c8]
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test rbp, rbp
je 0x100006a2c
mov rcx, rbp
call sub.msvcrt.dll_free
test rbx, rbx
je 0x100006a39
mov rcx, rbx
call sub.msvcrt.dll_free
test rdi, rdi
je 0x100006a46
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, esi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.100007b10
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rcx, qword [rsp + 0x30]
mov esi, 1
lea r9, [rsp + 0x48]
mov edx, esi
mov r8d, 0x2000001
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x1000069cf
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x38], ebx
lea rax, [rsp + 0x38]
xor r9d, r9d
mov r8d, esi
mov edx, esi
mov qword [rsp + 0x20], rax
call sub.CRYPT32.dll_CryptExportPublicKeyInfo
mov r11d, dword [rsp + 0x38]
test r11d, r11d
je 0x100006b06
mov rdx, qword [0x10000ba10]
mov rcx, r11
mov r8d, 0x1b6c
call fcn.1000070e4
test rax, rax
mov rdi, rax
je 0x1000069e7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov r9, rdi
mov r8d, esi
mov edx, esi
mov qword [rsp + 0x20], rax
call sub.CRYPT32.dll_CryptExportPublicKeyInfo
test eax, eax
jne 0x100006b15
mov ecx, 0x1b70
call fcn.100001934
jmp 0x1000069e7
mov r8d, dword [rdi + 8]
mov rdx, qword [rdi + 0x10]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov ecx, 0x32
mov qword [rsp + 0x20], rax
call fcn.100006324
mov rbx, qword [rsp + 0x40]
test eax, eax
je 0x1000069cf
xor esi, esi
cmp dword [rbx + 0x20], esi
setne sil
jmp 0x1000069e9
Function at 0x1000073ec
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x40
xor ebx, ebx
xor esi, esi
mov rdi, r9
and dword [rax + 0x18], ebx
test r8, r8
mov r12, r8
mov r13, rdx
je 0x10000750e
test rcx, rcx
je 0x10000750e
test r9, r9
je 0x10000750e
and qword [rax - 0x28], rbx
and qword [r8], rbx
and dword [rdx], ebx
or qword [r9], 0xffffffffffffffff
mov dword [rax - 0x30], 0x80
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov qword [rdi], rax
je 0x1000074c7
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov ebp, eax
je 0x1000074c7
cmp dword [rsp + 0x70], ebx
je 0x100007487
mov ebx, 0x80004005
jmp 0x1000074e9
mov rcx, qword [rdi]
and qword [rsp + 0x28], rbx
and dword [rsp + 0x20], ebx
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test rax, rax
mov rsi, rax
je 0x1000074c7
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
jne 0x1000074dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1000074e5
mov dword [r13], ebp
mov qword [r12], rax
test ebx, ebx
je 0x1000074fc
cmp qword [rdi], 0xffffffffffffffff
je 0x1000074fc
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi], 0xffffffffffffffff
test rsi, rsi
je 0x10000750a
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x100007513
mov eax, 0x80070057
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret

Function at 0x100007534
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov rcx, qword [0x10000b960]
and dword [rax + 8], 0
mov ebx, r8d
test rcx, rcx
mov rdi, rdx
je 0x100007604
test rdx, rdx
je 0x100007604
test ebx, ebx
je 0x100007604
and qword [rax - 0x18], 0
and dword [rax - 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rax - 0x28], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
jne 0x1000075b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x100007600
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000075e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1000075f7
mov eax, dword [rsp + 0x50]
sub eax, ebx
neg eax
sbb ebx, ebx
and ebx, 0x80004005
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x100007609
mov eax, 0x80070057
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x100007d70
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100007dba
cmp rcx, 0xffffffffffffffff
je 0x100007dba
cmp word [rcx], 0x5a4d
jne 0x100007db2
cmp dword [rcx + 0x3c], edx
jl 0x100007db2
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100007db2
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100007dba
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400db720]
mov dword [rax], 1
mov rax, qword [0x1400db730]
mov dword [rax], 1
mov rax, qword [0x1400db740]
mov dword [rax], 1
mov rax, qword [0x1400db6a0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
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 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140030530
Capabilities:
Query environment variable

Disassembly:
push r13
mov eax, 0x10078
push r12
call fcn.1400bb760
sub rsp, rax
xor eax, eax
mov r8d, 0x28
mov rdx, rcx
lea r12, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea r13, [rsp + 0x70]
mov rcx, r12
call fcn.140056030
mov rdx, r13
mov r8d, 0x10000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140030591
mov rcx, r13
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop r12
pop r13
ret

Function at 0x1400305a0
Capabilities:
Set environment variable

Disassembly:
push r13
push r12
sub rsp, 0x78
xor eax, eax
mov r8d, 0x28
lea r13, [rsp + 0x20]
mov r12, rdx
mov rdx, rcx
mov word [rsp + 0x20], ax
mov rcx, r13
call fcn.140056030
mov rdx, r12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x78
pop r12
pop r13
ret
Function at 0x140030670
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0x70
mov rbx, rdx
mov r14, r8
mov r15, rcx
call fcn.14004df80
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python310.dll_PyObject_GetAttrString]
mov rcx, rbx
mov r12, rax
call qword [sym.imp.python310.dll_PyUnicode_FromString]
mov r13, rax
test r14, r14
je 0x14003072a
mov rdx, r14
mov rcx, rbx
call fcn.1400305a0
mov rcx, r14
mov rdx, 0xffffffffffffffff
call sub.python310.dll_PyUnicode_FromWideChar
mov rdx, r13
mov rcx, r12
mov r14, rax
mov r8, rax
call qword [sym.imp.python310.dll_PyObject_SetItem]
test eax, eax
jne 0x14003076c
sub qword [r14], 1
jne 0x1400306f1
mov rcx, r14
call fcn.1400305e0
sub qword [r13], 1
jne 0x140030700
mov rcx, r13
call fcn.1400305e0
sub qword [r12], 1
jne 0x14003071c
mov rcx, r12
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
jmp fcn.1400305e0
add rsp, 0x70
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
lea r14, [rsp + 0x20]
mov r8d, 0x28
mov rdx, rbx
mov word [rsp + 0x20], 0
mov rcx, r14
call fcn.140056030
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.python310.dll_PyObject_DelItem]
test eax, eax
je 0x1400306f1
mov rcx, r15
call fcn.1400305f0
jmp 0x1400306f1
mov ecx, 1
call qword [sym.imp.python310.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python310.dll_Py_Exit]
nop
nop word cs:[rax + rax]
nop
Function at 0x1400b1030
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400ee271], 0
mov r12, rcx
mov r13, rdx
mov rdi, r8
je 0x1400b10b8
lea rdx, [0x1400d9ada]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400b11d0
mov rsi, qword [0x1400ee128]
jmp 0x1400b1075
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x1400b1070
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, r12
mov rdx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp fcn.14009ea50
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
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]
mov qword [0x1400ee128], rax
mov rdx, rax
mov r9d, dword [rax]
lea rax, [rax + 4]
mov qword [0x1400ee128], rax
mov eax, dword [rdx + 4]
lea rcx, [rdx + 8]
mov qword [0x1400ee128], rcx
test eax, eax
je 0x1400b11b8
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop word [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x1400b1120
not eax
cmp r9d, eax
jne 0x1400b1257
mov byte [0x1400ee271], 1
jmp 0x1400b104d
cmp byte [0x1400ee270], 0
jne 0x1400b1064
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400eeba8], rax
call rbx
mov qword [0x1400eeba0], rax
call rbx
mov qword [0x1400eeb98], rax
call rbx
mov qword [0x1400eeb90], rax
call rbx
mov qword [0x1400eeb88], rax
call rbx
mov qword [0x1400eeb80], rax
call rbx
mov qword [0x1400eeb78], rax
call rbx
mov byte [0x1400ee270], 1
mov qword [0x1400eeb70], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400ee120], rax
jmp 0x1400b1064
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]