joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46aed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4beac7
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4fa008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - method.StringStorage.virtual_0], vtable.StringStorage.0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x23c]
mov dword [ebp - 4], 0
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x238]
mov ecx, dword [ebp - 0x23c]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
mov dword [ebp - 4], 1
lea ecx, [edi + 0xdc]
mov eax, dword [edi + 0xdc]
call dword [eax + 4]
mov bl, byte [edi + 0xc4]
mov byte [ebp - 4], 2
lea ecx, [edi + 0xdc]
mov eax, dword [edi + 0xdc]
call dword [eax + 8]
test bl, bl
mov dword [ebp - method.StringStorage.virtual_0], vtable.StringStorage.0
mov ebx, 0
mov dword [ebp - 0x22c], 0
setne bl
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 3
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x22c]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
mov byte [ebp - 4], 4
sub ebx, 0
je 0x46b009
sub ebx, 1
jne 0x46b03b
lea eax, [ebx + 0x23]
jmp 0x46b00e
mov eax, 0x1a
push 1
push eax
lea eax, [ebp - 0x220]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, 1
jne 0x46b03b
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call dword [eax + 4]
push 0x4c7660
push dword [ebp - 0x22c]
lea eax, [ebp - 0x240]
push str._s_s
push eax
call fcn.004038a0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x22c]
mov dword [ebp - method.StringStorage.virtual_0], vtable.StringStorage.0
call fcn.004039a0
mov eax, dword [edi + 0x2c]
add edi, 0x2c
mov esi, dword [ebp - 0x23c]
mov ecx, edi
mov dword [ebp - method.AutoLock.virtual_0], vtable.AutoLock.0
mov dword [ebp - 0x224], edi
call dword [eax + 4]
lea ecx, [edi + 0x9c]
mov byte [ebp - 4], 5
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov byte [ebp - 4], 6
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 8]
lea ecx, [ebp - 0x23c]
mov dword [ebp - method.StringStorage.virtual_0], vtable.StringStorage.0
call fcn.004039a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004976eb
mov esp, ebp
pop ebp
ret
Function at 0x46b100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4beb32
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov dword [edi], vtable.ServerConfig.0
mov dword [edi + 4], 0x170c
mov dword [edi + 8], 0x16a8
mov dword [edi + 0xc], 0x1010101
mov dword [edi + 0x10], 0
mov word [edi + 0x14], 0x101
mov word [edi + 0x2e], 1
mov byte [edi + 0x30], 1
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov byte [edi + 0x3c], 1
mov dword [edi + 0x40], 0x3e8
mov word [edi + 0x44], 0
mov byte [edi + 0x46], 0
mov dword [edi + 0x48], 3
mov byte [edi + 0x4c], 0
mov dword [edi + 0x50], 0x1e
mov dword [edi + 0x54], vtable.PortMappingContainer.0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov byte [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
lea eax, [edi + 0x9c]
mov dword [edi + 0x8c], 0xbb8
mov byte [edi + 0x90], 1
lea esi, [eax + 4]
mov dword [edi + 0x94], 0
mov word [edi + 0x98], 0x100
mov byte [edi + 0x9a], 0
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
and eax, 0xfffffffe
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
mov word [edi + 0xac], 0
lea eax, [edi + 0xb4]
mov byte [edi + 0xae], 0
mov dword [edi + 0xb0], vtable.LocalMutex.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xorps xmm0, xmm0
mov eax, edi
movups xmmword [edi + 0x16], xmm0
movq qword [edi + 0x26], xmm0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46e890
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bef00
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebx + 8]
lea ecx, [ebx + 8]
call dword [eax + 4]
mov edi, dword [ebx + 4]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
lea ecx, [ebx + 8]
mov eax, dword [ebx + 8]
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x46e97c
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ecx, edi
push esi
call fcn.00402f40
inc eax
lea ecx, [ebp - 0x20]
push eax
call fcn.00403950
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
push esi
push ecx
push edi
mov dword [ebp - 0x10], ecx
call fcn.00405250
add esp, 0xc
lea eax, [ebp - 0x10]
push 0
push eax
push 0
push 1
push 0
push dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x46e974
lea ecx, [ebp - 0x30]
call fcn.00402f80
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 2
mov ecx, str.Cannot_report_an_event_to_the_system_log
call fcn.0041d600
push dword [ebp - 0x2c]
push 0x4cde84
push dword [ebx + 0x24]
call fcn.00405460
add esp, 0xc
mov dword [ebp - 0x30], vtable.StringStorage.0
lea ecx, [ebp - 0x2c]
call fcn.004039a0
lea ecx, [ebp - 0x20]
call fcn.004039a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x46e990
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bef33
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 8]
mov dword [edi], vtable.Thread.0
push eax
push 4
push edi
push 0x46ef60
push 0
mov byte [edi + 0xc], 0
push 0
mov byte [edi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
mov ecx, 0x4fb574
mov dword [edi + 0x10], vtable.Singleton_class_ZombieKiller_.0
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 4]
cmp dword [0x4feebc], 0
jne 0x46ea0e
mov eax, edi
mov dword [0x4feebc], eax
mov byte [ebp - 4], 1
mov ecx, 0x4fb574
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov byte [ebp - 4], 2
lea esi, [edi + 0x14]
push 0
mov dword [edi], vtable.ZombieKiller.0
mov dword [edi + 0x10], vtable.ZombieKiller.1.0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040c210
mov dword [esi], eax
lea eax, [edi + 0x20]
push eax
mov dword [edi + 0x1c], vtable.LocalMutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [edi + 0xc], al
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46f000
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4befb8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push esi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.GlobalMutex.0
mov dword [ebp - 0x20], vtable.StringStorage.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push 1
mov ecx, eax
call fcn.00403ad0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
push dword [ebp + 8]
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push 0x4dd93c
push str._s_s
push eax
call fcn.004038a0
add esp, 0x1c
push dword [ebp - 0x1c]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x46f0ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 4]
cmp eax, 0xb7
je 0x46f0e6
call fcn.0046f170
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.StringStorage.0
call fcn.004039a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x48]
call fcn.0041cad0
push 0x4f80ac
lea eax, [ebp - 0x48]
push eax
call fcn.00499368
int3

Function at 0x46f300
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf02e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea eax, [edi + 8]
mov dword [edi], vtable.Thread.0
push eax
push 4
push edi
push 0x46ef60
push 0
mov byte [edi + 0xc], 0
push 0
mov byte [edi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
lea esi, [edi + 0x10]
push 0
mov dword [edi], vtable.ThreadCollector.0
push 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040c210
mov dword [esi], eax
lea eax, [edi + 0x1c]
mov dword [edi + 0x18], vtable.LocalMutex.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ecx
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 2
call fcn.0041ddb0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
setne al
mov byte [edi + 0xc], al
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x471230
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf248
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [0x4fee94]
push str.Try_allow_to_receive_the__u_windows_message
push dword [esi]
mov dword [ebp - 0x10], ebx
call fcn.004054f0
add esp, 8
cmp dword [0x4fed30], 0
jne 0x47129a
push 0x4fed30
mov dword [0x4fed30], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
neg eax
sbb eax, eax
and dword [0x4fed30], eax
cmp dword [0x4fed34], 6
jb 0x471395
push str.user32.dll
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], vtable.DynamicLibrary.0
mov dword [ebp - 0x18], 0
call fcn.004203b0
mov dword [ebp - 4], 0
push str.user32.dll_successfully_loaded.
push dword [esi]
call fcn.004054f0
mov edi, dword [ebp - 0x18]
add esp, 8
push str.ChangeWindowMessageFilterEx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x47132a
push str.ChangeWindowMessageFilter
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4713b8
push str.The_ChangeWindowMessageFilter___function_successfully_found.
push dword [esi]
call fcn.004054f0
add esp, 8
push 1
push dword [ebp - 0x10]
call ebx
cmp eax, 1
jne 0x4713d7
push str.The_ChangeWindowMessageFilter___function_successfully_executed.
jmp 0x47136c
push str.The_ChangeWindowMessageFilterEx___function_successfully_found.
push dword [esi]
call fcn.004054f0
add esp, 8
push 0
push 1
push ebx
push dword [ebp + 0xc]
call dword [ebp - 0x14]
cmp eax, 1
je 0x471367
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00402f80
mov byte [ebp - 4], 2
push str.Cant_allow_to_receive_the__d_windows_message_by_the_ChangeWindowMessageFilterEx___function.
jmp 0x4713f0
push str.The_ChangeWindowMessageFilterEx___function_successfully_executed.
push dword [esi]
call fcn.004054f0
add esp, 8
test edi, edi
je 0x4713a4
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.The_allowMessage___function_call_is_ignored.
push dword [esi]
call fcn.004054f0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x30]
push str.Cant_load_the_ChangeWindowMessageFilterEx___or_ChangeWindowMessageFilter___functions.
push eax
call fcn.00404c10
add esp, 8
lea eax, [ebp - 0x30]
push 0x4f7f80
push eax
call fcn.00499368
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00402f80
mov byte [ebp - 4], 1
push str.Cant_allow_to_receive_the__d_windows_message_by_the_ChangeWindowMessageFilter___function.
lea eax, [ebp - 0x2c]
push eax
call fcn.004038a0
add esp, 8
lea ecx, [ebp - 0x2c]
push esi
call fcn.00403130
push eax
lea ecx, [ebp - 0x58]
call fcn.0041cd10
push 0x4f80ac
lea eax, [ebp - 0x58]
push eax
call fcn.00499368
int3
Function at 0x477fb0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf861
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4fa008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea ebx, [ecx + 4]
mov dword [ecx], 0
mov dword [ebp - 0x14], ebx
mov dword [ebx + 4], vtable.Rect.0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebp - 4], 0
lea edi, [ebx + 0x1c]
mov dword [ebp - 0x18], edi
lea esi, [edi + 4]
mov dword [edi], vtable.StringStorage.0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
push esi
push 1
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00403ad0
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cd35c
push ecx
call fcn.0049ae30
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, edi
mov byte [ebp - 4], 2
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi + 8]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov eax, dword [edi]
push dword [esi + 0x20]
call dword [eax + 4]
movzx eax, byte [esi + 0x2c]
mov byte [ebx + 0x2c], al
movzx eax, byte [esi + 0x2d]
mov byte [ebx + 0x2d], al
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov eax, dword [0x4fee74]
mov dword [ebx + 0x38], vtable.Rect.0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], vtable.Region.0
mov dword [ebx + 0x50], eax
mov eax, dword [0x4fee78]
mov dword [ebx + 0x54], eax
lea eax, [ebx + 0x60]
mov dword [ebx + 0x58], 0x4fee84
push eax
mov dword [ebx + 0x5c], vtable.LocalMutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x80], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a3820
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a3696
Function at 0x40afe5
Capabilities:
Write file on windows

Disassembly:
jmp 0x40c0b2
mov ecx, dword [ebp - 0x568]
xor esi, esi
sub ecx, dword [ebp - 0x574]
lea eax, [ebp - 0x160]
cmp ecx, dword [ebp + 0x10]
jae 0x40c04a
mov edx, dword [ebp - 0x568]
movzx edx, word [edx]
add dword [ebp - 0x568], 2
push 2
pop edi
add ecx, edi
cmp dx, 0xa
jne 0x40c033
cmp esi, 0x150
ja 0x40c044
mov word [eax], 0xd
add eax, edi
add esi, edi
mov word [eax], dx
add esi, edi
add eax, edi
cmp esi, 0x152
jb 0x40c002
jmp 0x40c04a
sub dword [ebp - 0x568], edi
xor esi, esi
push esi
push esi
push 0x2ab
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x160]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, ecx
push eax
push esi
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp edi, esi
je 0x40c118
push 0
lea eax, [ebp - 0x57c]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp + esi - 0x410]
push eax
mov eax, dword [ebp - 0x580]
mov eax, dword [eax]
push dword [ebx + eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40c0b8
add esi, dword [ebp - 0x57c]
cmp edi, esi
jg 0x40c081
jmp 0x40c0c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x56c], eax
cmp edi, esi
jg 0x40c124
mov eax, dword [ebp - 0x568]
sub eax, dword [ebp - 0x574]
cmp eax, dword [ebp + 0x10]
mov dword [ebp - 0x570], eax
jb 0x40bfee
jmp 0x40c124
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x56c], eax
mov eax, dword [ebp - 0x570]
test eax, eax
jne 0x40c19a
cmp dword [ebp - 0x56c], 0
je 0x40c164
push 5
pop esi
cmp dword [ebp - 0x56c], esi
jne 0x40c156
jmp section..htext
push dword [ebp - 0x56c]
call fcn.0040779a
pop ecx
jmp 0x40c195
mov eax, dword [ebp - 0x580]
mov eax, dword [eax]
test byte [ebx + eax + 4], 0x40
je 0x40c182
mov eax, dword [ebp - 0x574]
cmp byte [eax], 0x1a
jne 0x40c182
xor eax, eax
jmp 0x40c1a0
call fcn.00407774
mov dword [eax], 0x1c
call fcn.00407787
and dword [eax], 0
or eax, 0xffffffff
jmp 0x40c1a0
sub eax, dword [ebp - 0x578]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409e8a
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
call fcn.00401009

Function at 0x403f80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.00403f97

Function at 0x404310
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.00404327

Function at 0x4075c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.004075d7

Function at 0x4084a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.004084b7

Function at 0x409480
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.00409497

Function at 0x409980
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.00409997

Function at 0x40b620
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push esi
push edi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebx, esp
call fcn.0040b637

Function at 0x410390
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x634384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, dword [ebp + 0xc]
xor eax, eax
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
xor esi, esi
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
mov dword [ebp - 0x54], 0xc3d2e1f0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 8], 4
mov edi, dword [ebp + 0x10]
test edx, edx
je 0x410423
lea eax, [ebp - 0x64]
push eax
call fcn.0041b850
add esp, 4
lea ecx, [ebp - 0x64]
call fcn.0041b980
lea eax, [ebp - 0x64]
push eax
push ebx
push edi
call fcn.0041a020
add esp, 0xc
or ecx, 0xffffffff
test eax, eax
cmovne esi, ecx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.005395e6
mov esp, ebp
pop ebp
ret
Function at 0x4138e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57bdc0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x634384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00539040
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00536d96
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41a7a0
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx + 0x14], 0
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x1c], eax
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], eax
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x34], eax
mov dword [ecx + 0x38], eax
mov dword [ecx + 0x3c], eax
mov dword [ecx + 0x40], eax
mov dword [ecx + 0x44], eax
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], eax
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], eax
mov dword [ecx + 0x58], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x5c], 4
ret