joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4542f4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x45431a
mov eax, esp
push eax
push 0x4542bc
call sub.user32.dll_EnumWindows
jmp 0x45432d
mov eax, esp
push eax
push 0x45429c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x4543b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45440c]
test si, 4
je 0x4543cd
or bl, 1
test si, 8
je 0x4543d7
or bl, 4
test si, 1
je 0x4543e1
or bl, 8
test si, 2
je 0x4543eb
or bl, 0x10
test si, 0x10
je 0x4543f5
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454404
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x454410
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45444c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45442a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454439
or bl, 4
test esi, 0x20000000
je 0x454444
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45c4c4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45c4d6
add esp, 0xfffffff0
call fcn.00404000
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004245e8
mov eax, dword [0x4a4c00]
mov dword [eax + 4], ebx
mov dword [eax], 0x45c868
mov eax, dword [0x4a4c10]
mov dword [eax + 4], ebx
mov dword [eax], 0x45c874
mov eax, ebx
call fcn.0045c880
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b98c]
call fcn.00403ca4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b98c]
call fcn.00403ca4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b98c]
call fcn.00403ca4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b98c]
call fcn.00403ca4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b98c]
call fcn.00403ca4
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, 0x457d1c
push eax
push 0
push 0
mov eax, dword [0x4a4db4]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x42822c]
call fcn.00429a48
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x42822c]
call fcn.00429a48
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x42822c]
call fcn.00429a48
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045ccb0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45cb80
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45cb80
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45cb80
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45c613
call fcn.00404058
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45c964
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 0x45cb0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45caf0
mov dl, 1
mov eax, dword [0x41bf5c]
call fcn.00403ca4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404be8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45cadf
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.0044e138
test al, al
je 0x45cad2
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, 0x45cb20
lea eax, [ebp - 0x254]
call fcn.0040a6f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45cad2
xor eax, eax
push ebp
push 0x45cacb
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 0x45cb58
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45cab4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e58
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 0x45cab4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404e58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cad2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45c9d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00420304
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 0x45cb16
lea eax, [ebp - 0x260]
call fcn.00404be8
ret

Function at 0x45d488
Capabilities:
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4aac94]
cmp byte [eax + 0xad], 0
jne 0x45d4f9
cmp dword [0x4aacb0], 0
jne 0x45d4ba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45d444
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4aacb0], eax
cmp dword [0x4aacac], 0
jne 0x45d4d5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4aacac], eax
cmp dword [0x4aacb4], 0
jne 0x45d4f9
push esp
push 0
push 0
push 0x45d3e8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4aacb4], eax
pop edx
ret
Function at 0x45d6cc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45d6e3
add esp, 0xfffffff0
call fcn.00404000
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004245e8
mov eax, dword [0x4a4d98]
cmp word [eax + 2], 0
jne 0x45d70b
mov eax, dword [0x4a4d98]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045f3c0
mov eax, dword [0x4a4e70]
cmp word [eax + 2], 0
jne 0x45d725
mov eax, dword [0x4a4e70]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045f5cc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b98c]
call fcn.00403ca4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b98c]
call fcn.00403ca4
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x41b98c]
call fcn.00403ca4
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x428d04]
call fcn.004308d4
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45d8dc
mov eax, dword [0x4a4c80]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00430ca8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45fc90
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a4c80]
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.0040e560
test eax, eax
je 0x45d82c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a0a8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e594
test eax, eax
je 0x45d840
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404e58
mov byte [ebx + 0xd4], 0
push ebx
push 0x45ee30
call fcn.00425764
mov dword [ebx + 0xc8], eax
mov eax, dword [0x4a4b1c]
cmp byte [eax], 0
jne 0x45d891
mov eax, ebx
call fcn.0045da20
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045fea4
mov eax, ebx
call fcn.00460a08
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45d8d1
call fcn.00404058
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45dca0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x45dd3f
cmp dword [ebx + 0x94], 0
jne 0x45dd39
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45dc28
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45dd39
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 0x45dcff
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45dd39
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.0041dfb4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45dd0e
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45df58
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4aac94]
cmp dword [eax + 0x30], 0
je 0x45e0b5
test bl, bl
jne 0x45e006
cmp dword [esi + 0x9c], 0
jne 0x45dffb
mov eax, esi
call fcn.00460884
push eax
push 0x45de84
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x45dfcc
mov eax, dword [0x4aac94]
call fcn.00460e74
test al, al
je 0x45dfcc
mov eax, dword [0x4aacb8]
call fcn.004060d4
mov edi, eax
cmp edi, 0
jl 0x45dfcc
push 0
mov eax, dword [0x4aacb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45dfb6
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45dffb
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041dfb4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45dfdb
inc dword [esi + 0x9c]
jmp 0x45e0b5
cmp dword [esi + 0x9c], 0
jle 0x45e0b5
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x45e0b5
cmp dword [esi + 0x44], 0
je 0x45e061
mov eax, dword [0x4aac94]
call fcn.00460e74
test al, al
je 0x45e061
mov eax, dword [0x4aacb8]
call fcn.004060d4
mov edi, eax
cmp edi, 0
jl 0x45e061
push 5
mov eax, dword [0x4aacb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45e04b
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45e090
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0041dfb4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45e070
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x4aacb8
mov ecx, 1
mov edx, dword [0x45de64]
call fcn.00406288
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x45eb84
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45ebee
mov eax, ebx
call fcn.00460e74
test al, al
jne 0x45ebee
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.00404cd8
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x45ebdb
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x45ebfb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404c3c
jmp 0x45ebfb
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404c3c
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x460088
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4600f6
mov eax, esi
call fcn.00448eb0
test al, al
je 0x4600f6
mov eax, dword [ebx + 0x84]
call fcn.00448b54
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4600f6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4600ea
push 0
mov eax, dword [ebx + 0x84]
call fcn.00448b54
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00440ba0
jmp 0x4600f6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045fec4
pop esi
pop ebx
ret
Function at 0x465438
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x408020]
call fcn.00405884
xor eax, eax
push ebp
push 0x4655d9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a4288], 0
jne 0x465493
mov ecx, dword [0x4a4b2c]
mov dl, 1
mov eax, dword [0x408634]
call fcn.0040d7c4
call fcn.00404614
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.004035e4
mov eax, ebx
call fcn.0040553c
mov dword [ebp - 0x24], eax
mov esi, 0x4655e8
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406a80
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.0040554c
test eax, eax
jle 0x46557c
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x465568
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404e58
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x46550e
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404e70
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x465524
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404e70
mov eax, dword [ebp - 0x54]
call fcn.00405078
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404e58
mov eax, dword [ebp - 0x58]
call fcn.00405078
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x46556a
xor eax, eax
test al, al
je 0x465575
mov ebx, 0x15
jmp 0x465581
mov ebx, 0x10
jmp 0x465581
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x4a4288]
call fcn.004652b8
mov eax, dword [ebp - 4]
call fcn.004652b8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.00406a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4655e0
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404c0c
lea eax, [ebp - 0xc]
mov edx, dword [0x408020]
call fcn.00405954
ret
Function at 0x43b666
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x43b3c1
mov edi, eax
call fcn.0043b68b
sub edi, eax
inc edi
xor dword [edx], ecx
dec eax
inc edx
dec edi
inc eax
cmp edx, ebx
jne fcn.0043b666
inc eax
and eax, edi
ret
Function at 0x4011e4
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
mov byte [ebp - 1], 1
push ebx
push esi
push edi
mov esi, str._Rename__r_n
lea edi, [ebp - 0x24]
push 0x104
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x128]
xor ebx, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.WinInit.Ini
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
lea eax, [ebp - 0x128]
push 0x8000080
push 4
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x401253
mov byte [ebp - 1], bl
jmp 0x401376
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_r_n
lea edx, [ebp - 0x528]
xor esi, esi
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 0x14], eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 8]
add eax, 0xa
push eax
push esi
push 4
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x401350
push esi
push esi
push esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x401341
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0xc]
call fcn.00401173
test eax, eax
jne 0x4012eb
lea eax, [ebp - 0x24]
push eax
push 0x406020
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
jmp 0x401314
push 0xa
push eax
call fcn.00401e80
add esp, 8
lea ebx, [eax + 1]
mov eax, dword [ebp - 0xc]
sub eax, ebx
add eax, dword [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 0x14]
add eax, ebx
push eax
call fcn.00401d20
add esp, 0xc
sub ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
lea esi, [ebp - 0x528]
mov edi, dword [ebp - 0xc]
mov ecx, eax
shr ecx, 2
add edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0x14]
add dword [ebp - 8], ecx
jmp 0x401345
mov byte [ebp - 1], 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401354
mov byte [ebp - 1], 0
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401382
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
lea eax, [ebp - 0x108]
mov bl, 1
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x401442
push 0x406110
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 4
lea ecx, [ebp - 0x108]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
lea eax, [ebp - 0x108]
push eax
je 0x4013fd
push str.UnInstaller:____Setup_to_remove_file__s_at_Reboot__Windows_NT__n
lea ecx, [ebp - 0x30c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x401444
push 0x4060c8
call fcn.004011e4
mov bl, al
lea eax, [ebp - 0x108]
push eax
test bl, bl
je 0x40142b
push str.UnInstaller:____Setup_to_remove_file__s_at_Reboot__Windows_95__n
lea ecx, [ebp - 0x30c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x401444
push str.UnInstaller:____Could_not_setup_file__s_to_be_removed_n
lea ecx, [ebp - 0x30c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x401444
xor bl, bl
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40145a
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
lea eax, [ebp - 0x108]
mov bl, 1
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40151a
push 0x406110
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 4
lea ecx, [ebp - 0x108]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
lea eax, [ebp - 0x108]
push eax
je 0x4014d5
push str.UnInstaller:____Setup_to_remove_file__s_at_Reboot__Windows_NT__n
lea ecx, [ebp - 0x30c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40151c
push 0x4060c8
call fcn.004011e4
mov bl, al
lea eax, [ebp - 0x108]
push eax
test bl, bl
je 0x401503
push str.UnInstaller:____Setup_to_remove_file__s_at_Reboot__Windows_95__n
lea ecx, [ebp - 0x30c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40151c
push str.UnInstaller:____Could_not_setup_file__s_to_be_removed_n
lea ecx, [ebp - 0x30c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40151c
xor bl, bl
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401532
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
lea eax, [ebp - 4]
push esi
push edi
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401657
xor ebx, ebx
push 0x100
lea eax, [ebp - 0x150]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x40164e
lea eax, [ebp - 8]
lea ecx, [ebp - 0x150]
push eax
push ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40162f
lea edi, [ebp - 0x50]
xor eax, eax
mov ecx, 0x10
lea edx, [ebp - 0xc]
mov dword [ebp - 0x10], 0x40
mov dword [ebp - 0xc], 1
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x50]
push eax
push ecx
push edx
push 0
push str.InfPath
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401626
push 0x100
lea eax, [ebp - 0x250]
push eax
lea edi, [ebp - 0x50]
push 8
push dword [0x407168]
call dword [sym.imp.USER32.dll_LoadStringA]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [ebp - 0x250]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x250]
push eax
call fcn.0040145a
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
push 0x100
lea eax, [ebp - 0x150]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x401578
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4