joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4683d0
Capabilities:
Delete file
Get file attributes
Move file
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x210
push ebx
push esi
mov esi, dword [esp + 0x21c]
push edi
test esi, esi
jne 0x4683f0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
test bl, 1
mov dword [esp + 0xc], ebx
je 0x46840e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x224]
push esi
test eax, eax
je 0x46844a
push str._s.tmp
lea eax, [esp + 0x1c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
jmp 0x46846e
push 0x4ce4dc
lea ecx, [esp + 0x1c]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [esp + 0x14]
push 0x4da060
push edx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x468491
pop edi
pop esi
pop ebx
add esp, 0x210
ret
push ebp
push edi
push 1
lea eax, [esp + 0x1c]
push 2
push eax
mov dword [esp + 0x24], 0xfeff
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ebp, dword [esi + 0x20c]
add esp, 0x10
test ebp, ebp
je 0x4684fa
mov ebx, dword [sym.imp.MSVCRT.dll_fwprintf]
mov ecx, dword [ebp]
push ecx
push str._r_n_s_r_n
push edi
call ebx
mov esi, dword [ebp + 0xc]
add esp, 0xc
test esi, esi
je 0x4684e8
mov edx, dword [esi]
push edx
push 0x4da250
push edi
call ebx
mov esi, dword [esi + 4]
add esp, 0xc
test esi, esi
jne 0x4684d3
mov ebp, dword [ebp + 8]
test ebp, ebp
jne 0x4684bd
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x224]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x22c]
add esp, 4
test eax, eax
pop ebp
je 0x468531
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea eax, [esp + 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x210
ret
Function at 0x46a910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
and ecx, 0xffff
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x46a962
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x46a962
push ebp
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x46a956
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
pop ebp
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x46a970
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edi
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push edx
push eax
call fcn.0046a910
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x46a995
pop edi
ret
mov ecx, dword [esp + 0xc]
push esi
push 0x4da060
push ecx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x46a9c8
mov edx, dword [esp + 0x18]
push esi
push 1
push edx
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
pop esi
mov eax, 1
pop edi
ret

Function at 0x46ad70
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
cmp eax, 0x104
push esi
ja 0x46ae7a
je 0x46adcd
sub eax, 0x100
je 0x46adcd
sub eax, 2
jne case.0x46ade7.12
mov eax, dword [esp + 0x18]
cmp eax, 0xd
jne 0x46adb1
mov eax, dword [esp + 0x20]
pop esi
mov dword [eax], 1
xor eax, eax
add esp, 8
ret 0x14
cmp eax, 9
jne case.0x46ade7.12
mov ecx, dword [esp + 0x20]
xor eax, eax
pop esi
mov dword [ecx], 1
add esp, 8
ret 0x14
mov esi, dword [esp + 0x18]
lea eax, [esi - 9]
cmp eax, 0xb2
ja case.0x46ade7.12
xor edx, edx
mov dl, byte [eax + 0x46aecc]
jmp dword [edx*4 + 0x46aebc]
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je case.0x46ade7.12
mov eax, dword [esp + 0x20]
pop esi
mov dword [eax], 1
xor eax, eax
add esp, 8
ret 0x14
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
je case.0x46ade7.12
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0046af80
mov edx, dword [esp + 0x24]
add esp, 4
xor eax, eax
mov dword [edx], 1
pop esi
add esp, 8
ret 0x14
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 8
test al, al
jne case.0x46ade7.12
mov eax, dword [esp + 0x10]
push eax
push esi
push 0x4401
push 2
push eax
call dword [sym.imp.USER32.dll_GetAncestor]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop esi
add esp, 8
ret 0x14
cmp eax, 0x205
jne case.0x46ade7.12
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
je case.0x46ade7.12
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0
push 0x437
push ecx
mov dword [esp + 0x18], 0xffffffff
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop esi
add esp, 8
ret 0x14
Function at 0x46b1d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bc8df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004b5fa0
lea ebp, [esi + 0x24]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x18], edi
call fcn.004a6ec0
lea ecx, [esi + 0x98]
mov byte [esp + 0x18], 1
mov dword [esi + 0x28], 0x4bfb10
call fcn.00463fa0
lea ecx, [esi + 0xb0]
mov byte [esp + 0x18], 2
call fcn.00463fa0
push edi
lea ecx, [esi + 0x1130]
mov byte [esp + 0x1c], 3
call fcn.00496920
mov dword [esi + 0xc8], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x1128], edi
mov dword [esi + 0x112c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
mov ecx, 0xa
xor eax, eax
lea edi, [esi + 0x30]
mov dword [esi], 0x4c0958
mov dword [ebp], 0x4c0954
mov dword [esi + 0x28], 0x4c0944
mov dword [esi + 0xdc], 3
mov dword [esi + 0x94], 3
mov dword [esi + 0x90], 0xa8a8a8
mov dword [esi + 0xd4], 5
mov dword [esi + 0x74], 0x12
mov dword [esi + 0x78], 1
rep stosd dword es:[edi], eax
mov ecx, 0x412
lea edi, [esi + 0xe0]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x46b1e7
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4bc8df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004b5fa0
lea ebp, [esi + 0x24]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x18], edi
call fcn.004a6ec0
lea ecx, [esi + 0x98]
mov byte [esp + 0x18], 1
mov dword [esi + 0x28], 0x4bfb10
call fcn.00463fa0
lea ecx, [esi + 0xb0]
mov byte [esp + 0x18], 2
call fcn.00463fa0
push edi
lea ecx, [esi + 0x1130]
mov byte [esp + 0x1c], 3
call fcn.00496920
mov dword [esi + 0xc8], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0xd0], edi
mov dword [esi + 0xcc], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x8c], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0xd8], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x1128], edi
mov dword [esi + 0x112c], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
mov ecx, 0xa
xor eax, eax
lea edi, [esi + 0x30]
mov dword [esi], 0x4c0958
mov dword [ebp], 0x4c0954
mov dword [esi + 0x28], 0x4c0944
mov dword [esi + 0xdc], 3
mov dword [esi + 0x94], 3
mov dword [esi + 0x90], 0xa8a8a8
mov dword [esi + 0xd4], 5
mov dword [esi + 0x74], 0x12
mov dword [esi + 0x78], 1
rep stosd dword es:[edi], eax
mov ecx, 0x412
lea edi, [esi + 0xe0]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x46bd20
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x218
push esi
mov esi, ecx
cmp word [esi + 0x30], 0
je 0x46bd9b
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
push 0x103
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0x6c]
stosw word es:[edi], ax
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x18], 0
pop edi
push 1
jne 0x46bd7c
mov edx, dword [esi + 4]
push 0
push edx
call fcn.004b63b0
add esp, 0xc
pop esi
add esp, 0x218
ret
lea eax, [esp + 8]
mov ecx, esi
push eax
call fcn.0046b3c0
mov edx, dword [esi + 4]
lea ecx, [esp + 4]
push 1
push ecx
push edx
call fcn.004b63b0
add esp, 0xc
pop esi
add esp, 0x218
ret
Function at 0x46bef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x26c
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x112c]
xor esi, esi
cmp eax, esi
push edi
je 0x46bf20
push eax
mov ecx, 0x5c02c8
call fcn.0049d5f0
mov eax, dword [ebx + 0x112c]
push eax
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [ebx + 0x1128]
cmp eax, esi
je 0x46bf37
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Destroy]
mov dword [ebx + 0x1128], esi
push esi
push esi
push 0x21
push 0x10
push 0x10
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
mov dword [ebx + 0x1128], eax
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push 1
mov dword [ebx + 0x112c], eax
call fcn.0046cd40
mov ecx, eax
call fcn.0046d410
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, esi
mov dword [esp + 0x10], eax
jle 0x46c01a
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x76]
mov word [esp + 0x74], 0
rep stosd dword es:[edi], eax
push 1
lea ecx, [esp + 0x78]
push 0x103
push ecx
push esi
stosw word es:[edi], ax
call fcn.0046cd40
mov ecx, eax
call fcn.0046d3a0
test eax, eax
je 0x46c01a
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x44]
lea edx, [esp + 0x74]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x74]
lea edi, [esi + 1]
push eax
mov dword [esp + 0x48], 0x30
mov dword [esp + 0x4c], 0x42
mov dword [esp + 0x58], edi
mov dword [esp + 0x6c], edx
call ebp
add esp, 4
mov ecx, ebx
mov dword [esp + 0x6c], eax
push esi
call fcn.0046c150
mov edx, dword [ebx + 0x112c]
push 0
push 0
push esi
lea ecx, [esp + 0x50]
push 0
push ecx
push 1
push esi
push edx
mov ecx, 0x5c02c8
call fcn.0049d770
mov eax, dword [esp + 0x10]
mov esi, edi
cmp esi, eax
jl 0x46bf77
xor eax, eax
mov ecx, 0xc
push eax
lea edi, [esp + 0x18]
push eax
push esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0x112c]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x30
push eax
push 1
push esi
push ecx
mov ecx, 0x5c02c8
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x3c], 0x800
call fcn.0049d770
push 0x98
call fcn.0046a9d0
mov edx, eax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 0x43
mov dword [esp + 0x2c], 0x1001
mov dword [esp + 0x40], edx
call ebp
mov edx, dword [0x5e352c]
add esp, 8
neg edx
sbb edx, edx
push 0
mov dword [esp + 0x40], eax
push 0
and edx, 8
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push 0
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0x112c]
push eax
lea ecx, [esi + 1]
push 1
push ecx
push edx
mov ecx, 0x5c02c8
call fcn.0049d770
push 0x8c
call fcn.0046a9d0
mov edx, eax
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x1c], 0x30
mov dword [esp + 0x20], 0x42
mov dword [esp + 0x2c], 0x1000
mov dword [esp + 0x40], edx
call ebp
add esp, 8
mov ecx, dword [ebx + 0x112c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x14]
push 0
push 0
push 0xffffffffffffffff
push 0
push eax
add esi, 2
push 1
push esi
push ecx
mov ecx, 0x5c02c8
call fcn.0049d770
mov ecx, ebx
call fcn.0046be10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret
Function at 0x46c500
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push esi
push edi
mov esi, ecx
push eax
call fcn.0046cd40
mov ecx, eax
call fcn.0046cf70
mov edx, dword [esi + 0x6c]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x103
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 8], 0
mov ecx, esi
je 0x46c562
call fcn.0046b660
pop edi
pop esi
add esp, 0x208
ret 4
call fcn.0046bdd0
pop edi
pop esi
add esp, 0x208
ret 4
Function at 0x46f490
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x1294
call fcn.004b7a60
mov ax, word [0x4e6b30]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov word [esp + 0x54], ax
mov ecx, 0x493
xor eax, eax
lea edi, [esp + 0x56]
rep stosd dword es:[edi], eax
mov ecx, dword [0x5bc8c0]
xor edx, edx
mov dh, byte [esi + 0x10]
mov ebp, dword [esp + 0x12b8]
mov dl, byte [esi + 0xc]
push ecx
mov ecx, dword [esp + 0x12b0]
push str._mw:
stosw word es:[edi], ax
mov eax, dword [esp + 0x12c4]
push edx
mov edx, dword [esp + 0x12bc]
push 0x4ce988
push eax
and al, 2
push 0x4ce968
push ebp
neg al
push 0x4ce940
push ecx
mov ecx, dword [esp + 0x12cc]
push 0x4ce978
sbb eax, eax
push edx
and eax, 5
push 0x4ce970
push ecx
inc eax
push 0x4ce980
push eax
push str._tp:
push 0x4e6b8c
push str.__s___s_d__s_d__s_d__s_d__s_d__s_d__s_d__s_d
lea edx, [esp + 0x9c]
push 0x927
push edx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x64]
add esp, 0x50
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x12b4]
lea eax, [esp + 0x10]
push edi
push eax
push 0
push 0
push 0
push 1
push 0
lea ecx, [esp + 0x70]
push 0
push ecx
push 0
mov dword [esp + 0x38], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test ebx, ebx
je 0x46f59b
mov eax, dword [edi + 4]
test eax, eax
je 0x46f59b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
cmp ebp, 1
jne 0x46f5b4
mov dword [esi + 0x20], ebp
mov edx, dword [edi]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 8]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x1c], ecx
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x1294
ret 0x18
Function at 0x471690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x670
mov ecx, dword [esp + 0x678]
push ebx
lea eax, [esp + 0x5c]
push ecx
mov dword [esp + 0xc], 0x30
mov dword [esp + 0x10], 0x147
mov dword [esp + 0x30], eax
mov dword [esp + 0x3c], 0x21
call dword [sym.imp.USER32.dll_GetMenuItemCount]
xor ebx, ebx
mov dword [esp + 4], eax
test eax, eax
jle 0x4717d5
push ebp
mov ebp, dword [esp + 0x688]
push esi
mov esi, dword [esp + 0x680]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x688]
lea edx, [esp + 0x14]
push edx
push 0x400
push ebx
push eax
mov word [esp + 0x78], 0
mov dword [esp + 0x4c], 0x104
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
test eax, eax
je 0x4717c5
lea ecx, [esp + 0x68]
push ecx
call fcn.00475ab0
mov eax, dword [esp + 0x690]
add esp, 4
lea edx, [esp + 0x68]
lea ecx, [esp + 0x270]
push edx
push eax
push str._s____s
push 0x208
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [esp + 0x3c]
add esp, 0x14
test eax, eax
je 0x471775
mov edx, dword [esp + 0x694]
lea ecx, [esp + 0x270]
inc edx
push edx
push ebp
push ecx
push eax
push esi
call fcn.00471690
add esp, 0x14
jmp 0x4717c5
mov eax, dword [esp + 0x1c]
test ah, 8
jne 0x4717c5
test byte [esp + 0x20], 3
jne 0x4717c5
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x4717c5
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
push 0
lea edx, [esp + 0x278]
push 0x40b
push esi
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x5c], edx
call edi
cmp ebp, dword [esp + 0x24]
jne 0x4717c5
push 0
push eax
push 0x14e
push esi
call edi
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x4716ea
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x670
ret

Function at 0x4732e0
Capabilities:
Get common file path

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
mov dword [esp + 8], 0
je 0x47332a
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x47332a
mov ecx, edi
call fcn.004732c0
mov ecx, dword [eax]
lea edx, [esp + 8]
push 0
push edx
push 0
push esi
push 0
push 0
push eax
call dword [ecx + 0xc]
test eax, eax
je 0x473348
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x473348
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8

Function at 0x473740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bcc63
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004b5fa0
lea edi, [esi + 0x24]
mov dword [esp + 0x14], 0
mov ecx, edi
call fcn.0049b310
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.0040bbf0
mov dword [edi], 0x4c0998
mov ecx, 0x412
xor eax, eax
lea edi, [esi + 0x5690]
mov dword [esi], 0x4c098c
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4737e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4bcc9f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea edi, [esi + 0x24]
mov dword [esi], 0x4c098c
mov dword [edi], 0x4c0998
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], 1
call fcn.0040bdc0
mov ecx, esi
mov byte [esp + 0x18], 0
neg ecx
sbb ecx, ecx
and ecx, edi
call fcn.0049b340
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004b5fe0
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x473c40
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x473c78
push edi
lea edi, [esi + 0x30]
push 2
mov ecx, edi
mov dword [esi + 0x28], 1
call fcn.0040c900
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 1
mov ecx, edi
call fcn.0040c670
pop edi
pop esi
ret

Function at 0x4743b0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.004746f0
mov eax, dword [esi + 4]
push 0x3f0
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x402
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ebx, [esi + 0x166c]
mov ecx, ebx
call fcn.00416b10
lea edx, [ebx + 0x5d4e0]
mov ecx, 0x412
xor eax, eax
mov edi, edx
mov ebp, dword [sym.imp.MSVCRT.dll__snwprintf]
rep stosd dword es:[edi], eax
lea ecx, [esi + 0x214]
push ecx
push 0x4ce4dc
push 0x824
push edx
call ebp
mov dx, word [0x4e6b30]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], dx
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x10]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esi + 0x125c]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esi + 0xc]
push str._s_s.zip
push 0x103
push eax
call ebp
lea edx, [ebx + 0x5d0d0]
mov ecx, 0x82
xor eax, eax
mov edi, edx
add esp, 0x14
rep stosd dword es:[edi], eax
lea eax, [esi + 0xc]
push eax
push 0x4ce4dc
push 0x104
push edx
call ebp
mov esi, dword [esi + 4]
add esp, 0x10
mov ecx, ebx
mov dword [ebx + 0x269c], 0x4744c0
mov dword [ebx + 0x2698], esi
call fcn.00416a40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x474920
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1084
call fcn.004b7a60
mov ecx, dword [esp + 0x1088]
xor eax, eax
cmp ecx, eax
je 0x474a13
mov edx, dword [esp + 0x108c]
cmp edx, eax
je 0x474a13
cmp dword [esp + 0x1090], eax
je 0x474a13
cmp dword [0x5bc474], eax
je 0x474a06
push edi
mov ecx, 0x411
lea edi, [esp + 0x42]
mov word [esp + 0x40], ax
rep stosd dword es:[edi], eax
push edx
push 0x4ce82c
push 8
push str._tp:
stosw word es:[edi], ax
push str._s_d__s__s_
lea eax, [esp + 0x54]
push 0x823
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x1c
rep stosd dword es:[edi], eax
lea edx, [esp + 4]
lea ecx, [esp + 0x40]
push edx
mov dword [esp + 8], 0x3c
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x18], 0x4e6b8c
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop edi
je 0x4749f8
mov eax, dword [esp + 0x38]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x1084
ret 0x10
push edx
call fcn.0041dfb0
mov ecx, eax
call fcn.0041fba0
add esp, 0x1084
ret 0x10
Function at 0x4762d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x31c
lea eax, [esp]
push esi
push eax
mov dword [esp + 8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp eax, 2
mov dword [0x5bc46c], ecx
mov dword [0x5bc478], ecx
mov dword [0x5bc470], ecx
mov dword [0x5bc474], ecx
mov esi, 1
jne 0x476360
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x476337
mov eax, dword [esp + 0xc]
cmp eax, ecx
jne 0x47632b
mov dword [0x5bc478], esi
jmp 0x47636a
cmp eax, esi
jne 0x47636a
mov dword [0x5bc470], esi
jmp 0x47636a
cmp eax, 6
jne 0x47636a
mov eax, dword [esp + 0xc]
cmp eax, ecx
je 0x476348
cmp eax, esi
jne 0x47636a
cmp eax, esi
mov dword [0x5bc470], esi
mov dword [0x5bc474], esi
jne 0x47636a
mov dword [0x5bc47c], esi
jmp 0x47636a
cmp eax, esi
jne 0x47636a
mov dword [0x5bc46c], esi
mov cx, word [0x4e6b30]
push edi
mov word [esp + 0x11c], cx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x11e]
rep stosd dword es:[edi], eax
lea edx, [esp + 0x11c]
push 0x103
push edx
stosw word es:[edi], ax
call fcn.00477030
mov ax, word [esp + 0x124]
add esp, 8
cmp ax, 0x37
pop edi
jne 0x4763be
mov dword [0x5bc480], esi
pop esi
add esp, 0x31c
ret
cmp ax, 0x36
jne 0x4763d2
mov dword [0x5bc484], esi
pop esi
add esp, 0x31c
ret
cmp ax, 0x38
jne 0x4763de
mov dword [0x5bc488], esi
pop esi
add esp, 0x31c
ret

Function at 0x4763f0
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x10], 2
jne 0x476424
cmp dword [esp + 4], 5
jne 0x476424
mov ecx, dword [esp + 8]
mov eax, 1
cmp ecx, eax
je 0x476426
xor eax, eax
add esp, 0x114
ret

Function at 0x476430
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
lea eax, [esp]
mov dword [esp], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x10], 2
jne 0x4764a2
cmp dword [esp + 4], 5
jne 0x4764a2
cmp dword [esp + 8], 1
jne 0x4764a2
push esi
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea ecx, [esp + 0x18]
push str.Service_Pack_2
push ecx
call esi
add esp, 8
test eax, eax
je 0x476495
lea edx, [esp + 0x18]
push str.Service_Pack_3
push edx
call esi
add esp, 8
test eax, eax
je 0x476495
xor eax, eax
pop esi
add esp, 0x114
ret
mov eax, 1
pop esi
add esp, 0x114
ret
xor eax, eax
add esp, 0x114
ret

Function at 0x476510
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0
test esi, esi
jne 0x476531
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret