joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414020
Capabilities:
Delete file
Extract resource via kernel32 functions
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452392
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
mov eax, dword [0x46a4c0]
mov dword [ebp - 0x24], eax
push edi
mov dword [ebp - 0x140], ecx
mov ecx, dword [ebp - 0x140]
add ecx, 0x338
call fcn.00403570
mov ax, word [0x4564e4]
mov word [ebp - 0x12c], ax
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x12a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call fcn.00414760
mov dword [ebp - 0x18], eax
push 0x4564e8
push 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x138], eax
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x130], eax
push 0x104
lea edx, [ebp - 0x12c]
push edx
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea eax, [ebp - 0x134]
push eax
call fcn.0040d2a0
mov ecx, eax
call fcn.00402780
mov dword [ebp - 4], 0
push str.guagua_install_40.swf
lea ecx, [ebp - 0x12c]
push ecx
call fcn.00434890
add esp, 8
lea edx, [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x41415f
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, dword [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea edx, [ebp - 0x12c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404990
mov dword [ebp - 0x13c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.0041cec0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x24]
call fcn.00434060
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x417ae0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452723
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push edi
mov dword [ebp - 0x88], ecx
lea eax, [ebp - 0x74]
push eax
call fcn.0040d2a0
mov ecx, eax
call fcn.004183a0
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x88]
add ecx, 0x17a4
call fcn.00407d70
push eax
lea edx, [ebp - 0x78]
push edx
call fcn.00419a80
add esp, 8
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x98]
push edx
lea eax, [ebp - 0x70]
push eax
call fcn.004029a0
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78]
call fcn.0041cec0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.0041cec0
push 0
call fcn.00426b90
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x417ba7
jmp 0x417bcd
mov edx, dword [ebp - 0x70]
push edx
push str.Call_LaunchGuaGua__s__n
push 0x36a
push 0x456e6c
push 0
call fcn.00426bb0
add esp, 0xc
push eax
call fcn.00426af0
add esp, 0xc
mov dword [ebp - 0x6c], 0x44
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x68]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x70]
call fcn.00407d70
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0041bc40
add esp, 8
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], ecx
mov byte [ebp - 4], 5
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0xa0]
call fcn.00407d70
push eax
push 0
push 0
push 0
push 0
push 0
push 0x104
lea ecx, [ebp - 0x70]
call fcn.00403230
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x7c]
call fcn.0041cec0
cmp dword [ebp - 0x20], 0
je 0x417c6a
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417cd6
push 0
call fcn.00426b90
add esp, 4
movzx eax, al
test eax, eax
jne 0x417c7d
jmp 0x417cd6
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x80]
call fcn.004031f0
mov dword [ebp - 0xa4], eax
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xa8], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax]
push ecx
push str.CSetupToolDlg::LaunchGuaGua___path_s_Fail_n
push 0x376
push 0x456e98
push 0
call fcn.00426bb0
add esp, 0xc
push eax
call fcn.00426af0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.0041cec0
push 0
call fcn.00426b90
add esp, 4
movzx edx, al
test edx, edx
jne 0x417ce9
jmp 0x417d13
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
push str.Exec__s___d__n
push 0x378
push 0x456ed8
push 0
call fcn.00426bb0
add esp, 0xc
push eax
call fcn.00426af0
add esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x84], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.0041cec0
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x419d50
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4529e4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00419a80
add esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 3
lea ecx, [ebp - 0x10]
call fcn.004031d0
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 0
jl 0x419e05
mov edx, dword [ebp - 0x14]
push edx
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00404680
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x419db4
jmp 0x419e05
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00404730
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403210
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041cec0
push 0
lea ecx, [ebp - 0x10]
call fcn.00407d70
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
jmp 0x419d95
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00410a40
lea ecx, [ebp - 0x18]
call fcn.00407d70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041cec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041cec0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x41a020
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452a32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push edi
mov dword [ebp - 0x48], 0
mov ecx, 0xe
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x48], 0x3c
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], 0x440
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0
call fcn.00426b90
add esp, 4
movzx eax, al
test eax, eax
jne 0x41a090
jmp 0x41a118
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.00405350
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
call fcn.00405350
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], ecx
mov byte [ebp - 4], 1
xor edx, edx
cmp dword [ebp - 0x10], 0
setne dl
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x60]
mov eax, dword [edx]
push eax
push str.ExecApp__s__s___d__n
push 0x85
push 0x4578c4
push 0
call fcn.00426bb0
add esp, 0xc
push eax
call fcn.00426af0
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0041cec0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0041cec0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41b680
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov eax, 1
test eax, eax
je 0x41b6ca
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 8]
jae 0x41b6be
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x41b6c0
jmp 0x41b6ca
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41b692
mov esp, ebp
pop ebp
ret 4

Function at 0x41b840
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x46a4c0]
mov dword [ebp - 4], eax
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x41b86f
jmp 0x41b92f
mov dword [ebp - 0x130], 0x128
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x138]
call fcn.00405350
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41b917
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x138]
call fcn.00405130
test eax, eax
jne 0x41b900
mov ecx, dword [ebp - 0x128]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x41b900
push 0xffffffffffffffff
mov edx, dword [ebp - 0x13c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41b8ae
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x138]
call fcn.0041cec0
mov ecx, dword [ebp - 4]
call fcn.00434060
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41b940
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x46a4c0]
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x138], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
jne 0x41b97b
xor eax, eax
jmp 0x41ba1d
mov dword [ebp - 0x130], 0x128
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x12c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00405350
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41b9f3
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00405130
test eax, eax
jne 0x41b9dc
mov dword [ebp - 0x138], 1
jmp 0x41b9f3
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41b9ba
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x140], ecx
lea ecx, [ebp - 0x13c]
call fcn.0041cec0
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 4]
call fcn.00434060
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x41c920
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x41c934
jmp 0x41c958
mov dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x41c958
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 0xc], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41fab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x41fac9
mov ecx, dword [ebp - 0x10]
call fcn.00420000
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push 0x80
push 2
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x40], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x40], 0xffffffff
jne 0x41fb02
xor eax, eax
jmp 0x41fc3e
push 8
push 0x45836c
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call fcn.004338b0
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0x4000
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], edx
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp + 0x10]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x24], 0
mov dword [edx + 0x28], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x48], eax
mov dword [ebp - 0xc], 0
push 0
lea edx, [ebp - 0xc]
push edx
push 0x2c
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0xc], 0x2c
je 0x41fb9e
jmp 0x41fbfd
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004203c0
mov dword [ebp - 8], eax
push 0
push 0
mov edx, dword [ebp - 8]
add edx, 0x100
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x41fbdf
jmp 0x41fbfd
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.00406c00
mov dword [ebp - 4], 1
xor edx, edx
jne 0x41fad0
cmp dword [ebp - 4], 0
jne 0x41fc23
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x40], 0xffffffff
je 0x41fc23
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x40], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x10]
call fcn.00420410
mov ecx, dword [ebp - 0x10]
call fcn.00420460
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x420080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x420098
xor eax, eax
jmp 0x420186
mov dword [ebp - 4], 0
push 0
push 0
push 0x100
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406c20
push eax
push 0
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406c60
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406c20
cmp dword [ebp - 4], eax
je 0x420132
push 0
call fcn.00426b90
add esp, 4
movzx eax, al
test eax, eax
jne 0x420105
jmp 0x42012e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Read
push 0xf7
push 0x4585bc
push 0
call fcn.00426bb0
add esp, 0xc
push eax
call fcn.00426af0
add esp, 0xc
xor eax, eax
jmp 0x420186
mov dword [ebp - 8], 0
jmp 0x420144
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406c20
cmp dword [ebp - 8], eax
jge 0x420181
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406c60
movzx eax, byte [eax]
cmp eax, 0xff
je 0x42017f
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406c60
mov byte [eax], 0
jmp 0x42013b
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x420190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4201a8
xor eax, eax
jmp 0x4202d1
mov dword [ebp - 4], 0
push 0
push 0
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
sub eax, dword [ecx + 0x48]
mov edx, dword [ebp - 8]
mov dword [edx + 0x2c], eax
push 0
lea eax, [ebp - 4]
push eax
push 0x2c
mov ecx, dword [ebp - 8]
add ecx, 4
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 4], 0x2c
je 0x420239
push 0
call fcn.00426b90
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x420209
jmp 0x420232
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Write_
push 0x117
push 0x458608
push 0
call fcn.00426bb0
add esp, 0xc
push eax
call fcn.00426af0
add esp, 0xc
xor eax, eax
jmp 0x4202d1
push 0
push 0
push 0x100
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
add ecx, 0x30
call fcn.00406c20
push eax
push 0
mov ecx, dword [ebp - 8]
add ecx, 0x30
call fcn.00406c60
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
add ecx, 0x30
call fcn.00406c20
cmp dword [ebp - 4], eax
je 0x4202cc
push 0
call fcn.00426b90
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x42029f
jmp 0x4202c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Write_BITMAP
push 0x11f
push str.OnlineSetupV2CommonBitmapFile.cpp
push 0
call fcn.00426bb0
add esp, 0xc
push eax
call fcn.00426af0
add esp, 0xc
xor eax, eax
jmp 0x4202d1
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4263b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453236
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x74], 0
jne 0x4263de
xor eax, eax
jmp 0x426528
push 1
mov ecx, dword [ebp - 0x3c]
add ecx, 0x50
push ecx
lea ecx, [ebp - 0x18]
call fcn.0042a8e7
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
call fcn.00420b80
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jg 0x426425
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00409d20
mov eax, dword [ebp - 0x30]
jmp 0x426528
mov dword [ebp - 0x28], 0
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push 0
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x14]
cmp ecx, dword [ebp - 0x28]
je 0x4264d5
push 0
call fcn.00426b90
add esp, 4
movzx edx, al
test edx, edx
jne 0x426485
jmp 0x4264ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.COutputFile::WriteData__I64d___d_
push 0xa3
push str.OnlineSetupV2CommonOutputFile.cpp
push 0
call fcn.00426bb0
add esp, 0xc
push eax
call fcn.00426af0
add esp, 0x18
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00409d20
mov eax, dword [ebp - 0x34]
jmp 0x426528
push 0xff
mov ecx, dword [ebp - 0x3c]
call fcn.00420b80
cdq
push edx
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00434dc0
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00420340
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.004202e0
mov ecx, dword [ebp - 0x3c]
call fcn.00420190
mov dword [ebp - 0x38], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00409d20
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42ad87
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x42adda
call fcn.0044dd29
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x42adda
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x42add0
xor eax, eax
jmp 0x42aef3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x42ae0a
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x42ae0a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x42aef0
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x42ae37
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00429b03
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x42aef0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x42ae80
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x42ae80
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x42ae7a
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00429b03
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x42aee0
and dword [ebp + 0xc], 0
jmp 0x42aee0
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x42aee0
push 0xc
call fcn.0044772a
mov esi, eax
test esi, esi
pop ecx
je 0x42aec2
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x42aec4
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x42aedb
push dword [ebp - 8]
call fcn.004424fa
jmp 0x42aee0
call fcn.004424d1
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x42ae45
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc