joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f340
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 0x46f4eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46f4cc
mov dl, 1
mov eax, dword [0x41bc38]
call fcn.004034cc
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043f8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46f4bb
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.0045c368
test al, al
je 0x46f4ae
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, 0x46f4fc
lea eax, [ebp - 0x254]
call fcn.0040a164
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46f4ae
xor eax, eax
push ebp
push 0x46f4a7
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 0x46f534
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46f490
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404668
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 0x46f490
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404668
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f4ae
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46f3b1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0042051c
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 0x46f4f2
lea eax, [ebp - 0x260]
call fcn.004043f8
ret

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

Disassembly:
push ecx
mov eax, dword [0x539c10]
cmp byte [eax + 0xa5], 0
jne 0x46fe91
cmp dword [0x539c28], 0
jne 0x46fe52
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46fddc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x539c28], eax
cmp dword [0x539c24], 0
jne 0x46fe6d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x539c24], eax
cmp dword [0x539c2c], 0
jne 0x46fe91
push esp
push 0
push 0
push 0x46fd80
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x539c2c], eax
pop edx
ret
Function at 0x46ffb8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46ffcf
add esp, 0xfffffff0
call fcn.00403868
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426b7c
mov eax, dword [0x538930]
cmp word [eax + 2], 0
jne 0x46fff7
mov eax, dword [0x538930]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004716a8
mov eax, dword [0x538ae0]
cmp word [eax + 2], 0
jne 0x470011
mov eax, dword [0x538ae0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004718a0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b5d4]
call fcn.004034cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b5d4]
call fcn.004034cc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4291b8]
call fcn.00430c5c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x470198
mov eax, dword [0x5386c4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0043102c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x471e40
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x5386c4]
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.0040e124
test eax, eax
je 0x470106
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409b28
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e14c
test eax, eax
je 0x47011a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404668
mov eax, dword [0x5383cc]
cmp byte [eax], 0
jne 0x47014e
mov eax, ebx
call fcn.004702c0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0047201c
mov eax, ebx
call fcn.004729e0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x47018e
call fcn.004038c0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470540
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x539c10]
cmp dword [eax + 0x30], 0
je 0x4705ea
cmp dword [ebx + 0x94], 0
jne 0x4705e4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4704d0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4705e4
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 0x4705aa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4705e4
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.0041df44
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4705b9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x47114c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x471181
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.004044e8
jmp 0x47118e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040444c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4721f8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x472239
mov eax, esi
call fcn.00457930
test al, al
je 0x472239
mov eax, dword [ebx + 0x84]
call fcn.0045762c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x472239
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045762c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x49bcdc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x49bcf9
add esp, 0xfffffff0
call fcn.00403868
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x49be95
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004924e8
test al, al
jne 0x49bd36
mov ecx, 0x49bec8
mov dl, 1
mov eax, dword [0x486be4]
call fcn.0040d208
call fcn.00403d94
xor eax, eax
push ebp
push 0x49bd62
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00490f94
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00490e80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49bd82
mov eax, dword [ebp - 0x10]
mov edx, 0x49bf04
call fcn.00404dac
je 0x49bd9f
mov eax, esi
mov edx, 0x49bf04
call fcn.00404dac
jne 0x49bdc3
mov eax, edi
mov edx, 0x49bf14
call fcn.00404dac
je 0x49bdc3
mov ecx, 0x49beec
mov dl, 1
mov eax, dword [0x486e8c]
call fcn.0040d208
call fcn.00403d94
mov eax, edi
xor edx, edx
call fcn.00404dac
jne 0x49bdf0
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404dac
je 0x49bdf0
mov ecx, 0x49beec
mov dl, 1
mov eax, dword [0x486e8c]
call fcn.0040d208
call fcn.00403d94
mov eax, dword [ebp - 0x10]
mov edx, 0x49bf54
call fcn.00404dac
jne 0x49be23
mov eax, edi
mov edx, 0x49bf60
call fcn.00404dac
je 0x49be23
mov ecx, 0x49beec
mov dl, 1
mov eax, dword [0x486e8c]
call fcn.0040d208
call fcn.00403d94
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.00499dcc
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404b40
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.00404b40
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404b40
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404b40
lea eax, [ebx + 8]
call fcn.00404b04
mov byte [ebx + 0xc], 2
xor eax, eax
mov dword [ebx + 0x30], eax
mov al, byte [ebp + 8]
mov byte [ebx + 0x34], al
mov ax, word [0x49bfac]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49be9c
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404b1c
ret
Function at 0x49d790
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x49d7ad
add esp, 0xfffffff0
call fcn.00403868
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x49d948
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004924e8
test al, al
jne 0x49d7ea
mov ecx, 0x49d97c
mov dl, 1
mov eax, dword [0x486be4]
call fcn.0040d208
call fcn.00403d94
xor eax, eax
push ebp
push 0x49d816
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00490f94
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00490e80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49d836
mov eax, edi
xor edx, edx
call fcn.00404dac
jne 0x49d863
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404dac
je 0x49d863
mov ecx, 0x49d9a0
mov dl, 1
mov eax, dword [0x486e8c]
call fcn.0040d208
call fcn.00403d94
mov eax, dword [ebp - 0x10]
mov edx, 0x49d9b8
call fcn.00404dac
jne 0x49d896
mov eax, edi
mov edx, 0x49d9c4
call fcn.00404dac
je 0x49d896
mov ecx, 0x49d9a0
mov dl, 1
mov eax, dword [0x486e8c]
call fcn.0040d208
call fcn.00403d94
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.00499dcc
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404b40
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.00404b40
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00404b40
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00404b40
lea eax, [ebx + 8]
call fcn.00404b04
mov byte [ebx + 0xc], 1
mov dl, 1
mov eax, dword [0x41b5d4]
call fcn.004034cc
mov dword [ebx + 0x38], eax
mov dl, 1
mov eax, dword [0x41b5d4]
call fcn.004034cc
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x41b5d4]
call fcn.004034cc
mov dword [ebx + 0x34], eax
push ebx
mov eax, dword [ebx + 0x38]
push eax
mov ax, word [0x49da10]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x489c08]
call fcn.00499024
mov dword [ebx + 0x3c], eax
mov ax, word [0x49da14]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d94f
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404b1c
ret
Function at 0x4a03a4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4a03c6
add esp, 0xfffffff0
call fcn.00403868
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4a0531
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004924e8
test al, al
jne 0x4a0403
mov ecx, 0x4a0564
mov dl, 1
mov eax, dword [0x486be4]
call fcn.0040d208
call fcn.00403d94
push dword [0x5368fc]
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xbc]
push dword [ebp - 0x10]
push dword [0x5368fc]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404d64
mov eax, dword [ebp - 0xc]
call fcn.00492fc0
test al, al
jne 0x4a04d5
push dword [0x5368f8]
push dword [ebp + 8]
push dword [0x5368f8]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404d64
mov eax, dword [ebp - 0x14]
call fcn.00492fc0
test al, al
jne 0x4a04d5
push dword [0x5368fc]
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
push dword [0x5368fc]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404d64
mov eax, dword [ebp - 0x18]
call fcn.004930d8
test al, al
jne 0x4a04d5
push dword [0x5368f8]
push edi
push dword [0x5368f8]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404d64
mov eax, dword [ebp - 0x20]
call fcn.004930d8
test al, al
jne 0x4a04d5
mov ecx, 0x4a0564
mov dl, 1
mov eax, dword [0x486be4]
call fcn.0040d208
call fcn.00403d94
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.00499dcc
lea eax, [ebx + 4]
mov edx, esi
call fcn.00404b40
lea eax, [ebx + 8]
call fcn.00404b04
lea eax, [ebx + 0x30]
mov edx, edi
call fcn.00404b40
lea eax, [ebx + 0x34]
mov edx, dword [ebp + 8]
call fcn.00404b40
mov byte [ebx + 0xc], 0xc
mov ax, word [0x4a0580]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0538
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404b1c
ret

Function at 0x4d5034
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d50af
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0x59
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4d5096
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404668
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.00408d8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d50b6
lea eax, [ebp - 0x104]
call fcn.004043f8
ret
Function at 0x5020db
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 0x5379c6
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x502133
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 0x5379e7
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x502129
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x502137
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x5239e4
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x523a28
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.00409cf4
add esp, 0x200
pop ebx
ret

Function at 0x529cbc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x40]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x529cf7
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.0041df44
mov al, byte [eax + 0x2a8]
xor al, 1
push eax
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.0041df44
pop edx
mov byte [eax + 0x2a8], dl
inc ebx
dec edi
jne 0x529ccf
pop edi
pop esi
pop ebx
ret
Function at 0x405ede
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4382c4], 0
jne 0x405f1c
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405ef2
mov dword [ecx*4 + 0x4382c0], eax
inc ecx
cmp ecx, 0x100
jl 0x405eed
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x405f49
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4382c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x405f2a
not eax
pop ebp
ret 0xc

Function at 0x8003b3f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret
Function at 0x1002707
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
mov eax, dword [0x100f004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x518], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x510], eax
mov eax, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x514], eax
mov eax, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x51c], eax
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x1002777
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01003a28
leave
ret 0x20
lea eax, [ebp - 0x108]
push eax
push 0
push 0x1001218
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1002760
lea eax, [ebp - 0x108]
push eax
push edi
push esi
call fcn.010025c5
mov esi, eax
test esi, esi
jge 0x10027ba
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
and eax, 0xffff
jmp 0x1002766
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x508]
push eax
push 9
lea eax, [ebp - 0x108]
mov edi, 0x400
push eax
mov dword [ebp - 0x50c], edi
call fcn.01002540
test eax, eax
je 0x10027fb
mov esi, eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
jmp 0x1002766
mov al, byte [ebp - 0x508]
cmp al, 0x7d
lea esi, [ebp - 0x508]
je 0x100281b
test al, al
je 0x1002816
inc esi
mov al, byte [esi]
cmp al, 0x7d
jne 0x100280b
cmp byte [esi], 0x7d
jne 0x100281c
inc esi
cmp byte [esi], 0
jne 0x1002826
push 0xb
pop esi
jmp 0x10027e7
push dword [ebp - 0x51c]
push dword [ebp - 0x514]
push dword [ebp - 0x510]
push 0x100120c
push esi
call fcn.01003aea
add esp, 0x14
cmp eax, 3
jne 0x1002821
mov byte [esi], 0
mov esi, dword [ebp + 0x14]
push esi
lea eax, [ebp - 0x508]
push eax
push ebx
call fcn.01003610
add esp, 0xc
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x508]
push eax
push 7
lea eax, [ebp - 0x108]
push eax
mov byte [ebx + esi - 1], 0
mov dword [ebp - 0x50c], edi
call fcn.01002540
test eax, eax
jne 0x10027e5
mov cl, byte [ebp - 0x508]
cmp cl, 0x3b
lea eax, [ebp - 0x508]
je 0x10028b3
test cl, cl
je 0x10028ae
inc eax
mov cl, byte [eax]
cmp cl, 0x3b
jne 0x10028a2
cmp byte [eax], 0x3b
jne 0x10028b4
inc eax
push eax
call fcn.01003a7d
pop ecx
mov ecx, dword [ebp - 0x518]
mov dword [ecx], eax
xor esi, esi
jmp 0x10027e7
Function at 0x1002afd
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x100f004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x208
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
mov dword [ebp - 0x418], eax
jne 0x1002b3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002c60
lea eax, [ebp - 0x20c]
push eax
call fcn.01003c90
cmp byte [ebp + eax - 0x20d], 0x5c
pop ecx
je 0x1002b65
lea eax, [ebp - 0x20c]
push 0x1001270
push eax
call fcn.01003ba0
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push 0x1001264
push eax
call fcn.01003ba0
lea eax, [ebp - 0x414]
push 0x100125c
push eax
call fcn.01003b90
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.01003ba0
lea eax, [ebp - 0x414]
push 0x1001258
push eax
call fcn.01003ba0
add esp, 0x20
cmp dword [ebp + 0xc], 0
je 0x1002bc1
lea eax, [ebp - 0x414]
push 0x1001250
push eax
call fcn.01003ba0
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push 0x1001238
push eax
call fcn.01003ba0
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x454]
push 0
push eax
call fcn.01003b10
and dword [ebp - 0x43c], 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x440], eax
add esp, 0x14
lea eax, [ebp - 0x454]
push eax
mov dword [ebp - 0x454], esi
mov dword [ebp - 0x450], 0x8140
mov dword [ebp - 0x438], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x1002c50
mov esi, dword [ebp - 0x41c]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x418]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x1002c5a
mov dword [ebp - 0x418], 0x643
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01003a28
leave
ret 8

Function at 0x1002c6f
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x100f004]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1002ca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002d3e
cmp dword [ebp - 0x88], 2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
jne 0x1002d25
lea eax, [ebp - 0x9c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1002cec
lea eax, [ebp - 0xa8]
push eax
push 0x1001274
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x1002cf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002d3c
push edi
push edi
push edi
lea eax, [ebp - 0xac]
push eax
push edi
push dword [ebp - 0x9c]
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xa0], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call esi
cmp eax, edi
jne 0x1002d3c
push 0x40001
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x1002d3a
call esi
jmp 0x1002d3c
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01003a28
leave
ret