joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412170
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45217e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp + 8]
add eax, 4
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004031f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.004031f0
mov byte [ebp - 4], 1
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.004031f0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004031f0
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
add ecx, 0x14
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.004031f0
mov byte [ebp - 4], 4
mov edx, dword [ebp + 8]
add edx, 0x18
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.004031f0
mov byte [ebp - 4], 5
mov eax, dword [ebp + 8]
add eax, 0x1c
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.004031f0
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 8]
add ecx, 0x20
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.004031f0
mov byte [ebp - 4], 7
mov edx, dword [ebp + 8]
add edx, 0x24
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004031f0
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
add eax, 0x28
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.004031f0
mov byte [ebp - 4], 9
mov ecx, dword [ebp + 8]
add ecx, 0x2c
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.004031f0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x30], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
mov dword [edx + 0x34], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x414010
Capabilities:
Delete file
Extract resource via kernel32 functions
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452372
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.00414750
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.0040d290
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.00434870
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 0x41414f
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.0041cea0
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x24]
call fcn.00434040
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x417ad0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452703
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.0040d290
mov ecx, eax
call fcn.00418390
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.00419a60
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.0041cea0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.0041cea0
push 0
call fcn.00426b70
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x417b97
jmp 0x417bbd
mov edx, dword [ebp - 0x70]
push edx
push str.Call_LaunchGuaGua__s__n
push 0x36a
push 0x456e6c
push 0
call fcn.00426b90
add esp, 0xc
push eax
call fcn.00426ad0
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.0041bc20
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.0041cea0
cmp dword [ebp - 0x20], 0
je 0x417c5a
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 0x417cc6
push 0
call fcn.00426b70
add esp, 4
movzx eax, al
test eax, eax
jne 0x417c6d
jmp 0x417cc6
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.00426b90
add esp, 0xc
push eax
call fcn.00426ad0
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
call fcn.0041cea0
push 0
call fcn.00426b70
add esp, 4
movzx edx, al
test edx, edx
jne 0x417cd9
jmp 0x417d03
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.00426b90
add esp, 0xc
push eax
call fcn.00426ad0
add esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x84], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.0041cea0
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 0x419d30
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4529c4
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.00419a60
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 0x419de5
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 0x419d94
jmp 0x419de5
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.0041cea0
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 0x419d75
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00410a30
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.0041cea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0041cea0
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x41a000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x452a12
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.00426b70
add esp, 4
movzx eax, al
test eax, eax
jne 0x41a070
jmp 0x41a0f8
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.00426b90
add esp, 0xc
push eax
call fcn.00426ad0
add esp, 0x14
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.0041cea0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.0041cea0
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 0x41b660
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 0x41b6aa
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 0x41b69e
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
je 0x41b6a0
jmp 0x41b6aa
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x41b672
mov esp, ebp
pop ebp
ret 4

Function at 0x41b820
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 0x41b84f
jmp 0x41b90f
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 0x41b8f7
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x138]
call fcn.00405130
test eax, eax
jne 0x41b8e0
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 0x41b8e0
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 0x41b88e
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x138]
call fcn.0041cea0
mov ecx, dword [ebp - 4]
call fcn.00434040
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41b920
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 0x41b95b
xor eax, eax
jmp 0x41b9fd
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 0x41b9d3
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x13c]
call fcn.00405130
test eax, eax
jne 0x41b9bc
mov dword [ebp - 0x138], 1
jmp 0x41b9d3
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41b99a
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.0041cea0
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 4]
call fcn.00434040
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x41c900
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 0x41c914
jmp 0x41c938
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 0x41c938
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 0xc], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x41fa90
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 0x41faa9
mov ecx, dword [ebp - 0x10]
call fcn.0041ffe0
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 0x41fae2
xor eax, eax
jmp 0x41fc1e
push 8
push 0x45836c
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
call fcn.00433890
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 0x41fb7e
jmp 0x41fbdd
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.004203a0
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 0x41fbbf
jmp 0x41fbdd
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 0x41fab0
cmp dword [ebp - 4], 0
jne 0x41fc03
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x40], 0xffffffff
je 0x41fc03
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.004203f0
mov ecx, dword [ebp - 0x10]
call fcn.00420440
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x420060
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 0x420078
xor eax, eax
jmp 0x420166
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 0x420112
push 0
call fcn.00426b70
add esp, 4
movzx eax, al
test eax, eax
jne 0x4200e5
jmp 0x42010e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Read
push 0xf7
push 0x4585bc
push 0
call fcn.00426b90
add esp, 0xc
push eax
call fcn.00426ad0
add esp, 0xc
xor eax, eax
jmp 0x420166
mov dword [ebp - 8], 0
jmp 0x420124
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 0x420161
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 0x42015f
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0xc]
add ecx, 0x30
call fcn.00406c60
mov byte [eax], 0
jmp 0x42011b
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x420170
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 0x420188
xor eax, eax
jmp 0x4202b1
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 0x420219
push 0
call fcn.00426b70
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x4201e9
jmp 0x420212
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Write_
push 0x117
push 0x458608
push 0
call fcn.00426b90
add esp, 0xc
push eax
call fcn.00426ad0
add esp, 0xc
xor eax, eax
jmp 0x4202b1
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 0x4202ac
push 0
call fcn.00426b70
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x42027f
jmp 0x4202a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CBitmapFile::Write_BITMAP
push 0x11f
push str.OnlineSetupV2CommonBitmapFile.cpp
push 0
call fcn.00426b90
add esp, 0xc
push eax
call fcn.00426ad0
add esp, 0xc
xor eax, eax
jmp 0x4202b1
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x426390
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453216
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 0x4263be
xor eax, eax
jmp 0x426508
push 1
mov ecx, dword [ebp - 0x3c]
add ecx, 0x50
push ecx
lea ecx, [ebp - 0x18]
call fcn.0042a8c7
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
call fcn.00420b60
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jg 0x426405
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00409d20
mov eax, dword [ebp - 0x30]
jmp 0x426508
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 0x4264b5
push 0
call fcn.00426b70
add esp, 4
movzx edx, al
test edx, edx
jne 0x426465
jmp 0x42649a
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.00426b90
add esp, 0xc
push eax
call fcn.00426ad0
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 0x426508
push 0xff
mov ecx, dword [ebp - 0x3c]
call fcn.00420b60
cdq
push edx
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00434da0
push eax
mov ecx, dword [ebp - 0x3c]
call fcn.00420320
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.004202c0
mov ecx, dword [ebp - 0x3c]
call fcn.00420170
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