joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004148bc

Function at 0x406515
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8

Function at 0x407ab3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x407af8
call fcn.0041c1c7
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x407af5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407b3f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x407b1b
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x57da20]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x407b3c
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x57da20]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x4140d7
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x41412a
push esi
push dword [ebp + 8]
call fcn.004142bd
mov edi, eax
test edi, edi
je 0x414125
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x414125
mov eax, dword [ebp - 8]
jmp 0x41413c
mov eax, dword [ebp + 0x10]
jmp 0x41413c
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x414914
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.0041c1c7
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x414947
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.0041495a
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41ed00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x41ed3f
call fcn.0041c1c7
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41ed3f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41ed47
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.004a0644
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x41f73e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x41f7ca
cmp dword [esi + 0x20], 0
je 0x41f7ca
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41f7ca
cmp dword [ebp + 8], 0
je 0x41f7ca
xor edi, edi
mov ebx, edi
call fcn.0041c1c7
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x41f7ae
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41f7ca
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.004c05cd
mov edi, eax
add esp, 0xc
test edi, edi
je 0x41f7c6
mov ecx, esi
call fcn.0041f4dc
mov eax, edi
jmp 0x41f7cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4241ab
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x56d1d9
call fcn.0054d048
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4241d1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x42422b
lea ecx, [ebp - 0x10]
call fcn.00401ed0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x57da20]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00556d69
push eax
call fcn.004044c7
add esp, 0x14
test esi, esi
je 0x42421e
push esi
call fcn.005560e0
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402430
mov eax, ebx
call fcn.0054d016
ret 8
Function at 0x43a691
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x43a6aa
call fcn.0041c1c7
mov esi, dword [eax + 0xc]
push 0x583810
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x43a6ec
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43a6ec
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x43a6ec
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0043a6f5
jmp 0x43a6ee
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4c2019
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4c206f
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4c2048
call fcn.00418e0f
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4c205d
call fcn.00418e0f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4c206f
call fcn.00418e0f
call fcn.0041c1c7
cmp dword [eax + 0x3c], 0
je 0x4c2084
push edi
mov ecx, ebx
call fcn.004c173c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004c226a
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4c20ad
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4c20b9
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4d4873
Capabilities:
Get file system object information

Disassembly:
push 0x274
mov eax, 0x5763f8
call fcn.0054d07b
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403a60
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x57fa38
call fcn.0040496b
cmp eax, 0xffffffff
jne 0x4d494e
push 0
push 0x5837cc
lea ecx, [ebp - 0x278]
call fcn.0040496b
cmp eax, 0xffffffff
jne 0x4d494e
push 0
push 0x57e1ec
lea ecx, [ebp - 0x278]
call fcn.0040496b
cmp eax, 0xffffffff
jne 0x4d494e
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00403a60
add eax, 0x10
pop ecx
mov dword [ebp - 0x280], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x114]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x27c], edi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x4d491d
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x57da20]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x27c]
mov edi, eax
call fcn.00402430
jmp 0x4d4987
lea eax, [ebp - 0x114]
push eax
call fcn.005560e0
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.004021b0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00402430
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x4d4974
mov edi, dword [ebp - 0x274]
jmp 0x4d4987
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x57da20]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00402430
mov eax, edi
call fcn.0054d02a
ret

Function at 0x512ba3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00423d88
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x512bdf
call fcn.00512dc0
mov dword [esi + 0xc], 1
jmp 0x512be4
call fcn.00512dc0
cmp dword [esi], 0
je 0x512c2f
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x512c0a
push edi
call fcn.00418424
lea ecx, [edi + 1]
push ecx
jmp 0x512c19
push 0xff
call fcn.00402580
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004143f9
pop edi
jmp 0x512c53
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x512c53
push dword [esi]
push dword [ebp - 4]
call fcn.00426a8d
pop esi
leave
ret 0xc
Function at 0x512d17
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00512dc0
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x512d5f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00418424
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004143f9
jmp 0x512d6a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00426a8d
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5132b0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0055dfd1
pop ecx
test eax, eax
jne 0x5132f2
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0041465d
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5132b8
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x562495
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ab7a0
push 0x5ab798
push str.FlsAlloc
push 0x1e
call fcn.00562316
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5624c9
push dword [ebp + 8]
mov ecx, esi
call dword [0x57da20]
call esi
jmp 0x5624cf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x562513
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ab7b0
push 0x5ab7a8
push str.FlsGetValue
push 0x20
call fcn.00562316
mov esi, eax
add esp, 0x10
test esi, esi
je 0x56254a
push dword [ebp + 8]
mov ecx, esi
call dword [0x57da20]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x566c73
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x566d10
push ebx
push esi
call fcn.00566c3c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005645b1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x566cbd
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x566d0f
push edi
push eax
call fcn.0055ff0c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x566cdd
call fcn.0055fed2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x566d0e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005645b1
add esp, 0x20
test eax, eax
jne 0x566cfc
push edi
call fcn.0055fed2
jmp 0x566d04
push ebx
call fcn.0055fed2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x566d13
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x566d24
pop esi
ret
push ebx
push edi
push esi
call fcn.00566c3c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0055ff0c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x566d4c
push ebx
push esi
push edi
call fcn.0054e760
add esp, 0xc
push 0
call fcn.0055fed2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x567110
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00566d61
Function at 0x401130
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10008
call fcn.004220f0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10004], eax
cmp dword [0x42f5d0], 0
push esi
push edi
je 0x4011df
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.0040ee64
mov esi, eax
add esp, 0x1c
or eax, 0xffffffff
test esi, esi
cmovs esi, eax
test esi, esi
jle 0x4011df
push dword [0x42f5d0]
lea eax, [esp + 0xc]
push eax
call fcn.00414d23
add esp, 8
lea edi, [esi + esi]
movzx eax, word [esp + edi + 8]
push eax
call fcn.004152f0
add esp, 4
test eax, eax
je 0x4011cc
dec esi
cmp edi, 0x10000
jae 0x4011f3
xor eax, eax
mov word [esp + edi + 8], ax
test esi, esi
jne 0x4011a3
cmp word [esp + 8], 0
je 0x4011df
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.004065bc
mov esp, ebp
pop ebp
ret
call fcn.004066ec
int3
Function at 0x402470
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.004220f0
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 - 0x1000c], eax
mov esi, edx
lea eax, [ebp - 0x10008]
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 0x40256e
push 1
push str.py.ini
lea eax, [ebp - 0x10008]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x40256e
push esi
push ebx
lea eax, [ebp - 0x10008]
push eax
push str._Reading_from__s_for__s__s_n
call fcn.00401130
add esp, 0x10
lea eax, [ebp - 0x10008]
push eax
push 0x8000
push dword [ebp - 0x1000c]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
je 0x402538
lea eax, [ebp - 0x10008]
push eax
push esi
push str._Found__s_in__s_n
call fcn.00401130
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004065bc
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
lea eax, [ebp - 0x10008]
push eax
jne 0x402559
push str._Did_not_find_file__s_n
call fcn.00401130
add esp, 8
jmp 0x402568
push str.Failed_to_read_from__s_n
push 0
call fcn.00401200
add esp, 0xc
mov edi, dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombineEx]
push 0x8000
lea eax, [ebp - 0x10008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40263b
push 0x8000
lea eax, [ebp - 0x10008]
push eax
call dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
test eax, eax
js 0x40263b
push 1
push str.py.ini
lea eax, [ebp - 0x10008]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x40263b
push esi
push ebx
lea eax, [ebp - 0x10008]
push eax
push str._Reading_from__s_for__s__s_n
call fcn.00401130
add esp, 0x10
lea eax, [ebp - 0x10008]
push eax
push 0x8000
push dword [ebp - 0x1000c]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
jne 0x402510
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
lea eax, [ebp - 0x10008]
push eax
jne 0x40262c
push str._Did_not_find_file__s_n
call fcn.00401130
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004065bc
mov esp, ebp
pop ebp
ret
push str.Failed_to_read_from__s_n
push 0
call fcn.00401200
add esp, 0xc
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004065bc
mov esp, ebp
pop ebp
ret
Function at 0x402710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30014
call fcn.004220f0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0x30014], edx
xor eax, eax
mov dword [ebp - 0x3000c], ecx
mov dword [ebp - 0x30010], ebx
mov dword [ebp - 0x30008], eax
push esi
push edi
test edx, edx
je 0x4028e0
mov esi, dword [ebp + 8]
test esi, esi
je 0x4028e0
lea edi, [ebp - 0x30004]
test esi, esi
jle 0x4027c5
movzx esi, word [edx + ebx*2]
push esi
call fcn.004152f0
mov ecx, dword [ebp - 0x30008]
add esp, 4
test eax, eax
je 0x40277e
test ecx, ecx
je 0x4027bc
cmp esi, 0x22
jne 0x402792
xor eax, eax
test ecx, ecx
sete al
mov dword [ebp - 0x30008], eax
jmp 0x4027ac
cmp esi, 0x2f
je 0x4027a1
cmp esi, 0x5c
je 0x4027a1
mov word [edi], si
jmp 0x4027a9
mov eax, 0x5c
mov word [edi], ax
add edi, 2
mov esi, dword [ebp + 8]
inc ebx
cmp ebx, esi
jge 0x4027c5
mov edx, dword [ebp - 0x30014]
jmp 0x402763
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30010], ebx
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4028f3
mov eax, dword [ebp - 0x3000c]
push dword [eax + 0x10]
push dword [eax + 0xc]
lea eax, [ebp - 0x20004]
push 0x8000
push eax
call fcn.00415487
add esp, 0x10
test eax, eax
jne 0x4028f3
mov edi, dword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchCombineEx]
lea eax, [ebp - 0x20004]
push 1
push eax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x4028f3
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 0x4028f3
push 1
lea eax, [ebp - 0x30004]
push eax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
push eax
call edi
test eax, eax
js 0x4028f3
lea eax, [ebp - 0x10004]
push 0x8000
push eax
call fcn.00409b44
mov ebx, eax
lea ecx, [ebx*2 + 6]
push ecx
call fcn.004153ae
add esp, 0xc
test eax, eax
je 0x4028f3
mov edi, dword [ebp - 0x3000c]
mov ecx, dword [edi + 0x44]
mov dword [eax], ecx
mov dword [edi + 0x44], eax
lea edi, [eax + 4]
test edi, edi
je 0x4028f3
lea eax, [ebp - 0x10004]
push eax
lea eax, [ebx + 1]
push eax
push edi
call fcn.00414da7
mov ecx, dword [ebp - 0x3000c]
add esp, 0xc
mov edx, dword [ebp - 0x30010]
mov dword [ecx + 8], edi
test edx, edx
je 0x4028e0
mov eax, dword [ebp - 0x30014]
sub esi, edx
mov dword [ecx + 0x20], esi
lea eax, [eax + edx*2]
mov dword [ecx + 0x1c], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004065bc
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.004065bc
mov esp, ebp
pop ebp
ret
Function at 0x402f40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.004220f0
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 0x402fda
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x402fed
mov ecx, dword [esi + 0x30]
lea ebx, [esi + 0x30]
test ecx, ecx
je 0x402fed
cmp byte [esi + 0x34], 0
je 0x402fda
push ecx
push 0x429538
push eax
call fcn.00415374
add esp, 0xc
test eax, eax
jne 0x402fa1
mov dword [ebp - 0x1000c], str.python3
mov eax, str.py_python3
jmp 0x402fff
push dword [ebx]
push 0x429534
push dword [esi + 0x2c]
call fcn.00415374
add esp, 0xc
test eax, eax
jne 0x402fc8
mov dword [ebp - 0x1000c], str.python2
mov eax, str.py_python2
jmp 0x402fff
push dword [esi + 0x2c]
push dword [ebx]
push str._Cannot_select_defaults_for_tag__.s_n
call fcn.00401130
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004065bc
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x1000c], str.python
lea ebx, [esi + 0x30]
mov eax, str.py_python
push 0x8000
lea ecx, [ebp - 0x10008]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x403039
mov edx, dword [ebp - 0x1000c]
lea eax, [ebp - 0x10008]
push ecx
push eax
mov ecx, str.defaults
call fcn.00402470
mov edi, eax
add esp, 8
test edi, edi
je 0x402fda
lea eax, [edi*2 + 6]
push eax
call fcn.004153ae
add esp, 4
test eax, eax
je 0x4030f3
mov ecx, dword [esi + 0x44]
mov dword [eax], ecx
lea ecx, [eax + 4]
mov dword [esi + 0x44], eax
mov dword [ebp - 0x1000c], ecx
test ecx, ecx
je 0x4030f3
lea eax, [ebp - 0x10008]
push eax
lea eax, [edi + 1]
push eax
push ecx
call fcn.00414da7
add esp, 0xc
push 0x2f
push dword [ebp - 0x1000c]
call fcn.004071db
mov edx, eax
add esp, 8
test edx, edx
jne 0x4030ba
mov eax, dword [ebp - 0x1000c]
mov cl, 1
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [ebx], edi
mov byte [esi + 0x34], cl
mov byte [esi + 0x35], cl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004065bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x1000c]
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
lea eax, [edx + 2]
dec edi
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [ebx], edi
mov byte [esi + 0x34], cl
mov byte [esi + 0x35], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004065bc
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.004065bc
mov esp, ebp
pop ebp
ret
Function at 0x403600
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 0x403674
push dword [ebp - 4]
call fcn.004153ae
mov esi, eax
add esp, 4
test esi, esi
jne 0x403648
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 0x40366b
mov dword [edi], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004152cb
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret