joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027cb0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x10039340]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10027dab
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x10027dab
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x10027d0a
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x10027ce8
jmp 0x10027dab
cmp edx, 0x200
jae 0x10027e11
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x10027dab
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x10027daa
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x10027daa
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x10027df3
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x10027d90
pop edi
mov eax, dword [0x1003b178]
test eax, eax
jne 0x10027dd1
push str.setlocale
call fcn.10028bd0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10027dcc
or eax, 0xffffffff
mov dword [0x1003b178], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x10027dff
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100261c4
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x10027daa
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.100261c4
mov esp, ebp
pop ebp
ret
call fcn.10026ca5
int3

Function at 0x10028310
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.10028340
mov esi, dword [ebp + 8]
test al, al
je 0x1002832e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.10028350
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10029d50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10029d7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10029d7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403f78
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405c54
test esi, esi
jne 0x403fae
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405dbc
jmp 0x403fcc
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403ebc
mov edi, eax
test esi, esi
je 0x403fcc
cmp dword [ebx], 0
je 0x403fcc
dec esi
jmp 0x403fb5
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4059d4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41f04c], 0
je 0x405a3b
cmp word [0x41f338], 0xd7b2
jne 0x4059fd
cmp dword [0x41f340], 0
jbe 0x4059fd
mov eax, 0x41f334
call dword [0x41f350]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x405a68
call fcn.00406158
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41d022], 0
jne 0x405a57
push 0
push 0x41d9ca
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407288
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4073ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405c54
cmp si, word [0x41da08]
jb 0x407320
cmp si, word [0x41dc08]
ja 0x407320
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x407320
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x41da08]
jae 0x4072fa
mov edi, ebx
dec edi
jmp 0x40731b
cmp si, word [ebx*8 + 0x41da08]
jbe 0x40730a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40731b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x41da0c]
call fcn.00407198
jmp 0x407320
cmp edi, dword [ebp - 8]
jae 0x4072e4
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x4073cf
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4073cf
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004062f0
push dword [ebp - 0x160]
push 0x407408
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004062f0
push dword [ebp - 0x164]
push 0x407418
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004062f0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004064a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4073f4
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405cb4
ret
Function at 0x4075a0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4076a3
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x421b7c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x421b94]
jne 0x4075ec
mov eax, esi
mov edx, 0x421b96
mov ecx, 0x55
call fcn.004062f0
push 0x421b7c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40768d
push 0x421b7c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405c54
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40765b
cmp byte [0x421b78], 0
je 0x407620
mov edx, esi
mov eax, ebx
call fcn.00407484
jmp 0x40765b
mov edx, esi
mov eax, ebx
call fcn.00407288
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40765b
cmp dword [esi], 0
je 0x407644
mov eax, esi
mov edx, 0x4076bc
call fcn.004063c8
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00407288
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004063c8
push 0x421b7c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x421b94], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040625c
push eax
push 0x421b96
call sub.kernel32.dll_lstrcpynW
push 0x421b7c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4076aa
lea eax, [ebp - 4]
call fcn.00405c54
ret
Function at 0x4078d8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405d38
xor eax, eax
push ebp
push 0x407afd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407918
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x407932
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040625c
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x407ae7
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407b0c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407a01
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407b0c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407a01
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407b48
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407a01
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407b48
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407a01
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407b7c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407a01
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407bb0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x407ae7
xor eax, eax
push ebp
push 0x407ae0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004076e4
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407a70
mov eax, dword [ebp - 0x10]
call fcn.00403c0c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004062b4
jmp 0x407abb
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x407bf0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407abb
mov eax, dword [ebp - 0x10]
call fcn.00403c0c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x407bf0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004062b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407ae7
cmp dword [ebp - 8], 0
je 0x407ad6
mov eax, dword [ebp - 8]
call fcn.00403c28
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407b04
lea eax, [ebp - 4]
call fcn.00405c54
ret
Function at 0x407de0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405d38
xor eax, eax
push ebp
push 0x407ea0
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004062f0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406420
mov eax, dword [ebx]
call fcn.00407ca8
test al, al
jne 0x407e7d
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004062f0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406420
mov eax, dword [ebx]
call fcn.00407ca8
test al, al
jne 0x407e7d
mov eax, ebx
call fcn.00405c54
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407ea7
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405cb4
lea eax, [ebp - 4]
call fcn.00405c54
ret

Function at 0x408524
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x41544c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040625c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4154b6
test ah, 4
je 0x4154af
test bl, bl
jne 0x415474
mov al, 1
jmp 0x4154dd
test al, 0x10
je 0x41547c
xor eax, eax
jmp 0x4154dd
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4154a0
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x4154dd
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x4154dd
test al, 0x10
sete al
jmp 0x4154dd
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x4154d7
cmp ebx, 3
je 0x4154d7
cmp ebx, 0x7b
je 0x4154d7
mov eax, esi
call fcn.0041540c
test al, al
jne 0x4154db
xor eax, eax
jmp 0x4154dd
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x416b38
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416b71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405dbc
jmp 0x416b7a
mov eax, ebx
mov edx, esi
call fcn.00405f38
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416b84
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x416ba6
movzx eax, word [esp]
jmp 0x416ba8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41787c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4179a1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00417684
mov esi, eax
mov eax, dword [0x41e70c]
cmp byte [eax], 0
je 0x417949
mov eax, dword [0x41e630]
call fcn.004043dc
call fcn.00403d60
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41784c]
call fcn.00406d14
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4179bc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x417985
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x41e608]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x421c44]
call fcn.00406dcc
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4179a8
lea eax, [ebp - 4]
mov edx, dword [0x41784c]
call fcn.00406d20
ret

Function at 0x419018
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406028
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00408504
mov edi, eax
cmp edi, 0x104
jbe 0x418fbf
mov eax, edi
add eax, eax
call fcn.00403c0c
mov esi, eax
jmp 0x418fc1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00408504
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x418ffc
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x418fe6
mov eax, esp
cmp esi, eax
je 0x419009
mov eax, esi
call fcn.00403c28
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x419044
cmp bl, 0
je 0x419040
cmp bl, 0x41
jl 0x41903b
cmp bl, 0x5a
jg 0x41903b
or bl, 0x20
xor al, bl
inc esi
jmp 0x41901f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418f80

Function at 0x419238
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004062f0
add esp, 0x800
pop ebx
ret
Function at 0x402000
Capabilities:
Terminate process

Disassembly:
push 0
push str.No__really.
push str.Game_over.
push 0
call dword [sym.imp.user32.dll_MessageBoxA]
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x10051286
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x10051295
pop dword [ebp - 0x30]
mov eax, 0xe265d121
add eax, 0x2d9f4174
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xcb7781e9
sub dword [ebp - 0x40], 0x7d253c9e
mov dword [ebp - 0x3c], 0x6b22a0dd
sub dword [ebp - 0x3c], 0x38ef5498
mov dword [ebp - 0x38], 0x5232220e
add dword [ebp - 0x38], 0xfa1a2220
mov dword [ebp - 0x34], 0x12e3e713
sub dword [ebp - 0x34], 0x12e3e713
lea eax, [ebp - 0x40]
push eax
mov eax, 0x14bbec0b
add eax, 0xfb49a501
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x118306a8
sub dword [ebp - 0x40], 0x9d109d52
mov dword [ebp - 0x3c], 0x719d0e75
sub dword [ebp - 0x3c], 0x3030ad00
mov dword [ebp - 0x38], 0x96684d11
add dword [ebp - 0x38], 0xcd071f5b
mov dword [ebp - 0x34], 0x7ad10ad8
add dword [ebp - 0x34], 0x852ef528
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x3ae812b6
add eax, 0xd51d7d8a
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x5d354
push 0
call eax
mov ecx, 0x8368c294
sub ecx, 0x83687bf8
mov esi, eax
mov edx, 0x10069400
add edx, dword [ebp - 0x30]
mov edi, 0x44db093d
add edi, 0x8e3ed38b
add dword [ebp - 0x28], 0xf4bdb042
mov ebx, dword [edx]
xor dword [ebp - 4], 0x24c4dfa0
add ebx, edi
mov dword [esi], ebx
add esi, 0x93723a28
add esi, 0x6c8dc5dc
add edx, 4
loop 0x100513b1
add eax, 0x98d75e3c
sub eax, 0x98d650f9
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x401580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x2a4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push eax
push 0
mov ecx, 0x23
mov eax, 0x1c
cmovne eax, ecx
mov ebx, edx
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x401665
push 0x27
lea eax, [ebp - 0x9c]
push eax
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
js 0x401665
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x4c]
push edx
push str._d._d._d._d
push 0x24
push eax
call fcn.00401010
add esp, 0x1c
test eax, eax
js 0x401665
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x2a4]
push eax
push str._lsApplicationsCache_lsv_ls.msi
push edi
call fcn.00403050
add esp, 0x14
test eax, eax
js 0x401665
mov edx, dword [edi]
sub esp, 8
mov ecx, ebx
call fcn.00403490
test eax, eax
jns 0x401665
cmp dword [ebp + 8], 1
jne 0x401665
push edi
push 0
mov edx, ebx
mov ecx, esi
call fcn.00401580
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403614
mov esp, ebp
pop ebp
ret

Function at 0x401680
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
lea eax, [ebp - 0x2a4]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push eax
push 0
mov ecx, 0x23
mov eax, 0x1c
cmovne eax, ecx
mov ebx, edx
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x401765
push 0x27
lea eax, [ebp - 0x9c]
push eax
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
js 0x401765
mov ecx, dword [esi + 0xa0]
mov edx, dword [esi + 0x9c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [ebp - 0x4c]
push edx
push str._d._d._d._d
push 0x24
push eax
call fcn.00401010
add esp, 0x1c
test eax, eax
js 0x401765
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x2a4]
push eax
push str._lsApplicationsCache_lsv_ls.mst
push edi
call fcn.00403050
add esp, 0x14
test eax, eax
js 0x401765
mov edx, dword [edi]
sub esp, 8
mov ecx, ebx
call fcn.00403490
test eax, eax
jns 0x401765
cmp dword [ebp + 8], 1
jne 0x401765
push edi
push 0
mov edx, ebx
mov ecx, esi
call fcn.00401680
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403614
mov esp, ebp
pop ebp
ret
Function at 0x401920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push 0x208
mov eax, dword [edi]
test eax, eax
je 0x401957
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
jmp 0x401966
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x401982
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403614
mov esp, ebp
pop ebp
ret
mov dword [edi], esi
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x401a29
cmp eax, 0x104
jae 0x401a29
lea eax, [ebp - 0x414]
push eax
push 0
push 0x41899c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4019e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4019dc
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x401a45
mov eax, 0x80004005
jmp 0x401a45
lea edx, [ebp - 0x414]
mov ecx, 0x104
sub edx, esi
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x401a10
movzx eax, word [edx + esi]
test ax, ax
je 0x401a10
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x4019f2
test ecx, ecx
lea eax, [esi - 2]
cmovne eax, esi
xor edx, edx
test ecx, ecx
mov word [eax], dx
mov eax, 0x8007007a
cmovne eax, edx
jmp 0x401a45
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401a3b
movzx eax, ax
or eax, 0x80070000
test eax, eax
mov ecx, 0x80004005
cmovns eax, ecx
test eax, eax
js 0x401a53
mov edx, dword [edi]
push ecx
mov ecx, ebx
call fcn.004033c0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403614
mov esp, ebp
pop ebp
ret