joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ca
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
xor bl, bl
call esi
test ax, ax
jns 0x4035e1
inc bl
jmp 0x4035ec
push 2
call esi
test ax, ax
jns 0x4035ec
mov bl, 2
pop esi
mov al, bl
pop ebx
ret

Function at 0x4058ee
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x22
pop edi
mov ebx, eax
call fcn.004016a3
mov esi, eax
cmp word [esi], di
jne 0x40590c
inc esi
inc esi
jmp 0x40590f
push 0x20
pop edi
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov edi, eax
test edi, edi
je 0x40592b
and word [edi], 0
lea eax, [edi + 2]
call fcn.004016a3
mov edi, eax
mov eax, esi
call fcn.004016a3
mov cx, word [eax]
mov word [ebx], cx
mov cx, word [eax]
inc ebx
inc ebx
inc eax
inc eax
test cx, cx
jne 0x405932
push edi
call fcn.004058d0
pop ecx
pop edi
pop esi
pop ebx
jmp fcn.004016a3

Function at 0x101430a
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1019d36
call fcn.010190f8
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0xc]
mov dword [ebp - 0x10], esi
call fcn.010139cf
lea ecx, [esi + 0x30]
call fcn.010139cf
lea ecx, [esi + 0x40]
call fcn.01015a5e
xor edi, edi
lea ecx, [esi + 0x60]
mov dword [ebp - 4], edi
call fcn.01015a5e
lea eax, [esi + 0x78]
lea ecx, [esi + 0x88]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
call fcn.010139cf
lea ecx, [esi + 0x98]
call fcn.010139cf
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0xa8]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
or dword [esi + 0x70], 0xffffffff
or dword [esi + 0x74], 0xffffffff
or dword [esi + 0x84], 0xffffffff
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0xb4], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x100195d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0xd
push 0x400
mov dword [0x100a4e4], 0x1005f63
mov dword [0x100a4ec], 0xc
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp - 4], 0x31
jne 0x10019b1
mov eax, 0x3e8
mov dword [0x100a4d0], eax
mov dword [0x100a4d8], eax
mov dword [0x100a4b0], 0xa006
mov eax, 0x2ee
jmp 0x10019cf
mov eax, 0x9c4
mov dword [0x100a4d0], eax
mov dword [0x100a4d8], eax
mov dword [0x100a4b0], 0xa00a
mov eax, 0x7d0
mov dword [0x100a4cc], eax
mov dword [0x100a4d4], eax
leave
ret

Function at 0x1001d73
Capabilities:
Open clipboard

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
push edi
push dword [0x1009830]
call dword [sym.imp.USER32.dll_GetMenu]
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb0
push dword [0x1009838]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
mov esi, dword [sym.imp.USER32.dll_GetSubMenu]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
sete al
push eax
push 0x300
push 1
push ebx
mov dword [ebp - 4], eax
call esi
mov edi, dword [sym.imp.USER32.dll_EnableMenuItem]
push eax
call edi
push dword [ebp - 4]
push 0x301
push 1
push ebx
call esi
push eax
call edi
push dword [ebp - 4]
push 0x303
push 1
push ebx
call esi
push eax
call edi
push 0
push 0x19
push 1
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_GetMenuState]
cmp eax, 1
jne 0x1001e16
cmp dword [ebp - 4], eax
jne 0x1001e16
push 0
push 0x19
push eax
push ebx
call esi
push eax
call edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1001e34
push 1
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
cmp dword [ebp - 8], eax
sete al
push eax
push 0x302
push 1
push ebx
call esi
push eax
call edi
push 0
push 0
push 0xe
push dword [0x1009838]
mov dword [ebp - 4], 1
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x1001e6b
and dword [ebp - 4], 0
push dword [ebp - 4]
push 0x15
push 1
push ebx
call esi
push eax
call edi
push dword [ebp - 4]
push 0x16
push 1
push ebx
call esi
push eax
call edi
xor eax, eax
cmp dword [0x1009850], eax
setne al
push eax
push 0x18
push 1
push ebx
call esi
push eax
call edi
push 0
push 0
push 0xc6
push dword [0x1009838]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
sete cl
push ecx
push 0x10
push 1
push ebx
call esi
push eax
call edi
mov eax, dword [0x1009850]
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x20
push 2
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_CheckMenuItem]
push eax
call edi
mov eax, dword [0x1009840]
neg eax
sbb eax, eax
and eax, 8
push eax
push 0x1b
push 3
push ebx
call esi
push eax
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1002936
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x10013d8
push 0x29
mov edi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], eax
je 0x100296b
push 1
push 1
call eax
push dword [ebp + 0x14]
push edi
call fcn.01001be8
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01004565
test eax, eax
jne 0x100298c
mov dword [ebp - 0x18], esi
jmp 0x1002a3c
push ebx
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x1001d1c
push esi
mov eax, 0x800b
push eax
push eax
call dword [sym.imp.USER32.dll_SetWinEventHook]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov ebx, eax
jmp 0x1002a12
cmp dword [ebp - 0x1c], 0x50
jne 0x10029cc
push esi
push esi
push 0x8001
push dword [0x1009830]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [0x100983c]
cmp eax, esi
je 0x10029e4
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1002a12
lea eax, [ebp - 0x20]
push eax
push dword [0x100a6d8]
push dword [0x1009830]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1002a12
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
lea eax, [ebp - 0x20]
push esi
push eax
call edi
test eax, eax
jne 0x10029b3
call fcn.01001929
push dword [0x100ab8c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp ebx, esi
je 0x1002a3b
push ebx
call dword [sym.imp.USER32.dll_UnhookWinEvent]
pop ebx
cmp dword [ebp - 4], esi
je 0x1002a47
push esi
push 1
call dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
leave
ret 0x10
Function at 0x1002a55
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c8
mov eax, dword [0x1009604]
and word [ebp - 0x104], 0
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3f
mov dword [ebp - 4], eax
pop ecx
push dword [0x1009040]
xor eax, eax
lea edi, [ebp - 0x102]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1002aae
push dword [0x1009040]
lea eax, [ebp - 0x370]
push 0x136
push eax
call fcn.01002409
jmp 0x1002b14
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x7c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002aec
lea eax, [ebp - 0x79c]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x578]
push eax
call fcn.01002409
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1002aff
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x578]
push eax
call fcn.01002409
push esi
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x578]
push eax
call dword [sym.imp.comdlg32.dll_GetFileTitleW]
push 1
push 1
push dword [0x10090c8]
lea eax, [ebp - 0x104]
push 0x7f
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
mov eax, dword [0x1009834]
add esp, 0x14
test eax, eax
pop edi
pop esi
je 0x1002b50
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0x40b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x1009044]
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x370]
push eax
push dword [0x1009830]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
call fcn.01007147
leave
ret 4

Function at 0x100398d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 4
je 0x10039d1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10039d1
cmp dword [ebp - 4], 4
je 0x10039d6
mov eax, dword [ebp + 0x10]
jmp 0x10039d9
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x10039e2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x18]
add esi, esi
cmp dword [ebp + 8], 0
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp + 0x18], esi
je 0x1003a1b
lea eax, [ebp + 0x18]
push eax
push edi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003a1b
cmp dword [ebp + 8], 1
je 0x1003a2e
mov ecx, esi
mov esi, dword [ebp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x1004b65
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jbe 0x1004b8f
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
movzx dx, byte [eax + 1]
xor ebx, ebx
mov bh, byte [eax]
xor edx, ebx
mov word [ecx], dx
inc ecx
inc ecx
inc eax
inc eax
dec esi
jne 0x1004b79
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x1004b99
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0x18], ebx
jne 0x1004bb1
xor eax, eax
inc eax
jmp 0x1004c3f
cmp dword [ebp + 0xc], 0xfde9
mov dword [ebp - 4], ebx
je 0x1004bc3
lea eax, [ebp - 0xc]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push dword [ebp - 4]
push ebx
push ebx
push ebx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov edi, eax
cmp edi, ebx
je 0x1004c00
lea eax, [edi + 1]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x1004c04
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1004c3d
push dword [ebp - 4]
push ebx
push edi
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
mov esi, eax
cmp esi, ebx
je 0x1004c32
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x100725f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001854
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10072b7
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1001890
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10072aa
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10072b9
xor eax, eax
pop esi
leave
ret 4
Function at 0x100739d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001898
call fcn.01007568
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10073da
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10073da
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10073f2
cmp eax, 0x20b
je 0x10073df
mov dword [ebp - 0x1c], ebx
jmp 0x1007406
cmp dword [ecx + 0x84], 0xe
jbe 0x10073da
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1007400
cmp dword [ecx + 0x74], 0xe
jbe 0x10073da
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100ab9c], 0xffffffff
or dword [0x100aba0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1009ab8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1009ab4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100aba4], eax
call fcn.010075f4
cmp dword [0x1009608], ebx
jne 0x1007461
push fcn.010075f4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010075dd
push 0x1009010
push 0x100900c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1009ab0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1009aac]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1009008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x10074f7
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10074cb
cmp al, 0x22
jne 0x10074bd
cmp byte [esi], 0x22
jne 0x10074d4
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10074de
cmp al, 0x20
jbe 0x10074d0
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x1007502
movzx eax, word [ebp - 0x50]
jmp 0x1007505
cmp byte [esi], 0x20
jbe 0x10074d4
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10074f7
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1007522
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1007557
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010075a3
ret
Function at 0x401bc0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401c10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x4c
lea eax, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401cdb
mov eax, dword [ebp - 0x20]
cmp eax, 4
jne 0x401c61
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x40
je 0x401c49
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x38]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [ebp - 0x3c], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x40]
cmp ecx, 4
je 0x401c59
cmp ecx, 0x40
je 0x401c59
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401bc0
lea esi, [esi]
lea edi, [edi]
Function at 0x1001712
Capabilities:
Delete file

Disassembly:
push 0x10
push 0x1001500
call fcn.01002714
mov edi, dword [ebp + 8]
test edi, edi
je 0x10017ca
push edi
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
call esi
pop ecx
cmp eax, 6
jb 0x10017ca
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
pop ecx
mov esi, eax
add esi, 6
mov dword [ebp - 0x1c], esi
and dword [ebp - 4], 0
lea eax, [esi + esi]
add eax, 3
and eax, 0xfffffffc
call fcn.01002780
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x20], edi
or dword [ebp - 4], 0xffffffff
jmp 0x1001781
test edi, edi
je 0x10017ca
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.msvcrt.dll_wcsncpy]
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
lea ebx, [edi + eax*2 - 0xa]
push 0x100146c
push ebx
call dword [sym.imp.msvcrt.dll_wcscmp]
add esp, 0x18
test eax, eax
jne 0x10017b1
and word [ebx], ax
push 0x1001478
push esi
push edi
call fcn.010016f0
test eax, eax
jl 0x10017ca
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10017cc
xor eax, eax
lea esp, [ebp - 0x2c]
call fcn.0100274f
ret 4

Function at 0x10017dc
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
je 0x10017f3
cmp dword [ebp + 0xc], esi
jne 0x1001800
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1001887
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, 0x103
mov eax, dword [ebp + 0x10]
push esi
push esi
push esi
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, esi
je 0x1001830
cmp eax, ebx
jne 0x100184c
cmp eax, ebx
je 0x1001855
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
cmp dword [ebp + 0x14], 1
jne 0x100180d
push dword [ebp + 0xc]
call fcn.01001712
jmp 0x100180d
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1001885
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
push 0x1001410
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001885
mov eax, dword [ebp + 0x14]
lea eax, [eax + eax*2]
push dword [eax*8 + 0x1003024]
push dword [ebp - 4]
call edi
pop edi
pop ebx
cmp dword [ebp - 4], esi
pop esi
je 0x1001896
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 0x10
Function at 0x1002595
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001590
call fcn.01002714
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10025d0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10025d0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10025e8
cmp eax, 0x20b
je 0x10025d5
mov dword [ebp - 0x1c], edi
jmp 0x10025fc
cmp dword [ecx + 0x84], 0xe
jbe 0x10025d0
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10025f6
cmp dword [ecx + 0x74], 0xe
jbe 0x10025d0
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003098], 0xffffffff
or dword [0x100309c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003094]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1003090]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10030a0], eax
call fcn.010027f0
cmp dword [0x1003080], edi
jne 0x1002657
push fcn.010027f0
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010027d9
push 0x1003010
push 0x100300c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100308c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1003088]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1003008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001d3e
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x10026ce
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002703
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100274f
ret
Function at 0x401596
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x40d292
call fcn.00405b08
push ecx
mov al, byte [ebp + 0xb]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x18]
mov dword [ebp - 0x10], esi
mov byte [ecx], al
mov al, byte [ebp + 0xb]
mov byte [ecx + 1], al
mov byte [ecx + 8], bl
call fcn.0040375e
mov al, byte [ebp + 0xb]
lea edi, [esi + 0x34]
push ebx
mov ecx, edi
mov dword [ebp - 4], ebx
mov byte [edi], al
call fcn.0040134f
mov eax, dword [ebp + 8]
mov dword [esi], 0x40e3b0
mov dword [esi + 4], eax
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [0x416b88], esi
mov byte [esi + 0x28], bl
mov dword [0x416b84], ebx
mov dword [esi + 0x2c], ebx
mov ebx, 0x4125c0
push ebx
mov byte [ebp - 4], 1
mov dword [esi + 0x30], HeapSize
call fcn.00405b30
pop ecx
push eax
push ebx
mov ecx, edi
call fcn.00401265
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4