joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40840b
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 0x408437
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408437
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x408439
xor eax, eax
ret 8

Function at 0x40b128
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x4188a4]
push esi
push 0xf0000000
xor esi, esi
push 0x18
push esi
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x424]
push eax
mov dword [ebp - 0x42c], 0x20
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x420], esi
mov byte [ebp - 0x1c], 0xa0
mov byte [ebp - 0x1b], 0x9c
mov byte [ebp - 0x1a], 0x33
mov byte [ebp - 0x19], 0xc7
mov byte [ebp - 0x18], 0xb
mov byte [ebp - 0x17], 0x5c
mov byte [ebp - 0x16], 0x7f
mov byte [ebp - 0x15], 0x89
mov byte [ebp - 0x14], 0xf
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0xf1
mov byte [ebp - 0x11], 0xb3
mov byte [ebp - 0x10], 0x8b
mov byte [ebp - 0xf], 0x9d
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x87
mov byte [ebp - 0xc], 0x67
mov byte [ebp - 0xb], 0xc7
mov byte [ebp - 0xa], 0x29
mov byte [ebp - 9], 0xde
mov byte [ebp - 8], 0xe4
mov byte [ebp - 7], 0xc3
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40b2b3
push ebx
push edi
lea eax, [ebp - 0x420]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x40b1ef
xor edi, edi
jmp 0x40b2a2
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x16
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x420]
call edi
test eax, eax
jne 0x40b20f
xor edi, edi
jmp 0x40b296
push 0x401bec
push dword [ebp + 8]
mov dword [ebp - 0x428], esi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x40b276
push ebx
push 0x400
lea eax, [ebp - 0x41c]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jbe 0x40b26e
add dword [ebp - 0x428], eax
push esi
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x420]
call edi
test eax, eax
je 0x40b2c0
cmp dword [ebp - 0x428], 0x1800
jb 0x40b22b
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push esi
lea eax, [ebp - 0x42c]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x40b296
inc edi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.004140d1
leave
ret 8
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x40b2b1
Function at 0x40b2e5
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 [0x4188a4]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x401bf8
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 0x40b3d2
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 0x40b3c6
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 0x40b374
xor edi, edi
jmp 0x40b3bd
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 0x40b370
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 0x40b370
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.004140d1
leave
ret 8
Function at 0x40b85c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x418a18], 1
push ebx
push esi
push edi
jne 0x40b87f
or dword [0x418a18], 1
call fcn.0040b808
mov dword [0x418a14], 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 0x40b914
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 [0x4188cc]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x40b914
cmp eax, 1
je 0x40b935
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 0x40b914
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40b8e1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40b910
xor eax, eax
inc eax
jmp 0x40b954
cmp edi, eax
jae 0x40b918
xor eax, eax
jmp 0x40b954
cmp eax, esi
jae 0x40b91f
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 [0x4188cc]
jmp 0x40b938
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 0x40baf2
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 0x40be43
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 0x40bed1
cmp word [eax], 0
push ebp
push esi
push edi
je 0x40becc
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
cmp word [ebx], 0
mov edi, dword [esp + 0x18]
mov esi, ebx
je 0x40bebb
mov ax, word [edi]
test ax, ax
je 0x40bed5
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x40bebb
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 0x40bebb
jmp 0x40beb1
inc esi
inc esi
movzx edx, word [esi]
inc edi
inc edi
movzx ecx, word [edi]
sub edx, ecx
je 0x40beb5
cmp esi, eax
jb 0x40bea3
cmp word [esi], 0
jne 0x40be6f
cmp word [edi], 0
je 0x40bed5
push ebx
call ebp
mov ebx, eax
cmp word [ebx], 0
jne 0x40be63
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, ebx
jmp 0x40bece
Function at 0x40c085
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x200c
lea ebp, [esp - 0x1f8c]
call fcn.00414530
mov eax, dword [0x4188a4]
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 0x40c0f9
cmp dword [ebp - 0x7c], 1
jne 0x40c0fd
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 0x40c0f9
cmp word [ebp - 0x78], si
je 0x40c0f9
inc eax
jmp 0x40c106
xor eax, eax
jmp 0x40c106
xor eax, eax
cmp eax, dword [ebp - 0x7c]
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x1f88]
pop esi
call fcn.004140d1
add ebp, 0x1f8c
leave
ret 4

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

Disassembly:
mov eax, 0x414730
call fcn.0041444c
sub esp, 0x214
mov eax, dword [0x4188a4]
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.0040baa3
cmp eax, esi
jne 0x40c764
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40c71e
lea eax, [ebp - 0x210]
push eax
call fcn.0040c6c5
cmp eax, esi
jne 0x40c763
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 0x40c70e
call fcn.0040ba3e
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.0040ba3e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004140d1
leave
ret 4
Function at 0x40e642
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x41485c
call fcn.0041444c
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.0040d395
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x14], esi
jne 0x40e69e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40e689
call esi
mov esi, eax
jmp 0x40e7b7
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40e7b7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x40e6bf
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x40e6e7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40e6d2
call esi
jmp 0x40e7ac
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x40e7ae
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 0x40e755
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x40e722
push edi
call fcn.0040b95c
test al, al
je 0x40e722
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.00414530
mov dword [ebp + 8], esp
jmp 0x40e72e
push edi
lea ecx, [ebp - 0x10]
call fcn.0040d372
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40e73c
mov esi, 0x8007000e
jmp 0x40e7ae
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 0x40e75d
xor eax, eax
jmp 0x40e7a0
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x40e78d
push ebx
call fcn.0040b95c
test al, al
je 0x40e78d
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.00414530
mov eax, esp
jmp 0x40e796
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040d372
push 0
push esi
push edi
push eax
call fcn.0040b9b7
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040df8d
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call fcn.0040c537
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 0x412e2f
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 0x412ebd
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 0x412f08
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.0041293f
test eax, eax
je 0x412f08
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.00412915
jmp 0x412f0a
xor eax, eax
pop esi
leave
ret 8

Function at 0x4137d6
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x414ad7
call fcn.0041444c
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 0x413809
mov ecx, eax
call fcn.00412852
mov ebx, eax
jmp 0x41380b
xor ebx, ebx
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jne 0x41381b
or esi, 0xffffffff
jmp 0x413878
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.0040a3dc
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 0x413897
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x414ae9
call fcn.0041444c
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 0x4139d7
test ebx, ebx
je 0x4139d7
cmp dword [ebp - 0x14], 0
je 0x4139d7
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00413697
test eax, eax
je 0x4139bf
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 0x413946
push 0
push eax
call ebx
push 0x138
push dword [esi + 4]
call edi
test eax, eax
je 0x413959
push 0
push eax
call ebx
push 0x131
push dword [esi + 4]
call edi
test eax, eax
je 0x41396c
push 0
push eax
call ebx
push 0x139
push dword [esi + 4]
call edi
test eax, eax
je 0x41397f
push 0
push eax
call ebx
cmp dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
jne 0x41398f
push 0x1f4
jmp 0x413994
push 0x1f5
call fcn.0040921a
test eax, eax
je 0x4139d7
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
je 0x4139d7
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 0x4139d7
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebx
call edi
test byte [esi + 0x4c], 2
je 0x4139d7
push 1
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x10]
call fcn.00408b5e
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4140d1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4188a4]
jne 0x4140da
ret
jmp 0x4140df
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x4188a4]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x418a44]
test eax, eax
je 0x414103
call eax
cmp dword [0x418a48], 0
je 0x41414a
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 [0x418a48]
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.004140d1
add ebp, 0x2a8
leave
ret
Function at 0xf06d7c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf06d86
pushal
call 0xf06d8c
pop ebp
sub ebp, 0x10
sub ebp, 0xb06d7c
jmp 0xf06da2
mov eax, 0xb06d7c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c2
mov edx, 0x8e8f2ff2
xor byte [eax], dl
inc eax
dec ecx
jne 0xf06db9
jmp 0xf06dcc
jns 0xf06e0d
jns 0xf06e4b
into
bnd jae 0xf06e09
or dh, dl
int1
aas
dec edx
hlt
add eax, 0x793af110
jae 0xf06deb
int1
aaa
mov byte [0x5ee9aa2], al
sal edx, cl
lcall 0xdef3, 0xf27c84ad
salc
lcall 0xf71a, 0x55ea628b
sbb ebx, edx
out dx, al
add eax, 0xad9af2d3
test byte [edx + esi*8 - 0xd], bh
invalid
sbb ebx, edx
repne cmpsd dword [esi], dword es:[edi]
cmpsb byte [esi], byte es:[edi]
scasd eax, dword es:[edi]
jns 0xf06e8c
cli
bnd jns 0xf06e82
invalid
add eax, 0xad9af2d3
test byte [edx + esi*8 - 0xd], bh
invalid
salc
jg 0xf06de4
salc
push cs
jnp 0xf06e50
salc
sbb dh, bh
sbb esp, dword [ebp + 0x7ff2f2f0]
xchg esi, eax
bnd jg 0xf06df5
salc
push cs
jnp 0xf06e41
salc
jns 0xf06e84
or eax, 0x870dfe87
cli
sbb dh, byte [esi - 0xe]
bnd jns 0xf06ec2
cli
bnd jae 0xf06e7c
xchg ebp, eax
dec ebp
int 0xca
jae 0xf06e82
retf 0x373
xchg ebp, eax
dec ebp
int 0xca
sar dword [ebx], 0x73
add bh, bl
xchg eax, eax
sal byte [ebx], cl
retf 0x3bc1
cmp esi, dword [ebx]
fild word [edi + 0x73d2c0]
add bh, bl
xchg eax, eax
rol cl, cl
and byte [ecx + 0x1a], dh
fild word [edi + 0x20c1d2c0]
jno 0xf06eaf
sbb dh, bh
mov edx, 0xf2bc76fd
idiv dword [edx - 0xd438903]
mov esp, 0xfdf2f2f2
std
jp 0xf06e5a
xchg esp, eax
jns 0xf06e94
retf
bnd jb 0xf06ebb
sbb edi, ebp
jbe 0xf06e99
xchg esp, eax
jae 0xf06ec5
or dword [0xe776fdd7], ecx
or eax, 0xe776fdd7
mov bl, 0x1b
mov bl, 0x1b
sbb edi, dword [esi]
or eax, 0xbedb0d0d
or eax, 0xbedb0d0d
retf
Function at 0x401442
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x401459
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
je 0x40148e
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40148a
cmp edi, eax
jae 0x40148e
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40147c
cmp edi, eax
jb 0x401492
xor eax, eax
jmp 0x40149b
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x402b76
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x48
mov eax, 0x450c31
call fcn.0042fba6
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], ebx
call fcn.00403721
push 0xf0000000
xor esi, esi
inc esi
push esi
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push ebx
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
call edi
test eax, eax
jne 0x402bd8
push ebx
push esi
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push ebx
lea eax, [ebp - 0x24]
push eax
call edi
test eax, eax
je 0x402c64
cmp dword [ebp - 0x30], ebx
je 0x402c5a
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x30]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
xor eax, eax
mov byte [ebp - 0x20], bl
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push 2
push dword [ebp - 0x28]
mov dword [ebp - 0x34], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
lea ebx, [ebp - 0x20]
lea ecx, [ebp - 0x54]
call fcn.00402af8
push 0xffffffffffffffff
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x2c]
push 0
call fcn.00402658
push 0
push esi
lea esi, [ebp - 0x54]
call fcn.0040273f
xor ebx, ebx
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 0x2c]
call fcn.0042fc29
ret