joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404300
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x407618
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x404324
add eax, 8
inc ebp
cmp eax, 0x4076a8
jb 0x404315
cmp ecx, dword [ebp*8 + 0x407618]
jne 0x4044cb
mov eax, dword [0x40afd8]
cmp eax, 1
je 0x40448d
test eax, eax
jne 0x404350
cmp dword [0x4071e8], 1
je 0x40448d
cmp ecx, 0xfc
je 0x4044cb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40438b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4043d4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x406358
add ebx, ecx
push ebx
call fcn.004054d0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x406338
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40761c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00405440
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40b420]
test eax, eax
je 0x40449e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4044a8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40761c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x4045a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40b520]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40474d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40b420]
lea edi, [ecx*4 + 0x40b420]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40474d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40460e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40461f
push 2
push ebp
push eax
call fcn.004044e0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40477e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x4046c9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40467a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x404667
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40464a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40476f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x4046c5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x404646
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40473e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404712
cmp eax, 5
jne 0x4046fb
mov dword [0x40aff0], eax
mov dword [0x40afec], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.004055d0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x404732
cmp byte [ebp], 0x1a
jne 0x404732
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40afec], 0x1c
jmp 0x404757
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40afec], 9
pop edi
pop esi
pop ebp
mov dword [0x40aff0], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4046c5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4047af
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x4046c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x4046c9
Function at 0x402a30
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 [0x423fd0]
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 0x402ac4
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a81
cmp dword [ebp + 0x10], ebx
jne 0x402ab8
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a30
test eax, eax
jne 0x402a93
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a68
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405bbe
cmp eax, ebx
je 0x402acb
push ebx
push dword [0x423fd0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ac4
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 [0x423fd0], ebx
jne 0x402ac1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac1
jmp 0x402ac4
Function at 0x402e52
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
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 0x402e6f
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e7e
mov ebx, 0x40f0d8
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402e93
mov ecx, dword [0x423f78]
add ecx, eax
push ecx
call fcn.00403081
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040304f
test eax, eax
je 0x402ffa
test byte [ebp + 0x17], 0x80
je 0x402fe3
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b008
mov dword [ebp - 0xc], eax
call fcn.00405c98
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403045
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402ee3
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0d8
push esi
push edi
call fcn.0040304f
test eax, eax
je 0x402ffa
sub dword [ebp + 0x14], esi
mov dword [0x40b020], edi
mov dword [0x40b024], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b008
mov dword [0x40b028], ebx
mov dword [0x40b02c], eax
call fcn.00405cb8
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402fdb
mov esi, dword [0x40b028]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x409224], 1
mov edi, eax
je 0x402f85
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f52
cmp dword [ebp + 0x14], 0
jne 0x402f85
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 - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404c70
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fd0
cmp dword [ebp + 0x10], eax
jne 0x402fae
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fdf
cmp dword [ebp - 0x10], esi
jne 0x402fdf
add dword [ebp - 4], esi
jmp 0x402fc4
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b028]
jl 0x403045
cmp dword [ebp - 0x14], 1
jne 0x402f06
jmp 0x403045
cmp dword [ebp + 0x14], eax
jg 0x402ed6
jmp 0x403045
push 0xfffffffffffffffc
jmp 0x402ffc
push 0xfffffffffffffffe
jmp 0x402ffc
test edi, edi
je 0x40303a
cmp dword [ebp + 0x14], esi
jge 0x402fef
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040304f
test eax, eax
jne 0x403042
push 0xfffffffffffffffd
pop eax
jmp 0x403048
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40300a
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0d8
push esi
push edi
call fcn.0040304f
test eax, eax
je 0x402ffa
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fdf
cmp esi, dword [ebp + 0x10]
jne 0x402fdf
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402fff
jmp 0x403045
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405132
Capabilities:
Create process on windows

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

Function at 0x4051f7
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.00405499
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x40522d
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423fa8], eax
jmp 0x4053b2
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x405248
test eax, eax
je 0x40535d
test cl, 2
je 0x40535d
mov esi, 0x421530
push ebx
push esi
call fcn.004058c5
cmp dword [ebp + 8], 0
je 0x405267
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40526d
push ebx
call fcn.004053ff
push 0x409010
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x405353
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004053e3
cmp byte [eax], 0
je 0x4052be
cmp byte [ebp - 0x18], 0
je 0x4052be
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4052d4
mov al, byte [esi + 1]
test al, al
je 0x405332
cmp al, 0x2e
jne 0x4052d4
cmp byte [esi + 2], 0
je 0x405332
push esi
push edi
call fcn.004058c5
test byte [ebp - 0x148], 0x10
je 0x4052f9
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405332
push dword [ebp + 0xc]
push ebx
call fcn.004051f7
jmp 0x405332
push ebx
call fcn.0040557d
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40532a
test byte [ebp + 0xc], 4
je 0x405322
push ebx
push 0xfffffffffffffff1
call fcn.00404c70
push 0
push ebx
call fcn.00405613
jmp 0x405332
inc dword [0x423fa8]
jmp 0x405332
push ebx
push 0xfffffffffffffff2
call fcn.00404c70
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40529c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40535d
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x4053b2
cmp dword [ebp - 8], esi
jne 0x405372
inc dword [0x423fa8]
jmp 0x4053b2
push ebx
call fcn.00405b97
test eax, eax
je 0x4053b2
push ebx
call fcn.004053b8
push ebx
call fcn.0040557d
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4053aa
test byte [ebp + 0xc], 4
je 0x40536a
push ebx
push 0xfffffffffffffff1
call fcn.00404c70
push esi
push ebx
call fcn.00405613
jmp 0x4053b2
push ebx
push 0xffffffffffffffe5
call fcn.00404c70
pop esi
pop ebx
leave
ret 8
Function at 0x405499
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421930
push esi
call fcn.004058c5
push esi
call fcn.0040544c
mov edi, eax
test edi, edi
jne 0x4054ba
xor eax, eax
jmp 0x40550c
push edi
call fcn.00405afe
test byte [0x423f34], 0x80
je 0x4054d3
mov al, byte [edi]
test al, al
je 0x4054b6
cmp al, 0x5c
je 0x4054b6
sub edi, esi
jmp 0x4054eb
call fcn.00405b97
test eax, eax
je 0x4054e5
test byte [eax], 0x10
je 0x4054b6
push esi
call fcn.004053ff
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4054d7
call fcn.004053b8
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405599
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x40559c
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
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_CreateFileA]
ret 0xc

Function at 0x4055cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40560f
test edi, edi
jne 0x4055d6
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405609
Function at 0x405613
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405bbe
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405637
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405770
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4226b8], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226b8
je 0x40567b
push 1
push 0
push esi
call fcn.0040559c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405776
cmp eax, edi
jg 0x405776
mov esi, 0x422130
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405776
cmp eax, edi
jg 0x405776
push esi
push ebp
push str._s_s_r_n
push 0x421d30
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f2c]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004058e7
push 4
push 0xc0000000
push esi
call fcn.0040559c
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405770
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 0x405769
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405769
cmp edi, dword [esp + 0x18]
jne 0x405769
push str._Rename__r_n
push esi
call fcn.00405511
test eax, eax
jne 0x40577d
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004058c5
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d30
push eax
call fcn.0040555d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423fb0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x4093a0
push eax
call fcn.00405511
test eax, eax
je 0x405734
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4057a4
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405799
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405736
Function at 0x4057ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40581d
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40580c
cmp dword [ebp + 0x14], 1
je 0x40580e
cmp dword [ebp + 0x14], 2
je 0x40580e
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x4058e7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x405908
mov ecx, dword [0x4236fc]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x423f58]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x422ec0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x40592a
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
je 0x405ae5
jmp 0x40593c
mov cl, byte [ebp + 0xf]
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x405ae5
inc ebx
cmp cl, 0xfc
jbe 0x405acb
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, ecx
mov dword [ebp - 0xc], eax
or ch, 0x80
or ah, 0x80
inc ebx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
jne 0x405a76
cmp dword [0x423fa4], 0
push 2
pop esi
je 0x40599b
push 4
pop esi
test dl, dl
jns 0x4059d6
mov eax, edx
and edx, 0x3f
add edx, dword [0x423f58]
and eax, 0x40
push eax
push edi
push edx
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.004057ac
cmp byte [edi], 0
jne 0x405a5d
push dword [ebp - 0xc]
push edi
call fcn.004058e7
jmp 0x405a58
cmp edx, 0x25
jne 0x4059e9
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x405a58
cmp edx, 0x24
jne 0x405a54
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor esi, esi
jmp 0x405a54
mov eax, dword [0x423f24]
dec esi
test eax, eax
je 0x405a1d
push edi
push 0
push 0
push dword [ebp + esi*4 - 0x14]
push dword [0x423f28]
call eax
test eax, eax
je 0x405a58
lea eax, [ebp - 4]
push eax
push dword [ebp + esi*4 - 0x14]
push dword [0x423f28]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x405a51
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp + 0xc], 0
jne 0x405a58
and byte [edi], 0
test esi, esi
jne 0x4059fe
cmp byte [edi], 0
je 0x405a6e
cmp dword [ebp - 0xc], 0x1a
jne 0x405a6e
push str.MicrosoftInternet_ExplorerQuick_Launch
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.00405afe
jmp 0x405abc
cmp byte [ebp + 0xf], 0xfd
jne 0x405aaa
cmp esi, 0x1d
jne 0x405a8f
push dword [0x423f28]
push edi
call fcn.00405823
jmp 0x405aa0
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.004058c5
add esi, 0xffffffeb
cmp esi, 7
jae 0x405abc
jmp 0x405a6e
cmp byte [ebp + 0xf], 0xff
jne 0x405abc
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004058e7
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x422ec0
jmp 0x405ad8
jne 0x405ad5
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x405ad8
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x405939
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x405afa
push eax
push dword [ebp + 8]
call fcn.004058c5
leave
ret 8
Function at 0x405c2a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422abc], 0
push esi
jne 0x405c61
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 0x405c3b
mov dword [ecx*4 + 0x422ab8], eax
inc ecx
cmp ecx, 0x100
jl 0x405c36
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405c92
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 + 0x422ab8]
xor eax, esi
inc ecx
dec edx
jne 0x405c74
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.00401554
mov ebx, eax
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, ebx
or al, 0x40
push eax
mov eax, 0x401e00
sub eax, fcn.004015cb
push eax
push fcn.004015cb
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x40107d
mov eax, ebx
lea edx, [ebp - 2]
call fcn.00401478
mov eax, ebx
call fcn.004014c9
lea eax, [ebx + 0x1b600]
lea edx, [ebx - 1]
lea ecx, [ebp - 2]
and edx, eax
test ebx, ebx
je 0x401071
mov eax, 0x402054
add eax, eax
jmp 0x401076
mov eax, 0x402054
mov ebx, ecx
call fcn.004015cb
xor eax, eax
lea esp, [ebp + 0x82]
pop ebp
pop edx
pop ecx
pop ebx
ret

Function at 0x401554
Capabilities:
Delete file
Encode data using base64 via winapi

Disassembly:
push ebx
push ecx
push edx
enter 0x11c, 0
lea ebx, [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push ebx
call dword [sym.imp.USER32.DLL_GetCursorPos]
push 0
push 0
lea ebx, [ebp - 4]
call dword [sym.imp.USER32.DLL_GetWindow]
push ebx
lea ebx, [ebp - 0x18]
push ebx
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
lea eax, [ebp - 0x18]
movzx ebx, byte [ebp - 0x18]
push eax
sub ebx, 0x41
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, ebx
leave
pop edx
pop ecx
pop ebx
ret

Function at 0x4015cb
Capabilities:
Delete file

Disassembly:
hlt
push edi
mov edi, 0x72647246
jb 0x401617
ror byte [ecx + 0x6ed8c765], 0
inc edi
add al, 0xe8
push edi
jbe 0x4015a9
popal
mov dword [ebx + edx*2 + 0x6c], ebp
mov dword [ecx + 0x45], esp
jae 0x401612
and byte [ebp + eax*2], 0x8d
mov dword [edx - 0x39], edx
invalid
inc ebp
call 0x6e75775d
outsb dx, byte [esi]
inc ebp
inc ebp
add al, 0xa2
invalid