joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405430
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x45b578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], 0x460030
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], ebp
mov esi, dword [edi + 0x48]
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x1c]
call fcn.004051a0
lea ebx, [edi + 0x40]
push 0xffffffffffffffff
lea eax, [esi + esi]
push eax
mov ecx, ebx
mov dword [esp + 0x18], ebx
call fcn.00404ed0
xor eax, eax
cmp esi, ebp
mov ebp, dword [esp + 0x18]
jle 0x4054b1
xor ecx, ecx
jmp 0x4054a0
mov edx, dword [edi + 0x44]
add edx, ecx
mov dword [ebp + eax*4], edx
inc eax
add ecx, 0x14
cmp eax, esi
jl 0x4054a0
push 0x403bc0
push 4
push esi
push ebp
call fcn.0042e380
add esp, 0x10
xor eax, eax
test esi, esi
jle 0x405505
lea ecx, [esi + esi*4]
shl ecx, 2
mov edi, edi
mov ebx, dword [ebp + eax*4]
mov ebp, dword [ebx]
mov edx, dword [edi + 0x44]
add edx, ecx
mov dword [edx], ebp
mov ebp, dword [ebx + 4]
mov dword [edx + 4], ebp
mov ebp, dword [ebx + 8]
mov dword [edx + 8], ebp
mov ebp, dword [ebx + 0xc]
mov dword [edx + 0xc], ebp
mov ebx, dword [ebx + 0x10]
mov ebp, dword [esp + 0x18]
inc eax
add ecx, 0x14
cmp eax, esi
mov dword [edx + 0x10], ebx
jl 0x4054d0
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 8]
sub eax, esi
je 0x405526
mov ecx, dword [ebx + 4]
lea eax, [eax + eax*4]
shl eax, 2
push eax
lea edx, [esi + esi*4]
lea eax, [ecx + edx*4]
push eax
push ecx
call fcn.0042dfd0
add esp, 0xc
sub dword [ebx + 8], esi
mov dword [esp + 0x30], 0xffffffff
test ebp, ebp
mov dword [esp + 0x14], 0x460030
je 0x405546
push ebp
call fcn.0042da87
add esp, 4
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret

Function at 0x407a60
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x20
push esi
push edi
mov edi, dword [esp + 0x2c]
push eax
mov ecx, edi
call fcn.0044c3e0
mov esi, eax
cmp dword [edi], 0
je 0x407acd
push 0x20
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x10
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.0042da70
mov ecx, dword [esp + 0x3c]
mov esi, eax
mov al, byte [ecx]
add esp, 0xc
test al, al
je 0x407abf
push 0
push 0
push str.Enter_haxadecimal_number
call fcn.0044bd00
mov ecx, edi
call fcn.0044c220
mov edx, dword [esp + 0x34]
pop edi
mov dword [edx], esi
pop esi
add esp, 0x20
ret 0xc
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0xc]
push str._08X
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 8]
push eax
push esi
call fcn.00446600
pop edi
pop esi
add esp, 0x20
ret 0xc
Function at 0x407c90
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push edi
xor edi, edi
cmp eax, edi
je 0x407ca8
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], edi
mov eax, dword [esi + 8]
cmp eax, edi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x407cbb
push eax
call ebx
mov dword [esi + 8], edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x407ccd
push eax
call ebx
mov dword [esi + 4], 0xffffffff
mov eax, dword [esp + 0x10]
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push eax
mov dword [esi + 0x10], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x407d2c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
mov dword [esi + 0x10], eax
je 0x407d2c
mov ecx, dword [esi + 4]
push edi
push eax
push edi
push 2
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 8], eax
je 0x407d2c
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x407d67
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x407d3d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0xc], edi
mov eax, dword [esi + 8]
cmp eax, edi
je 0x407d4a
push eax
call ebx
mov dword [esi + 8], edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x407d5c
push eax
call ebx
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x10], edi
pop edi
pop esi
xor eax, eax
pop ebx
ret 4
pop edi
pop esi
mov eax, 1
pop ebx
ret 4
Function at 0x409ce6
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x45b908
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x98]
test eax, eax
jne 0x409e15
mov eax, dword [esi + 0x78]
cmp eax, dword [esi + 0x7c]
je 0x409e15
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x409e15
mov edx, dword [0x47558c]
push ebx
push edi
mov dword [esp + 0xc], edx
mov dword [esp + 0x18], 0
mov ecx, dword [esi + 0x78]
mov ebx, dword [esi + 0x7c]
mov eax, dword [esi + 0x90]
sub ebx, ecx
test eax, eax
lea ecx, [esp + 0xc]
je 0x409d65
lea eax, [ebx + 1]
push eax
call fcn.00441b80
mov ecx, dword [esi + 0x40]
mov esi, dword [esi + 0x78]
add esi, ecx
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
jmp 0x409da0
lea eax, [ebx + ebx*2 + 1]
push eax
call fcn.00441b80
mov edi, eax
mov eax, dword [esi + 0x40]
mov esi, dword [esi + 0x78]
add esi, eax
test ebx, ebx
jle 0x409d9b
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
movzx ecx, byte [esi]
push ecx
push str._02X
push edi
call ebp
add esp, 0xc
add edi, 3
inc esi
dec ebx
jne 0x409d84
pop ebp
mov byte [edi], 0
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.00441c00
mov edx, dword [esp + 0xc]
mov eax, dword [edx - 8]
test eax, eax
je 0x409dfc
inc eax
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x409dfc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, dword [esp + 0xc]
mov ecx, dword [esi - 8]
inc ecx
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00441820
pop edi
pop ebx
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40b7a0
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 8]
and ebx, 0x800
push edi
je 0x40b7ba
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x28]
je 0x40b7c2
jmp 0x40b7f4
mov ecx, dword [esi + 0xc]
cmp ecx, dword [esi + 0x28]
je 0x40b83c
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b7f0
push 0
push 3
push str.Strange_file_attributes_size_nAssume_compressed_
call fcn.0044bd00
cmp eax, 2
jne 0x40b7e8
pop edi
pop esi
mov eax, 1
pop ebx
ret 8
xor ebx, ebx
cmp eax, 6
sete bl
test ebx, ebx
je 0x40b83c
mov edx, dword [esi + 0xc]
push edx
call fcn.0042da8c
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x34]
push 0x1000
push 1
mov edi, eax
mov eax, dword [esi + 0xc]
push 0
push eax
push edi
push ecx
push edx
call sub.COMPRESS.DLL_Ordinal_2
mov ecx, dword [esi + 0xc]
add esp, 0x20
cmp eax, ecx
je 0x40b83f
mov edx, dword [esi + 0x38]
inc edx
push edi
mov dword [esi + 0x38], edx
call fcn.0042da87
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b86a
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0xc]
jne 0x40b86a
mov esi, 1
jmp 0x40b86c
xor esi, esi
test ebx, ebx
je 0x40b879
push edi
call fcn.0042da87
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x40b890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45badb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, ecx
mov ecx, dword [0x47558c]
push esi
mov dword [esp + 4], eax
mov dword [eax + 4], ecx
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 8], ecx
mov dword [eax], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x38], ecx
xor edx, edx
lea esi, [eax + 0x10]
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [eax + 0x3c], ecx
or ecx, 0xffffffff
mov dword [eax + 0x40], ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40d1a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45bbb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push esi
mov esi, ecx
mov ax, word [esi + 0x48]
cmp ax, 0x1c0
mov dword [esp + 0x10], esi
je 0x40d1d3
cmp ax, 0x1c2
jne 0x40d3ca
test byte [esi + 0x5b], 0x20
je 0x40d3ca
push edi
push 0x64
lea ecx, [esp + 0x30]
call fcn.0040c060
xor edi, edi
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x58]
push eax
lea ecx, [esp + 0x30]
push ecx
mov ecx, esi
call fcn.0040fc80
cmp dword [esp + 0x38], edi
je 0x40d3b8
lea ecx, [esp + 0x18]
call fcn.0043afd0
mov byte [esp + 0x50], 1
mov edx, dword [esp + 0x38]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x20]
call fcn.0043add0
mov eax, dword [esp + 0x38]
neg eax
sbb eax, eax
cmp eax, edi
mov dword [esp + 8], eax
je 0x40d26e
xor esi, esi
lea ebx, [ebx]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x38]
call fcn.0043bfa0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax], ecx
mov eax, dword [esp + 8]
add esi, 4
cmp eax, edi
jne 0x40d240
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push 0x40bf60
push 4
push edx
push eax
call fcn.0042e380
push str.BASE_RELOCATIONS_
push 0x4753e0
call fcn.0040bd00
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
lea ebp, [edx + 1]
add esp, 0x18
xor ebx, ebx
and eax, 0xfffff000
xor esi, esi
test ebp, ebp
mov dword [esp + 0x14], edx
jbe 0x40d35e
lea ebx, [ebx]
cmp esi, dword [esp + 0x14]
je 0x40d2d7
mov edx, dword [ecx + esi*4]
and edx, 0xfffff000
cmp edx, eax
je 0x40d354
lea ecx, [ebx + 1]
and ecx, 0xfffffffe
lea edx, [ecx + ecx + 8]
push edx
push eax
push str._8X_RVA___8X__SizeOfBlock
push 0x4753e0
call fcn.0040bd00
add esp, 0x10
cmp edi, esi
jae 0x40d325
lea esp, [esp]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + edi*4]
and ecx, 0xfff
push ecx
push str._8X_HIGHLOW
push 0x4753e0
call fcn.0040bd00
add esp, 0xc
inc edi
cmp edi, esi
jb 0x40d300
test bl, 1
je 0x40d33e
push 0
push str._8X_ABS
push 0x4753e0
call fcn.0040bd00
add esp, 0xc
cmp esi, dword [esp + 0x14]
je 0x40d35e
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + esi*4]
and eax, 0xfffff000
mov edi, esi
xor ebx, ebx
inc esi
inc ebx
cmp esi, ebp
jb 0x40d2c0
push str.
push 0x4753e0
call fcn.0040bd00
mov eax, dword [esp + 0x30]
add esp, 8
xor esi, esi
test eax, eax
pop ebp
pop ebx
jbe 0x40d3aa
lea esp, [esp]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + esi*4]
mov ecx, dword [esp + 0x14]
add eax, dword [ecx + 0x78]
push eax
push str._08X
push 0x4753e0
call fcn.0040bd00
mov eax, dword [esp + 0x2c]
add esp, 0xc
inc esi
cmp esi, eax
jb 0x40d380
mov byte [esp + 0x50], 0
lea ecx, [esp + 0x18]
call fcn.0043aff0
mov dword [esp + 0x50], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.0043c060
pop edi
mov ecx, dword [esp + 0x44]
pop esi
mov dword fs:[0], ecx
add esp, 0x4c
ret 4
Function at 0x40da60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bc00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, ecx
call fcn.0040d890
push 0
push 0
push 0
mov ebx, dword [ebp + 8]
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call esi
mov dword [ebp - 4], 0
push 0
push 0x40
lea eax, [ebp - 0x6c]
push eax
push ebx
call fcn.00403b70
cmp word [ebp - 0x6c], 0x5a4d
jne 0x40dbd8
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x40dbd8
cmp eax, 0x400
jg 0x40dbd8
push 0
push 0
push eax
push ebx
call esi
lea esi, [edi + 0x44]
push 0
push 0xf8
push esi
push ebx
call fcn.00403b70
cmp dword [esi], 0x4550
jne 0x40dbd8
movzx eax, word [edi + 0x58]
sub eax, 0xe0
mov dword [ebp - 0x20], eax
je 0x40db10
push 1
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ax, word [edi + 0x4a]
cmp ax, 0x20
ja 0x40dbd8
push 0xffffffffffffffff
movzx ecx, ax
push ecx
lea ecx, [edi + 0x13c]
call fcn.004063c0
mov esi, dword [edi + 0x140]
mov dword [ebp - 0x18], esi
mov eax, dword [edi + 0x144]
mov dword [ebp - 0x24], eax
imul eax, eax, 0x4c
add eax, esi
mov dword [ebp - 0x14], eax
lea esp, [esp]
cmp esi, dword [ebp - 0x14]
jae 0x40db68
push 0
push 0x28
push esi
push ebx
call fcn.00403b70
add esi, 0x4c
mov dword [ebp - 0x18], esi
jmp 0x40db50
mov esi, dword [edi + 0x140]
mov dword [ebp - 0x1c], esi
mov edi, dword [edi + 0x144]
mov dword [ebp - 0x28], edi
imul edi, edi, 0x4c
add edi, esi
mov dword [ebp - 0x2c], edi
cmp esi, edi
jae 0x40dbb9
mov eax, dword [esi + 0x10]
test eax, eax
je 0x40dbb1
push 0
push 0
mov edx, dword [esi + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x10]
push 0
push eax
push eax
mov ecx, esi
call fcn.0040c0e0
push eax
push ebx
call fcn.00403b70
add esi, 0x4c
mov dword [ebp - 0x1c], esi
jmp 0x40db82
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40dbf4
push 0
push 0
push str.ERROR:_Invalid_file_format_
call fcn.0044bd00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x411bd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push esi
lea eax, [esp + 4]
push eax
mov esi, ecx
push 0x104
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x108]
push ecx
push 0
push 0x45fb8c
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x411c2f
push 0
push 0x4000100
push 2
push 0
push 0
push 0xc0000000
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
mov eax, esi
pop esi
add esp, 0x208
ret 4
Function at 0x426fb0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esi + 8], eax
jne 0x427008
cmp dword [esp + 8], 4
jne 0x427001
cmp dword [esp + 0xc], 4
je 0x427008
mov dword [esi + 8], 0xb
mov eax, dword [esp + 4]
pop esi
add esp, 0xc
ret

Function at 0x427020
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esi + 4]
inc eax
push eax
mov eax, dword [esi]
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edx, edx
test eax, eax
sete dl
mov dword [esi + 8], eax
pop edi
pop esi
mov eax, edx
ret 4

Function at 0x427060
Capabilities:
Set registry value

Disassembly:
push esi
push 4
lea eax, [esp + 0xc]
push eax
push 4
mov esi, ecx
mov ecx, dword [esi]
mov edx, dword [esi + 4]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 8], eax
pop esi
mov eax, ecx
ret 4

Function at 0x427090
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
push eax
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
mov eax, dword [esi + 4]
push ecx
push 3
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 8], eax
pop esi
mov eax, ecx
ret 8

Function at 0x4270c0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi]
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor edx, edx
test eax, eax
sete dl
mov dword [esi + 8], eax
pop esi
mov eax, edx
ret 8
Function at 0x427120
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45d2c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [esp + 0xc], 0
mov eax, dword [0x47558c]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 0x20], 1
mov eax, dword [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 4]
push 0
lea edx, [esp + 0x18]
push edx
push 0
push eax
push ecx
call edi
test eax, eax
mov dword [esi + 8], eax
jne 0x4271b3
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push edx
push eax
lea ecx, [esp + 0x10]
call fcn.00441b80
mov edx, dword [esi]
push eax
mov eax, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push 0
push edx
push eax
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
call fcn.00441c00
mov esi, dword [esp + 0x28]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00441cc0
mov dword [esp + 0x14], 1
mov byte [esp + 0x20], 0
lea ecx, [esp + 8]
call fcn.00441820
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x429500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45d588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00428b20
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 8], eax
call fcn.004419c0
mov edx, dword [esp + 0x34]
push edx
lea ecx, [esp + 0x10]
call fcn.004419c0
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
call fcn.004419c0
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esi + 0x58]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
lea ecx, [esi + 0x50]
lea edx, [esp + 4]
push edx
push eax
call fcn.004293a0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 4]
call fcn.00401210
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 0x18

Function at 0x42c040
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x50]
push 0x130b
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
je 0x42c0ad
mov ecx, dword [esi + 0x1c]
add eax, 0xe900
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.0043d270
mov edi, eax
test edi, edi
je 0x42c09c
mov eax, dword [esi + 0x78]
test eax, eax
je 0x42c0a1
push 0x46bc0c
mov ecx, edi
call fcn.00442290
test eax, eax
je 0x42c0a1
push 1
mov ecx, edi
call fcn.0043e270
test eax, eax
jne 0x42c0a1
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [edi + 0x1c]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, esi
call fcn.0043dee0
test eax, eax
je 0x42c0c3
push 1
push 0
mov ecx, eax
call fcn.00453e40
pop edi
mov eax, 1
pop esi
ret
Function at 0x42c840
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x477f34]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x42c86e
mov ecx, dword [0x477f28]
xor eax, eax
cmp ecx, ebx
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, 0x24
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp edx, 2
sete cl
push str.USER32
mov dword [0x477f38], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
cmp esi, ebx
je 0x42c943
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4695f4
push esi
call edi
cmp eax, ebx
mov dword [0x477f18], eax
je 0x42c943
push str.MonitorFromWindow
push esi
call edi
cmp eax, ebx
mov dword [0x477f1c], eax
je 0x42c943
push str.MonitorFromRect
push esi
call edi
cmp eax, ebx
mov dword [0x477f20], eax
je 0x42c943
push str.MonitorFromPoint
push esi
call edi
cmp eax, ebx
mov dword [0x477f24], eax
je 0x42c943
push str.EnumDisplayMonitors
push esi
call edi
cmp eax, ebx
mov dword [0x477f2c], eax
je 0x42c943
push str.GetMonitorInfoA
push esi
call edi
cmp eax, ebx
mov dword [0x477f28], eax
je 0x42c943
push str.EnumDisplayDevicesA
push esi
call edi
cmp eax, ebx
mov dword [0x477f30], eax
je 0x42c943
mov eax, 1
mov dword [0x477f34], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [0x477f18], ebx
mov dword [0x477f1c], ebx
mov dword [0x477f20], ebx
mov dword [0x477f24], ebx
mov dword [0x477f28], ebx
mov dword [0x477f2c], ebx
mov dword [0x477f30], ebx
mov dword [0x477f34], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42ec76
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x46c2c8
call fcn.004310ec
mov edi, 0x94
mov eax, edi
call fcn.0042df90
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x478778], ecx
mov eax, dword [esi + 4]
mov dword [0x478784], eax
mov edx, dword [esi + 8]
mov dword [0x478788], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x47877c], esi
cmp ecx, 2
je 0x42ecd6
or esi, 0x8000
mov dword [0x47877c], esi
shl eax, 8
add eax, edx
mov dword [0x478780], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x42ed11
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42ed11
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42ed29
cmp eax, 0x20b
je 0x42ed16
mov dword [ebp - 0x1c], esi
jmp 0x42ed3d
cmp dword [ecx + 0x84], 0xe
jbe 0x42ed11
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42ed37
cmp dword [ecx + 0x74], 0xe
jbe 0x42ed11
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00433780
pop ecx
test eax, eax
jne 0x42ed51
push 0x1c
call fcn.0042ec52
pop ecx
call fcn.00430b51
test eax, eax
jne 0x42ed62
push 0x10
call fcn.0042ec52
pop ecx
call fcn.004336de
mov dword [ebp - 4], esi
call fcn.004334e0
test eax, eax
jge 0x42ed7b
push 0x1b
call fcn.0042ec2d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x479ff0], eax
call fcn.004333be
mov dword [0x478768], eax
call fcn.0043331c
test eax, eax
jge 0x42eda1
push 8
call fcn.0042ec2d
pop ecx
call fcn.004330e9
test eax, eax
jge 0x42edb2
push 9
call fcn.0042ec2d
pop ecx
push 1
call fcn.0042f415
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x42edc8
push eax
call fcn.0042ec2d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043308c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x42ede9
movzx eax, word [ebp - 0x40]
jmp 0x42edec
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00438820
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x42ee0a
push edi
call fcn.0042f542
call fcn.0042f564
jmp 0x42ee3c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00431127
ret