joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447120
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 0x4472c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40f5d4]
call fcn.00402f50
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403b74
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44729b
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.00437034
test al, al
je 0x44728e
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x4472d4
lea eax, [ebp - 0x254]
call fcn.004094dc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44728e
xor eax, eax
push ebp
push 0x447287
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 0x44730c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x447270
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403da0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x447270
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403da0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44728e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x447191
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.004130c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4472cc
lea eax, [ebp - 0x260]
call fcn.00403b74
ret

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

Disassembly:
push ecx
mov eax, dword [0x4907a8]
cmp byte [eax + 0x8d], 0
jne 0x447ad9
cmp dword [0x4907e4], 0
jne 0x447a9a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x447a24
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4907e4], eax
cmp dword [0x4907e0], 0
jne 0x447ab5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4907e0], eax
cmp dword [0x4907e8], 0
jne 0x447ad9
push esp
push 0
push 0
push 0x4479c8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4907e8], eax
pop edx
ret
Function at 0x447bd0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x447be7
add esp, 0xfffffff0
call fcn.004032c0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00417610
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40f0a8]
call fcn.00402f50
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40f0a8]
call fcn.00402f50
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x41939c]
call fcn.004206b8
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x447d58
mov eax, dword [0x48ed58]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00420a5c
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x44967c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48ed58]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.0040c774
test eax, eax
je 0x447cd7
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408df4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c79c
test eax, eax
je 0x447ceb
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403da0
mov eax, dword [0x48ebc0]
cmp byte [eax], 0
jne 0x447d1c
mov eax, ebx
call fcn.00447e44
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x447d4e
call fcn.00403318
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4480a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4907a8]
cmp dword [eax + 0x24], 0
je 0x448130
cmp dword [ebx + 0x7c], 0
jne 0x44812d
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x448034
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x44812d
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 0x4480fc
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44812d
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.00410adc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x448108
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x448a80
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x448ab5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403c58
jmp 0x448abf
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403c0c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4499ac
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x4499e4
mov eax, esi
call fcn.00432c74
test al, al
je 0x4499e4
mov eax, dword [ebx + 0x6c]
call fcn.0043284c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4499e4
push 0
mov eax, dword [ebx + 0x6c]
call fcn.0043284c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x44ed2c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x44ef0e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x44ed76
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044e7fc
mov eax, dword [ebp - 0x204]
mov edx, ebx
call fcn.0040c398
cmp al, 1
jne 0x44ed76
dec ebx
mov edi, ebx
mov eax, esi
call fcn.0044eb10
test al, al
je 0x44eeae
test edi, edi
jge 0x44ed8d
xor edi, edi
lea ebx, [edi + 1]
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044e7fc
mov eax, dword [ebp - 0x204]
call fcn.00403df0
cmp ebx, eax
jge 0x44edd4
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044e7fc
mov eax, dword [ebp - 0x204]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x48f10c]
and eax, 0xff
bt dword [edx], eax
jae 0x44edd4
inc ebx
mov eax, dword [esi + 0x20c]
cmp edi, eax
jl 0x44ede2
mov edi, eax
mov ebx, edi
mov ecx, ebx
mov edx, ebx
mov eax, esi
call fcn.0044ed08
cmp ebx, edi
je 0x44eea6
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x44ee0c
mov byte [ebp - 0x1f0], 0x81
mov eax, esi
mov bx, 0xffcf
call fcn.0040315c
and eax, 0x7f
movzx eax, word [eax*2 + 0x48db4c]
mov byte [ebp + eax - 0x200], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.0040315c
and eax, 0x7f
movzx eax, word [eax*2 + 0x48db4c]
push eax
push pe_nt_image_headers32
mov eax, esi
call fcn.0043284c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.0040315c
and eax, 0x7f
movzx eax, word [eax*2 + 0x48db4c]
push eax
push 0x101
mov eax, esi
call fcn.0043284c
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [esi + 0x214], edi
jmp 0x44eef5
test edi, edi
jge 0x44eeb4
xor edi, edi
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044e7fc
mov eax, dword [ebp - 0x204]
call fcn.00403df0
cmp edi, eax
jl 0x44eeea
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044e7fc
mov eax, dword [ebp - 0x204]
call fcn.00403df0
mov edi, eax
mov ecx, edi
mov edx, edi
mov eax, esi
call fcn.0044ed08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ef15
lea eax, [ebp - 0x204]
call fcn.00403b74
ret

Function at 0x45b928
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.0045a4bb
jge 0x45b956
invalid
or eax, dword [ebx - 0x72b7a73]
invalid
Function at 0x463ad7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x48e8ae
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x463b2f
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x48e8cf
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x463b25
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x463b33
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x47567c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0x1ec]
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x47581f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x224]
mov eax, dword [ebx + 0x10]
call fcn.0041a728
cmp byte [ebp + 8], 0
je 0x4756d5
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.0041a5f8
jmp 0x4756e3
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
call fcn.0041a5f8
mov eax, dword [ebx + 0x10]
call fcn.0041a720
dec eax
jle 0x475729
xor eax, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x10]
call fcn.0041a5f0
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
push 0
push 0
lea eax, [ebp - 0x24]
push eax
mov edi, dword [ebx + 0x10]
mov eax, edi
call fcn.0041a720
push eax
push 0x12200
call sub.gdi32.dll_ExtCreatePen
mov edx, eax
mov eax, edi
call fcn.0041a6b8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov edi, dword [eax - 8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x28]
call dword [ebx + 0x24]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
shr ecx, 1
add edx, ecx
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov bx, 0xffcf
call fcn.0040315c
test al, al
je 0x475772
test esi, esi
jne 0x475772
inc dword [ebp - 0xc]
mov eax, esi
xor eax, 1
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x14], edx
add eax, 2
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x18], eax
lea eax, [esi + 2]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x10], eax
xor ebx, ebx
lea eax, [esi + ebx]
mov edx, dword [ebp - 0xc]
mov dword [edi + eax*4], edx
mov eax, esi
xor eax, 1
mov edx, eax
add edx, ebx
mov ecx, dword [ebp - 0x14]
mov dword [edi + edx*4], ecx
add ebx, 2
lea edx, [esi + ebx]
mov ecx, dword [ebp - 0xc]
mov dword [edi + edx*4], ecx
add eax, ebx
mov edx, dword [ebp - 0x18]
mov dword [edi + eax*4], edx
add ebx, 2
inc dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x28]
call dword [ecx + 0x24]
mov edx, dword [ebp - 4]
add eax, dword [edx]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jle 0x4757a8
shr ebx, 2
push ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 0xc]
push eax
push edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1ec]
call fcn.0041b170
push eax
call sub.gdi32.dll_PolyPolyline
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48a2c8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403fa4
mov eax, dword [ebp - 8]
call fcn.00403fa4
mov eax, dword [ebp - 0xc]
call fcn.00403fa4
xor eax, eax
push ebp
push 0x48a397
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x48a3b0
call fcn.00403df8
lea eax, [ebp - 8]
mov edx, 0x48a3b0
call fcn.00403df8
lea eax, [ebp - 0xc]
mov edx, 0x48a3b0
call fcn.00403df8
mov bl, 1
push 1
lea eax, [ebp - 0xc]
call fcn.00403fc0
push eax
lea eax, [ebp - 8]
call fcn.00403fc0
push eax
lea eax, [ebp - 4]
call fcn.00403fc0
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x48a37c
xor ebx, ebx
push 0
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, 0x48a3bc
call fcn.00403e3c
mov eax, dword [ebp - 0x10]
mov cx, word [0x48a3d0]
mov dl, 1
call fcn.0044cc90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a39e
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403b98
ret
Function at 0x4017aa
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
lea eax, [ebp + 8]
push ebx
push eax
push 0xcc00
push 0x441158
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4017e4
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
pop ebp
ret

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

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

Function at 0x401c89
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 0x401ccd
push str.RegOpenKeyExA
push eax
call edi
push str.RegQueryValueExA
mov dword [esi + 8], eax
push dword [esi + 0x20]
call edi
push str.RegCloseKey
mov dword [esi + 0xc], eax
push dword [esi + 0x20]
call edi
mov dword [esi + 0x10], eax
push str.kernel32.dll
call ebx
test eax, eax
mov dword [esi + 0x24], eax
je 0x401d00
push str.ReleaseMutex
push eax
call edi
push str.CreateMutexA
mov dword [esi + 0x18], eax
push dword [esi + 0x24]
call edi
push str.GetVersionExA
mov dword [esi + 0x14], eax
push dword [esi + 0x24]
call edi
mov dword [esi + 0x1c], eax
push str.shell32.dll
call ebx
test eax, eax
mov dword [esi + 0x28], eax
je 0x401d19
push str.ShellExecuteA
push eax
call edi
mov dword [esi + 4], eax
push 1
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x4020f2
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Query environment variable

Disassembly:
mov eax, 0x432058
call fcn.0040a334
sub esp, 0x308
push ebx
push esi
push edi
mov ebx, 0x458
push 0x946
mov esi, 0x44dd58
push ebx
mov edi, ecx
push esi
call fcn.0040203d
push 0x946
push ebx
push esi
call fcn.0040207d
add esp, 0x18
mov ecx, edi
call fcn.00401d21
test eax, eax
jne 0x40230c
push 0x44ddc0
lea eax, [ebp - 0x314]
push dword [0x44ddbc]
push esi
push str._s:_d:_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x314]
push eax
push 0
push 0
call dword [edi + 0x14]
mov esi, eax
test esi, esi
je 0x402181
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402313
push esi
call dword [edi + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, 0x104
lea eax, [ebp - 0x118]
push ebx
push eax
push 0x44df08
call esi
lea eax, [ebp - 0x118]
push eax
call fcn.00401958
test eax, eax
pop ecx
jne 0x402227
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1ac], 0x94
push eax
call dword [edi + 0x1c]
cmp dword [ebp - 0x19c], 2
jne 0x4021dd
cmp dword [ebp - 0x1a8], 6
jae 0x402218
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x10]
push eax
call fcn.0041e974
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004018a1
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp - 0x10]
call fcn.0041e906
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402227
lea eax, [ebp - 0x118]
push ebx
push eax
push str._Temp__
call esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x2b0]
push str._s_d.bat
push eax
call ebx
lea eax, [ebp - 0x2b0]
push eax
call fcn.00401aae
add esp, 0x14
test al, al
je 0x40230c
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
mov dword [ebp - 0x14], eax
cmp eax, esi
je 0x402304
cmp dword [0x44df04], esi
je 0x40229f
push str.MainThread
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
lea eax, [ebp - 0x2b0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4022fb
push str.Install
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4022fb
lea ecx, [ebp - 0x2b0]
push ecx
call eax
test eax, eax
jne 0x4022fb
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x118]
push str.___s__MainThread
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x118]
push esi
push esi
push eax
push str.rundll32.exe
push str.open
push esi
call dword [edi + 4]
push 4
lea eax, [ebp - 0x118]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x44defc], esi
jne 0x402313
mov ecx, edi
call fcn.00401d20
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40a5a5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a5c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040c798
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40a5e8
test byte [esp + 8], 2
je 0x40a5e8
call fcn.0040c80b
mov dword [eax], 0xd
call fcn.0040c814
mov dword [eax], 5
jmp 0x40a5c1
xor eax, eax
ret
Function at 0x416f30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040afb0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x416ffb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x416ffb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x416fae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x416fb9
or bh, 8
and edi, 0x8000000
je 0x416fd4
mov eax, dword [0x455cfc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x416ffb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret