joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c370
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x2c
push ebx
mov edx, dword [esp + 0x34]
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x40]
push edi
lea eax, [esp + 0x10]
xor edi, edi
push eax
lea ecx, [esp + 0x4c]
push edi
push ecx
push ebp
push esi
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
cmp eax, edi
je 0x40c3ae
cmp eax, 0x7a
jne 0x40c4f3
cmp dword [esp + 0x48], 3
jne 0x40c4f3
mov eax, dword [esp + 0x10]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x40c4f3
mov ecx, dword [esp + 0x10]
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x40]
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x48]
push eax
push ebx
push ecx
push ebp
push esi
push edx
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x40c4de
mov eax, dword [esp + 0x10]
lea ebp, [eax - 0x40]
test ebp, ebp
jle 0x40c4de
call fcn.0040c300
mov ecx, dword [esp + 0x54]
mov esi, eax
xor esi, ecx
xor edx, edx
test ebp, ebp
jle 0x40c450
mov eax, edx
and eax, 0x80000003
jns 0x40c436
dec eax
or eax, 0xfffffffc
inc eax
mov ecx, 3
sub ecx, eax
mov eax, esi
shr eax, cl
mov cl, byte [edx + ebx + 0x30]
xor cl, al
mov byte [edx + ebx + 0x30], cl
inc edx
cmp edx, ebp
jl 0x40c428
xor edx, edx
mov ecx, edx
and ecx, 0x80000003
jns 0x40c461
dec ecx
or ecx, 0xfffffffc
inc ecx
mov eax, esi
shr eax, cl
mov cl, byte [edx + ebx]
xor cl, al
mov byte [edx + ebx], cl
inc edx
cmp edx, 0x21
jl 0x40c452
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea eax, [ebx + 0x30]
push ecx
push ebp
push eax
call fcn.0040c260
add esp, 0xc
mov ecx, 0x21
mov edi, ebx
lea esi, [esp + 0x18]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40c4de
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esp + 0x50]
add esp, 4
test eax, eax
mov dword [ecx], eax
je 0x40c4de
mov ecx, ebp
lea esi, [ebx + 0x30]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x50]
mov ecx, edx
and ecx, 3
mov dword [esp + 0x14], 1
rep movsb byte es:[edi], byte [esi]
mov dword [eax], ebp
push ebx
call fcn.0040e562
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x40e8ca
Capabilities:
Terminate process

Disassembly:
push edi
call fcn.0040e8c4
mov edi, eax
cmp dword [edi + 0x22c], 0
je 0x40e8e7
mov eax, dword [esp + 8]
mov dword [edi + 0x230], eax
pop edi
ret
push ebx
push ebp
push esi
push str._nMIRACL_error_from_routine
call fcn.0040eaa9
pop ecx
mov eax, dword [edi + 0x20]
mov ebp, 0x419dc0
cmp eax, 0x18
jge 0x40e90f
mov eax, dword [edi + eax*4 + 0x24]
push dword [eax*4 + 0x4192a8]
jmp 0x40e910
push ebp
call fcn.0040eaa9
mov eax, dword [sym.imp.MSVCRT.dll__iob]
mov ebx, dword [sym.imp.MSVCRT.dll_fputc]
pop ecx
add eax, 0x20
push eax
push 0xa
call ebx
mov esi, dword [edi + 0x20]
pop ecx
dec esi
pop ecx
js 0x40e96e
lea edi, [edi + esi*4 + 0x24]
push str.______________called_from
call fcn.0040eaa9
cmp esi, 0x18
pop ecx
jge 0x40e950
mov eax, dword [edi]
push dword [eax*4 + 0x4192a8]
jmp 0x40e951
push ebp
call fcn.0040eaa9
mov eax, dword [sym.imp.MSVCRT.dll__iob]
pop ecx
add eax, 0x20
push eax
push 0xa
call ebx
dec esi
pop ecx
sub edi, 4
pop ecx
test esi, esi
jge 0x40e935
mov eax, dword [esp + 0x14]
pop esi
dec eax
pop ebp
cmp eax, 0x17
pop ebx
ja case.default.0x40e97f
jmp dword [eax*4 + 0x40ea49]
push str.Number_base_too_big_for_representation_n
jmp 0x40ea3b
push str.Division_by_zero_attempted_n
jmp 0x40ea3b
push str.Overflow___Number_too_big_n
jmp 0x40ea3b
push str.Internal_result_is_negative_n
jmp 0x40ea3b
push str.Input_format_error_n
jmp 0x40ea3b
push str.Illegal_number_base_n
jmp 0x40ea3b
push str.Illegal_parameter_usage_n
jmp 0x40ea3b
push str.Out_of_space_n
jmp 0x40ea3b
push str.Even_root_of_a_negative_number_n
jmp 0x40ea3b
push str.Raising_integer_to_negative_power_n
jmp 0x40ea3b
push str.Attempt_to_take_illegal_root_n
jmp 0x40ea3b
push str.Integer_operation_attempted_on_Flash_number_n
jmp 0x40ea3b
push str.Flash_overflow_n
jmp 0x40ea3b
push str.Numbers_too_big_n
jmp 0x40ea3b
push str.Log_of_a_non_positive_number_n
jmp 0x40ea3b
push str.Flash_to_double_conversation_failure_n
jmp 0x40ea3b
push str.I_O_buffer_overflow_n
jmp 0x40ea3b
push str.MIRACL_not_initialised___no_call_to_mirsys___n
jmp 0x40ea3b
push str.Illegal_modulus__n
jmp 0x40ea3b
push str.No_modulus_defined_n
jmp 0x40ea3b
push str.Exponent_too_big_n
jmp 0x40ea3b
push str.Number_Base_must_be_power_of_2_n
jmp 0x40ea3b
push str.Specified_double_length_type_isnt_double_length_n
jmp 0x40ea3b
push str.Specified_basis_is_NOT_irreducible_n
call fcn.0040eaa9
pop ecx
push 0
call dword [sym.imp.MSVCRT.dll_exit]
xchg cl, ch
inc eax
add byte [eax - 0x65ffbf17], dl
jmp 0xe9e4ea97

Function at 0x40ebb1
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 1
pop esi
call fcn.0040e8c4
mov edi, dword [ebp + 8]
mov ecx, eax
mov dword [ebp + 8], 0xe
and dword [ecx + 0x134], 0
and dword [ecx + 0x130], 0
xor dword [ecx + 0x9c], edi
mov eax, dword [ebp + 8]
push 0x25
cdq
pop ebx
add dword [ebp + 8], 0xe
idiv ebx
xor dword [ecx + edx*4 + 0x9c], esi
sub edi, esi
cmp dword [ebp + 8], 0x206
lea eax, [ecx + edx*4 + 0x9c]
mov eax, esi
mov esi, edi
mov edi, eax
jl 0x40ebdf
mov esi, 0x3e8
call fcn.0040eb2f
dec esi
jne 0x40ec10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x410110
Capabilities:
Access peb ldr_data
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x411e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov al, 0x9a
push esi
mov byte [esp + 0x30], al
mov byte [esp + 0x38], al
push edi
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x2c]
push 0x14
push eax
push 0x26
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], 1
mov dword [esp + 0x7c], edi
mov byte [esp + 0x38], 0x95
mov byte [esp + 0x39], 0xe3
mov byte [esp + 0x3a], 0xee
mov byte [esp + 0x3b], 0xef
mov byte [esp + 0x3c], 0x91
mov byte [esp + 0x3d], 0xed
mov byte [esp + 0x3e], 0xfa
mov byte [esp + 0x3f], 0xfe
mov byte [esp + 0x41], pe_nt_image_headers32
mov byte [esp + 0x42], 0xcd
mov byte [esp + 0x43], 0xd5
mov byte [esp + 0x44], 0xa5
mov byte [esp + 0x45], 0xc9
mov byte [esp + 0x46], 0xc6
mov byte [esp + 0x47], 0xcf
mov byte [esp + 0x49], pe_nt_image_headers32
mov byte [esp + 0x4a], 0xea
mov byte [esp + 0x4b], 0xf3
call fcn.004021d0
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0xc]
push esi
push edx
push str.Install
lea ecx, [esp + 0x2c]
mov dword [esp + 0x74], 0
call fcn.00402260
push eax
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x4102f8
mov al, 0x99
push 0x1c
mov byte [esp + 0x44], al
mov byte [esp + 0x5c], al
lea eax, [esp + 0x44]
lea ecx, [esp + 0x10]
push eax
push 0x29
mov byte [esp + 0x4d], 0xdd
mov byte [esp + 0x4e], 0xc4
mov byte [esp + 0x4f], 0xd9
mov byte [esp + 0x50], 0xbb
mov byte [esp + 0x51], 0xce
mov byte [esp + 0x52], 0xc6
mov byte [esp + 0x53], 0x9e
mov byte [esp + 0x54], 0x8f
mov byte [esp + 0x55], 0xc6
mov byte [esp + 0x56], 0xc7
mov byte [esp + 0x57], 0xdb
mov byte [esp + 0x58], 0xba
mov byte [esp + 0x59], 0xf3
mov byte [esp + 0x5a], 0xff
mov byte [esp + 0x5b], 0xfb
mov byte [esp + 0x5c], 0x87
mov byte [esp + 0x5d], 0xec
mov byte [esp + 0x5e], 0xee
mov byte [esp + 0x5f], 0xf0
mov byte [esp + 0x60], 0x9d
mov byte [esp + 0x61], 0xf3
mov byte [esp + 0x62], pe_nt_image_headers32
mov byte [esp + 0x63], 0xed
mov byte [esp + 0x65], 0xc3
mov byte [esp + 0x66], 0xde
mov byte [esp + 0x67], 0xcd
call fcn.004021d0
push edi
push esi
mov byte [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4102d2
lea ecx, [esp + 0xc]
mov byte [esp + 0x64], al
call fcn.00402220
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.00402220
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret 8
push esi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
lea ecx, [esp + 0xc]
call fcn.00402260
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x64], 0
call fcn.00402220
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], 0xffffffff
call fcn.00402220
mov ecx, dword [esp + 0x5c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret 8
Function at 0x411110
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
mov edx, ecx
dec ecx
test edx, edx
je 0x411147
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0xc]
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4157fc]
xor eax, edx
inc ecx
dec esi
jne 0x411127
pop esi
pop ebx
not eax
ret

Function at 0x411170
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
je 0x41119b
mov edi, dword [esp + 0x14]
test edi, edi
je 0x41119b
xor eax, eax
test edi, edi
jle 0x41119b
mov cl, byte [esp + 0xc]
mov dl, byte [eax + esi]
xor dl, cl
sub dl, al
mov byte [eax + esi], dl
inc eax
cmp eax, edi
jl 0x41118c
pop edi
pop esi
ret

Function at 0x4111e0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
jne 0x4111fe
xor eax, eax
pop esi
add esp, 0x104
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push 0x104
push esi
push ecx
call ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0x10]
push esi
push eax
call ebx
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop edi
pop ebx
pop esi
add esp, 0x104
ret 4
Function at 0x4113c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xb5]
mov byte [esp + 0xb4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x75]
mov byte [esp + 0x74], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x74]
push 0x40
push eax
mov eax, dword [esp + 0x140]
lea ecx, [esp + 0xbc]
push 0x40
push ecx
lea edx, [esp + 0x44]
push 0x40
push edx
push eax
mov ecx, esi
mov dword [esp + 0x2c], esi
call fcn.00411310
test eax, eax
je 0x41156d
push esi
lea ecx, [esp + 0x18]
push 0x20
lea edx, [esp + 0xbc]
push ecx
lea eax, [esp + 0x40]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x41156d
mov eax, dword [esp + 0x13c]
mov ebp, dword [esp + 0x140]
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x41155f
cmp dword [ebp], eax
jb 0x41155f
xor esi, esi
mov dword [ebp], eax
test eax, eax
jbe 0x411522
cmp ebx, dword [esp + 0x28]
jae 0x411522
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xf5]
mov byte [esp + 0xf4], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x74]
push ebx
stosw word es:[edi], ax
push ecx
push str._s_d
lea edx, [esp + 0x100]
push 0x3f
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__snprintf]
mov eax, dword [ebp]
add esp, 0x14
sub eax, esi
mov edi, 0x4000
cmp eax, 0x4000
jg 0x4114ec
mov edi, eax
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x10]
push eax
push edi
lea edx, [esi + ecx]
lea eax, [esp + 0xfc]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
test eax, eax
je 0x411522
mov eax, dword [ebp]
add esi, edi
inc ebx
cmp esi, eax
jb 0x411496
mov edx, dword [ebp]
mov esi, dword [esp + 0x13c]
mov eax, dword [esp + 0x20]
push edx
push esi
push eax
call fcn.00411170
mov ecx, dword [ebp]
push ecx
push esi
call fcn.00411110
mov ecx, dword [esp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x41157c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x124
ret 0xc
push 0xea
mov dword [ebp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x124
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 0xc
Function at 0x4115e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x44
push esi
mov esi, ecx
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x40
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x54]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00411590
test eax, eax
jne 0x41161b
pop edi
pop esi
add esp, 0x44
ret 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x60]
mov dword [esp + 0x10], 0
mov eax, dword [ebp]
add eax, 0x20
push eax
mov dword [esp + 0x5c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4116e6
lea edx, [esp + 0x58]
lea eax, [esp + 0x60]
push edx
push ebx
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esi + 0x104]
lea edx, [esi + 0x108]
push ecx
push edx
push eax
mov dword [esp + 0x78], 3
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4116dd
mov ecx, dword [esp + 0x58]
mov edx, dword [ebx + 0xc]
push ecx
push ebx
push edx
call fcn.00411170
mov edi, dword [esp + 0x68]
add esp, 0xc
test edi, edi
je 0x4116cc
mov eax, dword [ebx + 8]
mov ecx, dword [ebp]
cmp eax, ecx
ja 0x4116cc
lea esi, [ebx + 0x20]
push eax
push esi
mov dword [ebp], eax
call fcn.00411110
mov ecx, dword [ebx + 0x10]
add esp, 8
cmp eax, ecx
jne 0x4116dd
mov ecx, dword [ebp]
mov dword [esp + 0x10], 1
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4116dd
mov ecx, dword [ebx + 8]
push 0xea
mov dword [ebp], ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call fcn.0040e562
add esp, 4
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x44
ret 0xc
Function at 0x411740
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x411e90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
mov esi, ecx
mov cl, 0xcf
mov al, 0xd4
mov byte [esp + 0x3b], cl
mov byte [esp + 0x44], al
mov byte [esp + 0x4a], al
mov byte [esp + 0x4c], cl
mov byte [esp + 0x52], al
mov byte [esp + 0x5c], al
push edi
mov cl, 0xfe
lea eax, [esp + 0x3c]
push 0x29
mov dl, 0xf4
mov byte [esp + 0x5d], cl
mov byte [esp + 0x5f], cl
mov byte [esp + 0x63], cl
push eax
push 6
lea ecx, [esp + 0x38]
mov byte [esp + 0x48], 0xf5
mov byte [esp + 0x49], 0xc3
mov byte [esp + 0x4a], 0xce
mov byte [esp + 0x4c], 0xf1
mov byte [esp + 0x4d], 0xcd
mov byte [esp + 0x4e], 0xda
mov byte [esp + 0x4f], 0xde
mov byte [esp + 0x50], 0xfa
mov byte [esp + 0x51], 0xc1
mov byte [esp + 0x52], 0xe1
mov byte [esp + 0x53], pe_nt_image_headers32
mov byte [esp + 0x55], 0xe3
mov byte [esp + 0x56], 0xfb
mov byte [esp + 0x57], dl
mov byte [esp + 0x58], 0xc0
mov byte [esp + 0x59], pe_nt_image_headers32
mov byte [esp + 0x5b], 0xcc
mov byte [esp + 0x5d], 0xe2
mov byte [esp + 0x5e], 0xec
mov byte [esp + 0x5f], dl
mov byte [esp + 0x60], 0xd1
mov byte [esp + 0x61], 0xff
mov byte [esp + 0x63], 0xd8
mov byte [esp + 0x64], 0xd3
mov byte [esp + 0x66], 0xfa
mov byte [esp + 0x68], 0xc8
mov byte [esp + 0x69], pe_nt_image_headers32
mov byte [esp + 0x6a], 0xde
mov byte [esp + 0x6d], 0xff
mov byte [esp + 0x6e], 0xe1
mov byte [esp + 0x6f], dl
mov byte [esp + 0x70], 0xc8
call fcn.004021d0
lea ecx, [esp + 0x10]
push 9
mov al, 0xe8
push ecx
push 0xc
lea ecx, [esp + 0x28]
mov dword [esp + 0x7c], 0
mov byte [esp + 0x1c], 0xef
mov byte [esp + 0x1d], 0xe7
mov byte [esp + 0x1e], 0xfd
mov byte [esp + 0x1f], 0xd5
mov byte [esp + 0x20], 0xc3
mov byte [esp + 0x21], 0xff
mov byte [esp + 0x22], 0xd1
mov byte [esp + 0x23], al
mov byte [esp + 0x24], al
call fcn.004021d0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x70], 1
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0x10
call fcn.00402260
lea edx, [esp + 8]
mov edi, eax
push edx
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.00402260
push eax
push edi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4118d2
mov eax, dword [esp + 8]
test eax, eax
je 0x4118d2
mov esi, 1
jmp 0x4118d4
xor esi, esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 0
call fcn.00402220
lea ecx, [esp + 0x2c]
mov dword [esp + 0x70], 0xffffffff
call fcn.00402220
mov ecx, dword [esp + 0x68]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x40a2e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x475a3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046a38c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a362
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046807d
mov eax, dword [eax]
push 0x55d200
push eax
call fcn.0045abc4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046a617
test bl, bl
je 0x40a362
push 0x55d200
lea ecx, [esp + 0xc]
call fcn.0046a9a7
push 0x560d6c
lea ecx, [esp + 0xc]
call fcn.0046a9a7
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40a39e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046a617
jmp 0x40a469
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40a422
lea edx, [esp + 0x7c]
push 0x560d68
push edx
call fcn.0045abc4
add esp, 8
test eax, eax
je 0x40a422
lea eax, [esp + 0x7c]
push 0x560d64
push eax
call fcn.0045abc4
add esp, 8
test eax, eax
je 0x40a422
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a3b2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046a617
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40ac60
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40acc2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40acd0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x475abb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x56cd58]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40ae08
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ad36
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046a617
xor eax, eax
jmp 0x40ae7f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046a754
push esi
lea ecx, [esp + 0xc]
call fcn.0046a9e3
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x560da4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40ae5d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040ac60
test eax, eax
jne 0x40ae5d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push accept
mov ecx, edi
call fcn.0040ac60
test eax, eax
jne 0x40ae5d
lea eax, [esp + 0x14]
push 0x560d80
push eax
call fcn.0045bc00
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ae3c
lea ecx, [esp + 0x14]
push 0x560d7c
push ecx
call fcn.0045bb80
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ae3c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40ae3f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046a704
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ad4e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046a617
xor eax, eax
jmp 0x40ae7f
mov byte [esi], 0
push 0x560d78
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046a617
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4