joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411d5f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
mov ecx, dword [ecx]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x411d93
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
mov ebx, eax
jne 0x411db6
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp edi, esi
je 0x411dc1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc

Function at 0x411dca
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
jne 0x411e4f
xor eax, eax
cmp dword [ebp - 4], esi
je 0x411e0b
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 4], ecx
jne 0x411e4f
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea ecx, [ebp - 4]
push dword [ebp + 8]
push str.CLSID
call fcn.00411d5f
cmp dword [ebp - 4], esi
je 0x411e4b
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x411e6d
cmp eax, esi
push ebx
jle 0x411e5e
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x411e6a
push dword [ebp - 4]
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x412a53
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
push ebx
mov esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebx
mov dword [esi + 0x90], eax
jne 0x412a76
xor al, al
jmp 0x412a9e
lea eax, [ebp - 8]
push eax
push ebx
push esi
push 0x412aa2
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
setne byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x412a9b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret
Function at 0x4175f6
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4348fb
call fcn.0042617c
sub esp, 0x12c
and byte [ebp - 0x138], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x137]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x417677
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x14], 0x104
mov eax, str.CommonFilesDir
je 0x417657
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x138]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x138], 0
lea eax, [ebp - 0x138]
push eax
je 0x4176b0
lea ecx, [ebp - 0x34]
call fcn.00406b94
push 1
mov esi, 0x436480
pop ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], ebx
and dword [ebp - 4], 0
push 0x43f3c4
lea ecx, [ebp - 0x34]
call fcn.00404baf
jmp 0x4176c6
lea ecx, [ebp - 0x24]
call fcn.00406b94
mov esi, 0x436480
push 2
mov dword [ebp - 0x24], esi
pop ebx
lea eax, [ebp - 0x24]
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.004030e5
or ebx, 4
mov dword [edi], esi
test bl, 2
je 0x4176e6
lea ecx, [ebp - 0x24]
and ebx, 0xfffffffd
call fcn.0040311b
test bl, 1
je 0x4176f3
lea ecx, [ebp - 0x34]
call fcn.0040311b
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x417dce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x417df1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x417df4
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
ret

Function at 0x417dfc
Capabilities:
Check os version
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jae 0x417e77
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, 0x804
jne 0x417e38
push 0x43f980
jmp 0x417e62
cmp ax, 0x404
jne 0x417e45
push 0x43f978
jmp 0x417e62
and eax, 0xff
cmp ax, 0x11
jne 0x417e57
push str.MS_UI_Gothic
jmp 0x417e62
cmp ax, 0x12
jne 0x417e77
push 0x43f960
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 0xc]
mov word [eax], 9
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x417e7b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4349a4
call fcn.0042617c
sub esp, 0x18
push esi
push edi
call fcn.00413dab
mov edi, dword [ebp + 8]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
xor esi, esi
mov dword [ebp - 0x18], eax
cmp eax, esi
mov dword [ebp - 0x10], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x14], esi
je 0x417ec8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
push ebx
push dword [ebp + 0xc]
push edi
call fcn.00417dce
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
je 0x417f48
push ebx
lea ecx, [ebp - 0x24]
call fcn.00419414
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 4], esi
cmp eax, esi
je 0x417efe
cmp byte [eax], 0
je 0x417efe
push dword [ebp + 0x20]
lea ecx, [ebp - 0x24]
push eax
call fcn.004195bf
push dword [ebp + 8]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.00417f6f
pop ecx
mov esi, eax
pop ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push edi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
cmp esi, ebx
mov dword [ebp - 0x14], eax
je 0x417f3a
push esi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004194a3
xor esi, esi
cmp dword [ebp + 8], esi
pop ebx
je 0x417f5c
cmp dword [ebp - 0x18], esi
je 0x417f5c
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x41871d
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x434a04
call fcn.0042617c
sub esp, 0x34
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.00418a76
pop ecx
pop ecx
push 0x440754
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], ebx
call fcn.00404baf
lea ecx, [ebp - 0x24]
call fcn.00403c8a
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0x80
push 2
push ebx
mov edi, 0x40000000
push ebx
push edi
push dword [ebp - 0x20]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x4187c9
lea eax, [ebp - 0x40]
mov ecx, 0x4447b8
push eax
call fcn.0040438f
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00403cf7
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.0040311b
push 0x440754
lea ecx, [ebp - 0x24]
call fcn.00404baf
lea ecx, [ebp - 0x24]
call fcn.00403c8a
push ebx
push 0x80
push 2
push ebx
push ebx
push edi
push dword [ebp - 0x20]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x41880c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4187da
xor edi, edi
jmp 0x4187e3
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edi, eax
mov ecx, esi
call fcn.00403c8a
mov esi, dword [esi + 4]
lea eax, [ebp - 0x14]
push ebx
push eax
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x418803
mov bl, 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040311b
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x418a76
Capabilities:
Get common file path

Disassembly:
mov eax, 0x434a3b
call fcn.0042617c
sub esp, 0x128
and byte [ebp - 0x134], 0
push ebx
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x133]
and dword [ebp - 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x134]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp - 0x134], 0
lea eax, [ebp - 0x134]
push eax
je 0x418aed
lea ecx, [ebp - 0x30]
call fcn.00406b94
push 1
mov dword [ebp - 0x30], 0x436480
pop ebx
mov dword [ebp - 0x10], ebx
and dword [ebp - 4], 0
push 0x43f3c4
lea ecx, [ebp - 0x30]
call fcn.00404baf
jmp 0x418b02
lea ecx, [ebp - 0x20]
call fcn.00406b94
push 2
mov dword [ebp - 0x20], 0x436480
pop ebx
lea eax, [ebp - 0x20]
mov edi, dword [ebp + 8]
push eax
mov ecx, edi
call fcn.004030e5
or ebx, 4
mov dword [edi], 0x436480
test bl, 2
je 0x418b26
lea ecx, [ebp - 0x20]
and ebx, 0xfffffffd
call fcn.0040311b
test bl, 1
je 0x418b33
lea ecx, [ebp - 0x30]
call fcn.0040311b
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x418b43
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x434a58
call fcn.0042617c
sub esp, 0x24
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], 0x436448
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004190b5
mov eax, dword [eax + 0xc]
cmp eax, ebx
jne 0x418b80
xor esi, esi
jmp 0x418b89
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x20]
call fcn.0040311b
push 0x5c
inc esi
pop edi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.004044c6
cmp dword [0x436490], eax
je 0x418c1b
lea esi, [eax + 1]
lea ecx, [ebp - 0x20]
push esi
push ebx
push dword [ebp + 8]
call fcn.004178cf
mov dword [ebp - 0x20], 0x436480
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00403c8a
push ebx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x418c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x20]
call fcn.00403c8a
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x418c10
test al, 0x10
je 0x418c10
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0040311b
mov dword [ebp - 0x10], edi
jmp 0x418b98
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0040311b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004031de
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x419358
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x4193aa
push eax
call fcn.004261f8
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4193aa
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4407a4
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4193ae
xor al, al
jmp 0x41940f
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x440788
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x41940d
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.004261f8
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x41940d
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x4193fb
mov al, 1
pop ebx
leave
ret 4
Function at 0x42dca4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x443940
cmp edx, dword [eax]
je 0x42dcc6
add eax, 8
inc ecx
cmp eax, 0x4439d0
jl 0x42dcb7
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x443940]
jne 0x42ddf4
mov eax, dword [0x444a60]
cmp eax, 1
je 0x42ddce
test eax, eax
jne 0x42dcf7
cmp dword [0x4410e8], 1
je 0x42ddce
cmp edx, 0xfc
je 0x42ddf4
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42dd2e
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042b6f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00427130
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42dd71
lea eax, [ebp - 0x1a4]
push eax
call fcn.00427130
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x437cb4
push edi
call fcn.0042ebe0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042b6f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042b700
lea eax, [ebp - 0xa0]
push 0x437c94
push eax
call fcn.0042b700
push dword [esi + 0x443944]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042b700
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00430aed
add esp, 0x2c
pop edi
jmp 0x42ddf4
lea eax, [ebp + 8]
lea esi, [esi + 0x443944]
push 0
push eax
push dword [esi]
call fcn.00427130
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x418b64
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi - 0x7ff80000]
cmp esi, 0x7ff80000
ja 0x418b7c
mov ebx, 0x10000
lea edi, [esi + 0x7ff80000]
cmp esi, 0x80000000
jb 0x418b8f
mov edi, 0xfff80000
mov edx, dword [0x10952edc]
mov eax, dword [0x10952ee4]
test edx, edx
jne 0x418baa
test eax, eax
je 0x418bbd
mov edx, eax
mov dword [0x10952edc], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x418bbd
cmp ecx, ebx
jb 0x418bbd
cmp ecx, edi
jbe 0x418ca1
mov edx, eax
test eax, eax
jmp 0x418bdf
test edx, edx
je 0x418bda
mov eax, dword [edx + 8]
test eax, eax
je 0x418bda
cmp eax, ebx
jb 0x418bda
cmp eax, edi
jbe 0x418ca1
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10952edc], edx
jne 0x418bc3
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x418c21
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.00418ad8
mov edx, eax
test edx, edx
jne 0x418c67
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.00418a44
mov edx, eax
test edx, edx
jne 0x418c67
cmp esi, 0x40000000
jae 0x418c49
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.00418a44
mov edx, eax
test edx, edx
jne 0x418c67
mov edx, edi
lea ecx, [esi + 0x40000000]
call fcn.00418ad8
mov edx, eax
test edx, edx
jne 0x418c67
mov edx, esi
mov ecx, ebx
call fcn.00418a44
mov edx, eax
test edx, edx
jne 0x418c67
mov edx, edi
mov ecx, esi
call fcn.00418ad8
mov edx, eax
test edx, edx
je 0x418cc6
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10952ee4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10952edc], edx
mov dword [0x10952ee4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x418c91
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x418cc6
cmp esi, edi
ja 0x418cc6
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call 0xffdcc955
add esp, 0xc
mov eax, esi
jmp 0x418cc8
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x418d5d
Capabilities:
Parse pe header

Disassembly:
push 0x24
push 0x10903ce8
call 0xffdcc269
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [0x1064f2f4]
and dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x418dd3
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x418dd3
mov esi, dword [edx + ecx + 0xd8]
lea eax, [ecx + esi]
cmp edi, eax
jb 0x418dd3
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x418dd3
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x418ddc
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f50
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4250fa
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x437068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0xd8]
push 4
push str.klhk
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0xf
mov byte [ebp - 0xd8], 0
call fcn.00405550
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc0]
push 4
push str.klif
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xac], 0xf
mov byte [ebp - 0xc0], 0
call fcn.00405550
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa8]
push 5
push str.klgse
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
call fcn.00405550
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x90]
push 0xb
push str.klbackupflt
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0xf
mov byte [ebp - 0x90], 0
call fcn.00405550
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
push 0xc
push str.klbackupdisk
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
call fcn.00405550
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x60]
push 6
push str.klelam
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
call fcn.00405550
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x48]
push 3
push 0x433524
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
call fcn.00405550
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x30]
push 5
push str.klwtp
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
call fcn.00405550
mov dword [ebp - 4], 7
push 0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00406f50
mov dword [esi], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x18]
push dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xd8]
push ecx
push dword [eax]
mov ecx, esi
call fcn.00406b60
push fcn.00403d90
push 8
push 0x18
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 0xa
push eax
call fcn.00409742
mov dword [esi + 0x18], 0
mov eax, esi
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0xf
mov byte [esi + 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004096fc
mov esp, ebp
pop ebp
ret
Function at 0x402190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425142
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x437068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x438c48], 0
jne 0x4023d7
push 0x38
call fcn.00409712
mov esi, eax
add esp, 4
mov dword [ebp - 0x35c], esi
push 0x38
push 0
push esi
mov dword [ebp - 4], 0
call fcn.0040b7c0
add esp, 0xc
mov ecx, esi
call fcn.00401f50
mov dword [ebp - 4], 0xffffffff
mov dword [0x438c48], eax
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x358], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402238
sub ecx, edx
lea eax, [ebp - 0x220]
push ecx
push eax
lea ecx, [ebp - 0x358]
call fcn.00405550
mov ecx, dword [0x438c48]
lea eax, [ebp - 0x358]
push eax
lea ecx, [ecx + 8]
call fcn.00403de0
mov edx, dword [ebp - 0x344]
cmp edx, 0x10
jb 0x4022a3
mov ecx, dword [ebp - 0x358]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402299
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023f6
push edx
push ecx
call fcn.00409840
add esp, 8
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.0040b7c0
add esp, 0xc
lea eax, [ebp - 0x340]
push 0x11c
push 0
push eax
call fcn.0040b7c0
add esp, 0xc
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40234c
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40234c
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x340], 0x11c
push ecx
call eax
test eax, eax
jne 0x40234c
movzx eax, word [ebp - 0x228]
push eax
push dword [ebp - 0x334]
lea eax, [ebp - 0x118]
push dword [ebp - 0x338]
push dword [ebp - 0x33c]
push str._u._u._u._u
push 0x104
push eax
call fcn.00407280
add esp, 0x1c
lea eax, [ebp - 0x118]
push eax
push str.OS_Version:__s_n
call fcn.004071d0
add esp, 8
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x344], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x358], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402370
sub ecx, edx
lea eax, [ebp - 0x118]
push ecx
push eax
lea ecx, [ebp - 0x358]
call fcn.00405550
mov ecx, dword [0x438c48]
lea eax, [ebp - 0x358]
push eax
lea ecx, [ecx + 0x20]
call fcn.00403de0
mov edx, dword [ebp - 0x344]
cmp edx, 0x10
jb 0x4023d7
mov ecx, dword [ebp - 0x358]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4023cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023fb
push edx
push ecx
call fcn.00409840
add esp, 8
mov eax, dword [0x438c48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004096fc
mov esp, ebp
pop ebp
ret
call fcn.0040f622
call fcn.0040f622
int3
Function at 0x4044f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40451b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40453d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x40453f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4045c3
jg 0x404554
test esi, esi
je 0x4045c3
test ecx, ecx
jl 0x40459d
jg 0x40455e
test eax, eax
je 0x40459d
cmp edi, ecx
jg 0x404572
jl 0x404568
cmp esi, eax
jae 0x404572
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0040acc0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x4045a0
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4045c3
jg 0x4045aa
test esi, esi
je 0x4045c3
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x4045c3
push eax
push esi
push 1
push edx
call fcn.0040ea1c
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc