joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4481e0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebp, ecx
push edi
mov dword [esp + 0x1c], ebp
call fcn.0043b4c0
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
jns 0x448212
mov dword [esp + 0x2c], 0
jmp 0x44822d
mov ecx, ebp
call fcn.0043b4c0
xor ecx, ecx
xor edx, edx
mov cx, word [esi + 2]
mov dx, word [esi + 6]
sub eax, ecx
sub eax, edx
mov dword [esp + 0x2c], eax
mov ecx, ebp
call fcn.0043b4c0
xor edi, edi
mov ebx, eax
mov di, word [esi]
xor ecx, ecx
mov cx, word [esi + 4]
xor edx, edx
xor eax, eax
mov dx, di
mov ax, word [esi + 2]
sub ebx, eax
lea esi, [ecx + edx]
mov ecx, ebp
mov dword [esp + 0x20], ebx
call fcn.0043b4d0
cmp eax, esi
jae 0x44826d
mov ecx, ebp
call fcn.0043b4d0
mov dword [esp + 0x10], eax
jmp 0x448271
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x28]
call fcn.0043b2f0
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp ebp, ebx
jge 0x4482dd
mov eax, dword [esp + 0x10]
mov esi, edi
cmp edi, eax
jge 0x4482d8
mov eax, dword [esp + 0x2c]
mov ebx, ebp
sub ebx, eax
mov ecx, dword [esp + 0x28]
mov eax, esi
sub eax, edi
push ebx
push eax
call fcn.0043d1e0
mov edx, dword [esp + 0x18]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x14]
mov ecx, eax
and ecx, 0xff
cmp ecx, edx
je 0x4482cb
mov ecx, dword [esp + 0x1c]
push eax
push ebp
push esi
call fcn.0043d650
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x448298
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, ebx
jl 0x448286
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
Function at 0x44ba80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x44bab0
push esi
call fcn.0044bf80
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x44baa9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x44bb33
mov eax, dword [esi + 0x1a0]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x44bb1f
mov eax, dword [esi + 8]
test eax, eax
je 0x44bad4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44bb1b
cmp eax, 2
je 0x44bb1f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44bac7
cmp eax, 3
je 0x44bafa
cmp eax, 1
jne 0x44bac7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44bac7
mov edx, dword [esi + 0x120]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44bac7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0044bb60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44bb53
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0044bb60
add esp, 4
pop esi
ret
Function at 0x473a00
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x473a1a
mov eax, dword [ecx + 0x40]
test eax, eax
je 0x473a1a
mov edx, dword [esp + 8]
push edx
push ecx
call eax
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4755f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push eax
push ecx
push 1
call fcn.00476fe0
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, esi
jne 0x475623
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov eax, 0xf4240
mov dword [edx + 0x258], eax
mov ecx, dword [ebp - 4]
push 0x40
mov dword [ecx + 0x25c], eax
push fcn.00498f44
mov edx, dword [ebp - 4]
push edx
call fcn.004739a0
push esi
push eax
call fcn.00498fc0
add esp, 0x14
test eax, eax
je 0x47565f
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
push eax
push ecx
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00477200
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00473a60
mov edi, dword [ebp + 8]
add esp, 0x20
cmp edi, esi
mov ebx, 0x20000
je 0x4756c9
push 0
call fcn.00474190
mov dl, byte [esi + edi]
mov cl, byte [eax + esi]
add esp, 4
cmp dl, cl
je 0x4756b7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x70]
or ecx, ebx
mov dword [eax + 0x70], ecx
push 0
call fcn.00474190
mov al, byte [eax + esi]
add esp, 4
inc esi
test al, al
jne 0x475698
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x70]
test ebx, eax
je 0x475741
test edi, edi
je 0x47573a
mov bl, byte [edi]
push 0
call fcn.00474190
mov cl, byte [eax]
add esp, 4
cmp bl, cl
jne 0x47570d
cmp bl, 0x31
jne 0x475702
push 0
call fcn.00474190
mov dl, byte [edi + 2]
mov cl, byte [eax + 2]
add esp, 4
cmp dl, cl
jne 0x47570d
cmp byte [edi], 0x30
jne 0x475741
cmp byte [edi + 2], 0x39
jge 0x475741
test edi, edi
je 0x47573a
push 0
call fcn.00474190
push eax
push edi
push str.Application_built_with_libpng__.20s_but_running_with__.20s
lea eax, [ebp - 0x58]
push 0x50
push eax
call fcn.004993d2
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004737c0
add esp, 0x20
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 8]
test eax, eax
jne 0x47578f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xb4]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004771d0
add esp, 8
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xb0]
test eax, eax
jne 0x475788
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
test eax, eax
je 0x4757cc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xb0]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00477180
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
push ecx
mov dword [eax + 0xb0], 0
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.00477080
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.00476f60
mov edx, dword [ebp - 4]
push edx
call fcn.00475cf0
add esp, 0x14
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4888e6
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x505e8c]
cmp dword [eax + 0x224], 0
je 0x4888ff
mov ecx, dword [esp + 4]
mov dword [eax + 0x228], ecx
ret
push ebp
push esi
push edi
push str._nMIRACL_error_from_routine
call fcn.00488b1a
pop ecx
mov eax, dword [0x505e8c]
mov ecx, dword [eax + 0x1c]
mov ebp, 0x500994
cmp ecx, 0x18
jge 0x48892c
mov eax, dword [eax + ecx*4 + 0x20]
push dword [eax*4 + 0x4ff6dc]
jmp 0x48892d
push ebp
call fcn.00488b1a
pop ecx
mov edi, 0x501dd0
push edi
push 0xa
call fcn.00498c92
mov eax, dword [0x505e8c]
pop ecx
pop ecx
mov esi, dword [eax + 0x1c]
dec esi
js 0x488990
push ebx
lea ebx, [esi*4 + 0x20]
push str.______________called_from
call fcn.00488b1a
cmp esi, 0x18
pop ecx
jge 0x488976
mov eax, dword [0x505e8c]
mov eax, dword [ebx + eax]
push dword [eax*4 + 0x4ff6dc]
jmp 0x488977
push ebp
call fcn.00488b1a
pop ecx
push edi
push 0xa
call fcn.00498c92
dec esi
pop ecx
sub ebx, 4
pop ecx
test esi, esi
jge 0x488955
pop ebx
mov eax, dword [esp + 0x10]
pop edi
dec eax
pop esi
cmp eax, 0x1c
pop ebp
ja case.default.0x4889a1
jmp dword [eax*4 + 0x488aa6]
push str.Number_base_too_big_for_representation_n
jmp 0x488a99
push str.Division_by_zero_attempted_n
jmp 0x488a99
push str.Overflow___Number_too_big_n
jmp 0x488a99
push str.Internal_result_is_negative_n
jmp 0x488a99
push str.Input_format_error_n
jmp 0x488a99
push str.Illegal_number_base_n
jmp 0x488a99
push str.Illegal_parameter_usage_n
jmp 0x488a99
push str.Out_of_space_n
jmp 0x488a99
push str.Even_root_of_a_negative_number_n
jmp 0x488a99
push str.Raising_integer_to_negative_power_n
jmp 0x488a99
push str.Attempt_to_take_illegal_root_n
jmp 0x488a99
push str.Integer_operation_attempted_on_Flash_number_n
jmp 0x488a99
push str.Flash_overflow_n
jmp 0x488a99
push str.Numbers_too_big_n
jmp 0x488a99
push str.Log_of_a_non_positive_number_n
jmp 0x488a99
push str.Flash_to_double_conversion_failure_n
jmp 0x488a99
push str.I_O_buffer_overflow_n
jmp 0x488a99
push str.MIRACL_not_initialised___no_call_to_mirsys___n
jmp 0x488a99
push str.Illegal_modulus__n
jmp 0x488a99
push str.No_modulus_defined_n
jmp 0x488a99
push str.Exponent_too_big_n
jmp 0x488a99
push str.Unsupported_Feature___check_mirdef.h_n
jmp 0x488a99
push str.Specified_double_length_type_isnt_double_length_n
jmp 0x488a99
push str.Specified_basis_is_NOT_irreducible_n
jmp 0x488a99
push str.Unable_to_control_Floating_point_rounding_n
jmp 0x488a99
push str.Base_must_be_binary__MR_ALWAYS_BINARY_defined_in_mirdef.h____n
jmp 0x488a99
push str.No_irreducible_basis_defined_n
jmp 0x488a99
push str.Composite_modulus_n
jmp 0x488a99
push str.Input_output_error_when_reading_from_RNG_device_node_n
jmp 0x488a99
push str.Undefined_error_n
call fcn.00488b1a
pop ecx
push 0
call fcn.004990a5
test al, 0x89
dec eax
add byte [edx - 0x43ffb777], dh
mov dword [eax], ecx
invalid
Function at 0x496ed9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x496ef9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004999be
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x496f1c
test byte [esp + 8], 2
je 0x496f1c
call fcn.00499a31
mov dword [eax], 0xd
call fcn.00499a3a
mov dword [eax], 5
jmp 0x496ef5
xor eax, eax
ret
Function at 0x4ad680
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00495cb0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4ad74b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4ad74b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4ad6fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4ad709
or bh, 8
and edi, 0x8000000
je 0x4ad724
mov eax, dword [0x509b1c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4ad74b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4adb20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4adb4b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4adb6f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4adb8a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4b21ef
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b2227
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b11f4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b11cb
jmp 0x4b2233
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4b3b38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4b3b7a
call fcn.004c398d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4b3b7a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b3b71
xor eax, eax
jmp 0x4b3b82
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b3b88
pop edi
pop esi
pop ebx
ret 4

Function at 0x4bb0c5
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4cc7fc
call fcn.00495bb4
push ecx
push ecx
push esi
push 0x10
call fcn.004b130a
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4bb112
mov ecx, esi
call fcn.004b62f1
mov eax, dword [0x5014d0]
lea ecx, [esi + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [esi], vtable.CArchiveException.0
mov dword [esi + 8], eax
call fcn.004b0ecd
jmp 0x4bb114
xor esi, esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push 0x4e94b0
push eax
mov dword [ebp - 0x10], esi
call fcn.0049721f
pop esi
Function at 0x4023e6
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x402406
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x40240f
cmp byte [ebx], 0
jne 0x402416
xor eax, eax
jmp 0x402496
xor esi, esi
jmp 0x402459
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402440
cmp dword [ebp - 4], 0
je 0x402440
test esi, esi
jne 0x402440
cmp dword [ebp + 8], 0
je 0x40243c
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x402459
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x40244e
cmp ecx, 0xa
jne 0x402456
cmp ecx, 0xd
jne 0x40245e
inc ebx
jmp 0x40245e
mov byte [edx], al
inc edx
cmp byte [ebx], 0
jne 0x40241a
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x402494
mov eax, dword [ebp - 4]
test esi, esi
mov byte [eax], 0
je 0x402494
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
lea edx, [ebp - 0x1004]
mov eax, dword [ebp - 4]
call fcn.0040c45c
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40249e
Capabilities:
Create process on windows
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7c0
mov ebx, eax
mov al, byte [0x412524]
test al, al
mov byte [esp], dl
lea esi, [esp + 4]
je 0x4024da
xor edx, edx
mov dl, al
cmp edx, 0x20
je 0x4024ce
mov edx, 0x411125
mov eax, ebx
call fcn.0040c530
mov edx, 0x412524
mov eax, ebx
call fcn.0040c530
mov eax, esi
mov ecx, 0x3c
xor edx, edx
call fcn.0040c35c
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 4], 0x5c0
mov al, byte [ebx]
cmp eax, 0x22
jne 0x402503
lea edx, [ebx + 1]
jmp 0x402505
mov edx, ebx
mov dword [esi + 0x10], edx
xor eax, eax
jmp 0x402556
xor ecx, ecx
mov cl, dl
cmp ecx, 0x22
jne 0x40252e
jmp 0x402527
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x22
jne 0x402527
mov byte [ebx + eax], 0x20
jmp 0x40252e
inc eax
cmp byte [ebx + eax], 0
jne 0x402517
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x402543
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x402555
cmp edx, 0x20
jne 0x40254c
mov byte [ebx + eax], 0
lea eax, [eax + ebx + 1]
mov dword [esi + 0x14], eax
jmp 0x40255d
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x40250c
mov dword [esi + 0x1c], 1
mov eax, dword [esi + 0x10]
call fcn.00405e14
mov edi, eax
test edi, edi
je 0x402589
mov edx, str..inf
mov eax, edi
call fcn.0040c4e4
test eax, eax
jne 0x402589
mov dword [esi + 0xc], str.Install
xor edx, edx
mov eax, dword [esi + 0x10]
call fcn.0040679c
mov byte [esp + 1], al
cmp byte [esp + 1], 0
je 0x4025b1
lea edx, [esp + 0x40]
mov eax, dword [esi + 0x10]
call fcn.00406868
lea ecx, [esp + 0x40]
mov dword [esi + 0x10], ecx
cmp byte [esp], 0
je 0x4025f4
cmp byte [esp + 1], 0
jne 0x4025f4
lea eax, [esp + 0x440]
mov edx, dword [esi + 0x10]
call fcn.0040c45c
mov edx, str..exe
lea eax, [esp + 0x440]
call fcn.0040c530
lea eax, [esp + 0x440]
xor edx, edx
call fcn.0040679c
test al, al
je 0x4026dc
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x40261e
and dword [esi + 4], 0xfffffbff
mov dword [esi + 0x10], ebx
push esi
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x4026dc
cmp byte [0x411044], 0
jne 0x402635
cmp byte [esp], 0
je 0x40268d
mov ebx, dword [0x411870]
test ebx, ebx
je 0x402649
push ebx
call sub.USER32.DLL_IsWindowVisible
test eax, eax
jne 0x40264d
xor eax, eax
jmp 0x402652
mov eax, 1
mov ebx, eax
test ebx, ebx
je 0x402665
push 0
push dword [0x411870]
call sub.USER32.DLL_ShowWindow
push 0x7d0
push dword [esi + 0x38]
call sub.USER32.DLL_WaitForInputIdle
push 0xffffffffffffffff
push dword [esi + 0x38]
call sub.KERNEL32.DLL_WaitForSingleObject
test ebx, ebx
je 0x40268d
push 1
push dword [0x411870]
call sub.USER32.DLL_ShowWindow
push dword [esi + 0x38]
call sub.KERNEL32.DLL_CloseHandle
test edi, edi
je 0x4026a9
mov edx, str..exe
mov eax, edi
call fcn.0040c4e4
test eax, eax
je 0x4026dc
cmp byte [0x411044], 0
je 0x4026c4
cmp byte [esp], 0
jne 0x4026c4
push 0x1b58
call sub.KERNEL32.DLL_Sleep
jmp 0x4026dc
cmp byte [esp], 0
je 0x4026d1
mov edx, 0xc8
jmp 0x4026d6
mov edx, 0x3e8
push edx
call sub.KERNEL32.DLL_Sleep
add esp, 0x840
pop edi
pop esi
pop ebx
ret
Function at 0x4026e6
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
add esp, 0xfffffbe0
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [0x411045], 0
jne 0x40276f
mov eax, esp
call fcn.00405b3c
mov ecx, 6
mov edx, dword [str.RarSFX]
call fcn.0040c508
test eax, eax
jne 0x40276f
push 0x411203
call sub.KERNEL32.DLL_SetCurrentDirectoryA
mov eax, esp
call fcn.0040c3dc
mov byte [esp + eax + 1], 0
lea eax, [esp + 0x400]
mov ecx, 0x1e
xor edx, edx
call fcn.0040c35c
mov dword [esp + 0x404], 3
mov word [esp + 0x410], 0x14
mov eax, esp
mov dword [esp + 0x408], eax
lea edx, [esp + 0x400]
push edx
call sub.SHELL32.DLL_SHFileOperationA
add esp, 0x420
ret

Function at 0x40282a
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x41105d], 0
je 0x4028a1
cmp byte [0x41292c], 0
je 0x4028a1
lea edx, [esp + 8]
mov eax, 0x41292c
call fcn.004027f9
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x4028a1
mov eax, ebx
call fcn.0040c3dc
inc eax
push eax
push ebx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x408
pop ebx
ret

Function at 0x4028a9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffff7f4
mov ebx, eax
cmp byte [0x41105d], 0
je 0x402922
lea edx, [esp + 0xc]
mov eax, ebx
call fcn.004027f9
push esp
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402922
mov dword [esp + 4], 0x400
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 0x410]
push eax
lea edx, [esp + 0x10]
push edx
push 0
lea ecx, [esp + 0x1c]
push ecx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x40291a
lea edx, [esp + 0x40c]
mov eax, ebx
call fcn.0040c45c
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x80c
pop ebx
ret

Function at 0x4029e8
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret