joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040150
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1410
call fcn.140041b80
sub rsp, rax
mov rax, qword [0x1400a2040]
xor rax, rsp
mov qword [rsp + 0x1400], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rdi, [0x1400a2808]
mov qword [rsp + 0x28], rdi
movups xmm0, xmmword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
movups xmmword [rsp + 0x13c0], xmm0
movups xmm1, xmmword [0x14009b4e8]
movups xmmword [rsp + 0x13d0], xmm1
movups xmm0, xmmword [0x14009b4f8]
movups xmmword [rsp + 0x13e0], xmm0
movsd xmm0, qword [0x14009b508]
movsd qword [rsp + 0x13f0], xmm0
mov eax, dword [0x14009b510]
mov dword [rsp + 0x13f8], eax
movzx eax, word [0x14009b514]
mov word [rsp + 0x13fc], ax
movzx eax, byte [0x14009b516]
mov byte [rsp + 0x13fe], al
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
mov edx, 1
nop dword [rax]
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x34], eax
inc rdx
cmp rdx, 0x270
jb 0x140040220
mov dword [rsp + 0x30], 0x270
xorps xmm0, xmm0
movups xmmword [0x1400a2808], xmm0
mov qword [0x1400a2818], rbx
mov qword [0x1400a2820], 0xf
mov byte [0x1400a2808], bl
mov dword [rsp + 0x20], 1
mov ebx, 0xc
lea rcx, [rsp + 0x30]
call fcn.140040940
mov ecx, eax
imul rax, rcx, 0x3e
cmp eax, 0x3e
jae 0x1400402a5
cmp eax, 4
jae 0x1400402a5
lea rcx, [rsp + 0x30]
call fcn.140040940
mov ecx, eax
imul rax, rcx, 0x3e
cmp eax, 4
jb 0x140040290
shr rax, 0x20
add eax, 0x80000000
movsxd rcx, eax
xor rcx, 0xffffffff80000000
movzx r9d, byte [rsp + rcx + 0x13c0]
mov rcx, qword [0x1400a2818]
mov rdx, qword [0x1400a2820]
cmp rcx, rdx
jae 0x1400402f9
lea rax, [rcx + 1]
mov qword [0x1400a2818], rax
mov rax, rdi
cmp rdx, 0xf
cmova rax, qword [0x1400a2808]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140040301
mov rcx, rdi
call fcn.1400407d0
sub rbx, 1
jne 0x140040276
mov rax, rdi
mov rcx, qword [rsp + 0x1400]
xor rcx, rsp
call fcn.140040ae0
mov rbx, qword [rsp + 0x1420]
add rsp, 0x1410
pop rdi
ret
Function at 0x140040940
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1400409a1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140040960
mov ecx, dword [r9]
jmp 0x140040a8b
cmp ecx, 0x4e0
jb 0x140040a8b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400409c0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140040a10
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140041738
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140041782
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140041782
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140041782
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140041782
cmp dword [rcx + 0x84], 0xe
jbe 0x140041782
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140041784
xor al, al
add rsp, 0x28
ret
Function at 0x1400011e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x40]
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 5
xor esi, esi
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
test eax, eax
js 0x14000136a
mov qword [rsp + 0x178], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x180], rbp
mov rbx, 0xffffffffffffffff
mov qword [rdi + 0x18], rsi
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], sil
jne 0x140001260
movabs rbp, 0x7fffffffffffffff
cmp rbx, rbp
ja 0x14000137a
cmp rbx, 0xf
ja 0x1400012a7
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x40]
mov qword [rdi + 0x18], 0xf
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], sil
jmp 0x140001336
mov rax, rbx
or rax, 0xf
cmp rax, rbp
jbe 0x1400012dc
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140001f70
test rax, rax
je 0x140001308
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001317
mov ecx, 0x16
mov rbp, rax
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
test rcx, rcx
je 0x140001317
cmp rcx, 0x1000
jb 0x14000130f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001380
jmp 0x1400012c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001f70
mov rsi, rax
mov r8, rbx
mov qword [rdi], rsi
lea rdx, [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rcx, rsi
mov qword [rdi + 0x18], rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov rbx, qword [rsp + 0x178]
mov rax, rdi
mov rbp, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140001f50
mov rsi, qword [rsp + 0x188]
add rsp, 0x160
pop rdi
ret
mov qword [rdi + 0x18], 0xf
mov rax, rdi
mov byte [rdi], sil
jmp 0x140001349
call fcn.1400011a0
int3
call fcn.140001100
int3
Function at 0x1400028d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000291a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000291a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000291a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000291a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000291a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000291c
xor al, al
add rsp, 0x28
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
push rsi
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
push rax
mov r8d, dword [rax + 0x20]
add r8, rdx
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140001bd0
Capabilities:
Enumerate processes
Execute command

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2c0
xor edi, edi
mov qword [rsp + 0x60], rdi
lea ecx, [rdi + 0x20]
call fcn.140001df0
movups xmm0, xmmword [str.javaw.exe]
mov rcx, rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], 9
xor edx, edx
mov qword [rsp + 0x70], 0xf
movups xmmword [rax], xmm0
movzx eax, word [0x1400033c0]
mov word [rcx + 0x10], ax
mov word [rcx + 0x12], di
lea ecx, [rdi + 2]
mov dword [rsp + 0x80], 0x238
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rcx, rax
lea rdx, [rsp + 0x80]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x140001c9d
lea rdx, [rsp + 0x80]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x140001c9d
cmp qword [rsp + 0x70], 7
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xac]
cmova rdx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x140001d06
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140001c64
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xffffffff
mov edi, eax
mov rdx, qword [rsp + 0x70]
cmp rdx, 7
jbe 0x140001ddd
mov rcx, qword [rsp + 0x58]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001dd8
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001dd8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x88]
test r8d, r8d
je 0x140001ca6
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x140001d49
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea eax, [rbx - 2]
jmp 0x140001cb8
lea rdx, [rsp + 0x54]
mov dword [rsp + 0x54], edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140001db8
mov dword [rsp + 0x50], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x54], eax
jne 0x140001db8
mov rcx, rbx
call section..text
mov rcx, rbx
test al, al
jne 0x140001dad
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xfffffff8
jmp 0x140001cb8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001cba
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xfffffffd
jmp 0x140001cb8
call fcn.140001e2c
mov rbx, qword [rsp + 0x2d0]
mov eax, edi
add rsp, 0x2c0
pop rdi
ret
Function at 0x1400011c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea r8, str.PYTHONSCRIPT
mov edx, 1
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
cmp byte [0x1400063e0], 0
mov rdi, rax
jne 0x1400011f3
mov rcx, rbx
call fcn.1400010f0
test rdi, rdi
jne 0x140001219
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_locate_script_resource:
mov ecx, eax
call section..text
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14000124b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_load_script_resource:
mov ecx, eax
call section..text
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov qword [0x1400064e8], rax
mov qword [0x140006610], rax
test rax, rax
jne 0x14000128b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_lock_script_resource:
mov ecx, eax
call section..text
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rax + 0xc]
lea r8, [rdx + 0x10]
mov dword [0x140006604], eax
mov qword [0x1400064e8], r8
cmp dword [rdx], 0x78563412
je 0x1400012c2
lea rdx, str.Bug:_Invalid_script_resource
xor ecx, ecx
call section..text
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r8
repne scasb al, byte [rdi]
not rcx
lea rax, [r8 + rcx]
mov qword [0x1400064e8], rax
cmp byte [r8], 0
je 0x140001316
mov qword [rsp + 0x20], r8
lea r9, [0x1400063e0]
lea rcx, [0x140005da0]
lea r8, [0x1400050c8]
mov edx, 0x304
call qword [sym.imp.MSVCR90.dll__snprintf]
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
lea rdx, [0x140005da0]
mov r8d, 0x304
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x140001350
Capabilities:
Get file size
Read file via mapping

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x40
xor r12d, r12d
mov rbx, rdx
xor r9d, r9d
mov qword [rsp + 0x30], r12
lea r8d, [r12 + 1]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000139b
xor eax, eax
add rsp, 0x40
pop r12
pop rdi
pop rbx
ret
lea rdx, [rsp + 0x70]
mov rcx, rax
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor r9d, r9d
lea r8d, [r9 + 2]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], r12
mov esi, eax
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rbp, 0xffffffffffffffff
jne 0x1400013e7
xor eax, eax
jmp 0x140001415
xor r9d, r9d
xor r8d, r8d
mov rcx, rbp
lea edx, [r9 + 4]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x140001412
mov dword [rbx], esi
mov rax, rdi
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rbx
ret

Function at 0x140001430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x340
cmp byte [0x1400063e0], 0
mov rbx, rcx
jne 0x14000144a
call fcn.1400010f0
lea r8, [0x1400050d0]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x1400014af
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rcx, [0x1400050e0]
mov rdx, rax
call fcn.140001fc0
test eax, eax
jne 0x140001579
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_load_python_dll
mov ecx, eax
call section..text
xor eax, eax
add rsp, 0x340
pop rbx
ret
lea rdx, [rsp + 0x358]
lea rcx, [0x140005da0]
call fcn.140001350
mov rbx, rax
test rax, rax
je 0x140001514
mov qword [rsp + 0x350], rdi
xor edi, edi
lea rdx, [0x140005110]
lea r8d, [rdi + 0xb]
mov rcx, rax
call qword [sym.imp.MSVCR90.dll_strncmp]
test eax, eax
jne 0x1400014ff
lea rdx, [rbx + 0xf]
lea rcx, [0x140005120]
call fcn.140001fc0
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test edi, edi
mov rdi, qword [rsp + 0x350]
jne 0x140001579
lea rax, str.PYTHON27.DLL
lea r9, [0x1400063e0]
lea r8, [0x140005140]
lea rcx, [rsp + 0x30]
mov edx, 0x304
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR90.dll__snprintf]
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.140001fc0
test eax, eax
jne 0x140001579
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.LoadLibrary_pythondll__failed
mov ecx, eax
call section..text
lea rdx, [rsp + 0x30]
xor ecx, ecx
call section..text
xor eax, eax
add rsp, 0x340
pop rbx
ret
mov eax, 1
add rsp, 0x340
pop rbx
ret
Function at 0x1400015d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x340
lea r8, str.ZLIB.PYD
mov edx, 1
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14000164c
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001735
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
lea rcx, [0x140005168]
mov rdx, rax
call fcn.140002a50
test rax, rax
je 0x140001735
lea rdx, [0x140005178]
mov rcx, rax
call fcn.140002660
test rax, rax
je 0x140001735
call rax
add rsp, 0x340
pop rbx
ret
lea rax, str.zlib.pyd
lea r9, [0x1400063e0]
lea r8, str._s_s
lea rcx, [rsp + 0x30]
mov edx, 0x304
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR90.dll__snprintf]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14000169b
lea rdx, str.initzlib
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001641
lea rcx, [0x140005da0]
xor edx, edx
mov qword [rsp + 0x350], rdi
call fcn.140001350
mov rbx, rax
mov rdi, rax
test rax, rax
je 0x14000172d
lea rdx, str._pythondll_
mov r8d, 0xb
mov rcx, rax
call qword [sym.imp.MSVCR90.dll_strncmp]
test eax, eax
jne 0x1400016df
movsxd rcx, dword [rbx + 0xb]
lea rdi, [rbx + rcx + 0xf]
lea rdx, str._zlib.pyd_
mov r8d, 0xa
mov rcx, rdi
call qword [sym.imp.MSVCR90.dll_strncmp]
test eax, eax
jne 0x140001724
lea rdx, [rdi + 0xe]
lea rcx, [0x140005168]
call fcn.140002a50
test rax, rax
je 0x140001724
lea rdx, [0x140005178]
mov rcx, rax
call fcn.140002660
test rax, rax
je 0x140001724
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rdi, qword [rsp + 0x350]
add rsp, 0x340
pop rbx
ret
Function at 0x140001a50
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.1400011c0
test eax, eax
jne 0x140001a79
mov eax, 0xff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
call fcn.140001430
test eax, eax
je 0x140001a69
mov rax, qword [0x140006610]
cmp dword [rax + 8], 0
je 0x140001ac7
call qword [sym.imp.MSVCR90.dll___iob_func]
xor edx, edx
mov rcx, rax
call qword [sym.imp.MSVCR90.dll_setbuf]
call qword [sym.imp.MSVCR90.dll___iob_func]
xor edx, edx
lea rcx, [rax + 0x30]
call qword [sym.imp.MSVCR90.dll_setbuf]
call qword [sym.imp.MSVCR90.dll___iob_func]
xor edx, edx
lea rcx, [rax + 0x60]
call qword [sym.imp.MSVCR90.dll_setbuf]
lea rcx, [0x140005230]
call qword [sym.imp.MSVCR90.dll_getenv]
test rax, rax
je 0x140001afa
lea rcx, str.PY2EXE_VERBOSE
call qword [sym.imp.MSVCR90.dll_getenv]
mov rcx, rax
call qword [sym.imp.MSVCR90.dll_atoi]
mov rcx, qword [0x140005a28]
mov dword [rcx], eax
jmp 0x140001b07
mov rax, qword [0x140005a28]
mov dword [rax], 0
mov rax, qword [0x140005a58]
mov dword [rax], 1
mov rax, qword [0x140005a38]
mov dword [rax], 1
mov rax, qword [0x140006610]
mov ecx, dword [rax + 4]
mov rax, qword [0x140005a48]
mov dword [rax], ecx
lea rcx, [0x1400060c0]
call qword [0x140005778]
call fcn.140001750
call qword [0x140005858]
test eax, eax
jne 0x140001b61
call fcn.1400017f0
test eax, eax
jne 0x140001bbd
call qword [0x140005728]
jmp 0x140001b6a
call fcn.140001900
test eax, eax
jne 0x140001bbd
test rbx, rbx
jne 0x140001b8a
lea ecx, [rbx + 1]
call qword [0x140005a18]
lea rcx, [0x140005250]
mov rdx, rax
call qword [0x140005958]
jmp 0x140001bb3
mov rcx, rbx
call qword [0x140005978]
mov rbx, rax
test rax, rax
je 0x140001bb3
lea rcx, str.frozen
mov rdx, rax
call qword [0x140005958]
mov rcx, rbx
call fcn.140001e40
mov rcx, rdi
call fcn.1400015d0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rcx
xor ecx, ecx
jmp 0x140001a50
Function at 0x140001bd0
Capabilities:
Compiled with py2exe
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.1400011c0
test eax, eax
jne 0x140001a79
mov eax, 0xff
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
call fcn.140001430
test eax, eax
je 0x140001a69
mov rax, qword [0x140006610]
cmp dword [rax + 8], 0
je 0x140001ac7
call qword [sym.imp.MSVCR90.dll___iob_func]
xor edx, edx
mov rcx, rax
call qword [sym.imp.MSVCR90.dll_setbuf]
call qword [sym.imp.MSVCR90.dll___iob_func]
xor edx, edx
lea rcx, [rax + 0x30]
call qword [sym.imp.MSVCR90.dll_setbuf]
call qword [sym.imp.MSVCR90.dll___iob_func]
xor edx, edx
lea rcx, [rax + 0x60]
call qword [sym.imp.MSVCR90.dll_setbuf]
lea rcx, [0x140005230]
call qword [sym.imp.MSVCR90.dll_getenv]
test rax, rax
je 0x140001afa
lea rcx, str.PY2EXE_VERBOSE
call qword [sym.imp.MSVCR90.dll_getenv]
mov rcx, rax
call qword [sym.imp.MSVCR90.dll_atoi]
mov rcx, qword [0x140005a28]
mov dword [rcx], eax
jmp 0x140001b07
mov rax, qword [0x140005a28]
mov dword [rax], 0
mov rax, qword [0x140005a58]
mov dword [rax], 1
mov rax, qword [0x140005a38]
mov dword [rax], 1
mov rax, qword [0x140006610]
mov ecx, dword [rax + 4]
mov rax, qword [0x140005a48]
mov dword [rax], ecx
lea rcx, [0x1400060c0]
call qword [0x140005778]
call fcn.140001750
call qword [0x140005858]
test eax, eax
jne 0x140001b61
call fcn.1400017f0
test eax, eax
jne 0x140001bbd
call qword [0x140005728]
jmp 0x140001b6a
call fcn.140001900
test eax, eax
jne 0x140001bbd
test rbx, rbx
jne 0x140001b8a
lea ecx, [rbx + 1]
call qword [0x140005a18]
lea rcx, [0x140005250]
mov rdx, rax
call qword [0x140005958]
jmp 0x140001bb3
mov rcx, rbx
call qword [0x140005978]
mov rbx, rax
test rax, rax
je 0x140001bb3
lea rcx, str.frozen
mov rdx, rax
call qword [0x140005958]
mov rcx, rbx
call fcn.140001e40
mov rcx, rdi
call fcn.1400015d0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rdx, rcx
xor ecx, ecx
jmp 0x140001a50

Function at 0x140001d80
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x20
call qword [0x1400059a8]
mov ecx, 1
call qword [0x140005a78]
mov rbx, rax
test rax, rax
je 0x140001ddd
call qword [0x140005758]
mov rcx, rax
call qword [0x140005978]
test rax, rax
je 0x140001dd5
mov r8, rax
xor edx, edx
mov rcx, rbx
call qword [0x140005a88]
test eax, eax
jne 0x140001dd5
lea rcx, str.path
mov rdx, rbx
call qword [0x140005958]
mov rcx, rbx
call fcn.140001e40
call fcn.140001c40
lea rcx, str.PYTHONINSPECT
mov ebx, eax
call qword [sym.imp.MSVCR90.dll_getenv]
test rax, rax
je 0x140001e26
call qword [sym.imp.MSVCR90.dll___iob_func]
lea rdx, [0x140005270]
mov rcx, rax
call qword [0x140005988]
test eax, eax
je 0x140001e26
call qword [sym.imp.MSVCR90.dll___iob_func]
lea rdx, str._stdin_
mov rcx, rax
call qword [0x140005998]
call qword [0x140005748]
mov eax, ebx
add rsp, 0x20
pop rbx
ret