joyce8/EMBER2024-capa huggingface dataset:
Function at 0x521c20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x562178
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov eax, dword [0x634928]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], 0
mov ecx, 0x65a99e
call fcn.0053954a
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
jne 0x521c99
mov ecx, dword [ebp + 8]
call fcn.0048e2d0
mov ecx, dword [ebp - 0x28]
or ecx, 1
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp + 8]
jmp 0x521d3b
mov esi, esp
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp esi, esp
call fcn.0053951b
add eax, 1
mov dword [ebp - 0x18], eax
push 4
lea ecx, [ebp - 0x20]
call fcn.00491740
mov ecx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0048e270
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
add edx, 1
mov esi, esp
push edx
lea ecx, [ebp - 0x20]
call fcn.004922a0
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp esi, esp
call fcn.0053951b
push 0
lea ecx, [ebp - 0x20]
call fcn.004922a0
push eax
call fcn.005462b1
add esp, 4
push eax
lea ecx, [ebp - 0x20]
call fcn.00493750
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.0048e200
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0048e9b0
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x521d74]
call fcn.005394c7
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053957c
add esp, 0x28
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret 4
Function at 0x52e760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], 0xcccccccc
mov ecx, 0x65acdc
call fcn.0053954a
mov byte [ebp - 1], 0
jmp 0x52e784
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 4
jge 0x52e7ea
mov byte [ebp - 2], 0
jmp 0x52e79c
mov dl, byte [ebp - 2]
add dl, 1
mov byte [ebp - 2], dl
movzx eax, byte [ebp - 2]
cmp eax, 4
jge 0x52e7e8
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*4]
movzx ecx, byte [ebp - 2]
movzx edx, byte [ebp + 8]
shl edx, 2
movzx esi, byte [ebp - 1]
shl esi, 2
lea edx, [esi + edx*4]
movzx esi, byte [ebp - 2]
add esi, dword [ebp + 0x10]
movzx edx, byte [esi + edx]
movzx eax, byte [eax + ecx]
xor eax, edx
movzx ecx, byte [ebp - 2]
movzx edx, byte [ebp - 1]
mov esi, dword [ebp + 0xc]
lea edx, [esi + edx*4]
mov byte [edx + ecx], al
jmp 0x52e793
jmp 0x52e77c
pop esi
add esp, 4
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret

Function at 0x52e800
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov ecx, 0x65acdc
call fcn.0053954a
mov byte [ebp - 1], 0
jmp 0x52e823
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 4
jge 0x52e871
mov byte [ebp - 2], 0
jmp 0x52e83b
mov dl, byte [ebp - 2]
add dl, 1
mov byte [ebp - 2], dl
movzx eax, byte [ebp - 2]
cmp eax, 4
jge 0x52e86f
movzx ecx, byte [ebp - 2]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*4]
movzx ecx, byte [ebp - 1]
movzx edx, byte [eax + ecx]
movzx eax, byte [ebp - 2]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
movzx ecx, byte [ebp - 1]
mov dl, byte [edx + str.cw]
mov byte [eax + ecx], dl
jmp 0x52e832
jmp 0x52e81b
add esp, 4
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret

Function at 0x52f840
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov ecx, 0x65acdc
call fcn.0053954a
mov byte [ebp - 1], 0
jmp 0x52f863
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 4
jge 0x52f8b1
mov byte [ebp - 2], 0
jmp 0x52f87b
mov dl, byte [ebp - 2]
add dl, 1
mov byte [ebp - 2], dl
movzx eax, byte [ebp - 2]
cmp eax, 4
jge 0x52f8af
movzx ecx, byte [ebp - 2]
mov edx, dword [ebp + 8]
lea eax, [edx + ecx*4]
movzx ecx, byte [ebp - 1]
movzx edx, byte [eax + ecx]
movzx eax, byte [ebp - 2]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*4]
movzx ecx, byte [ebp - 1]
mov dl, byte [edx + 0x601220]
mov byte [eax + ecx], dl
jmp 0x52f872
jmp 0x52f85b
add esp, 4
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret
Function at 0x52fc30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov ecx, 0x65acdc
call fcn.0053954a
mov byte [ebp - 1], 0
jmp 0x52fc53
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 0x10
jge 0x52fc80
movzx edx, byte [ebp - 1]
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + eax]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor edx, eax
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], dl
jmp 0x52fc4b
add esp, 4
cmp ebp, esp
call fcn.0053951b
mov esp, ebp
pop ebp
ret
Function at 0x538810
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x634928]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0053d4c0
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ecx - 1]
cmp eax, 7
ja 0x538931
cmp ecx, 1
jne 0x538869
push 0
mov eax, 5
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x538992
cmp ecx, 2
jne 0x53888a
push 0
mov eax, 6
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x538992
cmp ecx, 3
jne 0x5388ab
push 0
mov eax, 0x10
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x538992
cmp ecx, 4
jne 0x5388cc
push 0
mov eax, 0x14
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x538992
cmp ecx, 5
jne 0x5388ed
push 0
mov eax, 0xb
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x538992
cmp ecx, 6
jne 0x53890e
push 0
mov eax, 2
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x538992
mov edx, 7
mov eax, 0x1a
cmp ecx, edx
push 0
cmove eax, edx
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
jmp 0x538992
cmp ecx, 9
jne 0x53894a
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x53898a
cmp ecx, 0xa
jne 0x538963
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x53898a
cmp ecx, 0xb
je 0x538978
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053957c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor ecx, ecx
cmp ecx, eax
sbb eax, eax
neg eax
push ebx
xor ebx, ebx
test eax, eax
je 0x538a34
lea ecx, [ebp - 0x10c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5389a6
sub ecx, edx
je 0x5389d3
cmp byte [ebp + ecx - 0x10d], 0x5c
je 0x5389d3
mov byte [ebp + ecx - 0x10c], 0x5c
inc ecx
cmp ecx, 0x105
jae 0x538a45
mov byte [ebp + ecx - 0x10c], bl
cmp byte [ebp - 0x10c], bl
je 0x538a32
push esi
push edi
lea edi, [ebp - 0x10c]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x5389e6
sub edi, ecx
push 0
lea esi, [edi + 1]
push esi
push 0x7e8
call fcn.00538a50
push esi
mov ebx, eax
push 0
push ebx
call fcn.0053d4c0
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
call fcn.0053b3c0
add esp, 0x18
mov byte [ebx + edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053957c
mov esp, ebp
pop ebp
ret
xor ebx, ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0053957c
mov esp, ebp
pop ebp
ret
call fcn.005396ca
int3

Function at 0x554150
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00553ca3
Function at 0x557399
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055720f
Function at 0x401d11
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xacc
jge 0x401d32
push esi
call dword [sym.imp.USER32.dll_SetClipboardViewer]
call dword [sym.imp.USER32.dll_GetCaretBlinkTime]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 0x45be411
jg 0x401d4c
inc edi
cmp edi, 0x3330601
jl 0x401d1d
cmp dword [0x207988c], 0x400
jne 0x401d85
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
push esi
call fcn.00404481
push esi
call fcn.0040482d
push esi
push esi
call fcn.00404b2e
push esi
call fcn.00404ba0
add esp, 0x14
xor edi, edi
cmp edi, 0x16c76
jge 0x401d97
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401dbd
inc edi
cmp edi, 0x3003f
jl 0x401d87
mov eax, dword [0x42c89c]
mov dword [0x207988c], eax
call fcn.00401a58
mov edi, 0x3078f
cmp dword [0x207988c], 0x51f
jne 0x401de9
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec edi
jne 0x401dd1
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x402957
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4254cd
call fcn.00425350
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00403714
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.00404baf
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x40299f
call fcn.004034c8
mov dword [ebx], eax
call fcn.00403287
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x4029a1
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4056fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b354]
jne 0x405704
repz ret
jmp fcn.0040b43c
Function at 0x4010f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10008
call fcn.0041bfa0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10004], eax
cmp dword [0x428548], 0
push esi
push edi
je 0x40119f
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [esp + 0x14]
push 0x8000
push eax
call fcn.00401000
push dword [eax + 4]
push dword [eax]
call fcn.0040e864
mov esi, eax
add esp, 0x1c
or eax, 0xffffffff
test esi, esi
cmovs esi, eax
test esi, esi
jle 0x40119f
push dword [0x428548]
lea eax, [esp + 0xc]
push eax
call fcn.0040ee22
add esp, 8
lea edi, [esi + esi]
movzx eax, word [esp + edi + 8]
push eax
call fcn.0040f3f0
add esp, 4
test eax, eax
je 0x40118c
dec esi
cmp edi, 0x10000
jae 0x4011b3
xor eax, eax
mov word [esp + edi + 8], ax
test esi, esi
jne 0x401163
cmp word [esp + 8], 0
je 0x40119f
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x1000c]
pop edi
pop esi
xor ecx, esp
call fcn.00405fcc
mov esp, ebp
pop ebp
ret
call fcn.004060fc
int3
Function at 0x402370
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.0041bfa0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x10008], eax
mov esi, edx
lea eax, [ebp - 0x10004]
mov ebx, ecx
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombineEx]
test eax, eax
js 0x40246e
push 1
push str.py.ini
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x40246e
push esi
push ebx
lea eax, [ebp - 0x10004]
push eax
push str._Reading_from__s_for__s__s_n
call fcn.004010f0
add esp, 0x10
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push dword [ebp - 0x10008]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
je 0x402438
lea eax, [ebp - 0x10004]
push eax
push esi
push str._Found__s_in__s_n
call fcn.004010f0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405fcc
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
lea eax, [ebp - 0x10004]
push eax
jne 0x402459
push str._Did_not_find_file__s_n
call fcn.004010f0
add esp, 8
jmp 0x402468
push str.Failed_to_read_from__s_n
push 0
call fcn.004011c0
add esp, 0xc
mov edi, dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombineEx]
push 0x8000
lea eax, [ebp - 0x10004]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40253b
push 0x8000
lea eax, [ebp - 0x10004]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
test eax, eax
js 0x40253b
push 1
push str.py.ini
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x40253b
push esi
push ebx
lea eax, [ebp - 0x10004]
push eax
push str._Reading_from__s_for__s__s_n
call fcn.004010f0
add esp, 0x10
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push dword [ebp - 0x10008]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
jne 0x402410
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
lea eax, [ebp - 0x10004]
push eax
jne 0x40252c
push str._Did_not_find_file__s_n
call fcn.004010f0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405fcc
mov esp, ebp
pop ebp
ret
push str.Failed_to_read_from__s_n
push 0
call fcn.004011c0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405fcc
mov esp, ebp
pop ebp
ret
Function at 0x402cd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.0041bfa0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x38], 0
je 0x402d6a
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x402d7d
mov ecx, dword [esi + 0x30]
lea ebx, [esi + 0x30]
test ecx, ecx
je 0x402d7d
cmp byte [esi + 0x34], 0
je 0x402d6a
push ecx
push 0x4230b8
push eax
call fcn.0040f474
add esp, 0xc
test eax, eax
jne 0x402d31
mov dword [ebp - 0x10008], str.python3
mov eax, str.py_python3
jmp 0x402d8f
push dword [ebx]
push 0x4230b4
push dword [esi + 0x2c]
call fcn.0040f474
add esp, 0xc
test eax, eax
jne 0x402d58
mov dword [ebp - 0x10008], str.python2
mov eax, str.py_python2
jmp 0x402d8f
push dword [esi + 0x2c]
push dword [ebx]
push str._Cannot_select_defaults_for_tag__.s_n
call fcn.004010f0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405fcc
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10008], str.python
lea ebx, [esi + 0x30]
mov eax, str.py_python
push 0x8000
lea ecx, [ebp - 0x10004]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x402dc9
mov edx, dword [ebp - 0x10008]
lea eax, [ebp - 0x10004]
push ecx
push eax
mov ecx, str.defaults
call fcn.00402370
mov edi, eax
add esp, 8
test edi, edi
je 0x402d6a
lea eax, [edi*2 + 6]
push eax
call fcn.0040f4ae
add esp, 4
test eax, eax
je 0x402e80
mov ecx, dword [esi + 0x40]
mov dword [eax], ecx
lea ecx, [eax + 4]
mov dword [esi + 0x40], eax
mov dword [ebp - 0x10008], ecx
test ecx, ecx
je 0x402e80
lea eax, [ebp - 0x10004]
push eax
lea eax, [edi + 1]
push eax
push ecx
call fcn.0040eea6
push 0x2f
push dword [ebp - 0x10008]
call fcn.00406bf8
mov edx, eax
add esp, 0x14
test edx, edx
jne 0x402e47
mov eax, dword [ebp - 0x10008]
mov cl, 1
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [ebx], edi
mov byte [esi + 0x34], cl
pop edi
mov byte [esi + 0x35], cl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405fcc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10008]
mov eax, edx
sub eax, ecx
mov dword [esi + 0x24], ecx
sar eax, 1
xor cl, cl
mov dword [esi + 0x28], eax
sub edi, eax
dec edi
lea eax, [edx + 2]
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [ebx], edi
mov byte [esi + 0x34], cl
pop edi
mov byte [esi + 0x35], 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405fcc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x68
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405fcc
mov esp, ebp
pop ebp
ret
Function at 0x403380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 6
push dword [ebp + 0xc]
mov ebx, edx
mov edi, ecx
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4033f4
push dword [ebp - 4]
call fcn.0040f4ae
mov esi, eax
add esp, 4
test esi, esi
jne 0x4033c8
pop edi
lea eax, [esi + 0x68]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 4]
push eax
push esi
push 0
push 6
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4033eb
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040f3ca
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404140
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
mov edi, edx
mov dword [ebp - 0x40], 0x3c
mov esi, ecx
mov dword [ebp - 0x3c], 0x8140
push edi
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
push esi
push str._Installing_with__s__s_n
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
call fcn.004010f0
add esp, 0xc
push 0
push 0
push str.PYLAUNCHER_DRYRUN
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, 2
jb 0x404264
push ebx
push str._Exiting_due_to_PYLAUNCHER_DRYRUN_n
call fcn.004010f0
push 1
call fcn.0040e96d
push eax
call fcn.0040ed01
add esp, 0xc
push 0x40000
push 1
call fcn.0040e96d
push eax
call fcn.0040f1a5
add esp, 8
push eax
call fcn.0040efb6
add esp, 8
mov ebx, eax
test edi, edi
je 0x404211
push edi
push esi
push str.__s___s_n
push 1
call fcn.0040e96d
add esp, 4
push eax
call fcn.00401040
add esp, 0x10
jmp 0x40422a
push esi
push str.__s__n
push 1
call fcn.0040e96d
add esp, 4
push eax
call fcn.00401040
add esp, 0xc
push 1
call fcn.0040e96d
push eax
call fcn.0040ed01
add esp, 8
test ebx, ebx
js 0x404258
push ebx
push 1
call fcn.0040e96d
push eax
call fcn.0040f1a5
add esp, 8
push eax
call fcn.0040efb6
add esp, 8
pop ebx
pop edi
mov eax, 0x6f
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40427d
pop edi
mov eax, 0x67
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
test eax, eax
je 0x404259
push 0
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x404259
mov eax, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
and eax, 0x6f
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405fc0
Capabilities:
Accept command line arguments
Extract resource via kernel32 functions
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
pop ebp
jmp fcn.00405350

Function at 0x4068bb
Capabilities:
Parse pe header

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

Function at 0x410067
Capabilities:
Parse pe header

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

Function at 0x412990
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ecb4
push 0x41ecac
push str.FlsAlloc
push 0x1f
call fcn.0041286e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4129c4
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d198]
call esi
jmp 0x4129ca
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412a0e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41ecc4
push 0x41ecbc
push str.FlsGetValue
push 0x21
call fcn.0041286e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412a45
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d198]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x412a4d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41eccc
push 0x41ecc4
push str.FlsSetValue
push 0x22
call fcn.0041286e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412a87
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d198]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]