joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5e2c], 0
lea esi, [edi + 0x5e30]
je 0x4189e2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41899c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.0041ace0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.004051a0
mov edx, dword [esi]
mov ecx, 0x43b48c
push dword [edi + 0x5e2c]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5e38]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.004051a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418df0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x43b490]
test bl, bl
je 0x418e36
or edi, 0xffffffff
cmp bl, 0x23
jne 0x418e17
cmp byte [esi], bl
jne 0x418e17
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x4344e0]
test bl, bl
jne 0x418e08
mov edi, dword [0x43b490]
mov ecx, dword [edi + 0x5dd0]
not eax
mov edx, dword [edi + 0x5dd8]
pop edi
pop esi
lea ecx, [ecx + ecx*8]
lea ecx, [edx + ecx*4]
pop ebx
cmp edx, ecx
je 0x418e5d
cmp dword [edx + 4], eax
je 0x418e60
add edx, 0x24
cmp edx, ecx
jne 0x418e51
xor eax, eax
ret
mov eax, edx
ret
Function at 0x42bcc0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x43b040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x43b490]
lea eax, [ebp - 0x10]
push esi
push edi
push eax
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x42be6c
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x42be6c
push 0x38
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, dword [0x43b490]
add esp, 4
mov edi, eax
test esi, esi
je 0x42bd63
movsx edx, word [esi + 0x5ee4]
lea eax, [esi + 0x5ee8]
mov ecx, dword [esi + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], ecx
je 0x42bd59
lea eax, [edx + 1]
mov dword [ebp - 0x1c], 6
cdq
idiv dword [ebp - 0x1c]
movzx eax, dx
mov word [esi + 0x5ee4], ax
cwde
add eax, 0xbdd
lea eax, [esi + eax*8]
mov dword [eax], ecx
xor ecx, ecx
mov dword [eax + 4], ecx
inc word [eax + 4]
inc dword [esi + 0x5edc]
test edi, edi
je 0x42bd76
push 0x38
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
jmp 0x42bd78
xor edi, edi
or dword [ebx + 0xc], 6
mov dword [ebx + 0x74], edi
mov dword [ebx + 0x6c], str.imgui_impl_win32
mov ebx, dword [ebp - 0x24]
mov dword [edi], ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
mov dword [edi + 0x20], 9
test esi, esi
je 0x42bdb3
mov esi, dword [esi + 0x74]
jmp 0x42bdb5
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x42bdd8
mov dword [esi], eax
mov eax, dword [0x43b490]
xor esi, esi
mov dword [ebp - 0x38], str.xinput1_4.dll
mov dword [ebp - 0x34], str.xinput1_3.dll
mov dword [ebp - 0x30], str.xinput9_1_0.dll
mov eax, dword [eax + 0x4a34]
mov dword [ebp - 0x2c], str.xinput1_2.dll
mov dword [ebp - 0x28], str.xinput1_1.dll
mov eax, dword [eax]
mov dword [eax + 0x28], ebx
mov byte [edi + 0x29], 1
push dword [ebp + esi*4 - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
jne 0x42be3a
inc esi
cmp esi, 5
jl 0x42be11
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430dc1
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.XInputGetCapabilities
push ebx
mov dword [edi + 0x2c], ebx
call esi
push str.XInputGetState
push ebx
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00430dc1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00430dc1
mov esp, ebp
pop ebp
ret
Function at 0x4316c2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x431701
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x431701
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x431701
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x431701
cmp dword [ecx + 0x74], 0xe
jbe 0x431701
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10002380
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10137c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x10196fc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x270], eax
test esi, esi
jne 0x100023c7
xor eax, eax
jmp 0x100025ac
push 0x228
lea eax, [ebp - 0x268]
mov dword [ebp - 0x26c], 0
push 0
push eax
call fcn.1011e210
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x100023c0
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x100025a1
jmp 0x10002420
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], eax
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
cmp word [ebp - 0x248], ax
je 0x1000246f
lea eax, [ebp - 0x248]
lea edx, [eax + 2]
jmp 0x10002460
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10002460
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x40]
call fcn.10002c30
cmp word [esi], 0
jne 0x10002489
xor ecx, ecx
jmp 0x1000249f
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10002490
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10002c30
sub esp, 0x18
xor eax, eax
mov ecx, esp
mov dword [ebp - 0x278], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.10002b10
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
xor eax, eax
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x40]
push eax
call fcn.10002b10
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.10002dc0
test al, al
jne 0x10002561
cmp dword [ebp - 0x14], 8
jb 0x1000251b
push dword [ebp - 0x28]
call fcn.10007384
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0xffffffff
jb 0x10002547
push dword [ebp - 0x40]
call fcn.10007384
add esp, 4
lea eax, [ebp - 0x26c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10002420
lea esi, [eax + 1]
jmp 0x100025a3
push dword [ebp - 0x264]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x270]
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.10001b50
lea ecx, [ebp - 0x40]
call fcn.10001b50
jmp 0x100025aa
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011d762
mov esp, ebp
pop ebp
ret 8
Function at 0x100025d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10137c7b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10196fc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x1019bc40]
test eax, eax
jne 0x10002632
push 0x228
call fcn.10007357
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x10002624
mov ecx, eax
call fcn.10002f90
jmp 0x10002626
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x1019bc40], eax
mov ecx, eax
call fcn.10005000
push eax
push 1
push str.DriverProtect
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
push esi
push str.CApplicationService::InitApplicationService__..._nDriverProtect:_d
call fcn.100070c0
add esp, 8
cmp esi, 1
jne 0x10002668
mov ecx, edi
call fcn.10002830
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10002700
Capabilities:
Create process on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
lea eax, [ebp - 8]
push str.EXPLORER.EXE
push eax
call fcn.10002380
test eax, eax
jne 0x10002720
xor eax, eax
mov esp, ebp
pop ebp
ret 4
push 0x44
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.1011e210
add esp, 0xc
mov dword [ebp - 0x5c], 0x44
lea eax, [ebp - 4]
mov dword [ebp - 0x54], str.winsta0default
mov dword [ebp - 4], 0
push 1
push dword [ebp - 8]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x10002718
push esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0
push dword [ebp - 4]
push 0x420
push 0
push 0
push 0
push dword [ebp + 8]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
test esi, esi
je 0x10002798
push str.CreateProcessAsUser_ok__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x10002830
Capabilities:
Start service

Disassembly:
push ebx
push esi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
xor eax, eax
test esi, esi
sete al
push eax
push str.CApplicationService::StartDrivers__....._schScManger_is_NULL__d
call fcn.100070c0
add esp, 8
test esi, esi
je 0x100028b0
push edi
push 0xf003f
push str.WnPicServiceDriver
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
xor eax, eax
test edi, edi
sete al
push eax
push str.CApplicationService::StartDrivers__....._schService__d
call fcn.100070c0
add esp, 8
test edi, edi
je 0x100028af
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x100028a8
push str.CApplicationService::StartDrivers__....._StartService_is_succed
call fcn.100070c0
add esp, 4
mov ebx, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x100030f0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10137d69
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x10196fc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x620], 0
xor ecx, ecx
mov dword [ebp - 0x61c], 0
movzx eax, word [ecx + str.SYSTEMCurrentControlSetServices_]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x602], ax
test ax, ax
jne 0x10003133
lea edi, [ebp - 0x600]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10003153
mov ecx, 6
lea eax, [ebp - 0x61c]
mov esi, str.WnPicService
rep movsd dword es:[edi], dword [esi]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x600]
movsw word es:[edi], word [esi]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100032c6
push str.Parameters
push dword [ebp - 0x61c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea eax, [ebp - 0x620]
push eax
push str.Parameters
push dword [ebp - 0x61c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.1011e210
mov eax, dword [0x1019bc40]
add esp, 0xc
test eax, eax
jne 0x1000321a
push 0x228
call fcn.10007357
add esp, 4
mov dword [ebp - 0x624], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1000320c
mov ecx, eax
call fcn.10002f90
jmp 0x1000320e
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x1019bc40], eax
mov ecx, eax
call fcn.10005010
push eax
lea ecx, [ebp - 0x618]
call fcn.10003040
push 0xb
push 0x10148224
lea ecx, [ebp - 0x618]
mov dword [ebp - 4], 1
call fcn.10003ec0
cmp dword [ebp - 0x604], 8
lea ecx, [ebp - 0x618]
lea edx, [ebp - 0x218]
cmovae ecx, dword [ebp - 0x618]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x10003260
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10003280
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x218]
push eax
push 2
push 0
push str.ServiceDll
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x604], 8
jb 0x100032c6
push dword [ebp - 0x618]
call fcn.10007384
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011d762
mov esp, ebp
pop ebp
ret
Function at 0x10003cd0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10196fc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push str.UnInstall_ERROR_SUCCESS___rc_1
push 0x101482e4
call fcn.100070c0
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x10003d38
push 0x10020
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x10003d4a
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push str.UnInstall_ERROR_SUCCESS___rc_2
push 0x101482e4
call fcn.100070c0
add esp, 8
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011d762
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
test edi, edi
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.1011d762
mov esp, ebp
pop ebp
ret

Function at 0x10003fd0
Capabilities:
Start service

Disassembly:
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x10003c4a
push ebx
push 0xf003f
push str.WnPicService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x10003c49
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
mov ecx, 1
push ebx
cmovne esi, ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, esi
pop esi
ret
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call sym.Hao123SP.dll_InstallService
add esp, 4
pop ebp
jmp 0x10003c00
Function at 0x100049d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10137ebb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10196fc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
xor ecx, ecx
mov dword [edx + 0x30], 7
mov dword [edx + 0x2c], 0
mov word [edx + 0x1c], cx
mov dword [ebp - 4], ecx
xor eax, eax
lea ecx, [edx + 0x34]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
xor esi, esi
mov dword [edx + 0x60], 7
mov dword [edx + 0x5c], eax
mov word [edx + 0x4c], si
mov dword [edx + 0x78], 7
mov dword [edx + 0x74], esi
mov word [edx + 0x64], si
mov dword [edx + 0x90], 7
mov dword [edx + 0x8c], esi
mov word [edx + 0x7c], ax
mov dword [edx + 0xa8], 7
mov dword [edx + 0xa4], esi
mov word [edx + 0x94], si
mov dword [edx + 0xc0], 7
mov dword [edx + 0xbc], esi
mov word [edx + 0xac], si
mov dword [edx + 0xd8], 7
mov dword [edx + 0xd4], esi
mov word [edx + 0xc4], si
lea ebx, [edx + 0xdc]
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
mov word [ebx], ax
lea edi, [edx + 0xf4]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], esi
mov word [edi], ax
lea esi, [edx + 0x10c]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
mov word [esi], ax
push eax
push 0x1014815c
mov byte [ebp - 4], 0xa
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
mov word [edx + 0x18], ax
call fcn.10002c30
mov ecx, dword [ebp - 0x10]
push 0
push 0x1014815c
lea ecx, [ecx + 0x1c]
call fcn.10002c30
mov ecx, dword [ebp - 0x10]
push 0
push 0x1014815c
lea ecx, [ecx + 0x64]
call fcn.10002c30
mov ecx, dword [ebp - 0x10]
push 0
push 0x1014815c
lea ecx, [ecx + 0x94]
call fcn.10002c30
mov ecx, dword [ebp - 0x10]
push 0
push 0x1014815c
lea ecx, [ecx + 0x4c]
call fcn.10002c30
mov ecx, dword [ebp - 0x10]
push 0
push 0x1014815c
lea ecx, [ecx + 0xac]
call fcn.10002c30
mov ecx, dword [ebp - 0x10]
push 0
push 0x1014815c
lea ecx, [ecx + 0xc4]
call fcn.10002c30
push 0
push 0x1014815c
mov ecx, ebx
call fcn.10002c30
push 0
push 0x1014815c
mov ecx, edi
call fcn.10002c30
push 0
push 0x1014815c
mov ecx, esi
call fcn.10002c30
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004db0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10196fc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0x1a
lea eax, [ebp - 0x20c]
mov esi, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004de2
sub ecx, edx
sar ecx, 1
je 0x10004ec6
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10004e01
mov eax, dword [0x10148a14]
lea edx, [ebp - 0x20c]
mov dword [edi], eax
add edx, 0xfffffffe
lea ecx, [ecx]
mov cx, word [edx + 2]
lea edx, [edx + 2]
test cx, cx
jne 0x10004e20
mov ecx, dword [str.WnPicView]
lea edi, [ebp - 0x20c]
mov dword [edx], ecx
add edi, 0xfffffffe
mov ecx, dword [0x10148ad0]
mov dword [edx + 4], ecx
mov ecx, dword [0x10148ad4]
mov dword [edx + 8], ecx
mov ecx, dword [0x10148ad8]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x10148adc]
mov dword [edx + 0x10], ecx
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10004e61
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x10004e90
lea eax, [ebp - 0x20c]
push eax
call fcn.10006d10
add esp, 4
cmp word [ebp - 0x20c], 0
jne 0x10004e9e
xor ecx, ecx
jmp 0x10004eb6
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004ea7
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x34]
call fcn.10002c30
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1011d762
mov esp, ebp
pop ebp
ret
Function at 0x10004ee0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10196fc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 0x1a
lea eax, [ebp - 0x20c]
mov ebx, ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004f12
sub ecx, edx
sar ecx, 1
je 0x10004fef
push esi
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10004f32
mov eax, dword [0x10148a14]
mov dword [edi], eax
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov edi, edi
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10004f50
mov ecx, 8
mov esi, str.WnPicView.users
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov cx, word [edi + 2]
lea edi, [edi + 2]
test cx, cx
jne 0x10004f71
mov dword [edi], eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10004f9f
lea eax, [ebp - 0x20c]
push eax
call fcn.10006d10
add esp, 4
cmp word [ebp - 0x20c], 0
jne 0x10004fad
xor ecx, ecx
jmp 0x10004fc5
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10004fb6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
lea esi, [ebx + 0x1c]
push eax
mov ecx, esi
call fcn.10002c30
cmp dword [esi + 0x14], 8
jb 0x10004fdf
mov esi, dword [esi]
push esi
push str.get_user_path__:_s
call fcn.100070c0
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1011d762
mov esp, ebp
pop ebp
ret

Function at 0x100050f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10196fc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x48], 8
lea eax, [esi + 0x34]
jb 0x10005111
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.1011d6a3
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000514b
lea eax, [ebp - 0x20c]
push eax
call fcn.10006d10
add esp, 4
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x10005154
mov eax, dword [str.Related.ini]
mov dword [ecx], eax
mov eax, dword [0x10148c70]
mov dword [ecx + 4], eax
mov eax, dword [0x10148c74]
mov dword [ecx + 8], eax
mov eax, dword [0x10148c78]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10148c7c]
mov dword [ecx + 0x10], eax
mov eax, dword [0x10148c80]
mov dword [ecx + 0x14], eax
cmp word [ebp - 0x20c], 0
jne 0x1000519d
xor ecx, ecx
jmp 0x100051b5
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100051a6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0xac]
call fcn.10002c30
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1011d762
mov esp, ebp
pop ebp
ret
Function at 0x10005880
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10196fc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x48], 8
lea eax, [esi + 0x34]
jb 0x100058a1
mov eax, dword [eax]
push str.Config
push eax
lea eax, [ebp - 0x20c]
push str._s_s_
push eax
call fcn.1011d6a3
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100058db
lea eax, [ebp - 0x20c]
push eax
call fcn.10006d10
add esp, 4
lea ecx, [ebp - 0x20c]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x100058e4
mov eax, dword [str.Config.ini]
mov dword [ecx], eax
mov eax, dword [0x10148c58]
mov dword [ecx + 4], eax
mov eax, dword [0x10148c5c]
mov dword [ecx + 8], eax
mov eax, dword [0x10148c60]
mov dword [ecx + 0xc], eax
mov eax, dword [0x10148c64]
mov dword [ecx + 0x10], eax
mov ax, word [0x10148c68]
mov word [ecx + 0x14], ax
cmp word [ebp - 0x20c], 0
jne 0x1000592f
xor ecx, ecx
jmp 0x1000594f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
jmp 0x10005940
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005940
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [esi + 0x4c]
call fcn.10002c30
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1011d762
mov esp, ebp
pop ebp
ret