joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140157ec0
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rbx, edx
mov rdi, rcx
mov byte [rcx], 0
mov edx, ebx
call qword [sym.imp.WS2_32.dll_gethostname]
mov byte [rbx + rdi - 1], 0
test eax, eax
jne 0x140157efa
lea edx, [rax + 0x2e]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x140157ef8
mov byte [rax], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14015ec50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
mov r14, rdx
add rax, 0x18
add rcx, rax
call qword [sub.msvcrt.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x14015ec92
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rsp + 0x48], rsi
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x14015ecd5
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
mov rdx, qword [rdi + 8]
add r14, qword [rdi + 0x10]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x14015ed31
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
mov r8d, 1
xor al, 0x36
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
mov r8d, 1
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
dec rbp
jne 0x14015ecf0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14015ed73
nop dword [rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1401aa671]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401aa672]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14015ed40
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rax, rdi
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x14015f644
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x140794a20], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x140794a30]
jne 0x14015f691
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x140794a58], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x140794a20], 1
mov ecx, dword [0x140794a58]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x14015f766
mov rcx, qword [0x140790968]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x14015f791
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x140794a28]
test rax, rax
je 0x14015f6e1
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x140794a28], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14015f7ac]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x140794a58]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x140790968]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x14015f791
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140001460
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r8
mov rdi, rdx
test rdx, rdx
je 0x1400015ad
mov qword [rsp + 0x70], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rbp
lea rdx, str.SOFTWAREAMDDVR
mov ebp, 1
mov dword [rsp + 0x40], 4
mov r9d, ebp
mov dword [rsp + 0x38], 4
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001516
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000150b
cmp dword [rsp + 0x38], 4
movzx ebx, bl
cmove ebx, ebp
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x14000159e
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 4
mov r9d, ebp
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 4
lea rdx, str.SOFTWAREAMDDVR
mov qword [rsp + 0x30], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000159e
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001593
cmp dword [rsp + 0x38], 4
movzx ebx, bl
cmove ebx, ebp
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x50]
movzx eax, bl
mov rbx, qword [rsp + 0x70]
jmp 0x1400015af
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004740
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x140002920
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
cmp qword [rcx + 0x28], 0
je 0x140002a5a
mov ecx, 0x10
call fcn.140004760
mov qword [rax], rbx
lea rcx, [0x140003090]
mov qword [rax + 8], rcx
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140004500]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140002a46
cmp dword [rsp + 0x38], 0
jne 0x1400029ad
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x1400029d0
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx + 0x28]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140002a38
cmp eax, 0xffffffff
je 0x140002a38
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx + 0x28]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140002a04
cmp dword [rsp + 0x38], 0
je 0x140002a5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x38], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140004740
add rsp, 0x90
pop rbx
ret
Function at 0x140002a80
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r15, qword [rsp + 0xb0]
mov rbp, r9
mov esi, r8d
mov r14, rdx
mov rdi, rcx
cmp r8d, 0x200
ja 0x140002bc7
je case.0x140002bf2.513
cmp r8d, 0x84
ja 0x140002b86
je 0x140002b6a
mov eax, r8d
sub eax, 2
je 0x140002b5d
sub eax, 6
je 0x140002b03
sub eax, 7
je 0x140002af8
cmp eax, 1
jne case.default.0x140002bf2
xor eax, eax
jmp 0x140002cca
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp case.default.0x140002bf2
mov rcx, qword [0x140009790]
test rcx, rcx
je 0x140002b31
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80d5
call qword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
jne case.default.0x140002bf2
xor eax, eax
mov qword [0x140009790], rax
xor edx, edx
lea rcx, [0x140001330]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [0x140009790]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80d5
call qword [sym.imp.USER32.dll_PostMessageW]
jmp case.default.0x140002bf2
xor ecx, ecx
call qword [sym.imp.USER32.dll_PostQuitMessage]
jmp case.default.0x140002bf2
cmp byte [rdi + 0x20e], 0
mov rax, 0xffffffffffffffff
mov ecx, 1
cmovne rax, rcx
jmp 0x140002cca
mov eax, esi
sub eax, 0x100
je 0x140002ba2
sub eax, 1
je 0x140002ba2
sub eax, 3
je 0x140002ba2
cmp eax, 1
jne case.default.0x140002bf2
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], esi
lea rcx, [0x140001400]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], r15
call qword [sym.imp.USER32.dll_EnumWindows]
jmp case.default.0x140002bf2
cmp esi, 0x800a
ja 0x140002c46
je 0x140002c16
lea eax, [r8 - 0x201]
cmp eax, 0xc
ja case.default.0x140002bf2
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x2ce4]
add rcx, rdx
jmp rcx
cmp byte [rdi + 0x20e], 0
je case.default.0x140002bf2
mov rdx, r14
mov qword [rsp + 0x20], r15
mov rcx, rdi
call fcn.140003730
jmp case.default.0x140002bf2
test rbp, rbp
je 0x140002c35
cmp rbp, 5
jne 0x140002c3d
mov ecx, 1
xchg byte [rdi + 0x20d], cl
mov rcx, qword [rdi + 0x200]
jmp 0x140002cb3
xor eax, eax
xchg byte [rcx + 0x20d], al
mov rcx, qword [rdi + 0x200]
jmp 0x140002cb3
mov eax, esi
sub eax, 0x800b
je 0x140002cac
sub eax, 1
je 0x140002ca1
cmp eax, 1
jne case.default.0x140002bf2
add rcx, 0x1b0
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140002c73
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov ecx, 1
mov qword [rdi + 0x150], rbp
xchg byte [rdi + 0x158], cl
mov rcx, qword [rdi + 0x200]
call qword [sym.imp.KERNEL32.dll_SetEvent]
lea rcx, [rdi + 0x1b0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
jmp case.default.0x140002bf2
mov rcx, r14
call qword [sym.imp.USER32.dll_DestroyWindow]
jmp case.default.0x140002bf2
mov rcx, qword [rcx + 0x200]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov r9, r15
mov r8, rbp
mov edx, esi
mov rcx, r14
call qword [sym.imp.USER32.dll_DefWindowProcW]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140004740
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140003730
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x48
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa0]
mov edi, r8d
movsx ebp, ax
mov rbx, rdx
shr rax, 0x10
mov r15, rcx
shr r9, 0x10
movsx r14d, ax
lea eax, [r8 - 0x200]
movsx esi, r9w
cmp eax, 3
jbe 0x140003789
cmp r8d, 0x20a
jne 0x14000391a
lea rdx, str.39f71aab_32c1_41d3_8960_ade145ca1acb
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetPropW]
test rax, rax
je 0x1400038ac
cmp edi, 0x201
jne 0x1400037b5
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetCapture]
jmp 0x1400037c3
cmp edi, 0x202
jne 0x1400037c3
call qword [sym.imp.USER32.dll_ReleaseCapture]
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x24], r14d
test esi, esi
je 0x1400037df
mov rcx, qword [r15 + 0x28]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rcx, qword [r15 + 0x28]
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov rcx, qword [r15 + 0x28]
lea rdx, [rsp + 0x28]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
call qword [sym.imp.USER32.dll_GetWindowRect]
movzx eax, word [rsp + 0x24]
xor ebx, ebx
sub ax, word [rsp + 0x2c]
movsx ecx, ax
movzx eax, word [rsp + 0x20]
sub ax, word [rsp + 0x28]
shl ecx, 0x10
movsx rax, ax
movsxd rbp, ecx
or rbp, rax
cmp edi, 0x201
jne 0x14000383a
mov ebx, 1
jmp 0x14000385c
cmp edi, 0x202
jne 0x140003849
mov ebx, 2
jmp 0x14000385c
cmp edi, 0x20a
jne 0x14000385c
shl esi, 0x10
movsxd rbx, esi
bts rbx, 0xa
mov rcx, qword [0x1400097a0]
test rcx, rcx
je 0x14000388c
mov r9, rbx
mov r8, rbp
mov edx, 0x800f
call qword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
jne 0x14000391a
mov qword [0x1400097a0], 0
xor edx, edx
lea rcx, [0x140001370]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [0x1400097a0]
mov r8, rbp
mov edx, 0x800f
jmp 0x140003911
lea rdx, [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [rsp + 0x28]
add ecx, ebp
movsxd rbx, ecx
mov ecx, dword [rsp + 0x2c]
add ecx, r14d
movsxd rsi, ecx
mov rcx, qword [0x140009790]
test rcx, rcx
je 0x1400038f6
mov r9, rbx
mov r8, rsi
mov edx, edi
call qword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
jne 0x14000391a
mov qword [0x140009790], 0
xor edx, edx
lea rcx, [0x140001330]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [0x140009790]
mov r8, rsi
mov edx, edi
mov r9, rbx
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140004740
add rsp, 0x48
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1402298f0
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.14022dc20
sub rsp, rax
mov rax, qword [0x140272400]
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 0x1402299b2
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.14023caa4
cmp rax, 1
jne 0x140229a0e
mov rcx, rdi
mov rax, rbx
cmp word [rbx], bp
je 0x14022998f
add rax, 2
dec rcx
cmp word [rax], bp
jne 0x140229983
cmp rcx, 1
jb 0x140229a0e
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 0x140229950
mov r8d, 0x10000
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1402299e3
lea rcx, [rsp + 0x80]
call fcn.14023f520
jmp 0x1402299e5
xor eax, eax
mov rcx, qword [rsp + 0x10080]
xor rcx, rsp
call fcn.14022dc80
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.1402313e0
int3
Function at 0x14022a870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
cmp byte [0x140281f26], 0
mov rbp, r8
mov rsi, rdx
mov r14, rcx
jne 0x14022a8f6
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 [0x140281d30], rax
xor ecx, ecx
mov ebx, dword [rax]
lea rdx, [rax + 4]
mov qword [0x140281d30], rdx
mov r8d, dword [rdx]
add rdx, 4
mov qword [0x140281d30], rdx
call fcn.1402287f0
cmp eax, ebx
jne 0x14022aa9e
mov byte [0x140281f26], 1
lea rdx, [0x14024d5e8]
mov rcx, rbp
call fcn.14023c550
test eax, eax
je 0x14022a9b8
cmp byte [0x140281f25], 1
je 0x14022a9b8
mov qword [rsp + 0x30], rdi
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x140282c50], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x140282c58], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x140282c60], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x140282c68], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x140282c70], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x140282c78], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x140282c80], rax
call qword [sym.imp.python38.dll_PyDict_New]
mov qword [0x140282c88], rax
mov ebx, 0xfffffffb
lea rdi, [0x140284020]
mov ecx, ebx
call qword [sym.imp.python38.dll_PyLong_FromLong]
inc ebx
mov qword [rdi], rax
lea rdi, [rdi + 8]
cmp ebx, 0x101
jl 0x14022a993
mov rdi, qword [rsp + 0x30]
mov byte [0x140281f25], 1
mov r8, qword [0x140281d30]
mov rax, rbp
mov rdx, r8
sub rdx, rbp
nop dword [rax + rax]
movzx ecx, byte [rax]
xor r9d, r9d
cmp cl, byte [rax + rdx]
jne 0x14022a9e7
inc rax
test cl, cl
jne 0x14022a9d0
mov ecx, r9d
jmp 0x14022a9ec
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
cmp byte [r8 + rax + 1], r9b
lea rax, [rax + 1]
jne 0x14022a9f3
lea rdx, [r8 + rax]
mov eax, dword [r8 + rax + 1]
add rdx, 5
test ecx, ecx
je 0x14022aa58
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 0x14022aa35
inc rax
test cl, cl
jne 0x14022aa20
mov ecx, r9d
jmp 0x14022aa3a
sbb ecx, ecx
or ecx, 1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r9b
jne 0x14022aa41
add rdx, rax
mov eax, dword [rdx + 1]
add rdx, 5
test ecx, ecx
jne 0x14022aa10
movzx ecx, word [rdx]
lea rax, [rdx + 2]
cmp r9w, cx
jae 0x14022aa88
mov ebx, ecx
nop word [rax + rax]
mov r8, rax
mov rdx, rsi
mov rcx, r14
call fcn.140227110
add rsi, 8
sub rbx, 1
jne 0x14022aa70
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
lea rcx, str.Error__corrupted_constants_object
call fcn.140239264
call fcn.1402313e0
int3
Function at 0x14022d830
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140272400]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x14022d8e1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14023caa4
cmp rax, 1
jne 0x14022d917
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14022d8bd
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14022d8b0
cmp rcx, 1
jb 0x14022d917
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14022d880
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14022dc80
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1402313e0
int3
Function at 0x14022d980
Capabilities:
Set environment variable

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0xb0
mov rax, qword [0x140272400]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140282368]
mov rbx, r8
mov rdi, rdx
mov rbp, rcx
test rax, rax
jne 0x14022d9cf
lea rcx, [0x14024d30c]
call qword [sym.imp.python38.dll_PyImport_ImportModule]
mov qword [0x140282368], rax
test rax, rax
je 0x14022db8b
mov qword [rsp + 0xa8], rsi
lea rdx, str.environ
mov qword [rsp + 0xa0], r12
mov rcx, rax
mov qword [rsp + 0x98], r14
mov qword [rsp + 0x90], r15
call qword [sym.imp.python38.dll_PyObject_GetAttrString]
mov rcx, rdi
mov r14, rax
call qword [sym.imp.python38.dll_PyUnicode_FromString]
mov r15, rax
test rbx, rbx
je 0x14022da74
mov rdx, rbx
mov rcx, rdi
call fcn.14022d830
mov rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov rdx, r15
mov rcx, r14
mov r8, rax
mov rbx, rax
call qword [sym.imp.python38.dll_PyObject_SetItem]
test eax, eax
je 0x14022da5b
mov ecx, 1
call qword [sym.imp.python38.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python38.dll_Py_Exit]
int3
sub qword [rbx], 1
jne 0x14022db2a
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x14022db2a
movzx eax, byte [rdi]
lea rbx, [rsp + 0x30]
xor r12d, r12d
mov esi, 0x28
mov word [rsp + 0x30], r12w
test al, al
je 0x14022db05
nop
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r12b
lea rcx, [rsp + 0x28]
call fcn.14023caa4
cmp rax, 1
jne 0x14022db85
mov rcx, rsi
mov rax, rbx
cmp word [rbx], r12w
je 0x14022dadd
nop dword [rax]
nop dword [rax + rax]
add rax, 2
dec rcx
cmp word [rax], r12w
jne 0x14022dad0
cmp rcx, 1
jb 0x14022db85
movzx ecx, word [rsp + 0x28]
inc rdi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r12w
dec rsi
movzx eax, byte [rdi]
test al, al
jne 0x14022da90
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.python38.dll_PyObject_DelItem]
test eax, eax
je 0x14022db2a
mov rcx, rbp
call fcn.14000f1e0
sub qword [r15], 1
jne 0x14022db3a
mov rax, qword [r15 + 8]
mov rcx, r15
call qword [rax + 0x30]
sub qword [r14], 1
jne 0x14022db4a
mov rax, qword [r14 + 8]
mov rcx, r14
call qword [rax + 0x30]
mov r14, qword [rsp + 0x98]
mov r12, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xa8]
mov r15, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14022dc80
add rsp, 0xb0
pop rdi
pop rbp
pop rbx
ret
call fcn.1402313e0
int3
call fcn.1402313e0
int3

Function at 0x14022e688
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14022e6d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14022e6d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14022e6d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14022e6d2
cmp dword [rcx + 0x84], 0xe
jbe 0x14022e6d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14022e6d4
xor al, al
add rsp, 0x28
ret