joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401030
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534af0
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.004b0a90
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1028], 0
push 0x540868
lea eax, [ebp - 0x14]
push eax
call fcn.0041acc0
add esp, 8
mov dword [ebp - 4], 0
push str.safelive.dll
lea ecx, [ebp - 0x10]
push ecx
call fcn.0041acc0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0043e290
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4011c1
xor edx, edx
mov word [ebp - 0x1024], dx
push 0x7fe
push 0
lea eax, [ebp - 0x1022]
push eax
call fcn.004b0ac0
add esp, 0xc
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], 0x7fe
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x1024]
push edx
lea eax, [ebp - 0x18]
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40111b
cmp dword [ebp - 0x18], 1
jne 0x40111b
cmp dword [ebp - 0x1c], 0
jbe 0x40111b
lea ecx, [ebp - 0x1024]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea edx, [ebp - 0x1024]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40116b
push 0x540868
mov ecx, dword [ebp + 8]
call fcn.00401e30
mov eax, dword [ebp - 0x1028]
or eax, 1
mov dword [ebp - 0x1028], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401eb0
mov eax, dword [ebp + 8]
jmp 0x40124b
xor ecx, ecx
mov word [ebp - 0x824], cx
push 0x7fe
push 0
lea edx, [ebp - 0x822]
push edx
call fcn.004b0ac0
add esp, 0xc
push str.safelive.dll
lea eax, [ebp - 0x1024]
push eax
lea ecx, [ebp - 0x824]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [ebp - 0x1024]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401ed0
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401ed0
lea ecx, [ebp - 0x10]
call fcn.0043e290
push eax
call fcn.00401c70
add esp, 4
test eax, eax
jne 0x401212
push 0x540868
mov ecx, dword [ebp + 8]
call fcn.00401e30
mov ecx, dword [ebp - 0x1028]
or ecx, 1
mov dword [ebp - 0x1028], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401eb0
mov eax, dword [ebp + 8]
jmp 0x40124b
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401e10
mov eax, dword [ebp - 0x1028]
or eax, 1
mov dword [ebp - 0x1028], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401eb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401eb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret
Function at 0x401330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534b49
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x228], 0
mov eax, dword [0x58eea4]
and eax, 1
jne 0x4013a8
mov ecx, dword [0x58eea4]
or ecx, 1
mov dword [0x58eea4], ecx
mov dword [ebp - 4], 0
push 0x540868
mov ecx, 0x58eea0
call fcn.00401e30
push 0x53f470
call fcn.004b0c61
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x58eea0
call fcn.00402010
movzx edx, al
test edx, edx
jne 0x4013dd
push 0x58eea0
mov ecx, dword [ebp + 8]
call fcn.00401e10
mov eax, dword [ebp - 0x228]
or eax, 1
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 8]
jmp 0x40147b
mov dword [ebp - 0x14], 1
xor ecx, ecx
mov word [ebp - 0x224], cx
push 0x206
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.004b0ac0
add esp, 0xc
mov dword [ebp - 0x10], 0x208
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x14]
push edx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40144b
cmp dword [ebp - 0x14], 1
jne 0x40144b
cmp dword [ebp - 0x10], 0
jbe 0x40144b
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
lea ecx, [ebp - 0x224]
push ecx
mov ecx, 0x58eea0
call fcn.00401ed0
push 0x58eea0
mov ecx, dword [ebp + 8]
call fcn.00401e10
mov edx, dword [ebp - 0x228]
or edx, 1
mov dword [ebp - 0x228], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret
Function at 0x401620
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x534bbc
mov eax, dword fs:[0]
push eax
mov eax, 0x8820
call fcn.004b0a90
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x882c], 0
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x881c], ax
push 0x7ffe
push 0
lea ecx, [ebp - 0x881a]
push ecx
call fcn.004b0ac0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x814], dx
push 0x7fe
push 0
lea eax, [ebp - 0x812]
push eax
call fcn.004b0ac0
add esp, 0xc
lea ecx, [ebp - 0x818]
push ecx
lea ecx, [ebp + 0xc]
call fcn.0043e290
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x8820], eax
cmp dword [ebp - 0x8820], 0
je 0x4016ce
cmp dword [ebp - 0x8820], 0x7fff
jbe 0x401701
push 0x540868
mov ecx, dword [ebp + 8]
call fcn.00401e30
mov edx, dword [ebp - 0x882c]
or edx, 1
mov dword [ebp - 0x882c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401eb0
mov eax, dword [ebp + 8]
jmp 0x4017dc
lea eax, [ebp - 0x881c]
push eax
mov ecx, dword [ebp - 0x8820]
push ecx
push 0
lea ecx, [ebp + 0xc]
call fcn.0043e290
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4017ac
lea edx, [ebp - 0x8828]
push edx
lea eax, [ebp - 0x8824]
push eax
push 0x5408ec
lea ecx, [ebp - 0x881c]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4017ac
mov edx, dword [ebp - 0x8824]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x8824]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x8824]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x8824]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
push 0x5408d4
lea edx, [ebp - 0x814]
push edx
call fcn.00401ba0
add esp, 0x18
lea eax, [ebp - 0x814]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401e30
mov ecx, dword [ebp - 0x882c]
or ecx, 1
mov dword [ebp - 0x882c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401eb0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret
Function at 0x401800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.00401f80
mov eax, dword [str.Path]
mov dword [ebp - 0x21c], eax
mov ecx, dword [0x540844]
mov dword [ebp - 0x218], ecx
mov dx, word [0x540848]
mov word [ebp - 0x214], dx
mov dword [ebp - 0x22c], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004b0ac0
add esp, 0xc
mov dword [ebp - 0x220], 0
lea edx, [ebp - 0x220]
push edx
push 0x20019
push 0
push 0x5408f0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x4018aa
jmp 0x40193a
mov dword [ebp - 0x230], 0x208
mov dword [ebp - 0x224], 1
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x224]
push edx
push 0
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x4018fc
jmp 0x40193a
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401ed0
push 0x540868
mov eax, dword [ebp + 8]
push eax
call fcn.004019b0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x401930
push 0x5408ec
mov ecx, dword [ebp + 8]
call fcn.00401990
mov dword [ebp - 0x22c], 1
cmp dword [ebp - 0x220], 0
je 0x401950
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret

Function at 0x401cc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.00401d50
test eax, eax
je 0x401cd6
mov eax, 1
jmp 0x401d33
cmp dword [ebp + 8], 0
jne 0x401ce0
xor eax, eax
jmp 0x401d33
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401cf5
mov eax, 1
jmp 0x401d33
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401c70
add esp, 4
test eax, eax
jne 0x401d2e
call fcn.00401d40
mov dword [ebp - 0xc], eax
push 1
call fcn.004b01f0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0045e980
add esp, 4
push eax
call fcn.004b0400
add esp, 0xc
xor eax, eax
jmp 0x401d33
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402d90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], ecx
mov ecx, dword [ebp + 8]
call fcn.00401f80
mov eax, dword [str.Path]
mov dword [ebp - 0x21c], eax
mov ecx, dword [0x540844]
mov dword [ebp - 0x218], ecx
mov dx, word [0x540848]
mov word [ebp - 0x214], dx
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x224], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.004b0ac0
add esp, 0xc
mov dword [ebp - 0x220], 0
lea edx, [ebp - 0x220]
push edx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x402e54
jmp 0x402ee4
mov dword [ebp - 0x230], 0x208
mov dword [ebp - 0x224], 1
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x224]
push edx
push 0
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
je 0x402ea6
jmp 0x402ee4
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00401ed0
push 0x540868
mov eax, dword [ebp + 8]
push eax
call fcn.004019b0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x402eda
push 0x5408ec
mov ecx, dword [ebp + 8]
call fcn.00401990
mov dword [ebp - 0x22c], 1
cmp dword [ebp - 0x220], 0
je 0x402efa
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret 4

Function at 0x403380
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x58c758]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x134], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0x11c
push 0
lea eax, [ebp - 0x130]
push eax
call fcn.004b0ac0
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea ecx, [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4033e1
jmp 0x40340b
cmp dword [ebp - 0x12c], 5
jae 0x4033ee
jmp 0x40340b
cmp dword [ebp - 0x12c], 5
jne 0x403404
cmp dword [ebp - 0x128], 1
jae 0x403404
jmp 0x40340b
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004b0a79
mov esp, ebp
pop ebp
ret
Function at 0x403990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
call fcn.00403bf0
test eax, eax
je 0x4039ab
cmp dword [ebp + 8], 0
jne 0x4039b2
xor eax, eax
jmp 0x403b24
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0x1008]
ja 0x403a27
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b1320
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [edx], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1008]
sub edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1008], edx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1008]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
lea edx, [ecx + eax + 8]
push edx
mov eax, dword [ebp - 0xc]
add eax, 8
push eax
call fcn.004b0fb0
add esp, 0xc
mov eax, 1
jmp 0x403b24
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x100c]
cmp eax, dword [edx + 0x1010]
jb 0x403a8e
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x1008], 0
jbe 0x403a64
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x1008]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 8
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004b1320
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1008]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1008], 0
mov eax, 1
jmp 0x403b24
mov dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, 0x1000
sub eax, dword [edx + 0x1008]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1008]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403b19
cmp dword [ebp - 8], 0
jbe 0x403b19
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1008]
add edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1008], edx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x100c]
add edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x100c], edx
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00403990
jmp 0x403b24
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403b30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00403bf0
test eax, eax
je 0x403b4a
mov eax, 1
jmp 0x403b9b
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp - 4]
call fcn.0043e290
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0xffffffff
je 0x403b99
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1010], eax
mov eax, 1
jmp 0x403b9b
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403fb0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0xc], eax
cmp dword [ebp + 8], 0
jne 0x403fdb
mov eax, 1
jmp 0x4040b1
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0
je 0x403fef
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
je 0x404018
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, dword [ebp - 0x14]
mov dword [edx], eax
jmp 0x404039
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0
jne 0x404045
xor eax, eax
jmp 0x4040b1
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
jne 0x404094
mov dword [ebp - 0xc], 0xfeff
mov dword [ebp - 0x10], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 2
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp + 0xc], 0
je 0x4040ac
push 2
push 0
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x3c], 0
je 0x404377
jmp 0x4044ad
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x3c], edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x3c]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x40], 0
je 0x4043ad
cmp dword [0x58f6b0], 0
jne 0x4043ad
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x40], 0
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x40], 0
je 0x40447a
cmp dword [0x58f6b0], 0
je 0x40447a
push 0
push 0
push 0x31
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x14], eax
push 0
push ecx
mov ecx, esp
push 0
call fcn.00420e90
push 0
push 0x50300104
push 0
push ecx
mov ecx, esp
lea edx, [ebp - 0x10]
push edx
call fcn.00420e90
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x3c]
push ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0x48
call fcn.004049c0
push 0x20
push 0x20000
push 0
mov ecx, dword [ebp - 0x20]
add ecx, 0x48
call fcn.00405e50
push 0x30003
push 3
push 0xd3
mov ecx, dword [ebp - 0x20]
add ecx, 0x48
call fcn.00405d90
push 1
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x20]
add ecx, 0x48
call fcn.00405de0
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x48
call fcn.00404a40
push 5
mov ecx, dword [ebp - 0x20]
add ecx, 0x48
call fcn.00405e10
push 0
mov ecx, dword [ebp - 0x20]
add ecx, 0x48
call fcn.00404a70
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
push 0x404320
push 0
push 0
call fcn.004b17b2
add esp, 0x18
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0x4c], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x50], eax
mov esp, ebp
pop ebp
ret 4
Function at 0x406f60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 0x406fd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x406f96
xor eax, eax
jmp 0x406fcc
cmp dword [0x58f6d8], 0
jne 0x406fbd
push 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x102
je 0x406fbb
xor eax, eax
jmp 0x406fcc
jmp 0x406f96
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x407460
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 8], 0
je 0x40747f
mov eax, dword [ebp + 8]
push eax
call fcn.004b1d80
add esp, 4
test eax, eax
ja 0x407486
xor eax, eax
jmp 0x407544
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x407290
push 0
push 0
call fcn.004b17b2
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4074c1
xor eax, eax
jmp 0x407544
mov dword [ebp - 0xc], 0x3a98
mov edx, dword [ebp - 0xc]
shl edx, 1
imul edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40752c
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40750e
cmp dword [ebp - 4], 1
jne 0x40750e
mov dword [ebp - 0x28], 1
jmp 0x407515
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
jmp 0x407544
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407740
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x34], ecx
cmp dword [ebp + 8], 0
je 0x40776b
cmp dword [ebp + 0x10], 0
je 0x40776b
mov eax, dword [ebp + 8]
push eax
call fcn.004b1d80
add esp, 4
test eax, eax
jbe 0x40776b
cmp dword [ebp + 0x14], 0xf
jg 0x407772
xor eax, eax
jmp 0x40784e
mov dword [ebp - 0x10], 3
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
push 0x407550
push 0
push 0
call fcn.004b17b2
add esp, 0x18
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4077c6
xor eax, eax
jmp 0x40784e
mov dword [ebp - 0xc], 0x4e20
mov edx, dword [ebp - 0xc]
shl edx, 1
mov eax, dword [ebp - 0x10]
add eax, 2
imul edx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x407836
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x407818
cmp dword [ebp - 4], 1
jne 0x407818
mov dword [ebp - 0x38], 1
jmp 0x40781f
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
jmp 0x40784e
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10