joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c00
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x405988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
push str..PhysicalDrive0
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 8]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403cc5
push edi
push 0
push 0
push reloc.USER32.dll_IsIconic
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x24]
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x200
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x403cc5
push ebx
call fcn.00403bf0
add esp, 4
mov dword [esp + 0x18], 0xffffffff
test eax, eax
lea ecx, [esp + 8]
je 0x403cd1
call sub.MFC42.DLL_CString::CString
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x403cf0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4059b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
lea eax, [esp]
push esi
push eax
call fcn.00403b70
add esp, 4
push str.HKInst.exe
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0
call fcn.00405484
mov esi, dword [sym.imp.MSVCRT.dll__access]
push 0
push str.C:91DOSmbrbk
call esi
add esp, 8
cmp eax, 0xffffffff
je 0x403d86
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
push str.__restoreC:91DOSmbrbk__hd0_
push ecx
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push 0
push edx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [esp + 0x14], 0
lea ecx, [esp + 8]
jmp 0x403dd8
push 0
push str.C:91DOSmbr1
call esi
add esp, 8
cmp eax, 0xffffffff
je 0x403ddd
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
push str.__restoreC:91DOSmbr1__hd0_
push ecx
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push 0
push edx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov byte [esp + 0x14], 0
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x404830
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
push 0xffffffffffffffff
push 0x405b38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x128
mov ebp, eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
push esi
push ebp
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x404941
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x4048a5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
pop esi
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push ebx
lea eax, [esi + 0x24]
push edi
push eax
lea ecx, [esp + 0x14]
call fcn.00405478
mov eax, dword [esp + 0x10]
mov dword [esp + 0x1c], 0
push eax
call fcn.004047c0
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
add esp, 4
test eax, eax
je 0x4048eb
mov ecx, dword [esi + 8]
push ecx
push 0
push 0x100001
call edi
push 0
push eax
call ebx
push esi
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40492e
lea eax, [esi + 0x24]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator_1
mov edx, dword [esp + 0x10]
push edx
call fcn.004047c0
add esp, 4
test eax, eax
je 0x404923
mov eax, dword [esi + 8]
push eax
push 0
push 1
call edi
push 0
push eax
call ebx
push esi
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4048f6
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x10]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebp
add esp, 0x10
ret

Function at 0x404970
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [0x408578]
push str.SafeSvc.exe
push eax
mov ecx, 0x408570
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov ecx, dword [0x408578]
push str.91Safe.exe
push ecx
mov ecx, 0x408570
call sub.MFC42.DLL_CStringArray::SetAtGrow
push 0x4085e8
call fcn.00404830
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push str._UnregServer
push str.C:91DOSSafeSvc.exe
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x4049d0
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0xf003f
push esi
push str.SoftwareMicroSoftWindowsCurrentVersionUninstall
push 0x80000002
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4049fb
mov esi, dword [esp + 4]
push str.91DOS
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test esi, esi
je 0x404a12
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
ret
Function at 0x404cf0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x554
push esi
mov esi, dword [esp + 0x55c]
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 4], eax
je 0x404e1c
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x35c]
push esi
push ecx
call edi
lea edx, [esp + 0x35c]
push 0x5c
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 8
mov byte [eax + 1], 0
test byte [esp + 0x14], 0x10
je 0x404dbd
lea eax, [esp + 0x40]
push 0x4082a4
push eax
call ebp
test eax, eax
je 0x404de8
lea ecx, [esp + 0x40]
push 0x4082a0
push ecx
call ebp
test eax, eax
je 0x404de8
lea edx, [esp + 0x35c]
lea eax, [esp + 0x154]
push edx
push eax
call edi
lea ecx, [esp + 0x40]
lea edx, [esp + 0x154]
push ecx
push edx
call esi
lea eax, [esp + 0x154]
push str..
push eax
call esi
lea ecx, [esp + 0x154]
push ecx
call fcn.00404cf0
add esp, 4
jmp 0x404de8
lea edx, [esp + 0x35c]
lea eax, [esp + 0x154]
push edx
push eax
call edi
lea ecx, [esp + 0x40]
lea edx, [esp + 0x154]
push ecx
push edx
call esi
lea eax, [esp + 0x154]
push eax
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404d54
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x35c]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x554
ret
Function at 0x404e30
Capabilities:
Get common file path
Get session user name
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x405b7b
push eax
mov dword fs:[0], esp
sub esp, 0x21c
mov ecx, 0xd
xor eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x234]
push esi
push edi
mov edi, str._USERPROFILE_
mov esi, ebp
repe cmpsb byte [esi], byte es:[edi]
jne 0x404fbe
mov ecx, 0x41
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov bl, byte [esp + 0x24]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x128]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x128]
push edx
push eax
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
push 0x80000002
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x14]
cmp edx, esi
je 0x404fbe
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
mov dword [esp + 0x18], 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push ecx
push eax
push esi
push str.ProfilesDirectory
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x128]
lea edx, [esp + 0x31]
movsx eax, bl
push ecx
push edx
push eax
lea ecx, [esp + 0x1c]
push str._c:_s_s
push ecx
mov dword [esp + 0x248], esi
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0xd]
push ecx
push edx
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x234], 0xffffffff
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x405250
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x405bcb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push esi
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x10]
push str..PhysicalDrive0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x21c], 0
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 8]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4052ec
push 0
push 0
push reloc.USER32.dll_IsIconic
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x18]
push 0x200
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 8]
mov dword [esp + 0x218], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x210]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x214
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x6d2506f8
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x4105222
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748
Function at 0x403390
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44447b
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x45e098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1e4], 0xffffffff
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00408f10
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x10]
call fcn.004083e0
lea ecx, [ebp - 0x28]
call fcn.004086a0
movzx ecx, al
test ecx, ecx
jne 0x403415
lea ecx, [ebp - 0x28]
call fcn.00408720
sub eax, 1
push eax
lea ecx, [ebp - 0x28]
call fcn.00408850
movsx edx, byte [eax]
cmp edx, 0x5c
je 0x403415
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.00408b90
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.0040aca0
add esp, 0xc
mov dword [ebp - 0x1e8], eax
mov eax, dword [ebp - 0x1e8]
mov dword [ebp - 0x1ec], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1e0]
push ecx
mov ecx, dword [ebp - 0x1ec]
call fcn.00408740
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1e4], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00408c50
cmp dword [ebp - 0x1e4], 0xffffffff
je 0x4035bd
mov edx, dword [ebp - 0x1e0]
and edx, 0x10
jne 0x4034fb
lea eax, [ebp - 0x1b4]
push eax
lea ecx, [ebp - 0x70]
call fcn.00408d80
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1f4], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1f4]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0040ac30
add esp, 0xc
mov dword [ebp - 0x1f8], eax
mov edx, dword [ebp - 0x1f8]
mov dword [ebp - 0x1fc], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1fc]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00408500
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00408c50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00408c50
lea ecx, [ebp - 0x1e0]
push ecx
mov edx, dword [ebp - 0x1e4]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4035b0
mov eax, dword [ebp - 0x1e0]
and eax, 0x10
jne 0x4035ab
lea ecx, [ebp - 0x1b4]
push ecx
lea ecx, [ebp - 0xa0]
call fcn.00408d80
mov dword [ebp - 0x200], eax
mov edx, dword [ebp - 0x200]
mov dword [ebp - 0x204], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x204]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x88]
push edx
call fcn.0040ac30
add esp, 0xc
mov dword [ebp - 0x208], eax
mov eax, dword [ebp - 0x208]
mov dword [ebp - 0x20c], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x20c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00408500
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.00408c50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xa0]
call fcn.00408c50
jmp 0x4034fb
mov edx, dword [ebp - 0x1e4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x10]
call fcn.00401a10
mov dword [ebp - 0x210], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408c50
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004261af
mov esp, ebp
pop ebp
ret
Function at 0x405950
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444b45
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x45e098]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
push 0
push 0x80
push 4
push 0
push 5
push 0x40000000
lea ecx, [ebp + 8]
call fcn.00408740
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x405a36
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x54], 0xffffffff
je 0x4059f0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x4059f0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
cmp eax, dword [edx + 0x54]
jbe 0x4059f0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 2
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp + 0x20]
call fcn.00408720
push eax
lea ecx, [ebp + 0x20]
call fcn.00408740
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00408c50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x30
Function at 0x405a70
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444b85
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x45e098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.00404140
add esp, 8
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0
push 1
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x50]
call fcn.00403c40
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x58]
call fcn.00408740
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403e80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403e80
cmp dword [ebp - 0x44], 0
je 0x405b53
mov ecx, dword [ebp + 0x10]
call fcn.00408740
mov dword [ebp - 0x5c], eax
push 0
lea ecx, [ebp - 0x5c]
push ecx
push 0
push 1
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0
movzx eax, word [ebp + 8]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x405b49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004261af
mov esp, ebp
pop ebp
ret 0xc
Function at 0x411ad0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x445d9d
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x45e098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc8], ecx
mov eax, dword [ebp - 0xc8]
cmp dword [eax + 0x24], 0xffffffff
jne 0x411bab
mov dword [ebp - 0xcc], 0
mov ecx, dword [ebp - 0xc8]
add ecx, 4
call fcn.00411a30
lea ecx, [ebp - 0xcc]
push ecx
push 0
mov edx, dword [ebp - 0xc8]
push edx
push 0x411c30
push 0
push 0
call fcn.0042d198
add esp, 0x18
mov ecx, dword [ebp - 0xc8]
mov dword [ecx + 0x24], eax
mov edx, dword [ebp - 0xc8]
cmp dword [edx + 0x24], 0xffffffff
jne 0x411ba9
push str.CThread::Start______beginthreadex
lea ecx, [ebp - 0x28]
call fcn.00408d80
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xc4]
call fcn.00406060
push 0x45d060
lea ecx, [ebp - 0xc4]
push ecx
call fcn.00427d8b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00408c50
jmp 0x411c0f
push str.Thread_already_running___you_can_only_call_Start___once_
lea ecx, [ebp - 0x58]
call fcn.00408d80
mov dword [ebp - 4], 1
push str.CThread::Start
lea ecx, [ebp - 0x40]
call fcn.00408d80
mov byte [ebp - 4], 2
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405e20
push 0x45d0c0
lea ecx, [ebp - 0x8c]
push ecx
call fcn.00427d8b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00408c50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00408c50
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004261af
mov esp, ebp
pop ebp
ret