joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449a30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4add28
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x449a69
inc eax
mov dword [esi + 0x10], eax
jmp 0x449b7c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x449a7d
mov eax, 0xffffffc7
jmp 0x449b7e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x449a8e
cmp dword [esi + 8], eax
jne 0x449a7d
cmp dword [esi + 8], eax
jne 0x449aa7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x449aa7
mov eax, 0xffffffc7
jmp 0x449b7e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x449abb
push eax
mov ecx, ebx
call fcn.00449260
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00417260
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x449aec
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00417280
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004489d0
test eax, eax
mov dword [esp + 0x38], eax
je 0x449b1f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x2b9b5f8
call fcn.00417460
mov eax, dword [esp + 0x38]
jmp 0x449b7e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00449890
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x449b63
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004498b0
mov esi, eax
test esi, esi
jne 0x449b93
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00449890
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x449b35
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x2b9b5f8
call fcn.00417460
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x2b9b5f8
call fcn.00417460
mov eax, esi
jmp 0x449b7e

Function at 0x44e5a0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x44e600
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x44e600
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x44e600
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x44e600
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x44e640
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x45a030
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ae618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004a6aec
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00459990
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a6a1a
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004a32db
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004a32db
push 1
push 0
push 0
mov ecx, esi
call fcn.004a3283
push 1
push 0
push 1
mov ecx, esi
call fcn.004a3283
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a6b5e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x45a1b0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ae638
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a6aec
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00459990
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a6a1a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x45a274
cmp dword [esp + 0x40], 1
jne 0x45a272
cmp ecx, eax
jge 0x45a274
mov eax, ecx
cmp eax, 0xc8
jge 0x45a280
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0045a030
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a6b5e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x45aa80
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4ae6e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004a16fc
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a6d94
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a82f3
test eax, eax
je 0x45ab9c
mov ecx, dword [esp + 0x3c]
call fcn.004a6dc1
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x45ab60
push edi
mov ecx, esi
call fcn.004a4429
mov ecx, esi
call fcn.0045ad40
cmp dword [esp + 0x38], 1
jne 0x45ab95
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004a4564
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x45cda0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45cdd3
push esi
call fcn.0046b140
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45cdcc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45ce59
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45ce42
mov eax, dword [esi + 8]
test eax, eax
je 0x45cdf7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45ce3e
cmp eax, 2
je 0x45ce42
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45cdea
cmp eax, 3
je 0x45ce1d
cmp eax, 1
jne 0x45cdea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45cdea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45cdea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045ce80
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45ce68
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045ce80
add esp, 4
pop esi
ret

Function at 0x45d6f0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x45d711
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x45d711
mov eax, dword [eax + 0x44]
test eax, eax
je 0x45d711
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x47b180
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x2bd9f44]
xor edx, edx
cmp eax, edx
jne 0x47b1a6
xor eax, eax
mov byte [eax + 0x2bd9e44], al
inc eax
cmp eax, 0x100
jl 0x47b18e
mov dword [0x2bd9f44], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x2bd9e44
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x47b237
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x47b20a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x47b1d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x47b240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x47b293
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x47b27a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x481c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4aebce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00482550
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x2b9f1b4
call fcn.0049fe64
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x481cc3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049fe64
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x481cbc
push 0
mov ecx, eax
call fcn.00478db0
mov dword [esi + 0xc], eax
jmp 0x481cc5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x481cc5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4a24f1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a2529
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a057e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a0556
jmp 0x4a2535
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a3be3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a3c25
call fcn.004a96de
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a3c25
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a3c1c
xor eax, eax
jmp 0x4a3c2d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a3c33
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a9c0e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a9c3c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a9c5a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a9b74
jmp 0x4a9c5a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a9c5a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a9b74
test edi, edi
mov eax, edi
jne 0x4a9c44
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x4de6ec], 1
mov dword [0x4de6f0], 1
mov dword [0x4de6f4], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret
Function at 0x429130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0x1007c
push edi
push esi
push ebx
call fcn.004a04f8
xor edx, edx
xor ecx, ecx
sub esp, eax
mov eax, dword [esp + 0x10090]
mov word [esp + 0x70], dx
lea edi, [esp + 0x20]
mov word [esp + 0x20], cx
movzx eax, byte [eax]
test al, al
je 0x4291e7
xor ebp, ebp
lea edi, [esp + 0x20]
lea esi, [esi]
mov byte [esp + 0x1a], al
lea eax, [esp + 0x1a]
mov esi, 0x28
lea ebx, [edi + ebp*2]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
sub esi, ebp
mov dword [esp + 8], 2
mov dword [esp], eax
mov byte [esp + 0x1b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x4afac9
cmp word [edi + ebp*2], 0
movzx eax, word [esp + 0x1c]
je 0x4291c4
lea esi, [esi]
add ebx, 2
sub esi, 1
cmp word [ebx], 0
jne 0x4291b8
test esi, esi
je 0x4afac9
mov word [ebx], ax
xor eax, eax
add ebp, 1
mov word [ebx + 2], ax
mov eax, dword [esp + 0x10090]
movzx eax, byte [eax + ebp]
test al, al
jne 0x429170
lea ebx, [esp + 0x70]
mov dword [esp + 8], 0x10000
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [eax - 1]
sub esp, 0xc
xor eax, eax
cmp edx, 0xffff
ja 0x429218
mov dword [esp], ebx
call sub.msvcrt.dll__wcsdup
add esp, 0x1007c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x429230
Capabilities:
Set environment variable

Disassembly:
push ebp
xor edx, edx
push edi
push esi
push ebx
sub esp, 0x7c
mov eax, dword [esp + 0x90]
mov word [esp + 0x20], dx
lea edi, [esp + 0x20]
movzx eax, byte [eax]
test al, al
je 0x4292d7
xor ebp, ebp
lea edi, [esp + 0x20]
lea esi, [esi]
mov byte [esp + 0x1a], al
lea eax, [esp + 0x1a]
mov esi, 0x28
lea ebx, [edi + ebp*2]
mov dword [esp + 4], eax
lea eax, [esp + 0x1c]
sub esi, ebp
mov dword [esp + 8], 2
mov dword [esp], eax
mov byte [esp + 0x1b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x4aface
cmp word [edi + ebp*2], 0
movzx eax, word [esp + 0x1c]
je 0x4292b4
lea esi, [esi]
add ebx, 2
sub esi, 1
cmp word [ebx], 0
jne 0x4292a8
test esi, esi
je 0x4aface
mov word [ebx], ax
xor eax, eax
add ebp, 1
mov word [ebx + 2], ax
mov eax, dword [esp + 0x90]
movzx eax, byte [eax + ebp]
test al, al
jne 0x429260
mov eax, dword [esp + 0x94]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x447490
Capabilities:
Set environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [0x4ddad8]
test ebx, ebx
je 0x4474f0
mov eax, dword [0x4dd084]
mov esi, dword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
cmp ebx, eax
je 0x4474cf
mov eax, dword [0x4ddd04]
test eax, eax
je 0x4475b8
mov dword [esp + 4], eax
mov esi, dword [sym.imp.python312.dll_PyNumber_InPlaceAdd]
mov dword [esp], ebx
call esi
mov edx, dword [esp + 0xa0]
mov dword [esp], eax
mov dword [esp + 4], edx
call esi
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.NUITKA_ONEFILE_BINARY
call fcn.00429130
test eax, eax
je 0x447610
mov dword [esp], eax
mov ebp, 0x28
lea edi, [esp + 0x30]
lea esi, [esp + 0x2a]
mov dword [esp + 4], 0xffffffff
lea ebx, [esp + 0x2c]
call dword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov word [esp + 0x30], cx
mov dword [esp + 0x1c], eax
mov eax, 0x4e
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 8], 2
mov dword [esp + 4], esi
mov dword [esp], ebx
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x4afb4d
cmp word [edi], 0
movzx ecx, word [esp + 0x2c]
mov edx, ebp
mov eax, edi
je 0x447584
lea esi, [esi]
add eax, 2
sub edx, 1
cmp word [eax], 0
jne 0x447578
test edx, edx
je 0x4afb4d
xor edx, edx
mov word [eax], cx
add edi, 2
mov word [eax + 2], dx
mov eax, 1
lea edx, [ebp - 1]
sub eax, ebp
movzx eax, byte [eax + 0x4b9a06]
test al, al
je 0x4475d0
mov ebp, edx
jmp 0x447540
mov dword [esp], 0x4bc8ca
call dword [sym.imp.python312.dll_PyUnicode_FromString]
mov dword [0x4ddd04], eax
jmp 0x4474c0
lea eax, [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
call dword [sym.imp.python312.dll_PyThreadState_Get]
mov esi, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.00447340
mov ebx, eax
mov dword [0x4ddad8], ebx
jmp 0x4474a4
mov ebx, dword [0x4ddae4]
test ebx, ebx
jne 0x447600
cmp byte [0x4ddd02], 0
je 0x447653
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x4ddb00
call dword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov dword [0x4ddae4], eax
mov ebx, eax
test eax, eax
je 0x44765f
mov eax, dword [eax]
cmp eax, 0x3fffffff
je 0x447600
add eax, 1
mov dword [ebx], eax
jmp 0x447600
mov eax, 1
call fcn.00429df0
jmp 0x447623
call dword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x447e30
Capabilities:
Set environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [esp], str.NUITKA_ONEFILE_BINARY
mov ebx, dword [esp + 0xa0]
call fcn.00429130
test eax, eax
je 0x447f78
mov dword [esp], eax
mov ebp, 0x28
lea edi, [esp + 0x30]
lea esi, [esp + 0x2a]
mov dword [esp + 4], 0xffffffff
lea ebx, [esp + 0x2c]
call dword [sym.imp.python312.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov word [esp + 0x30], cx
mov dword [esp + 0x1c], eax
mov eax, 0x4e
lea esi, [esi]
nop
mov dword [esp + 8], 2
mov dword [esp + 4], esi
mov dword [esp], ebx
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], 0
call sub.msvcrt.dll_mbstowcs
cmp eax, 1
jne 0x4afb61
cmp word [edi], 0
movzx ecx, word [esp + 0x2c]
mov edx, ebp
mov eax, edi
je 0x447ed4
lea esi, [esi]
add eax, 2
sub edx, 1
cmp word [eax], 0
jne 0x447ec8
test edx, edx
je 0x4afb61
xor edx, edx
mov word [eax], cx
add edi, 2
mov word [eax + 2], dx
mov eax, 1
lea edx, [ebp - 1]
sub eax, ebp
movzx eax, byte [eax + 0x4b9a06]
test al, al
je 0x447f08
mov ebp, edx
jmp 0x447e90
lea eax, [esp + 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
call dword [sym.imp.python312.dll_PyThreadState_Get]
mov ebx, dword [0x4dd140]
mov esi, eax
mov eax, dword [0x4de3d0]
test eax, eax
je 0x447ff0
mov edx, ebx
call fcn.0041ac00
mov dword [esp], esi
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.0043c580
mov edx, dword [ebx]
cmp edx, 0x3fffffff
je 0x447f69
sub edx, 1
mov dword [ebx], edx
je 0x447fd4
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
test bl, bl
je 0x447fc8
mov eax, dword [0x4ddae4]
mov esi, 0x4ddae4
test eax, eax
jne 0x447f69
cmp byte [0x4ddd02], 0
je 0x448010
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x4ddb00
call dword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov dword [esi], eax
test eax, eax
je 0x44801d
mov edx, dword [eax]
cmp edx, 0x3fffffff
je 0x447f69
add edx, 1
mov dword [eax], edx
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4ddae0]
mov esi, 0x4ddae0
jmp 0x447f86
mov dword [esp + 0x1c], eax
mov dword [esp], ebx
call dword [sym.imp.python312.dll__Py_Dealloc]
mov eax, dword [esp + 0x1c]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4de38c]
mov edi, dword [0x4dd138]
test eax, eax
je 0x448028
mov edx, edi
call fcn.0041ac00
mov dword [0x4de3d0], eax
jmp 0x447f3b
movzx eax, bl
call fcn.00429df0
jmp 0x447f93
call dword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
mov dword [esp], 0x4b76c3
call dword [sym.imp.python312.dll_PyImport_ImportModule]
mov dword [0x4de38c], eax
test eax, eax
je 0x4afb61
jmp 0x447fff