joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a817
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push 0x89c
mov eax, 0x1000cea5
call fcn.1000b995
mov eax, dword [ebp + 8]
push 0x44
pop esi
xor ebx, ebx
push esi
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x8a8]
push ebx
push eax
mov dword [ebp - 0x850], ecx
mov byte [ebp - 0x849], bl
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x10
mov word [ebp - 0x878], ax
lea eax, [ebp - 0x864]
push ebx
push eax
mov dword [ebp - 0x8a8], esi
mov dword [ebp - 0x87c], 1
call sub.MSVCR100.dll_memset
add esp, 0x18
push 7
pop edi
xor eax, eax
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
push ebx
mov esi, 0x105
push esi
lea ecx, [ebp - 0x848]
mov dword [ebp - 4], ebx
call fcn.10005d25
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x848]
jae 0x1000a8bb
lea eax, [ebp - 0x848]
push eax
push dword [ebp - 0x838]
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
cmp eax, ebx
je 0x1000aa62
cmp eax, dword [ebp - 0x838]
ja 0x1000aa62
xor eax, eax
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov word [ebp - 0x82c], ax
push ebx
push esi
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 1
call fcn.10005d25
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x1000a917
lea eax, [ebp - 0x82c]
push dword [ebp - 0x81c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
cmp eax, ebx
je 0x1000aa51
cmp eax, dword [ebp - 0x81c]
ja 0x1000aa51
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x1000a94d
lea eax, [ebp - 0x82c]
mov esi, dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
push eax
call esi
test eax, eax
je 0x1000aa51
cmp dword [ebp - 0x818], 8
mov eax, dword [ebp - 0x82c]
jae 0x1000a973
lea eax, [ebp - 0x82c]
lea ecx, [ebp - 0x864]
push ecx
lea ecx, [ebp - 0x8a8]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x854]
push ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
cmp dword [ebp - 0x834], 8
mov edi, eax
mov eax, dword [ebp - 0x848]
jae 0x1000a9ab
lea eax, [ebp - 0x848]
push eax
call esi
cmp edi, ebx
je 0x1000a9df
push 0x186a0
push dword [ebp - 0x864]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
test eax, eax
jne 0x1000aa17
mov eax, dword [ebp - 0x864]
mov ecx, dword [ebp - 0x850]
mov dword [ecx + 0x24], eax
mov byte [ebp - 0x849], 1
jmp 0x1000aa17
call dword [sym.imp.kernel32.dll_GetLastError]
push 0x800
mov esi, eax
lea eax, [ebp - 0x810]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 0x400
lea eax, [ebp - 0x810]
push eax
push ebx
push esi
push ebx
push 0x1000
call dword [sym.imp.kernel32.dll_FormatMessageW]
mov eax, dword [ebp - 0x85c]
mov ecx, dword [ebp - 0x850]
push ebx
mov dword [ecx + 0x28], eax
push 1
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], bl
call fcn.10005d25
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.10005d25
mov al, byte [ebp - 0x849]
jmp 0x1000aa76
push ebx
push 1
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], bl
call fcn.10005d25
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.10005d25
xor al, al
call fcn.1000ba18
ret 4
Function at 0x1000aa7e
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x258
mov eax, 0x1000cef0
call fcn.1000b995
mov edi, ecx
xor esi, esi
mov byte [ebp - 0x251], 0
cmp dword [edi + 0x20], esi
jne 0x1000acb5
mov eax, dword [edi]
xor ebx, ebx
inc ebx
sub eax, esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x260], ebx
je 0x1000aacd
dec eax
jne 0x1000acb5
lea eax, [ebp - 0x25c]
push eax
push ebx
push esi
push str.softwareMicrosoftWindowsCurrentVersionApp_PathsAcrobat.exe
jmp 0x1000aadb
lea eax, [ebp - 0x25c]
push eax
push ebx
push esi
push str.softwareMicrosoftWindowsCurrentVersionApp_PathsAcroRd32.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 0x25c], esi
je 0x1000acb5
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x260]
push eax
push esi
push 0x1000f51c
push dword [ebp - 0x25c]
mov dword [ebp - 0x264], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x1000aca9
cmp dword [ebp - 0x260], ebx
je 0x1000ab40
cmp dword [ebp - 0x260], 2
jne 0x1000aca9
push 0x1c
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x1000ab65
lea ecx, [ebp - 0x218]
push ecx
mov ecx, eax
call fcn.10005d25
jmp 0x1000ab67
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x20], eax
cmp byte [0x10015902], 0
je 0x1000aca2
mov edx, dword [eax + 0x14]
push 8
pop esi
cmp edx, esi
jb 0x1000ab8f
mov ecx, dword [eax]
mov dword [ebp - 0x258], ecx
jmp 0x1000ab95
mov dword [ebp - 0x258], eax
cmp edx, esi
jb 0x1000ab9d
mov ecx, dword [eax]
jmp 0x1000ab9f
mov ecx, eax
mov ebx, dword [eax + 0x10]
lea ecx, [ecx + ebx*2]
cmp edx, esi
jb 0x1000abab
mov eax, dword [eax]
push dword [sym.imp.MSVCR100.dll_towlower]
push dword [ebp - 0x258]
push ecx
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.10005d25
add esp, 0x14
push str.acrobat.exe
lea ecx, [ebp - 0x234]
call fcn.10005d25
push str.acrodbg.exe
lea ecx, [ebp - 0x250]
mov dword [ebp - 4], 1
call fcn.10005d25
mov eax, dword [ebp - 0x234]
mov byte [ebp - 4], 2
cmp dword [ebp - 0x220], esi
jae 0x1000ac07
lea eax, [ebp - 0x234]
mov esi, dword [ebp - 0x224]
mov edi, dword [edi + 0x20]
push esi
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.10005d25
mov ebx, eax
test ebx, ebx
je 0x1000ac2e
mov dword [ebp - 0x258], esi
mov esi, str.acrord32.exe
jmp 0x1000ac64
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x1000ac43
lea eax, [ebp - 0x250]
push dword [ebp - 0x240]
mov ecx, edi
push 0xffffffffffffffff
push eax
call fcn.10005d25
mov ebx, eax
test ebx, ebx
je 0x1000ac7c
mov dword [ebp - 0x258], esi
mov esi, str.acrd32_d.exe
push esi
call dword [sym.imp.MSVCR100.dll_wcslen]
pop ecx
push eax
push esi
push dword [ebp - 0x258]
mov ecx, edi
push ebx
call fcn.10005d25
push 0
push 1
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 1
call fcn.10005d25
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x234]
call fcn.10005d25
mov byte [ebp - 0x251], 1
push dword [ebp - 0x25c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x251]
call fcn.1000ba18
ret
Function at 0x1000b904
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10015820]
jne 0x1000b90e
repz ret
jmp fcn.1000c082
Function at 0x61c13b61
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x61c13b8e
cmp dword [ebx + 0x18], 0
je 0x61c13b86
mov ecx, eax
mov edx, sym._vdbePmaReaderBgIncrInit
mov eax, dword [ebx]
pop ebx
pop ebx
leave
jmp sym._vdbeSorterCreateThread.clone.133
pop ecx
pop ebx
leave
jmp sym._vdbePmaReaderIncrMergeInit
xor eax, eax
pop edx
pop ebx
leave
ret

Function at 0x61c20164
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp + 0x10]
mov eax, dword [esi + 4]
cmp dword [eax + 4], 1
sbb eax, eax
not eax
mov dword [ebp - 0x20], eax
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec eax
imul eax, eax, 0x14
add eax, dword [edx + 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx]
movzx eax, word [eax + 8]
and eax, 0x1f
cmp byte [eax + 0x61c82740], 5
je 0x61c20200
xor edi, edi
mov dword [ebp - 0x1c], 1
jmp 0x61c201e3
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebx + eax*4]
movzx eax, word [edx + 8]
and eax, 0x1f
cmp byte [eax + 0x61c82740], 5
je 0x61c20200
mov eax, dword [ebx + edi*4]
mov ecx, dword [ebp - 0x24]
call sym._sqlite3MemCompare
xor eax, dword [ebp - 0x20]
js 0x61c201e0
mov edi, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x1c], eax
jl 0x61c201b7
mov eax, dword [ebx + edi*4]
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], esi
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
jmp sym.sqlite3.dll_sqlite3_result_value
add esp, 0x1c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x61c61627
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [edx + 0x40], ch
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.61c60713
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.61c60745
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.61c606fa
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.61c60735
jbe 0x61c61783
lodsd eax, dword [esi]
int 0x68
add al, 1
add byte [eax], al
lea eax, [ebp - 0x12c]
push eax
call dword [ebp - 0x3d4]
mov dword [ebp - 0x28], eax
call fcn.61c60735
xchg ecx, eax
xchg esi, eax
xor ecx, edx
and byte [ebp - 0x20], 0
and byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0x1d
and byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0xa5
mov byte [ebp - 0x1b], 0x87
mov byte [ebp - 0x1a], 0x96
mov byte [ebp - 0x19], 0xb6
mov byte [ebp - 0x18], 0x87
mov byte [ebp - 0x17], 0x8f
mov byte [ebp - 0x16], 0x92
mov byte [ebp - 0x15], 0xb2
mov byte [ebp - 0x14], 0x83
mov byte [ebp - 0x13], 0x96
mov byte [ebp - 0x12], 0x8a
mov byte [ebp - 0x11], 0xa3
mov byte [ebp - 0x10], 0xe2
lea eax, [ebp - 0x20]
push eax
call fcn.61c60745
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.61c606fa
add esp, 0xc
mov dword [ebp - 0x370], eax
lea eax, [ebp - 0x654]
push eax
push 0x104
Function at 0x61c65733
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, eax
xor eax, eax
cmp byte [ebx + 0xe5], 2
jne 0x61c657c1
mov eax, dword [ebx + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.SELECT_1_FROM__Q.sqlite_master_WHERE_tbl_name_q_stat
call sym.sqlite3.dll_sqlite3_mprintf
mov esi, eax
mov eax, 7
test esi, esi
je 0x61c657c1
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
mov eax, dword [ebx + 0xc]
mov dword [esp], 0
mov edx, esi
call sym._sqlite3_prepare_v2.clone.198
test eax, eax
jne 0x61c657b3
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_step
mov edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym.sqlite3.dll_sqlite3_finalize
test eax, eax
jne 0x61c657b3
cmp edi, 0x64
sete byte [ebx + 0xe5]
mov dword [esp], esi
mov dword [ebp - 0x2c], eax
call sym.sqlite3.dll_sqlite3_free
mov eax, dword [ebp - 0x2c]
add esp, 0x3c
pop ebx
pop esi
pop edi
leave
ret

Function at 0x61c657c9
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], 0
leave
jmp sym._fts3SetHasStat
Function at 0x61c6918a
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp + 0x14], 0
mov esi, dword [ebp + 0x1c]
mov dword [ebp + 0x10], esi
mov esi, dword [ebp + 0x18]
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], ebx
pop ebx
pop esi
leave
jmp sym._rtreeInit

Function at 0x61c691b9
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp + 0x14], 1
mov esi, dword [ebp + 0x1c]
mov dword [ebp + 0x10], esi
mov esi, dword [ebp + 0x18]
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], ebx
pop ebx
pop esi
leave
jmp sym._rtreeInit

Function at 0x61c739fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
lea esi, [ebp + 0xc]
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
mov dword [esp], 0x61c82a00
call sym._fwrite
mov dword [esp + 8], esi
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._vfprintf
call sym._abort

Function at 0x61c73a48
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov esi, edx
test ecx, ecx
jne 0x61c73a64
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], 0x1c
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x3c], ecx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
mov ecx, dword [ebp - 0x3c]
je 0x61c73b14
mov eax, dword [ebp - 0x24]
cmp eax, 0x40
je 0x61c73b08
cmp eax, 4
je 0x61c73b08
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
cmp eax, 0x40
mov edx, dword [ebp - 0x40]
je 0x61c73a59
cmp eax, 4
je 0x61c73a59
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call dbg.__report_error
Function at 0x4c9920
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xaa000]
push edi
or ebp, 0xffffffff
jmp 0x4c9942
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c9949
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c9938
mov eax, 1
add ebx, ebx
jne 0x4c995b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c996c
jne 0x4c998b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c998b
dec eax
add ebx, ebx
jne 0x4c9978
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c9950
add ebx, ebx
jne 0x4c9987
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c99dd
xor ecx, ecx
sub eax, 3
jb 0x4c99a3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c9a12
sar eax, 1
mov ebp, eax
jmp 0x4c99ae
add ebx, ebx
jne 0x4c99ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c997c
inc ecx
add ebx, ebx
jne 0x4c99bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c997c
add ebx, ebx
jne 0x4c99c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c99be
jne 0x4c99da
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c99be
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c99fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c99ee
jmp 0x4c993e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c99fc
add edi, ecx
jmp 0x4c993e
pop esi
mov edi, esi
mov ecx, 0x204
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c9a1a
cmp byte [edi], 5
jne 0x4c9a1a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4c9a1f
lea edi, [esi + 0xc7000]
mov eax, dword [edi]
or eax, eax
je 0x4c9a97
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xca1b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xca1f4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c9a4c
mov ecx, edi
jns 0x4c9a7b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xca1f8]
or eax, eax
je 0x4c9a91
mov dword [ebx], eax
add ebx, 4
jmp 0x4c9a69
call dword [esi + 0xca208]
mov ebp, dword [esi + 0xca1fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4c9acb
sub esp, 0xffffff80
jmp 0x401ea0
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x4c342c], 1
mov dword [0x4c3430], 1
mov dword [0x4c3434], 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 0x421020
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0x1007c
push edi
push esi
push ebx
call fcn.00487008
xor edx, edx
sub esp, eax
xor eax, eax
mov word [esp + 0x70], ax
mov eax, dword [esp + 0x10090]
lea edi, [esp + 0x20]
mov word [esp + 0x20], dx
movzx ebp, byte [eax]
mov eax, ebp
test al, al
je 0x4210ce
xor eax, eax
mov esi, ebp
mov ebp, eax
lea esi, [esi]
nop
mov eax, 0x28
lea ebx, [edi + ebp*2]
sub eax, ebp
cmp word [edi + ebp*2], 0
je 0x421084
lea esi, [esi]
add ebx, 2
sub eax, 1
cmp word [ebx], 0
jne 0x421078
test eax, eax
je 0x4965d3
mov dword [esp], ebx
add ebp, 1
call sub.msvcrt.dll_wcslen
lea edx, [esp + 0x1e]
mov ecx, esi
mov byte [esp + 0x1f], 0
lea eax, [ebx + eax*2]
mov dword [esp + 8], 2
mov dword [esp + 4], edx
mov dword [esp], eax
mov byte [esp + 0x1e], cl
call sub.msvcrt.dll_mbstowcs
mov eax, dword [esp + 0x10090]
movzx esi, byte [eax + ebp]
mov eax, esi
test al, al
jne 0x421060
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 0x4210ff
mov dword [esp], ebx
call sub.msvcrt.dll__wcsdup
add esp, 0x1007c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x421110
Capabilities:
Set environment variable

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x7c
mov word [esp + 0x20], ax
mov eax, dword [esp + 0x90]
lea edi, [esp + 0x20]
movzx ebp, byte [eax]
mov eax, ebp
test al, al
je 0x4211ae
xor eax, eax
mov esi, ebp
mov ebp, eax
lea esi, [esi]
nop
mov eax, 0x28
lea ebx, [edi + ebp*2]
sub eax, ebp
cmp word [edi + ebp*2], 0
je 0x421164
lea esi, [esi]
add ebx, 2
sub eax, 1
cmp word [ebx], 0
jne 0x421158
test eax, eax
je 0x4965d8
mov dword [esp], ebx
add ebp, 1
call sub.msvcrt.dll_wcslen
lea ecx, [esp + 0x1e]
mov edx, esi
mov byte [esp + 0x1f], 0
lea eax, [ebx + eax*2]
mov dword [esp + 8], 2
mov dword [esp + 4], ecx
mov dword [esp], eax
mov byte [esp + 0x1e], dl
call sub.msvcrt.dll_mbstowcs
mov eax, dword [esp + 0x90]
movzx esi, byte [eax + ebp]
mov eax, esi
test al, al
jne 0x421140
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 0x447470
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.00421020
test eax, eax
je 0x4475b0
mov dword [esp], eax
mov edi, 0x4e
lea esi, [esp + 0x30]
mov ebp, 0x28
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov ebx, eax
xor eax, eax
mov word [esp + 0x30], ax
mov dword [esp + 0x1c], ebx
mov ebx, edi
mov edi, esi
lea esi, [esi]
cmp word [edi], 0
mov eax, ebp
mov esi, edi
je 0x4474e4
lea esi, [esi]
add esi, 2
sub eax, 1
cmp word [esi], 0
jne 0x4474d8
test eax, eax
je 0x496657
mov dword [esp], esi
add edi, 2
call sub.msvcrt.dll_wcslen
lea edx, [esp + 0x2e]
mov byte [esp + 0x2e], bl
lea eax, [esi + eax*2]
mov dword [esp + 8], 2
mov dword [esp + 4], edx
mov dword [esp], eax
mov byte [esp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
mov eax, 1
lea ecx, [ebp - 1]
sub eax, ebp
movzx ebx, byte [eax + 0x4a0325]
test bl, bl
je 0x447538
mov ebp, ecx
jmp 0x4474c8
lea eax, [esp + 0x30]
mov dword [esp + 4], 0
mov ebx, dword [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [sym.imp.python311.dll__PyRuntime]
mov esi, dword [0x4c213c]
sub esp, 8
mov edi, dword [eax + 0x118]
mov eax, dword [0x4c312c]
test eax, eax
je 0x447608
mov edx, esi
call fcn.00409810
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov esi, eax
mov dword [esp], edi
call fcn.0043ccd0
sub dword [esi], 1
jne 0x4475a1
mov edx, dword [esi + 4]
mov dword [esp + 0x1c], eax
mov dword [esp], esi
call dword [edx + 0x18]
mov eax, dword [esp + 0x1c]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
test bl, bl
je 0x4475fc
mov eax, dword [0x4c2a74]
mov esi, 0x4c2a74
test eax, eax
jne 0x4475a1
cmp byte [0x4c2c82], 0
jne 0x4475d3
movzx eax, bl
call fcn.0040a7a0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x4c2a80
call dword [sym.imp.python311.dll_PyUnicode_FromWideChar]
mov dword [esi], eax
test eax, eax
je 0x447628
add dword [eax], 1
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4c2a70]
mov esi, 0x4c2a70
jmp 0x4475be
mov eax, dword [0x4c30e8]
mov ebp, dword [0x4c2134]
test eax, eax
je 0x447633
mov edx, ebp
call fcn.00409810
mov dword [0x4c312c], eax
jmp 0x447572
call dword [sym.imp.python311.dll_PyErr_Print]
call sub.msvcrt.dll_abort
mov dword [esp], 0x49e50f
call dword [sym.imp.python311.dll_PyImport_ImportModule]
mov dword [0x4c30e8], eax
test eax, eax
je 0x496657
jmp 0x447617
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort