joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007d900
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3b8
mov qword [rsp + 0x3a0], 0xfffffffffffffffe
mov rax, qword [0x1400a8018]
xor rax, rsp
mov qword [rsp + 0x3a8], rax
lea rcx, [rsp + 0x240]
call fcn.140002cf0
nop
mov dword [rsp + 0x248], 0
lea rdx, [rsp + 0x240]
lea rcx, [0x1400aea60]
call fcn.14007dff0
lea rcx, [rsp + 0x240]
call fcn.140002880
lea rdx, [rsp + 0x250]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x390], rax
cmp qword [rsp + 0x390], 0xffffffffffffffff
je 0x14007d9e3
mov eax, dword [rsp + 0x248]
add eax, 1
mov dword [rsp + 0x248], eax
lea rdx, [rsp + 0x250]
mov rcx, qword [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x14007d9c6
mov eax, dword [rsp + 0x248]
add eax, 1
mov dword [rsp + 0x248], eax
jmp 0x14007d999
mov rcx, qword [rsp + 0x390]
call qword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov rcx, qword [rsp + 0x3c0]
call fcn.140003780
mov eax, dword [rsp + 0x248]
mov dword [rsp + 0x398], eax
lea rcx, [rsp + 0x240]
call fcn.140002b30
mov eax, dword [rsp + 0x398]
mov rcx, qword [rsp + 0x3a8]
xor rcx, rsp
call fcn.14001bb40
add rsp, 0x3b8
ret

Function at 0x14007deb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x24], 0
mov rcx, qword [rsp + 0x70]
call fcn.14007dd60
mov rcx, qword [rsp + 0x80]
call fcn.14001c040
mov dword [rsp + 0x34], eax
lea rdx, [0x1400979dc]
mov rcx, qword [rsp + 0x70]
call fcn.14001c4fc
mov qword [rsp + 0x28], rax
lea rdx, [0x140097a3c]
mov rcx, qword [rsp + 0x78]
call fcn.14001c4fc
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x28]
call fcn.14001c990
test eax, eax
jne 0x14007df9e
mov r9, qword [rsp + 0x28]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14001cd1c
mov rcx, qword [rsp + 0x28]
call fcn.14001c990
test eax, eax
jne 0x14007df99
mov eax, dword [rsp + 0x24]
cdq
idiv dword [rsp + 0x34]
movsxd rcx, edx
mov rax, qword [rsp + 0x80]
movzx eax, byte [rax + rcx]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x20]
movsx ecx, byte [rsp + 0x30]
xor eax, ecx
mov byte [rsp + 0x20], al
mov r9, qword [rsp + 0x58]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.14001c6a4
mov eax, dword [rsp + 0x24]
add eax, 1
mov dword [rsp + 0x24], eax
jmp 0x14007df12
mov rcx, qword [rsp + 0x28]
call fcn.14001c34c
mov rcx, qword [rsp + 0x58]
call fcn.14001c34c
add rsp, 0x68
ret
Function at 0x14007e090
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x1400a8018]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rdx, [0x14009673e]
mov rcx, qword [rsp + 0x198]
call fcn.14007c840
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14007e0db
xor eax, eax
jmp 0x14007e1d7
mov rdx, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x20]
call fcn.140074cc0
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x14007e10f
mov rcx, qword [rsp + 0x20]
call fcn.140078e60
xor eax, eax
jmp 0x14007e1d7
lea r8, [rsp + 0x30]
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x20]
call fcn.14007be40
mov dword [rsp + 0x160], eax
cmp dword [rsp + 0x160], 0
je 0x14007e145
mov rcx, qword [rsp + 0x20]
call fcn.140078e60
xor eax, eax
jmp 0x14007e1d7
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x164], eax
mov dword [rsp + 0x168], 0
jmp 0x14007e16e
mov eax, dword [rsp + 0x168]
add eax, 1
mov dword [rsp + 0x168], eax
mov eax, dword [rsp + 0x164]
cmp dword [rsp + 0x168], eax
jge 0x14007e1ba
lea r8, [rsp + 0x30]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call fcn.14007be40
mov dword [rsp + 0x160], eax
lea r8, [rsp + 0x34]
mov edx, dword [rsp + 0x168]
mov rcx, qword [rsp + 0x20]
call fcn.14007c870
mov dword [rsp + 0x160], eax
jmp 0x14007e15d
mov rcx, qword [rsp + 0x20]
call fcn.140078e60
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14001bb40
add rsp, 0x188
ret
Function at 0x14007f4a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov r9, qword [rsp + 0x40]
mov r9, qword [r9 + 0x10]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call fcn.14001c6a4
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x14007f710
Capabilities:
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x1400a8018]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x70]
add rcx, 0x20
call fcn.140001500
mov r8, rax
mov edx, 0x2712
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
call fcn.140032b00
lea rdx, str.Mozilla_5.0__hp_tablet__Linux__hpwOS_3.0.0__U__en_US__AppleWebKit_534.6__KHTML__like_Gecko__wOSBrowser_233.70_Safari_534.6_TouchPad_1.0
lea rcx, [rsp + 0x28]
call fcn.140001380
lea rcx, [rsp + 0x28]
call fcn.140001500
mov r8, rax
mov edx, 0x2722
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
call fcn.140032b00
mov r8d, 5
mov edx, 0x44
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
call fcn.140032b00
mov r8d, 1
mov edx, 0x34
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
call fcn.140032b00
mov r8d, 1
mov edx, 0x63
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
call fcn.140032b00
xor r8d, r8d
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
call fcn.140032b00
lea r8, [0x14007f4f0]
mov edx, 0x4e2b
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
call fcn.140032b00
mov r8, qword [rsp + 0x70]
mov edx, 0x2711
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
call fcn.140032b00
xor r8d, r8d
mov edx, 0x40
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
call fcn.140032b00
xor r8d, r8d
mov edx, 0x51
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx + 8]
call fcn.140032b00
lea rcx, [rsp + 0x28]
call fcn.1400013e0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001bb40
add rsp, 0x68
ret
Function at 0x14004b630
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14004b63d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004b64d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14004b635
lea eax, [rcx + 1]
jmp 0x14004b65b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14004b66e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14004b654
sub eax, 3
jb 0x14004b68e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14004b6dd
sar eax, 1
movsxd rbp, eax
jb 0x14004b6c4
jmp 0x14004b69c
add ebx, ebx
jne 0x14004b69a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004b6c4
inc ecx
add ebx, ebx
jne 0x14004b6aa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14004b6c4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14004b6bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14004b6ac
add ecx, 2
jmp 0x14004b6c9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14004b5f2
jmp 0x14004b63d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2b000
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14004b729
cmp rsi, rcx
jae 0x14004b731
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14004b710
cmp al, 0x8f
ja 0x14004b710
cmp byte [rsi - 2], 0xf
je 0x14004b716
sub al, 0xe8
cmp al, 1
ja 0x14004b6fa
cmp rsi, rcx
jae 0x14004b731
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14004b700
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14004b731
lodsb al, byte [rsi]
jmp 0x14004b710
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x49000]
mov eax, dword [rdi]
or eax, eax
je 0x14004b78e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4c6c0]
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 0x14004b73e
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 0x14004b788
mov qword [rbx], rax
add rbx, 8
jmp 0x14004b75e
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 0x14004b7c8
cmp al, 0xef
ja 0x14004b7ba
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14004b79a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14004b7a9
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 + 0x237]
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 0x14004b81c
sub rsp, 0xffffffffffffff80
jmp 0x14000b820
Function at 0x140055f10
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140055f1d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140055f2d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140055f15
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140055f45
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140055f32
sub eax, 3
jb 0x140055f5f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140055f96
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140055f86
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140055f84
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140055f73
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140055ed2
jmp 0x140055f1d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x28800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140055fe2
cmp rsi, rcx
jae 0x140055fea
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140055fc9
cmp al, 0x8f
ja 0x140055fc9
cmp byte [rsi - 2], 0xf
je 0x140055fcf
sub al, 0xe8
cmp al, 1
ja 0x140055fb3
cmp rsi, rcx
jae 0x140055fea
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140055fb9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140055fea
lodsb al, byte [rsi]
jmp 0x140055fc9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x53000]
mov eax, dword [rdi]
or eax, eax
je 0x140056047
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x56600]
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 0x140055ff7
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 0x140056041
mov qword [rbx], rax
add rbx, 8
jmp 0x140056017
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 0x140056081
cmp al, 0xef
ja 0x140056073
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140056053
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140056062
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 + 0x22f]
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 0x1400560d5
sub rsp, 0xffffffffffffff80
jmp 0x14000a340
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400c0b60]
mov dword [rax], 1
mov rax, qword [0x1400c0b70]
mov dword [rax], 1
mov rax, qword [0x1400c0b80]
mov dword [rax], 1
mov rax, qword [0x1400c0b00]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
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 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14003b290
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14009edd0
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x14003b339
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x14003b2fe
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14003b2f0
test rax, rax
je 0x1400afcce
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x14003b2d8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14003b368
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x14003b380
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x14003b421
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x14003b3e6
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14003b3d8
test rax, rax
je 0x1400afcd4
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x14003b3c0
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400524c0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.14003b290
test rax, rax
je 0x140052600
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov rdi, r14
lea r12, [rsi + 0x28]
lea rbp, [rsp + 0x3e]
mov r13, rax
xor eax, eax
mov word [rsp + 0x40], ax
nop
mov rax, r12
mov rbx, rdi
sub rax, rsi
cmp word [rdi], 0
je 0x14005253e
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140052530
test rax, rax
je 0x1400afd86
mov rcx, rbx
add rsi, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0x3e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x3f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rsi]
test r15b, r15b
jne 0x140052520
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x1400d2c78]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1400c0cb0]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x140052658
mov r8, rbx
mov rcx, rsi
call fcn.14003dd30
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.14004f500
sub qword [rbx], 1
jne 0x1400525e9
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400d2548]
lea rsi, [0x1400d2548]
test bl, bl
je 0x140052620
mov rax, qword [0x1400d2550]
lea rsi, [0x1400d2550]
test rax, rax
jne 0x1400525e9
cmp byte [0x1400d2762], 0
jne 0x140052636
movzx ecx, bl
call fcn.14001bda0
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400d2560]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x140052685
add qword [rax], 1
jmp 0x1400525e9
mov rdx, qword [0x1400d2bf0]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x140052690
mov r8, rdi
mov rcx, rsi
call fcn.14003dd30
mov qword [0x1400d2c78], rax
mov rdx, rax
jmp 0x1400525b3
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400b94ce]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x1400d2bf0], rax
mov rdx, rax
test rax, rax
je 0x1400afd86
jmp 0x14005266b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call qword [sym.imp.python310.dll_PyErr_NoMemory]
call sub.msvcrt.dll_abort
nop
Function at 0x140094830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400d2531], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1400948b8
lea rdx, [0x1400bca72]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140094920
mov rbx, qword [0x1400d23e8]
jmp 0x140094875
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x140094870
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.140083a70
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400d23e8], rax
mov ebx, dword [rax]
mov qword [0x1400d23e8], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400d23e8], rdx
call fcn.140093960
cmp eax, ebx
jne 0x1400949a7
mov byte [0x1400d2531], 1
jmp 0x14009484c
cmp byte [0x1400d2530], 0
jne 0x140094863
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400d2e68], rax
call rbx
mov qword [0x1400d2e60], rax
call rbx
mov qword [0x1400d2e58], rax
call rbx
mov qword [0x1400d2e50], rax
call rbx
mov qword [0x1400d2e48], rax
call rbx
mov qword [0x1400d2e40], rax
call rbx
mov qword [0x1400d2e38], rax
call rbx
mov byte [0x1400d2530], 1
mov qword [0x1400d2e30], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400d23e0], rax
jmp 0x140094863
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14009dab0
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 fcn.1400af230
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400af230
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x14009e782
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400d3328]
test eax, eax
je 0x14009e81a
lea rax, [0x1400d3300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400d3330]
mov qword [rbp - 8], rax
jmp 0x14009e7fe
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 0x14009e7f2
cmp qword [rbp - 0x10], 0
je 0x14009e7f2
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 0x14009e7b8
lea rax, [0x1400d3300]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14009e81b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14009e920
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 0x14009e948
mov eax, 0
jmp 0x14009e996
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 0x14009e971
mov eax, 0
jmp 0x14009e996
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 0x14009e991
mov eax, 0
jmp 0x14009e996
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x14009e99c
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 0x14009ea1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14009ea11
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 0x14009ea11
mov rax, qword [rbp - 8]
jmp 0x14009ea2f
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 0x14009e9e4
mov eax, 0
add rsp, 0x20
pop rbp
ret