joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4142d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x41432b
cmp byte [esi + ebx - 1], 0xa
je 0x4142ff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x41a224], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x414880
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x41a234]
mov esi, dword [ebp + 8]
test edi, edi
je 0x414a40
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x41a234]
movzx eax, al
bt eax, esi
jae 0x414aa0
mov ecx, dword [0x41a224]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x414946
test byte [0x4159c8], 8
jne 0x4149e0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x4159d8], 8
jne 0x414990
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x414915
cmp esi, 3
jbe 0x414950
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x419320]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x414915
mov ecx, dword [0x41a234]
test ecx, ecx
je 0x414a80
mov dword [esp], 0x4159d8
call dword [0x41a234]
test al, 8
je 0x4148ec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x4148ec
mov ebx, dword [0x41a234]
test ebx, ebx
je 0x414a60
mov dword [esp], 0x4159c8
call dword [0x41a234]
test al, 8
je 0x4148d9
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x4148df
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x41a234
call sym._load_func.part.0
jmp 0x4148a0
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x41a234
call sym._load_func.part.0
jmp 0x4149ea
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x41a234
call sym._load_func.part.0
jmp 0x41499e
mov eax, 0xffffffff
jmp 0x414946
Function at 0x414c80
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.main
mov dword [esp], eax
call sub.ucrtbase.dll_exit

Function at 0x414d90
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call dbg.__main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x414dfe
xor ecx, ecx
xor edx, edx
jmp 0x414dd6
cmp al, 0x5c
jne 0x414e58
add edx, 1
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x414df3
cmp al, 9
je 0x414dde
cmp al, 0x20
jne 0x414dc0
test ecx, ecx
je 0x414df3
xor edx, edx
jmp 0x414dcb
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x414df0
cmp al, 0x20
je 0x414df0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x414e19
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call dbg.WinMain@16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
jne 0x414de2
and edx, 1
jne 0x414de2
xor ecx, 1
jmp 0x414dcb
Function at 0x41f993
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f9d2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f9d2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f9d2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f9d2
cmp dword [ecx + 0x74], 0xe
jbe 0x41f9d2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x17f57d24
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, str.j:f
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x3a2a13d6
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x1002aaee
pop dword [ebp - 8]
mov eax, 0xbc0eb719
add eax, 0x53f3f3d5
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x235ba780
add dword [ebp - 0x18], 0x2af69dcb
mov dword [ebp - 0x14], 0x414c7db6
sub dword [ebp - 0x14], 0xf193171
mov dword [ebp - 0x10], 0xec008f96
add dword [ebp - 0x10], 0x604bb498
mov dword [ebp - 0xc], 0xe6de669f
sub dword [ebp - 0xc], 0xe6de669f
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x1eca3362
add dword [ebp - 0x18], 0x55a835f4
mov dword [ebp - 0x14], 0xfd0693a1
sub dword [ebp - 0x14], 0xbb9a322c
mov dword [ebp - 0x10], 0xe224e559
sub dword [ebp - 0x10], 0x7eb578ed
mov dword [ebp - 0xc], 0xa9f5cd0
sub dword [ebp - 0xc], 0xa9f5cd0
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3454c
push 0
call eax
mov ecx, 0x886b0167
add ecx, 0x77953e0d
xor edx, edx
add edx, eax
mov esi, 0xc4134720
add esi, 0x4bf04ee0
add esi, dword [ebp - 8]
mov ebx, 0xca9006ac
add ebx, 0x1121ba6a
sub dword [ebp - 4], edi
mov edi, dword [esi]
xor dword [ebp - 4], edi
xor edi, ebx
mov dword [edx], edi
mov dword [ebp - 4], 0xef8e7d72
add edx, 4
add esi, 4
loop 0x1002ac08
add eax, 0xed66cfb8
sub eax, 0xed65df15
xor ebx, ebx
add ebx, eax
add eax, 0x5d5a3b88
add eax, 0xa2a5c47d
mov ecx, 0x6c694cad
add ecx, 0xa396b353
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x401a60
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebp
pop dword [0x438810]
push dword [0x438810]
push 0x401a7b
jmp fcn.004015b0
Function at 0x401000
Capabilities:
Copy file
Extract resource via kernel32 functions
Get common file path
Get file size
Move file
Read file on windows
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x337]
mov byte [ebp - 0x338], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x233]
mov byte [ebp - 0x234], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x12f]
mov byte [ebp - 0x130], bl
mov dword [ebp - 0x14], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x401c73
mov edi, 0x401a5e
sub eax, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], eax
mov eax, 0x401f55
sub eax, fcn.00401d39
mov byte [ebp - 0x1c], 0xa
mov dword [ebp - 0x20], eax
mov eax, 0x401a4d
sub eax, 0x40198b
mov byte [ebp - 0x1b], 0xa
mov dword [ebp - 0x28], eax
mov eax, 0x40193b
sub eax, 0x401690
mov byte [ebp - 0x1a], 0xa
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.RT_RCDATA
push 0x66
mov byte [ebp - 0x19], 0xa
mov byte [ebp - 0x18], 0xa
mov byte [ebp - 0x17], 0xa
mov byte [ebp - 0x16], 0xa
mov byte [ebp - 0x15], 0xa
mov dword [ebp - 8], ebx
call fcn.00401451
add esp, 0x10
cmp dword [ebp - 0x10], ebx
jne 0x4010d2
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
mov esi, 0x404314
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1c]
push 8
push eax
push section..data
jmp loc.004081f6

Function at 0x401451
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147f
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret
Function at 0x40149a
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014db
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ee
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ee
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f2
xor eax, eax
jmp 0x401504
cmp dword [ebp - 4], edi
je 0x401501
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x401944
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
xor esi, esi
call edi
test eax, eax
jbe 0x40197b
push ebx
mov ebx, ebp
sub ebx, 0x404418
mov al, byte [ebx + esi + 0x404418]
push ebp
xor al, 1
mov byte [esi + 0x404418], al
inc esi
call edi
cmp esi, eax
jb 0x401963
pop ebx
and byte [esi + 0x404418], 0
pop edi
pop esi
mov eax, 0x404418
pop ebp
ret
Function at 0x401280
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
xor eax, eax
mov ecx, dword [edx]
shr ecx, 3
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x401348
push esi
push edi
mov edi, dword [ebx + eax*8]
lea ecx, [ebx + eax*8]
lea eax, [eax*8 + 4]
mov dword [ebp - 0x1c], ecx
add eax, ebx
mov dword [ebp - 4], 0x20
mov dword [ebp - 0x20], eax
mov ebx, 0xc6ef3720
mov esi, dword [eax]
mov eax, dword [0x419570]
mov dword [ebp - 0x18], eax
mov eax, dword [0x419574]
mov dword [ebp - 0x14], eax
mov eax, dword [0x419578]
mov dword [ebp - 0x10], eax
mov eax, dword [0x41957c]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [ebx + edi]
xor ecx, eax
sub esi, ecx
mov ecx, esi
mov eax, esi
shr ecx, 5
add ecx, dword [ebp - 0x14]
shl eax, 4
add eax, dword [ebp - 0x18]
xor ecx, eax
lea eax, [ebx + esi]
xor ecx, eax
lea ebx, [ebx + 0x61c88647]
sub edi, ecx
dec dword [ebp - 4]
jne 0x4012e6
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x28]
mov dword [eax], edi
mov eax, dword [ebp - 0x20]
mov dword [eax], esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x24]
jb 0x4012a3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40eb5e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040a291
mov dword [ebp - 0x14], eax
cmp dword [0x41d234], esi
jne 0x40ec51
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40ebde
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ed31
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ed31
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ed31
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41d234], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41d238], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41d23c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41d244], eax
test eax, eax
je 0x40ec4e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41d240], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ec76
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ec69
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ec8b
push 4
pop eax
jmp 0x40ed33
cmp dword [ebp - 0x14], esi
je 0x40ec8b
push dword [0x41d234]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ec70
mov eax, dword [0x41d240]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40ece9
cmp dword [0x41d244], edi
je 0x40ece9
push eax
call ebx
push dword [0x41d244]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40ece9
test eax, eax
je 0x40ece9
call ecx
test eax, eax
je 0x40ecde
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40ecde
test byte [ebp - 8], 1
jne 0x40ece9
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40ed19
mov eax, dword [0x41d238]
cmp eax, edi
je 0x40ed16
push eax
call ebx
test eax, eax
je 0x40ed16
call eax
mov esi, eax
test esi, esi
je 0x40ed16
mov eax, dword [0x41d23c]
cmp eax, edi
je 0x40ed16
push eax
call ebx
test eax, eax
je 0x40ed16
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41d234]
call ebx
test eax, eax
je 0x40ed31
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ed33
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004020e1
mov esp, ebp
pop ebp
ret
Function at 0x57f770
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x122000]
push edi
jmp 0x57f78a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57f791
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f780
mov eax, 1
add ebx, ebx
jne 0x57f7a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x57f7b4
jne 0x57f7d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7d3
dec eax
add ebx, ebx
jne 0x57f7c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x57f798
add ebx, ebx
jne 0x57f7cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57f825
xor ecx, ecx
sub eax, 3
jb 0x57f7eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57f85a
sar eax, 1
mov ebp, eax
jmp 0x57f7f6
add ebx, ebx
jne 0x57f7f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7c4
inc ecx
add ebx, ebx
jne 0x57f804
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57f7c4
add ebx, ebx
jne 0x57f811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57f806
jne 0x57f822
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57f806
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57f844
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57f836
jmp 0x57f786
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57f844
add edi, ecx
jmp 0x57f786
pop esi
mov edi, esi
mov ecx, 0x40d6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57f862
cmp byte [edi], 0x11
jne 0x57f862
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 0x57f867
lea edi, [esi + 0x178000]
mov eax, dword [edi]
or eax, eax
je 0x57f8df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2193e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x219560]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x57f894
mov ecx, edi
jns 0x57f8c3
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 + 0x219564]
or eax, eax
je 0x57f8d9
mov dword [ebx], eax
add ebx, 4
jmp 0x57f8b1
call dword [esi + 0x219574]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x57f910
cmp al, 0xef
ja 0x57f903
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x57f8e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x57f8f2
mov ebp, dword [esi + 0x219568]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x57f944
sub esp, 0xffffff80
jmp 0x4204f7
Function at 0x417ec0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10054
call fcn.00433880
mov eax, dword [0x4615fc]
xor eax, esp
mov dword [esp + 0x10050], eax
mov eax, dword [esp + 0x10058]
xor ecx, ecx
push 0x28
push eax
lea eax, [esp + 8]
mov word [esp + 0x58], cx
push eax
mov word [esp + 0xc], cx
call fcn.0042f010
add esp, 0xc
lea eax, [esp + 0x50]
push 0x10000
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x417f3d
cmp eax, 0x10000
ja 0x417f3d
lea eax, [esp + 0x50]
push eax
call fcn.00440028
add esp, 4
mov ecx, dword [esp + 0x10050]
xor ecx, esp
call fcn.0043386c
add esp, 0x10054
ret
mov ecx, dword [esp + 0x10050]
xor eax, eax
xor ecx, esp
call fcn.0043386c
add esp, 0x10054
ret

Function at 0x417fe0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x54
mov eax, dword [0x4615fc]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
push 0x44eb58
call fcn.00417ec0
mov dword [0x462b7c], eax
xor eax, eax
push 0x28
mov word [esp + 0xc], ax
lea eax, [esp + 0xc]
push 0x44eb58
push eax
call fcn.0042f010
add esp, 0x10
lea eax, [esp + 4]
push 0x44eb60
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push str.PYTHONHOME
call fcn.00417ec0
push 1
mov dword [0x462b80], eax
call fcn.00430050
mov esi, eax
xor eax, eax
push 0x28
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push str.PYTHONHOME
push eax
call fcn.0042f010
add esp, 0x14
lea eax, [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 1
call fcn.00430050
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov eax, dword [sym.imp.python38.dll__Py_path_config]
mov ecx, dword [esp + 0x54]
pop esi
xor ecx, esp
mov dword [eax + 0x18], 1
call fcn.0043386c
add esp, 0x54
ret
Function at 0x4184e0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x58
mov eax, dword [0x4615fc]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x64]
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
mov dword [esp + 0x10], eax
call fcn.00424d60
push str.environ
push eax
call dword [sym.imp.python38.dll_PyObject_GetAttrString]
push ebx
mov esi, eax
call dword [sym.imp.python38.dll_PyUnicode_FromString]
add esp, 0xc
mov edi, eax
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x14]
push 0x28
push ebx
push eax
call fcn.0042f010
add esp, 0xc
lea eax, [esp + 0x14]
test ebp, ebp
je 0x418585
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0xffffffffffffffff
push ebp
call sub.python38.dll_PyUnicode_FromWideChar
mov ebx, eax
push ebx
push edi
push esi
call dword [sym.imp.python38.dll_PyObject_SetItem]
add esp, 0x14
test eax, eax
je 0x418575
push 1
call dword [sym.imp.python38.dll_PyErr_PrintEx]
add esp, 4
push 1
call dword [sym.imp.python38.dll_Py_Exit]
add dword [ebx], 0xffffffff
jne 0x4185a9
mov eax, dword [ebx + 4]
push ebx
mov eax, dword [eax + 0x18]
call eax
jmp 0x4185a6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push esi
call dword [sym.imp.python38.dll_PyObject_DelItem]
add esp, 8
test eax, eax
je 0x4185a9
push dword [esp + 0x10]
call fcn.004014c0
add esp, 4
add dword [edi], 0xffffffff
jne 0x4185ba
mov eax, dword [edi + 4]
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
add dword [esi], 0xffffffff
jne 0x4185cb
mov eax, dword [esi + 4]
push esi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043386c
add esp, 0x58
ret