joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004369
Capabilities:
Query or enumerate registry value

Disassembly:
lea eax, [ebp - 0xc04]
cmp dword [ebp - 0xc08], ebx
jbe 0x1004349
cmp dword [ebp - 0xc08], 2
ja 0x10083b0
push 0xffffffffffffffff
push 0x1004360
lea eax, [ebp - 0xc04]
push eax
mov byte [esi], 1
call fcn.01001b8c
test eax, eax
je 0x1004345
push 0xffffffffffffffff
push 0x1003d68
lea eax, [ebp - 0xc04]
push eax
call fcn.01001b8c
test eax, eax
je 0x1004345
push 0xffffffffffffffff
push 0x1004354
lea eax, [ebp - 0xc04]
push eax
call fcn.01001b8c
test eax, eax
je 0x1004345
mov byte [esi], 1
xor eax, eax
jmp 0x10043e0
mov byte [esi], bl
jmp 0x100433e
mov eax, 0x80040153
jmp 0x10043e0
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc1c
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc14], eax
mov dword [ebp - 0xc1c], esi
cmp byte [0x1019001], bl
je 0x10082af
lea ecx, [ebp - 0xc0c]
push ecx
lea ecx, [ebp - 0xc04]
push ecx
lea ecx, [ebp - 0xc08]
push ecx
push ebx
push edi
push eax
mov dword [ebp - 0xc0c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x10042d8
jle 0x10043e0
and eax, 0xffff
or eax, 0x80070000
lea esp, [ebp - 0xc28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 0xc
cmp edi, ebx
je 0x1008358
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
mov dword [ebp - 0xc18], eax
cmp eax, ebx
jne 0x10082df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jmp 0x10043d4
call fcn.010043f7
mov dword [ebp - 0xc10], esp
push ebx
push ebx
push dword [ebp - 0xc18]
push dword [ebp - 0xc10]
push 0xffffffffffffffff
push edi
push ebx
push ebx
call esi
test eax, eax
je 0x10082d2
mov esi, dword [ebp - 0xc1c]
lea eax, [ebp - 0xc0c]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0xc08]
push eax
push ebx
push dword [ebp - 0xc10]
mov edi, 0x400
push dword [ebp - 0xc14]
mov dword [ebp - 0xc0c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x10043d4
mov eax, dword [ebp - 0xc0c]
cmp eax, ebx
jne 0x1008360
mov eax, 0x80004005
jmp 0x10043e0
mov dword [ebp - 0xc10], ebx
jmp 0x1008309
cmp dword [ebp - 0xc08], 1
mov byte [ebp + eax - 0x405], bl
je 0x1008384
cmp dword [ebp - 0xc08], 2
je 0x1008384
lea eax, [ebp - 0x404]
jmp 0x10042de
push edi
lea eax, [ebp - 0xc04]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x404]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10082d2
mov eax, dword [ebp - 0xc14]
jmp 0x10042de
cmp dword [ebp - 0xc08], 4
jne 0x1004349
cmp dword [ebp - 0xc0c], 4
jne 0x1004349
cmp dword [eax], ebx
setne al
mov byte [esi], al
jmp 0x100433e
Function at 0x1004951
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 8], 4
cmp byte [0x1019001], bl
je 0x100822a
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x1008292
jle 0x10049a7
and eax, 0xffff
or eax, 0x80070000
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 0xc
cmp dword [ebp + 0xc], ebx
je 0x1008272
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x1008255
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jmp 0x100499b
call fcn.010043f7
mov dword [ebp - 0xc], esp
push ebx
push ebx
push edi
push dword [ebp - 0xc]
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
je 0x1008248
jmp 0x1008275
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x1004993
cmp dword [ebp - 0x10], 4
jne 0x10082a5
cmp dword [ebp - 8], 4
jne 0x10082a5
xor eax, eax
jmp 0x10049a7
mov eax, 0x80040153
jmp 0x10049a7
Function at 0x1004b39
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
push esi
mov dword [eax], ebx
push edi
cmp byte [0x1019001], bl
je 0x1006425
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x1004bd0
call fcn.010043f7
mov edi, esp
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1004bd0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1004bdc
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1004bd0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100640e
cmp eax, ebx
jle 0x1004bbc
and eax, 0xffff
or eax, 0x80070000
jmp 0x1004bbc
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
je 0x1004bd0
call fcn.010043f7
mov dword [ebp - 8], esp
cmp esp, ebx
jne 0x1006458
mov eax, 0x8007000e
jmp 0x1004bbc
push ebx
push ebx
push edi
push dword [ebp - 8]
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call esi
test eax, eax
je 0x1004bd0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
je 0x1004bd0
call fcn.010043f7
mov edi, esp
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1004bd0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1002020
push edi
call sub.VERSION.dll_VerQueryValueA
jmp 0x1004ba3
Function at 0x1005350
Capabilities:
Check os version

Disassembly:
push 0xa0
push 0x1005420
call fcn.0100413d
mov esi, dword [ebp + 0xc]
mov dword [0x1019024], esi
mov eax, dword [ebp + 8]
mov dword [0x1019018], eax
xor edi, edi
mov dword [ebp - 4], edi
push 0x101902c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1005418
cmp dword [ebp - 0xac], 6
sbb al, al
inc al
mov byte [section..data], al
call fcn.01003fd5
mov dword [0x101901c], eax
cmp dword [ebp - 0xa0], 2
jne 0x10053fa
mov byte [0x1019001], 1
cmp dword [ebp - 0xac], 5
jb 0x10053de
mov byte [0x1019002], 1
je 0x100540d
cmp dword [ebp - 0xac], 6
jb 0x10053fa
cmp esi, 0x7d0
je 0x1007f39
mov byte [0x1019020], 1
xor eax, eax
cmp dword [0x1019018], edi
setne al
call fcn.0100543c
ret 8
cmp dword [ebp - 0xa8], 1
jb 0x10053de
jmp 0x10053e7
xor eax, eax
jmp 0x1005405
push edi
call 0x1015563
jmp 0x10053f3
Function at 0x100ff8b
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20006
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x100ffd8
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x100ffe6
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop esi
pop ebp
ret 0x10

Function at 0x10101ea
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x43
je 0x1010221
cmp dword [ebp + 8], 0x57
je 0x1010215
mov eax, 0x80070057
jmp 0x101036d
mov dword [ebp - 0x214], 0x101037c
jmp 0x101022b
mov dword [ebp - 0x214], 0x1010384
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x218], ebx
mov edi, 0x104
push ebx
mov esi, SysReAllocStringLen
jmp 0x1010318
cmp eax, ebx
jne 0x101035e
cmp byte [ebp - 0x108], 0x2e
jne 0x10102fa
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x101035e
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x10086ec
push dword [ebp - 0x21c]
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x21c]
mov dword [ebp - 0x220], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x220], ebx
jne 0x10102fa
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x10102fa
mov byte [ebp + eax - 0x109], bl
push 1
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x214]
call fcn.01010134
cmp eax, ebx
jl 0x101036a
inc dword [ebp - 0x218]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x218]
push esi
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x1010258
mov eax, dword [ebp - 0x214]
push ebx
push 0x101038c
call fcn.01010134
cmp eax, ebx
jl 0x101036a
mov eax, dword [ebp - 0x214]
push ebx
push 0x1010394
call fcn.01010134
cmp eax, ebx
jl 0x101036a
xor eax, eax
jmp 0x101036a
jle 0x101036a
and eax, 0xffff
or eax, 0x80070000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 4
Function at 0x10119ed
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x39c
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x39c], esi
cmp byte [0x1019001], bl
je 0x1011a4a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1011ade
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1011ae2
lea eax, [ebp - 0x394]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
jmp 0x1011aca
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x1011a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1011ae7
and eax, 0xffff
or eax, 0x80070000
jmp 0x1011ae7
call fcn.010043f7
mov dword [ebp - 0x398], esp
push ebx
push ebx
push edi
push dword [ebp - 0x398]
push 0xffffffffffffffff
push dword [ebp - 0x39c]
push ebx
push ebx
call esi
test eax, eax
je 0x1011a61
push dword [ebp - 0x398]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1011ade
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1011ae2
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x398]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, ebx
je 0x1011ae2
cmp eax, 0xffffffff
je 0x1011ae2
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1011ae7
test al, 0x10
je 0x1011ada
mov eax, 0x80070002
lea esp, [ebp - 0x3a8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 4
Function at 0x1015770
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
cmp byte [0x1019001], bl
je 0x10157ac
push dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x1015926
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
or edi, 0xffffffff
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x10157e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1015928
and eax, 0xffff
or eax, 0x80070000
jmp 0x1015928
call fcn.010043f7
mov dword [ebp - 0x18], esp
cmp esp, ebx
jne 0x10157fb
mov eax, 0x8007000e
jmp 0x1015928
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x18]
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
test eax, eax
je 0x10157c8
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10157c8
call fcn.010043f7
mov dword [ebp - 0x14], esp
cmp esp, ebx
je 0x10157f1
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x14]
push edi
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
je 0x10157c8
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x10]
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10157c8
call fcn.010043f7
mov dword [ebp - 0x10], esp
cmp esp, ebx
je 0x10157f1
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0x10]
push edi
push dword [ebp + 0x10]
push ebx
push ebx
call esi
test eax, eax
je 0x10157c8
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x10158cb
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x1c]
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x10157c8
call fcn.010043f7
mov dword [ebp - 0xc], esp
cmp esp, ebx
je 0x10157f1
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
push dword [ebp + 0x1c]
push ebx
push ebx
call esi
test eax, eax
je 0x10157c8
jmp 0x10158e2
push 4
pop eax
call fcn.0100440a
mov eax, esp
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x10157f1
mov byte [eax], bl
mov esi, dword [ebp + 0x18]
lea eax, [esi + 1]
call fcn.010043f7
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x10157f1
push dword [ebp - 0x18]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push dword [ebp + 0x14]
push edi
push dword [ebp - 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10157c8
xor eax, eax
lea esp, [ebp - 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 0x18
Function at 0x1015941
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
push edi
cmp byte [0x1019001], bl
je 0x1015977
push dword [ebp + 8]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
jmp 0x1015a5a
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
or edi, 0xffffffff
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x10159b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1015a61
and eax, 0xffff
or eax, 0x80070000
jmp 0x1015a61
call fcn.010043f7
mov dword [ebp - 0x10], esp
cmp esp, ebx
jne 0x10159c6
mov eax, 0x8007000e
jmp 0x1015a61
push ebx
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push edi
push dword [ebp + 8]
push ebx
push ebx
call esi
test eax, eax
je 0x1015993
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1015993
call fcn.010043f7
mov dword [ebp - 0xc], esp
cmp esp, ebx
je 0x10159bc
push ebx
push ebx
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
je 0x1015993
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0x10]
push ebx
push ebx
call esi
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x1015993
call fcn.010043f7
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x10159bc
push ebx
push ebx
push dword [ebp - 0x14]
push dword [ebp - 8]
push edi
push dword [ebp + 0x10]
push ebx
push ebx
call esi
test eax, eax
je 0x1015993
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
xor eax, eax
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01001375
leave
ret 0x14
Function at 0x101616d
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x10194cc], edi
jne 0x1016289
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x120]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x10161d4
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
mov eax, dword [ebp - 0x110]
dec eax
mov dword [0x10194cc], edi
pop esi
je 0x101625c
dec eax
jne 0x1016289
cmp dword [ebp - 0x11c], 5
jne 0x1016249
mov eax, dword [ebp - 0x118]
sub eax, edi
je 0x101623d
dec eax
je 0x101622a
dec eax
je 0x1016210
mov dword [0x10194cc], 0x14
jmp 0x1016289
cmp word [ebp - 0xc], 1
jb 0x1016221
mov dword [0x10194cc], 0x10
or dword [0x10194cc], 4
jmp 0x1016289
cmp word [ebp - 0xc], 2
jb 0x1016221
mov dword [0x10194cc], 8
jmp 0x1016221
mov dword [0x10194cc], 4
jmp 0x1016289
cmp dword [ebp - 0x11c], 4
ja 0x101629b
mov dword [0x10194cc], 2
cmp dword [ebp - 0x11c], 4
jne 0x1016289
cmp dword [ebp - 0x118], edi
je 0x101627f
cmp dword [ebp - 0x118], 0xa
je 0x101627f
cmp dword [ebp - 0x118], 0x5a
jne 0x1016289
mov dword [0x10194cc], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x10194cc]
xor ecx, ebp
pop edi
call fcn.01001375
leave
ret
mov dword [0x10194cc], 0x20
jmp 0x1016289

Function at 0x10162ac
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 8
push 0x404
mov esi, 0xc04
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1016300
push 3
lea eax, [ebp - 0x44]
push 0x1016310
push eax
call sub.msvcrt.dll_wcsncmp
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffff800
add esi, 0xc04
mov ecx, dword [ebp - 4]
mov ax, si
xor ecx, ebp
pop esi
call fcn.01001375
leave
ret
Function at 0x101631b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1019004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x10194d0]
jne 0x10163b6
push esi
lea eax, [ebp - 0x10]
push eax
push 1
xor esi, esi
push esi
push 0x10164a8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 6
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10163b5
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push 0x1016560
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
pop edi
jne 0x10163b5
push 3
push dword [esi*8 + 0x10163c8]
lea eax, [ebp - 0xc]
push eax
call sub.msvcrt.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x10163a7
inc esi
cmp esi, 0x1c
jae 0x10163b5
jmp 0x1016386
mov ax, word [esi*8 + 0x10163cc]
mov word [0x10194d0], ax
pop esi
mov ecx, dword [ebp - 4]
mov ax, word [0x10194d0]
xor ecx, ebp
call fcn.01001375
leave
ret
Function at 0x401ce0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x198
mov dword [esp + 0xc], ecx
push edi
mov edi, dword [esp + 0x1a0]
lea ecx, [esp + 8]
push ecx
push 0x20
mov eax, dword [edi]
push 0
push edi
mov dword [esp + 0x24], 0
call dword [eax + 0x10]
test eax, eax
jne 0x401e84
mov edx, dword [esp + 0x1a8]
push ebx
inc edx
push ebp
push esi
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0xc]
cmp eax, 1
je 0x401e77
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401e77
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1b4]
add ecx, 0x40
push eax
call fcn.00499160
mov ecx, dword [esp + 0x10]
mov edx, dword [edi]
mov esi, eax
lea eax, [esp + 0x20]
push eax
push 0x4c8734
push 0
push ecx
push edi
call dword [edx + 0x14]
mov ebx, eax
cmp ebx, 1
je 0x401e77
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401e77
push 0x4209
lea edx, [esp + 0x4c]
push 0x160
push edx
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x104
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebp, eax
push ebp
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push 0x4e6998
push ebp
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x401ddd
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x401e6f
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x5c
je 0x401e1a
mov edi, 0x4e01dc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
push ebp
lea ecx, [edi + 0x70]
call sub.MFC42.DLL_CPtrList::AddTail
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, edi
mov dword [esp + 0x28], 0x37
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], 2
mov dword [esp + 0x48], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call sub.MFC42.DLL_CComboBoxEx::InsertItem
mov edi, dword [esp + 0x1ac]
inc esi
mov dword [esp + 0x18], esi
test ebx, ebx
je 0x401d20
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x198
ret 0xc