joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476a00
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 0x476a6a
mov eax, ebx
call fcn.00478e78
test al, al
jne 0x476a6a
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.004057cc
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x476a57
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x476a77
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405730
jmp 0x476a77
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00405730
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x477f78
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x477fe6
mov eax, esi
call fcn.00458274
test al, al
je 0x477fe6
mov eax, dword [ebx + 0x84]
call fcn.00457ec4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x477fe6
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x477fda
push 0
mov eax, dword [ebx + 0x84]
call fcn.00457ec4
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0044fdd8
jmp 0x477fe6
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00477db4
pop esi
pop ebx
ret

Function at 0x47d874
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x47d8d8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040594c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.0040abd0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d8df
lea eax, [ebp - 0xc]
call fcn.004056dc
ret

Function at 0x482f68
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push 0x58
xor edx, edx
mov eax, ebx
call fcn.0047d80c
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
je 0x482fc0
mov ecx, 1
mov edx, 0x20
mov eax, 0x4f2b74
test dword [ebp - 0x14], ecx
je 0x482fb8
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
jmp 0x482fdd
add ecx, ecx
add eax, 0xc
dec edx
jne 0x482f9e
mov eax, dword [ebp - 4]
mov edx, dword [0x4f2b74]
mov dword [eax], edx
mov edx, dword [0x4f2b78]
mov dword [eax + 4], edx
mov edx, dword [0x4f2b7c]
mov dword [eax + 8], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48353c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004056dc
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x48359c
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x48359c
cmp byte [ebp - 0x102], 0
je 0x48359c
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.0040594c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4916f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4917ee
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x491800
mov eax, ebx
call fcn.00405b6c
push eax
mov eax, dword [0x4f67f8]
push eax
call sub.kernel32.dll_FindResourceA
test eax, eax
jne 0x491753
lea eax, [ebp - 8]
mov ecx, ebx
mov edx, 0x491814
call fcn.004059f4
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40929c]
call fcn.0040eb74
call fcn.00405054
push eax
mov eax, dword [0x4f67f8]
push eax
call sub.kernel32.dll_LoadResource
test eax, eax
jne 0x491786
lea eax, [ebp - 0xc]
mov ecx, ebx
mov edx, 0x491814
call fcn.004059f4
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x40929c]
call fcn.0040eb74
call fcn.00405054
mov byte [ebp - 1], 0
xor edx, edx
push ebp
push 0x4917c9
push dword fs:[edx]
mov dword fs:[edx], esp
push eax
call sub.kernel32.dll_LockResource
cmp byte [eax], 0xff
jne 0x4917ab
lea edx, [eax + 1]
cmp byte [edx], 0xfe
je 0x4917ba
cmp byte [eax], 0xfe
jne 0x4917b6
inc eax
cmp byte [eax], 0xff
je 0x4917ba
xor eax, eax
jmp 0x4917bc
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4917d3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4917f5
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405700
ret

Function at 0x4ab28c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4ab2e7
lea eax, [ebp - 4]
push eax
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4ab2bb
call fcn.004102c8
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov ecx, 6
call fcn.00403208
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push 6
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x4ab2e7
call fcn.004102c8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b44c4
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
push 0x4b4464
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4f9218], eax
cmp dword [0x4f9218], 0
jne 0x4b44ee
call fcn.004102c8
pop ebp
ret
Function at 0x4b480c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00405ee4
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4b485a
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040608c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b4860
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 2
movzx eax, bx
push eax
call sub.user32.dll_MapVirtualKeyW
pop ebx
pop ebp
ret

Function at 0x4b825c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b83cd
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b83a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.004058c4
lea eax, [ebp - 0x118]
mov edx, 0x4b83e4
call fcn.004059a8
mov eax, dword [ebp - 0x118]
call fcn.00405b6c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x4b831a
lea eax, [ebp - 0x111]
call fcn.0040b494
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.004057cc
jmp 0x4b8321
mov eax, esi
call fcn.004056dc
cmp bl, 0x61
jae 0x4b8342
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040f990
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00405730
jmp 0x4b835c
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040f8fc
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00405730
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x4b83f0
call fcn.0040bbec
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00405730
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b83af
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
Function at 0x4bb580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 1
xor eax, eax
push ebp
push 0x4bb63d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebx + 4]
mov edx, 0x4bb660
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x40]
mov ecx, dword [ebx + 8]
mov edx, 0x4bb660
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x4c]
mov ecx, dword [ebx + 0xc]
mov edx, 0x4bb678
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x40]
mov ecx, dword [ebx + 0x10]
mov edx, 0x4bb678
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x4c]
mov ecx, dword [ebx + 0x1c]
mov edx, 0x4bb690
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x40]
mov ecx, dword [ebx + 0x20]
mov edx, 0x4bb690
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x4c]
mov ecx, dword [ebx + 0x24]
mov edx, 0x4bb6a0
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x40]
mov ecx, dword [ebx + 0x28]
mov edx, 0x4bb6a0
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x4c]
mov ecx, dword [ebx + 0x2c]
mov edx, 0x4bb6b0
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x40]
mov ecx, dword [ebx + 0x30]
mov edx, 0x4bb6b0
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x4c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bb64b
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4bd07c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4bd0ba
cmp dword [ebp - 0x90], 6
jb 0x4bd0ba
call fcn.00465a50
call fcn.00465b58
test al, al
je 0x4bd0ba
mov al, 1
jmp 0x4bd0bc
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4bdc24
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
push 0
push 0
call sub.kernel32.dll_GetTempPathA
mov ebx, eax
mov eax, ebx
call fcn.00402ef8
mov dword [ebp - 4], eax
mov eax, 0x104
call fcn.00402ef8
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4bdcaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_GetTempPathA
mov eax, dword [ebp - 8]
push eax
push 0
mov eax, esi
call fcn.00405b6c
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov eax, edi
mov edx, dword [ebp - 8]
call fcn.004058d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdcb1
mov eax, dword [ebp - 4]
call fcn.00402f14
mov eax, dword [ebp - 8]
call fcn.00402f14
ret
Function at 0x4be094
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040af30
test al, al
je 0x4be145
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.00405b6c
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4be145
mov eax, ebx
call fcn.00402ef8
mov dword [ebp - 0xc], eax
push ebp
push 0x4be13e
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4be128
mov edx, dword [ebp - 0xc]
mov eax, edx
mov ecx, ebx
sub ecx, 0x34
test ecx, ecx
jle 0x4be119
mov eax, edx
cmp dword [eax], 0xfeef04bd
je 0x4be119
inc edx
dec ecx
jne 0x4be10b
cmp dword [eax], 0xfeef04bd
jne 0x4be128
movzx eax, word [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be145
mov eax, dword [ebp - 0xc]
call fcn.00402f14
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4be3c4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4be4c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax]
mov edx, 0x4be4dc
call fcn.004bdcb8
mov eax, dword [ebp + 8]
cmp byte [eax - 0xd], 1
jne 0x4be414
mov eax, dword [ebp + 8]
mov dword [eax - 4], 0xc
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 8], edx
jmp 0x4be47f
mov eax, dword [ebp + 8]
cmp byte [eax - 0xd], 2
jne 0x4be431
mov eax, dword [ebp + 8]
mov dword [eax - 4], 0x12c
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 8], edx
jmp 0x4be47f
push 0x12d
lea eax, [ebp - 0x262]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 8]
push eax
push 0x12d
lea eax, [ebp - 0x135]
push eax
mov eax, dword [ebp - 4]
call fcn.00405b6c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
jne 0x4be47f
mov eax, dword [ebp + 8]
mov dword [eax - 4], 0xc
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax - 8], edx
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0xc
ja 0x4be49c
mov eax, dword [ebp + 8]
lea edi, [eax - 0x2d]
mov esi, 0x4be4e0
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
jmp 0x4be4ae
mov eax, dword [ebp + 8]
lea edi, [eax - 0x2d]
mov esi, 0x4be500
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be4cb
lea eax, [ebp - 4]
call fcn.004056dc
ret
Function at 0x4bf1f0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4bf3b3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetUserDefaultLangID
mov edi, 0x19
xor ebx, ebx
jmp 0x4bf228
cmp ax, word [ebx*8 + 0x4f3030]
je 0x4bf22f
inc ebx
mov edx, edi
dec edx
cmp ebx, edx
jl 0x4bf21d
mov edx, edi
dec edx
cmp ebx, edx
jne 0x4bf267
xor ebx, ebx
cmp edi, ebx
jle 0x4bf267
movzx edx, word [ebx*8 + 0x4f3030]
mov ecx, edx
and cx, 0x3ff
mov esi, eax
and si, 0x3ff
cmp cx, si
jne 0x4bf262
movzx edx, dx
shr edx, 0xa
cmp edx, 1
je 0x4bf267
inc ebx
cmp edi, ebx
jg 0x4bf23c
mov eax, edi
dec eax
cmp ebx, eax
jne 0x4bf270
xor ebx, ebx
cmp eax, ebx
jle 0x4bf28a
lea eax, [ebp - 4]
lea edx, [ebx*8 + 0x4f3033]
call fcn.00405940
mov dword [ebp - 0xc], 1
mov eax, 0x4bf3cc
call fcn.004bf0cc
mov esi, eax
test esi, esi
jl 0x4bf2f6
lea edx, [ebp - 8]
mov eax, esi
call fcn.00403464
mov edx, dword [ebp - 8]
mov eax, 0x4bf3dc
call fcn.00405cb8
mov esi, eax
test esi, esi
je 0x4bf2f6
lea eax, [ebp - 8]
push eax
lea edx, [esi + 1]
mov ecx, 0x7fffffff
mov eax, dword [ebp - 8]
call fcn.00405bd4
or edx, 0xffffffff
mov eax, dword [ebp - 8]
call fcn.0040abd0
mov ebx, eax
test ebx, ebx
jl 0x4bf2f6
cmp edi, ebx
jle 0x4bf2f6
lea eax, [ebp - 4]
lea edx, [ebx*8 + 0x4f3033]
call fcn.00405940
mov dword [ebp - 0xc], 2
cmp ebx, 0xffffffff
jne 0x4bf329
or esi, 0xffffffff
inc esi
lea eax, [ebp - 0x10]
lea edx, [esi*8 + 0x4f3033]
call fcn.00405940
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.00405b04
jne 0x4bf324
mov ebx, esi
mov dword [ebp - 0xc], 3
cmp esi, 0x18
jl 0x4bf2fe
cmp ebx, 0xffffffff
je 0x4bf333
cmp ebx, 0x19
jl 0x4bf335
xor ebx, ebx
mov dword [0x4f9260], ebx
movzx eax, byte [ebx*8 + 0x4f3032]
mov dword [0x4f925c], eax
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00480f48
test al, al
jne 0x4bf370
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.00480f54
cmp dword [ebp - 0xc], 0
jle 0x4bf390
movzx edx, byte [ebx*8 + 0x4f3032]
mov eax, dword [0x4f3424]
mov eax, dword [eax]
mov eax, dword [eax + 0x360]
call fcn.0047fbf8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf3ba
lea eax, [ebp - 0x10]
call fcn.004056dc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405700
ret
Function at 0x4c06f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe84
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b5c
lea eax, [ebp - 0x168]
mov edx, dword [0x4090e4]
call fcn.0040649c
xor eax, eax
push ebp
push 0x4c087b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x169], 0
mov byte [ebp - 0x16a], 1
mov eax, dword [ebp - 4]
call fcn.0040af54
test al, al
je 0x4c0844
lea ecx, [ebp - 0x170]
mov edx, 0x4c0898
mov eax, dword [ebp - 4]
call fcn.004bdcb8
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x168]
mov edx, 0x2f
call fcn.0040b038
mov edi, eax
xor eax, eax
push ebp
push 0x4c0825
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
jne 0x4c080c
lea ecx, [ebp - 0x174]
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 4]
call fcn.004bdcb8
mov eax, dword [ebp - 0x174]
mov edx, 0x20
call fcn.0040af8c
lea ecx, [ebp - 0x178]
mov edx, dword [ebp - 0x154]
mov eax, dword [ebp - 4]
call fcn.004bdcb8
mov esi, dword [ebp - 0x178]
mov dword [ebp - 0x17c], esi
mov eax, dword [ebp - 0x17c]
call fcn.00405b6c
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4c07fb
mov byte [ebp - 0x16a], 0
lea eax, [ebp - 0x168]
call fcn.0040b088
mov edi, eax
test edi, edi
je 0x4c0795
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c082c
lea eax, [ebp - 0x168]
call fcn.0040b0ac
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c0882
lea eax, [ebp - 0x178]
mov edx, 3
call fcn.00405700
lea eax, [ebp - 0x168]
mov edx, dword [0x4090e4]
call fcn.0040656c
lea eax, [ebp - 4]
call fcn.004056dc
ret

Function at 0x4c0a14
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x2c]
xor eax, eax
push ebp
push 0x4c0a93
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_CreateProcessA
mov esi, eax
test esi, esi
jne 0x4c0a6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c0a9f
push 0x7d
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebx + 8]
call fcn.004c0968
test al, al
jne 0x4c0a65
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c0a9f
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x28
Function at 0x4c0aa8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x30]
xor eax, eax
push ebp
push 0x4c0b2b
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_CreateProcessAsUserA
mov esi, eax
test esi, esi
jne 0x4c0b04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c0b37
push 0x7d
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebx + 8]
call fcn.004c0968
test al, al
jne 0x4c0afd
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c0b37
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x2c
Function at 0x4c2cec
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b5c
lea eax, [ebp - 0x10]
mov edx, dword [0x4c2c38]
call fcn.0040649c
xor eax, eax
push ebp
push 0x4c2db1
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405774
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00405774
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x4c2c58
call sub.user32.dll_EnumWindows
cmp dword [ebp - 0xc], 0
je 0x4c2d86
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x18]
push eax
push 0
push 1
movzx eax, word [0x4c2dc0]
push eax
mov ecx, 0x4c2dcc
mov dl, 1
mov eax, dword [0x4bd284]
call fcn.004bd2ec
call fcn.004bd5d8
cmp ax, 5
jne 0x4c2d88
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2db8
lea eax, [ebp - 0x10]
mov edx, dword [0x4c2c38]
call fcn.0040656c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405700
ret
Function at 0x4c3ee4
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4c3f36
lea eax, [ebp - 0x14]
push eax
push 0x4c3f50
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
lea eax, [ebp - 0x18]
lea edx, [ebp - 8]
push edx
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push 2
call sub.user32.dll_ExitWindowsEx
test eax, eax
jne 0x4c3f4c
push 0
push 0
call sub.user32.dll_ExitWindowsEx
mov esp, ebp
pop ebp
ret
Function at 0x4cd1c0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b5c
xor eax, eax
push ebp
push 0x4cd2bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
lea eax, [ebp - 0xc]
mov edx, 0x4cd2d8
call fcn.00405774
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405774
lea eax, [ebp - 0x11]
push eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004be198
test al, al
jne 0x4cd222
xor ebx, ebx
jmp 0x4cd2a4
lea eax, [ebp - 0x265]
push eax
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405b6c
push eax
mov eax, dword [ebp - 4]
call fcn.00405b6c
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
jne 0x4cd24a
xor ebx, ebx
jmp 0x4cd2a4
lea eax, [ebp - 4]
lea edx, [ebp - 0x265]
mov ecx, 0x105
call fcn.0040594c
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x160]
call fcn.0040384c
mov edx, 1
lea eax, [ebp - 0x160]
call fcn.00403f18
call fcn.004031e8
test eax, eax
jne 0x4cd296
xor ebx, ebx
lea eax, [ebp - 0x160]
call fcn.00403914
call fcn.00403054
mov eax, dword [ebp - 4]
call fcn.00405b6c
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd2c6
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405700
ret