joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c450
Capabilities:
Copy file
Delete file
Get common file path

Disassembly:
sub esp, 0x970
mov eax, dword [0x4563d0]
xor eax, esp
mov dword [esp + 0x96c], eax
push ebx
push ebp
push esi
push 0x104
lea eax, [esp + 0x660]
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x65c]
push ecx
lea edx, [esp + 0x348]
push 0x104
push edx
call fcn.00424d80
add esp, 0xc
lea eax, [esp + 0x344]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea ecx, [esp + 0x344]
push ecx
call ebp
lea edx, [esp + 0x86c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0
push 0
push 0x104
lea eax, [esp + 0x770]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x764]
push ecx
lea edx, [esp + 0x870]
push edx
lea ebx, [edi + 0x108]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push ebx
call ebp
lea eax, [esp + 0x344]
push eax
lea ecx, [esp + 0x450]
push 0x104
push ecx
call fcn.00424d80
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
push str.IIF.cab
lea edx, [esp + 0x450]
push edx
call ebp
push 0x324
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0042b5d0
add esp, 0xc
push str.IIF.cab
lea ecx, [esp + 0x142]
push 0x100
push ecx
mov dword [esp + 0x28], 0xbebc200
mov dword [esp + 0x2c], 0xf4240
mov dword [esp + 0x3c], 1
mov word [esp + 0x48], 0x7ae3
call fcn.00424d80
add esp, 0xc
lea edx, [esp + 0x344]
push edx
lea eax, [esp + 0x242]
push 0x100
push eax
call fcn.00424d80
add esp, 0xc
push edi
lea ecx, [esp + 0x20]
push ecx
push 0x41cdc0
push 0x41cd90
push 0x41cd60
push 0x41cd30
push 0x41ccf0
push 0x41ccb0
push 0x41cc80
push 0x41cc10
push 0x41cc00
lea edx, [esp + 0x3c]
push method.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.virtual_12
push edx
call fcn.004383b2
mov esi, eax
add esp, 0x34
test esi, esi
je 0x41c6b1
push ebx
push esi
mov ecx, edi
call fcn.0041c970
push 0x41cc30
push 0x41cc30
push 0
push esi
call fcn.00438323
push esi
call fcn.00438374
add esp, 0x14
lea eax, [esp + 0x344]
push eax
lea ecx, [esp + 0x558]
push 0x104
push ecx
call fcn.00424d80
add esp, 0xc
push str.SetupPacked.exe
lea edx, [esp + 0x558]
push edx
call ebp
push 0
lea eax, [esp + 0x558]
push eax
lea ecx, [esp + 0x664]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea edx, [esp + 0x558]
push edx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
je 0x41c689
push esi
lea eax, [esp + 0x450]
call fcn.0041cb80
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
lea eax, [esp + 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x96c]
xor ecx, esp
call fcn.00422834
add esp, 0x970
ret
mov ecx, dword [esp + 0x978]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422834
add esp, 0x970
ret
Function at 0x41c6d0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x530
mov eax, dword [0x4563d0]
xor eax, esp
mov dword [esp + 0x52c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x53c]
push esi
push edi
lea eax, [esp + 0x228]
push eax
push 0x104
mov edi, ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0x104
lea ecx, [esp + 0x24]
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x22c]
push eax
lea esi, [ebp + 0x108]
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea esi, [esp + 0x330]
call fcn.004187c0
push 0
push 0
push 0x104
lea ecx, [esp + 0x12c]
push ecx
push 0xffffffffffffffff
mov edx, esi
push edx
push 0
push 0
call ebx
push 0xa
push 0x4b0
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x41c7e7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41c7f3
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [esp + 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41c7e7
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41c7f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x41c802
push ebp
lea edi, [esp + 0x124]
call fcn.0041c830
mov esi, eax
lea eax, [esp + 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x53c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422834
add esp, 0x530
ret 4
Function at 0x41c970
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x57c
mov eax, dword [0x4563d0]
xor eax, esp
mov dword [esp + 0x574], eax
mov eax, dword [esp + 0x580]
push ebx
mov ebx, dword [esp + 0x588]
push ebp
push esi
push edi
push ebx
mov ebp, ecx
lea ecx, [esp + 0x26c]
push 0x104
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0
call fcn.00424d80
add esp, 0xc
push 0x44ff6c
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x104
lea eax, [esp + 0x47c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x1c], eax
mov edi, 0x44ff54
lea esi, [esp + 0x4c]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x41cb16
mov edi, 0x44ff58
lea esi, [esp + 0x4c]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x41cb16
push ebx
lea eax, [esp + 0x164]
push 0x104
push eax
call fcn.00424d80
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
add esp, 0xc
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x164]
push edx
call esi
test byte [esp + 0x20], 0x10
lea eax, [esp + 0x160]
je 0x41ca78
mov ecx, dword [esp + 0x18]
push eax
push ecx
mov ecx, ebp
call fcn.0041c970
mov dword [esp + 0x14], eax
jmp 0x41cb16
lea ecx, [esp + 0x478]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41caa0
test dl, dl
je 0x41ca9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41caa0
add eax, 2
add ecx, 2
test dl, dl
jne 0x41ca80
xor eax, eax
jmp 0x41caa5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41cb16
push 0x80
push ebx
push 0x10
lea edx, [ebp + 0x108]
push edx
lea eax, [esp + 0x380]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToA]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x374]
push edx
call esi
mov eax, dword [ebp]
mov edx, dword [eax]
lea ecx, [esp + 0x160]
push ecx
mov ecx, ebp
call edx
mov edx, dword [esp + 0x18]
push 1
push 0x41cdf0
push 0x41cc30
push 0x41cc30
push 0
lea eax, [esp + 0x384]
push eax
lea ecx, [esp + 0x178]
push ecx
push edx
call fcn.0043825e
add esp, 0x20
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41cb38
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x41cb43
cmp dword [esp + 0x14], 0x12
jne 0x41c9f9
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x14]
mov eax, ecx
sub eax, 0x12
pop edi
neg eax
sbb eax, eax
pop esi
and eax, ecx
mov ecx, dword [esp + 0x57c]
pop ebp
pop ebx
xor ecx, esp
call fcn.00422834
add esp, 0x57c
ret 8
Function at 0x41cb80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41cbf9
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.00422540
add esp, 4
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cbe7
mov edx, dword [esp + 0x14]
push edi
push ebx
push 0x409
push 0x4b0
push 0xa
push edx
call dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push ebx
call fcn.00422ece
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
pop ecx
ret 4

Function at 0x41cea0
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x4563d0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push esi
lea eax, [esp + 8]
push 0x104
push eax
call fcn.00424d80
add esp, 0xc
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push ecx
push edx
push esi
call fcn.00425ec6
mov ecx, dword [esp + 0x114]
add esp, 0xc
pop esi
xor ecx, esp
call fcn.00422834
add esp, 0x108
ret

Function at 0x41d1c0
Capabilities:
Set registry value

Disassembly:
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d1c6
mov ecx, dword [esp + 0xc]
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
add eax, 1
pop esi
ret 8

Function at 0x41d200
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d210
sub eax, edx
sar eax, 1
add eax, 1
push eax
call fcn.00422540
mov ebx, eax
movzx eax, word [esi]
add esp, 4
test ax, ax
je 0x41d2a7
cmp ax, 0x61
jb 0x41d247
cmp ax, 0x66
ja 0x41d247
mov al, byte [esi]
sub al, 0x57
jmp 0x41d25d
cmp ax, 0x41
jb 0x41d259
cmp ax, 0x46
ja 0x41d259
mov al, byte [esi]
sub al, 0x37
jmp 0x41d25d
mov al, byte [esi]
sub al, 0x30
movzx ecx, word [esi + 2]
add esi, 2
shl al, 4
cmp cx, 0x61
jb 0x41d27a
cmp cx, 0x66
ja 0x41d27a
mov cl, byte [esi]
sub cl, 0x57
jmp 0x41d294
cmp cx, 0x41
jb 0x41d28f
cmp cx, 0x46
ja 0x41d28f
mov dl, byte [esi]
sub dl, 0x37
or al, dl
jmp 0x41d296
mov cl, byte [esi]
sub cl, 0x30
or al, cl
add esi, 2
mov byte [ebx + edi], al
movzx eax, word [esi]
add edi, 1
test ax, ax
jne 0x41d235
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edi
push ebx
push 3
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov esi, eax
call fcn.00422ece
add esp, 4
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebx
ret 8
Function at 0x41d2e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov esi, eax
mov ecx, dword [esi]
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push str.InstallPath
push ecx
mov dword [esp + 0x20], 0
call ebp
test eax, eax
je 0x41d314
pop esi
xor eax, eax
pop ebp
pop ecx
ret 4
mov eax, dword [esp + 8]
xor ecx, ecx
add eax, 1
mov edx, 2
mul edx
seto cl
push ebx
push edi
neg ecx
or ecx, eax
push ecx
call fcn.00422540
mov ecx, dword [esi]
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
push 0
push 0
push str.InstallPath
push ecx
call ebp
mov ebx, eax
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d353
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.004031d0
push edi
call fcn.00422ece
add esp, 4
pop edi
xor eax, eax
test ebx, ebx
pop ebx
pop esi
sete al
pop ebp
pop ecx
ret 4

Function at 0x41d470
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x4563d0]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov esi, dword [esp + 0x224]
push edi
mov edi, dword [esp + 0x230]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push esi
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41d55f
lea edx, [esp + 0x10]
push edx
mov eax, edi
or eax, 0xf003f
push eax
push 0
lea ecx, [esp + 0x24]
push ecx
push esi
call ebx
test eax, eax
jne 0x41d55f
mov eax, dword [esp + 0x10]
push edi
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0041d470
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x100
jne 0x41d54b
mov eax, dword [0x459d00]
test eax, eax
jne 0x41d533
push str.RegDeleteKeyExW
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call ebp
test eax, eax
mov dword [0x459d00], eax
je 0x41d544
push 0
push 0x100
lea edx, [esp + 0x20]
push edx
push esi
call eax
jmp 0x41d557
mov eax, 0x32
jmp 0x41d557
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x41d4a2
cmp eax, 0x103
pop edi
pop esi
pop ebp
pop ebx
jne 0x41d56c
xor eax, eax
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00422834
add esp, 0x214
ret
Function at 0x420650
Capabilities:
Modify service

Disassembly:
push edi
push eax
mov eax, dword [esp + 0x10]
xor edi, edi
push edi
push edi
push ecx
mov ecx, dword [esp + 0x18]
push edi
push edi
push edx
mov edx, dword [esi + 4]
push 0xffffffffffffffff
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x420691
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x42069b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
ret 0xc
mov eax, edi
pop edi
ret 0xc

Function at 0x420c00
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x420c32
lea ecx, [esp]
push ecx
call eax
xor eax, eax
cmp word [esp], 6
sete al
add esp, 0x24
ret
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
cmp word [esp], 6
sete al
add esp, 0x24
ret

Function at 0x420d30
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x10
xor eax, eax
lea ecx, [esp]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
push ecx
push 0x420c50
mov dword [esp + 8], 0x12
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_EnumWindows]
xor eax, eax
add esp, 0x10
ret

Function at 0x420d70
Capabilities:
Enumerate processes

Disassembly:
push ebp
push esi
xor ebp, ebp
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x420d9b
push edi
push esi
mov dword [edi], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x420da3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 2
pop ebp
ret
push ebx
lea ebx, [edi + 0x24]
mov eax, dword [esp + 0x10]
push ebx
push eax
call fcn.00422afe
add esp, 8
test eax, eax
je 0x420dd1
push edi
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x420da7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, ebp
pop ebp
ret
push esi
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, ebp
pop ebp
ret
Function at 0x420e30
Capabilities:
Terminate process

Disassembly:
sub esp, 0x230
mov eax, dword [0x4563d0]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x234]
push edi
push eax
lea edi, [esp + 8]
call fcn.00420d70
add esp, 4
cmp eax, 2
jne 0x420e76
xor eax, eax
pop edi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00422834
add esp, 0x230
ret
mov eax, dword [esp + 0xc]
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x420ea5
pop esi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00422834
add esp, 0x230
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jne 0x420e8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x234]
pop esi
pop edi
xor ecx, esp
call fcn.00422834
add esp, 0x230
ret

Function at 0x420ee0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x868
mov eax, dword [0x4563d0]
xor eax, esp
mov dword [esp + 0x860], eax
mov eax, dword [esp + 0x86c]
push ebp
mov ebp, dword [esp + 0x87c]
push esi
push edi
push eax
lea eax, [esp + 0x6c]
push 0x400
push eax
mov esi, ecx
xor edi, edi
call fcn.00422e62
push 0x44cf18
lea ecx, [esp + 0x78]
push 0x400
push ecx
call fcn.00424d06
push esi
lea edx, [esp + 0x84]
push 0x400
push edx
call fcn.00424d06
push 0x44
lea eax, [esp + 0x48]
push edi
push eax
call fcn.0042b5d0
xor eax, eax
add esp, 0x30
cmp byte [esp + 0x87c], al
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
je 0x420f7d
or dword [esp + 0x4c], 1
mov word [esp + 0x50], ax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push ebx
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x88]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x420fbf
cmp byte [esp + 0x880], 0
je 0x420fc7
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x420fc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, dword [esp + 0x10]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
mov ecx, dword [esp + 0x86c]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00422834
add esp, 0x868
ret

Function at 0x422834
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4563d0]
jne 0x42283e
repz ret
jmp fcn.0042a600
Function at 0x430cd8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x430d05
call fcn.00425f3f
mov dword [eax], esi
call fcn.00425f2c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00422fd9
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x430ce1
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x430d34
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00425f52
pop ecx
call fcn.00425f2c
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x430d5b
test al, 1
je 0x430d5b
test byte [esp + 0xc], 2
je 0x430d5b
call fcn.00425f3f
mov dword [eax], 5
call fcn.00425f2c
mov dword [eax], 0xd
jmp 0x430d2b
xor eax, eax
pop esi
ret
Function at 0x4362da
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042a767
xor ebx, ebx
cmp dword [0x458abc], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4363af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x43631a
xor eax, eax
jmp 0x436473
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x436313
push eax
call fcn.0042a704
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x458abc], eax
call esi
push eax
call fcn.0042a704
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x458ac0], eax
call esi
push eax
call fcn.0042a704
mov dword [0x458ac4], eax
lea eax, [ebp - 8]
push eax
call fcn.0042a2ae
test eax, eax
pop ecx
pop ecx
je 0x43637d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00422edd
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4363af
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042a704
cmp eax, ebx
pop ecx
mov dword [0x458acc], eax
je 0x4363af
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042a704
pop ecx
mov dword [0x458ac8], eax
mov eax, dword [0x458ac8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x436428
cmp dword [0x458acc], esi
je 0x436428
push eax
call fcn.0042a770
pop ecx
call eax
cmp eax, ebx
je 0x4363f5
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x458acc]
call fcn.0042a770
pop ecx
call eax
test eax, eax
je 0x4363f5
test byte [ebp - 0x18], 1
jne 0x436428
lea eax, [ebp - 0xc]
push eax
call fcn.0042a2e5
test eax, eax
pop ecx
je 0x436410
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00422edd
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x43641f
or dword [ebp + 0x10], 0x200000
jmp 0x436459
or dword [ebp + 0x10], 0x40000
jmp 0x436459
mov eax, dword [0x458ac0]
cmp eax, esi
je 0x436459
push eax
call fcn.0042a770
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x436459
mov eax, dword [0x458ac4]
cmp eax, esi
je 0x436459
push dword [ebp - 4]
push eax
call fcn.0042a770
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x458abc]
call fcn.0042a770
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43a76c
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [ebp + 0x10]
jle 0x43a7a9
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x43a786
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x43a7c5
dec esi
je 0x43a7be
dec esi
jne 0x43a7ca
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x43bbb8
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebx + 4], eax
xor eax, eax
cmp byte [ebp + 0x24], al
mov dword [ebx + 0x10], ecx
mov ecx, dword [ebp + 0x10]
push edi
mov word [ebx + 0xc], ax
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], eax
jne 0x43bc02
mov ecx, 0x2000
lea edi, [esi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov word [ebx + 0x2c], ax
mov dword [ebx + 0x30], eax
call fcn.0043b614
mov eax, dword [ebx + 0x14]
and dword [ebx + 0x20], 0
mov ecx, 0x8000
push 2
mov word [ebx + 0x3c], cx
mov dword [ebx + 0x34], ecx
add eax, ecx
pop edx
movzx edi, byte [eax]
mov esi, dword [ebx + 0x20]
shl esi, 5
xor esi, edi
and esi, 0x7fff
inc eax
dec edx
mov dword [ebx + 0x20], esi
jne 0x43bc26
cmp byte [ebp + 0x24], 0
je 0x43bc4d
mov edi, ebx
call fcn.0043b472
jmp 0x43bc5c
xor eax, eax
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x43bc4f
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.0043a8cb
push 0x4b
pop edx
call fcn.0043a8cb
call fcn.0043b93c
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x43bc96
mov edi, dword [ebx + 0x14]
mov ecx, 0x2000
lea esi, [edi + 0x8000]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x28]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24