joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402390
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xa0
xor ebx, ebx
lea eax, [ebp - 0xa8]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x2bc], ebx
lea eax, [ebp - 0x2bc]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push 0x401120
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
call fcn.00402510
push dword [0x406d00]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x40242b
lea eax, [ebp - 0x2b8]
push eax
push dword [0x406d00]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 8
lea eax, [ebp - 0x2b8]
push eax
push 3
push ebx
push 0x401250
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
push ebx
push 0x146
push 0xc9
push dword [0x406d00]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor esi, esi
movzx edi, ax
inc esi
cmp esi, edi
ja 0x402470
lea eax, [ebp - 0xa8]
push eax
lea eax, [esi - 1]
push eax
push 0x148
push 0xc9
push dword [0x406d00]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x402479
xor eax, eax
mov word [ebp - 0xa8], ax
push esi
push 0x401230
lea eax, [ebp - 0x2a8]
push 0x200
push eax
call fcn.004018a9
add esp, 0x10
lea eax, [ebp - 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0xa8]
push eax
push 1
push ebx
lea eax, [ebp - 0x2a8]
push eax
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc esi
cmp esi, 0x14
jbe 0x402449
push dword [ebp - 0x2bc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 2
push str.DIALER.HLP
push dword [0x406d00]
call dword [sym.imp.USER32.dll_WinHelpW]
push dword [0x406d00]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [0x406d00], ebx
xor ecx, ebp
pop ebx
call fcn.00405950
leave
ret
Function at 0x4056d0
Capabilities:
Terminate process

Disassembly:
call fcn.00405dd5
jmp 0x4056da
push 0x58
push 0x405f38
call fcn.00405e88
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x406cf0
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x40572c
cmp eax, esi
jne 0x40571f
xor esi, esi
inc esi
mov edi, esi
jmp 0x40572f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x405703
xor esi, esi
inc esi
cmp dword [0x406cf4], esi
jne 0x405741
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40577b
cmp dword [0x406cf4], ebx
jne 0x405775
mov dword [0x406cf4], esi
push 0x4010cc
push 0x4010c0
call fcn.004058b9
pop ecx
pop ecx
test eax, eax
je 0x40577b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4058a9
mov dword [0x406064], esi
cmp dword [0x406cf4], esi
jne 0x40579e
push 0x4010bc
push 0x4010b4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x406cf4], 2
test edi, edi
jne 0x4057ab
xor eax, eax
mov ecx, 0x406cf0
xchg dword [ecx], eax
cmp dword [0x406cf8], 0
je 0x4057d7
push 0x406cf8
call fcn.00405ce0
pop ecx
test eax, eax
je 0x4057d7
push ebx
push 2
push ebx
mov esi, dword [0x406cf8]
mov ecx, esi
call dword [0x40721c]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x405835
test cl, cl
je 0x405804
test edi, edi
jne 0x405835
test cl, cl
je 0x405804
cmp cl, 0x20
ja 0x405804
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x4057f3
test byte [ebp - 0x3c], 1
je 0x405810
movzx eax, word [ebp - 0x38]
jmp 0x405813
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x406060], eax
cmp dword [0x406078], 0
jne 0x40588e
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x405846
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x405859
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x4057e4
cmp dword [0x406064], 0
jne 0x4058a2
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x406060]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x405bc4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x405f58
call fcn.00405e88
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x405c24
cmp eax, 0xffffffff
je 0x405c24
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x405c1d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x405c1d
cmp edx, 0x10000000
jae 0x405c1d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x405c1a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405c90
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x405cce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x405cc6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x405cd0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x405cb6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x405da0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x405dd1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405dd1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x405dd1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xa1a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa1a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa1a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa1a06a
add dl, dl
jne 0xa1a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa1a0dc
xor eax, eax
add dl, dl
jne 0xa1a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa1a17d
add dl, dl
jne 0xa1a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa1a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa1a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa1a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa1a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa1a075
mov eax, 1
add dl, dl
jne 0xa1a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa1a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa1a0e1
sub eax, ebx
mov ebx, 1
jne 0xa1a128
mov ecx, 1
add dl, dl
jne 0xa1a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa1a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa1a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa1a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa1a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa1a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa1a136
cmp eax, 0x7d00
jae 0xa1a16d
cmp eax, 0x500
jb 0xa1a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa1a075
cmp eax, 0x7f
ja 0xa1a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa1a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa1a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa1a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x6d4a2e1d
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x6d4a2e6b
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x6d4a2e7c
push 0xd
pop eax
jmp 0x6d4a2ea6
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x6d4a2e7f
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x6d4a343c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x6d4b3fd0]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.6d4abf21
mov ebx, eax
cmp ebx, esi
je 0x6d4a34af
lea ecx, [ebp - 0x74]
call fcn.6d4a2d4b
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d4ab202
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x6d4a34c7
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.6d4a343c
cmp eax, esi
jne 0x6d4a34f9
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], pe_nt_image_headers32
call ebx
test eax, eax
je 0x6d4a34b7
lea ecx, [ebp - 0x74]
call fcn.6d4a2d4b
push dword [ebp - 0x78]
mov ecx, edi
call fcn.6d4a2cdc
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.6d4a2d4b
mov eax, esi
jmp 0x6d4a3495
Function at 0x6d4ab202
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d4b3fd0]
jne 0x6d4ab20c
repz ret
jmp fcn.6d4ab8f0

Function at 0x6d4abf21
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x6d4abf30
pop dword [ebp - 0x28]
mov eax, 0x4319f722
add eax, 0x2a30c80e
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x3ba42b00
add dword [ebp - 0x38], 0x12ae1a4b
mov dword [ebp - 0x34], 0xb468de33
sub dword [ebp - 0x34], 0x823591ee
mov dword [ebp - 0x30], 0xb8aaa35d
add dword [ebp - 0x30], 0x93a1a0d1
mov dword [ebp - 0x2c], 0x63147dc2
sub dword [ebp - 0x2c], 0x63147dc2
lea eax, [ebp - 0x38]
push eax
mov eax, 0xf065982
sub eax, 0xa1bb894a
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xf36d8fe5
sub dword [ebp - 0x38], 0x7efb268f
mov dword [ebp - 0x34], 0x41a50ffe
add dword [ebp - 0x34], 0xffc75177
mov dword [ebp - 0x30], 0xe775eb4f
add dword [ebp - 0x30], 0x7bf9811d
mov dword [ebp - 0x2c], 0x3a00e01e
sub dword [ebp - 0x2c], 0x3a00e01e
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3a4b4
push 0
call eax
mov ecx, 0x531b
mov edi, eax
mov edx, 0x6d4b7e00
add edx, dword [ebp - 0x28]
mov esi, 0xbc414319
sub esi, 0x76387e3a
xor dword [ebp - 0x1c], 0x877b9a59
mov ebx, dword [edx]
sub dword [ebp - 0x14], 0xcbe98666
add ebx, esi
xor dword [ebp - 0xc], eax
mov dword [edi], ebx
xor dword [ebp - 0x24], esi
add edi, 4
add edx, 0x5c7e99d3
add edx, 0xa3816631
loop 0x6d4ac041
add eax, 0x285e7ff5
sub eax, 0x285d40b6
xor ebx, ebx
add ebx, eax
add eax, 0x130d12e8
add eax, 0xecf2ed1d
mov ecx, 0xfb43167e
sub ecx, 0x8df9167e
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x1050b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1050b1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1050b07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1050b06a
add dl, dl
jne 0x1050b089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1050b0dc
xor eax, eax
add dl, dl
jne 0x1050b096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1050b17d
add dl, dl
jne 0x1050b0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1050b0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1050b0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1050b0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1050b0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1050b075
mov eax, 1
add dl, dl
jne 0x1050b0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1050b0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1050b0e1
sub eax, ebx
mov ebx, 1
jne 0x1050b128
mov ecx, 1
add dl, dl
jne 0x1050b10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1050b119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1050b105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1050b075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1050b13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1050b14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1050b136
cmp eax, 0x7d00
jae 0x1050b16d
cmp eax, 0x500
jb 0x1050b168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1050b075
cmp eax, 0x7f
ja 0x1050b170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1050b075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1050b19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1050b075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402586
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 0x10], 0
je 0x4025a6
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0xc], 0
je 0x4025b2
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 0
test ebx, ebx
je 0x4025bb
cmp byte [ebx], 0
jne 0x4025c2
xor eax, eax
jmp 0x40267c
xor ecx, ecx
mov dword [ebp - 8], ecx
xor esi, esi
jmp 0x402629
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x4025f4
cmp dword [ebp - 4], 0
je 0x4025f4
cmp dword [ebp - 8], 0
jne 0x4025f4
cmp dword [ebp + 0x10], 0
je 0x4025ef
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov dword [ebp - 8], edx
jmp 0x402628
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402606
xor ecx, ecx
mov cl, al
cmp ecx, 0xa
jne 0x402613
and eax, 0xff
cmp eax, 0xd
jne 0x40262e
inc ebx
jmp 0x40262e
mov byte [edx], al
inc edx
mov eax, dword [ebp + 8]
add eax, 0xfffffffe
cmp esi, eax
jle 0x402628
mov ecx, dword [ebp + 0xc]
mov byte [ecx], 1
jmp 0x40262e
inc esi
cmp byte [ebx], 0
jne 0x4025cb
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x40267a
mov edx, dword [ebp - 4]
mov byte [edx], 0
cmp dword [ebp - 8], 0
je 0x40267a
push 0x1000
lea eax, [ebp - 0x1008]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov ecx, dword [ebp + 8]
dec ecx
lea edx, [ebp - 0x1008]
mov eax, dword [ebp - 4]
call fcn.0040fef4
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov byte [edx + ecx - 1], 0
mov eax, dword [ebp - 8]
mov byte [eax], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402a97
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf8
push ebx
mov ebx, eax
cmp byte [0x4158fc], 0
je 0x402b12
cmp byte [0x416e3c], 0
je 0x402b12
lea edx, [ebp - 0x408]
mov eax, 0x416e3c
call fcn.00402a5c
lea ecx, [ebp - 8]
lea eax, [ebp - 4]
push ecx
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 0x402b12
mov eax, ebx
call fcn.0040fe64
inc eax
lea edx, [ebp - 0x408]
push eax
push ebx
push 1
push 0
push edx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402b17
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f4
push ebx
mov ebx, eax
cmp byte [0x4158fc], 0
je 0x402b94
lea edx, [ebp - 0x40c]
mov eax, ebx
call fcn.00402a5c
lea ecx, [ebp - 4]
push ecx
push 1
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402b94
mov dword [ebp - 8], 0x400
lea eax, [ebp - 8]
lea edx, [ebp - 0x80c]
push eax
push edx
lea ecx, [ebp - 0xc]
lea eax, [ebp - 0x40c]
push ecx
push 0
push eax
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x402b8c
lea edx, [ebp - 0x80c]
mov eax, ebx
call fcn.0040fee0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406be0
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.00405758
test eax, eax
je 0x406c06
test ebx, ebx
je 0x406c06
cmp word [ebx], 0
je 0x406c06
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x406c0e
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x406c21
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00406fc0
xor eax, eax
jmp 0x406c3c
call sub.KERNEL32.DLL__
cmp eax, 2
je 0x406c30
cmp eax, 3
jne 0x406c37
mov eax, 2
jmp 0x406c3c
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x408f48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x41764c
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x408f68
call fcn.00408f10
mov eax, dword [ebp - 4]
jmp 0x408f81
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x408f89
test al, 7
jne 0x408f6d
cmp esi, 8
jb 0x409012
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x408f92
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x409034
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x409019
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x2e010e2a
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x2e028d77
call fcn.2e001440
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
push 0x80000001
call esi
cmp eax, ebx
je 0x2e010e62
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 0x80000002
call esi
cmp eax, ebx
jne 0x2e010ecd
lea eax, [ebp + 8]
push eax
push ebx
mov esi, 0x2e02b538
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e010ec4
mov eax, dword [ebp + 8]
cmp eax, ebx
jl 0x2e010ec4
inc eax
push eax
call fcn.2e012f91
mov edi, eax
pop ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp + 8]
push eax
push edi
push ebx
push ebx
push esi
push dword [ebp - 0x10]
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e010eb9
push edi
call sub.MSVCR100.dll_strlen
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push edi
call fcn.2e012f91
mov bl, 1
or dword [ebp - 4], 0xffffffff
push edi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.2e001489
ret 8

Function at 0x2e012f91
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x2e012fa0
pop dword [ebp - 0x1c]
mov eax, 0x4880ab63
sub eax, 0x1a7f7bc3
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x638b0cdc
sub dword [ebp - 0x2c], 0x1538c791
mov dword [ebp - 0x28], 0xd09c6ed4
add dword [ebp - 0x28], 0x6196dd71
mov dword [ebp - 0x24], 0x3ee9c626
sub dword [ebp - 0x24], 0xf29d81f8
mov dword [ebp - 0x20], 0x156ceb7b
add dword [ebp - 0x20], 0xea931485
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x3f7db4f4
sub dword [ebp - 0x2c], 0xcb0b4b9e
mov dword [ebp - 0x28], 0x1de7caf
sub dword [ebp - 0x28], 0xc0721b3a
mov dword [ebp - 0x24], 0x3ed9d4a
sub dword [ebp - 0x24], 0xa07e30de
mov dword [ebp - 0x20], 0xf2e342b
sub dword [ebp - 0x20], 0xf2e342b
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xfd0db097
add eax, 0x30f4ffa5
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x40c71
push 0
call eax
mov ecx, 0x1c6e29f1
add ecx, 0xe3922607
xor ebx, ebx
add ebx, eax
mov edi, 0x44f41692
sub edi, 0x16ef2e92
add edi, dword [ebp - 0x1c]
mov edx, 0x2929eece
add edx, 0x1d91e013
xor dword [ebp - 0x10], eax
mov esi, dword [edi]
add dword [ebp - 4], 0xceb0f370
xor esi, edx
xor dword [ebp - 4], edx
mov dword [ebx], esi
xor dword [ebp - 0x10], edx
add ebx, 0xa1d4872f
add ebx, 0x5e2b78d5
add edi, 0xcf4cc39
sub edi, 0xcf4cc35
loop 0x2e0130bf
add eax, 0x30687297
sub eax, 0x30673fe4
mov ebx, eax
add eax, 0xb455e3a6
sub eax, 0xb455e3a1
mov ecx, 0xd8ba9fe4
sub ecx, 0xaaba9fe4
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x42203bc1
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
mov eax, section..text_1
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5fd131c1
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219