joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c5c3e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
sub esp, 0xc
call fcn.00499f67
call fcn.004075ab
push 0x6349bc
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0x104
lea eax, [ebp - 0x214]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, 0x67476c
lea ecx, [ebp - 0x21c]
push edi
call fcn.0040d2ee
mov esi, 0x63a758
push esi
call fcn.00505bb3
pop ecx
push esi
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040f454
push edi
call fcn.00505bb3
pop ecx
push edi
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040f513
mov esi, str.ttpsvr.exe
push esi
call fcn.00505bb3
pop ecx
push esi
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040f454
push edi
lea ecx, [ebp - 0x220]
call fcn.0040d2ee
mov esi, str.wspres.dll
push esi
call fcn.00505bb3
pop ecx
push esi
push eax
lea ecx, [ebp - 0x220]
call fcn.0040f454
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x67475c], eax
test eax, eax
je 0x5c5e35
mov ecx, 0x6714c8
xchg dword [ecx], eax
mov eax, dword [0x67475c]
push 0x80
mov dword [0x673e6c], eax
mov eax, dword [0x668294]
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], eax
call fcn.0041129f
xor eax, eax
not word [eax + 0x66a7a4]
not word [eax + 0x66a850]
add eax, 2
cmp eax, 8
jl 0x5c5d43
mov edi, dword [ebp - 0x218]
push 0x66a7a4
push edi
call fcn.005073b0
pop ecx
pop ecx
test eax, eax
je 0x5c5d96
push 0x66a850
push edi
call fcn.005073b0
pop ecx
pop ecx
test eax, eax
je 0x5c5d96
push 0x66a83c
push edi
call fcn.005073b0
pop ecx
pop ecx
test eax, eax
jne 0x5c5e35
lea eax, [ebp - 0x218]
mov ecx, 0x674764
push eax
call fcn.0040d242
mov eax, dword [0x668294]
push 0x8299
push ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x218], eax
call fcn.0041129f
mov esi, dword [ebp - 0x218]
push esi
push dword [0x674764]
push str._s__s
push 0x674768
call fcn.0040cefd
lea ecx, [esi - 0xc]
add esp, 0x10
mov esi, 0x668010
cmp ecx, esi
je 0x5c5df3
call fcn.00407965
lea ecx, [edi - 0xc]
cmp ecx, esi
je 0x5c5dff
call fcn.00407965
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x5c5e11
call fcn.00407965
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff4
cmp ecx, esi
je 0x5c5e23
call fcn.00407965
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004da623
leave
ret 4
push 0x10
push 0x63e78c
push str.Load_resource__wspres.dll__failed__please_resetup_this_program_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x5c5f87
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x645a70]
push esi
push edi
movups xmmword [ebp - 0x14], xmm0
mov esi, 0x800a0000
call fcn.005ca213
test eax, eax
mov ecx, 0x80ca0000
mov eax, dword [0x673644]
cmove esi, ecx
mov ecx, dword [0x67364c]
test eax, eax
cmovne ecx, dword [0x6736e0]
neg ecx
sbb ecx, ecx
and ecx, 8
add ecx, 0x100
test eax, eax
je 0x5c5ff5
or ecx, 0x80
push ecx
push ecx
mov eax, esp
push ecx
push esi
and dword [eax], 0
push dword [0x674768]
push ecx
mov eax, esp
lea ecx, [ebp - 0x14]
push ecx
mov dword [eax], ecx
mov ecx, dword [0x674974]
call fcn.004a769a
test eax, eax
je 0x5c60fd
cmp dword [0x673724], 0
je 0x5c6036
mov ecx, dword [0x674974]
push 1
call fcn.004655b0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [0x674974]
mov esi, eax
push 0x64
call fcn.004598a3
call edi
sub eax, esi
cmp dword [0x6731e8], 0
mov dword [0x674994], eax
jne 0x5c606f
mov eax, dword [0x674974]
push 5
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call edi
push ecx
mov ecx, dword [0x674974]
xor edx, edx
push 0
mov esi, eax
mov ecx, dword [ecx + 4]
call fcn.005ca2ab
pop ecx
pop ecx
call edi
sub eax, esi
mov dword [0x67498c], eax
call edi
mov ecx, dword [0x674974]
mov esi, eax
push 0xffffffffffffffff
call fcn.004598a3
call edi
sub eax, esi
mov dword [0x674998], eax
call edi
push ecx
mov ecx, dword [0x674974]
xor edx, edx
push 0
mov esi, eax
mov ecx, dword [ecx + 4]
call fcn.005ca2ab
pop ecx
pop ecx
call edi
sub eax, esi
cmp dword [0x6731e8], 0
mov dword [0x674990], eax
jne 0x5c60df
cmp dword [0x673784], 0
je 0x5c60fa
mov ecx, dword [0x674974]
push 0
push 0x7dd3
push 0x111
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004da623
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x5c6464
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5c6493
xor eax, eax
jmp 0x5c6590
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x5c6586
cmp eax, 0x40
jbe 0x5c6586
push edi
push eax
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x5c6586
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x5c64ee
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
jmp 0x5c658d
mov eax, 0x5a4d
mov dword [ebp - 0x10], edi
cmp word [edi], ax
je 0x5c6504
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x5c64dd
and dword [ebp - 4], 0
lea eax, [edi + 0x3c]
add edi, dword [eax]
push 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push edi
push eax
call fcn.004dd610
add esp, 0xc
cmp dword [ebp - 4], 0x4550
jne 0x5c64fb
movzx eax, word [edi + 6]
mov edx, dword [ebp - 8]
sub edx, dword [edi + 0x9c]
imul eax, eax, 0x28
sub edx, eax
lea esi, [eax + 0xf8]
mov eax, dword [ebp - 0xc]
add esi, edi
mov ecx, esi
sub edx, dword [eax]
sub edx, 0xf8
call fcn.005c6594
mov edi, eax
mov eax, dword [ebp - 0x10]
push esi
movzx ecx, word [eax + 0x22]
movzx eax, word [eax + 0x20]
shl ecx, 0x10
or ecx, eax
sub edi, ecx
neg edi
sbb edi, edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
lea eax, [edi + 1]
jmp 0x5c658f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret

Function at 0x5c69fa
Capabilities:
Create directory
Get file attributes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x5c6aa4
xor eax, eax
cmp word [esi], ax
je 0x5c6aa4
push ebx
push edi
push 0x5c
pop ebx
push ebx
push esi
call fcn.004e115a
pop ecx
pop ecx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jle 0x5c6a65
movzx eax, word [esi + 2]
cmp eax, 0x3a
jne 0x5c6a3b
cmp word [esi + 4], bx
je 0x5c6a57
cmp word [esi], bx
jne 0x5c6a65
cmp ax, bx
jne 0x5c6a65
lea eax, [edi + 4]
push ebx
push eax
call fcn.004e115a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5c6a6e
lea eax, [edi + 2]
push ebx
push eax
call fcn.004e115a
pop ecx
pop ecx
mov edi, eax
test edi, edi
je 0x5c6a6e
xor eax, eax
mov word [edi], ax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x5c6a8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
test edi, edi
je 0x5c6a96
mov word [edi], bx
test eax, eax
jne 0x5c6a57
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop ebx
and eax, 0x10
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x5c806b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.004db570
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2010], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x2014], eax
mov ebx, edx
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [0x668294]
mov dword [ebp - 0x2018], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x201c], eax
mov edi, ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 0x2008], esi
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
je 0x5c8181
cmp eax, 0x1fff
ja 0x5c8181
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x5c8181
lea eax, [ebp - 0x2024]
push eax
lea eax, [ebp - 0x200c]
push eax
push 0x634954
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x5c8181
mov ecx, dword [ebp - 0x200c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x2008]
push str._d._d._d._d
push eax
call fcn.0040cefd
mov ecx, dword [ebp - 0x200c]
add esp, 0x18
mov edx, dword [ebp - 0x2010]
mov esi, dword [ebp - 0x2008]
movzx eax, word [ecx + 0xa]
mov dword [edx], eax
movzx eax, word [ecx + 8]
mov edx, dword [ebp - 0x2014]
mov dword [edx], eax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp - 0x2018]
mov dword [edx], eax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp - 0x201c]
mov dword [ecx], eax
lea eax, [ebp - 0x2008]
mov ecx, edi
push eax
call fcn.0040d36e
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x5c819f
call fcn.00407965
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret
Function at 0x5c8ac4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
inc edi
xor ecx, ecx
test esi, esi
je 0x5c8aef
cmp dword [esi], ecx
jne 0x5c8aeb
cmp dword [esi + 0x1c], ecx
je 0x5c8aef
mov eax, ecx
jmp 0x5c8af1
mov eax, edi
test al, al
jne 0x5c8c24
test edx, edx
je 0x5c8c24
or dword [ebp - 0x48], 0xffffffff
xorps xmm0, xmm0
push ecx
push 2
push edi
push 0xc0000000
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x48]
push edx
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], 0x1000
call fcn.00430cc6
test eax, eax
je 0x5c8bbb
mov edx, dword [esi + 0x1c]
mov ebx, dword [esi + 8]
test edx, edx
je 0x5c8b48
xor eax, eax
jmp 0x5c8b4b
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x18], eax
test ebx, ebx
je 0x5c8bbb
test eax, eax
je 0x5c8bbb
mov ecx, dword [ebx + 0x20]
mov eax, dword [ebx]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x1c], eax
test edx, edx
je 0x5c8b69
xor esi, esi
jmp 0x5c8b6c
mov esi, dword [ebx + 0x14]
add eax, 0xe
mov ecx, 0x4d42
add eax, esi
mov word [ebp - 0x14], cx
mov dword [ebp - 0x12], eax
xor ecx, ecx
sub eax, esi
mov dword [ebp - 0xe], ecx
mov dword [ebp - 0xa], eax
lea ecx, [ebp - 0x48]
push 0xe
lea eax, [ebp - 0x14]
push eax
call fcn.0043bce1
cmp eax, 0xe
jne 0x5c8bbb
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
push ebx
call fcn.0043bce1
cmp eax, dword [ebp - 0x1c]
jne 0x5c8bbb
push esi
push dword [ebp - 0x18]
lea ecx, [ebp - 0x48]
call fcn.0043bce1
cmp eax, esi
je 0x5c8bbd
xor edi, edi
cmp dword [ebp - 0x28], 0
mov esi, dword [ebp - 0x34]
je 0x5c8bfd
test esi, esi
je 0x5c8c11
cmp dword [ebp - 0x2c], 0
je 0x5c8bfd
push ecx
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x48]
push dword [ebp - 0x40]
call fcn.00430dab
and eax, edx
cmp eax, 0xffffffff
je 0x5c8bfd
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push 0
push eax
push dword [ebp - 0x2c]
push esi
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x5c8c11
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x48], 0xffffffff
je 0x5c8c20
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x5c8c26
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret
Function at 0x5c8e48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.004db570
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x100c]
xor ebx, ebx
push eax
push 0x20019
push ebx
xor esi, esi
push str.SOFTWAREMicrosoftInternet_Explorer
inc esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x1014], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5c8f40
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1010], 0x800
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x1014]
push eax
push ebx
push str.Version
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5c8f34
lea eax, [ebp - 0x1004]
push 0x2e
push eax
call fcn.004e115a
pop ecx
pop ecx
test eax, eax
je 0x5c8f31
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x1004]
push edi
push eax
mov edi, ebx
call fcn.00515cdf
pop ecx
push 6
pop ecx
cmp eax, 5
jl 0x5c8f26
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp - 0x1008]
push 4
push eax
push 0x49
push ebx
mov dword [ebp - 0x1008], ecx
call esi
push 4
mov edi, eax
lea eax, [ebp - 0x1008]
push eax
push 0x4a
push ebx
call esi
push 6
and edi, eax
pop ecx
push 2
test edi, edi
pop esi
cmovne esi, ecx
pop edi
jmp 0x5c8f34
push 4
pop esi
push dword [ebp - 0x100c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret

Function at 0x5c8f50
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x668294]
push esi
mov esi, ecx
push 0
push 0x26
mov dword [esi], eax
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x5c8fb9
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.004e115a
pop ecx
pop ecx
test eax, eax
je 0x5c8fb9
push str.Program_Files
add eax, 2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00505bb3
pop ecx
lea ecx, [ebp - 0x20c]
push ecx
push eax
mov ecx, esi
call fcn.0040f513
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004da623
leave
ret
Function at 0x5c8fe4
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5c9089
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x5c9082
cmp eax, 0x40
jbe 0x5c9082
push esi
push eax
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x5c9082
xor eax, eax
push eax
push eax
push eax
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x5c9052
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
jmp 0x5c9089
mov ecx, 0x5a4d
push eax
cmp word [eax], cx
je 0x5c9065
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x5c9044
movzx ecx, word [eax + 0x1c]
mov dword [ebx], ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
xor eax, eax
inc eax
jmp 0x5c908b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5c961b
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
push edi
push ebx
push ebx
mov edi, ecx
push 0x1037
push edi
call esi
or eax, 0x100
push eax
push ebx
push 0x1036
push edi
call esi
mov esi, dword [sym.imp.COMCTL32.dll_FlatSB_SetScrollProp]
push ebx
push 0xd
pop ebx
push ebx
push 8
push edi
call esi
push 0
push ebx
push 1
push edi
call esi
push 0
push ebx
push 2
push edi
call esi
push 0
push ebx
push 4
push edi
call esi
xor ebx, ebx
inc ebx
push ebx
push ebx
push 0x200
push edi
call esi
push ebx
push ebx
push 0x100
push edi
call esi
pop edi
pop esi
pop ebx
ret
Function at 0x5c9793
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x667710]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x240], eax
mov eax, dword [0x677218]
inc ebx
mov dword [ebp - 0x23c], edx
mov dword [ebp - 0x238], ecx
push esi
push edi
test eax, eax
jne 0x5c996c
push 0x208
xor edi, edi
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.004e0bc0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push ebx
push SysReAllocString
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x234], ebx
cmp ebx, 0xffffffff
jne 0x5c9828
xor eax, eax
jmp 0x5c9992
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x5c99a1
cmp eax, 0x40
jbe 0x5c99a1
push edi
push eax
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x230], esi
test esi, esi
je 0x5c99a1
push edi
push edi
push edi
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x22c], eax
test eax, eax
jne 0x5c9883
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
jmp 0x5c9821
mov ebx, dword [eax + 0x3c]
lea edi, [ebp - 0x220]
xor eax, eax
xorps xmm0, xmm0
stosd dword es:[edi], eax
movlpd qword [ebp - 0x228], xmm0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, 0x7b2
mov word [ebp - 0x220], ax
xor eax, eax
inc eax
mov word [ebp - 0x21e], ax
mov word [ebp - 0x21a], ax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edi, dword [ebp - 0x22c]
mov edx, 0x989680
mov ecx, dword [ebp - 0x228]
mov esi, dword [ebp - 0x224]
mov eax, dword [ebx + edi + 8]
mul edx
add ecx, eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], ecx
adc esi, edx
push eax
mov dword [ebp - 0x244], esi
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x220]
mov dword [0x677218], eax
movzx eax, word [ebp - 0x21e]
mov dword [0x67721c], eax
movzx eax, word [ebp - 0x21a]
push edi
mov dword [0x677220], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x230]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x234]
call esi
mov eax, dword [0x677218]
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x23c]
mov dword [ecx], eax
mov eax, ebx
mov ecx, dword [0x67721c]
mov dword [edx], ecx
mov edx, dword [ebp - 0x240]
mov ecx, dword [0x677220]
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004da623
leave
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5c9821
Function at 0x5ca400
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x668294]
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], eax
push edi
lea ecx, [ebp - 8]
mov esi, edx
call fcn.005c81b0
push eax
lea ecx, [ebp - 4]
call fcn.0040d242
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5ca438
call fcn.00407965
lea ecx, [ebp - 4]
call fcn.0040f41c
mov edi, dword [ebp - 4]
test edi, edi
je 0x5ca44e
push edi
call fcn.00516182
pop ecx
mov ecx, edi
call fcn.00414841
test eax, eax
je 0x5ca47f
push ecx
push str.iexplore.exe
lea ecx, [ebp - 4]
call fcn.0040cf21
test eax, eax
jns 0x5ca47f
push 1
push 0
push esi
push edi
push 0x634c74
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x5ca4ce
push str.Internet_Exploreriexplore.exe
lea ecx, [ebp - 8]
call fcn.005c8f50
mov edx, eax
lea ecx, [ebp - 4]
call fcn.0040ce1d
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff4
cmp ecx, 0x668010
je 0x5ca4a9
call fcn.00407965
push 1
push 0
push esi
mov esi, dword [ebp - 4]
push esi
push 0x634c74
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esi - 0xc]
cmp ecx, 0x668010
je 0x5ca4ce
call fcn.00407965
lea ecx, [edi - 0xc]
pop edi
pop esi
pop ebx
cmp ecx, 0x668010
je 0x5ca4e1
call fcn.00407965
leave
ret

Function at 0x5cb3da
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
je 0x5cb3fd
push edi
call fcn.00505070
pop ecx
push edi
push eax
lea ecx, [ebx + 0x14]
call fcn.0040f305
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5cb420
xor al, al
jmp 0x5cb46e
push ecx
lea ecx, [ebp - 0x10]
call fcn.0044e20b
push dword [ebp + 0xc]
mov eax, dword [ebx]
lea ecx, [ebp - 0x10]
push 0
push ecx
mov ecx, ebx
call dword [eax + 8]
mov eax, dword [ebp - 8]
lea ecx, [ebp + 8]
sub eax, dword [ebp - 0xc]
push 0
push ecx
push eax
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x639894
call fcn.0050524d
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5cb475
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call fcn.005cac0b
mov edi, dword [ebp + 8]
test edi, edi
jne 0x5cb48d
xor eax, eax
jmp 0x5cb494
push edi
call fcn.00505070
pop ecx
push edi
push eax
lea ecx, [esi + 0x14]
call fcn.0040f305
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x5cb51e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push ebx
push 2
push ebx
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x5cb51e
push dword [ebp + 8]
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x5cb51e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
push edi
call fcn.005cc46b
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [esi + 0x24], 0
sete al
jmp 0x5cb529
push 2
mov ecx, esi
call fcn.005cc279
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8