joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fb90
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x20c
push ebx
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
xor esi, esi
push esi
push esi
call edi
test eax, eax
je 0x41fbbf
lea ebx, [eax + 1]
push ebx
call fcn.0041fa40
mov esi, eax
add esp, 4
test esi, esi
je 0x41fbbf
push esi
push ebx
call edi
push 0x209
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0040c060
add esp, 0xc
lea eax, [esp + 0xc]
push 0x208
push eax
push dword [esp + 0x228]
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x41fc1b
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
test eax, eax
jle 0x41fc1b
cmp byte [esp + eax + 0xb], 0x5c
je 0x41fc0f
dec eax
test eax, eax
jg 0x41fc03
mov byte [esp + eax + 0xc], 0
lea eax, [esp + 0xc]
push eax
call ebx
push dword [esp + 0x21c]
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test esi, esi
je 0x41fc3a
push esi
call ebx
push esi
call fcn.0041fa50
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret

Function at 0x41fc50
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x414
push ebx
mov ebx, dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
push esi
push edi
xor esi, esi
push esi
push esi
call ebx
mov edi, eax
test edi, edi
je 0x41fc88
lea eax, [edi*2 + 2]
push eax
call fcn.0041fa40
mov esi, eax
add esp, 4
test esi, esi
je 0x41fc88
push esi
lea ecx, [edi + 1]
push ecx
call ebx
push 0x412
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0040c060
add esp, 0xc
lea eax, [esp + 0xc]
push 0x208
push eax
push dword [esp + 0x430]
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x41fcec
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
test eax, eax
jle 0x41fcec
lea ecx, [esp + eax*2 + 0xa]
cmp word [ecx], 0x5c
je 0x41fcde
dec eax
sub ecx, 2
test eax, eax
jg 0x41fcd0
xor ecx, ecx
mov word [esp + eax*2 + 0xc], cx
lea eax, [esp + 0xc]
push eax
call ebx
push dword [esp + 0x424]
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov edi, eax
test esi, esi
je 0x41fd0b
push esi
call ebx
push esi
call fcn.0041fa50
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x414
ret

Function at 0x421430
Capabilities:
Get system information on windows

Disassembly:
push 0x90
push 0
push 0x432cbc
call fcn.0040c060
add esp, 0xc
mov dword [0x432cb8], 0x94
push 0x432cb8
call dword [sym.imp.kernel32.dll_GetVersionExA]
xor eax, eax
push 0x432c90
mov dword [0x432c90], eax
mov dword [0x432c94], eax
mov dword [0x432c98], eax
mov dword [0x432c9c], eax
mov dword [0x432ca0], eax
mov dword [0x432ca4], eax
mov dword [0x432ca8], eax
mov dword [0x432cac], eax
mov dword [0x432cb0], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
ret
Function at 0x423590
Capabilities:
Hash data using fnv

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax]
mov edx, dword [esp + 0x18]
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, dh
xor ecx, eax
movzx eax, byte [esp + 0x1a]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esp + 0x1b]
imul ecx, ecx, 0x1000193
xor ecx, eax
lea eax, [esp + 0x18]
imul ebx, ecx, 0x1000193
lea ecx, [esi + 4]
push ebx
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00422f90
mov edx, dword [eax + 4]
test edx, edx
je 0x423638
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x10]
and ecx, ebx
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], edx
jne 0x423615
cmp eax, edx
jne 0x42360d
mov eax, dword [esi + 8]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x42361d
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x42361d
cmp eax, edx
jne 0x42361d
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
dec dword [esi + 0xc]
mov eax, dword [edx + 4]
push 0xc
push edx
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
call fcn.0040fb0d
add esp, 8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x423770
Capabilities:
Hash data using fnv

Disassembly:
push ecx
mov edx, dword [esp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [esp + 8], ebx
mov eax, esi
shl eax, cl
cmp edx, eax
ja 0x4238b2
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
push ebp
mov ebp, dword [ebx + 4]
push edi
push ebp
lea ecx, [ecx + 1]
mov dword [esp + 0x1c], ebp
shl esi, cl
lea edi, [ebx + 0xc]
mov ecx, edi
lea eax, [esi + esi]
push eax
call fcn.00423680
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x18], eax
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx]
cmp ecx, ebp
je 0x42388e
mov eax, ecx
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
movzx edx, byte [eax + 0xa]
imul esi, esi, 0x1000193
xor esi, edx
movzx edx, byte [eax + 0xb]
imul esi, esi, 0x1000193
xor esi, edx
mov edx, dword [edi]
imul esi, esi, 0x1000193
and esi, dword [ebx + 0x18]
mov edi, dword [edx + esi*8]
lea ebp, [edx + esi*8]
cmp edi, dword [esp + 0x18]
jne 0x423822
mov dword [ebp], eax
mov dword [ebp + 4], eax
jmp 0x42387f
mov edx, dword [ebp + 4]
mov esi, dword [eax + 8]
cmp esi, dword [edx + 8]
jne 0x423850
mov ebx, dword [edx]
cmp ebx, eax
je 0x42384b
mov edi, dword [eax + 4]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
mov dword [ebp + 4], eax
jmp 0x42387b
cmp edi, edx
je 0x423860
mov edx, dword [edx + 4]
cmp esi, dword [edx + 8]
je 0x423896
cmp edi, edx
jne 0x423854
mov ebx, dword [eax + 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov esi, dword [edx + 4]
mov dword [esi], eax
mov dword [edx + 4], edi
mov dword [ecx + 4], ebx
mov dword [eax + 4], esi
mov dword [ebp], eax
mov ebx, dword [esp + 0x10]
lea edi, [ebx + 0xc]
mov eax, ecx
cmp ecx, dword [esp + 0x18]
jne 0x4237d3
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret 4
mov edi, dword [eax + 4]
mov ebx, dword [edx]
mov dword [edi], ecx
mov esi, dword [ecx + 4]
mov dword [esi], ebx
mov edx, dword [ebx + 4]
mov dword [edx], eax
mov dword [ebx + 4], esi
mov dword [ecx + 4], edi
mov dword [eax + 4], edx
jmp 0x42387b
push str.invalid_hash_bucket_count
call fcn.0040fb0d
int3
Function at 0x10001860
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x100094fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x134]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], edi
push ecx
push 0x2001f
push edi
push edx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x100018d8
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, edi
je 0x100018c8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
cmp eax, edi
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x100018ea
jmp 0x100018dc
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x10001985
push ecx
jmp 0x1000197f
lea eax, [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push edi
push edi
lea edx, [esp + 0x1c]
push edi
lea eax, [esp + 0x34]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x10001950
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.10001860
mov ebx, eax
cmp ebx, edi
jne 0x100019a1
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x34]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x10001912
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x10001963
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x134]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x10001985
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x100019b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x10001987
Function at 0x100025b0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10009680
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x100026b5
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
cmp ebx, eax
mov dword [esp + 0x18], ebx
je 0x100026b5
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
jmp 0x100025f6
mov ebx, dword [esp + 0x18]
lea eax, [ebx + 8]
lea ecx, [esp + 0x14]
push eax
call fcn.1000400e
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x10002693
mov eax, dword [ebp + 0x20]
mov esi, dword [eax]
cmp esi, eax
je 0x10002693
push 0x1000d3c0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esi + 8]
lea ecx, [esp + 0x10]
push edx
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
mov eax, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
push eax
push edx
call edi
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
mov byte [esp + 0x28], 0
lea ecx, [esp + 0x10]
jne 0x100026ca
call sub.MFC42.DLL_CString::CString
mov esi, dword [esi]
mov eax, dword [ebp + 0x20]
cmp esi, eax
jne 0x10002623
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ebx, dword [ebx]
mov eax, dword [ebp + 0x14]
cmp ebx, eax
mov dword [esp + 0x18], ebx
jne 0x100025f2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x10002930
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x100096f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov ecx, dword [str.SOFTWAREEPSONCreativity_SuiteEasy_Photo_Print]
lea eax, [esp + 8]
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push 0x80000002
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x100029df
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 8]
push edi
mov edi, dword [str.EasyInstallPath]
push 0x208
mov ecx, ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 0x208
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x10]
mov dword [esp + 0x24], 0
push edx
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
mov ecx, ebx
mov edi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x100029d3
push esi
call ebx
xor esi, esi
test edi, edi
pop edi
je 0x100029f2
test esi, esi
je 0x100029df
push esi
call ebx
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
test esi, esi
je 0x100029f9
push esi
call ebx
mov ecx, dword [esp + 0x10]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x100038b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100098e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x18]
push edi
mov esi, ecx
push eax
mov dword [esp + 0x24], 0
call fcn.10003c10
mov ebp, eax
mov ecx, dword [esp + 0x34]
push 0x1000c378
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x34], 1
call sub.MFC42.DLL_operator
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_operator_1
push 0x1000c378
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x30], 3
push eax
call sub.MFC42.DLL_operator
push ebp
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 6
call sub.MFC42.DLL_CString::CString
cmp edi, 9
jne 0x100039c0
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x3c]
push str._s_03d
push ecx
mov byte [esp + 0x38], 0xa
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x34]
lea ecx, [esp + 0x38]
push edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 6
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esi]
push 0
push edi
mov ecx, esi
call fcn.10003bc0
mov edi, dword [esp + 0x34]
push eax
lea eax, [esp + 0x40]
mov ecx, esi
push eax
push edi
call dword [ebp + 0x18]
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
Function at 0x10003ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10009958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x18]
push edi
mov esi, ecx
push eax
call fcn.10003c10
mov ebp, eax
mov ecx, dword [esp + 0x2c]
push 0x1000c38c
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_operator
push ebp
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x2c], 1
push eax
call sub.MFC42.DLL_operator_1
push 0x1000c38c
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_operator
mov edx, dword [esp + 0x34]
mov byte [esp + 0x24], 3
push edx
push eax
lea eax, [esp + 0x38]
push eax
call sub.MFC42.DLL_operator_1
push eax
push edi
mov ecx, esi
mov byte [esp + 0x2c], 4
call fcn.10003bc0
mov ecx, dword [esi + eax*4 + 4]
call fcn.10009130
lea ecx, [esp + 0x30]
mov esi, eax
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x10005dc0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xcc
push ebx
push ebp
push esi
lea eax, [esp + 0x44]
push edi
xor ebp, ebp
push eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x4c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x58], 1
jne 0x10005e83
cmp dword [esp + 0x50], ebp
jne 0x10005e83
lea ecx, [esp + 0x14]
push 0x32
push ecx
push 0x1001
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [0x1000ed88]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x1000d3c0
push eax
call edi
add esp, 8
test eax, eax
je 0x10005e59
mov ebx, 0x1000ed88
mov esi, ebx
mov ebx, dword [ebx]
lea edx, [esp + 0x14]
push edx
push ebx
call edi
add esp, 8
test eax, eax
je 0x10005e60
mov eax, dword [esi + 8]
add esi, 8
push 0x1000d3c0
push eax
inc ebp
mov ebx, esi
call edi
add esp, 8
test eax, eax
jne 0x10005e30
push 0x1000d3c0
jmp 0x10005e9c
mov esi, dword [esp + 0xe0]
lea eax, [ebp*8 + 0x1000ed8c]
push eax
mov ecx, esi
call fcn.1000400e
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
lea ecx, [esp + 0x14]
push 0x32
push ecx
push 0x59
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [esp + 0x14]
push edx
mov esi, dword [esp + 0xe4]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret

Function at 0x10005ec0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0xcc
push ebx
push ebp
push esi
lea eax, [esp + 0x44]
push edi
xor ebp, ebp
push eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x4c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x58], 1
jne 0x10005f80
cmp dword [esp + 0x50], ebp
jne 0x10005f80
lea ecx, [esp + 0x14]
push 0x32
push ecx
push 7
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [0x1000e610]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x1000d3c0
push eax
call edi
add esp, 8
test eax, eax
je 0x10005f56
mov ebx, 0x1000e610
mov esi, ebx
mov ebx, dword [ebx]
lea edx, [esp + 0x14]
push edx
push ebx
call edi
add esp, 8
test eax, eax
je 0x10005f5d
mov eax, dword [esi + 8]
add esi, 8
push 0x1000d3c0
push eax
inc ebp
mov ebx, esi
call edi
add esp, 8
test eax, eax
jne 0x10005f2d
push 0x1000d3c0
jmp 0x10005f99
mov esi, dword [esp + 0xe0]
lea eax, [ebp*8 + 0x1000e614]
push eax
mov ecx, esi
call fcn.1000400e
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
lea ecx, [esp + 0x14]
push 0x32
push ecx
push 0x5a
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [esp + 0x14]
push edx
mov esi, dword [esp + 0xe4]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret
Function at 0x403220
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10054
call fcn.0041a220
mov eax, dword [0x4415f0]
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.00416000
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 0x40329d
cmp eax, 0x10000
ja 0x40329d
lea eax, [esp + 0x50]
push eax
call fcn.004213ba
add esp, 4
mov ecx, dword [esp + 0x10050]
xor ecx, esp
call fcn.0041a202
add esp, 0x10054
ret
mov ecx, dword [esp + 0x10050]
xor eax, eax
xor ecx, esp
call fcn.0041a202
add esp, 0x10054
ret

Function at 0x403340
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x54
mov eax, dword [0x4415f0]
xor eax, esp
mov dword [esp + 0x50], eax
push esi
push 0x42f8c0
call fcn.00403220
mov dword [0x442640], eax
xor eax, eax
push 0x28
mov word [esp + 0xc], ax
lea eax, [esp + 0xc]
push 0x42f8c0
push eax
call fcn.00416000
add esp, 0x10
lea eax, [esp + 4]
push 0x42f8c8
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push str.PYTHONHOME
call fcn.00403220
push 1
mov dword [0x442644], eax
call fcn.00417020
mov esi, eax
xor eax, eax
push 0x28
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push str.PYTHONHOME
push eax
call fcn.00416000
add esp, 0x14
lea eax, [esp + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 1
call fcn.00417020
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
mov eax, dword [sym.imp.python39.dll__Py_path_config]
mov ecx, dword [esp + 0x54]
pop esi
xor ecx, esp
mov dword [eax + 0x18], 1
call fcn.0041a202
add esp, 0x54
ret
Function at 0x4036b0
Capabilities:
Set environment variable

Disassembly:
sub esp, 0x54
mov eax, dword [0x4415f0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
mov ebp, dword [esp + 0x64]
push esi
push edi
call fcn.0040dc10
push str.environ
push eax
call dword [sym.imp.python39.dll_PyObject_GetAttrString]
push ebx
mov esi, eax
call dword [sym.imp.python39.dll_PyUnicode_FromString]
add esp, 0xc
mov edi, eax
xor eax, eax
mov word [esp + 0x10], ax
lea eax, [esp + 0x10]
push 0x28
push ebx
push eax
call fcn.00416000
add esp, 0xc
lea eax, [esp + 0x10]
test ebp, ebp
je 0x403750
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0xffffffffffffffff
push ebp
call sub.python39.dll_PyUnicode_FromWideChar
mov ebx, eax
push ebx
push edi
push esi
call dword [sym.imp.python39.dll_PyObject_SetItem]
add esp, 0x14
test eax, eax
je 0x40373d
push 1
call dword [sym.imp.python39.dll_PyErr_PrintEx]
add esp, 4
push 1
call dword [sym.imp.python39.dll_Py_Exit]
add dword [ebx], 0xffffffff
jne 0x40376d
mov eax, dword [ebx + 4]
push ebx
mov eax, dword [eax + 0x18]
call eax
add esp, 4
jmp 0x40376d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
push esi
call dword [sym.imp.python39.dll_PyObject_DelItem]
add esp, 8
test eax, eax
je 0x40376d
call fcn.00402ed0
add dword [edi], 0xffffffff
jne 0x40377e
mov eax, dword [edi + 4]
push edi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
add dword [esi], 0xffffffff
jne 0x40378f
mov eax, dword [esi + 4]
push esi
mov eax, dword [eax + 0x18]
call eax
add esp, 4
mov ecx, dword [esp + 0x60]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041a202
add esp, 0x54
ret