joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c150
Capabilities:
Check if file exists
Delete file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c9cb
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x164], ecx
push str.CEdpSecDiskAppApp_DeleteTmpPolicyFile_enter
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x35], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 0x4629f3
lea ecx, [ebp - 0x34]
call fcn.0040a300
mov dword [ebp - 4], 0
mov eax, dword [0x4801f8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], 1
jmp 0x40c1cc
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x14]
jge 0x40c25b
mov eax, dword [ebp - 0x3c]
mov ecx, dword [0x4801fc]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x10], edx
push 0x462b94
call fcn.004404c0
add esp, 4
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x462b98
call fcn.00441a3f
add esp, 0xc
test eax, eax
jne 0x40c256
mov ecx, dword [ebp - 0x3c]
add ecx, 1
cmp ecx, dword [ebp - 0x14]
jge 0x40c251
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [0x4801fc]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x40c251
mov eax, dword [ebp - 0x10]
push eax
call fcn.004404c0
add esp, 4
test eax, eax
jbe 0x40c251
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x34]
call fcn.004031c0
jmp 0x40c25b
jmp 0x40c1c3
jmp 0x40c1c3
lea ecx, [ebp - 0x34]
call fcn.00403cd0
test eax, eax
jbe 0x40c320
mov ecx, 0x47df48
call fcn.0040aef0
push eax
lea ecx, [ebp - 0x160]
call fcn.0040a300
mov byte [ebp - 4], 1
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x160]
call fcn.0040d500
mov byte [ebp - 0x144], 0
push 0x103
push 0
lea eax, [ebp - 0x143]
push eax
call fcn.00440170
add esp, 0xc
lea ecx, [ebp - 0x160]
call fcn.00403230
push eax
push str.CEdpSecDiskAppApp_delete_file:__s
lea ecx, [ebp - 0x144]
push ecx
call fcn.0040d550
add esp, 0xc
lea edx, [ebp - 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x160]
call fcn.00403230
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40c311
push str.CEdpSecDiskAppApp_delete_file
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x160]
call fcn.00403230
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x160]
call fcn.004031a0
push str.CEdpSecDiskAppApp_DeleteTmpPolicyFile_leave
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004031a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret
Function at 0x40c6d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], ecx
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.00440170
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x110]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403070
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret 4
Function at 0x40e1a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40e1e7
cmp dword [ebp - 0x90], 2
jne 0x40e1e7
cmp dword [ebp - 0x9c], 6
jb 0x40e1e7
mov eax, 1
jmp 0x40e1e9
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret

Function at 0x40e200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.004108c0
add esp, 0x10
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esp, ebp
pop ebp
ret

Function at 0x40e360
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [ebp - 4], eax
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.00440170
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
push str.System_Defalut_Language_Type:_d
lea edx, [ebp - 0x110]
push edx
call fcn.0040d550
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 4], 0x804
je 0x40e3d9
cmp dword [ebp - 4], 0xc04
je 0x40e3d9
cmp dword [ebp - 4], 0x404
jne 0x40e3df
xor eax, eax
jmp 0x40e3e4
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x40eb6d
xor al, al
jmp 0x40ebba
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.00440170
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x463b30
lea edx, [ebp - 0x110]
push edx
call fcn.0040d550
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ebb8
xor al, al
jmp 0x40ebba
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret
Function at 0x40ee10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0x34
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40eef1
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0
jne 0x40ee67
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004222b4
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], edx
jmp 0x40ee4a
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00440170
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40eedf
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
push 0x463b34
mov ecx, dword [ebp - 0x18]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40eedf
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
xor ecx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov cl, 0x20
call fcn.00441d30
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
xor ecx, ecx
or eax, dword [ebp - 8]
or ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004222a9
add esp, 4
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x40ef00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x40ef24
xor eax, eax
jmp 0x40ef91
mov dword [ebp - 0x240], 0x22c
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40ef84
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x21c]
push eax
call fcn.00441e60
add esp, 8
test eax, eax
jne 0x40ef70
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 4], ecx
jmp 0x40ef84
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40ef4e
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret
Function at 0x40efa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x40efb7
xor eax, eax
jmp 0x40f003
mov eax, dword [ebp + 8]
push eax
call fcn.0040ef00
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x40f000
mov ecx, dword [ebp - 4]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40f000
push 0xffffffffffffffff
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40f003
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x40f580
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cceb
mov eax, dword fs:[0]
push eax
sub esp, 0x388
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38c], ecx
mov dword [ebp - 0x15c], 0
mov byte [ebp - 0x36c], 0
push 0x103
push 0
lea eax, [ebp - 0x36b]
push eax
call fcn.00440170
add esp, 0xc
mov byte [ebp - 0x264], 0
push 0x103
push 0
lea ecx, [ebp - 0x263]
push ecx
call fcn.00440170
add esp, 0xc
lea edx, [ebp - 0x388]
push edx
mov ecx, dword [ebp - 0x38c]
call fcn.0040f9c0
mov dword [ebp - 0x390], eax
mov eax, dword [ebp - 0x390]
mov dword [ebp - 0x394], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x394]
call fcn.00403230
push eax
push 0x104
lea ecx, [ebp - 0x264]
push ecx
call fcn.00441288
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x388]
call fcn.004031a0
lea edx, [ebp - 0x264]
push edx
push 0x104
lea eax, [ebp - 0x36c]
push eax
call fcn.00441288
add esp, 0xc
push str.EdpEDisk_.DLL
push 0x104
lea ecx, [ebp - 0x36c]
push ecx
call fcn.00441ef3
add esp, 0xc
lea edx, [ebp - 0x154]
push edx
lea eax, [ebp - 0x36c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0xffffffff
jne 0x40f6b6
mov eax, dword [ebp - 0x15c]
jmp 0x40f73f
cmp dword [ebp - 0x154], 0x10
je 0x40f72c
mov ecx, dword [ebp - 0x15c]
add ecx, 1
mov dword [ebp - 0x15c], ecx
push 0
lea edx, [ebp - 0x264]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00410900
add esp, 0xc
push 0
lea ecx, [ebp - 0x128]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00410a50
add esp, 0xc
lea eax, [ebp - 0x154]
push eax
mov ecx, dword [ebp - 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40f72c
cmp dword [ebp - 0x154], 0x10
jne 0x40f71b
jmp 0x40f6f8
mov edx, dword [ebp - 0x15c]
add edx, 1
mov dword [ebp - 0x15c], edx
jmp 0x40f6f8
mov eax, dword [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret 4
Function at 0x40f760
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cd1e
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], ecx
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea eax, [ebp - 0x11b]
push eax
call fcn.00440170
add esp, 0xc
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x24c]
call fcn.0040f580
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 1
jle 0x40f939
mov byte [ebp - 0x22c], 0
push 0x103
push 0
lea edx, [ebp - 0x22b]
push edx
call fcn.00440170
add esp, 0xc
lea eax, [ebp - 0x248]
push eax
mov ecx, dword [ebp - 0x24c]
call fcn.0040f9c0
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x254], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x254]
call fcn.00403230
push eax
push 0x104
lea edx, [ebp - 0x22c]
push edx
call fcn.00441288
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.004031a0
push str.dllcfg.ini
push 0x104
lea eax, [ebp - 0x22c]
push eax
call fcn.00441ef3
add esp, 0xc
lea ecx, [ebp - 0x22c]
push ecx
push 0
push str.VERSION
push str.SCRDLL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x124], eax
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x258], edx
cmp dword [ebp - 0x258], 1
je 0x40f8b1
cmp dword [ebp - 0x258], 2
je 0x40f8df
cmp dword [ebp - 0x258], 3
je 0x40f90b
jmp 0x40f937
push str.EdpEdisk_NM
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x24c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24c]
cmp dword [edx], 0
je 0x40f8dd
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax]
push ecx
call fcn.0040fa80
jmp 0x40f937
push str.EdpEdisk_GJDW
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 0x24c]
mov dword [edx], eax
mov eax, dword [ebp - 0x24c]
cmp dword [eax], 0
je 0x40f90b
mov ecx, dword [ebp - 0x24c]
mov edx, dword [ecx]
push edx
call fcn.0040fa80
push str.EdpEdisk_FJBF
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x24c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24c]
cmp dword [edx], 0
je 0x40f937
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax]
push ecx
call fcn.0040fa80
jmp 0x40f970
cmp dword [ebp - 0x120], 1
jne 0x40f970
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0x24c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x24c]
cmp dword [edx], 0
je 0x40f970
mov eax, dword [ebp - 0x24c]
mov ecx, dword [eax]
push ecx
call fcn.0040fa80
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret
Function at 0x40fc00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45cd60
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x18]
push edx
call fcn.00440978
add esp, 8
mov dword [ebp - 0x38], eax
push 1
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
call fcn.00440da0
add esp, 8
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x40fc7e
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x38]
add eax, 1
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0044de87
add esp, 0x10
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x463dcb
lea ecx, [ebp - 0x58]
call fcn.0040a300
mov dword [ebp - 4], 0
push 0x463de1
lea ecx, [ebp - 0x34]
call fcn.0040a300
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.0040fe10
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x14], eax
movzx edx, byte [0x47df88]
test edx, edx
jne 0x40fd0b
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00440d12
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004031a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004031a0
jmp 0x40fdea
cmp dword [ebp - 0x3c], 0
je 0x40fdcf
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004404c0
add esp, 4
mov esi, eax
mov edx, dword [ebp + 8]
push edx
call fcn.004404c0
add esp, 4
add esi, eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004404c0
add esp, 4
lea ecx, [esi + eax + 0x100]
mov dword [ebp - 0x60], ecx
push 1
mov edx, dword [ebp - 0x60]
push edx
call fcn.00440da0
add esp, 8
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x40fdc3
mov eax, dword [ebp - 0x60]
push eax
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00440170
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.00403230
push eax
lea ecx, [ebp - 0x58]
call fcn.00403230
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x463e48
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00440c56
add esp, 0x24
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp + 0x14]
push eax
call fcn.00409db0
add esp, 8
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.00440d12
add esp, 4
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00440d12
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004031a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004031a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret
Function at 0x410370
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4103a6
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov esp, ebp
pop ebp
ret

Function at 0x411940
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d000
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x47ca80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x411970
jmp 0x411a6e
push str.C:cemsudisk.log
lea ecx, [ebp - 0x10]
call fcn.00402fd0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00403140
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x411a5f
push 0
call fcn.00411a80
add esp, 4
push edx
push eax
lea ecx, [ebp - 0x30]
call fcn.00411aa0
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x30]
call fcn.00411ac0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00402f90
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push str._Edpedisk___s_t__s_r_n
lea eax, [ebp - 0x38]
push eax
call fcn.00404400
add esp, 0x10
lea ecx, [ebp - 0x24]
call fcn.0042efe7
mov byte [ebp - 4], 3
push 0
push 0x3002
push 0
lea ecx, [ebp - 0x10]
call fcn.00403140
push eax
lea ecx, [ebp - 0x24]
call fcn.0042efff
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x411a3b
lea ecx, [ebp - 0x24]
call fcn.00411b90
lea ecx, [ebp - 0x38]
call fcn.00403130
push eax
lea ecx, [ebp - 0x24]
call fcn.0042f1f0
lea ecx, [ebp - 0x24]
call fcn.0042f3ad
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.0042f418
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00403050
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403050
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403050
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x412f10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], ecx
push 0
push 0x3c
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.004108c0
add esp, 0x10
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4140f0
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x183c
call fcn.004433a0
mov eax, dword [0x47ca80]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x183c], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1024], 2
mov dword [ebp - 0x1834], 0x1000
lea eax, [ebp - 0x1834]
push eax
mov ecx, dword [ebp - 0x1834]
push ecx
lea edx, [ebp - 0x1020]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x183c]
mov edx, dword [ecx + 0x20]
call edx
test eax, eax
jne 0x414179
push 0x4654d8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x4654f4
call fcn.00411940
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x4142ce
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x1838], eax
push 1
mov ecx, dword [ebp - 0x1838]
mov edx, dword [ecx]
push edx
lea eax, [ebp - 0x1830]
push eax
mov ecx, dword [ebp - 0x183c]
mov edx, dword [ecx + 0x24]
call edx
test eax, eax
je 0x4141c6
push 0x465510
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.RtlConvertSidToUnicodeString_Fail__r_n
call fcn.00411940
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x4142ce
mov byte [ebp - 0x1828], 0
push 0x7ff
push 0
lea eax, [ebp - 0x1827]
push eax
call fcn.00440170
add esp, 0xc
push 0
push 0
push 0x800
lea ecx, [ebp - 0x1828]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x182c]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x1830]
push eax
mov ecx, dword [ebp - 0x183c]
mov edx, dword [ecx + 0x28]
call edx
lea eax, [ebp - 0x1828]
push eax
call fcn.004404c0
add esp, 4
test eax, eax
jne 0x414233
mov eax, dword [ebp - 0x14]
jmp 0x4142ce
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorer
lea ecx, [ebp - 0x1828]
push ecx
call fcn.00410a50
add esp, 0xc
lea edx, [ebp - 0x1024]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0xf003f
mov ecx, dword [ebp - 4]
push ecx
push 0x46494a
push 0
lea edx, [ebp - 0x1828]
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x414286
mov eax, dword [ebp - 0x14]
jmp 0x4142ce
mov dword [ebp - 0xc], 1
mov dword [ebp - 0x18], 0x104
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0
push str.Logon_User_Name
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4142c1
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00440160
mov esp, ebp
pop ebp
ret 8