joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408144
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 0x408248
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x43cb84
call sub.KERNEL32.DLL_EnterCriticalSection
cmp bx, word [0x43cb9c]
jne 0x408190
mov eax, esi
mov edx, 0x43cb9e
mov ecx, 0x55
call fcn.00406b94
push 0x43cb84
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x408232
push 0x43cb84
call sub.KERNEL32.DLL_LeaveCriticalSection
mov eax, esi
call fcn.00406280
push 2
movzx eax, bx
push eax
call sub.KERNEL32.DLL_IsValidLocale
test eax, eax
je 0x4081ff
cmp byte [0x43cb80], 0
je 0x4081c4
mov edx, esi
mov eax, ebx
call fcn.00408028
jmp 0x4081ff
mov edx, esi
mov eax, ebx
call fcn.00407e2c
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4081ff
cmp dword [esi], 0
je 0x4081e8
mov eax, esi
mov edx, 0x408260
call fcn.00406c80
call sub.KERNEL32.DLL_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00407e2c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c80
push 0x43cb84
call sub.KERNEL32.DLL_EnterCriticalSection
mov word [0x43cb9c], bx
mov eax, dword [esi]
call fcn.00406b00
mov ecx, eax
mov eax, 0x43cb9e
mov edx, 0xaa
call fcn.00407cac
push 0x43cb84
call sub.KERNEL32.DLL_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40824f
lea eax, [ebp - 4]
call fcn.00406280
ret
Function at 0x408478
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.00406364
xor eax, eax
push ebp
push 0x40869d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4084b8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameW
jmp 0x4084d2
mov eax, dword [ebp - 4]
call fcn.00406b00
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407cac
cmp word [ebp - 0x21a], 0
je 0x408687
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4086ac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4085a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4086ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4085a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4086e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4085a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4086e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4085a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40871c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
je 0x4085a1
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408750
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x408687
xor eax, eax
push ebp
push 0x408680
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408288
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_1
test eax, eax
jne 0x408610
mov eax, dword [ebp - 0x10]
call fcn.004043c4
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_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406b58
jmp 0x40865b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408790
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40865b
mov eax, dword [ebp - 0x10]
call fcn.004043c4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408790
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406b58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408687
cmp dword [ebp - 8], 0
je 0x408676
mov eax, dword [ebp - 8]
call fcn.004043e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4086a4
lea eax, [ebp - 4]
call fcn.00406280
ret
Function at 0x40898c
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.00406364
xor eax, eax
push ebp
push 0x408a4c
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.00406b94
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406cd8
mov eax, dword [ebx]
call fcn.00408854
test al, al
jne 0x408a29
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406b94
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406cd8
mov eax, dword [ebx]
call fcn.00408854
test al, al
jne 0x408a29
mov eax, ebx
call fcn.00406280
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a53
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004062e0
lea eax, [ebp - 4]
call fcn.00406280
ret

Function at 0x418054
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 0x41808d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004063bc
jmp 0x418096
mov eax, ebx
mov edx, esi
call fcn.00406614
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4180a0
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 0x4180c2
movzx eax, word [esp]
jmp 0x4180c4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x419064
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 0x419189
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00418e6c
mov esi, eax
mov eax, dword [0x439e64]
cmp byte [eax], 0
je 0x419131
mov eax, dword [0x439d28]
call fcn.004048cc
call fcn.00404518
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 [0x419034]
call fcn.00407894
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 0x4191a4
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x41916d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x439d00]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x43cc4c]
call fcn.0040794c
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 0x419190
lea eax, [ebp - 4]
mov edx, dword [0x419034]
call fcn.004078a0
ret

Function at 0x421420
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, eax
mov byte [ebp - 1], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x421475
xor eax, eax
push ebp
push 0x42146e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00423d30
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421475
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsW
ret
movzx eax, byte [ebp - 1]
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4214e0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebx
push esi
mov ebx, 0x43ef50
cmp byte [0x439754], 0
jne 0x42168d
mov eax, ebx
mov edx, 0x11c
call fcn.00422c90
mov eax, 0x43f06c
mov edx, 0x24
call fcn.00422c90
xor eax, eax
mov dword [0x439760], eax
mov dword [ebx], 0x11c
push ebx
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x42168d
movzx esi, word [ebx + 0x114]
movzx eax, si
mov dword [0x439758], eax
mov eax, dword [0x439c98]
cmp dword [eax], 0
je 0x421570
push 0x439760
movzx eax, word [ebx + 0x116]
push eax
movzx eax, si
push eax
mov eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [0x439c98]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x421570
xor eax, eax
mov dword [0x439760], eax
mov edx, dword [0x439e58]
cmp dword [edx], 0
je 0x42159e
mov eax, dword [ebx + 4]
cmp eax, 5
jb 0x421589
cmp dword [ebx + 8], 1
jae 0x42158e
cmp eax, 5
jbe 0x42159e
push 0x43f06c
mov eax, dword [0x439e58]
mov eax, dword [eax]
call eax
jmp 0x4215a8
push 0x43f06c
call sub.KERNEL32.DLL_GetSystemInfo_1
cmp dword [ebx + 0x10], 2
jne 0x42168d
cmp word [0x43f06c], 9
sete al
and eax, 0x7f
movzx eax, byte [eax + 0x439764]
mov byte [0x43975c], al
call fcn.00421480
mov byte [0x43975d], al
mov eax, dword [ebx + 4]
cmp eax, 0xa
jb 0x4215ea
mov byte [0x439754], 7
jmp 0x42168d
cmp eax, 6
jne 0x421652
mov eax, dword [ebx + 8]
sub eax, 1
jb 0x421604
je 0x42161b
dec eax
je 0x421632
dec eax
je 0x421649
jmp 0x42168d
cmp byte [ebx + 0x11a], 1
setne byte [0x43975d]
mov byte [0x439754], 3
jmp 0x42168d
cmp byte [ebx + 0x11a], 1
setne byte [0x43975d]
mov byte [0x439754], 4
jmp 0x42168d
cmp byte [ebx + 0x11a], 1
setne byte [0x43975d]
mov byte [0x439754], 5
jmp 0x42168d
mov byte [0x439754], 6
jmp 0x42168d
cmp eax, 5
jne 0x42168d
mov eax, dword [ebx + 8]
sub eax, 1
jb 0x421666
je 0x42166f
dec eax
je 0x421678
jmp 0x42168d
mov byte [0x439754], 1
jmp 0x42168d
mov byte [0x439754], 2
jmp 0x42168d
cmp byte [ebx + 0x11a], 1
setne byte [0x43975d]
mov byte [0x439754], 2
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, eax
call sub.KERNEL32.DLL_GetTickCount_1
mov ebx, eax
mov dword [esp + 4], ebx
test ebx, ebx
jne 0x4218be
mov dword [esp + 4], 1
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, esi
call fcn.00406b00
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4218de
test al, 0x10
sete bl
jmp 0x4218e0
xor ebx, ebx
call sub.KERNEL32.DLL_GetTickCount_1
mov esi, eax
mov dword [esp + 8], esi
test esi, esi
jne 0x4218f7
mov dword [esp + 8], 1
mov eax, esp
mov edx, dword [esp + 8]
call fcn.00425280
cmp eax, dword [0x43973c]
jbe 0x42190f
mov dword [0x43973c], eax
mov eax, ebx
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x421950
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, esi
call fcn.00406b00
mov edi, eax
push edi
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4219a4
push edi
call sub.KERNEL32.DLL_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x4219a4
test edi, 1
je 0x4219a4
and edi, 0xfffffffe
push edi
mov eax, esi
call fcn.00406b00
mov ebx, eax
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
push ebx
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, eax
call sub.KERNEL32.DLL_GetTickCount_1
mov ebx, eax
mov dword [esp + 4], ebx
test ebx, ebx
jne 0x4219ce
mov dword [esp + 4], 1
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, esi
call fcn.00406b00
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4219f2
test eax, 0x10
seta bl
jmp 0x4219f4
xor ebx, ebx
call sub.KERNEL32.DLL_GetTickCount_1
mov esi, eax
mov dword [esp + 8], esi
test esi, esi
jne 0x421a0b
mov dword [esp + 8], 1
mov eax, esp
mov edx, dword [esp + 8]
call fcn.00425280
cmp eax, dword [0x439740]
jbe 0x421a23
mov dword [0x439740], eax
mov eax, ebx
add esp, 0xc
pop esi
pop ebx
ret

Function at 0x422610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.KERNEL32.DLL_FindResourceW
mov edi, eax
mov dword [ebx + 0x10], edi
test edi, edi
jne 0x42263e
push ebp
call fcn.00422560
pop ecx
mov eax, dword [ebx + 0x10]
push eax
push esi
call sub.KERNEL32.DLL_LoadResource
mov edi, eax
mov dword [ebx + 0x14], edi
test edi, edi
jne 0x422658
push ebp
call fcn.00422560
pop ecx
mov edi, ebx
mov eax, dword [ebx + 0x14]
push eax
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x10]
push eax
push esi
call sub.KERNEL32.DLL_SizeofResource
mov edx, dword [ebp - 8]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x424000
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x424162
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x42413a
mov bl, 1
lea edx, [ebp - 4]
mov eax, esi
call fcn.00423ea0
mov eax, dword [ebp - 4]
call fcn.004219b0
test al, al
jne 0x42413a
mov eax, dword [ebp - 4]
test eax, eax
je 0x42404f
sub eax, 4
mov eax, dword [eax]
cmp eax, 3
jge 0x424058
mov al, 1
jmp 0x424071
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00423f50
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00406e10
sete al
test al, al
je 0x4240ca
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.0040665c
xor eax, eax
push ebp
push 0x4240bd
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
call fcn.00406b00
push eax
call sub.KERNEL32.DLL_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4240c4
lea eax, [ebp - 8]
call fcn.00406280
ret
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00423f50
mov eax, dword [ebp - 0x18]
call fcn.00424000
test al, al
je 0x424136
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040665c
xor eax, eax
push ebp
push 0x424129
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
call fcn.00406b00
push eax
call sub.KERNEL32.DLL_CreateDirectoryW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xe], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424130
lea eax, [ebp - 0xc]
call fcn.00406280
ret
xor eax, eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424169
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004062e0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004062e0
ret

Function at 0x425300
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x3c
call fcn.00404930
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x500
mov eax, dword [ebp - 4]
call fcn.00406b00
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
call fcn.00406b00
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0xc], 0
je 0x425353
mov eax, dword [ebp - 0xc]
call fcn.00406b00
mov dword [ebp - 0x38], eax
cmp dword [ebp + 0xc], 0
je 0x425364
mov eax, dword [ebp + 0xc]
call fcn.00406b00
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
inc dword [0x4397d0]
xor eax, eax
push ebp
push 0x42539b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
call sub.shell32.dll_ShellExecuteExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4253a2
dec dword [0x4397d0]
ret
Function at 0x425400
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4254e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00406280
mov eax, dword [0x439e48]
cmp dword [eax], 0
je 0x425489
mov edx, dword [0x439d68]
mov eax, dword [ebp - 8]
mov ecx, 0x10
call fcn.004136bc
test al, al
jne 0x425489
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x4000
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x439e48]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x425489
cmp dword [ebp - 0x14], 0
je 0x425489
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00406b58
mov eax, dword [ebp - 0x14]
push eax
call sub.ole32.dll_CoTaskMemFree
jmp 0x4254cb
lea eax, [ebp - 0x10]
mov edx, 0x105
call fcn.00406c00
cmp dword [ebp - 4], 0
jl 0x4254cb
mov eax, dword [ebp - 0x10]
call fcn.00406b00
push eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
call sub.shell32.dll_SHGetFolderPathW
test eax, eax
jne 0x4254cb
lea eax, [ebp - 0x10]
call fcn.00422cf0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00406614
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4254e8
lea eax, [ebp - 0x10]
call fcn.00406280
ret

Function at 0x426340
Capabilities:
Clear file content
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
push 4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.00407598
push edx
push eax
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0041418c
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
test eax, eax
je 0x4263a9
push 0
push 4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0xc]
call fcn.00407598
push edx
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetFileSize
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4263a5
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4263ad
jmp 0x4263a9
pop edx
pop eax
jle 0x4263ad
xor eax, eax
jmp 0x4263af
mov al, 1
mov byte [ebp - 9], al
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
cmp byte [ebp - 9], 0
jne 0x4263d2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00421950
mov esp, ebp
pop ebp
ret

Function at 0x426400
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 0
je 0x426423
mov eax, dword [ebp - 8]
call fcn.00406b00
push eax
call sub.KERNEL32.DLL_OutputDebugStringW
pop ecx
pop ecx
pop ebp
ret
Function at 0x4268e0
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
call fcn.00404f98
mov ebx, edx
mov esi, eax
cmp byte [esi + 0xd], 0
jne 0x42690d
mov edx, dword [esi + 0x24]
mov eax, esi
call fcn.00426990
test al, al
jne 0x42690d
push 1
mov eax, dword [esi + 4]
push eax
call sub.KERNEL32.DLL_TerminateThread
mov dl, 0xfc
and dl, bl
mov eax, esi
call fcn.00426aa0
lea eax, [esi + 0x1c]
mov dword [esp], eax
mov eax, dword [esp]
mov eax, dword [eax]
mov edx, dword [esp]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404c7c
lea eax, [esi + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov edx, dword [esp + 4]
xor ecx, ecx
mov dword [edx], ecx
call fcn.00404c7c
test bl, bl
jle 0x426954
mov eax, esi
call fcn.00404f40
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x426aa0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
push edi
call fcn.00404f98
mov ebx, edx
mov esi, eax
cmp dword [esi + 8], 0
je 0x426aea
cmp byte [esi + 0x18], 0
jne 0x426aea
mov eax, esi
call fcn.00426bf0
cmp byte [esi + 0xc], 0
je 0x426ae3
mov eax, dword [esi + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov edi, eax
test edi, edi
setge dl
mov eax, esi
call fcn.00426cc0
dec edi
jne 0x426ae3
mov byte [esi + 0xe], 0
mov eax, esi
call fcn.00426c00
mov eax, dword [esi + 4]
test eax, eax
je 0x426afc
push eax
call sub.KERNEL32.DLL_CloseHandle_1
xor eax, eax
mov dword [esi + 4], eax
mov dl, 0xfc
and dl, bl
mov eax, esi
call fcn.00404c6c
mov eax, dword [esi + 0x14]
call fcn.00404c7c
test bl, bl
jle 0x426b1a
mov eax, esi
call fcn.00404f40
pop edi
pop esi
pop ebx
ret

Function at 0x426b20
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x426bb8
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x426b7c
cmp byte [ebx + 0x18], 0
jne 0x426b7c
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
je 0x426b9d
lea edx, [ebp - 4]
mov eax, dword [0x439e2c]
call fcn.00409094
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4205a8]
call fcn.004191a8
call fcn.00405988
jmp 0x426b9d
lea edx, [ebp - 8]
mov eax, dword [0x439e2c]
call fcn.00409094
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4205a8]
call fcn.004191a8
call fcn.00405988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x426bbf
lea eax, [ebp - 8]
mov edx, 2
call fcn.004062e0
ret
Function at 0x427440
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x427448
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x427583
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push 0
push 1
call sub.KERNEL32.DLL_OpenProcess
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4274d1
push 0x4275a0
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14]
call fcn.00413c58
push dword [ebp - 0x14]
push 0x4275e0
call sub.KERNEL32.DLL_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.00413c58
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00406d60
mov edx, dword [ebp - 0x10]
mov eax, dword [0x439cdc]
mov eax, dword [eax]
mov ecx, 0x4275fc
call fcn.00425f60
mov byte [ebp - 5], 0
jmp 0x427568
xor eax, eax
push ebp
push 0x427561
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x42754a
push 0x427624
mov eax, dword [ebp - 4]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00413c58
push dword [ebp - 0x20]
push 0x4275e0
call sub.KERNEL32.DLL_GetLastError_2
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.00413c58
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00406d60
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x439cdc]
mov eax, dword [eax]
mov ecx, 0x4275fc
call fcn.00425b30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427568
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42758a
lea eax, [ebp - 0x24]
mov edx, 6
call fcn.004062e0
ret