joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push esi
push edi
push 0
call ebx
cdq
sub eax, edx
mov esi, eax
push 1
sar esi, 1
call ebx
cdq
sub eax, edx
push 0x65
mov edi, eax
push 0
sar edi, 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 0x1c]
push ecx
push 0x18
push eax
mov dword [0x4196f8], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
push 0x20
call ebx
mov edx, dword [ebp - 0x18]
lea eax, [edx + eax*2]
push 0x21
mov dword [ebp - 4], eax
call ebx
mov ecx, dword [ebp - 0x14]
push 0
push 0
push 0
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 4]
push 0
push eax
cdq
sub eax, edx
sar eax, 1
sub edi, eax
mov eax, ecx
cdq
push ecx
sub eax, edx
mov edx, dword [section..data]
push edi
sar eax, 1
sub esi, eax
push esi
push 0x90000000
push str.Splash
push edx
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 1
push eax
mov dword [0x419700], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x419700]
push 3
push 0
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x419700]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [0x419700]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
call fcn.00402a00
test eax, eax
jne 0x403183
mov eax, dword [ebp + 8]
mov ecx, dword [section..data]
push esi
xor esi, esi
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x402ff0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ecx
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x403182
lea eax, [ebp - 8]
push eax
push esi
lea ecx, [ebp - 4]
push ecx
push 0x402ee0
push esi
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4196fc], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403260
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push esi
call fcn.00402a30
mov esi, eax
call fcn.00402b90
push eax
push esi
push str._s_bin_s
lea eax, [ebp - 0x260]
push 0x104
push eax
call fcn.00403230
mov ecx, dword [str.VCRT_check.exe]
push ecx
lea edx, [ebp - 0x260]
push edx
push str._s_s
lea eax, [ebp - 0x468]
push 0x104
push eax
call fcn.00403230
push 0x44
lea ecx, [ebp - 0x58]
push 0
push ecx
call fcn.004036f0
add esp, 0x34
xor eax, eax
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x260]
push ecx
push 0
push 0x8000000
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x468]
push edx
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop esi
je 0x40332f
mov eax, dword [ebp - 0x14]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov dword [ebp - 4], eax
jne 0x40332f
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x403335
xor eax, eax
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp dword [ebp - 4], eax
sete al
mov esp, ebp
pop ebp
ret

Function at 0x403350
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push esi
call fcn.00402a30
mov esi, eax
call fcn.00402b90
push eax
push esi
push str._s_bin_s
lea eax, [ebp - 0x260]
push 0x104
push eax
call fcn.00403230
mov ecx, dword [str.vcredist_x86.exe]
push ecx
lea edx, [ebp - 0x260]
push edx
push str._s_s
lea eax, [ebp - 0x468]
push 0x104
push eax
call fcn.00403230
push 0x44
lea ecx, [ebp - 0x58]
push 0
push ecx
call fcn.004036f0
add esp, 0x34
xor eax, eax
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x260]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x468]
push edx
mov dword [ebp - 0x58], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403423
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 4], 0x103
cmp dword [ebp - 4], 0x103
jne 0x403422
push 1
call esi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 4]
push eax
push ecx
call edi
test eax, eax
jne 0x403407
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403655
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x403682
call fcn.00403b09
mov dword [eax], esi
call fcn.00403af6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00404d1c
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x40365e
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4036b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403b1c
pop ecx
call fcn.00403af6
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4036d8
test al, 1
je 0x4036d8
test byte [esp + 0xc], 2
je 0x4036d8
call fcn.00403b09
mov dword [eax], 5
call fcn.00403af6
mov dword [eax], 0xd
jmp 0x4036a8
xor eax, eax
pop esi
ret
Function at 0x40673d
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4171a0]
je 0x406758
inc edi
cmp edi, 0x17
jb 0x406749
cmp edi, 0x17
jae 0x4068d8
push ebp
push 3
call fcn.0040c0ce
cmp eax, 1
pop ecx
je 0x4068a4
push 3
call fcn.0040c0ce
test eax, eax
pop ecx
jne 0x40678c
cmp dword [0x417190], 1
je 0x4068a4
cmp ebx, 0xfc
je 0x4068d7
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x419770
push ebp
call fcn.0040c069
add esp, 0xc
test eax, eax
je 0x4067c2
push esi
push esi
push esi
push esi
push esi
call fcn.00404c20
add esp, 0x14
push 0x104
mov esi, 0x419789
push esi
push 0
mov byte [0x41988d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406806
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040c069
add esp, 0xc
test eax, eax
je 0x406806
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404c20
add esp, 0x14
push esi
call fcn.0040b9a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40684b
push esi
call fcn.0040b9a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x419a84
push 0x4150dc
sub ecx, eax
push ecx
push eax
call fcn.0040bfb6
add esp, 0x14
test eax, eax
je 0x40684b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404c20
add esp, 0x14
jmp 0x40684d
xor esi, esi
push 0x4150d8
push ebx
push ebp
call fcn.0040bf45
add esp, 0xc
test eax, eax
je 0x40686d
push esi
push esi
push esi
push esi
push esi
call fcn.00404c20
add esp, 0x14
push dword [edi*8 + 0x4171a4]
push ebx
push ebp
call fcn.0040bf45
add esp, 0xc
test eax, eax
je 0x40688f
push esi
push esi
push esi
push esi
push esi
call fcn.00404c20
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040bd88
add esp, 0xc
jmp 0x4068d7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4068d7
cmp ebp, 0xffffffff
je 0x4068d7
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4171a4]
push dword [esi]
call fcn.0040b9a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4088b5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41743c]
jne 0x4088bf
repz ret
jmp fcn.0040e056
Function at 0x40bd88
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040625b
xor ebx, ebx
cmp dword [0x419d74], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40be5e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40bf3e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40bf3e
push eax
call fcn.004061ed
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x419d74], eax
call esi
push eax
call fcn.004061ed
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x419d78], eax
call esi
push eax
call fcn.004061ed
mov dword [0x419d7c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00403813
test eax, eax
pop ecx
pop ecx
je 0x40be2c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404c20
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40be5e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004061ed
cmp eax, ebx
pop ecx
mov dword [0x419d84], eax
je 0x40be5e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004061ed
pop ecx
mov dword [0x419d80], eax
mov eax, dword [0x419d80]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40bee3
cmp dword [0x419d84], ecx
je 0x40bee3
push eax
call fcn.00406264
push dword [0x419d84]
mov esi, eax
call fcn.00406264
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40bee3
cmp edi, ebx
je 0x40bee3
call esi
cmp eax, ebx
je 0x40beb0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40beb0
test byte [ebp - 0x18], 1
jne 0x40bee3
lea eax, [ebp - 0x10]
push eax
call fcn.0040384a
test eax, eax
pop ecx
je 0x40becb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404c20
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40beda
or dword [ebp + 0x10], 0x200000
jmp 0x40bf1e
or dword [ebp + 0x10], 0x40000
jmp 0x40bf1e
mov eax, dword [0x419d78]
cmp eax, dword [ebp - 8]
je 0x40bf1e
push eax
call fcn.00406264
cmp eax, ebx
pop ecx
je 0x40bf1e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40bf1e
mov eax, dword [0x419d7c]
cmp eax, dword [ebp - 8]
je 0x40bf1e
push eax
call fcn.00406264
cmp eax, ebx
pop ecx
je 0x40bf1e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x419d74]
call fcn.00406264
cmp eax, ebx
pop ecx
je 0x40bf3e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bf40
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43cfe0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x484338
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.004378e0
test eax, eax
je 0x43d0e8
lea ecx, [esp + 0xc]
call fcn.0040f870
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.004378e0
mov ecx, eax
call fcn.00435070
test eax, eax
je 0x43d0cf
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x43d0cf
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x43d0cf
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0040fa70
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x43d0b1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x43d0cf
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4d0fe8]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x4a19d8
call fcn.0040fa70
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x43fdc0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4845c8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x43fdf9
inc eax
mov dword [esi + 0x10], eax
jmp 0x43ff0c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43fe0d
mov eax, 0xffffffc7
jmp 0x43ff0e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43fe1e
cmp dword [esi + 8], eax
jne 0x43fe0d
cmp dword [esi + 8], eax
jne 0x43fe37
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x43fe37
mov eax, 0xffffffc7
jmp 0x43ff0e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43fe4b
push eax
mov ecx, ebx
call fcn.0043f5f0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.0040f870
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43fe7c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.0040f890
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0043ed60
test eax, eax
mov dword [esp + 0x38], eax
je 0x43feaf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4a19d8
call fcn.0040fa70
mov eax, dword [esp + 0x38]
jmp 0x43ff0e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0043fc20
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x43fef3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0043fc40
mov esi, eax
test esi, esi
jne 0x43ff23
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0043fc20
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x43fec5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4a19d8
call fcn.0040fa70
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x4a19d8
call fcn.0040fa70
mov eax, esi
jmp 0x43ff0e

Function at 0x443030
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x443090
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x443090
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x443090
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x443090
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4430d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4020e0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [ecx + 0x80]
sub esp, 0x100
test al, 0x50
jne 0x402128
test al, 0xa0
jne 0x4020fd
xor eax, eax
add esp, 0x100
ret
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push 0x42f0f8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40214a
xor eax, eax
add esp, 0x100
ret
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push str..ROCKEY9X
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40215d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x100
ret
lea eax, [esp]
push 0xff
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str._rockey9x.vxd
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp]
push 0
push edx
call fcn.0040cbcd
add esp, 8
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add esp, 0x100
ret

Function at 0x402210
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x120
push ebx
push ebp
push esi
push edi
call fcn.00421eff
mov eax, dword [eax + 4]
push str.DFILE
mov esi, dword [eax + 0x68]
mov eax, dword [esp + 0x138]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40224a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x402265
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40227c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
jne 0x402294
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
mov edi, dword [esp + 0x138]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x402301
lea ecx, [esp + 0x18]
push ecx
push edi
call fcn.0041e445
lea edx, [esp + 0x18]
mov byte [esp + 0x28], 0
push edx
push edi
call fcn.0041e5aa
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x402301
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402324
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x120
ret
cmp edi, dword [esp + 0x10]
je 0x402337
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x120
ret
Function at 0x402df0
Capabilities:
Delete registry key
Get common file path

Disassembly:
sub esp, 0x140
mov ecx, dword [0x42f1b0]
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
mov ecx, 0xb
mov esi, 0x42f17c
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [str.Rockey9x.vxd]
mov edx, dword [0x42f1b4]
movsw word es:[edi], word [esi]
mov dword [esp + 0xc], eax
mov al, byte [0x42f1b8]
lea ecx, [esp + 0x4c]
push 0xc8
push ecx
mov dword [esp + 0x1c], edx
mov byte [esp + 0x20], al
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x42f178
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
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 edx, [esp + 0x4c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
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]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x4c]
push 0x180
push ecx
call fcn.0040c97f
lea edx, [esp + 0x54]
push edx
call fcn.0040c955
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x140
ret
Function at 0x40c97f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40c9aa
test byte [esp + 8], 0x80
je 0x40c999
and al, 0xfe
jmp 0x40c99b
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40c9bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ea55
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x40cbcd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40cbed
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040ea55
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40cc10
test byte [esp + 8], 2
je 0x40cc10
call fcn.0040eac8
mov dword [eax], 0xd
call fcn.0040ead1
mov dword [eax], 5
jmp 0x40cbe9
xor eax, eax
ret

Function at 0x411655
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x430a18
cmp edx, dword [eax]
je 0x411677
add eax, 8
inc ecx
cmp eax, 0x430aa8
jl 0x411668
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x430a18]
jne 0x4117a5
mov eax, dword [0x43346c]
cmp eax, 1
je 0x41177f
test eax, eax
jne 0x4116a8
cmp dword [0x4301f4], 1
je 0x41177f
cmp edx, 0xfc
je 0x4117a5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4116df
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00411c70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004118f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x411722
lea eax, [ebp - 0x1a4]
push eax
call fcn.004118f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42f0d4
push edi
call fcn.00412af0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00411c70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00411c80
lea eax, [ebp - 0xa0]
push 0x428eec
push eax
call fcn.00411c80
push dword [esi + 0x430a1c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00411c80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00413187
add esp, 0x2c
pop edi
jmp 0x4117a5
lea eax, [ebp + 8]
lea esi, [esi + 0x430a1c]
push 0
push eax
push dword [esi]
call fcn.004118f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4184c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040cd20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41858b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41858b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41853e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418549
or bh, 8
and edi, 0x8000000
je 0x418564
mov eax, dword [0x434c1c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41858b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret