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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x441008]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x441a1c
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 8
pop ecx
lea eax, [esi + 0x18]
push 0x20
mov esi, eax
lea edi, [esp + 0x34]
push 0
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004173b0
add esp, 0xc
push 0x441a1c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x30], 0
je 0x4154f5
lea edi, [ebx + 0x28]
mov ecx, ebx
push edi
push str.Timings
call fcn.004152f4
test al, al
je 0x4154f5
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push dword [eax + 4]
call fcn.00405320
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov edx, esi
mov ecx, edi
call fcn.00415632
pop ecx
test al, al
jne 0x415475
push 0x20
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00418800
add esp, 0xc
jmp 0x4154d9
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x3c]
adc dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x44]
cmp ecx, dword [esp + 0x24]
jg 0x4154a3
mov eax, dword [esp + 0x40]
jl 0x4154ab
cmp eax, dword [esp + 0x20]
jb 0x4154ab
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
cmp dword [esp + 0x2c], ecx
jg 0x4154c9
mov eax, dword [esp + 0x48]
jl 0x4154d1
cmp dword [esp + 0x28], eax
jb 0x4154d1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
push 0x20
lea eax, [esp + 0x14]
push eax
push 3
push 0
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [esi - 0x10]
call fcn.004015ce
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041682f
mov esp, ebp
pop ebp
ret 4

Function at 0x4155e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 8
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41561f
cmp dword [ebp - 8], 3
jne 0x41561f
test eax, eax
jne 0x41561f
cmp dword [ebp - 4], esi
jne 0x41561f
mov al, 1
jmp 0x41562f
push esi
push 0
push dword [ebp + 8]
call fcn.004173b0
add esp, 0xc
xor al, al
pop esi
leave
ret
Function at 0x415632
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x20
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41566b
cmp dword [ebp - 8], 3
jne 0x41566b
test eax, eax
jne 0x41566b
cmp dword [ebp - 4], esi
jne 0x41566b
mov al, 1
jmp 0x41567b
push esi
push 0
push dword [ebp + 8]
call fcn.004173b0
add esp, 0xc
xor al, al
pop esi
leave
ret
Function at 0x4165ae
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebx + 0x24]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
sub esp, 0xc
lea edx, [ebx + 0x1c]
lea ecx, [ebx + 0x40]
mov esi, eax
lea eax, [ebx + 0x38]
push edx
push ecx
lea ecx, [ebx + 0x3c]
push ecx
push eax
push edi
push esi
push ecx
lea ecx, [ebp - 0x88]
call fcn.0041646f
lea ecx, [ebp - 0x30]
call fcn.0040f010
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push 0x2c
mov eax, ecx
mov dword [ebp - 4], esi
push eax
push 0x2c
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x416671
cmp dword [ebp - 0x30], 2
jne 0x416671
cmp dword [ebp - 0x2c], esi
je 0x416671
cmp dword [ebp - 0x10], esi
je 0x416671
cmp dword [ebp - 0xc], esi
je 0x416671
cmp dword [ebp - 8], esi
je 0x416671
lea ecx, [ebp - 0x5c]
call fcn.0040f010
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0x5c], 3
push eax
push 0x2c
mov eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x416671
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x34], eax
mov al, 1
jmp 0x416673
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
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
nop
push 4
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x55525b84
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..rsrc
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xe157e67
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4030fa
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x40311a
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x40312c
mov dword [ebp - 0xc], 0x41aa00
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403141
mov ecx, dword [0x434f58]
add ecx, eax
push ecx
call fcn.0040332b
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403315
test eax, eax
je 0x403303
test byte [ebp + 0x17], 0x80
je 0x4032ae
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40d364], 0
and dword [0x40d360], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40e9e8
mov dword [0x40ce48], 8
mov dword [0x4169f0], eax
mov dword [0x4169ec], eax
mov eax, dword [ebp + 0x14]
mov dword [0x4169e8], 0x4169e8
mov dword [ebp + 8], eax
jle 0x40330b
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x4031ba
mov esi, dword [ebp + 0x14]
mov edi, 0x416a00
push esi
push edi
call fcn.00403315
test eax, eax
je 0x403303
sub dword [ebp + 0x14], esi
mov dword [0x40ce38], edi
mov dword [0x40ce3c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40ce38
mov dword [0x40ce40], edi
mov dword [0x40ce44], eax
call fcn.004067bd
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x4032a6
mov esi, dword [0x40ce40]
sub esi, edi
call ebx
test byte [0x434fb4], 1
mov edi, eax
je 0x403261
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x403228
cmp dword [ebp + 0x14], 0
jne 0x403261
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x94]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
push 0
call fcn.004052e6
mov dword [ebp - 0x10], edi
test esi, esi
je 0x40329a
cmp dword [ebp + 0x10], 0
jne 0x403280
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405e26
test eax, eax
je 0x4032aa
add dword [ebp - 4], esi
jmp 0x40328e
mov eax, dword [0x40ce40]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x4031dd
jmp 0x40330b
cmp dword [ebp + 0x14], 0
jg 0x4031ad
jmp 0x40330b
push 0xfffffffffffffffc
jmp 0x403305
push 0xfffffffffffffffe
jmp 0x403305
test edi, edi
jne 0x4032f0
cmp dword [ebp + 0x14], edi
jle 0x40330b
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x4032c4
mov esi, ebx
mov edi, 0x416a00
push esi
push edi
call fcn.00403315
test eax, eax
je 0x403303
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405e26
test eax, eax
je 0x4032aa
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4032ba
jmp 0x40330b
cmp dword [ebp + 0x14], esi
jge 0x4032f8
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403315
test eax, eax
jne 0x403308
push 0xfffffffffffffffd
pop eax
jmp 0x40330e
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4057b5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f0
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e0
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405806
xor eax, eax
jmp 0x40582d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x40582d
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405802
call esi
pop esi
leave
ret 4

Function at 0x405867
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x430250], 0x44
push eax
xor eax, eax
push 0x430250
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4058a6
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4058aa
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405948
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405d4f
mov edi, eax
cmp edi, 0xffffffff
je 0x405989
test byte [esp + 0x10], 1
push esi
je 0x40596b
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405971
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40597a
xor eax, eax
inc eax
jmp 0x40598b
test byte [esp + 0x10], 4
jne 0x405989
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405990
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405c5b
test bl, 8
mov dword [ebp - 8], eax
je 0x4059cf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434f88], eax
jmp 0x405b4c
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4059e9
test eax, eax
je 0x405afa
test bl, 2
je 0x405afa
mov esi, 0x42f250
push edi
push esi
call fcn.00406282
cmp dword [ebp + 8], 0
je 0x405a08
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a0e
push edi
call fcn.00405b9f
cmp word [edi], 0
jne 0x405a1e
cmp word [0x42f250], 0x5c
jne 0x405a29
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405aef
cmp word [ebp - 0x22c], 0x2e
jne 0x405a73
cmp word [ebp - 0x22a], 0
je 0x405ad2
cmp word [ebp - 0x22a], 0x2e
jne 0x405a73
cmp word [ebp - 0x228], 0
je 0x405ad2
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406282
test byte [ebp - 0x258], 0x10
je 0x405a9e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ad2
push dword [ebp + 0xc]
push edi
call fcn.00405990
jmp 0x405ad2
push dword [ebp - 4]
push edi
call fcn.00405948
test eax, eax
jne 0x405aca
cmp dword [ebp - 4], eax
je 0x405ac2
push edi
push 0xfffffffffffffff1
call fcn.004052e6
push 0
push edi
call fcn.00406048
jmp 0x405ad2
inc dword [0x434f88]
jmp 0x405ad2
push edi
push 0xfffffffffffffff2
call fcn.004052e6
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405a4b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405afa
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405b4c
cmp dword [ebp - 8], esi
jne 0x405b0e
inc dword [0x434f88]
jmp 0x405b4c
push edi
call fcn.004065c5
test eax, eax
je 0x405b4c
push edi
call fcn.00405b53
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405948
test eax, eax
jne 0x405b44
cmp dword [ebp - 4], esi
je 0x405b06
push edi
push 0xfffffffffffffff1
call fcn.004052e6
push esi
push edi
call fcn.00406048
jmp 0x405b4c
push edi
push 0xffffffffffffffe5
call fcn.004052e6
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405c5b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa50
push esi
call fcn.00406282
push esi
call fcn.00405bfe
mov edi, eax
test edi, edi
jne 0x405c7c
xor eax, eax
jmp 0x405cd4
push edi
call fcn.00406516
test byte [0x434efc], 0x80
je 0x405c99
mov ax, word [edi]
test ax, ax
je 0x405c78
cmp ax, 0x5c
je 0x405c78
sub edi, esi
sar edi, 1
jmp 0x405cb3
call fcn.004065c5
test eax, eax
je 0x405cad
test byte [eax], 0x10
je 0x405c78
push esi
call fcn.00405b9f
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405c9f
call fcn.00405b53
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405d4f
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d6e
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405d74
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405da3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a558]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a55c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405df3
test edi, edi
jne 0x405db0
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405ded
Function at 0x405ece
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x4308e8], 0x55004e
mov dword [0x4308ec], 0x4c
mov edi, 0x400
mov ebp, 0x4308e8
je 0x405f24
push 1
push 0
push esi
call fcn.00405d74
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406043
cmp eax, edi
jg 0x406043
mov esi, 0x4310e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406043
cmp eax, edi
jg 0x406043
push esi
push ebp
push str._ls_ls_r_n
push 0x4304e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x434ef4]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004062a4
push 4
push 0xc0000000
push esi
call fcn.00405d74
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406043
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40603c
push edi
push esi
push ebp
call fcn.00405df7
test eax, eax
je 0x40603c
push str._Rename__r_n
push esi
call fcn.00405cd9
test eax, eax
jne 0x405fda
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40600f
add eax, 0xa
push 0x40a560
push eax
call fcn.00405cd9
mov ebp, eax
test ebp, ebp
je 0x40600b
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405ffc
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405ff6
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406011
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4304e8
push eax
call fcn.00405d2f
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405e26
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406048
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40606b
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405ece
pop ecx
pop ecx
inc dword [0x434f90]
ret 8
Function at 0x406150
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004060ef
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4061c0
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x4061c0
cmp dword [ebp + 0xc], 1
je 0x4061c4
cmp dword [ebp + 0xc], 2
je 0x4061c4
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4065ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406610
xor eax, eax
test eax, eax
je 0x406623
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406623
xor ecx, ecx
jmp 0x406626
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x40674f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x406786
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 0x406760
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x40675b
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067b7
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 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x406799
pop edi
not eax
pop esi
ret 0xc
Function at 0x42b270
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439588
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x44eca0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], 8
lea ecx, [ebp - 0x30]
call fcn.00405140
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.00405200
mov ecx, dword [ebp - 0x38]
shl ecx, 2
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 1
mov byte [ebp - 0xd], 1
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x42b344
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push 0
lea ecx, [ebp - 0x30]
call fcn.004052e0
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x42b330
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x34]
jb 0x42b321
mov eax, dword [ebp - 0x38]
shl eax, 1
mov dword [ebp - 0x38], eax
push 0
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00405200
mov edx, dword [ebp - 0x38]
shl edx, 2
mov dword [ebp - 0x34], edx
jmp 0x42b32e
mov eax, dword [ebp - 0x18]
shr eax, 2
mov dword [ebp - 0x38], eax
mov byte [ebp - 0xd], 0
jmp 0x42b342
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x14], 0
jmp 0x42b2d4
cmp dword [ebp - 0x14], 0
je 0x42b383
mov ecx, dword [ebp + 8]
call fcn.00405390
mov dword [ebp - 0x3c], 0
jmp 0x42b364
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x38]
jae 0x42b383
mov eax, dword [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.004052e0
push eax
mov ecx, dword [ebp + 8]
call fcn.00405310
jmp 0x42b35b
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004051b0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret