joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447f60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x491a58]
cmp byte [eax + 0xc], 0
je 0x4480cd
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4480c6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x492b94], 0
jne 0x447fb4
push 0x4480d4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4480dc
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492b94], eax
cmp dword [0x48fc8c], 0
jne 0x4480af
push 0x4480ec
call sub.kernel32.dll_LoadLibraryA
mov dword [0x48fc8c], eax
cmp dword [0x48fc8c], 0
je 0x4480af
push 0x4480f8
mov eax, dword [0x48fc8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492b98], eax
push 0x448108
mov eax, dword [0x48fc8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492b9c], eax
push 0x44811c
mov eax, dword [0x48fc8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492ba0], eax
push 0x448134
mov eax, dword [0x48fc8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492ba4], eax
push 0x44814c
mov eax, dword [0x48fc8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492ba8], eax
push 0x448160
mov eax, dword [0x48fc8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492bac], eax
push 0x448178
mov eax, dword [0x48fc8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492bb0], eax
push 0x448190
mov eax, dword [0x48fc8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492bb4], eax
push 0x4481ac
mov eax, dword [0x48fc8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492bb8], eax
push 0x4481b8
mov eax, dword [0x48fc8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x492bbc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4480cd
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44c410
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004040d4
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44c45f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404344
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x453b9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x453bec]
test si, 4
je 0x453bb0
or bl, 1
test si, 8
je 0x453bba
or bl, 4
test si, 1
je 0x453bc4
or bl, 8
test si, 2
je 0x453bce
or bl, 0x10
test si, 0x10
je 0x453bd8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453be7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x453bf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x453c28]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453c09
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453c18
or bl, 4
test esi, 0x20000000
je 0x453c23
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45a2d0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45a2e2
add esp, 0xfffffff0
call fcn.00403624
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a880
mov eax, dword [0x49169c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a674
mov eax, dword [0x4916a8]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a680
mov eax, ebx
call fcn.0045a68c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x412244]
call fcn.004032d0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x412244]
call fcn.004032d0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x412244]
call fcn.004032d0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x412244]
call fcn.004032d0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x412244]
call fcn.004032d0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x456aa8
push eax
push 0
push 0
mov eax, dword [0x491824]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41c30c]
call fcn.0041da80
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41c30c]
call fcn.0041da80
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41c30c]
call fcn.0041da80
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045aaac
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a988
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a988
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a988
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a41f
call fcn.0040367c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45a76c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a917
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a8f8
mov dl, 1
mov eax, dword [0x412660]
call fcn.004032d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004040d4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a8e7
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004482c0
test al, al
je 0x45a8da
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45a928
lea eax, [ebp - 0x254]
call fcn.004093ec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a8da
xor eax, eax
push ebp
push 0x45a8d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45a960
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a8bc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404344
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45a8bc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a8da
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a7dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416568
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a91e
lea eax, [ebp - 0x260]
call fcn.004040d4
ret

Function at 0x45b24c
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x492be0]
cmp byte [eax + 0xa5], 0
jne 0x45b2bd
cmp dword [0x492bf8], 0
jne 0x45b27e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45b208
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x492bf8], eax
cmp dword [0x492bf4], 0
jne 0x45b299
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x492bf4], eax
cmp dword [0x492bfc], 0
jne 0x45b2bd
push esp
push 0
push 0
push 0x45b1ac
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x492bfc], eax
pop edx
ret
Function at 0x45b3b4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45b3cb
add esp, 0xfffffff0
call fcn.00403624
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a880
mov eax, dword [0x491810]
cmp word [eax + 2], 0
jne 0x45b3f3
mov eax, dword [0x491810]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ca8c
mov eax, dword [0x4918d4]
cmp word [eax + 2], 0
jne 0x45b40d
mov eax, dword [0x4918d4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045cc84
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x412244]
call fcn.004032d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x412244]
call fcn.004032d0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41cdec]
call fcn.004248ec
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45b594
mov eax, dword [0x49170c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424cbc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45d224
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49170c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cc34
test eax, eax
je 0x45b502
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408dcc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cc5c
test eax, eax
je 0x45b516
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404344
mov eax, dword [0x4915c4]
cmp byte [eax], 0
jne 0x45b54a
mov eax, ebx
call fcn.0045b6bc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045d400
mov eax, ebx
call fcn.0045ddc4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b58a
call fcn.0040367c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b93c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x492be0]
cmp dword [eax + 0x30], 0
je 0x45b9e6
cmp dword [ebx + 0x94], 0
jne 0x45b9e0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b8cc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b9e0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45b9a6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b9e0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414608
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b9b5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c548
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45c57d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004041c4
jmp 0x45c58a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404128
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45d5dc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d61d
mov eax, esi
call fcn.00443864
test al, al
je 0x45d61d
mov eax, dword [ebx + 0x84]
call fcn.00443560
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d61d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00443560
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45f320
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45f580
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x45f383
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0045ede8
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040c7a8
cmp al, 1
jne 0x45f383
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0045f100
test al, al
je 0x45f50f
cmp dword [ebp - 8], 0
jge 0x45f3a1
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0045ede8
mov eax, dword [ebp - 0x210]
call fcn.00404394
cmp ebx, eax
jge 0x45f3eb
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0045ede8
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x491a40]
and eax, 0xff
bt dword [edx], eax
jae 0x45f3eb
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x45f3ff
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0045f2fc
cmp ebx, dword [ebp - 8]
je 0x45f501
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x45f42b
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004034fc
and eax, 0x7f
movzx eax, word [eax*2 + 0x48fecc]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x45f4ee
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004034fc
and eax, 0x7f
movzx eax, word [eax*2 + 0x48fecc]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00443560
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004034fc
and eax, 0x7f
movzx eax, word [eax*2 + 0x48fecc]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00443560
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f4f5
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x45f562
cmp dword [ebp - 8], 0
jge 0x45f51a
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0045ede8
mov eax, dword [ebp - 0x218]
call fcn.00404394
cmp eax, dword [ebp - 8]
jg 0x45f554
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0045ede8
mov eax, dword [ebp - 0x21c]
call fcn.00404394
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0045f2fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f587
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004040f8
ret
Function at 0x4740a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4740ce
mov eax, ebx
call fcn.00474b54
cmp dword [ebx + 0x40], 0
je 0x4740c7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47413f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x474131
cmp dword [ebx + 8], 0
je 0x4740f0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x474102
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x474131
cmp dword [ebx + 8], 0
je 0x4740e3
cmp eax, 3
je 0x474115
dec eax
jne 0x4740e3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4740e3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4740e3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47415d
cmp dword [ebx + 0x14], 0xcc
je 0x47415d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00474168
pop ebx
ret
Function at 0x402501
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 0x10], 0
je 0x402521
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x40252d
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
test ebx, ebx
je 0x402536
cmp byte [ebx], 0
jne 0x40253d
xor eax, eax
jmp 0x4025f7
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
jmp 0x4025a4
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x40256f
cmp dword [ebp - 4], 0
je 0x40256f
cmp dword [ebp - 8], 0
jne 0x40256f
cmp dword [ebp + 0x10], 0
je 0x40256a
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov dword [ebp - 8], edx
jmp 0x4025a3
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402581
xor ecx, ecx
mov cl, al
cmp ecx, 0xa
jne 0x40258e
and eax, 0xff
cmp eax, 0xd
jne 0x4025a9
inc ebx
jmp 0x4025a9
mov byte [edx], al
inc edx
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp esi, eax
jle 0x4025a3
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
jmp 0x4025a9
inc esi
cmp byte [ebx], 0
jne 0x402546
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x4025f5
mov edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 8], 0
je 0x4025f5
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov ecx, dword [ebp + 8]
dec ecx
lea edx, [ebp - 0x1008]
mov eax, dword [ebp - 4]
call fcn.004071b4
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov byte [edx + ecx - 1], 0
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4025ff
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7c0
push ebx
push esi
mov byte [ebp - 1], dl
mov ebx, eax
mov eax, ebx
call fcn.00407124
cmp eax, 0x3f6
jae 0x402841
lea eax, [ebp - 0x40]
mov ecx, 0x3c
xor edx, edx
call fcn.004070d0
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x5c0
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x40264c
lea edx, [ebx + 1]
jmp 0x40264e
mov edx, ebx
mov dword [ebp - 0x30], edx
xor eax, eax
jmp 0x4026a5
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x22
jne 0x402678
jmp 0x402671
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402671
mov byte [ebx + eax], 0x20
jmp 0x402678
inc eax
cmp byte [ebx + eax], 0
jne 0x402661
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
je 0x40268d
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x2f
jne 0x4026a4
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x20
jne 0x40269b
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [ebp - 0x2c], eax
jmp 0x4026ab
inc eax
cmp byte [ebx + eax], 0
jne 0x402655
cmp byte [0x40d0e2], 0
je 0x4026bb
mov dword [ebp - 0x2c], 0x40d0e2
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x30]
call fcn.00405d00
mov esi, eax
test esi, esi
je 0x4026e7
mov edx, str..inf
mov eax, esi
call fcn.00407220
test eax, eax
jne 0x4026e7
mov dword [ebp - 0x34], str.Install
xor edx, edx
mov eax, dword [ebp - 0x30]
call fcn.00406224
mov byte [ebp - 2], al
cmp byte [ebp - 2], 0
je 0x402711
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x30]
call fcn.004062b8
lea ecx, [ebp - 0x440]
mov dword [ebp - 0x30], ecx
cmp byte [ebp - 1], 0
je 0x402750
cmp byte [ebp - 2], 0
jne 0x402750
lea eax, [ebp - 0x840]
mov edx, dword [ebp - 0x30]
call fcn.004071a0
mov edx, str..exe
lea eax, [ebp - 0x840]
call fcn.00407268
lea eax, [ebp - 0x840]
xor edx, edx
call fcn.00406224
test al, al
je 0x402841
lea ecx, [ebp - 0x40]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x402780
and dword [ebp - 0x3c], 0xfffffbff
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x40]
push edx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x402841
xor ebx, ebx
cmp byte [0x40ccd8], 0
jne 0x402799
cmp byte [ebp - 1], 0
je 0x4027e2
cmp dword [0x40d564], 0
je 0x4027b1
push dword [0x40d564]
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x4027b5
xor eax, eax
jmp 0x4027ba
mov eax, 1
test eax, eax
je 0x4027cd
push 0
push dword [0x40d564]
call sub.USER32.DLL_ShowWindow
mov bl, 1
push 0x7d0
push dword [ebp - 8]
call sub.USER32.DLL_WaitForInputIdle
mov eax, dword [ebp - 8]
call fcn.00402847
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
test esi, esi
je 0x4027fe
mov edx, str..exe
mov eax, esi
call fcn.00407220
test eax, eax
je 0x402830
cmp byte [0x40ccd8], 0
je 0x402819
cmp byte [ebp - 1], 0
jne 0x402819
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x402830
cmp byte [ebp - 1], 0
mov edx, 0xc8
jne 0x40282a
add edx, 0x320
push edx
call sub.KERNEL32.DLL_Sleep
test bl, bl
je 0x402841
push 1
push dword [0x40d564]
call sub.USER32.DLL_ShowWindow
pop esi
pop ebx
mov esp, ebp
pop ebp
ret