joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6c15d4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [0x834e68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x6c162e
push 0x10
call fcn.006484ac
mov esi, eax
xor eax, eax
pop ecx
mov dword [ebp - 4], esi
mov dword [esi], 0x755f74
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push dword [0x834e68]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x6c1621
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push esi
push dword [0x834e68]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x6c238f
Capabilities:
Get geographical location

Disassembly:
push 4
mov eax, 0x71bf83
call fcn.00648b1c
mov edx, dword [ecx + 0x10]
mov eax, edx
and dword [ebp - 0x10], 0
mov ebx, dword [ebp + 0xc]
mov esi, dword [edx + 4]
jmp 0x6c23ba
cmp dword [esi + 0x10], ebx
jae 0x6c23b6
mov esi, dword [esi + 8]
jmp 0x6c23ba
mov eax, esi
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
je 0x6c23ac
cmp eax, edx
je 0x6c23c9
cmp ebx, dword [eax + 0x10]
jae 0x6c23cb
mov eax, edx
cmp eax, edx
je 0x6c23e4
mov ecx, dword [eax + 0x14]
sub ecx, 0x10
call fcn.00515476
lea ecx, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x6c2451
push 0
push 0
push 0x1001
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esi, eax
call fcn.00515e26
push eax
lea ecx, [ebp + 0xc]
call fcn.00515c3a
and dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
push esi
call fcn.005159ef
push esi
push eax
push 0x1001
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.0051d5f9
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00515476
mov esi, dword [ebp + 8]
add eax, 0x10
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov dword [esi], eax
call fcn.00515ed6
mov eax, esi
call fcn.00648ae5
ret 8

Function at 0x6c5287
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
push edi
mov dword [edi], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x6c52b2
push edi
mov dword [edi], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esi + 0xc], 6
push 3
pop edi
jne 0x6c52eb
cmp dword [esi + 0x10], 2
jne 0x6c52cf
push edi
push ecx
call fcn.006c4718
test eax, eax
je 0x6c52cf
mov dword [esi + 0x10], edi
cmp dword [esi + 0xc], 6
jne 0x6c52eb
cmp dword [esi + 0x10], edi
jne 0x6c52eb
push 4
pop edi
push edi
push ecx
call fcn.006c4718
test eax, eax
je 0x6c52eb
mov dword [esi + 0x10], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002592
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10025b1
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [esi + 0x14]
push eax
call fcn.01002717
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x1002967
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 8]
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
test eax, eax
je 0x10025db
push dword [eax + 0x64]
call dword [sym.imp.RPCRT4.dll_RpcMgmtSetServerStackSize]
pop esi
pop ebp
ret 4
shl esi, 0xa
push esi
jmp 0x10025d5

Function at 0x8003b3f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret
Function at 0x4010af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401106
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4010f8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4010f4
cmp edi, eax
jae 0x4010f8
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4010e6
cmp edi, eax
jb 0x4010fc
xor eax, eax
jmp 0x401105
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x402c1c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x431034]
xor eax, esp
mov dword [esp + 0x98], eax
push esi
push 0x42685c
mov esi, ecx
call fcn.0040679d
mov eax, dword [esi + 4]
and dword [esp + 8], 0
pop ecx
test eax, eax
je 0x402dd9
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x402dd9
push dword [esp + 4]
mov dword [esp + 0xc], 0x9d
push str.CAdbIpcTask::Run
mov dword [esp + 0x14], 0x4030ab
mov dword [esp + 0x18], 0x9e
mov dword [esp + 0x1c], 0x403291
mov dword [esp + 0x20], 0x9f
mov dword [esp + 0x24], 0x404986
mov dword [esp + 0x28], 0xa0
mov dword [esp + 0x2c], 0x404baf
mov dword [esp + 0x30], 0xa1
mov dword [esp + 0x34], 0x4034e5
mov dword [esp + 0x38], 0xa2
mov dword [esp + 0x3c], 0x403dc0
mov dword [esp + 0x40], 0xa3
mov dword [esp + 0x44], 0x403fd0
mov dword [esp + 0x48], 0xa4
mov dword [esp + 0x4c], 0x40417f
mov dword [esp + 0x50], 0xa5
mov dword [esp + 0x54], 0x4044ac
mov dword [esp + 0x58], 0xa6
mov dword [esp + 0x5c], 0x404810
mov dword [esp + 0x60], 0xa7
mov dword [esp + 0x64], 0x40469a
mov dword [esp + 0x68], 0xa8
mov dword [esp + 0x6c], 0x404297
mov dword [esp + 0x70], 0xa9
mov dword [esp + 0x74], 0x4036f9
mov dword [esp + 0x78], 0xaa
mov dword [esp + 0x7c], 0x403b5f
mov dword [esp + 0x80], 0xac
mov dword [esp + 0x84], 0x404bf3
mov dword [esp + 0x88], 0xb2
mov dword [esp + 0x8c], 0x404ced
mov dword [esp + 0x90], 0xb3
mov dword [esp + 0x94], 0x404e6d
mov dword [esp + 0x98], 0xb4
mov dword [esp + 0x9c], 0x405077
call fcn.0040679d
pop ecx
pop ecx
lea eax, [esp + 8]
mov ecx, dword [esp + 4]
cmp ecx, dword [eax]
je 0x402dc9
add eax, 8
lea ecx, [esp + 0x98]
cmp eax, ecx
jne 0x402db3
lea ecx, [esp + 0x98]
cmp eax, ecx
je 0x402dd9
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 0x9c]
pop esi
xor ecx, esp
call fcn.00421ac2
mov esp, ebp
pop ebp
ret 4
Function at 0x4085da
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x68
mov eax, 0x42488f
call fcn.0042201e
mov eax, dword [ebp + 8]
push str.TENCENT_ANDROID_SERVER_NAME
xor ebx, ebx
push ebx
push 0x100000
mov dword [ebp - 0x74], eax
mov byte [ebp - 0x65], bl
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 0x6c], eax
push 7
mov dword [ebp - 4], ebx
pop eax
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x6c], ebx
jne 0x408631
call fcn.00416aa2
lea eax, [ebp - 0x64]
push eax
call fcn.00416a82
pop ecx
mov ebx, eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00405735
push 1
xor edi, edi
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00405898
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0041677c
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00405735
xor ebx, ebx
inc ebx
push ebx
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.00405898
cmp dword [ebp - 0x1c], edi
je 0x4086eb
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x408697
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00401d9d
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4086b7
test al, 0x10
je 0x4086b7
mov esi, ebx
jmp 0x4086b9
xor esi, esi
mov eax, dword [ebp - 0x70]
add eax, 0xfffffff0
call fcn.004011ad
test esi, esi
je 0x4086eb
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4086d4
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x74]
push str.RubikEngine.dll
push eax
call fcn.0041476a
pop ecx
pop ecx
test eax, eax
je 0x4086eb
mov byte [ebp - 0x65], bl
push ebx
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.00405898
push ebx
lea esi, [ebp - 0x2c]
call fcn.00405898
cmp dword [ebp - 0x6c], edi
je 0x40870d
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x65]
call fcn.004220a1
ret 4
Function at 0x408718
Capabilities:
Check if file exists

Disassembly:
push 0xc
mov eax, 0x423e40
call fcn.00421fb4
mov esi, ecx
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], 0
call fcn.004087e7
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test al, al
je 0x408760
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x408776
lea eax, [ebp - 0x14]
push eax
call fcn.004085da
test al, al
je 0x4087d3
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x4087d3
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.DllGetClassObject
push eax
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4087d3
lea ecx, [ebp - 0x18]
push ecx
push 0x42665c
push 0x4275c0
call eax
test eax, eax
js 0x4087d3
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4087d3
mov ecx, dword [eax]
push esi
push 0x4275b0
push 0
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x4087d3
mov esi, dword [esi]
test esi, esi
je 0x4087d3
mov eax, dword [esi]
push esi
call dword [eax + 0x1c]
test eax, eax
js 0x4087d3
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004011ad
mov al, byte [ebp - 0xd]
call fcn.0042208d
ret

Function at 0x4087e7
Capabilities:
Check if file exists

Disassembly:
push 0x620
mov eax, 0x423530
call fcn.0042201e
xor eax, eax
push 0x616
mov word [ebp - 0x628], ax
xor ebx, ebx
lea eax, [ebp - 0x626]
push ebx
push eax
mov edi, ecx
call sub.MSVCR100.dll_memset
mov eax, dword [section..data]
add esp, 0xc
mov ecx, section..data
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x62c], esi
push 0x30c
lea eax, [ebp - 0x628]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x408865
lea eax, [esi - 0x10]
call fcn.004011ad
xor al, al
call fcn.004220a1
ret
push str.RubikEngine.dll
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.00401f3d
mov esi, dword [ebp - 0x62c]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4088a7
lea eax, [esi - 0x10]
call fcn.004011ad
mov al, bl
jmp 0x40885f
lea eax, [ebp - 0x62c]
call fcn.004088b6
mov bl, 1
jmp 0x40889b
Function at 0x409bba
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x431034]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x41c], ax
xor edi, edi
lea eax, [ebp - 0x41a]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x41c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push edi
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x834], ax
lea eax, [ebp - 0x832]
push edi
push eax
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00409804
xor esi, esi
inc esi
xor eax, eax
add esp, 0x30
mov dword [ebp - 0x840], esi
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x838], edi
cmp ax, word [ebp - 0x210]
je 0x409cc4
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x840]
push eax
lea eax, [ebp - 0x210]
call fcn.00409b2c
add esp, 0xc
test eax, eax
jne 0x409cc4
mov dword [ebp - 0x840], esi
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x838], edi
push dword [ebp - 0x838]
push dword [ebp - 0x83c]
push dword [ebp - 0x840]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea edx, [ebp - 0x41c]
lea ecx, [ebp - 0x628]
call fcn.0040903b
add esp, 0x10
call fcn.0040975d
mov eax, dword [0x4333f4]
cmp eax, edi
je 0x409d06
mov dword [eax + 0x1c], 0x2710
call fcn.0040975d
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00421ac2
leave
ret

Function at 0x409f26
Capabilities:
Create process on windows

Disassembly:
push 0x40
mov eax, 0x4242a6
call fcn.0042201e
push 0x427608
lea eax, [ebp - 0x48]
call fcn.004052b3
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0041677c
pop ecx
pop ecx
push 1
xor edi, edi
lea esi, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00405898
cmp dword [ebp - 0x1c], ebx
je 0x409fc4
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x409f8b
lea eax, [ebp - 0x2c]
push str.androidserver.exe
push eax
lea edi, [ebp - 0x4c]
call fcn.0041476a
mov esi, dword [ebp - 0x4c]
push ebx
push esi
call dword [sym.imp.MSVCR100.dll__waccess]
add esp, 0x10
test eax, eax
jne 0x409fbc
push 1
push ebx
push ebx
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea eax, [esi - 0x10]
call fcn.004011ad
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
call fcn.00405898
call fcn.004220a1
ret
Function at 0x40a108
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x42350a
call fcn.00421fb4
lea eax, [ebp - 0x10]
push eax
call fcn.004147c1
xor esi, esi
mov dword [ebp - 4], esi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.MSVCR100.dll__waccess]
add esp, 0xc
test eax, eax
jne 0x40a1bd
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str._runCleanOld
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str.__s___s
call fcn.004021ec
xor eax, eax
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
push esi
push eax
call sub.MSVCR100.dll_memset
mov edi, dword [ebp - 0x14]
add esp, 0x18
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push 0x2000000
push esi
push esi
push esi
push edi
push esi
mov dword [ebp - 0x70], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a1b5
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
lea eax, [edi - 0x10]
call fcn.004011ad
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004011ad
call fcn.0042208d
ret
Function at 0x40a526
Capabilities:
Create process on windows

Disassembly:
push 0x64
mov eax, 0x42350a
call fcn.00421fb4
call fcn.0040a68f
test al, al
jne 0x40a60d
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0041480d
mov dword [esp], str.AndroidServerUp.exe
push dword [ebp - 0x10]
lea edi, [ebp - 0x10]
call fcn.0041476a
mov ebx, dword [ebp - 0x10]
push esi
push ebx
call dword [sym.imp.MSVCR100.dll__waccess]
add esp, 0x10
test eax, eax
jne 0x40a5d8
mov dword [ebp - 0x24], esi
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
push esi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push esi
push 0x2000000
push esi
push esi
push esi
push esi
push ebx
mov dword [ebp - 0x70], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a5d1
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
call fcn.0040a734
jmp 0x40a605
push 0x427608
lea eax, [ebp - 0x14]
push eax
call fcn.00401d9d
lea eax, [ebp - 0x14]
push eax
push 2
push 1
mov byte [ebp - 4], 1
call fcn.00418a95
mov eax, dword [ebp - 0x14]
add esp, 0xc
add eax, 0xfffffff0
call fcn.004011ad
lea eax, [ebx - 0x10]
call fcn.004011ad
call fcn.0042208d
ret

Function at 0x40a68f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0
call dword [sym.imp.MSVCR100.dll__time64]
pop ecx
lea esi, [ebp - 4]
mov edi, eax
mov ebx, edx
call fcn.0040a613
mov eax, dword [eax]
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push ecx
push Ordinal_4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004011ad
cmp esi, 0xffffffff
je 0x40a72d
push 0
call dword [sym.imp.MSVCR100.dll__time64]
and dword [ebp - 8], 0
pop ecx
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
je 0x40a727
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub edi, dword [ebp - 0x10]
sbb ebx, dword [ebp - 0xc]
test ebx, ebx
jg 0x40a723
jl 0x40a71e
cmp edi, 0x493e0
jae 0x40a723
xor eax, eax
inc eax
jmp 0x40a72f
xor eax, eax
jmp 0x40a72f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a734
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea esi, [ebp - 4]
call fcn.0040a613
mov eax, dword [eax]
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004011ad
cmp edi, 0xffffffff
je 0x40a79a
push esi
call dword [sym.imp.MSVCR100.dll__time64]
pop ecx
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret

Function at 0x40bf1c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea esi, [ebp - 8]
call fcn.0040bbdd
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
push ecx
push 0x80
push 2
push ecx
push ecx
mov ebx, 0x40000000
push ebx
push eax
call edi
mov esi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004011ad
cmp esi, 0xffffffff
jne 0x40bfa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40bf9b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [ebp - 0xc]
call fcn.0040bbdd
mov eax, dword [eax]
xor ecx, ecx
push ecx
push 0x80
push 2
push ecx
push ecx
push ebx
push eax
call edi
mov esi, eax
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.004011ad
cmp esi, 0xffffffff
je 0x40bf5c
cmp esi, 0xffffffff
je 0x40bfdf
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0040bdbc
mov eax, dword [ebp - 4]
pop ecx
xor ecx, ecx
cmp dword [eax - 0xc], ecx
je 0x40bfcd
push ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004011ad
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bfe4
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x38
mov eax, 0x424edf
call fcn.00421fb4
xor ebx, ebx
mov dword [ebp - 4], ebx
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
call fcn.0040bbdd
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push ebx
push Ordinal_4
push eax
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
jmp 0x40c057
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40c065
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [ebp - 0x20]
call fcn.0040bbdd
mov eax, dword [eax]
push ebx
push 0x80
push 3
push ebx
push ebx
push Ordinal_4
push eax
call edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004011ad
cmp dword [ebp - 0x14], 0xffffffff
je 0x40c022
mov esi, dword [ebp + 8]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
xor edi, edi
inc edi
cmp dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edi
je 0x40c136
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x40c12d
cmp eax, ebx
je 0x40c12d
cmp eax, 0x100000
ja 0x40c12d
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
shr eax, 1
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], edi
call fcn.0040e1d7
mov edi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
sub eax, edi
push ebx
sar eax, 1
lea ecx, [ebp - 0x18]
push ecx
add eax, eax
push eax
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c0f0
cmp edi, ebx
je 0x40c12d
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
pop ecx
jmp 0x40c12d
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
call fcn.0040e1d7
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x44]
call fcn.0040be46
pop ecx
mov edi, eax
mov byte [ebp - 4], 2
call fcn.0040e6ad
lea esi, [ebp - 0x44]
call fcn.0040d5f8
cmp dword [ebp - 0x34], ebx
je 0x40c12a
push dword [ebp - 0x34]
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
pop ecx
mov esi, dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.0042208d
ret