joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c70
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x9c
push eax
call esi
test eax, eax
jne 0x402cb5
lea ecx, [esp + 8]
mov dword [esp + 8], 0x94
push ecx
call esi
test eax, eax
je case.default.0x402cc9
mov edx, dword [esp + 0xc]
lea eax, [edx - 3]
cmp eax, 3
ja case.default.0x402cc9
mov ecx, dword [esp + 0x10]
jmp dword [eax*4 + 0x402d98]
cmp ecx, 0x33
jne case.0x402cc9.4
pop edi
mov eax, 0x15f
pop esi
add esp, 0x9c
ret
test ecx, ecx
je 0x402d11
cmp ecx, 0xa
je 0x402d03
cmp ecx, 0x5a
jne case.default.0x402cc9
pop edi
mov eax, 0x63
pop esi
add esp, 0x9c
ret
pop edi
mov eax, 0x62
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x402d28
pop edi
mov eax, 0x190
pop esi
add esp, 0x9c
ret
cmp eax, 1
jne case.default.0x402cc9
pop edi
mov eax, 0x5f
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x10]
sub eax, 0
je 0x402d55
dec eax
jne case.default.0x402cc9
pop edi
mov eax, 0x7d3
pop esi
add esp, 0x9c
ret
pop edi
mov eax, 0x7d0
pop esi
add esp, 0x9c
ret
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402d79
pop edi
mov eax, 0x7d6
pop esi
add esp, 0x9c
ret
cmp eax, 1
jne case.default.0x402cc9
pop edi
mov eax, 0x7d7
pop esi
add esp, 0x9c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x9c
ret

Function at 0x402e10
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov eax, 0x8004
call fcn.00403690
push ebx
push ebp
push edi
lea eax, [esp + 0x10]
push 0x7fff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402ed4
lea ecx, [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ecx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x402e8f
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push str.UTCService
push eax
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call ebp
lea edx, [esp + 0x10]
push edx
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlUtcApp
push 0x80000002
call esi
test eax, eax
pop esi
jne 0x402ed4
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push 1
push 0
push str.RButton_Path
push ecx
call ebx
mov edx, dword [esp + 0xc]
push edx
call ebp
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x8004
ret
Function at 0x402ef0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x404
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push str.C:Program_FilesTouchUtilityLinear.exe_RS232_DEVICE0__9
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
call fcn.004035a8
add esp, 8
lea ecx, [esp + 4]
push ecx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402f6d
lea edi, [esp + 8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 8]
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x14]
push str.Linear
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
add esp, 0x404
ret

Function at 0x402f80
Capabilities:
Delete registry value
Persist via run registry key
Terminate process

Disassembly:
sub esp, 0x134
push ebp
lea eax, [esp + 8]
push esi
xor esi, esi
push eax
push 0xf003f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402fc8
mov ecx, dword [esp + 0xc]
push str.UTCService
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 2
mov dword [0x40bc50], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], eax
push ecx
push eax
mov dword [esp + 0x1c], 0x128
call sub.KERNEL32.dll_Process32Next
mov ebp, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
je 0x4030ab
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esp + 0x24]
push edx
push 0
push 0x1fffff
call edi
mov esi, str.UTCService.exe
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x403044
test cl, cl
je 0x403040
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x403044
add eax, 2
add esi, 2
test cl, cl
jne 0x403020
xor eax, eax
jmp 0x403049
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40308a
push eax
push str.Uninstall
push str.find_RButton_Process____
push eax
mov dword [esp + 0x20], 1
call ebp
mov eax, dword [esp + 0x24]
push eax
push 0
push 0x1fffff
call edi
push 1
push eax
call ebx
test eax, eax
je 0x40308a
push 0
push str.Uninstall
push str.Uninstall_UTCService_Success____
push 0
call ebp
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403009
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
pop ebx
jne 0x4030bb
push 0
push str.Uninstall
push str.Cannot_find_UTCService____
push 0
call ebp
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
mov eax, 1
pop ebp
add esp, 0x134
ret
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x416213
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00416292
jae 0x41621f
xor ecx, ecx
call fcn.00416292
jae 0x416249
xor eax, eax
call fcn.00416292
jae 0x41625a
mov al, 0x10
call fcn.00416292
adc al, al
jae 0x41623b
jne 0x416287
stosb byte es:[edi], al
jmp 0x416220
call fcn.0041629e
dec ecx
loop 0x416266
mov eax, ebp
call fcn.0041629c
jmp 0x416288
lodsb al, byte [esi]
shr eax, 1
je 0x4162ae
adc ecx, 2
mov ebp, eax
jmp 0x416288
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0041629c
cmp eax, 0x7d00
jae 0x416286
cmp eax, 0x500
jae 0x416287
cmp eax, 0x7f
ja 0x416288
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416220
pop ebp
ret 8
Function at 0x401e30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401e8b
cmp byte [esi + ebx - 1], 0xa
je 0x401e5f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4030f8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4021c0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432fd9
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40107e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [0x4555c8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x4555cc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
call fcn.00401077
mov eax, dword [0x4555d0]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4555d4]
add ebx, 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, edi
shl eax, 4
cmp dword [0x46480c], 0xc
mov dword [ebp - 4], eax
jne 0x4010f7
xor eax, eax
push eax
lea ecx, [ebp - 0x2c]
push ecx
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
mov eax, dword [0x46480c]
cmp eax, 0xfa9
jne 0x401113
mov dword [0x464808], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401131
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and dword [0x464760], 0
mov ecx, dword [ebp - 8]
and dword [ebp - 0x10], 0
mov edx, edi
lea eax, [ebx + edi]
shr edx, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [0x464804], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor eax, edx
sub esi, eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, esi
shr edx, cl
lea eax, [ebx + esi]
mov dword [ebp - 0x14], eax
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor dword [ebp - 4], edx
sub edi, dword [ebp - 4]
add ebx, 0x61c88647
dec dword [ebp - 0x18]
jne 0x4010cb
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 4
Function at 0x40802f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x454d70]
jne 0x408039
repz ret
jmp fcn.0040c312

Function at 0x40a7c8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404be7
and dword [ebp - 4], 0
cmp dword [0x4597f8], 0
mov ebx, eax
jne 0x40a879
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a92a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a92a
push eax
call fcn.00404b75
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4597f8], eax
call esi
push eax
call fcn.00404b75
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4597fc], eax
call esi
push eax
call fcn.00404b75
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x459800], eax
call esi
push eax
call fcn.00404b75
pop ecx
mov dword [0x459808], eax
test eax, eax
je 0x40a879
push 0x450f18
push edi
call esi
push eax
call fcn.00404b75
pop ecx
mov dword [0x459804], eax
mov eax, dword [0x459804]
cmp eax, ebx
je 0x40a8d1
cmp dword [0x459808], ebx
je 0x40a8d1
push eax
call fcn.00404bf0
push dword [0x459808]
mov esi, eax
call fcn.00404bf0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a8d1
test edi, edi
je 0x40a8d1
call esi
test eax, eax
je 0x40a8c8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a8c8
test byte [ebp - 0xc], 1
jne 0x40a8d1
or dword [ebp + 0x10], 0x200000
jmp 0x40a90a
mov eax, dword [0x4597fc]
cmp eax, ebx
je 0x40a90a
push eax
call fcn.00404bf0
pop ecx
test eax, eax
je 0x40a90a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a90a
mov eax, dword [0x459800]
cmp eax, ebx
je 0x40a90a
push eax
call fcn.00404bf0
pop ecx
test eax, eax
je 0x40a90a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4597f8]
call fcn.00404bf0
pop ecx
test eax, eax
je 0x40a92a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a92c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41da30
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x41dbb8
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x41da5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41da61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41da50
mov eax, 1
add ebx, ebx
jne 0x41da73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41da68
jne 0x41da84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41da68
xor ecx, ecx
sub eax, 3
jb 0x41da98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41db0a
mov ebp, eax
add ebx, ebx
jne 0x41daa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41dab0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41dad4
inc ecx
add ebx, ebx
jne 0x41dac0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41dab5
jne 0x41dad1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41dab5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41daf4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41dae5
jmp 0x41da56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41daf4
add edi, ecx
jmp 0x41da56
pop esi
mov edi, esi
mov ecx, 0x85f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41db12
cmp byte [edi], 1
jne 0x41db12
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41db17
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41db86
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1da24]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1da9c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41db44
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1daa0]
or eax, eax
je 0x41db80
mov dword [ebx], eax
add ebx, 4
jmp 0x41db61
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x41dbb7
cmp al, 0xef
ja 0x41dbaa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41db8c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x41db99
popal
jmp 0x412230
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x7338b20f
xor ecx, ebp
loop 0x40143c
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f30]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a36
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405cfb
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x423f30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423f30], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x40464a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x738980a9
xor ecx, ebp
loop 0x404652
pop ebp
ret

Function at 0x40523d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422480], 0x44
push eax
xor eax, eax
push 0x422480
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405278
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405302
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055b1
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405336
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f08], eax
jmp 0x4054ca
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405354
test eax, eax
je 0x405475
test byte [ebp + 0xc], 2
je 0x405475
mov esi, 0x421480
push edi
push esi
call fcn.004059dd
test ebx, ebx
je 0x405371
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405377
push edi
call fcn.00405517
cmp byte [edi], 0
jne 0x405385
cmp byte [0x421480], 0x5c
jne 0x405390
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40546b
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004054fb
cmp byte [eax], 0
je 0x4053d6
cmp byte [ebp - 0x18], 0
je 0x4053d6
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4053ec
mov al, byte [esi + 1]
test al, al
je 0x40544a
cmp al, 0x2e
jne 0x4053ec
cmp byte [esi + 2], 0
je 0x40544a
push esi
push ebx
call fcn.004059dd
test byte [ebp - 0x148], 0x10
je 0x405411
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40544a
push dword [ebp + 0xc]
push edi
call fcn.00405302
jmp 0x40544a
push edi
call fcn.00405695
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405442
test byte [ebp + 0xc], 4
je 0x40543a
push edi
push 0xfffffffffffffff1
call fcn.00404d7b
push 0
push edi
call fcn.0040572b
jmp 0x40544a
inc dword [0x423f08]
jmp 0x40544a
push edi
push 0xfffffffffffffff2
call fcn.00404d7b
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053b4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405475
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054ca
cmp dword [ebp - 8], esi
jne 0x40548a
inc dword [0x423f08]
jmp 0x4054ca
push edi
call fcn.00405cd4
test eax, eax
je 0x4054ca
push edi
call fcn.004054d0
push edi
call fcn.00405695
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054c2
test byte [ebp + 0xc], 4
je 0x405482
push edi
push 0xfffffffffffffff1
call fcn.00404d7b
push esi
push edi
call fcn.0040572b
jmp 0x4054ca
push edi
push 0xffffffffffffffe5
call fcn.00404d7b
pop edi
pop esi
leave
ret 8
Function at 0x1019a30c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101a4cb8]
jne 0x1019a316
repz ret
jmp fcn.1019bd7b

Function at 0x1019cecf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1019a38d
and dword [ebp - 4], 0
cmp dword [0x101a6dd8], 0
mov ebx, eax
jne 0x1019cf80
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1019d031
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1019d031
push eax
call fcn.1019a31b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101a6dd8], eax
call esi
push eax
call fcn.1019a31b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101a6ddc], eax
call esi
push eax
call fcn.1019a31b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101a6de0], eax
call esi
push eax
call fcn.1019a31b
pop ecx
mov dword [0x101a6de8], eax
test eax, eax
je 0x1019cf80
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1019a31b
pop ecx
mov dword [0x101a6de4], eax
mov eax, dword [0x101a6de4]
cmp eax, ebx
je 0x1019cfd8
cmp dword [0x101a6de8], ebx
je 0x1019cfd8
push eax
call fcn.1019a396
push dword [0x101a6de8]
mov esi, eax
call fcn.1019a396
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1019cfd8
test edi, edi
je 0x1019cfd8
call esi
test eax, eax
je 0x1019cfcf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1019cfcf
test byte [ebp - 0xc], 1
jne 0x1019cfd8
or dword [ebp + 0x10], 0x200000
jmp 0x1019d011
mov eax, dword [0x101a6ddc]
cmp eax, ebx
je 0x1019d011
push eax
call fcn.1019a396
pop ecx
test eax, eax
je 0x1019d011
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1019d011
mov eax, dword [0x101a6de0]
cmp eax, ebx
je 0x1019d011
push eax
call fcn.1019a396
pop ecx
test eax, eax
je 0x1019d011
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101a6dd8]
call fcn.1019a396
pop ecx
test eax, eax
je 0x1019d031
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1019d033
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret