joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov al, 0xfb
mov cl, 0xf2
mov byte [esp + 0x55], 0x79
mov dword [esp + 0x40], 0x61d6
mov dl, byte [esp + 0x55]
mov ah, dl
xor ah, 0x68
mov byte [esp + 0x17], ah
sub cl, byte [esp + 0x55]
mov byte [esp + 0x1f], cl
mov cl, byte [esp + 0x55]
xor cl, 4
mov byte [esp + 0x3e], cl
mov cl, byte [esp + 0x3e]
sub al, byte [esp + 0x55]
cmp cl, al
mov byte [esp + 0x16], dl
jae 0x407897
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
xor ecx, 0x61d6
add eax, 0xd1659ee8
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov edx, eax
imul edx, ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], edx
mul ecx
mov esi, dword [esp + 0xc]
add edx, esi
add edx, esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
cmp dword [esp + 0x2c], 0x16
jae 0x40797a
mov al, 0x3c
mov cl, byte [esp + 0x55]
mov dl, byte [esp + 0x55]
mov ah, byte [esp + 0x17]
sub al, dl
xor cl, 0x20
mov byte [esp + 0x33], ah
mov si, word [esp + 0x56]
and si, word [esp + 0x56]
mov word [esp + 0x56], si
mov byte [esp + 0x27], cl
mov edi, dword [esp + 0x50]
mov cl, byte [esp + 0x27]
mov dword [esp + 0x50], edi
cmp al, cl
jb 0x4078cd
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dl, byte [esp + 0x55]
xor dl, 0x5f
mov dh, byte [esp + 0x1f]
add eax, 0xffff8c0e
adc ecx, 0xffffffff
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov byte [esp + 0x3f], dh
cmp dl, byte [esp + 0x33]
jb 0x40797a
mov eax, dword [esp + 0x50]
mov dword [esp + 0x50], eax
mov cl, byte [esp + 0x55]
xor cl, 0x4c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov al, byte [esp + 0x16]
mov dl, byte [esp + 0x16]
mul dl
mov ah, byte [esp + 0x3f]
mov byte [esp + 0x47], al
cmp cl, ah
ja 0x40797a
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
add ecx, 0xffff9e2b
add eax, ecx
mov dword [esp + 0x2c], eax
jmp 0x407897
mov eax, 0x4bf9
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
xor edx, 0x6db2
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], edx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x34], edx
mov si, word [esp + 0x56]
xor si, word [esp + 0x56]
mov word [esp + 0x56], si
cmp eax, ecx
je 0x40787c
mov eax, dword [esp + 0x40]
add eax, 0xffff9f1c
add eax, dword [esp + 0x34]
mov cx, word [esp + 0x56]
mov edx, dword [esp + 0x28]
add cx, 0x2bb9
mov word [esp + 0x56], cx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004048b0
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret

Function at 0x4079f0
Capabilities:
Accept command line arguments

Disassembly:
mov dword [0x40a3d8], ebx
mov dword [0x40a3d0], esi
mov dword [0x40a3d4], edi
movaps xmm1, xmm0
jmp fcn.00401540
Function at 0x405360
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 0x40538c
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40538c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x40538e
xor eax, eax
ret 8

Function at 0x409d02
Capabilities:
Delete file

Disassembly:
mov eax, 0x4146c5
call fcn.00414440
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 0x4095eb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x4095f9
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esi + 0x8c]
cmp dword [eax], 0
je 0x40960c
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x409625
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 0x409633
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 0x409643
push eax
call ebx
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x40964d
push eax
call ebx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x40965a
push eax
call ebx
mov eax, dword [esi + 0x84]
test eax, eax
je 0x409667
push eax
call ebx
lea edi, [esi + 0x88]
mov eax, dword [edi]
test eax, eax
je 0x40967e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call ebx
mov ecx, esi
call fcn.00407e6b
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 1
call fcn.004094f7
lea ecx, [esi + 0x54]
call fcn.004102ba
lea ecx, [esi + 0x24]
call fcn.00408485
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push esi
mov esi, ecx
push 0x418994
mov dword [esi], 0x401acc
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, esi
pop esi
jmp 0x4095c3
Function at 0x40aff9
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 0x401c10
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 0x40b0e6
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 0x40b0da
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 0x40b088
xor edi, edi
jmp 0x40b0d1
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 0x40b084
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 0x40b084
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.0041412d
leave
ret 8
Function at 0x40bb55
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 0x40bbe3
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 0x40bc2e
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.0040b665
test eax, eax
je 0x40bc2e
push 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
call fcn.0040b63b
jmp 0x40bc30
xor eax, eax
pop esi
leave
ret 8

Function at 0x40c706
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x414792
call fcn.00414440
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 0x40c739
mov ecx, eax
call fcn.0040af85
mov ebx, eax
jmp 0x40c73b
xor ebx, ebx
test ebx, ebx
mov byte [ebp - 4], 0
mov dword [ebp - 0x10], ebx
jne 0x40c74b
or esi, 0xffffffff
jmp 0x40c7a8
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.00407485
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 0x40c7c7
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x4147a4
call fcn.00414440
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 0x40c907
test ebx, ebx
je 0x40c907
cmp dword [ebp - 0x14], 0
je 0x40c907
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0040c545
test eax, eax
je 0x40c8ef
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 0x40c876
push 0
push eax
call ebx
push 0x138
push dword [esi + 4]
call edi
test eax, eax
je 0x40c889
push 0
push eax
call ebx
push 0x131
push dword [esi + 4]
call edi
test eax, eax
je 0x40c89c
push 0
push eax
call ebx
push 0x139
push dword [esi + 4]
call edi
test eax, eax
je 0x40c8af
push 0
push eax
call ebx
cmp dword [ebp - 0x18], 0
lea ecx, [ebp - 0x10]
jne 0x40c8bf
push 0x1f4
jmp 0x40c8c4
push 0x1f5
call fcn.0040624a
test eax, eax
je 0x40c907
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
je 0x40c907
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 0x40c907
mov edi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push ebx
call edi
test byte [esi + 0x4c], 2
je 0x40c907
push 1
push dword [ebp - 0x14]
call edi
lea ecx, [ebp - 0x10]
call fcn.00405ad5
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40d24f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x418a08], 1
push ebx
push esi
push edi
jne 0x40d272
or dword [0x418a08], 1
call fcn.0040d1fb
mov dword [0x418a04], eax
push 4
pop eax
call fcn.004144b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40d307
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 0x40d307
cmp eax, 1
je 0x40d328
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 0x40d307
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40d2d4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40d303
xor eax, eax
inc eax
jmp 0x40d347
cmp edi, eax
jae 0x40d30b
xor eax, eax
jmp 0x40d347
cmp eax, esi
jae 0x40d312
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 0x40d32b
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 0x40d4e5
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 0x40d836
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 0x40d8c4
cmp word [eax], 0
push ebp
push esi
push edi
je 0x40d8bf
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
cmp word [ebx], 0
mov edi, dword [esp + 0x18]
mov esi, ebx
je 0x40d8ae
mov ax, word [edi]
test ax, ax
je 0x40d8c8
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x40d8ae
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 0x40d8ae
jmp 0x40d8a4
inc esi
inc esi
movzx edx, word [esi]
inc edi
inc edi
movzx ecx, word [edi]
sub edx, ecx
je 0x40d8a8
cmp esi, eax
jb 0x40d896
cmp word [esi], 0
jne 0x40d862
cmp word [edi], 0
je 0x40d8c8
push ebx
call ebp
mov ebx, eax
cmp word [ebx], 0
jne 0x40d856
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, ebx
jmp 0x40d8c1
Function at 0x40da78
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x200c
lea ebp, [esp - 0x1f8c]
call fcn.004144b0
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 0x40daec
cmp dword [ebp - 0x7c], 1
jne 0x40daf0
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 0x40daec
cmp word [ebp - 0x78], si
je 0x40daec
inc eax
jmp 0x40daf9
xor eax, eax
jmp 0x40daf9
xor eax, eax
cmp eax, dword [ebp - 0x7c]
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x1f88]
pop esi
call fcn.0041412d
add ebp, 0x1f8c
leave
ret 4

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

Disassembly:
mov eax, 0x4147b9
call fcn.00414440
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.0040d496
cmp eax, esi
jne 0x40e135
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40e0ef
lea eax, [ebp - 0x210]
push eax
call fcn.0040e096
cmp eax, esi
jne 0x40e134
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 0x40e0df
call fcn.0040d431
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.0040d431
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0041412d
leave
ret 4
Function at 0x40fed5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4148e5
call fcn.00414440
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.0040ec50
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x14], esi
jne 0x40ff31
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40ff1c
call esi
mov esi, eax
jmp 0x41004a
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x41004a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x40ff52
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x40ff7a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40ff65
call esi
jmp 0x41003f
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x410041
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 0x40ffe8
lea edi, [ebx + 1]
cmp edi, 0x400
ja 0x40ffb5
push edi
call fcn.0040d34f
test al, al
je 0x40ffb5
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.004144b0
mov dword [ebp + 8], esp
jmp 0x40ffc1
push edi
lea ecx, [ebp - 0x10]
call fcn.0040ec2d
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40ffcf
mov esi, 0x8007000e
jmp 0x410041
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 0x40fff0
xor eax, eax
jmp 0x410033
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x410020
push ebx
call fcn.0040d34f
test al, al
je 0x410020
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.004144b0
mov eax, esp
jmp 0x410029
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040ec2d
push 0
push esi
push edi
push eax
call fcn.0040d3aa
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.0040f840
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x10]
call fcn.0040defb
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 0x41412d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418894]
jne 0x414136
ret
jmp 0x41413b
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 0x41415f
call eax
cmp dword [0x418a34], 0
je 0x4141a6
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.0041412d
add ebp, 0x2a8
leave
ret
Function at 0x4035ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45500c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403684
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403664
xor eax, eax
push ebp
push 0x40365d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4036a0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403664
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45500c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45500c], ax
mov esp, ebp
pop ebp
ret

Function at 0x40434c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x457048], 0
je 0x4043ad
cmp word [0x45721c], 0xd7b2
jne 0x404375
cmp dword [0x457224], 0
jbe 0x404375
mov eax, 0x457218
call dword [0x457234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x455074
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4043d4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45501c], 0
jne 0x4043c9
push 0
push 0x455094
push 0x455074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret