joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485005
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x48511d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48511d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004a7741
mov esi, eax
test esi, esi
je 0x48511d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x48511d
mov ecx, esi
call fcn.00484f70
cmp edi, eax
jge 0x48511d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4850a3
mov dword [esp + 0x34], 1
jmp 0x4850fe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48511d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004837b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x489610
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x489676
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x489676
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x489657
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x489a00
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x489a38
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x48a660
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x48a6a9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x48ab20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b7090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0048a6d0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0048a750
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0048a750
lea ecx, [esi + 0xc]
call fcn.004a5c55
lea ecx, [esi + 0x10]
call fcn.004a5c55
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0048bce0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0048bce0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0048bce0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004a5cca
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004a5cca
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a80e4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a811c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004a6171
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004a6149
jmp 0x4a8128
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a97d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a981b
call fcn.004af7c4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a981b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a9812
xor eax, eax
jmp 0x4a9823
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a9829
pop edi
pop esi
pop ebx
ret 4

Function at 0x4afcf4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4afd22
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4afd40
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004afc5a
jmp 0x4afd40
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4afd40
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004afc5a
test edi, edi
mov eax, edi
jne 0x4afd2a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x40181c
Capabilities:
Hash data using murmur3

Disassembly:
ror ecx, 0x10
mov dword [ebp - 0x74], ecx
pop ebx
pop esi
pop edi
ret
push edi
push esi
push ebx
mov ebx, dword [ebp - 0x60]
test ebx, ebx
rol ebx, 0xf
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x20]
test ebx, eax
ror eax, 0x11
cmp ecx, eax
jne 0x4018d4
mov ecx, 0x200000
rol ecx, 0xd
add ebx, ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x24]
test edi, eax
rol eax, 0xc
cmp ecx, eax
jne 0x4018d4
mov ecx, 0x800000
ror ecx, 0x15
add ebx, ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x2c]
test edi, eax
rol eax, 0x12
cmp ecx, eax
jne 0x4018d4
mov ecx, 0x8000000
ror ecx, 0x19
add ebx, ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x38]
test esi, eax
ror eax, 0xc
cmp ecx, eax
jne 0x4018d4
mov ecx, 0x1000
ror ecx, 0xa
add ebx, ecx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
test esi, eax
rol eax, 0xf
cmp ecx, eax
jne 0x4018d4
jmp 0x401990
xor ecx, eax
xor esi, esi
mov edx, 0xff
ror edx, 8
jmp 0x401a00
cmp ecx, esi
je 0x401990
mov ecx, esi
jmp 0x401808
inc ecx
jmp 0x401808
mov edi, eax
and edi, edx
cmp edi, edx
jne 0x40197c
shl ecx, 8
shl eax, 8
jmp 0x401a00
Function at 0x401d2c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x22a], bl
jne 0x401e4f
cmp byte [esi + 0x539], bl
jne 0x401e4f
mov ax, word [esi + 0x5a8]
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push eax
push 0x6b
push 5
push dword [esi + 0x224]
call edi
cmp eax, ebx
jne 0x401da9
mov ax, word [esi + 0x5a8]
and ax, 0x3ff
or ah, 4
push eax
push 0x6b
push 5
push dword [esi + 0x224]
call edi
cmp eax, ebx
jne 0x401da9
push 5
push 0x6b
push dword [esi + 0x224]
call dword [sym.imp.KERNEL32.dll_FindResourceA_1]
cmp eax, ebx
je 0x401e4f
push eax
push dword [esi + 0x224]
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
push esi
push 0x401c94
push ebx
push eax
push dword [esi + 0x224]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
mov dword [esi + 0x540], eax
lea eax, [ebp - 0xc]
push eax
push 0x9003
mov ecx, esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00405a71
test al, al
je 0x401e2f
lea eax, [esi + 0x270]
lea ecx, [ebp - 0xc]
push eax
call fcn.00406c28
push eax
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
push 0x9102
push dword [esi + 0x540]
call dword [sym.imp.USER32.dll_SetDlgItemTextA_1]
lea ecx, [ebp - 0x14]
call fcn.004016cb
push dword [ebp - 0x18]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
lea ecx, [ebp - 8]
call fcn.004016cb
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403152
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x22f], bl
jne 0x4032e8
cmp byte [esi + 0x22b], bl
jne 0x4032e8
cmp byte [esi + 0x22e], bl
je 0x4032e8
cmp byte [esi + 0x228], bl
jne 0x4032e8
lea eax, [ebp - 0x270]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4032e8
lea eax, [ebp - 0x16c]
push eax
push ebx
lea eax, [ebp - 0x270]
push str.Setup
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA_1]
test eax, eax
je 0x4032e8
lea eax, [ebp - 0x16c]
push ebx
push eax
lea ecx, [esi + 0x240]
call fcn.00406c28
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4032e8
push edi
push ebx
push 0x4000000
push 3
push ebx
push 1
lea eax, [ebp - 0x16c]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA_1]
push 0x10
mov dword [ebp - 8], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x64]
push str.__clone_of_
rep stosd dword es:[edi], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x68], 0x44
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x24c]
mov dword [ebp - 0x10], ebx
push eax
mov dword [ebp - 4], eax
call edi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.0040171c
push 0x40a2f0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push eax
mov dword [ebp - 4], eax
call edi
push eax
lea ecx, [ebp - 0x14]
push dword [ebp - 4]
call fcn.0040171c
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [esi + 0x234]
push esi
call edi
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.0040171c
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
call fcn.00406c28
push eax
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA_1]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep_1]
lea ecx, [ebp - 0x10]
call fcn.004016cb
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x24]
call fcn.004032ee
cmp dword [ebp - 8], 0xffffffff
pop edi
je 0x4032e4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle_1]
mov al, 1
jmp 0x4032ea
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x4046f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
and byte [ebp - 0x148], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x147]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA_1]
test eax, eax
jne 0x40476c
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0xc], 0x104
mov eax, str.CommonFilesDir
je 0x40474c
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x148]
push ecx
push esi
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
cmp byte [ebp - 0x148], 0
je 0x4047b2
lea eax, [ebp - 0x148]
mov edi, 0x408240
push esi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], 0x408248
mov dword [ebp - 0x30], edi
call fcn.00405fb4
mov esi, 0x40823c
push 0x40a370
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 1
call fcn.004041c9
jmp 0x4047e3
lea eax, [ebp - 0x148]
mov edi, 0x408240
push esi
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 0x408248
mov dword [ebp - 0x14], edi
call fcn.00405fb4
mov esi, 0x40823c
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x408248
mov dword [ecx + 0x14], edi
call fcn.00406023
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x40480f
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x28]
call fcn.004060b3
test byte [ebp - 4], 1
je 0x40481d
lea ecx, [ebp - 0x44]
call fcn.004060b3
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x404823
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
and byte [ebp - 0x140], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
push 0x104
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA_1]
cmp byte [ebp - 0x140], 0
je 0x4048a2
lea eax, [ebp - 0x140]
mov edi, 0x408240
push esi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x408248
mov dword [ebp - 0xc], edi
call fcn.00405fb4
mov esi, 0x40823c
push 0x40a370
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 1
call fcn.004041c9
jmp 0x4048d3
lea eax, [ebp - 0x140]
mov edi, 0x408240
push esi
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x408248
mov dword [ebp - 0x28], edi
call fcn.00405fb4
mov esi, 0x40823c
mov dword [ebp - 4], 2
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x408248
mov dword [ecx + 0x14], edi
call fcn.00406023
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x4048ff
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x3c]
call fcn.004060b3
test byte [ebp - 4], 1
je 0x40490d
lea ecx, [ebp - 0x20]
call fcn.004060b3
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x405b58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA_1]
lea eax, [ebp - 4]
push edi
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, VariantInit
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x405bad
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x40a620
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405c08
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x405be2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push str.Locale
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp dword [ebp - 8], edi
je 0x405bf0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
cmp esi, edi
je 0x405c0a
cmp dword [ebp - 4], edi
je 0x405c02
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
mov ax, 0x409
jmp 0x405c27
xor edi, edi
lea eax, [ebp - 0x18]
push eax
call fcn.00407141
cmp dword [ebp - 4], edi
pop ecx
mov esi, eax
je 0x405c24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
mov ax, si
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405c2c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
lea eax, [ebp - 0x30]
mov ecx, dword [ebp + 8]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.004040f5
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x405c61
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.004060b3
mov ecx, dword [ebp + 8]
inc esi
push esi
lea eax, [ebp - 4]
push 1
push eax
mov dword [ebp - 4], 0x5c
call fcn.004064d9
cmp dword [0x408254], eax
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x405d8c
xor esi, esi
inc eax
push esi
push eax
push esi
lea ecx, [ebp - 0x30]
push dword [ebp + 8]
mov dword [ebp - 0x24], 0x408248
mov dword [ebp - 0x1c], 0x408240
mov dword [ebp - 0x14], eax
call fcn.00405e95
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x40823c
call fcn.004066f7
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405d60
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], eax
call fcn.004066f7
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405cf8
test al, 0x10
jne 0x405d60
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push 0x9011
call fcn.00405a71
lea ecx, [ebp - 0x30]
call fcn.00403bbb
mov esi, eax
mov ecx, esi
call fcn.004066f7
push dword [esi + 4]
lea ecx, [ebp - 0x10]
call fcn.00406c28
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [ebx + 0x580]
add esp, 0xc
push dword [esi]
call edi
lea eax, [ebp - 0x134]
push 0xffffffffffffffff
push eax
call fcn.0040168c
pop ecx
mov dword [esi], eax
pop ecx
push 0x488
mov ecx, ebx
push dword [ebp - 4]
call fcn.00405a4a
lea ecx, [ebp - 0x30]
call fcn.004060b3
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x5c
push 1
push eax
call fcn.004064d9
cmp dword [0x408254], eax
jne 0x405c92
lea ecx, [ebp - 0xc]
call fcn.004016cb
push dword [ebp - 0x10]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x42be10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
lea eax, [esp + 0x50]
push edi
mov esi, ecx
push eax
mov edi, edx
push esi
call dword [sym.imp.GDI32.dll_GetClipBox]
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
call edi
mov ebp, eax
push esi
mov dword [esp + 0x28], ebp
call edi
mov ebx, eax
mov edi, dword [esp + 0x78]
push edi
call fcn.0042bc40
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
sub edx, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3c]
push edx
sub eax, dword [esp + 0x38]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebp
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x10]
push 0
push ecx
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push edi
call fcn.0042bd40
mov ebp, eax
push edi
call fcn.0042bd60
push edi
mov dword [esp + 0x7c], eax
call fcn.0042bd80
push 0
push edi
push ebp
push 4
push edi
push esi
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov ebp, eax
push ebp
push ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
sub edx, edi
xor eax, eax
test edx, edx
jle 0x42bf84
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x78]
mov ebp, edx
mov dword [esp + 0x44], eax
add ecx, eax
sub ebp, edi
xor eax, eax
test ebp, ebp
mov dword [esp + 0x18], ecx
mov dword [esp + 0x4c], ecx
jle 0x42bf6c
mov edi, dword [esp + 0x14]
mov dword [esp + 0x48], eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0x64]
lea ebp, [eax + edi]
lea eax, [esp + 0x54]
push edx
push eax
push ecx
mov dword [esp + 0x5c], ebp
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x42bf56
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push 0xcc0020
push 0
push 0
push ebx
push edi
push edx
push eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ecx, edx
mov eax, ebp
sub ecx, edi
cmp eax, ecx
jl 0x42bf0d
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x34]
mov eax, ecx
mov ecx, dword [esp + 0x3c]
sub ecx, ebp
cmp eax, ecx
jl 0x42bef1
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x28]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x2c]
push 1
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x30]
push edx
call esi
push ebp
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 4
Function at 0x42cc00
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, edx
cmp word [esi], 3
jne 0x42cc20
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, edi
jmp 0x42cc2e
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
mov edx, edi
call fcn.0042ca10
test eax, eax
jne 0x42cc35
lea eax, [esi + 0x1c]
pop edi
pop esi
ret 8
Function at 0x42f0f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x42f14a
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push edx
push eax
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [esp + 0xc]
mov edx, dword [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 4

Function at 0x42f160
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [esp + 0x210]
push ebx
push ebp
mov ebp, edx
push edi
push ebp
mov edi, ecx
push 0
push eax
push edi
push 0x436240
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x42f256
mov ecx, edi
call fcn.0042d260
test eax, eax
jne 0x42f1ae
pop edi
pop ebp
pop ebx
add esp, 0x20c
ret 4
lea ecx, [esp + 0x10]
mov edx, 0x436238
push ecx
mov ecx, SysReAllocStringLen
call fcn.0042f0f0
test eax, eax
jne 0x42f25e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push 0x436224
push edx
call ebx
lea eax, [esp + 0x10]
lea edx, [esp + 0x10]
push eax
mov ecx, SysReAllocStringLen
call fcn.0042f0f0
test eax, eax
jne 0x42f25e
push esi
lea ecx, [esp + 0x14]
push 0x43621c
push ecx
call fcn.00434180
mov esi, eax
add esp, 8
test esi, esi
jne 0x42f235
lea edx, [esp + 0x14]
push 0x436218
push edx
call fcn.00434180
mov esi, eax
add esp, 8
test esi, esi
jne 0x42f235
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x42f238
mov byte [esi], 0
push 0x4360b4
push esi
call ebx
push edi
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
pop esi
jbe 0x42f25e
mov dword [esp + 0xc], 1
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
add esp, 0x20c
ret 4