joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ad1c0ab
Capabilities:
Delete registry value
Persist via default file association registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x4ad33b38]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
push eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x220], ebx
call edi
mov esi, str.ShellOpenCommand
push esi
mov dword [ebp - 0x218], eax
call edi
pop ecx
pop ecx
mov ecx, dword [ebp - 0x218]
lea eax, [eax + ecx + 1]
cmp eax, 0x104
jbe 0x4ad1c11c
push 0
push 0x23d9
call fcn.4ad050c9
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4ad1c2bc
push dword [ebp - 0x210]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4ad1c21e
cmp ebx, edi
je 0x4ad1c1fe
cmp word [ebx], di
je 0x4ad1c1fe
lea esi, [ebp - 0x20c]
jmp 0x4ad1c187
cmp word [esi], 0x5c
je 0x4ad1c18c
inc esi
inc esi
cmp word [esi], di
jne 0x4ad1c17f
mov bx, word [esi]
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push 0x2000000
push edi
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
mov word [esi], di
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
mov dword [ebp - 0x218], eax
jne 0x4ad1c1de
cmp bx, di
je 0x4ad1c218
push dword [ebp - 0x214]
mov word [esi], bx
inc esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ad1c187
push dword [ebp - 0x210]
push 1
push 0x23a5
call fcn.4ad050c9
mov eax, dword [ebp - 0x218]
add esp, 0xc
jmp 0x4ad1c2bc
push dword [ebp - 0x210]
push 1
push 0x23a5
call fcn.4ad050c9
add esp, 0xc
jmp 0x4ad1c2ba
mov ebx, dword [ebp - 0x220]
cmp ebx, edi
je 0x4ad1c286
cmp word [ebx], di
je 0x4ad1c286
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push ebx
push 2
push edi
push 0x4ad02b40
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
jne 0x4ad1c262
push ebx
push dword [ebp - 0x210]
push str._s_s_r_n
call fcn.4ad04115
jmp 0x4ad1c2ab
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.4ad050c9
push dword [ebp - 0x210]
push 1
push 0x235d
call fcn.4ad050c9
add esp, 0x14
jmp 0x4ad1c2ae
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, edi
je 0x4ad1c2ae
push dword [ebp - 0x210]
push 1
push 0x23a5
call fcn.4ad050c9
add esp, 0xc
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.4ad01389
leave
ret 0xc
Function at 0x4ad1d980
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push esi
push 2
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call fcn.4ad1e3e8
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4ad1d9b5
push 0x6e
call fcn.4ad0ef21
push 1
push esi
jmp 0x4ad1da83
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.msvcrt.dll__get_osfhandle]
mov ebx, 0x8002
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ad1da5d
mov eax, dword [esi + 0x18]
test ah, 0xc0
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], ecx
jne 0x4ad1da0c
cmp ecx, 2
jbe 0x4ad1da04
mov edx, dword [ebp + 0x10]
cmp word [edx], 0xfeff
jne 0x4ad1da04
or eax, 0x4000
jmp 0x4ad1da09
or eax, 0x8000
mov dword [esi + 0x18], eax
test ecx, ecx
je 0x4ad1da33
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 0x18]
push dword [ebp + 0x10]
and eax, ebx
sub eax, ebx
neg eax
sbb eax, eax
inc eax
push eax
call fcn.4ad0edc8
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
cmp ecx, dword [ebp + 0x14]
je 0x4ad1d9c3
cmp dword [ebp - 8], 0
jne 0x4ad1da53
sub ecx, dword [ebp + 0xc]
push 1
push 0
push ecx
push dword [ebp + 8]
call edi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov dword [0x4ad2b9c4], eax
call fcn.4ad01925
push 0
push dword [0x4ad2b9c4]
call fcn.4ad050c9
pop ecx
pop ecx
push 1
push 0
call fcn.4ad1d903
int3
Function at 0x4ad1da8e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push dword [ebx]
mov esi, dword [sym.imp.msvcrt.dll__get_osfhandle]
call esi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebx]
call fcn.4ad01925
push 0
push dword [ebp + 0xc]
call fcn.4ad0e24c
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x4ad1dadc
push dword [ebp + 0xc]
push 1
push 0x271f
call fcn.4ad050c9
xor eax, eax
add esp, 0xc
inc eax
jmp 0x4ad1db73
push edi
mov edi, dword [ebp + 0x10]
push 2
mov ecx, edi
push 0
neg ecx
push ecx
push eax
call esi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0x18]
push dword [ebx]
call esi
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ad1db2f
push dword [ebx]
call fcn.4ad01925
or dword [ebx], 0xffffffff
push dword [ebp + 0xc]
push 1
push 0x271f
call fcn.4ad050c9
xor eax, eax
add esp, 0xc
inc eax
jmp 0x4ad1db72
cmp dword [ebp + 8], edi
jne 0x4ad1db0e
mov esi, dword [ebp + 0x14]
push dword [ebx]
mov ecx, edi
mov edi, dword [ebp + 0x18]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4ad1db10
call fcn.4ad01925
xor esi, esi
push esi
push 1
push dword [ebp + 0xc]
call fcn.4ad1e3e8
cmp eax, 0xffffffff
mov dword [ebx], eax
je 0x4ad1db18
push 2
push esi
push esi
push eax
call dword [sym.imp.msvcrt.dll__get_osfhandle]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4ad1ecd3
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4ad33b38]
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x210]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
call fcn.4ad087ed
test al, al
jne 0x4ad1ed05
xor eax, eax
jmp 0x4ad1ee15
push edi
lea eax, [ebp - 0x210]
push 0x4ad0300c
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
xor edi, edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x624]
push eax
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x4ad1ed6d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x90
jne 0x4ad1ed5a
xor eax, eax
jmp 0x4ad1ee14
push edi
call esi
push eax
call fcn.4ad050c9
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4ad1ee14
cmp word [ebp - 0x210], 0x5c
jne 0x4ad1ed88
lea eax, [ebp - 0x210]
push eax
call fcn.4ad02ea5
mov word [eax], di
jmp 0x4ad1ed8f
mov word [ebp - 0x20e], di
cmp word [ebp - 0x41c], di
je 0x4ad1edb8
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
push 2
push 0x235f
push esi
call fcn.4ad1d182
add esp, 0x14
jmp 0x4ad1edcf
lea eax, [ebp - 0x210]
push eax
push 1
push 0x235e
push esi
call fcn.4ad1d182
add esp, 0x10
cmp eax, edi
jne 0x4ad1ee14
mov eax, dword [ebp - 0x624]
mov ecx, eax
and ecx, 0xffff
push ecx
shr eax, 0x10
push eax
push 0x4ad3d44c
lea eax, [ebp - 0x61c]
push 0x100
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
lea eax, [ebp - 0x61c]
push eax
push 1
push 0x235b
push esi
call fcn.4ad1d182
add esp, 0x24
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.4ad01389
leave
ret 8

Function at 0x4ad1f249
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4ad33b38]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
call fcn.4ad1015c
test edi, edi
je 0x4ad1f27e
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
call fcn.4ad1ef8f
test eax, eax
je 0x4ad1f2a2
lea eax, [ebp - 0x210]
push 0x4ad0300c
push eax
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
and dword [ebp - 0x214], 0
and dword [ebp - 0x218], 0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
push 6
push esi
call fcn.4ad1d0f5
lea eax, [ebp - 0x210]
push eax
push 0xe
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x10]
call fcn.4ad1ee27
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 0x14]
push 0x4ad19ed8
call fcn.4ad05095
push eax
push 2
push 0x2379
push esi
call fcn.4ad1d182
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
call fcn.4ad01389
leave
ret 0x10
Function at 0x409e0c
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.00403520
mov eax, dword [ebp - 0x18]
call fcn.00403520
mov eax, dword [ebp - 0x1c]
call fcn.00403520
xor eax, eax
push ebp
push 0x409f10
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
mov eax, dword [ebp - 0x14]
call fcn.00403530
push eax
mov eax, dword [ebp - 0x18]
call fcn.00403530
mov edx, eax
mov eax, dword [0x40c650]
pop ecx
call fcn.00409d94
pop ecx
test al, al
je 0x409ef5
mov eax, dword [ebp - 0x1c]
call fcn.004048ec
test al, al
je 0x409e86
mov eax, dword [ebp - 0x1c]
call fcn.00403530
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
push ebp
push 0x409eda
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 0x1c]
call fcn.00403530
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409ee4
mov eax, dword [ebp - 0x10]
call fcn.00404520
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409f17
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00403140
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x55f771a2
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data_1
mov ebx, 0x42f314
nop
mov ecx, 0x68d328ef
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x412867
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004126e6

Function at 0x416c5f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004165cd

Function at 0x416c6a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416808

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

Disassembly:
push ebp
mov ebp, esp
call sub.kernel32.dll_GetCommandLineA
mov dword [0x404f48], eax
add ebp, 8
mov dword [0x404123], ebp
sub ebp, 8
mov dword [0x404f4c], 0x30
mov dword [0x404f50], 3
mov dword [0x404f58], 0
mov dword [0x404f5c], 0
mov dword [0x404f54], 0x402a60
mov eax, dword [0x40411b]
mov dword [0x404f60], eax
mov dword [0x404f6c], 0x10
mov dword [0x404f74], 0x404108
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x404f64], eax
mov dword [0x404f78], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x404f68], eax
push 0x404f4c
call sub.user32.dll_RegisterClassExA
push 0
push dword [0x40411b]
push 0
push 0
push 0xc8
push 0x12c
push 0x50
push 0x190
push 0xc0000
push str.Hello_from_Win32
push str.Class1
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x404f40], eax
push 0
push dword [0x404f40]
call sub.user32.dll_ShowWindow
push dword [0x404f40]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x404f7c
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401b83
push 0x404f7c
call sub.user32.dll_TranslateMessage
push 0x404f7c
call sub.user32.dll_DispatchMessageA
jmp 0x401b59
mov eax, dword [0x404f84]
mov esi, dword [0x404fdc]
lea ecx, [0x40411b]
add esi, eax
call esi
mov eax, dword [0x404f84]
push eax
call sub.kernel32.dll_ExitProcess
int3
Function at 0x401d11
Capabilities:
Clear file content
Get common file path

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xacc
jge 0x401d32
push esi
call dword [sym.imp.USER32.dll_SetClipboardViewer]
call dword [sym.imp.USER32.dll_GetCaretBlinkTime]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 0x45be411
jg 0x401d4c
inc edi
cmp edi, 0x3330601
jl 0x401d1d
cmp dword [0x207988c], 0x400
jne 0x401d85
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
push esi
call fcn.00404481
push esi
call fcn.0040482d
push esi
push esi
call fcn.00404b2e
push esi
call fcn.00404ba0
add esp, 0x14
xor edi, edi
cmp edi, 0x16c76
jge 0x401d97
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e5c52
jg 0x401dbd
inc edi
cmp edi, 0x3003f
jl 0x401d87
mov eax, dword [0x42c89c]
mov dword [0x207988c], eax
call fcn.00401a58
mov edi, 0x3078f
cmp dword [0x207988c], 0x51f
jne 0x401de9
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec edi
jne 0x401dd1
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x402957
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x42526d
call fcn.004250f0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x428f9c
call fcn.00403714
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.00404baf
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x40299f
call fcn.004034c8
mov dword [ebx], eax
call fcn.00403287
mov ecx, eax
call fcn.004011a5
mov eax, ebx
jmp 0x4029a1
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], 0x428ff4
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4056fa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b354]
jne 0x405704
repz ret
jmp fcn.0040b43c
Function at 0x40fb31
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409b86
and dword [ebp - 0x14], 0
cmp dword [0x437a84], 0
mov dword [ebp - 0x18], eax
jne 0x40fbe4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40fc8c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40fc8c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x437a84], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x437a88], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x437a8c], eax
call edi
push eax
call esi
mov dword [0x437a94], eax
test eax, eax
je 0x40fbe4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x437a90], eax
mov eax, dword [0x437a90]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40fc3d
cmp dword [0x437a94], ecx
je 0x40fc3d
push eax
call esi
push dword [0x437a94]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40fc3d
test ebx, ebx
je 0x40fc3d
call edi
test eax, eax
je 0x40fc34
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40fc34
test byte [ebp - 8], 1
jne 0x40fc3d
or dword [ebp + 0x10], 0x200000
jmp 0x40fc70
mov eax, dword [0x437a88]
cmp eax, dword [ebp - 0x18]
je 0x40fc70
push eax
call esi
test eax, eax
je 0x40fc70
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40fc70
mov eax, dword [0x437a8c]
cmp eax, dword [ebp - 0x18]
je 0x40fc70
push eax
call esi
test eax, eax
je 0x40fc70
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x437a84]
call esi
test eax, eax
je 0x40fc8c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40fc8e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004056fa
leave
ret
Function at 0x100013a0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10003004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [0x10003334]
mov dword [ebp - 0x210], eax
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x1000142d
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
push 0x100010e0
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcscat_s]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
test eax, eax
je 0x10001423
push 0x1000110c
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov esi, eax
mov dword [0x10003334], esi
test esi, esi
jne 0x10001427
xor eax, eax
jmp 0x1000143a
mov eax, dword [ebp - 0x210]
push eax
push ebx
push edi
mov ecx, esi
call dword [0x10004070]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001970
leave
ret 0xc

Function at 0x10001990
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x100019ce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x100019c6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x100019d0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x100019b6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10001aa0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x10001ad1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10001ad1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x10001ad1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100071a7
Capabilities:
Encode data using xor

Disassembly:
call 0x10007120
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x10007150
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x1000716c
xor edx, 0
jmp 0x10007177
xor edx, edx
jmp 0x1000718e
jmp 0x1000719a
xor eax, eax
push 0x8427d7c0
call 0x100071a7
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x100071e3
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x100071bc
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x100071fa
add eax, 0
jno 0x100071ff
add esi, 0
ret 0x10

Function at 0x10007f68
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x10007f8a
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x1000812c
cmp edi, dword [ebp + 0x10]
jb 0x1000812c
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.10007a54
inc edi
jmp 0x10008013
jmp 0x10008020
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.10007a54
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.10007a54
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x10008074
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x10008058
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.100080a2
add dword [eax], 0x39
jle 0x1000807e
sub al, 0xf5
mov ch, al
call fcn.100080b7
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10