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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x448f2c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448f0d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x448f1c
or bl, 4
test esi, 0x20000000
je 0x448f27
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44f530
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44f542
add esp, 0xfffffff0
call fcn.004037f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b504
mov eax, dword [0x454ce8]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f8d4
mov eax, dword [0x454cf4]
mov dword [eax + 4], ebx
mov dword [eax], 0x44f8e0
mov eax, ebx
call fcn.0044f8ec
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411564]
call fcn.00403474
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411564]
call fcn.00403474
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411564]
call fcn.00403474
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411564]
call fcn.00403474
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411564]
call fcn.00403474
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, 0x44bdb4
push eax
push 0
push 0
mov eax, dword [0x454e08]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ce9c]
call fcn.0041e2a0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ce9c]
call fcn.0041e2a0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ce9c]
call fcn.0041e2a0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044fd0c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fbe8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fbe8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44fbe8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f67f
call fcn.00403848
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44f9cc
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 0x44fb77
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44fb58
mov dl, 1
mov eax, dword [0x411a54]
call fcn.00403474
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004041f8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44fb47
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.0043d5f0
test al, al
je 0x44fb3a
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, 0x44fb88
lea eax, [ebp - 0x254]
call fcn.00408eec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44fb3a
xor eax, eax
push ebp
push 0x44fb33
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 0x44fbc0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44fb1c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404470
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 0x44fb1c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404470
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44fb3a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44fa3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415b9c
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 0x44fb7e
lea eax, [ebp - 0x260]
call fcn.004041f8
ret

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

Disassembly:
push ecx
mov eax, dword [0x455bfc]
cmp byte [eax + 0xa5], 0
jne 0x45051d
cmp dword [0x455c14], 0
jne 0x4504de
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x450468
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x455c14], eax
cmp dword [0x455c10], 0
jne 0x4504f9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x455c10], eax
cmp dword [0x455c18], 0
jne 0x45051d
push esp
push 0
push 0
push 0x45040c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x455c18], eax
pop edx
ret
Function at 0x450614
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45062b
add esp, 0xfffffff0
call fcn.004037f0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b504
mov eax, dword [0x454df8]
cmp word [eax + 2], 0
jne 0x450653
mov eax, dword [0x454df8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451c48
mov eax, dword [0x454e7c]
cmp word [eax + 2], 0
jne 0x45066d
mov eax, dword [0x454e7c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451e40
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411564]
call fcn.00403474
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411564]
call fcn.00403474
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], 0x80000018
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 [0x41d64c]
call fcn.00423314
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4507f4
mov eax, dword [0x454d3c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004236e4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4523b0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x454d3c]
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.0040a770
test eax, eax
je 0x450762
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408848
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040a798
test eax, eax
je 0x450776
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.00404470
mov eax, dword [0x454c68]
cmp byte [eax], 0
jne 0x4507aa
mov eax, ebx
call fcn.0045091c
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.0045258c
mov eax, ebx
call fcn.00452ecc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4507ea
call fcn.00403848
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x450b90
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x455bfc]
cmp dword [eax + 0x30], 0
je 0x450c3a
cmp dword [ebx + 0x94], 0
jne 0x450c34
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450b20
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450c34
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 0x450bfa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450c34
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.00413c04
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450c09
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451718
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 0x45174d
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.004042e8
jmp 0x45175a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040424c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452768
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4527a9
mov eax, esi
call fcn.00438d28
test al, al
je 0x4527a9
mov eax, dword [ebx + 0x84]
call fcn.00438a24
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4527a9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438a24
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4011e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x42a390]
xor eax, ebp
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0xb4], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [esp + 0x1c], eax
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
mov dword [esp + 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4012f8
mov eax, dword [esp + 0x30]
xor edi, edi
cmp eax, edi
je 0x4012f8
cmp eax, 1
mov eax, str.SystemCurrentControlSetServicesVxDMSTCP
je 0x40124c
mov eax, str.SYSTEMCurrentControlSetServicesTcpipParameters
lea edx, [esp + 0x14]
push edx
push 0x20019
push edi
push eax
push SysStringLen
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012f8
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
push edi
push str.NameServer
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x28], edi
call esi
test eax, eax
jne 0x4012ed
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x14]
inc eax
cmp ecx, eax
mov dword [esp + 0x10], eax
jae 0x4012d5
mov ecx, dword [esp + 0x1c]
push edx
mov dword [ecx], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, ebp
call fcn.0041413a
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push ebx
lea ecx, [esp + 0x20]
push ecx
push edi
push str.NameServer
push edx
call esi
test eax, eax
je 0x40130f
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, ebp
call fcn.0041413a
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
mov cl, byte [ebx]
inc edx
test cl, cl
mov dword [esp + 0x10], edx
mov eax, ebx
je 0x401330
cmp byte [eax], 0x20
jne 0x401328
mov byte [eax], 0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401320
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov byte [eax + 1], 0
mov eax, dword [esp + 0x14]
push eax
mov dword [ecx], edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041413a
mov esp, ebp
pop ebp
ret
Function at 0x402a30
Capabilities:
Connect socket
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x128
mov eax, dword [0x42a390]
xor eax, esp
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
push 2
mov dword [esp + 0x13c], eax
mov edi, ecx
mov byte [esp + 0x1b], bl
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402a8f
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push str.socket___failed___d_n
call fcn.00415134
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0041413a
add esp, 0x128
ret
push 0x35
mov word [esp + 0x124], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x122], ax
lea eax, [edi + 6]
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 0x10
lea ecx, [esp + 0x124]
push ecx
push esi
mov dword [esp + 0x130], eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x402af1
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0041413a
add esp, 0x128
ret
push ebp
mov ebp, dword [sym.imp.WSOCK32.dll_select]
mov dword [esp + 0x14], ebx
lea esp, [esp]
mov edx, dword [edi + 0x1c]
mov eax, dword [edi + 0x20]
push ebx
push edx
push eax
push esi
call dword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
je 0x402b72
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
push ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], 1
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], ebx
call ebp
cmp eax, 0xffffffff
je 0x402b5a
cmp eax, ebx
je 0x402b5a
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x2c]
push ebx
push eax
push ecx
push esi
call dword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x402b6a
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 3
mov dword [esp + 0x14], eax
jl 0x402b00
jmp 0x402b72
mov dword [edi + 0x24], eax
mov byte [esp + 0x13], 1
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov ecx, dword [esp + 0x134]
mov al, byte [esp + 0x13]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041413a
add esp, 0x128
ret

Function at 0x402dc0
Capabilities:
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, esi
push edi
mov edi, ecx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402dd0
sub eax, edx
cmp eax, 0xf
ja 0x402dea
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x402df1
pop edi
xor al, al
pop esi
ret 4
push 0xf
push esi
add edi, 6
push edi
call fcn.004151a0
add esp, 0xc
pop edi
mov al, 1
pop esi
ret 4
Function at 0x402e10
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x42a390]
xor eax, esp
push esi
mov dword [esp + 0x194], eax
lea eax, [esp + 4]
push eax
push 0x101
mov esi, ecx
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x402e59
mov dword [esi], 2
xor al, al
pop esi
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.0041413a
add esp, 0x194
ret
xor ecx, ecx
lea edx, [esi + 0x18]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
xor eax, eax
lea ecx, [esi + 0x24]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov ecx, esi
call fcn.00402650
mov ecx, dword [esp + 0x194]
mov dword [esi], 0
pop esi
xor ecx, esp
mov al, 1
call fcn.0041413a
add esp, 0x194
ret

Function at 0x4033f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x42a390]
xor eax, ebp
push ebx
mov dword [esp + 0x124], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x1c], eax
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x20], bl
mov ecx, 0x40
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.WININET.DLL
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x4034b1
push 0x104
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x4034b1
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x4034b1
push edi
call fcn.00413b12
mov ecx, dword [esp + 0x14]
add esp, 4
mov esi, eax
push esi
push edi
push ecx
lea edx, [esp + 0x2c]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4034a8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x42450c
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4034c8
push esi
call fcn.00414148
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, ebp
call fcn.0041413a
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push str.MSIE__d._d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
push esi
call fcn.00414148
mov ecx, dword [esp + 0x140]
add esp, 0x14
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0041413a
mov esp, ebp
pop ebp
ret
Function at 0x403510
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
mov eax, dword [0x42a390]
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0xac], eax
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x9c
call edi
test eax, eax
jne 0x40357e
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x94
call edi
test eax, eax
jne 0x40357e
mov byte [esi], al
pop edi
pop esi
mov ecx, dword [esp + 0xa4]
xor ecx, ebp
call fcn.0041413a
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x4035fd
dec eax
je 0x4035a8
dec eax
jne 0x40360c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
push eax
push str.Windows_NT__d._d
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40360c
cmp dword [esp + 0xc], 4
jne 0x40360c
mov eax, dword [esp + 0x10]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x4035d1
push str.Windows_95
push esi
call edi
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 4
jne 0x40360c
cmp dword [esp + 0x10], 0xa
jne 0x4035ec
push str.Windows_98
push esi
call edi
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 4
jne 0x40360c
cmp dword [esp + 0x10], 0x5a
jne 0x40360c
push str.Windows_Me
push esi
call edi
jmp 0x403609
push str.Windows
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
mov ecx, dword [esp + 0xac]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0041413a
mov esp, ebp
pop ebp
ret
Function at 0x403640
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x42a390]
xor eax, ebp
mov dword [esp + 0x110], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
xor eax, eax
test esi, esi
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 1
stosb byte es:[edi], al
je 0x4036a3
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call edi
test eax, eax
jle 0x4036a3
push esi
call edi
cmp eax, 0x104
jbe 0x4036ba
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.0041413a
mov esp, ebp
pop ebp
ret
push 0x103
push esi
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4036dd
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathSkipRootA]
mov esi, eax
push esi
call edi
test eax, eax
jne 0x40370b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.0041413a
mov esp, ebp
pop ebp
ret
push 0x5c
push esi
call fcn.004152c4
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
add esp, 8
test esi, esi
je 0x40375c
mov ecx, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
mov byte [esi], 0
call edi
and ebx, eax
jne 0x403747
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403747
mov ebx, 1
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call fcn.004152c4
mov esi, eax
add esp, 8
test esi, esi
jne 0x403722
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call edi
and ebx, eax
jne 0x40377e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40377e
mov ebx, 1
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0041413a
mov esp, ebp
pop ebp
ret

Function at 0x4038f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403909
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40391d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40393e
cmp esi, eax
jae 0x403917
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403930
cmp esi, eax
jae 0x403917
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4096fc
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
cmp eax, 0x2711
push esi
mov esi, ecx
jne 0x409857
mov eax, dword [esi + 0xec]
test eax, eax
jne 0x409857
push edi
lea ecx, [esi + 0x48]
call fcn.0040feb0
test eax, eax
je 0x40978e
mov eax, dword [esi + 0x44]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
mov eax, dword [esp + 0x1c]
cmp eax, 0x205
je 0x409744
cmp eax, 0x202
jne 0x409856
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push eax
push 0
push ecx
push edx
push 0
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov eax, dword [esi + 4]
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
xor eax, eax
pop esi
add esp, 8
ret 0x10
mov ecx, dword [esi + 0x40]
push ebx
push 0
push ecx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edx, dword [0x42b1a8]
mov ecx, 0x42b1a8
mov edi, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0xe8]
test eax, eax
lea ecx, [esp + 0x1c]
je 0x4097c7
push 0x87
jmp 0x4097cc
push 0x84
call fcn.00404f30
mov ebx, dword [esp + 0x1c]
push ebx
push 0x8009
push 0
push 0x8009
push edi
call dword [sym.imp.USER32.dll_ModifyMenuA]
mov eax, dword [esp + 0x20]
cmp eax, 0x205
je 0x4097fb
cmp eax, 0x202
jne 0x40983b
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0
push edx
push 0
push eax
push ecx
push 0
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov edx, dword [esi + 4]
push 0
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop ebx
jg 0x409856
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
xor eax, eax
pop esi
add esp, 8
ret 0x10