joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a0c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, edx
mov ebx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov esi, 2
mov dword [ebx + 4], eax
shr ecx, 4
and ecx, 1
cmp eax, 0xffffffff
cmovne esi, ecx
cmp esi, 2
je 0x40a1f5
cmp esi, 1
mov dword [ebp - 0x10], ebx
jne 0x40a17a
push 0x20a
call fcn.0040d9ae
add esp, 4
mov ebx, eax
push 0x20a
push 0
push eax
call fcn.0040fff0
add esp, 0xc
push ebx
push str.mozlock.
push edi
call fcn.0040c420
add esp, 0xc
test eax, eax
je 0x40a222
push ebx
call fcn.00416af2
add esp, 4
test eax, eax
je 0x40a222
mov ecx, eax
nop word cs:[eax + eax]
nop
dec ecx
movzx edx, word [ebx + ecx*2]
cmp dx, 0x5c
je 0x40a165
cmp dx, 0x2f
jne 0x40a1fd
cmp eax, ecx
jb 0x40a150
test ecx, ecx
mov eax, ecx
mov word [ebx + ecx*2], 0
jne 0x40a150
jmp 0x40a222
push 0
push 0x80
push 3
push 0
push 0
push 0x60000
mov dword [ebp - 0x14], edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp - 0x10]
mov ebx, eax
mov eax, dword [edi + 8]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x40a1ad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov edi, dword [ebp - 0x14]
cmp ebx, 0xffffffff
mov ebx, dword [ebp - 0x10]
je 0x40a1f5
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov edx, 2
mov dword [ebx + 4], eax
shr ecx, 4
and ecx, 1
cmp eax, 0xffffffff
cmovne edx, ecx
cmp esi, edx
je 0x40a1f5
mov eax, dword [ebx + 8]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x40a1ee
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0xffffffff
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x2f
push ebx
call fcn.00410211
add esp, 8
mov dword [ebp - 0x14], eax
push 0x5c
push ebx
call fcn.00410211
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
cmova eax, ecx
test eax, eax
jne 0x40a22d
push ebx
call fcn.0040d9b7
add esp, 0xc
jmp 0x40a1f8
mov ecx, dword [ebp - 0x10]
add eax, 2
mov edx, eax
add ecx, 0xc
call fcn.00407d10
test eax, eax
js 0x40a222
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x40a222
push 0
push 0x4000000
push 4
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 8]
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x40a28a
mov eax, dword [ebp - 0x14]
mov dword [edx + 8], eax
push ebx
mov ebx, edx
call fcn.0040d9b7
add esp, 4
mov ebx, dword [ebx + 8]
jmp 0x40a1b3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
jmp 0x40a271
Function at 0x40a2a0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x43300c]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
call fcn.00416af2
add esp, 4
test eax, eax
je 0x40a48d
mov edi, eax
movzx eax, word [ebx + eax*2 - 2]
cmp ax, 0x5c
je 0x40a2da
cmp ax, 0x2f
jne 0x40a2db
dec edi
lea eax, [edi + 2]
mov ecx, 0xffffffff
add eax, eax
cmovae ecx, eax
push ecx
call fcn.0040d9ae
add esp, 4
mov esi, eax
lea eax, [edi + edi + 4]
push eax
push 0
push esi
call fcn.0040fff0
add esp, 0xc
lea eax, [edi + 1]
push eax
push ebx
push esi
call fcn.00416f6b
add esp, 0xc
push esi
call fcn.00414f13
add esp, 4
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0xf0000000
push 1
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x40a3fc
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40a423
add edi, edi
push 0
push edi
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40a423
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push 0
push eax
push ecx
push 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x40a4a3
mov edi, dword [ebp - 0x20]
push edi
call fcn.0040d9ae
add esp, 4
mov ebx, eax
push edi
push 0
push eax
call fcn.0040fff0
add esp, 0xc
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40a423
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40a3e5
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x14]
mov edi, 1
test eax, eax
je 0x40a425
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x40a425
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40a423
push 0xf0000008
push 1
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40a34c
xor edi, edi
push esi
call fcn.0040d9b7
add esp, 4
test edi, edi
je 0x40a48d
mov esi, dword [ebp + 0xc]
push 0x104
push str.SOFTWAREMozillaMaintenanceService_
push esi
call fcn.00416f6b
add esp, 0xc
cmp dword [ebp - 0x20], 0
mov edi, ebx
je 0x40a47d
add esi, 0x48
xor ebx, ebx
nop word cs:[eax + eax]
nop
movzx eax, byte [edi + ebx]
push eax
push str._.2x
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
inc ebx
add esi, 4
cmp ebx, dword [ebp - 0x20]
jb 0x40a460
push edi
call fcn.0040d9b7
add esp, 4
mov esi, 1
jmp 0x40a48f
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x40a425
Function at 0x40b1d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x43300c]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [esi], 0
jne 0x40b1fd
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], eax
push dword [esi]
push 1
push 0xd
push str._Warning:
call fcn.00416536
add esp, 0x10
mov ebx, dword [ebp - 0x14]
mov edi, dword [esi]
call fcn.00401f60
push ebx
push 0
push dword [ebp + 0xc]
push edi
push dword [eax + 4]
push dword [eax]
call fcn.00410980
add esp, 0x18
push dword [esi]
push 1
push 4
push str._n
call fcn.00416536
add esp, 0x10
jmp 0x40b1eb
Function at 0x40b540
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x43300c]
mov edi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x8000
push section..rdata
call sub.SHELL32.dll_SHGetKnownFolderPath
xor esi, esi
test eax, eax
js 0x40b58a
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00416af2
add esp, 4
cmp eax, 0x105
jb 0x40b59e
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x105
push ebx
push edi
call fcn.00416f6b
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Mozilla_Maintenance_Service
push edi
call fcn.0040c350
add esp, 8
test eax, eax
je 0x40b58a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b5e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b58a
push str.UpdateLogs
push edi
call fcn.0040c350
add esp, 8
test eax, eax
je 0x40b58a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b612
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40b58a
mov esi, 1
jmp 0x40b58a
Function at 0x40bd00
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x40bdd6
mov esi, eax
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40bdf9
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x30], 0xcf
imul ebx, ecx, 0x3e8
test ebx, ebx
je 0x40be1e
xor esi, esi
jmp 0x40bd7d
cmp dword [ebp - 0x30], 1
je 0x40be3e
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x32
cmp esi, ebx
jae 0x40be25
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x40bd60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jle 0x40be7a
lea ecx, [eax - 0x41c]
cmp ecx, 0xa
ja 0x40bdb8
mov edx, 0x601
bt edx, ecx
jb 0x40bd6a
cmp eax, 0x7c
je 0x40bebb
cmp eax, 0x45b
jne 0x40bec8
mov ebx, 0xde
mov dword [ebp - 0x30], ebx
jmp 0x40be43
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
mov ebx, 0xfd
sete cl
xor ecx, 0xff
cmp eax, 5
cmovne ebx, ecx
jmp 0x40be51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x40be2a
cmp edi, 5
je 0x40be65
cmp edi, 6
jne 0x40be73
mov ebx, 0xec
jmp 0x40be51
mov ebx, 0xcf
jmp 0x40be43
mov ebx, dword [ebp - 0x30]
jmp 0x40be43
cmp edi, 0x7b
je 0x40be6c
cmp edi, 0x424
jne 0x40be73
mov ebx, 0xee
jmp 0x40be51
mov ebx, 1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, 0xeb
jmp 0x40be51
mov ebx, 0xed
jmp 0x40be51
mov ebx, 0xef
jmp 0x40be51
cmp eax, 0x56
jg 0x40be93
cmp eax, 5
je 0x40bea7
cmp eax, 6
jne 0x40bec8
mov ebx, 0xd9
mov dword [ebp - 0x30], ebx
jmp 0x40be43
cmp eax, 0x57
je 0x40beb1
cmp eax, 0x7a
jne 0x40bec8
mov ebx, 0xdb
mov dword [ebp - 0x30], ebx
jmp 0x40be43
mov ebx, 0xda
mov dword [ebp - 0x30], ebx
jmp 0x40be43
mov ebx, 0xdc
mov dword [ebp - 0x30], ebx
jmp 0x40be43
mov ebx, 0xdd
mov dword [ebp - 0x30], ebx
jmp 0x40be43
mov ebx, 0xdf
mov dword [ebp - 0x30], ebx
jmp 0x40be43
Function at 0x40bee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x41c
mov eax, dword [0x43300c]
lea edi, [ebp - 0x424]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x20a
push 0
push edi
call fcn.0040fff0
add esp, 0xc
mov ecx, edi
call fcn.0040b540
xor esi, esi
test eax, eax
je 0x40bf44
lea ebx, [ebp - 0x21a]
push 0x20a
push 0
push ebx
call fcn.0040fff0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, str..status
push ebx
call fcn.0040b620
add esp, 4
test eax, eax
jne 0x40bf5b
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
mov eax, esi
add esp, 0x41c
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
push edi
call fcn.0040c350
add esp, 8
test eax, eax
je 0x40bf44
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40bf44
mov edi, eax
mov eax, dword [ebp + 0xc]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.0040bfe0
add esp, 0xc
push ebx
call fcn.004168a0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x428]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
setne al
cmp dword [ebp - 0x428], esi
sete cl
and cl, al
movzx esi, cl
jmp 0x40bf44

Function at 0x40c030
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov eax, dword [0x43300c]
mov esi, 0x102
xor eax, ebp
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], eax
je 0x40c122
mov ebx, dword [ebp + 8]
xor esi, esi
nop word [eax + eax]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x40c0c0
mov edi, eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40c0e0
nop dword [eax + eax]
lea eax, [ebp - 0x218]
push eax
push ebx
call fcn.00414da8
add esp, 8
test eax, eax
je 0x40c0f0
lea eax, [ebp - 0x23c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40c090
mov ebx, 0x490
jmp 0x40c0f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x490
jne 0x40c101
jmp 0x40c120
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x40c0f2
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x490
je 0x40c120
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
mov ebx, dword [ebp + 8]
cmp esi, dword [ebp + 0xc]
jne 0x40c060
mov esi, 0x102
jmp 0x40c122
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
mov eax, esi
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40c1a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov eax, dword [0x43300c]
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x21a]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x20a
push 0
push edi
call fcn.0040fff0
add esp, 0xc
push ebx
call fcn.00416af2
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x40c210
mov esi, dword [ebp + 0xc]
push 0x104
push ebx
push edi
call fcn.00416f6b
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [esi], ecx
mov esi, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e0d1
mov eax, esi
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40c290
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x254
mov eax, dword [0x43300c]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40c2fc
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40c332
lea eax, [ebp - 0x22c]
push 0x105
push eax
push 0x4347a4
call fcn.00416f6b
add esp, 0xc
mov esi, 0x4347a4
mov word [0x4349ac], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040e0d1
mov eax, esi
add esp, 0x254
pop esi
pop ebp
ret
lea ecx, [ebp - 0x258]
lea eax, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40c2c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.004141ec
cmp esi, 2
mov ecx, 9
cmove ecx, esi
xor esi, esi
mov dword [eax], ecx
jmp 0x40c2e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x12
je 0x40c2e7
call fcn.004141ec
mov dword [eax], 2
jmp 0x40c2e7

Function at 0x41d959
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041dba4

Function at 0x420360
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042036b
Function at 0x401120
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x452800]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x43d03e
call fcn.0042a3c8
and dword [ebp - 0x18], 0
mov ecx, edi
mov dword [ebp - 0x1c], edi
call fcn.00401f2f
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x214]
mov dword [ebp - 0x18], 1
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x4011a5
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0040211b
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jne 0x4011a5
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004285ca
add ebp, 0x20c
leave
ret 4

Function at 0x40166c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x452800]
xor eax, ebp
mov dword [ebp + 0x190], eax
and dword [ebp - 0x7c], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
call fcn.00429440
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.00402152
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
mov eax, esi
call fcn.004285ca
add ebp, 0x194
leave
ret

Function at 0x405a90
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x452800]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xa
lea eax, [ebp - 0x18]
push eax
push 9
push 0x400
mov esi, 0x409
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x405acf
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.004296df
add esp, 0xc
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004285ca
leave
ret
Function at 0x4070e2
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call fcn.004287c5
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x18]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 0xc

Function at 0x407112
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x43d347
call fcn.0042a3c8
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 8]
call esi
test eax, eax
jne 0x4071d9
cmp dword [ebp - 0x10], 1
je 0x407158
cmp dword [ebp - 0x10], 2
jne 0x4071d9
mov eax, dword [ebp - 0x14]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004090b3
mov ebx, eax
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax + 1]
push eax
push 0
push ebx
call fcn.00429440
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [edi + 8]
call esi
test eax, eax
jne 0x4071cd
cmp dword [ebp - 0x10], 1
je 0x4071a8
cmp dword [ebp - 0x10], 2
jne 0x4071cd
push ebx
lea ecx, [ebp + 8]
call fcn.00402152
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
push eax
call fcn.00402410
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004023f6
push ebx
call fcn.004090a8
xor eax, eax
pop ecx
inc eax
jmp 0x4071db
xor eax, eax
call fcn.0042a4a0
ret 8

Function at 0x4071e3
Capabilities:
Set registry value

Disassembly:
push 4
push dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x14]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x4079ab
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov eax, dword [0x452800]
xor eax, ebp
mov dword [ebp + 0x398], eax
push ebx
xor eax, eax
push 0x40e
mov word [ebp - 0x78], ax
xor ebx, ebx
lea eax, [ebp - 0x76]
push ebx
push eax
call fcn.00429440
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x407a0c
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.0040211b
mov bl, 1
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x7c]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x398]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004285ca
add ebp, 0x39c
leave
ret
Function at 0x407e31
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x43d4d7
call fcn.0042a3c8
test byte [0x45a39c], 1
jne 0x407d1e
or dword [0x45a39c], 1
call fcn.00409507
push eax
mov ecx, 0x45a398
call fcn.00401f73
push 0x43ee75
call fcn.00428906
pop ecx
call fcn.00409507
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f73
xor ebx, ebx
push 0x446aa4
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.00402152
mov esi, eax
push str.systweak
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00402152
push 0x4466c0
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 2
call fcn.004084ed
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 3
call fcn.00401a5d
add esp, 0xc
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004023f6
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004023f6
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.004023f6
mov eax, dword [0x45a398]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [eax - 0xc], ebx
je 0x407de5
push eax
call edi
test eax, eax
je 0x407de5
push dword [0x45a398]
push dword [ebp + 8]
call fcn.00429911
pop ecx
mov bl, 1
pop ecx
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004023f6
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004023f6
mov al, bl
call fcn.0042a4a0
ret
lea esi, [ebp - 0x10]
call fcn.004079ab
test al, al
je 0x407dc7
push ecx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x24], esp
mov ecx, esp
push eax
call fcn.00401f43
mov ecx, esi
call fcn.00401568
mov esi, dword [ebp - 0x10]
pop ecx
push esi
call edi
test eax, eax
jne 0x407e20
push esi
call fcn.00407a43
pop ecx
push esi
call edi
test eax, eax
je 0x407dc7
lea eax, [ebp - 0x10]
push eax
mov ecx, 0x45a398
call fcn.00402410
push esi
jmp 0x407dbb
jmp 0x407ce7
Function at 0x407e36
Capabilities:
Read .ini file

Disassembly:
push 0x10
mov eax, 0x43d2a5
call fcn.0042a3c8
xor ebx, ebx
mov eax, 0x458370
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
call fcn.00407982
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.00402152
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00402152
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00402196
call fcn.00409507
push eax
lea ecx, [ebp - 0x10]
call fcn.00401f73
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 3
push dword [ebp - 0x14]
mov edi, 0x458354
mov ecx, edi
call fcn.00418c49
test eax, eax
je 0x407eb2
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], ebx
jne 0x407f78
push 0x2000
push ebx
mov esi, 0x458390
push esi
call fcn.00429440
add esp, 0xc
push dword [0x458388]
push 0x1000
push esi
push 0x44571c
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x10]
call fcn.00402196
cmp word [0x458390], 0x22
jne 0x407efe
push 0x20
pop eax
mov word [0x458390], ax
cmp word [0x458390], bx
je 0x407f5c
push esi
lea ecx, [ebp - 0x10]
call fcn.0040211b
push 0x446ae4
push 0x446ae8
lea eax, [ebp - 0x10]
push eax
call fcn.00408373
push 0x446af0
push 0x446af4
lea eax, [ebp - 0x10]
push eax
call fcn.00408373
push 0x446afc
push 0x446b00
lea eax, [ebp - 0x10]
push eax
call fcn.00408373
push 0x4466c0
push 0x446b08
lea eax, [ebp - 0x10]
push eax
call fcn.00408373
lea ebx, [ebp - 0x10]
call fcn.00401c64
mov ebx, eax
call fcn.00401cb1
push dword [ebp - 0x10]
mov ecx, edi
push dword [ebp - 0x14]
call fcn.004088b7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00401f43
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004023f6
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.004023f6
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004023f6
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
call fcn.0042a4a0
ret 0xc