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

Disassembly:
sub esp, 8
push esi
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push 0x407a20
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 4], esi
je 0x4012b1
push edi
push ebp
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
je 0x4012a7
lea edi, [ebp + 1]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov esi, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401298
test ebp, ebp
jbe 0x401298
push 0x405098
push esi
mov edi, esi
call fcn.00401bf0
mov esi, eax
add esp, 8
test esi, esi
je 0x401282
mov byte [esi], 0
add esi, 2
mov edx, dword [esp + 0x1c]
push edi
push edx
call fcn.004010a0
mov eax, esi
add esp, 8
sub eax, ebx
cmp eax, ebp
jb 0x401266
test ebx, ebx
je 0x4012a3
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
pop esi
add esp, 8
ret

Function at 0x4012c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push edi
mov edi, dword [esp + 0x11c]
push 0x3ec
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push pe_nt_image_headers32
push 2
push 0
push 1
mov ebp, eax
push 0x40000000
push 0x407a20
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40138a
push esi
xor esi, esi
test ebp, ebp
jle 0x401378
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40132c
mov edi, dword [esp + 0x120]
lea eax, [esp + 0x18]
push 0x100
push eax
push esi
push edi
call fcn.00401150
add esp, 0x10
lea ecx, [esp + 0x14]
lea edi, [esp + 0x18]
xor eax, eax
push 0
push ecx
or ecx, 0xffffffff
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push ebx
call ebp
lea eax, [esp + 0x14]
push 0
push eax
push 2
push 0x4050dc
push ebx
call ebp
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x401325
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x10c
ret
push 0
push str.QuickTray
push str.Error_writing_application_data__your_changes_cannot_be_saved.
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x4014e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
mov al, byte [0x407748]
mov edx, dword [esp + 0x10c]
push edi
mov byte [esp + 4], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
push 0x100
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x110]
lea ecx, [esp + 8]
dec edx
push ecx
push edx
push eax
call fcn.00401150
add esp, 0x10
lea ecx, [esp + 4]
push 1
push 0
push 0
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
add esp, 0x104
ret

Function at 0x401900
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x1c
push esi
push str.QuickTray
push 1
push 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40198d
mov esi, dword [esp + 0x24]
push esi
call fcn.00401840
add esp, 4
push 0
push 0x401540
push 0
push 0x66
push esi
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
lea eax, [esp + 0xc]
push 0
push eax
call esi
test eax, eax
je 0x40198d
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [esp + 0xc]
push ecx
call edi
lea edx, [esp + 0xc]
push edx
call ebx
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
call esi
test eax, eax
jne 0x40196c
pop ebx
pop edi
mov eax, dword [esp + 0xc]
pop esi
add esp, 0x1c
ret 0x10
Function at 0x401c70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x402d58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x407770], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40776c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x407768], ecx
shr eax, 0x10
mov dword [0x407764], eax
call fcn.00402c20
test eax, eax
jne 0x401cda
push 0x1c
call fcn.00401e10
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402a20
call fcn.00402a10
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407c50], eax
call fcn.004025e0
mov dword [0x40774c], eax
test eax, eax
je 0x401d0d
mov eax, dword [0x407c50]
test eax, eax
jne 0x401d17
push 0xffffffffffffffff
call fcn.00401f40
add esp, 4
call fcn.00402330
call fcn.00402240
call fcn.00401f10
mov esi, dword [0x407c50]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401df6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401d5e
test al, al
je 0x401d5e
and eax, 0xff
push eax
call fcn.004021e0
add esp, 4
test eax, eax
je 0x401d38
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401d38
cmp byte [esi], 0x22
jne 0x401d67
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401d77
cmp al, 0x20
ja 0x401d77
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401d67
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401d98
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401d9d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00401f40
jmp 0x401ddb
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401d67
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401df6

Function at 0x401f80
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x4077a0]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x401f9f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40779c], 1
mov byte [0x407798], bl
jne 0x401ff9
mov ecx, dword [0x407c48]
test ecx, ecx
je 0x401fe7
mov esi, dword [0x407c44]
sub esi, 4
cmp esi, ecx
jb 0x401fe7
mov eax, dword [esi]
test eax, eax
je 0x401fe0
call eax
mov ecx, dword [0x407c48]
sub esi, 4
cmp esi, ecx
jae 0x401fd2
push 0x405014
push 0x405010
call fcn.00402030
add esp, 8
push 0x40501c
push 0x405018
call fcn.00402030
add esp, 8
test ebx, ebx
jne 0x402020
push ebp
mov dword [0x4077a0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x4025e0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x4078b0]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402622
call edi
mov esi, eax
test esi, esi
je 0x40260c
mov eax, 1
jmp 0x40261d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40272f
mov eax, 2
mov dword [0x4078b0], eax
cmp eax, 1
jne 0x4026c2
test esi, esi
jne 0x40263b
call edi
mov esi, eax
test esi, esi
je 0x40272f
cmp word [esi], 0
mov eax, esi
je 0x402655
add eax, 2
cmp word [eax], 0
jne 0x402643
add eax, 2
cmp word [eax], 0
jne 0x402643
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4026b4
push edi
call fcn.004030a0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4026b4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4026a6
push ebx
call fcn.00403050
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40272f
test ebx, ebx
jne 0x4026d3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40272f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x4026eb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4026db
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4026db
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004030a0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40270d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402e70
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x405470
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x402e94
add eax, 8
inc ebp
cmp eax, 0x405500
jb 0x402e85
cmp ecx, dword [ebp*8 + 0x405470]
jne 0x40303b
mov eax, dword [0x407754]
cmp eax, 1
je 0x402ffd
test eax, eax
jne 0x402ec0
cmp dword [0x4052c4], 1
je 0x402ffd
cmp ecx, 0xfc
je 0x40303b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402efb
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x402f44
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4042dc
add ebx, ecx
push ebx
call fcn.00403900
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4042bc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x405474]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403870
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x407b40]
test eax, eax
je 0x40300e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x403018
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x405474]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x401152
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x438074]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0xa0
mov eax, 0x42c08b
call fcn.0042707c
mov eax, dword [ebp + 0x218]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0x20], ebx
test byte [0x43b18c], 1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x28], eax
jne 0x4011bf
mov eax, dword [0x43a09c]
or dword [0x43b18c], 1
mov ecx, 0x43a09c
call dword [eax + 0xc]
add eax, 0x10
push 0x42caf0
mov dword [0x43b188], eax
call fcn.0040f416
pop ecx
mov eax, dword [0x43b188]
mov eax, dword [eax - 0xc]
mov edi, 0x43b188
cmp eax, ebx
jne 0x4012db
lea eax, [ebp]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
jle 0x4012db
lea eax, [ebp]
push eax
push edi
call fcn.004019b6
push str.RootGenius_
push edi
call fcn.004019d4
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push dword [0x43b188]
call esi
push str.Data_
lea eax, [ebp - 0x18]
push eax
call fcn.00401926
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], 1
call fcn.004019f2
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call esi
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00402ca1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402ca1
push str.DataApk
lea eax, [ebp - 0x10]
push eax
call fcn.00401926
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 2
call fcn.004019f2
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402ca1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402ca1
push str.DataBin
lea eax, [ebp - 0x10]
push eax
call fcn.00401926
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 3
call fcn.004019f2
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call esi
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402ca1
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402ca1
mov esi, dword [ebp - 0x1c]
push dword [ebp - 0x28]
mov ecx, edi
push esi
call fcn.00401a47
pop ecx
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [esi]
push 3
push eax
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0xa8]
push eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0xac], ecx
call fcn.00401f96
push dword [ebp - 0xac]
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea eax, [ebp - 0xa8]
cmp dword [ebp - 0xac], eax
je 0x401335
push dword [ebp - 0xac]
call fcn.0040f023
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.0040edab
add ebp, 0x210
leave
ret
Function at 0x40135a
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push esi
push edi
push 0x4305a8
push eax
push dword [0x43aff4]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 8], eax
cmp edi, esi
jne 0x401393
xor al, al
jmp 0x4013e4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x40138f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0x80
push 2
push esi
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov edi, eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
cmp edi, esi
je 0x4013e2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebp
ret

Function at 0x40148a
Capabilities:
Delete file

Disassembly:
push 8
mov eax, 0x42c2b9
call fcn.0042707c
mov eax, dword [0x43a09c]
mov ecx, 0x43a09c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
push str.zlib1.dll
lea ecx, [ebp - 0x14]
call fcn.00401152
pop ecx
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401975
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402ca1
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
push eax
push 0x82
call fcn.0040135a
pop ecx
mov bl, al
pop ecx
lea eax, [esi - 0x10]
call fcn.00402ca1
mov al, bl
call fcn.0042711b
ret

Function at 0x4014fd
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x42c28e
call fcn.0042707c
mov eax, dword [0x43a09c]
mov ecx, 0x43a09c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
push str.RootGeniusEx.zip
lea ecx, [ebp - 0x18]
call fcn.00401152
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401975
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402ca1
mov edi, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
lea eax, [ebp - 0x14]
push eax
push 0x85
call fcn.0040135a
pop ecx
pop ecx
mov byte [ebp - 0xd], al
test al, al
je 0x4015a9
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x4307d0
call fcn.00401152
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esp
lea eax, [edi - 0x10]
mov dword [ebp - 0x18], esp
call fcn.004020cd
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
mov byte [ebp - 4], 0
call fcn.00402cd1
add esp, 0xc
push edi
mov byte [ebp - 0xd], al
call esi
lea eax, [edi - 0x10]
call fcn.00402ca1
mov al, byte [ebp - 0xd]
call fcn.0042711b
ret
Function at 0x402a73
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402a8a
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402abf
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x402abb
cmp edi, eax
jae 0x402abf
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x402aad
cmp edi, eax
jb 0x402ac3
xor eax, eax
jmp 0x402acc
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x402cd1
Capabilities:
Create directory
Write file on windows

Disassembly:
push 0x5f8
mov eax, 0x42c24e
call fcn.004270e5
lea ecx, [ebp - 0x41c]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 1
call fcn.00403099
mov byte [ebp - 4], 2
call fcn.00403155
test eax, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x41c]
setne bl
add eax, 0xfffffff0
call fcn.00402ca1
test bl, bl
je 0x402d27
push 0x4307d4
lea eax, [ebp + 0xc]
push eax
call fcn.004019d4
push dword [ebp + 8]
lea esi, [ebp - 0x4ac]
call fcn.004030d7
push dword [eax]
call sub.zlib1.dll_Ordinal_61
mov esi, eax
lea eax, [ebp - 0x4a8]
mov dword [ebp - 0x41c], esi
cmp dword [ebp - 0x4ac], eax
je 0x402d5e
push dword [ebp - 0x4ac]
call fcn.0040f023
pop ecx
xor edi, edi
cmp esi, edi
jne 0x402d84
xor bl, bl
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00402ca1
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.00402ca1
mov al, bl
call fcn.0042712f
ret
push esi
call sub.zlib1.dll_Ordinal_65
cmp eax, edi
jne 0x402f30
push edi
push edi
push edi
push edi
push 0x400
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x604]
push eax
push esi
call sub.zlib1.dll_Ordinal_64
test eax, eax
jne 0x402f22
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00401926
mov byte [ebp - 4], 3
mov ebx, dword [ebp - 0x5e8]
push ebx
call fcn.0040f98b
pop ecx
mov dword [ebp - 0x420], eax
cmp eax, edi
je 0x402f10
cmp byte [ebp + 0x10], 0
je 0x402dfc
push str.cdf283818fda91abb904873e7125055e
push esi
call sub.zlib1.dll_Ordinal_79
jmp 0x402e02
push esi
call sub.zlib1.dll_Ordinal_67
cmp eax, edi
jne 0x402f04
push ebx
push dword [ebp - 0x420]
push esi
call sub.zlib1.dll_Ordinal_68
mov esi, eax
cmp esi, edi
jl 0x402ef3
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004020cd
add eax, 0x10
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x5ac]
mov byte [ebp - 4], 4
mov dword [ebp - 0x5b0], eax
push 0xfde9
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x5b0]
push eax
call fcn.00403187
mov byte [ebp - 4], 5
push dword [ebp - 0x5b0]
lea eax, [ebp - 0x418]
push eax
call fcn.004019d4
lea eax, [ebp - 0x5ac]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x5b0], eax
je 0x402e91
push dword [ebp - 0x5b0]
call fcn.0040f023
pop ecx
lea eax, [ebp - 0x418]
push eax
call fcn.00402f3d
cmp esi, edi
jne 0x402eb0
push edi
push dword [ebp - 0x418]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x402ee5
mov esi, dword [ebp - 0x418]
call fcn.0040721a
mov esi, eax
cmp esi, 0xffffffff
je 0x402ee5
push edi
lea eax, [ebp - 0x428]
push eax
push ebx
push dword [ebp - 0x420]
mov dword [ebp - 0x428], edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
call fcn.00402ca1
push dword [ebp - 0x41c]
call sub.zlib1.dll_Ordinal_72
mov esi, dword [ebp - 0x41c]
push dword [ebp - 0x420]
call fcn.0040f023
pop ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
call fcn.00402ca1
push esi
call sub.zlib1.dll_Ordinal_66
test eax, eax
je 0x402d92
push esi
call sub.zlib1.dll_Ordinal_62
mov bl, 1
jmp 0x402d66