joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405570
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x264
mov eax, dword [0x4481e0]
push esi
mov esi, dword [esp + 0x26c]
mov dword [esp + 0x264], eax
mov eax, dword [esi + 0x20]
mov ecx, dword [eax - 0xc]
xor eax, eax
test ecx, ecx
je 0x4056dc
mov edx, dword [esi + 0x24]
push edi
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x20]
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [0x44914c]
push edx
mov dword [esp + 0x20], 0x44
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x170]
push str._s_s__s
push ecx
call fcn.0041bc2e
lea edx, [esp + 0x178]
push edx
lea eax, [esp + 0x78]
push 0x438e84
push eax
call fcn.0041bc2e
add esp, 0x20
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [0x44914c]
call fcn.00404eb0
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x184]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x4056a7
mov edx, dword [esi + 4]
mov ecx, dword [0x44914c]
mov eax, dword [esi + 0x20]
push edx
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x68]
push str._s_s
push ecx
call fcn.0041bc2e
mov ecx, dword [0x44914c]
add esp, 0x14
lea edx, [esp + 0x5c]
push edx
call fcn.00404eb0
mov eax, dword [0x44914c]
mov ecx, dword [eax]
test ecx, ecx
je 0x40568f
push 0
push 0x438e5c
lea edx, [esp + 0x64]
push edx
call fcn.0042a97f
xor eax, eax
pop esi
mov ecx, dword [esp + 0x260]
call fcn.0041b28e
add esp, 0x264
ret 4
mov eax, dword [esp + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x264]
pop esi
call fcn.0041b28e
add esp, 0x264
ret 4
Function at 0x4057d0
Capabilities:
Create process on windows
Get common file path
Move file

Disassembly:
sub esp, 0x36c
mov eax, dword [0x4481e0]
push esi
mov dword [esp + 0x36c], eax
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [0x44914c]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], 0x44
mov edx, dword [ecx + 0x14]
push 0x438f10
add edx, 4
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004047c0
mov ecx, dword [eax]
lea edx, [esp + 0x64]
jmp 0x405830
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x405830
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405858
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x18]
call fcn.00408b00
lea edi, [esp + 0x64]
dec edi
test eax, eax
je 0x405880
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405870
mov esi, str.ImeReg64.exe__UnsetupIME_wnwb.ime
jmp 0x40588d
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405880
mov esi, str.ImeReg32.exe__UnsetupIME_wnwb.ime
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x16c]
push 0x438e84
push edx
movsw word es:[edi], word [esi]
call fcn.0041bc2e
mov ecx, dword [0x44914c]
add esp, 0xc
lea eax, [esp + 0x168]
push eax
call fcn.00404eb0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [esp + 0x84]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40592c
lea ecx, [esp + 0x168]
push 0x438ea8
push ecx
call fcn.0041bc2e
mov ecx, dword [0x44914c]
add esp, 8
lea edx, [esp + 0x168]
push edx
call fcn.00404eb0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x368]
call fcn.0041b28e
add esp, 0x36c
ret
mov eax, dword [esp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
push 0x104
lea edx, [esp + 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x26c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x405978
mov eax, dword [0x438e9c]
mov ecx, dword [0x438ea0]
mov dx, word [0x438ea4]
mov dword [edi], eax
push 5
push 0
lea eax, [esp + 0x274]
mov dword [edi + 4], ecx
push eax
mov word [edi + 8], dx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [esp + 0x370]
mov eax, dword [esp + 0x18]
pop edi
pop esi
call fcn.0041b28e
add esp, 0x36c
ret
Function at 0x4072c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4364d8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call fcn.00432b8a
movzx ecx, word [esp + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push 0x4389f0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40730e
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
call fcn.00432b8a
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call fcn.00432b8a
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x28]
push 0x1001
push edx
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0042e54a
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 8]
jne 0x407389
mov dword [esp + 0x20], 0xffffffff
call fcn.0042e15e
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push esi
push edi
call fcn.0042de72
lea ecx, [esp + 8]
call fcn.0042e0bd
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0042e15e
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x408440
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4481e0]
push esi
mov dword [esp + 0x108], eax
push edi
lea eax, [esp + 8]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 8]
dec edi
jmp 0x408470
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408470
mov ecx, dword [str.Language.ini]
mov edx, dword [0x439654]
mov eax, dword [0x439658]
mov dword [edi], ecx
mov cl, byte [0x43965c]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
push 0x8b
lea edx, [esp + 0xc]
mov byte [edi + 0xc], cl
push edx
mov ecx, esi
call fcn.004072c0
test eax, eax
jne 0x4084c4
pop edi
pop esi
mov ecx, dword [esp + 0x104]
call fcn.0041b28e
add esp, 0x108
ret
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.004075d0
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x10c]
pop edi
mov eax, 1
pop esi
call fcn.0041b28e
add esp, 0x108
ret
Function at 0x408a60
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push str.kernel32.dll
mov esi, ecx
call ebx
test eax, eax
mov dword [esi], eax
jne 0x408a7a
pop esi
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi]
push str.Wow64DisableWow64FsRedirection
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.GetSystemWow64DirectoryA
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x408ad2
pop edi
pop esi
pop ebx
ret
push str.Wow64RevertWow64FsRedirection
push eax
call edi
mov ecx, dword [esi + 4]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [esi + 0x20], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
pop esi
mov eax, 1
pop ebx
ret
Function at 0x409f70
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x4481e0]
push edi
mov dword [esp + 0x114], eax
xor eax, eax
mov byte [esp + 8], 0
mov ecx, 0x40
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x409fec
push 0x104
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov eax, dword [esp + 4]
mov ecx, dword [ebp + 8]
push eax
push str._.8X
push ecx
call fcn.0041bc2e
add esp, 0xc
mov ecx, dword [esp + 0x114]
call fcn.0041b28e
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x40ac40
Capabilities:
Set registry value

Disassembly:
sub esp, 0x520
mov eax, dword [0x4481e0]
mov dword [esp + 0x51c], eax
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.softwareMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40adbd
mov edx, dword [esp + 4]
push edi
push eax
lea ecx, [esp + 8]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push 0x43a40c
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x40adb5
push esi
lea eax, [esp + 0x31c]
push 0x43a40c
push eax
call fcn.0041bc2e
mov ecx, dword [0x44914c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 4]
push eax
lea ecx, [esp + 0x1c]
push str._sUninst.exe
push ecx
call fcn.0041bc2e
mov edx, dword [0x44914c]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 4]
push ecx
lea edx, [esp + 0x12c]
push str._suninst.exe
push edx
call fcn.0041bc2e
lea eax, [esp + 0x238]
push 0x43a3e0
push eax
call fcn.0041bc2e
lea ecx, [esp + 0x448]
push str.http:__www.wn51.com
push ecx
call fcn.0041bc2e
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 0x30
push 0x104
lea edx, [esp + 0x320]
push edx
push 1
push 0
push str.DisplayName
push eax
call esi
mov edx, dword [esp + 8]
push 0x104
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push str.UninstallString
push edx
call esi
mov ecx, dword [esp + 8]
push 0x104
lea eax, [esp + 0x118]
push eax
push 1
push 0
push str.DisplayIcon
push ecx
call esi
mov eax, dword [esp + 8]
push 0x104
lea edx, [esp + 0x21c]
push edx
push 1
push 0
push str.Publisher
push eax
call esi
mov edx, dword [esp + 8]
push 0x104
lea ecx, [esp + 0x424]
push ecx
push 1
push 0
push str.URLInfoAbout
push edx
call esi
mov eax, dword [esp + 8]
push eax
call edi
pop esi
mov ecx, dword [esp + 8]
push ecx
call edi
pop edi
mov ecx, dword [esp + 0x51c]
call fcn.0041b28e
add esp, 0x520
ret
Function at 0x40add0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40adf0
xor eax, eax
add esp, 0x14
ret
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
push 0
lea edx, [esp + 0x10]
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40adea
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x40ae50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x264
mov eax, dword [0x4481e0]
push edi
mov dword [esp + 0x264], eax
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [0x44914c]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0x44
mov dword [esp + 0x10], eax
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 0x28]
push str._BuildTable
push str.wnwb_
push ecx
lea edx, [esp + 0x68]
push str._s_s__s
push edx
call fcn.0041bc2e
add esp, 0x14
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x7c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x40af1e
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x160]
push 0x43a474
push ecx
call fcn.0041bc2e
mov ecx, dword [0x44914c]
add esp, 0xc
lea edx, [esp + 0x15c]
push edx
call fcn.00404eb0
xor eax, eax
mov ecx, dword [esp + 0x260]
call fcn.0041b28e
add esp, 0x264
ret
mov eax, dword [esp]
push esi
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x164]
push 0x43a460
push eax
call fcn.0041bc2e
add esp, 0xc
lea ecx, [esp + 0x160]
push ecx
mov ecx, dword [0x44914c]
call fcn.00404eb0
mov ecx, dword [esp + 0x264]
mov eax, 1
pop esi
call fcn.0041b28e
add esp, 0x264
ret
Function at 0x40afa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x264
mov eax, dword [0x4481e0]
mov dword [esp + 0x260], eax
xor eax, eax
push edi
mov edx, ecx
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x68]
test eax, eax
mov dword [esp + 0x18], 0x44
pop edi
je 0x40b008
mov ecx, dword [0x44914c]
mov edx, dword [ecx + 0x14]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + 0x28]
push str._SetDefault_StartUp
push str.wnwb_
push ecx
push str._s_s__s
lea edx, [esp + 0x68]
push edx
jmp 0x40b02b
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x1c]
mov eax, dword [edx + 0x28]
push str._SetDefault
push str.wnwb_
push eax
push str._s_s__s
lea ecx, [esp + 0x68]
push ecx
call fcn.0041bc2e
add esp, 0x14
lea edx, [esp]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40b09b
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x160]
push 0x43a474
push eax
call fcn.0041bc2e
add esp, 0xc
lea ecx, [esp + 0x15c]
push ecx
mov ecx, dword [0x44914c]
call fcn.00404eb0
xor eax, eax
mov ecx, dword [esp + 0x260]
call fcn.0041b28e
add esp, 0x264
ret
mov edx, dword [esp]
push esi
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x164]
push 0x43a460
push edx
call fcn.0041bc2e
mov ecx, dword [0x44914c]
add esp, 0xc
lea eax, [esp + 0x160]
push eax
call fcn.00404eb0
mov ecx, dword [esp + 0x264]
mov eax, 1
pop esi
call fcn.0041b28e
add esp, 0x264
ret

Function at 0x40b120
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40b175
push 0
push 0x80
push 3
push 0
push 0
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40b16e
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b168
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop esi
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b18f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
pop esi
ret 4
Function at 0x40b200
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x436848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00404730
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401de0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40b292
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x40b7a0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4481e0]
push edi
mov dword [esp + 0x10c], eax
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b7c8
mov cx, word [0x438b4c]
mov word [edi], cx
lea edi, [esp + 8]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b7e0
mov edx, dword [str.sqlite3.dll]
mov eax, dword [0x43a4ec]
mov ecx, dword [0x43a4f0]
mov dword [edi], edx
mov edx, dword [0x44914c]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov ecx, dword [edx + 0x18]
call fcn.00408b00
test eax, eax
mov eax, dword [0x44914c]
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x20]
pop edi
lea eax, [esp]
je 0x40b829
push str.wnimedll32_sqlite3.dll
jmp 0x40b82e
push str.wnimedll64_sqlite3.dll
add edx, 0x28
push edx
push eax
call fcn.004047c0
mov edx, dword [eax]
push 0
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [esp]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b865
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x108]
mov eax, 1
call fcn.0041b28e
add esp, 0x10c
ret
Function at 0x40bde0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x4481e0]
mov dword [esp + 0x10c], eax
mov eax, dword [0x44914c]
push esi
mov esi, ecx
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x1c]
test edx, edx
push edi
je 0x40bf1f
push ecx
mov eax, ecx
mov ecx, dword [eax + 0x1c]
mov edx, esp
mov dword [esp + 0xc], esp
push ecx
add eax, 4
push eax
push edx
call fcn.0040b200
mov ecx, esi
call fcn.0040b120
test eax, eax
jne 0x40be32
mov dword [esi + 0x50], 1
push 0x104
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40be47
mov ax, word [0x438b4c]
mov word [edi], ax
lea edi, [esp + 0x10]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40be60
mov ecx, dword [str.wnwbio.ime]
mov edx, dword [0x43a560]
mov ax, word [0x43a564]
mov dword [edi], ecx
mov cl, byte [0x43a566]
mov dword [edi + 4], edx
mov edx, dword [0x44914c]
mov word [edi + 8], ax
mov byte [edi + 0xa], cl
mov ecx, dword [edx + 0x18]
call fcn.00408b00
test eax, eax
je 0x40befc
mov ecx, dword [0x44914c]
mov ecx, dword [ecx + 0x18]
lea eax, [esp + 8]
push eax
call fcn.00408b30
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00402d80
mov ecx, esi
call fcn.0040b120
test eax, eax
jne 0x40bed4
mov dword [esi + 0x54], 1
mov eax, dword [esp + 8]
mov ecx, dword [0x44914c]
mov ecx, dword [ecx + 0x18]
push eax
call fcn.00408b50
mov ecx, dword [esp + 0x114]
call fcn.0041b28e
pop edi
pop esi
add esp, 0x110
ret
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00402d80
mov ecx, esi
call fcn.0040b120
test eax, eax
jne 0x40bf1f
mov dword [esi + 0x54], 1
mov ecx, dword [esp + 0x114]
call fcn.0041b28e
pop edi
pop esi
add esp, 0x110
ret
Function at 0x40bdf7
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x4481e0]
mov dword [esp + 0x10c], eax
mov eax, dword [0x44914c]
push esi
mov esi, ecx
mov ecx, dword [eax + 0x14]
mov edx, dword [ecx + 0x1c]
test edx, edx
push edi
je 0x40bf1f
push ecx
mov eax, ecx
mov ecx, dword [eax + 0x1c]
mov edx, esp
mov dword [esp + 0xc], esp
push ecx
add eax, 4
push eax
push edx
call fcn.0040b200
mov ecx, esi
call fcn.0040b120
test eax, eax
jne 0x40be32
mov dword [esi + 0x50], 1
push 0x104
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x10]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40be47
mov ax, word [0x438b4c]
mov word [edi], ax
lea edi, [esp + 0x10]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40be60
mov ecx, dword [str.wnwbio.ime]
mov edx, dword [0x43a560]
mov ax, word [0x43a564]
mov dword [edi], ecx
mov cl, byte [0x43a566]
mov dword [edi + 4], edx
mov edx, dword [0x44914c]
mov word [edi + 8], ax
mov byte [edi + 0xa], cl
mov ecx, dword [edx + 0x18]
call fcn.00408b00
test eax, eax
je 0x40befc
mov ecx, dword [0x44914c]
mov ecx, dword [ecx + 0x18]
lea eax, [esp + 8]
push eax
call fcn.00408b30
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00402d80
mov ecx, esi
call fcn.0040b120
test eax, eax
jne 0x40bed4
mov dword [esi + 0x54], 1
mov eax, dword [esp + 8]
mov ecx, dword [0x44914c]
mov ecx, dword [ecx + 0x18]
push eax
call fcn.00408b50
mov ecx, dword [esp + 0x114]
call fcn.0041b28e
pop edi
pop esi
add esp, 0x110
ret
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00402d80
mov ecx, esi
call fcn.0040b120
test eax, eax
jne 0x40bf1f
mov dword [esi + 0x54], 1
mov ecx, dword [esp + 0x114]
call fcn.0041b28e
pop edi
pop esi
add esp, 0x110
ret