joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402380
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x310
lea eax, [esp + 0x20c]
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xb
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [esp + 0x110]
lea edx, [esp + 0x110]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 8]
push ecx
push 2
push 0
push edx
push 0x80000002
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402413
lea eax, [esp + 0x214]
lea ecx, [esp + 0xc]
push eax
push str.__s_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 0xc]
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x18]
push str.lcfep
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x310
ret

Function at 0x402430
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub esp, 0x108
mov ecx, 0xb
lea eax, [esp]
push esi
push edi
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [esp + 0xc]
rep movsd dword es:[edi], dword [esi]
push eax
push 2
lea ecx, [esp + 0x14]
push 0
push ecx
push 0x80000002
movsw word es:[edi], word [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
test eax, eax
jne 0x402479
mov edx, dword [esp]
push str.lcfep
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x108
ret
Function at 0x402570
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
xor ebp, ebp
xor ebx, ebx
push str.SystemCurrentControlSetControlProductOptions
push 0x80000002
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x402645
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push ebp
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x402645
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x402645
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebp
je 0x402645
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edi
push edx
push ebp
push str.ProductSuite
push eax
call esi
test eax, eax
jne 0x402638
cmp dword [esp + 0x18], 7
jne 0x402638
mov al, byte [edi]
mov esi, edi
test al, al
je 0x402638
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push ebp
push esi
call ebx
test eax, eax
je 0x402630
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x402616
jmp 0x402638
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x402654
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x403163
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00401fcd
and dword [ebp - 4], 0
cmp dword [0x43d820], 0
mov ebx, eax
jne 0x403214
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4032c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4032c5
push eax
call fcn.00401f5b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43d820], eax
call esi
push eax
call fcn.00401f5b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43d824], eax
call esi
push eax
call fcn.00401f5b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43d828], eax
call esi
push eax
call fcn.00401f5b
pop ecx
mov dword [0x43d830], eax
test eax, eax
je 0x403214
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401f5b
pop ecx
mov dword [0x43d82c], eax
mov eax, dword [0x43d82c]
cmp eax, ebx
je 0x40326c
cmp dword [0x43d830], ebx
je 0x40326c
push eax
call fcn.00401fd6
push dword [0x43d830]
mov esi, eax
call fcn.00401fd6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40326c
test edi, edi
je 0x40326c
call esi
test eax, eax
je 0x403263
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x403263
test byte [ebp - 0xc], 1
jne 0x40326c
or dword [ebp + 0x10], 0x200000
jmp 0x4032a5
mov eax, dword [0x43d824]
cmp eax, ebx
je 0x4032a5
push eax
call fcn.00401fd6
pop ecx
test eax, eax
je 0x4032a5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4032a5
mov eax, dword [0x43d828]
cmp eax, ebx
je 0x4032a5
push eax
call fcn.00401fd6
pop ecx
test eax, eax
je 0x4032a5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43d820]
call fcn.00401fd6
pop ecx
test eax, eax
je 0x4032c5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4032c7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40512b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43b9f8]
jne 0x405135
repz ret
jmp fcn.00407605
Function at 0x4175d0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x4175dd
mov eax, 1
mov dword [esp + 4], eax
jmp fcn.00419a40

Function at 0x417df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x20], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
push edi
mov edi, dword [esp + 0xc]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 4], esi
cmp edi, eax
je 0x417e81
lea ecx, [edi + 0x18]
mov dword [esi + 8], edi
call fcn.0041a520
mov dword [esi + 0x10], eax
movzx eax, byte [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x24]
or dword [esi + 0xc], 0x40000000
pop edi
mov dword [esi + 0x24], ecx
mov eax, esi
pop esi
ret 4
mov dword [esi + 8], esi
mov dword [esi + 0xc], closesocket
call sub.KERNEL32.dll_GetCurrentThreadId
push str.NOINTERACT
mov dword [esi + 0x24], eax
call fcn.00408a52
add esp, 4
test eax, eax
je 0x417ea8
or dword [esi + 0xc], 1
push esi
push str.LIBCTX
call fcn.00416ee0
or dword [esi + 0xc], 0x40000000
add esp, 8
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x419a40
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [0x44f43c]
mov ecx, dword fs:[0x2c]
push ebx
push esi
push edi
mov edi, dword [ecx + eax*4]
mov esi, dword [edi + 8]
test esi, esi
jne 0x419a69
mov esi, dword [0x44f228]
mov dword [edi + 8], esi
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x419a78
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
test esi, esi
jne 0x419a97
call fcn.00419700
mov esi, dword [edi + 8]
test esi, esi
jne 0x419a97
mov esi, dword [0x44f228]
mov dword [edi + 8], esi
cmp esi, dword [0x44f340]
je 0x419aae
push ebx
push esi
call fcn.00419770
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret
lea edi, [ebx + 7]
shr edi, 3
cmp edi, dword [esi + 0x58]
jae 0x419ad6
mov edx, dword [esi + 0x20]
cmp dword [edx + edi*4], 0
lea eax, [edx + edi*4]
je 0x419ad6
mov eax, dword [eax]
pop edi
pop esi
pop ebx
add esp, 4
mov dword [esp + 4], eax
jmp fcn.00418cc0
lea ebx, [edi*8]
push ebp
cmp ebx, 0x400
jae 0x419b7b
cmp dword [0x44f338], 0
je 0x419b7b
cmp dword [esi + 0x48], 0
jne 0x419b7b
mov eax, dword [esi + 0x18]
test eax, eax
je 0x419b59
cmp dword [0x44f344], 0
je 0x419b59
push eax
mov ebp, 1
call fcn.0041a930
add esp, 4
push ebx
push esi
call fcn.00419230
add esp, 8
cmp edi, dword [esi + 0x58]
jae 0x419b5d
mov ecx, dword [esi + 0x20]
cmp dword [ecx + edi*4], 0
je 0x419b5d
test ebp, ebp
je 0x419b43
mov edx, dword [esi + 0x18]
push edx
call fcn.0041a970
add esp, 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + edi*4]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
mov dword [esp + 4], ecx
jmp fcn.00418cc0
xor ebp, ebp
jmp 0x419b1b
cmp dword [0x44f35c], 0
je 0x419b6b
call fcn.00418a30
test ebp, ebp
je 0x419b7b
mov edx, dword [esi + 0x18]
push edx
call fcn.0041a970
add esp, 4
lea eax, [ebx + 8]
push eax
mov dword [esp + 0x14], eax
call fcn.004056c9
mov edi, eax
add esp, 4
test edi, edi
jne 0x419bbc
mov esi, 1
push str._Serious_error___out_of_virtual_memory._n
mov dword [0x44f358], esi
call fcn.00414a30
add esp, 4
mov dword [0x44f358], esi
call fcn.00418a50
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
lea eax, [edi + 8]
mov dword [esp + 0x18], eax
mov dword [edi + 4], ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x419c1a
cmp dword [0x44f344], 0
je 0x419c1a
push eax
mov ebp, 1
call fcn.0041a930
add esp, 4
cmp dword [esi + 0x5c], 0
jne 0x419bfa
mov ecx, dword [esp + 0x18]
push ebx
push 0
push ecx
call fcn.004053b0
add esp, 0xc
mov edx, dword [0x44f228]
cmp dword [edx + 0x54], 0
je 0x419c1e
mov eax, dword [esp + 0x18]
push 0x437b44
push eax
call fcn.00418b50
add esp, 8
jmp 0x419c20
xor ebp, ebp
jmp 0x419be4
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
add dword [esi + 0x60], ebx
add dword [esi + 0x64], ecx
inc dword [esi + 0x68]
test ebp, ebp
je 0x419c3f
mov edx, dword [esi + 4]
push edx
call fcn.0041a970
add esp, 4
mov eax, dword [esp + 0x18]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41aab0
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x433f4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push 0x5c
call fcn.00417630
add esp, 4
mov dword [esp + 4], eax
xor esi, esi
mov dword [esp + 0x10], esi
cmp eax, esi
je 0x41aaed
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, eax
call fcn.0041a580
mov esi, eax
mov edx, dword [0x44f1f4]
mov eax, dword [edx + 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x41ad40
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x44f1f4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x41ad59
mov eax, 0x21
ret
cmp dword [esp + 0xc], 0
jne 0x41ad73
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
push edx
push ecx
lea ecx, [eax + 0x20]
call fcn.004177f0
ret
push 0
mov ecx, eax
call fcn.0041ab10
test eax, eax
je 0x41ad53
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
push edx
push ecx
lea ecx, [eax + 0xc]
call fcn.004177f0
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x422e1d
call fcn.00402ba8
mov dword [eax], esi
call fcn.00402b95
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00402b2d
add esp, 0x14
push 0x16
pop eax
jmp 0x422e72
test dword [ebp + 0xc], 0xfffffff9
jne 0x422df9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x422e4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402bbb
pop ecx
call fcn.00402b95
mov eax, dword [eax]
jmp 0x422e72
test al, 0x10
jne 0x422e70
test al, 1
je 0x422e70
test byte [ebp + 0xc], 2
je 0x422e70
call fcn.00402ba8
mov dword [eax], 5
call fcn.00402b95
mov dword [eax], 0xd
jmp 0x422e41
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4253fa
call fcn.00402ba8
mov dword [eax], esi
call fcn.00402b95
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00402b2d
add esp, 0x14
push 0x16
pop eax
jmp 0x42544f
test dword [ebp + 0xc], 0xfffffff9
jne 0x4253d6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x425427
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402bbb
pop ecx
call fcn.00402b95
mov eax, dword [eax]
jmp 0x42544f
test al, 0x10
jne 0x42544d
test al, 1
je 0x42544d
test byte [ebp + 0xc], 2
je 0x42544d
call fcn.00402ba8
mov dword [eax], 5
call fcn.00402b95
mov dword [eax], 0xd
jmp 0x42541e
xor eax, eax
pop esi
pop ebp
ret
Function at 0x409010
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46797b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045f76a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409092
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045a0ae
mov eax, dword [eax]
push 0x481bec
push eax
call fcn.0044c1ca
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045f9f5
test bl, bl
je 0x409092
push 0x481bec
lea ecx, [esp + 0xc]
call fcn.0045fd85
push 0x481bf8
lea ecx, [esp + 0xc]
call fcn.0045fd85
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4090ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045f9f5
jmp 0x409199
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x409152
lea edx, [esp + 0x7c]
push 0x481bf4
push edx
call fcn.0044c1ca
add esp, 8
test eax, eax
je 0x409152
lea eax, [esp + 0x7c]
push 0x481bf0
push eax
call fcn.0044c1ca
add esp, 8
test eax, eax
je 0x409152
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4090e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045f9f5
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4099c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409a22
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x409a30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4679fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4888f8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x409b68
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409a96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f9f5
xor eax, eax
jmp 0x409bdf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045fb32
push esi
lea ecx, [esp + 0xc]
call fcn.0045fdc1
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x409bbd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004099c0
test eax, eax
jne 0x409bbd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004099c0
test eax, eax
jne 0x409bbd
lea eax, [esp + 0x14]
push 0x481c10
push eax
call fcn.0044c660
mov esi, eax
add esp, 8
test esi, esi
jne 0x409b9c
lea ecx, [esp + 0x14]
push 0x481c0c
push ecx
call fcn.0044c5e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x409b9c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409b9f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045fae2
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409aae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045f9f5
xor eax, eax
jmp 0x409bdf
mov byte [esi], 0
push 0x481c08
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045f9f5
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41c730
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x468938
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x6c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x74]
push ecx
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.0041d2b0
lea edx, [esp + 0x18]
push eax
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [esp + 0x18]
xor edi, edi
xor ecx, ecx
cmp eax, edi
setl cl
dec ecx
xor edx, edx
and ecx, eax
mov eax, dword [esp + 0x1c]
cmp eax, edi
mov dword [esp + 0x18], ecx
setl dl
dec edx
and edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x41c7d9
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, eax
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0041c3c0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
push ecx
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push edi
lea ecx, [esp + 0x4c]
call fcn.0046350f
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], edi
call fcn.00432820
mov edx, dword [esp + 0x5c]
add esp, 0xc
lea ecx, [esp + 0x18]
push 2
push ecx
push edx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
lea edx, [esp + 0x38]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_IntersectRect]
mov esi, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x64], 0xffffffff
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x48]
call fcn.00463581
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 0x14
Function at 0x41cd10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468960
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push esi
push edi
mov esi, ecx
call fcn.0041a910
mov ebx, eax
test ebx, ebx
mov dword [esp + 0xc], ebx
jne 0x41cd69
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov ebx, eax
xor edx, edx
xor esi, esi
xor edi, edi
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
mov dword [ebx + 0xc], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
push ebp
mov ecx, ebx
call fcn.00424470
mov ebp, dword [esp + 0x70]
mov edi, eax
add edi, ebp
mov ecx, ebx
mov dword [esp + 0x28], edi
call fcn.00424460
mov edx, dword [esp + 0x74]
mov ecx, esi
add eax, edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
call fcn.0041c3c0
mov ebp, dword [eax]
lea edx, [esp + 0x38]
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x1c]
push eax
mov dword [esp + 0x24], ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x4c]
call fcn.0046350f
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x58]
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x70], 0
call fcn.00432820
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x18]
call fcn.0041a370
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x38]
push 2
push edx
push eax
mov byte [esp + 0x70], 1
call dword [sym.imp.GDI32.dll_DPtoLP]
mov ecx, ebx
call fcn.004243e0
mov ebx, eax
mov eax, edi
cmp eax, ebx
jge 0x41ce34
push edi
mov ecx, esi
call fcn.0041a480
push eax
push ebp
mov ecx, esi
call fcn.0041a640
cmp eax, dword [esp + 0x40]
jg 0x41ce30
inc edi
mov ebp, eax
cmp edi, ebx
jl 0x41ce0e
mov eax, ebx
jmp 0x41ce3a
cmp edi, ebx
jl 0x41ce38
mov eax, ebx
jmp 0x41ce3a
mov eax, edi
lea ecx, [eax - 1]
mov eax, dword [esp + 0x28]
cmp eax, ecx
jle 0x41ce4b
mov dword [esp + 0x30], eax
jmp 0x41ce56
cmp edi, ebx
jl 0x41ce51
mov edi, ebx
dec edi
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
call fcn.004243a0
mov ebp, eax
mov eax, dword [esp + 0x2c]
cmp eax, ebp
mov edi, eax
jge 0x41ce9d
push edi
mov ecx, esi
call fcn.0041a3a0
push eax
push ebx
mov ecx, esi
call fcn.0041a770
cmp eax, dword [esp + 0x44]
jg 0x41ce95
inc edi
mov ebx, eax
cmp edi, ebp
jl 0x41ce6f
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x41cea7
cmp edi, ebp
jl 0x41cea1
mov eax, dword [esp + 0x2c]
mov ecx, ebp
jmp 0x41cea7
mov eax, dword [esp + 0x2c]
mov ecx, edi
dec ecx
cmp eax, ecx
jle 0x41ceb0
mov ecx, eax
jmp 0x41ceb9
cmp edi, ebp
jl 0x41ceb6
mov edi, ebp
lea ecx, [edi - 1]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov edx, esi
mov dword [edx], edi
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x14]
call fcn.0041a390
lea ecx, [esp + 0x48]
mov dword [esp + 0x64], 0xffffffff
call fcn.00463581
mov ecx, dword [esp + 0x5c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc