joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f077
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14002a0c0]
jne 0x14000d98a
rol rcx, 0x10
test cx, 0xffff
jne 0x14000d986
repz ret
ror rcx, 0x10
jmp 0x14000efd0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14002bb20]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14002bc18]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000f055
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14002bb20]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000f077
mov rax, qword [rsp + 0x88]
mov qword [0x14002bc18], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14002bbb8], rax
mov rax, qword [0x14002bc18]
mov qword [0x14002ba90], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14002bba0], rax
mov dword [0x14002ba80], 0xc0000409
mov dword [0x14002ba84], 1
mov rax, qword [0x14002a0c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14002a0c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14002bb18], eax
mov ecx, 1
call fcn.140015350
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400215d0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14002bb18], 0
jne 0x14000f0fe
mov ecx, 1
call fcn.140015350
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret

Function at 0x14000f270
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14002c000]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140010890
test rax, rax
je 0x14000f2c4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x14000f359
mov ecx, 2
call fcn.140015350
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.14000ec40
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14000f345
test ebx, ebx
jne 0x14000f345
lea ecx, [rax + 2]
call fcn.140015350
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140012f40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x140012f7e
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x140012f60
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x140013165
mov ecx, 3
call fcn.140018730
cmp eax, 1
je 0x14001311c
mov ecx, 3
call fcn.140018730
test eax, eax
jne 0x140012fb5
cmp dword [0x14002a0bc], 1
je 0x14001311c
cmp edi, 0xfc
je 0x140013165
mov qword [rsp + 0x50], rbp
lea rbp, [0x14002c0e0]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140015620
test eax, eax
je 0x140012ff9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000f1d0
lea rdx, [0x14002c0f9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14002c1fd], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x140013049
lea r8, str._program_name_unknown_
lea rcx, [0x14002c0f9]
mov edx, 0x2fb
call fcn.140015620
test eax, eax
je 0x140013049
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000f1d0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14002c0f9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x140013098
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14002c3f4]
lea r9d, [rax + 3]
lea r8, [0x140021ce4]
sub rdx, rcx
call fcn.1400164c0
test eax, eax
je 0x140013098
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000f1d0
lea r8, [0x140021ce0]
mov edx, 0x314
mov rcx, rbp
call fcn.140016400
test eax, eax
je 0x1400130c4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000f1d0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.140016400
test eax, eax
je 0x1400130f4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.14000f1d0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.1400184d0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x140013165
cmp rax, 0xffffffffffffffff
je 0x140013165
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140014a50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14002c60c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x140014aac
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140014a8c
mov dword [0x14002c60c], 1
jmp 0x140014abf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140014aa6
mov dword [0x14002c60c], 2
jmp 0x140014b29
mov eax, dword [0x14002c60c]
cmp eax, 1
jne 0x140014b20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140014afa
cmp word [rdi], bp
mov rax, rdi
je 0x140014ad9
add rax, 2
cmp word [rax], bp
jne 0x140014ac7
add rax, 2
cmp word [rax], bp
jne 0x140014ac7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.140012980
test rax, rax
mov rbx, rax
jne 0x140014b01
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140014c1b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.14000f4d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x140014c1b
cmp eax, 2
je 0x140014b29
test eax, eax
jne 0x140014afa
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x140014afa
cmp byte [rax], bpl
mov rbx, rax
je 0x140014b78
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140014afa
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x140014b40
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.1400129f0
test rax, rax
mov r12, rax
jne 0x140014b9d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140014c1b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x140014c05
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140014c2e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x140014bb0
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.14000df70
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140014c16
Function at 0x140017d00
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14002a0c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140017d47
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000d970
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140018790
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000d970
add rsp, 0x38
ret
Function at 0x1400184d0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400107a0
xor ebx, ebx
cmp qword [0x14002c928], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1400185fc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14001870f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001870f
mov rcx, rax
call fcn.1400106d0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14002c928], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400106d0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14002c930], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400106d0
lea rcx, [rsp + 0x98]
mov qword [0x14002c938], rax
call fcn.140012be0
test eax, eax
je 0x1400185af
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14000f1d0
cmp dword [rsp + 0x98], 2
jne 0x1400185fc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400106d0
test rax, rax
mov qword [0x14002c948], rax
je 0x1400185fc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400106d0
mov qword [0x14002c940], rax
mov rcx, qword [0x14002c940]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1400186a8
cmp qword [0x14002c948], rbp
je 0x1400186a8
call fcn.140010890
mov rcx, qword [0x14002c948]
mov rsi, rax
call fcn.140010890
test rsi, rsi
mov r12, rax
je 0x1400186a8
test rax, rax
je 0x1400186a8
call rsi
test rax, rax
je 0x140018673
lea rcx, [rsp + 0x34]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140018673
test byte [rsp + 0x40], 1
jne 0x1400186a8
lea rcx, [rsp + 0x30]
call fcn.140012c30
test eax, eax
je 0x140018695
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14000f1d0
cmp dword [rsp + 0x30], 4
jb 0x1400186a2
bts edi, 0x15
jmp 0x1400186e6
bts edi, 0x12
jmp 0x1400186e6
mov rcx, qword [0x14002c930]
cmp rcx, rbp
je 0x1400186e6
call fcn.140010890
test rax, rax
je 0x1400186e6
call rax
test rax, rax
mov rbx, rax
je 0x1400186e6
mov rcx, qword [0x14002c938]
cmp rcx, rbp
je 0x1400186e6
call fcn.140010890
test rax, rax
je 0x1400186e6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14002c928]
call fcn.140010890
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14001870f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140018711
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x2fc4d8f90
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d9992
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4d9a2a
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4d9a0e
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 0x2fc4d9a02
cmp qword [rbp - 0x10], 0
je 0x2fc4d9a02
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 0x2fc4d99c8
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d9a2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9b30
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 0x2fc4d9b58
mov eax, 0
jmp 0x2fc4d9ba6
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 0x2fc4d9b81
mov eax, 0
jmp 0x2fc4d9ba6
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 0x2fc4d9ba1
mov eax, 0
jmp 0x2fc4d9ba6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d9bac
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 0x2fc4d9c2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9c21
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 0x2fc4d9c21
mov rax, qword [rbp - 8]
jmp 0x2fc4d9c3f
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 0x2fc4d9bf4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180683058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1806831df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180683089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18068306f
add dl, dl
jne 0x180683096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806830f6
xor eax, eax
add dl, dl
jne 0x1806830a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806831ad
add dl, dl
jne 0x1806830b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806830c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806830d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806830dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806830ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18068307e
mov eax, 1
add dl, dl
jne 0x180683106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180683113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806830fb
sub eax, ebx
mov ebx, 1
jne 0x18068314c
mov ecx, 1
add dl, dl
jne 0x18068312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18068313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180683123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18068307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180683168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180683175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18068315d
cmp eax, 0x7d00
jae 0x18068319b
cmp eax, 0x500
jb 0x180683196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18068307e
cmp eax, 0x7f
ja 0x18068319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18068307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806831d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18068307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1403cfb59
Capabilities:
Authenticate hmac

Disassembly:
neg rdx
movsxd r8, r8d
mov qword [rsp + rbp - 0x136], rbx
add dword [rsp + rbp*2 - 0x26c], ebp
adc r11, r8
mov r8d, dword [rsp + rcx - 0x5760bb7b]
movzx r10d, word [rdi + rbp - 0x144]
inc rax
not rbp
lea rdi, [rdi + rcx - 0x5760bb8d]
neg bp
sub byte [rsp + rcx - 0x5760bb71], ch
xor r10w, r9w
rol r10w, 1
push rbx
add r10w, 0xfd23
xchg byte [rsp + rcx - 0x5760bb6f], dl
neg r10w
ror r8b, 0xc1
dec r10w
xadd bp, cx
xor r9w, r10w
shr dword [rsp + rcx - 0x57600125], 0xe1
call fcn.1403f9e07
Function at 0x1401c9d20
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10088
call fcn.1401f7280
sub rsp, rax
mov rax, qword [0x14023b480]
xor rax, rsp
mov qword [rsp + 0x10070], rax
xor eax, eax
mov rdx, rcx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1401f1f70
mov r8d, 0x10000
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1401c9d9d
lea rcx, [rsp + 0x70]
call fcn.140202ad8
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1401f72e0
add rsp, 0x10088
ret
xor eax, eax
mov rcx, qword [rsp + 0x10070]
xor rcx, rsp
call fcn.1401f72e0
add rsp, 0x10088
ret

Function at 0x1401c9e50
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14023b480]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rcx, [0x140212f08]
call fcn.1401c9d20
xor edi, edi
mov qword [0x140249440], rax
lea rdx, [0x140212f08]
mov word [rsp + 0x20], di
lea rcx, [rsp + 0x20]
lea r8d, [rdi + 0x28]
call fcn.1401f1f70
lea rdx, [0x140212f10]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, str.PYTHONHOME
call fcn.1401c9d20
mov cl, 1
mov qword [0x140249448], rax
call fcn.1401f30a0
lea r8d, [rdi + 0x28]
mov word [rsp + 0x20], di
lea rdx, str.PYTHONHOME
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.1401f1f70
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov cl, 1
call fcn.1401f30a0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401f72e0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1401ca270
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14023b480]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rdx
mov rsi, rcx
call fcn.1401dd510
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python311.dll_PyObject_GetAttrString]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.python311.dll_PyUnicode_FromString]
mov rdx, rsi
lea rcx, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x20], ax
lea r8d, [rax + 0x28]
call fcn.1401f1f70
lea rcx, [rsp + 0x20]
test rbp, rbp
je 0x1401ca331
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call sub.python311.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python311.dll_PyObject_SetItem]
test eax, eax
je 0x1401ca31f
mov ecx, 1
call qword [sym.imp.python311.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python311.dll_Py_Exit]
int3
sub qword [rsi], 1
jne 0x1401ca34e
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1401ca34e
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python311.dll_PyObject_DelItem]
test eax, eax
je 0x1401ca34e
call fcn.1401c9940
sub qword [rdi], 1
jne 0x1401ca35e
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x1401ca36e
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401f72e0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401f2020
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x1401f20e4
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x1401f2040
not eax
ret
Function at 0x1401f7cb8
Capabilities:
Parse pe header

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

Function at 0x140202388
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140202184
Function at 0x140207b60
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 0x140207be7
mov rsi, rbx
cmp word [rax], bp
je 0x140207ba6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140207b90
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140207b8c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140203360
mov rdi, rax
test rax, rax
je 0x140207bd4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14020e540
mov rbp, rdi
xor ecx, ecx
call fcn.140203d14
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