joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a390
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x41a3b1
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x41a3c9
mov eax, dword [ebp - 4]
or eax, 2
mov dword [ebp - 4], eax
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x41a3e1
mov edx, dword [ebp - 4]
or edx, 1
mov dword [ebp - 4], edx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x41a3f7
mov ecx, dword [ebp - 4]
or ecx, 4
mov dword [ebp - 4], ecx
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x41a40f
mov eax, dword [ebp - 4]
or eax, 0x20
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x423b10
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
push 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x20], eax
push 1
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 0
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x423bea
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x423bea
cmp dword [ebp - 0x18], 0x10
jne 0x423bb6
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 4]
jne 0x423bb6
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
push 1
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
lea eax, [ebp - 0x1c]
push eax
call fcn.00422ba0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x423bdd
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x18], 0x12
jne 0x423be5
jmp 0x423bea
jmp 0x423b61
push 1
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x18], 0x12
jne 0x423c10
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x423c20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
push 4
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x20], eax
movzx edx, byte [ebp + 8]
test edx, edx
je 0x423c56
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
mov dword [ebp - 0x28], eax
jmp 0x423c5d
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x1c], 0
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x423d1e
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x423d1e
cmp dword [ebp - 0x18], 0x10
jne 0x423cea
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 4]
jne 0x423cea
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
push 1
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
lea eax, [ebp - 0x1c]
push eax
call fcn.00422ba0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x423d11
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x18], 0x12
jne 0x423d19
jmp 0x423d1e
jmp 0x423c95
push 1
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x18], 0x12
jne 0x423d44
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx + 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x45f700
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x69c], 0
je 0x45f7b3
cmp dword [ebp + 8], 0x100
jne 0x45f77f
movzx ecx, word [ebp + 0xc]
cmp ecx, 0xd
jne 0x45f77f
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x6a2]
test eax, eax
je 0x45f756
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x45f77f
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x6a3]
test eax, eax
jne 0x45f77f
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x5c], 0
je 0x45f77b
push 1
push 0
push 0
push 0
push str.return
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x5c]
call fcn.0041fcf0
xor eax, eax
jmp 0x45f7b8
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x69c]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
call eax
jmp 0x45f7b8
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x47faa0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b032b
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4d0c20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], ecx
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0xac]
mov eax, dword [edx + 0x14]
mov dword [eax + 0x6e0], 0
mov ecx, dword [ebp - 0xac]
cmp dword [ecx + 4], 0
jne 0x47fbab
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0xac]
call fcn.0047fc90
mov dword [ebp - 0x10], 0x40000000
push 0
sub esp, 0x10
mov eax, esp
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov edx, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 0xc], edx
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0xac]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 0x14]
mov edx, dword [edx]
mov eax, dword [edx + 0x24]
call eax
mov ecx, eax
call fcn.00419970
push eax
mov ecx, dword [ebp - 0xac]
call fcn.00423960
push 1
mov ecx, dword [ebp - 0xac]
mov ecx, dword [ecx + 0x14]
call fcn.004315a0
push eax
mov edx, dword [ebp - 0xac]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0xac]
mov ecx, dword [ecx + 0x14]
mov edx, dword [eax]
mov eax, dword [edx + 0x24]
call eax
mov ecx, eax
call fcn.00421100
mov ecx, dword [eax]
push ecx
push 0x30
mov edx, dword [ebp - 0xac]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0xa8]
push ecx
mov edx, dword [ebp - 0xac]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0xac]
mov ecx, dword [ecx + 0x14]
mov edx, dword [eax]
mov eax, dword [edx + 0x38]
call eax
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xb4]
call fcn.00424e30
mov byte [ebp - 0x21], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.00424c10
movzx edx, byte [ebp - 0x21]
test edx, edx
je 0x47fc22
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 0x14]
add ecx, 0x6d0
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [ebp - 0xac]
mov eax, dword [edx + 0x14]
add eax, 0x6d0
push eax
push 0
push 0x1002
mov ecx, dword [ebp - 0xac]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0xac]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 0xac]
mov byte [ecx + 0x1c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4803a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
movzx eax, byte [ebp + 0x18]
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x10]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x14]
call fcn.00436cc0
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x6e8], 0
je 0x480446
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x6e8]
call fcn.0047fc90
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x480417
push 0
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x6e8]
call fcn.00424af0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x480446
push 0x54
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x6e8]
call fcn.00424af0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esp, ebp
pop ebp
ret 0x14

Function at 0x480450
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
movzx eax, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004373c0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x6e8], 0
je 0x4804e2
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x6e8]
call fcn.0047fc90
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4804b3
push 0
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x6e8]
call fcn.00424af0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4804e2
push 0x54
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x6e8]
call fcn.00424af0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4903f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4d0c20]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x1c]
test ecx, ecx
jne 0x490415
xor eax, eax
jmp 0x4904de
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x14], 0
jne 0x490425
xor eax, eax
jmp 0x4904de
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.00496120
mov dword [ebp - 0x14], esp
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x490458
xor eax, eax
jmp 0x4904de
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x14]
add ecx, 0x1e4
call fcn.00424ef0
push 1
push 0
push 0
push 0
push 0x4b6a74
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x14]
mov edx, dword [eax]
mov eax, dword [edx + 0x24]
call eax
mov ecx, eax
call fcn.0041fcf0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x14]
mov edx, dword [edx]
mov eax, dword [edx + 0x24]
call eax
mov ecx, eax
call fcn.00419e40
movzx ecx, al
test ecx, ecx
je 0x4904dc
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x14]
call fcn.00438300
xor eax, eax
lea esp, [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00492337
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4911c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
movzx eax, byte [ebp + 0x18]
push eax
sub esp, 0x10
mov ecx, esp
mov edx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x10]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x14]
call fcn.00436cc0
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x6d0], 0
je 0x491266
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x6d0]
call fcn.0048fc20
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x491237
push 0
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x6d0]
call fcn.00424af0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x491266
push 0x54
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x6d0]
call fcn.00424af0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esp, ebp
pop ebp
ret 0x14
Function at 0x491270
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
movzx eax, byte [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x14]
call fcn.004373c0
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x6d0], 0
je 0x491302
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x6d0]
call fcn.0048fc20
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4912d3
push 0
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0x6d0]
call fcn.00424af0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x491302
push 0x54
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x6d0]
call fcn.00424af0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x492337
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d0c20]
jne 0x492341
repz ret
jmp fcn.00499257
Function at 0x4a69bc
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.004993cf
and dword [ebp - 4], 0
cmp dword [0x4d5230], 0
mov ebx, eax
jne 0x4a6a6d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4a6b1e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4a6b1e
push eax
call fcn.0049935d
mov dword [esp], 0x4c10e0
push edi
mov dword [0x4d5230], eax
call esi
push eax
call fcn.0049935d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d5234], eax
call esi
push eax
call fcn.0049935d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4d5238], eax
call esi
push eax
call fcn.0049935d
pop ecx
mov dword [0x4d5240], eax
test eax, eax
je 0x4a6a6d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049935d
pop ecx
mov dword [0x4d523c], eax
mov eax, dword [0x4d523c]
cmp eax, ebx
je 0x4a6ac5
cmp dword [0x4d5240], ebx
je 0x4a6ac5
push eax
call fcn.004993d8
push dword [0x4d5240]
mov esi, eax
call fcn.004993d8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4a6ac5
test edi, edi
je 0x4a6ac5
call esi
test eax, eax
je 0x4a6abc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a6abc
test byte [ebp - 0xc], 1
jne 0x4a6ac5
or dword [ebp + 0x10], 0x200000
jmp 0x4a6afe
mov eax, dword [0x4d5234]
cmp eax, ebx
je 0x4a6afe
push eax
call fcn.004993d8
pop ecx
test eax, eax
je 0x4a6afe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4a6afe
mov eax, dword [0x4d5238]
cmp eax, ebx
je 0x4a6afe
push eax
call fcn.004993d8
pop ecx
test eax, eax
je 0x4a6afe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d5230]
call fcn.004993d8
pop ecx
test eax, eax
je 0x4a6b1e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a6b20
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401025
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x12000
push 0x403010
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401043
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
ret

Function at 0x401120
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x401fa8
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [esp + 0x14]
push 0
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x40119a
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40119a
push 0x5c
mov ecx, esi
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 0x14]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::Left
push eax
mov dword [esp + 0x10], 0
call fcn.00401120
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 0xffffffff
call fcn.00401dec
mov edx, dword [esi]
push edx
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
mov ecx, dword [esp + 4]
pop esi
mov dword fs:[0], ecx
add esp, 0xc
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40122e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40122e
xor eax, eax
ret
mov eax, 1
ret

Function at 0x4015d0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
mov esi, ecx
push str.ADVAPI32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
test eax, eax
je 0x401616
push str.RegOpenKeyExA
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 0x20]
push str.RegQueryValueExA
push eax
call edi
mov ecx, dword [esi + 0x20]
push str.RegCloseKey
push ecx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
push str.kernel32.dll
call ebx
test eax, eax
mov dword [esi + 0x24], eax
je 0x40164b
push 0x415398
push eax
call edi
mov edx, dword [esi + 0x24]
push 0x415388
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x24]
push str.GetVersionExA
push eax
call edi
mov dword [esi + 0x1c], eax
push str.shell32.dll
call ebx
test eax, eax
mov dword [esi + 0x28], eax
je 0x401664
push str.ShellExecuteA
push eax
call edi
mov dword [esi + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x401ab0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Query environment variable

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x401fcb
push eax
mov dword fs:[0], esp
sub esp, 0x304
push ebx
push esi
push edi
push 0x946
push 0x32c
mov edi, ecx
push 0x415010
call fcn.00401a60
push 0x946
push 0x32c
push 0x415010
call fcn.00401240
add esp, 0x18
mov ecx, edi
call fcn.00401680
test eax, eax
jne 0x401cf2
mov eax, dword [0x415074]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push 0x415078
push eax
push 0x415010
lea ecx, [esp + 0x2b8]
push str._s:_d:_s
push ecx
call ebx
add esp, 0x14
lea edx, [esp + 0x2ac]
push edx
push 0
push 0
call dword [edi + 0x14]
mov esi, eax
test esi, esi
je 0x401b58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401cf9
push esi
call dword [edi + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0x10]
push 0x104
push eax
push 0x4151c0
call esi
lea ecx, [esp + 0x10]
push ecx
call fcn.00401210
add esp, 4
test eax, eax
jne 0x401c14
lea edx, [esp + 0x114]
mov dword [esp + 0x114], 0x94
push edx
call dword [edi + 0x1c]
cmp dword [esp + 0x124], 2
jne 0x401bb9
cmp dword [esp + 0x118], 6
jae 0x401c03
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x318], 0
push ecx
call fcn.00401120
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x318], 0xffffffff
call fcn.00401dec
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401c14
lea eax, [esp + 0x10]
push 0x104
push eax
push str._Temp__
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ecx, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x1b0]
push str._s_d.txt
push edx
call ebx
lea eax, [esp + 0x1b8]
push eax
call fcn.004013c0
add esp, 0x14
test al, al
je 0x401cf2
lea ecx, [esp + 0x1a8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x401ce9
mov eax, dword [0x4151bc]
test eax, eax
je 0x401c86
push str.MainThread
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
lea edx, [esp + 0x1a8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401ce2
push str.Install
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401ce2
lea ecx, [esp + 0x1a8]
push ecx
call eax
test eax, eax
jne 0x401ce2
lea edx, [esp + 0x1a8]
lea eax, [esp + 0x10]
push edx
push str.___s__MainThread
push eax
call ebx
add esp, 0xc
lea ecx, [esp + 0x10]
push 0
push 0
push ecx
push str.rundll32.exe
push str.open
push 0
call dword [edi + 4]
push 4
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x4151b4]
test eax, eax
jne 0x401cf9
mov ecx, edi
call fcn.00401670
mov ecx, dword [esp + 0x310]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x310
ret