joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041ad
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x418894]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x401538
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40429a
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x40428e
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x40423c
xor edi, edi
jmp 0x404285
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x404238
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x404238
push dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004140d0
leave
ret 8
Function at 0x407009
Capabilities:
Delete file

Disassembly:
mov eax, 0x41464d
call fcn.00414380
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x4c]
test eax, eax
mov dword [ebp - 4], 2
je 0x406e86
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x406e94
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esi + 0x8c]
cmp dword [eax], 0
je 0x406ea7
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x406ec0
push dword [eax + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [esi + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x406ece
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esi + 0x78]
test eax, eax
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x406ede
push eax
call ebx
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x406ee8
push eax
call ebx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x406ef5
push eax
call ebx
mov eax, dword [esi + 0x84]
test eax, eax
je 0x406f02
push eax
call ebx
lea edi, [esi + 0x88]
mov eax, dword [edi]
test eax, eax
je 0x406f19
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call ebx
mov ecx, esi
call fcn.00406d8b
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 1
call fcn.00406d2a
lea ecx, [esi + 0x54]
call fcn.00406b9c
lea ecx, [esi + 0x24]
call fcn.00405adb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push esi
mov esi, ecx
push 0x418924
mov dword [esi], 0x40175c
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, esi
pop esi
jmp 0x406e5e

Function at 0x4073ba
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x4188e4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x4073fe
call ebx
test eax, eax
jns 0x4073f4
push 0x4017d0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x4017c4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4188e0], eax
mov dword [0x4188e4], 1
mov eax, dword [0x4188e0]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x40741a
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x40744a
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x407440
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x407434
push dword [eax + 8]
call dword [eax]
jmp 0x40743a
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x407449
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x408124
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
push 0xd
mov edx, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0x104b
push dword [edx + 4]
mov dword [ebp - 0x34], 4
call dword [sym.imp.USER32.dll_SendMessageW]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
pop edi
leave
ret 4

Function at 0x4081b2
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4081fd
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [esi + 4]
call fcn.0040768b
test eax, eax
je 0x4081fd
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00407661
jmp 0x4081ff
xor eax, eax
pop esi
leave
ret 8

Function at 0x408ddd
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4146b2
call fcn.00414380
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
and dword [ebp - 4], 0
push 0x1c
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x408e10
mov ecx, eax
call fcn.004074c7
mov ebx, eax
jmp 0x408e12
xor ebx, ebx
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jne 0x408e22
or esi, 0xffffffff
jmp 0x408e7f
push edi
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::operator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea ecx, [esi + 0x30]
mov eax, dword [ecx + 4]
lea edx, [ebp - 0x10]
push edx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00412793
push 0xd
pop ecx
xor eax, eax
push eax
push eax
push 0x1004
push dword [esi + 4]
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x48], 4
call edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0x104d
push dword [esi + 4]
mov dword [ebp - 0x28], ebx
call edi
mov esi, eax
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x408e9e
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4146c4
call fcn.00414380
sub esp, 0x10
mov eax, dword [0x417020]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
and dword [ebp - 4], 0
and dword [ebp - 0x18], 0
push 1
push dword [esi + 4]
call edi
push 2
push dword [esi + 4]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
call edi
push dword [esi + 4]
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x408fde
test ebx, ebx
je 0x408fde
cmp dword [ebp - 0x14], 0
je 0x408fde
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00408c1c
test eax, eax
je 0x408fc6
push 1
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnableWindow]
call ebx
push 0
push dword [ebp - 0x14]
call ebx
push 1
push dword [ebp - 0x1c]
push 0x28
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x130
push dword [esi + 4]
call edi
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
je 0x408f4d
push 0
push eax
call ebx
push 0x138
push dword [esi + 4]
call edi
test eax, eax
je 0x408f60
push 0
push eax
call ebx
push 0x131
push dword [esi + 4]
call edi
test eax, eax
je 0x408f73
push 0
push eax
call ebx
push 0x139
push dword [esi + 4]
call edi
test eax, eax
je 0x408f86
push 0
push eax
call ebx
cmp dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
jne 0x408f96
push 0x1f4
jmp 0x408f9b
push 0x1f5
call fcn.004086cd
test eax, eax
je 0x408fde
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
je 0x408fde
lea eax, [esi + 0x1c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x34]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x408fde
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebx
call edi
test byte [esi + 0x4c], 2
je 0x408fde
push 1
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x10]
call fcn.00407901
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4099a1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x418998], 1
push ebx
push esi
push edi
jne 0x4099c4
or dword [0x418998], 1
call fcn.0040994d
mov dword [0x418994], eax
push 4
pop eax
call fcn.00414530
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409a59
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x4188bc]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x409a59
cmp eax, 1
je 0x409a7a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409a59
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x409a26
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409a55
xor eax, eax
inc eax
jmp 0x409a99
cmp edi, eax
jae 0x409a5d
xor eax, eax
jmp 0x409a99
cmp eax, esi
jae 0x409a64
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4188bc]
jmp 0x409a7d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409c37
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x409f88
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
cmp word [ecx], 0
mov eax, dword [esp + 4]
push ebx
mov ebx, eax
je 0x40a016
cmp word [eax], 0
push ebp
push esi
push edi
je 0x40a011
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
cmp word [ebx], 0
mov edi, dword [esp + 0x18]
mov esi, ebx
je 0x40a000
mov ax, word [edi]
test ax, ax
je 0x40a01a
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x40a000
push esi
call ebp
push edi
mov dword [esp + 0x18], eax
call ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
mov edx, eax
sub ecx, edi
sub edx, esi
xor ecx, edx
test ecx, 0xfffffffe
jne 0x40a000
jmp 0x409ff6
inc esi
inc esi
movzx edx, word [esi]
inc edi
inc edi
movzx ecx, word [edi]
sub edx, ecx
je 0x409ffa
cmp esi, eax
jb 0x409fe8
cmp word [esi], 0
jne 0x409fb4
cmp word [edi], 0
je 0x40a01a
push ebx
call ebp
mov ebx, eax
cmp word [ebx], 0
jne 0x409fa8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, ebx
jmp 0x40a013
Function at 0x40a1ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x200c
lea ebp, [esp - 0x1f8c]
call fcn.00414530
mov eax, dword [0x418894]
push esi
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [ebp + 0x1f88], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40a23e
cmp dword [ebp - 0x7c], 1
jne 0x40a242
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x80], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40a23e
cmp word [ebp - 0x78], si
je 0x40a23e
inc eax
jmp 0x40a24b
xor eax, eax
jmp 0x40a24b
xor eax, eax
cmp eax, dword [ebp - 0x7c]
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x1f88]
pop esi
call fcn.004140d0
add ebp, 0x1f8c
leave
ret 4

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

Disassembly:
mov eax, 0x4146d9
call fcn.00414380
sub esp, 0x214
mov eax, dword [0x418894]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov ebx, ecx
mov dword [ebp - 0x214], esi
push 0x2001f
push dword [ebp + 8]
lea ecx, [ebp - 0x214]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.00409be8
cmp eax, esi
jne 0x40a884
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40a83e
lea eax, [ebp - 0x210]
push eax
call fcn.0040a7e5
cmp eax, esi
jne 0x40a883
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x40a82e
call fcn.00409b83
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.00409b83
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004140d0
leave
ret 4
Function at 0x40c707
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x414805
call fcn.00414380
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
call fcn.0040b42f
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x14], esi
jne 0x40c763
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40c74e
call esi
mov esi, eax
jmp 0x40c87c
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40c87c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x40c784
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x40c7ac
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40c797
call esi
jmp 0x40c871
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40c873
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp byte [ebx + esi], 0
mov edi, esi
je 0x40c81a
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x40c7e7
push edi
call fcn.00409aa1
test al, al
je 0x40c7e7
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00414530
mov dword [ebp + 8], esp
jmp 0x40c7f3
push edi
lea ecx, [ebp - 0x10]
call fcn.0040b37c
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40c801
mov esi, 0x8007000e
jmp 0x40c873
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 8]
mov byte [eax + ebx], 0
test edi, edi
jne 0x40c822
xor eax, eax
jmp 0x40c865
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x40c852
push ebx
call fcn.00409aa1
test al, al
je 0x40c852
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.00414530
mov eax, esp
jmp 0x40c85b
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040b37c
push 0
push esi
push edi
push eax
call fcn.00409afc
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040c055
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call fcn.0040a64a
mov eax, esi
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x410d36
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x410d62
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x410d62
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x410d64
xor eax, eax
ret 8
Function at 0x41349b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x41357d
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x413518
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x413568
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x413587
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x413568
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.00413483
test eax, eax
je 0x413587
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x413587
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x4134c8
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x413580
Function at 0x4140d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418894]
jne 0x4140d9
ret
jmp 0x4140de
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x418894]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x418a30]
test eax, eax
je 0x414102
call eax
cmp dword [0x418a34], 0
je 0x414149
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x418a34]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.004140d0
add ebp, 0x2a8
leave
ret
Function at 0x405cd2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov edi, edx
mov dword [ebp - 0x10], 1
mov esi, ecx
mov dword [ebp - 0xc], edi
xorps xmm0, xmm0
mov dword [ebp - 0x14], esi
movsd qword [ebp - 0x20], xmm0
jmp 0x405d08
inc esi
movzx eax, byte [esi]
push eax
call fcn.004501d0
pop ecx
test eax, eax
jne 0x405d07
mov al, byte [esi]
cmp al, 0x2d
jne 0x405d22
or dword [ebp - 0x10], 0xffffffff
jmp 0x405d26
cmp al, 0x2b
jne 0x405d29
inc esi
mov al, byte [esi]
movzx eax, al
jmp 0x405d56
movsx eax, byte [esi]
movsd xmm1, qword [ebp - 0x20]
sub eax, 0x30
mulsd xmm1, qword [0x4702f8]
inc esi
movd xmm0, eax
movzx eax, byte [esi]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
movsd qword [ebp - 0x20], xmm1
push eax
call fcn.00450140
pop ecx
test eax, eax
jne 0x405d2e
mov al, byte [esi]
movsd xmm0, qword [0x4702e8]
movsd qword [ebp - 0x28], xmm0
cmp al, 0x2e
jne 0x405dd1
movsd qword [ebp - 8], xmm0
jmp 0x405db1
movsx eax, byte [esi]
movsd xmm1, qword [ebp - 0x20]
sub eax, 0x30
mulsd xmm1, qword [0x4702f8]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
movsd xmm0, qword [ebp - 8]
mulsd xmm0, qword [0x4702f8]
movsd qword [ebp - 0x20], xmm1
movsd qword [ebp - 8], xmm0
inc esi
movzx eax, byte [esi]
push eax
call fcn.00450140
pop ecx
test eax, eax
jne 0x405d7b
movsd xmm0, qword [ebp - 0x20]
divsd xmm0, qword [ebp - 8]
mov al, byte [esi]
movsd qword [ebp - 0x20], xmm0
cmp al, 0x65
je 0x405ddd
cmp al, 0x45
jne 0x405ec9
xor edi, edi
mov dword [ebp - 4], 1
inc esi
mov al, byte [esi]
cmp al, 0x2d
jne 0x405df3
or dword [ebp - 4], 0xffffffff
jmp 0x405df7
cmp al, 0x2b
jne 0x405dfa
inc esi
mov al, byte [esi]
movzx eax, al
push eax
call fcn.00450140
pop ecx
test eax, eax
je 0x405ea8
imul ecx, edi, 0xa
movsx edi, byte [esi]
add ecx, 0xffffffd0
add edi, ecx
inc esi
movzx eax, byte [esi]
push eax
call fcn.00450140
pop ecx
test eax, eax
jne 0x405e0c
movsd xmm0, qword [0x4702e8]
cmp edi, 0x40
jl 0x405e4f
mov ecx, edi
shr ecx, 6
imul eax, ecx, 0xffffffc0
add edi, eax
mulsd xmm0, qword [0x470368]
sub ecx, 1
jne 0x405e3d
movsd qword [ebp - 0x28], xmm0
cmp edi, 0x10
jl 0x405e70
mov ecx, edi
shr ecx, 4
imul eax, ecx, 0xfffffff0
add edi, eax
mulsd xmm0, qword [0x470350]
sub ecx, 1
jne 0x405e5e
movsd qword [ebp - 0x28], xmm0
cmp edi, 4
jl 0x405e91
mov ecx, edi
shr ecx, 2
imul eax, ecx, 0xfffffffc
add edi, eax
mulsd xmm0, qword [0x470320]
sub ecx, 1
jne 0x405e7f
movsd qword [ebp - 0x28], xmm0
cmp edi, 1
jl 0x405ea8
mulsd xmm0, qword [0x4702f8]
sub edi, 1
jne 0x405e96
movsd qword [ebp - 0x28], xmm0
cmp dword [ebp - 4], 0
mov edi, dword [ebp - 0xc]
jge 0x405ebd
movsd xmm0, qword [ebp - 0x20]
divsd xmm0, qword [ebp - 0x28]
jmp 0x405ece
movsd xmm0, qword [ebp - 0x28]
mulsd xmm0, qword [ebp - 0x20]
jmp 0x405ece
movsd xmm0, qword [ebp - 0x20]
cmp dword [ebp - 0x10], 0
jge 0x405edb
xorps xmm0, xmmword [0x4707a0]
sub esi, dword [ebp - 0x14]
movsd qword [edi], xmm0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret