joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409080
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x429280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0x14]
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00417420
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push 0x425dc0
push eax
call esi
push edi
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x426724
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x421370
push 1
push 0
push 0x421380
mov dword [ebp - 0x214], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4091af
mov eax, dword [ebp - 0x210]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x210]
push 0x4258e0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x210]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x421390
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4091af
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40919a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 2
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x4091c2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x4091d2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c3e
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4091f0
Capabilities:
Acquire debug privileges
Enumerate processes
Get file system object information
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x71c
mov eax, dword [0x429280]
xor eax, esp
mov dword [esp + 0x718], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 1
push edi
push 0
push 2
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
jne 0x409242
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x718]
xor ecx, esp
call fcn.00410c3e
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x409229
lea eax, [esp + 0x14]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4092e0
lea eax, [esp + 0x248]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4092d6
mov eax, dword [esp + 0x248]
push 0
push 0
mov dword [esp + 0x25c], eax
mov eax, dword [esp + 0x254]
push 0
mov dword [esp + 0x264], eax
lea eax, [esp + 0x25c]
push eax
push 0
push dword [esp + 0x28]
mov dword [esp + 0x268], ebx
mov dword [esp + 0x274], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2b4
lea eax, [esp + 0x264]
push 0
push eax
call fcn.00417420
add esp, 0xc
lea eax, [esp + 0x260]
push 0x101
push 0x2b4
push eax
push 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [esp + 0x51c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409369
push dword [esp + 0x20]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [esp + 0x10]
neg eax
sbb eax, eax
and ebx, eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4092e0
mov ecx, dword [esp + 0x724]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410c3e
mov esp, ebp
pop ebp
ret 4
Function at 0x4093a0
Capabilities:
Get common file path
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x429280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [esi], 0x1b58
call fcn.00417420
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.mshtml.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x214]
xor edi, edi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], edi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x218], eax
test eax, eax
je 0x4094a2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4094a2
push ebx
push dword [ebp - 0x218]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x214]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x409490
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], edi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x210], edi
push eax
push 0x425dc0
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x409490
cmp dword [ebp - 0x210], edi
je 0x409490
mov eax, dword [ebp - 0x218]
movzx edi, word [eax + 0xa]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xb
jne 0x4094bb
mov dword [esi], 0x2af8
pop edi
mov dword [esi], 0x1b58
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c3e
mov esp, ebp
pop ebp
ret 4
cmp edi, 0xa
jne 0x4094d9
pop edi
mov dword [esi], 0x2710
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c3e
mov esp, ebp
pop ebp
ret 4
cmp edi, 9
jne 0x4094f7
pop edi
mov dword [esi], 0x2328
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c3e
mov esp, ebp
pop ebp
ret 4
cmp edi, 8
jne 0x409515
pop edi
mov dword [esi], 0x1f40
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c3e
mov esp, ebp
pop ebp
ret 4
cmp edi, 7
je 0x4094a2
cmp edi, 6
jne 0x4094a2
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi], 0x1770
xor ecx, ebp
pop esi
pop ebx
call fcn.00410c3e
mov esp, ebp
pop ebp
ret 4
Function at 0x409540
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x429280]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov word [ebp - 0x28], 0x100
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 1
lea eax, [ebp - 0x2c]
mov ebx, ecx
xor edi, edi
mov dword [ebp - 0x44], ebx
push eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40961a
mov eax, dword [ebp - 0x30]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x14], xmm0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], esi
movdqu xmmword [ebp - 0x24], xmm0
push eax
push 1
mov dword [ebp - 0x24], 0x1f01ff
mov dword [ebp - 0x20], 2
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0xc], 5
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x40961a
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40961a
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x40961a
push edi
push dword [ebp - 0x34]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x40961a
lea eax, [ebp - 0x40]
mov dword [ebp - 0x40], 0xc
push eax
push ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x409628
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x34]
mov ebx, dword [sym.imp.KERNEL32.dll_LocalFree]
test eax, eax
je 0x409638
push eax
call ebx
test esi, esi
je 0x40963f
push esi
call ebx
test edi, edi
jne 0x40965e
push edi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c3e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410c3e
mov esp, ebp
pop ebp
ret
Function at 0x409680
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x429280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42b47c]
push esi
mov dword [ebp - 0x420], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00417420
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00417420
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x426774
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x426284
push 0x12d
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40972c
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c3e
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40974c
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c3e
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000004
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409820
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor edx, edx
mov dword [ebp - 0x41c], eax
add eax, 1
setb dl
neg edx
or edx, eax
push edx
call fcn.00411615
mov esi, eax
add esp, 4
test esi, esi
je 0x409820
push dword [ebp - 0x41c]
push ebx
push esi
call fcn.00412b20
add esp, 0xc
lea eax, [ebp - 0x418]
push 0
push eax
push dword [ebp - 0x41c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00410d94
mov ecx, dword [ebp - 0x420]
add esp, 4
call fcn.0040a490
lea ecx, [ebp - 0x20c]
call fcn.0040a3c0
mov edx, dword [ebp - 0x420]
mov esi, eax
mov ecx, esi
call fcn.0040aa90
test esi, esi
je 0x40980a
push esi
call fcn.00410d94
add esp, 4
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c3e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00410c3e
mov esp, ebp
pop ebp
ret
Function at 0x409940
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x429280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42b470]
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [eax + 0x38], 0
jne 0x4099cf
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x104
push eax
push 0x20019
push 0
push str.SOFTWARE114zhibo
push 0x80000002
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4099bb
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push str.TName
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x4099f6
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c3e
mov esp, ebp
pop ebp
ret 8
add eax, 0xb4
push eax
push 0x104
push esi
push 0x4258e0
push str.TName
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esi], 0
je 0x4099bb
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00410c3e
mov esp, ebp
pop ebp
ret 8
Function at 0x40a490
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x429280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00417420
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push 0
push 0x426754
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x426908
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00410c3e
mov esp, ebp
pop ebp
ret

Function at 0x40a820
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push 0xffffffffffffffeb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x40a868
mov ecx, dword [eax + 0x1b4]
mov edi, dword [eax + 0x1b8]
test ecx, ecx
je 0x40a84f
push 0
push ecx
call ebx
test edi, edi
je 0x40a868
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x426644
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi]
test eax, eax
jne 0x40a8d1
mov ecx, esi
call fcn.0040a5f0
push 0
push dword [0x42b46c]
lea eax, [esi + 8]
push 0
push dword [esi + 4]
push 0x13a
push 0x1f1
push 0
push 0
push 0x40000000
push 0x4258e0
push eax
push 0x10000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi], eax
test eax, eax
jne 0x40a8b3
pop edi
pop esi
pop ebx
ret
mov ecx, esi
call fcn.0040a670
push 5
push dword [esi]
call ebx
push dword [esi]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop edi
pop esi
pop ebx
ret
push 5
push eax
call ebx
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x40a8e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x429280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x30
lea eax, [ebp - 0x34]
mov edi, ecx
push 0
push eax
call fcn.00417420
mov eax, dword [0x42b46c]
add esp, 0xc
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x40a740
push 5
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push 0x7f00
lea esi, [edi + 8]
mov dword [ebp - 0x14], eax
push 0
mov dword [ebp - 0xc], esi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push dword [0x42b46c]
push 0
push dword [edi + 4]
push 0x13a
push 0x1f1
push 0
push 0
push 0x40000000
push 0x4258e0
push esi
push 0x10000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi], eax
test eax, eax
jne 0x40a993
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410c3e
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0040a670
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00410c3e
mov esp, ebp
pop ebp
ret
Function at 0x40b000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x40b05f
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x40b068
test ecx, ecx
je 0x40b05f
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x40b020
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 4], ecx
mov esi, dword [edi]
test esi, esi
je 0x40b0df
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
cmp esi, 0x400000
mov eax, esi
cmova eax, edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add ebx, ecx
add dword [edi], ecx
sub esi, ecx
test eax, eax
je 0x40b0e8
test ecx, ecx
je 0x40b0df
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x40b0a0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40dd20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ecx
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x42c560], ecx
inc eax
cmp eax, 0x100
jb 0x40dd23
cmp eax, 0x800
jae 0x40ddf3
nop
mov edx, dword [eax*4 + 0x42c160]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x42c560]
mov dword [eax*4 + 0x42c560], edx
inc eax
cmp eax, 0x800
jb 0x40ddd0
mov dword [0x42b480], 0x40e9b0
call fcn.0040eb40
mov ecx, dword [0x42b480]
test eax, eax
mov edx, 0x40ea50
cmove ecx, edx
mov dword [0x42b480], ecx
pop ecx
ret
Function at 0x40f050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov eax, dword [eax]
and eax, 7
cmp edx, 5
jae 0x40f070
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
add edx, 0xfffffffc
or ebx, 0xffffffff
add edx, ecx
push esi
mov dword [ebp - 8], edx
lea ecx, [ecx]
lea esi, [edi + ecx]
cmp esi, edx
jae 0x40f099
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40f096
inc esi
cmp esi, edx
jb 0x40f087
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x40f1a1
cmp ecx, 3
jbe 0x40f0b2
xor eax, eax
jmp 0x40f0f0
dec ecx
shl eax, cl
and eax, 7
je 0x40f0f0
movzx ecx, byte [eax + 0x426a24]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x426a1c], 0
mov cl, byte [edx + 4]
je 0x40f0da
test cl, cl
je 0x40f0da
cmp cl, 0xff
jne 0x40f0ed
mov edx, dword [ebp - 8]
and eax, 3
mov ecx, dword [ebp - 4]
add eax, eax
mov ebx, edi
or eax, 1
inc edi
jmp 0x40f080
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x40f112
cmp cl, 0xff
je 0x40f112
mov ecx, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc edi
jmp 0x40f080
movzx edx, cl
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
sub edx, edi
lea ebx, [edx - 5]
test eax, eax
je 0x40f16e
movzx edx, byte [eax + 0x426a24]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x40f15a
cmp dl, 0xff
jne 0x40f16e
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x40f130
mov edx, dword [ebp - 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
mov byte [esi + 1], bl
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
mov ebx, dword [ebp - 0x10]
shr ecx, 8
add edi, 5
mov byte [esi + 2], cl
mov ecx, dword [ebp - 4]
jmp 0x40f080
pop esi
pop ebx
cmp ecx, 3
jbe 0x40f1b6
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
and eax, 7
mov dword [ecx], eax
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41968c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004147e8
mov dword [ebp - 0x14], eax
cmp dword [0x42b3f8], esi
jne 0x41977f
push 0x800
push esi
push 0x42271c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41970c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41985f
push esi
push esi
push 0x42271c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41985f
push 0x422734
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41985f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42b3f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42b3fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42b400], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42b408], eax
test eax, eax
je 0x41977c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42b404], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4197a4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x419797
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4197b9
push 4
pop eax
jmp 0x419861
cmp dword [ebp - 0x14], esi
je 0x4197b9
push dword [0x42b3f8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41979e
mov eax, dword [0x42b404]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x419817
cmp dword [0x42b408], edi
je 0x419817
push eax
call ebx
push dword [0x42b408]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x419817
test eax, eax
je 0x419817
call ecx
test eax, eax
je 0x41980c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41980c
test byte [ebp - 8], 1
jne 0x419817
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x419847
mov eax, dword [0x42b3fc]
cmp eax, edi
je 0x419844
push eax
call ebx
test eax, eax
je 0x419844
call eax
mov esi, eax
test esi, esi
je 0x419844
mov eax, dword [0x42b400]
cmp eax, edi
je 0x419844
push eax
call ebx
test eax, eax
je 0x419844
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42b3f8]
call ebx
test eax, eax
je 0x41985f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x419861
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410c3e
mov esp, ebp
pop ebp
ret