joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409380
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.00417440
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 0x409482
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x409482
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 0x409470
lea eax, [ebp - 0x210]
mov dword [ebp - 0x218], edi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x210], edi
push eax
push 0x425e18
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x409470
cmp dword [ebp - 0x210], edi
je 0x409470
mov eax, dword [ebp - 0x218]
movzx edi, word [eax + 0xa]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xb
jne 0x40949b
mov dword [esi], 0x2af8
pop edi
mov dword [esi], 0x1b58
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410bce
mov esp, ebp
pop ebp
ret 4
cmp edi, 0xa
jne 0x4094b9
pop edi
mov dword [esi], 0x2710
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410bce
mov esp, ebp
pop ebp
ret 4
cmp edi, 9
jne 0x4094d7
pop edi
mov dword [esi], 0x2328
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410bce
mov esp, ebp
pop ebp
ret 4
cmp edi, 8
jne 0x4094f5
pop edi
mov dword [esi], 0x1f40
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410bce
mov esp, ebp
pop ebp
ret 4
cmp edi, 7
je 0x409482
cmp edi, 6
jne 0x409482
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi], 0x1770
xor ecx, ebp
pop esi
pop ebx
call fcn.00410bce
mov esp, ebp
pop ebp
ret 4
Function at 0x409520
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 0x4095fa
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 0x4095fa
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x4095fa
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4095fa
push edi
push dword [ebp - 0x34]
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x4095fa
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 0x409608
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 0x409618
push eax
call ebx
test esi, esi
je 0x40961f
push esi
call ebx
test edi, edi
jne 0x40963e
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.00410bce
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.00410bce
mov esp, ebp
pop ebp
ret
Function at 0x409660
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 [0x42d67c]
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.00417440
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00417440
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 0x42680c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x42631c
push 0x12d
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40970c
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410bce
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 0x40972c
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410bce
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 0x409800
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.004115a5
mov esi, eax
add esp, 4
test esi, esi
je 0x409800
push dword [ebp - 0x41c]
push ebx
push esi
call fcn.00412b40
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.00410d24
mov ecx, dword [ebp - 0x420]
add esp, 4
call fcn.0040a420
lea ecx, [ebp - 0x20c]
call fcn.0040a350
mov edx, dword [ebp - 0x420]
mov esi, eax
mov ecx, esi
call fcn.0040aa20
test esi, esi
je 0x4097ea
push esi
call fcn.00410d24
add esp, 4
pop edi
pop ebx
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410bce
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.00410bce
mov esp, ebp
pop ebp
ret
Function at 0x409920
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 [0x42d670]
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [eax + 0x38], 0
jne 0x4099af
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x104
push eax
push 0x20019
push 0
push str.SOFTWARE4997SBox
push 0x80000002
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40999b
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 0x4099d6
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410bce
mov esp, ebp
pop ebp
ret 8
add eax, 0xb4
push eax
push 0x104
push esi
push 0x4258c8
push str.TName
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [esi], 0
je 0x40999b
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00410bce
mov esp, ebp
pop ebp
ret 8
Function at 0x40a420
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.00417440
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
push 0
push 0x4267ec
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0x4269ac
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.00410bce
mov esp, ebp
pop ebp
ret

Function at 0x40a7b0
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 0x40a7f8
mov ecx, dword [eax + 0x1b4]
mov edi, dword [eax + 0x1b8]
test ecx, ecx
je 0x40a7df
push 0
push ecx
call ebx
test edi, edi
je 0x40a7f8
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x4266dc
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi]
test eax, eax
jne 0x40a861
mov ecx, esi
call fcn.0040a580
push 0
push dword [0x42d66c]
lea eax, [esi + 8]
push 0
push dword [esi + 4]
push 0x13a
push 0x1f1
push 0
push 0
push 0x40000000
push 0x4258c8
push eax
push 0x10000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi], eax
test eax, eax
jne 0x40a843
pop edi
pop esi
pop ebx
ret
mov ecx, esi
call fcn.0040a600
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 0x40a870
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.00417440
mov eax, dword [0x42d66c]
add esp, 0xc
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x40a6d0
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 [0x42d66c]
push 0
push dword [edi + 4]
push 0x13a
push 0x1f1
push 0
push 0
push 0x40000000
push 0x4258c8
push esi
push 0x10000
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [edi], eax
test eax, eax
jne 0x40a923
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410bce
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.0040a600
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.00410bce
mov esp, ebp
pop ebp
ret
Function at 0x40af90
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 0x40afef
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 0x40aff8
test ecx, ecx
je 0x40afef
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x40afb0
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 0x40b010
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 0x40b06f
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 0x40b078
test ecx, ecx
je 0x40b06f
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x40b030
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 0x40dcb0
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 + 0x42e760], ecx
inc eax
cmp eax, 0x100
jb 0x40dcb3
cmp eax, 0x800
jae 0x40dd83
nop
mov edx, dword [eax*4 + 0x42e360]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x42e760]
mov dword [eax*4 + 0x42e760], edx
inc eax
cmp eax, 0x800
jb 0x40dd60
mov dword [0x42d680], 0x40e940
call fcn.0040ead0
mov ecx, dword [0x42d680]
test eax, eax
mov edx, 0x40e9e0
cmove ecx, edx
mov dword [0x42d680], ecx
pop ecx
ret
Function at 0x40efe0
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 0x40f000
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 0x40f029
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40f026
inc esi
cmp esi, edx
jb 0x40f017
mov ecx, dword [ebp - 4]
mov edi, esi
sub edi, ecx
mov ecx, edi
sub ecx, ebx
cmp esi, edx
jae 0x40f131
cmp ecx, 3
jbe 0x40f042
xor eax, eax
jmp 0x40f080
dec ecx
shl eax, cl
and eax, 7
je 0x40f080
movzx ecx, byte [eax + 0x426acc]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x426ac4], 0
mov cl, byte [edx + 4]
je 0x40f06a
test cl, cl
je 0x40f06a
cmp cl, 0xff
jne 0x40f07d
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 0x40f010
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov ebx, edi
mov dword [ebp - 0x10], ebx
test cl, cl
je 0x40f0a2
cmp cl, 0xff
je 0x40f0a2
mov ecx, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc edi
jmp 0x40f010
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 0x40f0fe
movzx edx, byte [eax + 0x426acc]
mov ecx, 0x18
shl edx, 3
sub ecx, edx
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, cl
test dl, dl
je 0x40f0ea
cmp dl, 0xff
jne 0x40f0fe
mov ecx, 0x20
mov edx, 1
sub ecx, dword [ebp - 0xc]
shl edx, cl
dec edx
xor edx, ebx
jmp 0x40f0c0
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 0x40f010
pop esi
pop ebx
cmp ecx, 3
jbe 0x40f146
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 0x4196ac
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.00414808
mov dword [ebp - 0x14], eax
cmp dword [0x42d5f8], esi
jne 0x41979f
push 0x800
push esi
push 0x422704
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41972c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41987f
push esi
push esi
push 0x422704
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41987f
push 0x42271c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41987f
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42d5f8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42d5fc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42d600], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42d608], eax
test eax, eax
je 0x41979c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42d604], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4197c4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4197b7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4197d9
push 4
pop eax
jmp 0x419881
cmp dword [ebp - 0x14], esi
je 0x4197d9
push dword [0x42d5f8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4197be
mov eax, dword [0x42d604]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x419837
cmp dword [0x42d608], edi
je 0x419837
push eax
call ebx
push dword [0x42d608]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x419837
test eax, eax
je 0x419837
call ecx
test eax, eax
je 0x41982c
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 0x41982c
test byte [ebp - 8], 1
jne 0x419837
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x419867
mov eax, dword [0x42d5fc]
cmp eax, edi
je 0x419864
push eax
call ebx
test eax, eax
je 0x419864
call eax
mov esi, eax
test esi, esi
je 0x419864
mov eax, dword [0x42d600]
cmp eax, edi
je 0x419864
push eax
call ebx
test eax, eax
je 0x419864
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42d5f8]
call ebx
test eax, eax
je 0x41987f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x419881
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410bce
mov esp, ebp
pop ebp
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43ea34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x43ea30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43ea30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x45550d
Capabilities:
Encode data using xor

Disassembly:
popal
cmp edi, dword [edi]
adc dword [0xb0603ec7], 0xffffff9b
dec edi
mul dword [edx]
inc ecx
xor dword [ecx], 0xffffff88
mov edi, 0x3fafd652
jno 0x455503
ret 0x223d

Function at 0x464d8b
Capabilities:
Encode data using xor

Disassembly:
test eax, 0xc9af7d3e
dec edi
jbe 0x464def
mov edi, 0x3dd4ed2d
sbb esp, dword [ebp - 3]
sub esi, 0x55
inc ecx
and al, 0xad
scasd eax, dword es:[edi]
inc ecx
mov esi, 0x3f9ebe
add byte [eax], al
add byte [eax], al
add byte [eax], al
aas
add byte [eax], al
add byte [edi], bh
test dword [esi], edi
add ch, byte [edx]
cld
in eax, dx
invalid

Function at 0x46504f
Capabilities:
Encode data using xor

Disassembly:
cmp byte [esi], 0x2a
aaa
imul edi, dword [edi + 0x3ebfb04f], 0x3ef591ac
sub esi, 0x55
inc ecx
and al, 0xad
scasd eax, dword es:[edi]
inc ecx
mov esi, 0x3f9ebe
add byte [eax], al
add byte [eax], al
add byte [eax], al
aas
add byte [eax], al
add byte [edi], bh
or bh, byte [edx + 0x1c083ec5]
add dword [edi], edi
adc edi, dword [eax - 0x31ce40bb]
mov edi, 0x4bfa13e
aas
or dh, byte [edx + 0x46]
inc ecx
sub ch, byte [edi]
scasb al, byte es:[edi]
inc ecx
test byte [eax + 0x3f7a], bh
cmp byte [edi], 0
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [edx], ch
invalid

Function at 0x465698
Capabilities:
Encode data using base64

Disassembly:
cmp eax, 0x3ede9be0
adc byte [edx + 0x3f10], dh
add byte [eax], al
jle 0x4656fa
cwde
cmp eax, 0x3f5bda94
mov cl, 0xc2
add dword [edi + 0x3f2f1609], edi
bnd jmp 0xa3c695d8
add byte [eax], al
add byte [edx], dl
imul esi, ecx, 0x3d
invalid