joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006e3a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x140108708]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x140046e11.1
mov r13, rax
test rax, rax
jne 0x14006e41e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140035340
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14004aa50
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.14009f830]
jmp 0x14006e5d8
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14006e491
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140035340
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14004aa50
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x14006e5c2
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14006e4da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140035340
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14004aa50
mov ebx, 0x4d
jmp 0x14006e5b6
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x14006e50f
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.14004aa50
mov ebx, 0x4d
jmp 0x14006e5ae
lea rcx, [rdi + 1]
call qword [str.0S_n_]
mov rbp, rax
test rax, rax
jne 0x14006e529
lea ebx, [rax + 0x1b]
jmp 0x14006e5ae
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x14006e588
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006e5fa
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x14006e57f
mov edi, esi
jmp 0x14006e581
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x14006e540
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.14006e120
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.14009f830]
mov rcx, r13
call fcn.14009f830
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140077880
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140035340
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.14004aa50
mov ebx, 0x4d
jmp 0x14006e5a6
Function at 0x140073370
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov r8d, setsockopt
lea rdx, str.WWW_Authenticate:
mov rcx, r9
mov rbx, r9
call fcn.140050520
test eax, eax
je 0x1400733ba
mov ebp, dword [rsi + 0x150]
cmp ebp, 0x191
je 0x1400733e1
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rbx
call fcn.140050520
test eax, eax
je 0x140073427
mov ebp, dword [rsi + 0x150]
cmp ebp, 0x197
jne 0x140073427
mov rcx, rbx
call fcn.1400561c0
mov rbx, rax
test rax, rax
jne 0x1400733f9
lea eax, [rbx + 0x1b]
jmp 0x1400735ea
cmp ebp, 0x197
mov r8, rbx
mov rcx, rsi
sete dl
call fcn.140057ea0
mov rcx, rbx
mov edi, eax
call qword [fcn.14009f830]
test edi, edi
je 0x1400735e8
mov eax, edi
jmp 0x1400735ea
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rbx
call fcn.140050520
test eax, eax
je 0x140073482
mov r8d, dword [rsi + 0x150]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x140073467
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rsi
call fcn.14004ab40
jmp 0x1400735e8
xor edx, edx
lea r9, [r14 + 0x2a8]
lea rcx, [rbx + 0xf]
lea r8d, [rdx + 0xa]
call fcn.14005b880
jmp 0x1400735e8
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, ntohs
lea rdx, str.Connection:
mov rcx, rbx
call fcn.1400560f0
test al, al
jne 0x1400735e0
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.140050520
test eax, eax
je 0x140073540
mov r8d, dword [rsi + 0x150]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400734ef
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rsi
call fcn.14004ab40
jmp 0x1400735e8
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.1400560f0
test al, al
je 0x1400735e8
lea rdx, str.CONNECT_responded_chunked
mov rcx, rsi
call fcn.14004ab40
mov rcx, rsi
mov byte [r14 + 0x2b4], 1
call fcn.140069ae0
jmp 0x1400735e8
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, setsockopt
lea rdx, str.Proxy_Connection:
mov rcx, rbx
call fcn.1400560f0
test al, al
jne 0x1400735e0
mov r8d, 7
lea rdx, str.HTTP_1.
mov rcx, rbx
call fcn.14009f1f0
test eax, eax
jne 0x1400735e8
movzx eax, byte [rbx + 7]
sub al, 0x30
cmp al, 1
ja 0x1400735e8
cmp byte [rbx + 8], 0x20
jne 0x1400735e8
movsx ecx, byte [rbx + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400735e8
movsx edx, byte [rbx + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x1400735e8
movsx r8d, byte [rbx + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x1400735e8
movzx eax, byte [rbx + 0xc]
sub al, 0x30
cmp al, 9
jbe 0x1400735e8
lea ecx, [rcx + rcx*4]
lea ecx, [rdx + rcx*2]
lea ecx, [rcx + rcx*4]
lea ecx, [rcx - 0xa68]
lea ecx, [r8 + rcx*2]
mov dword [rsi + 0x150], ecx
mov dword [rsi + 0x12cc], ecx
jmp 0x1400735e8
mov byte [r14 + 0x2b5], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140074cb0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.14004c870
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [str.0S_n_]
mov rbx, rax
test rax, rax
je 0x140074e56
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x140074d40
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x140074da2
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x140074d60
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x140074de3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1400d3bb9]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400d3bba]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140074db0
mov rcx, qword [rsp + 0x70]
call fcn.14004c870
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x140074e12
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.14009f830]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret

Function at 0x140079f48
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140079f5b
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14007a5c4
lea rdx, [0x140105f00]
lea rcx, [rsp + 0x20]
call fcn.140099738
int3

Function at 0x14008658c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x14010bd78]
xor edx, edx
jmp fcn.140079f48
Function at 0x140086fac
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x14010bd78]
jmp fcn.140079f48

Function at 0x14009abfc
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14009a9d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14009a9d0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009a9d0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009a9d0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009a9d0
cmp dword [rcx + 0x84], 0xe
jbe 0x14009a9d0
cmp dword [rcx + 0xf8], esi
je 0x14009a9d0
mov ecx, r14d
call fcn.14009ab18
mov ecx, 2
call fcn.1400aadc8
nop
cmp byte [0x14010c048], 0
jne 0x14009aa9a
mov r15d, 1
mov eax, r15d
xchg dword [0x14010c038], eax
test ebx, ebx
jne 0x14009aa43
mov rdi, qword [0x140108708]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14010c040]
cmp rcx, rax
je 0x14009aa3a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400017d0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14010c3b8]
jmp 0x14009aa4f
cmp ebx, r15d
jne 0x14009aa55
lea rcx, [0x14010c3d0]
call fcn.1400b0608
nop
test ebx, ebx
jne 0x14009aa6c
lea rdx, [0x1400c78c0]
lea rcx, [0x1400c7898]
call fcn.1400b095c
lea rdx, [0x1400c78d0]
lea rcx, [0x1400c78c8]
call fcn.1400b095c
movzx eax, byte [0x14010c048]
test esi, esi
cmove eax, r15d
mov byte [0x14010c048], al
jmp 0x14009aa9a
mov ecx, 2
call fcn.1400aae28
test esi, esi
jne 0x14009aab1
mov ecx, r14d
call fcn.14009aacc
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14009a960

Function at 0x1400b489c
Capabilities:
Get geographical location

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, 0x20
mov edi, r9d
mov rsi, r8
mov ebp, edx
lea r9, reloc.WS2_32.dll_htonl
mov r14, rcx
lea r8, [0x1400e00f0]
lea rdx, str.GetLocaleInfoEx
mov ecx, ntohs
call fcn.1400b42dc
mov rbx, rax
test rax, rax
je 0x1400b48ff
mov rcx, rax
call qword [fcn.1400017d0]
mov r9d, edi
mov r8, rsi
mov edx, ebp
mov rcx, r14
call rbx
jmp 0x1400b4919
xor edx, edx
mov rcx, r14
call fcn.1400b4d18
mov ecx, eax
mov r9d, edi
mov r8, rsi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1400b5a1c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400b5a3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009f57c
or eax, 0xffffffff
jmp 0x1400b5a3e
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400b77ac
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1400b764c
call fcn.14009f5f0
mov dword [rax], socket
call fcn.14009eedc
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400b7634
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1400b7634
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1400b767e
lock or dword [rax + 0x14], 0x10
jmp 0x1400b7634
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1400b769b
mov rcx, qword [rbp + 0x10]
call fcn.1400b7868
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400b3a50
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1400b24f8
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1400b76f2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1400b7634
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1400b775e
mov rcx, qword [rbp + 0x10]
call fcn.1400b3a50
cmp eax, 0xffffffff
je 0x1400b7745
mov rcx, qword [rbp + 0x10]
call fcn.1400b3a50
cmp eax, 0xfffffffe
je 0x1400b7745
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400b3a50
movsxd rdi, eax
lea rsi, [0x14010c5f0]
mov rcx, rbx
sar rdi, 6
call fcn.1400b3a50
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1400b774c
lea rax, [0x140108b70]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400b775e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1400b7794
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1400b7790
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1400b7790
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1400b7637
jmp 0x1400b7604
Function at 0x1400978d0
Capabilities:
Terminate process

Disassembly:
cmp esi, edi
fdivr dword [rdi]
ret
cld
pop r11
jmp 0x1400978dd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400978ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400978d5
lea eax, [rcx + 1]
jmp 0x1400978fb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14009790e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400978f4
sub eax, 3
jb 0x14009792e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14009797d
sar eax, 1
movsxd rbp, eax
jb 0x140097964
jmp 0x14009793c
add ebx, ebx
jne 0x14009793a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140097964
inc ecx
add ebx, ebx
jne 0x14009794a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140097964
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14009795d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14009794c
add ecx, 2
jmp 0x140097969
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140097892
jmp 0x1400978dd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x6e800
mov dl, 0x18
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400979cd
cmp rsi, rcx
jae 0x1400979d5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400979b4
cmp al, 0x8f
ja 0x1400979b4
cmp byte [rsi - 2], 0xf
je 0x1400979ba
sub al, 0xe8
cmp al, 1
ja 0x14009799e
cmp rsi, rcx
jae 0x1400979d5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400979a4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400979d5
lodsb al, byte [rsi]
jmp 0x1400979b4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x93000]
mov eax, dword [rdi]
or eax, eax
je 0x140097a3e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x971e4]
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 0x1400979e2
jns 0x140097a17
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140097a21
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 0x140097a38
mov qword [rbx], rax
add rbx, 8
jmp 0x140097a02
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 0x140097a78
cmp al, 0xef
ja 0x140097a6a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140097a4a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140097a59
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 + 0x267]
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 0x140097acc
sub rsp, 0xffffffffffffff80
jmp 0x140068e78
Function at 0x1400227e0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x10090
call fcn.140027060
sub rsp, rax
mov rax, qword [0x140065180]
xor rax, rsp
mov qword [rsp + 0x10080], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor ebp, ebp
mov rsi, rcx
mov word [rsp + 0x80], bp
mov edi, 0x28
mov word [rsp + 0x30], bp
test al, al
je 0x1400228a2
nop dword [rax]
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], bpl
lea rcx, [rsp + 0x24]
call fcn.140035fc4
cmp rax, 1
jne 0x1400228fe
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14002287f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140022873
cmp rcx, 1
jb 0x1400228fe
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], bp
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x140022840
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1400228d3
lea rcx, [rsp + 0x80]
call fcn.140038b74
jmp 0x1400228d5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.140026d90
lea r11, [rsp + 0x10090]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.14002a520
int3
Function at 0x1400237b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp byte [0x140066e3e], 0
mov rbp, r8
mov rsi, rdx
mov r14, rcx
jne 0x140023840
mov edx, 3
xor ecx, ecx
mov r8d, 0xa
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [0x140066c20], rax
mov ebx, dword [rax]
lea rcx, [rax + 4]
mov qword [0x140066c20], rcx
lea rdi, [rcx + 4]
mov r8d, dword [rcx]
mov rdx, rdi
xor ecx, ecx
mov qword [0x140066c20], rdi
call fcn.140021670
cmp eax, ebx
jne 0x1400239e3
mov byte [0x140066e3e], 1
jmp 0x140023847
mov rdi, qword [0x140066c20]
lea rdx, [0x140047310]
mov rcx, rbp
call fcn.140035a70
test eax, eax
je 0x140023901
cmp byte [0x140066e3d], 1
je 0x140023901
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140067b60], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140067b68], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140067b70], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140067b78], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140067b80], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140067b88], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140067b90], rax
call qword [sym.imp.python310.dll_PyDict_New]
mov qword [0x140067b98], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rdi, qword [0x140066c20]
mov byte [0x140066e3d], 1
mov rcx, qword [rax + 0x10]
add rcx, 0xda0
mov qword [0x140068f50], rcx
mov rdx, rdi
mov rax, rbp
sub rdx, rbp
nop word [rax + rax]
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x140023927
inc rax
test cl, cl
jne 0x140023910
mov ecx, r9d
jmp 0x14002392c
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [rdi + rax + 1], r9b
lea rax, [rax + 1]
jne 0x140023933
lea rdx, [rdi + rax]
mov eax, dword [rdi + rax + 1]
add rdx, 5
test ecx, ecx
je 0x140023998
nop
add rdx, rax
mov rax, rbp
mov r8, rdx
sub r8, rbp
nop dword [rax]
movzx ecx, byte [rax]
cmp cl, byte [rax + r8]
jne 0x140023975
inc rax
test cl, cl
jne 0x140023960
mov ecx, r9d
jmp 0x14002397a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x140023981
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x140023950
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x1400239c8
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rsi
mov rcx, r14
call fcn.14001feb0
add rsi, 8
sub rbx, 1
jne 0x1400239b0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.140032784
call fcn.14002a520
int3