joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a750
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x7a4614]
sub esp, 0x1cc
push ebx
push ebp
push esi
mov esi, dword [0x425664]
shr eax, 3
push edi
test eax, eax
je 0x41a8ee
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x41a784
mov esi, dword [esp + 0x18]
cmp dword [0x7a4614], 0x1c
jne 0x41a7a1
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov edx, dword [0x41eda0]
mov eax, dword [0x41eda4]
mov ecx, dword [0x41eda8]
mov edi, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0x24], edx
mov edx, dword [0x41edac]
mov ebp, 0xc6ef3720
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], 0x20
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x28]
mov ecx, edi
shl ecx, 4
add ecx, dword [esp + 0x34]
lea edx, [edi + ebp]
xor eax, ecx
xor eax, edx
sub ebx, eax
mov eax, ebx
shl eax, 4
mov dword [0x7a4584], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
add dword [esp + 0x14], eax
cmp dword [0x7a4614], 0x1be
jne 0x41a82d
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, ebx
shr esi, 5
add esi, dword [esp + 0x2c]
cmp dword [0x7a4614], 0x979
mov dword [0x7a4588], 0xff6b3619
mov dword [0x7a458c], 0xffffffff
jne 0x41a86d
mov edx, dword [esp + 0x30]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [ebx + ebp]
xor esi, eax
mov eax, dword [esp + 0x14]
xor eax, esi
sub edi, eax
add ebp, 0x61c88647
dec dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jne 0x41a7da
cmp dword [0x7a4614], 0x8d4
jne 0x41a8a5
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov dword [esi], edi
mov dword [esi + 4], ebx
cmp dword [0x7a4614], 0x17
jne 0x41a8dd
push 0
push 0
push 0
push 0x402990
push 0x4029b4
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x98]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x41a780
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1cc
ret
Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.00401a1c
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x40473d]
lea edx, [fcn.00401a80]
sub eax, edx
push eax
push fcn.00401a80
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401329
push edi
call fcn.00401905
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00401953
mov eax, edi
add eax, 0x1c800
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
xor eax, edi
push eax
lea eax, [0x4060e4]
mov edx, edi
dec edx
and eax, edx
push eax
call fcn.00401a80
add esp, 0x18
xor eax, eax
pop edi
leave
ret

Function at 0x401a1c
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x120], 0
xor edi, edi
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret
Function at 0x4017b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fa28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46706c]
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 ebx, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
push 0x5c
push esi
mov dword [ebp - 0x2c], eax
call fcn.00423ff0
add esp, 8
test eax, eax
je 0x401814
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4018a2
lea eax, [ebp - 0x28]
mov ecx, 0x46b120
push eax
call fcn.0040f390
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x401853
cmp byte [esi], 0
jne 0x401838
xor ecx, ecx
jmp 0x401849
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401840
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402970
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x40188e
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00402ba0
mov dword [ebp - 0x14], 0xf
mov eax, esi
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
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.0042318e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401db0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x46b76c]
cmp dword [ecx + 0xc], 0
jne 0x401dbf
xor eax, eax
ret
push ebx
mov ebx, dword [ecx + 0xa8]
test ebx, ebx
jne 0x401dce
xor eax, eax
pop ebx
ret
movzx eax, word [ecx + 0x14]
push esi
lea esi, [ecx + 0x18]
add esi, eax
xor eax, eax
push edi
xor edi, edi
cmp ax, word [ecx + 6]
jae 0x401e3e
push 8
push str..debug
push esi
call fcn.0042ac84
add esp, 0xc
test eax, eax
je 0x401e0b
mov ecx, dword [0x46b76c]
inc edi
add esi, 0x28
movzx eax, word [ecx + 6]
cmp edi, eax
jb 0x401de3
jmp 0x401e3e
test esi, esi
je 0x401e38
cmp dword [esi + 0xc], ebx
jne 0x401e38
mov eax, dword [0x46b76c]
mov ecx, dword [esi + 0x14]
mov esi, dword [0x46b768]
add ecx, esi
mov eax, dword [eax + 0xac]
lea edi, [eax*8]
sub edi, eax
shl edi, 2
jmp 0x401e9b
mov ecx, dword [0x46b76c]
movzx esi, word [ecx + 0x14]
xor eax, eax
add esi, 0x18
xor edi, edi
add esi, ecx
cmp ax, word [ecx + 6]
jae 0x401e76
push 8
push 0x4542c0
push esi
call fcn.0042ac84
add esp, 0xc
test eax, eax
je 0x401e7c
mov eax, dword [0x46b76c]
inc edi
add esi, 0x28
movzx eax, word [eax + 6]
cmp edi, eax
jb 0x401e51
pop edi
pop esi
xor eax, eax
pop ebx
ret
test esi, esi
je 0x401e76
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0xc]
mov eax, dword [0x46b76c]
mov esi, dword [0x46b768]
add ecx, esi
add ecx, ebx
mov edi, dword [eax + 0xac]
mov eax, 0x24924925
mul edi
xor eax, eax
sub edi, edx
shr edi, 1
add edi, edx
shr edi, 4
test edi, edi
je 0x401e76
cmp dword [ecx + 0xc], 1
je 0x401ec5
inc eax
add ecx, 0x1c
cmp eax, edi
jb 0x401eb1
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x18]
pop edi
add eax, esi
pop esi
pop ebx
ret

Function at 0x401ed0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fae0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x46706c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xorps xmm0, xmm0
movups xmmword [0x46b76c], xmm0
mov dword [0x46b77c], 0
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [0x46b768]
cmp word [ecx], ax
jne 0x401f74
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [0x46b76c], eax
cmp dword [eax], 0x4550
jne 0x401f74
call fcn.00401db0
mov dword [0x46b770], eax
mov edx, dword [0x46b76c]
mov ecx, dword [edx + 0xc]
test ecx, ecx
je 0x401f5b
add ecx, dword [0x46b768]
mov dword [0x46b774], ecx
jmp 0x401f61
mov ecx, dword [0x46b774]
mov eax, dword [edx + 0x10]
mov dword [0x46b778], eax
lea eax, [eax + eax*8]
lea eax, [ecx + eax*2]
mov dword [0x46b77c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401fa0
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [0x46b768]
test eax, eax
je 0x401fba
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0x46b768], 0
mov eax, dword [0x46b764]
test eax, eax
je 0x401fd4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x46b764], 0
mov eax, dword [0x46b760]
cmp eax, 0xffffffff
je 0x401fef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x46b760], 0xffffffff
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x469e70
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x46b760], eax
cmp eax, 0xffffffff
je 0x402044
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x46b764], eax
test eax, eax
je 0x402044
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x46b768], eax
ret 4

Function at 0x403120
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fcb2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x28], esi
call fcn.00422105
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4031fc
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.004246a4
add esp, 8
mov byte [ebp - 4], 7
mov dword [ebp - 0x24], vtable.std::runtime_error.0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x24]
push 0x4650a8
push eax
call fcn.00425973
push edi
push esi
call fcn.0042244d
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042318e
mov esp, ebp
pop ebp
ret 4
Function at 0x4047e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440338
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x46706c]
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 ebx, edx
mov edi, ecx
mov esi, dword [ebp + 0xc]
push 0x5c
push esi
call fcn.00423ff0
add esp, 8
test eax, eax
je 0x404831
push esi
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
jmp 0x4048bb
lea eax, [ebp - 0x28]
mov ecx, 0x46b120
push eax
call fcn.0040f390
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x404873
cmp byte [esi], 0
jne 0x404855
xor ecx, ecx
jmp 0x404869
mov ecx, esi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404860
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402970
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x4048a7
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00402ba0
mov dword [ebp - 0x14], 0xf
mov eax, esi
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
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.0042318e
mov esp, ebp
pop ebp
ret 8
Function at 0x404990
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45b328
push 0x427cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x46706c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x12c], esi
test edi, edi
jne 0x404a15
mov dword [ebp - 4], edx
push edx
push edx
push edx
push 0x80000003
call dword [sym.imp.KERNEL32.dll_RaiseException]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x120], 0
push 0
push 0
lea eax, [ebp - 0x128]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
mov edi, eax
xor esi, esi
test edi, edi
jne 0x404a63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push str.p2pnetwork.ini
push ecx
mov edx, str.pop_errorbox
mov ecx, str.Debug
call fcn.004047e0
test eax, eax
je 0x404abe
test edi, edi
je 0x404a8e
push reloc.msvcrt.dll_setvbuf
push 0x454468
push 0x454470
jmp 0x404ab6
push esi
push 0x4544b0
push 0x100
lea eax, [ebp - 0x11c]
push eax
call fcn.00402f60
add esp, 0x10
push reloc.msvcrt.dll_setvbuf
push 0x454468
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0042318e
mov esp, ebp
pop ebp
ret
Function at 0x406fd0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
mov edi, edx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407080
push 0
lea eax, [ebp - 8]
push eax
push reloc.msvcrt.dll_setvbuf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 0x40
jne 0x407080
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x407080
push 0
push 0
push dword [edi + 0x3c]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x407080
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 8]
push 0
push eax
push 0xf8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 0xf8
jne 0x407080
cmp dword [edi], 0x4550
jne 0x407080
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042318e
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0042318e
mov esp, ebp
pop ebp
ret
Function at 0x40e880
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4414a8
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x46706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x24c], 0
call fcn.00426340
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - reloc.crypt32.dll_CertOpenStore], ax
cmp word [ebp - reloc.crypt32.dll_CertOpenStore], ax
jne 0x40e928
xor ecx, ecx
jmp 0x40e940
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e931
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00409420
mov dword [ebp - 4], 1
mov edi, dword [ebp - 0x220]
test edi, edi
je 0x40ea8e
push 1
push ecx
push 0x455c5c
lea ecx, [ebp - 0x230]
call fcn.0040eb20
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x40e9c5
push 1
push ecx
push 0x455c60
lea ecx, [ebp - 0x230]
call fcn.0040eb20
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x40e9c5
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], 0
cmovae eax, dword [ebp - 0x230]
xor edx, edx
mov word [eax], dx
mov edi, dword [ebp - 0x220]
test edi, edi
je 0x40ea8e
lea eax, [ecx + 1]
push eax
push ecx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040df90
mov byte [ebp - 4], 2
lea eax, [ebp - 0x248]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x230]
call fcn.00409f00
push 0x11
push 0x455c64
lea ecx, [ebp - 0x230]
call fcn.0040a020
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ea7f
test al, 0x10
jne 0x40ea7f
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x230]
push eax
call fcn.0040e270
mov dword [ebp - 0x24c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00407960
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00407960
jmp 0x40eaf7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00407960
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x4551f4
mov word [esi], ax
call fcn.00409420
mov dword [ebp - 0x24c], 1
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40eada
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00409ea0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - reloc.crypt32.dll_CertOpenStore], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042318e
mov esp, ebp
pop ebp
ret 4
Function at 0x40f0f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44163f
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x46706c]
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 ebx, ecx
mov eax, dword [ebp + 8]
lea esi, [ebx + 0xac]
mov dword [ebp - 0x38], 0
push esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 1
cmp dword [ebx + 0x40], 0
jne 0x40f1f8
mov ecx, ebx
call fcn.0040ed00
mov dword [ebp - 0x30], eax
mov ecx, ebx
lea eax, [ebp - 0x28]
push eax
call fcn.0040ef30
mov ecx, eax
mov dword [ebp - 0x2c], ecx
lea edi, [ebx + 0x30]
mov byte [ebp - 4], 2
cmp edi, ecx
je 0x40f1ae
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x40f189
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.00402ba0
mov ecx, dword [ebp - 0x2c]
mov dword [edi + 0x14], 0xf
cmp dword [edi + 0x14], 0x10
mov dword [edi + 0x10], 0
jb 0x40f1a1
mov eax, dword [edi]
jmp 0x40f1a3
mov eax, edi
push ecx
mov ecx, edi
mov byte [eax], 0
call fcn.004096a0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004024e0
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff9
cmp eax, 6
ja case.0x40f1cc.8
movzx eax, byte [eax + 0x40f24c]
jmp dword [eax*4 + 0x40f240]
push str.Documents_and_SettingsAll_UsersApplication_Data_
mov ecx, edi
call fcn.004024a0
jmp 0x40f1f8
push 0xe
push str.UsersPublic_
jmp 0x40f1f1
push 0x33
push str.Documents_and_SettingsAll_UsersApplication_Data_
mov ecx, edi
call fcn.00402970
mov ecx, dword [ebp - 0x34]
lea eax, [ebx + 0x30]
push eax
call fcn.00407a80
mov dword [ebp - 0x38], 1
push esi
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
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.0042318e
mov esp, ebp
pop ebp
ret 4
Function at 0x40f820
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push edi
mov edi, ecx
lea ecx, [ebp - 4]
push ecx
lea eax, [edi + 0x28]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
test ebx, ebx
je 0x40f922
push esi
lea esi, [ebx + 1]
push esi
call fcn.00423651
push esi
push 0
push eax
mov dword [edi], eax
call fcn.00426340
add esp, 0x10
lea eax, [edi + 0x28]
push dword [edi]
push ebx
push dword [ebp - 4]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
pop esi
test eax, eax
je 0x40f922
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.0040f930
test eax, eax
je 0x40f922
mov ecx, dword [ebp - 0x30]
mov eax, ecx
shr eax, 0x10
mov word [edi + 8], ax
mov word [edi + 0xa], cx
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
shr eax, 0x10
mov word [edi + 0xc], ax
mov word [edi + 0xe], cx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
shr eax, 0x10
mov word [edi + 0x10], ax
mov word [edi + 0x12], cx
mov ecx, dword [ebp - 0x24]
mov eax, ecx
shr eax, 0x10
mov word [edi + 0x14], ax
mov eax, dword [ebp - 0x1c]
mov word [edi + 0x16], cx
mov ecx, edi
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x24], eax
lea eax, [edi + 0x230]
push eax
push str.CompanyName
call fcn.0040f990
lea eax, [edi + 0x640]
mov ecx, edi
push eax
push str.FileDescription
call fcn.0040f990
lea eax, [edi + 0x438]
mov ecx, edi
push eax
push str.ProductName
call fcn.0040f990
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ddf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447968
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x46706c]
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 esi, ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x41df03
mov eax, dword [esi]
mov eax, dword [eax + 8]
call eax
test al, al
je 0x41df03
cmp dword [esi + 0x3c], 0
jne 0x41ded9
cmp dword [esi + 0x14], 0
je 0x41ded9
push 0x454304
lea edx, [esi + 4]
lea ecx, [ebp - 0x58]
call fcn.00413e10
lea ecx, [esi + 0x20]
mov dword [ebp - 4], 0
push ecx
mov edx, eax
lea ecx, [ebp - 0x40]
call fcn.00413f00
push str..log
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040d3e0
add esp, 0xc
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004024e0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.004024e0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push reloc.msvcrt.dll_setvbuf
cmovae eax, dword [ebp - 0x28]
push 0x458c00
push eax
call fcn.0042d0da
add esp, 0xc
mov dword [esi + 0x3c], eax
test eax, eax
jne 0x41deca
call fcn.0042b9b4
mov eax, dword [eax]
mov dword [esi + 0x40], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.004024e0
mov edx, dword [esi + 0x3c]
test edx, edx
je 0x41df03
mov eax, edi
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41dee5
push edx
sub eax, ebx
push eax
push 1
push edi
call fcn.0042b8e3
push dword [esi + 0x3c]
call fcn.0042b28c
add esp, 0x14
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.0042318e
mov esp, ebp
pop ebp
ret 4