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

Disassembly:
push 0x8c
mov eax, 0x4bc97a
call fcn.00431d6f
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
call fcn.00439ef6
push eax
lea ecx, [ebp - 0x94]
call fcn.00438059
xor edi, edi
lea ecx, [ebp - 0x94]
push esi
mov dword [ebp - 4], edi
call fcn.00438296
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.004386df
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4739cf
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
test eax, eax
je 0x4739cf
and dword [ebp - 0x98], 0
push eax
call fcn.004326fa
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x98]
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebx]
je 0x4739d1
push esi
call fcn.00431e17
pop ecx
xor esi, esi
lea ecx, [ebp - 0x94]
call fcn.00438194
mov eax, esi
call fcn.00431d19
ret

Function at 0x473cd4
Capabilities:
Check if file exists

Disassembly:
push 0x274
mov eax, 0x4bf447
call fcn.00431d6f
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x280], ebx
cmp dword [esi + 0x14], 8
jb 0x473cfb
mov eax, dword [esi]
jmp 0x473cfd
mov eax, esi
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00473c16
pop ecx
pop ecx
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x473d17
mov esi, dword [esi]
lea eax, [ebp - 0x234]
push esi
push eax
call fcn.00473b87
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00473adc
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x234]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00473b46
add esp, 0x18
xor esi, esi
mov byte [ebp - 4], 3
inc esi
push 0x20a
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00476e90
cmp dword [ebp - 0x238], 8
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x264]
cmovae edx, dword [ebp - 0x24c]
lea eax, [ebp - 0x27c]
cmp dword [ebp - 0x250], 8
push edx
cmovae ecx, dword [ebp - 0x264]
cmp dword [ebp - 0x268], 8
push esi
cmovae eax, dword [ebp - 0x27c]
push ecx
push eax
lea eax, [ebp - 0x21c]
push str._s_s__d__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x473e04
inc esi
cmp esi, 0x3e8
jl 0x473d78
push 0x4c0d38
jmp 0x473e0b
lea eax, [ebp - 0x21c]
push eax
mov ecx, edi
call fcn.00401daf
xor esi, esi
lea ecx, [ebp - 0x24c]
push ebx
inc esi
push esi
call fcn.004022ed
push ebx
push esi
lea ecx, [ebp - 0x264]
call fcn.004022ed
push ebx
push esi
lea ecx, [ebp - 0x234]
call fcn.004022ed
push ebx
push esi
lea ecx, [ebp - 0x27c]
call fcn.004022ed
mov eax, edi
call fcn.00431d19
ret
Function at 0x4748bb
Capabilities:
Create process on windows

Disassembly:
push 0x90
mov eax, 0x4bf515
call fcn.00431d6f
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
and dword [ebp - 0x44], 0
push 0x44
pop ebx
push ebx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.00476e90
push 0x10
lea eax, [ebp - 0x58]
mov dword [ebp - 0x9c], ebx
push 0
push eax
call fcn.00476e90
add esp, 0x18
xor edx, edx
xor eax, eax
mov dword [ebp - 0x18], edx
mov word [ebp - 0x28], ax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov word [ebp - 0x40], ax
or ebx, 0xffffffff
mov byte [ebp - 4], 1
test edi, edi
je 0x4749a3
cmp word [edi], dx
jne 0x474934
mov eax, edx
jmp 0x47493b
push edi
call fcn.0047a993
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00402440
cmp dword [ebp - 0x30], 0
je 0x4749a3
mov edi, 0x4c3bc4
push edi
call fcn.0047a993
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00402440
xor edi, edi
cmp word [esi], di
jne 0x47496c
mov eax, edi
jmp 0x474973
push esi
call fcn.0047a993
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004272f3
mov esi, 0x4d1150
push esi
call fcn.0047a993
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004272f3
push ebx
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00427254
jmp 0x4749bf
xor edi, edi
cmp word [esi], di
jne 0x4749ae
mov eax, edi
jmp 0x4749b5
push esi
call fcn.0047a993
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00402440
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x67
call fcn.00475e19
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x9c]
push ecx
push edi
push edi
push edi
push 1
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x474a01
mov esi, edi
jmp 0x474a49
cmp byte [ebp + 0x10], 0
je 0x474a19
cmp dword [ebp + 0x14], 0
cmovg ebx, dword [ebp + 0x14]
push ebx
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x474a36
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x58]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x474a36
mov eax, dword [ebp - 0x44]
mov dword [esi], eax
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.004022ed
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.004022ed
mov eax, esi
call fcn.00431d19
ret
Function at 0x474a8c
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0047a993
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004326fa
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.0047a971
mov eax, dword [ebp - 4]
xor edi, edi
add esp, 0x10
xor ebx, ebx
inc edi
test eax, eax
js 0x474b06
push 0x5c
pop ecx
cmp word [esi + ebx*2], cx
jne 0x474afd
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x474af3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x474b04
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + ebx*2], cx
inc ebx
cmp ebx, eax
jle 0x474ad0
jmp 0x474b06
xor edi, edi
push esi
call fcn.00431e17
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x474b16
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4ed290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
xor edi, edi
push 0x208
push edi
push eax
mov dword [ebp - 0x210], edi
call fcn.00476e90
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401daf
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00431cf3
mov esp, ebp
pop ebp
ret

Function at 0x474c01
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4ed290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
xor edi, edi
push 0x208
push edi
push eax
mov dword [ebp - 0x210], edi
call fcn.00476e90
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x26
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401daf
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00431cf3
mov esp, ebp
pop ebp
ret

Function at 0x474c67
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4ed290]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 8]
push 0x208
push 0
push eax
call fcn.00476e90
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401daf
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00431cf3
mov esp, ebp
pop ebp
ret
Function at 0x474ccc
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4ed290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0047a993
pop ecx
test eax, eax
je 0x474d84
push ebx
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x200]
push str.Program_FilesInternet_Exploreriexplore.exe
push eax
call fcn.0047a971
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0047e44b
push 0x3c
xor edi, edi
lea eax, [ebp - 0x248]
push edi
push eax
call fcn.00476e90
add esp, 0x1c
mov dword [ebp - 0x244], 0x200
xor ebx, ebx
mov dword [ebp - 0x234], esi
inc ebx
mov eax, str.open
mov dword [ebp - 0x23c], eax
push ebx
push edi
push edi
push esi
push eax
push edi
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x474d80
push edi
push edi
push edi
lea ecx, [ebp - 0x20c]
push edi
push ecx
call fcn.004748bb
add esp, 0x14
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00431cf3
mov esp, ebp
pop ebp
ret
Function at 0x475cec
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00432ca0
mov eax, dword [0x4ed290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
call fcn.00483582
mov dword [ebp - 0x1014], eax
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1010], edx
call fcn.0048384e
pop ecx
pop ecx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi + 0x10]
push edi
push eax
push dword [esi]
mov eax, dword [esi + 0x14]
inc ecx
push dword [esi + 4]
add eax, 0x76c
push dword [esi + 8]
push dword [esi + 0xc]
push ecx
push eax
lea eax, [ebp - 0x1004]
push str.__d__d__d__d__d__d___d_:_s
push eax
call fcn.00475c03
add esp, 0x28
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0
xor ecx, ecx
pop edi
inc ecx
test eax, eax
push 0x4c6768
push ebx
cmovne edi, ecx
call fcn.0047fd4a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x475e08
test edi, edi
jne 0x475dab
push esi
push 2
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x100c], 0xfeff
push 1
push eax
call fcn.0047e2a7
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call fcn.0047a993
push esi
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.0047e2a7
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xd
push 1
push eax
call fcn.0047e2a7
push esi
push 2
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1008], 0xa
push 1
push eax
call fcn.0047e2a7
push esi
call fcn.0047de61
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431cf3
mov esp, ebp
pop ebp
ret

Function at 0x48a30f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00489fcf

Function at 0x4a28d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx - 4]
jle 0x4a293a
mov ecx, dword [ebp + 8]
sub ecx, ebx
push esi
mov dword [ebp + 8], ecx
push edi
nop word [eax + eax]
mov esi, dword [ecx + ebx]
lea ebx, [ebx + 4]
mov ecx, eax
mov edi, esi
and edi, 0xffff00ff
and ecx, 0xffff00ff
add edi, ecx
mov edx, esi
movzx ecx, ax
and edx, 0xff00
add edx, ecx
and eax, 0xff00ffff
mov ecx, dword [ebp + 8]
xor edi, edx
and esi, 0xff00ff00
and edi, 0xff00ff
add eax, esi
xor eax, edi
sub dword [ebp + 0x10], 1
mov dword [ebx - 4], eax
jne 0x4a28f0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4a2940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jle 0x4a29b3
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
sub ecx, eax
sub dword [ebp + 0x14], eax
push ebx
push esi
mov dword [ebp + 0xc], ecx
push edi
nop word [eax + eax]
mov ebx, dword [ecx + eax]
lea eax, [eax + 4]
mov esi, dword [eax - 4]
mov ecx, ebx
and ecx, 0xffff00ff
mov edi, esi
and edi, 0xffff00ff
mov edx, esi
add edi, ecx
and edx, 0xff00
movzx ecx, bx
and esi, 0xff00ff00
add edx, ecx
and ebx, 0xff00ffff
mov ecx, dword [ebp + 0x14]
xor edi, edx
and edi, 0xff00ff
add ebx, esi
xor edi, ebx
sub dword [ebp + 0x10], 1
mov dword [ecx + eax - 4], edi
mov ecx, dword [ebp + 0xc]
jne 0x4a2960
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4a31b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp + 8], 0
lea eax, [ebx + eax*4]
mov edi, eax
sub edi, ebx
add edi, 3
shr edi, 2
cmp ebx, eax
cmova edi, ecx
test edi, edi
je 0x4a3224
push esi
mov esi, dword [ebp + 0x10]
nop
mov edx, dword [ebx]
lea esi, [esi + 2]
mov ecx, edx
lea ebx, [ebx + 4]
shr ecx, 0x10
mov eax, edx
shr eax, 0xd
xor cl, al
mov eax, edx
and cl, 7
shr eax, 0x10
xor cl, al
mov eax, edx
mov byte [esi - 2], cl
mov ecx, edx
shr ecx, 5
shr eax, 3
xor cl, al
shr edx, 5
mov eax, dword [ebp + 8]
and cl, 0x1f
xor cl, dl
inc eax
mov byte [esi - 1], cl
mov dword [ebp + 8], eax
cmp eax, edi
jb 0x4a31e0
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4a3230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor ecx, ecx
push ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp + 8], 0
lea eax, [edi + eax*4]
mov ebx, eax
sub ebx, edi
add ebx, 3
shr ebx, 2
cmp edi, eax
cmova ebx, ecx
test ebx, ebx
je 0x4a329b
push esi
mov esi, dword [ebp + 0x10]
nop
mov edx, dword [edi]
lea esi, [esi + 2]
mov ecx, edx
lea edi, [edi + 4]
shr ecx, 0x10
mov eax, edx
shr eax, 0xc
xor cl, al
mov eax, edx
shr eax, 0x10
and cl, 0xf
xor cl, al
mov eax, edx
shr eax, 0x1c
xor al, dl
mov byte [esi - 2], cl
and al, 0xf
xor al, dl
mov byte [esi - 1], al
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, ebx
jb 0x4a3260
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x448640
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x62d330]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x18]
mov esi, ecx
mov dword [ebp - 0x218], eax
test edi, edi
je 0x448762
lea eax, [ebp - 0x210]
push eax
push 0x5faaec
push 1
push 0
push 0x5faddc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x448762
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x5fae3c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x448756
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax]
test esi, esi
jne 0x4486cd
push dword [0x639f5c]
jmp 0x4486ce
push esi
push eax
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x218]
test edx, edx
je 0x4486e9
mov eax, dword [ebp - 0x210]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x210]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x21c]
test edx, edx
je 0x448710
mov eax, dword [ebp - 0x210]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test ebx, ebx
je 0x44872f
push ebx
push edi
lea eax, [ebp - 0x20c]
push 0x6028ec
push eax
call fcn.00577ef5
add esp, 0x10
jmp 0x4487bb
push 0x5c
test esi, esi
je 0x448738
push esi
jmp 0x44873e
push dword [0x639f5c]
call fcn.00577c81
add esp, 8
test eax, eax
jne 0x448775
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00574661
mov esp, ebp
pop ebp
ret
push eax
push edi
lea eax, [ebp - 0x20c]
push 0x6028e0
push eax
call fcn.00577ef5
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x448794
sub ecx, edx
mov eax, 0x6b
sar ecx, 1
mov dword [ebp + ecx*2 - 0x212], 0x6e006c
mov word [ebp + ecx*2 - 0x20e], ax
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
pop edi
setns al
xor ecx, ebp
pop esi
pop ebx
call fcn.00574661
mov esp, ebp
pop ebp
ret
Function at 0x3f5e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x25000]
push edi
jmp 0x3f5fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x3f601
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x3f5f0
mov eax, 1
add ebx, ebx
jne 0x3f613
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x3f608
jne 0x3f624
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x3f608
xor ecx, ecx
sub eax, 3
jb 0x3f638
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x3f6aa
mov ebp, eax
add ebx, ebx
jne 0x3f643
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x3f650
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x3f674
inc ecx
add ebx, ebx
jne 0x3f660
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x3f655
jne 0x3f671
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x3f655
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x3f694
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x3f685
jmp 0x3f5f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x3f694
add edi, ecx
jmp 0x3f5f6
pop esi
mov edi, esi
mov ecx, 0x2a3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x3f6b2
cmp byte [edi], 5
jne 0x3f6b2
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 al, bl
loop 0x3f6b7
lea edi, [esi + 0x2d000]
mov eax, dword [edi]
or eax, eax
je 0x3f726
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2fdf8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2fe84]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x3f6e4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2fe88]
or eax, eax
je 0x3f720
mov dword [ebx], eax
add ebx, 4
jmp 0x3f701
call dword [esi + 0x2fe98]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x3f757
cmp al, 0xef
ja 0x3f74a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x3f72c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x3f739
mov ebp, dword [esi + 0x2fe8c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x3f78b
sub esp, 0xffffff80
jmp 0x18248
Function at 0x4054a9
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
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.00405767
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4054e8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42e448], eax
jmp 0x405672
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405502
test eax, eax
je 0x405620
test bl, 2
je 0x405620
mov esi, 0x42a848
push edi
push esi
call fcn.00405be9
cmp dword [ebp + 8], 0
je 0x405521
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405527
push edi
call fcn.004056c0
cmp byte [edi], 0
jne 0x405535
cmp byte [0x42a848], 0x5c
jne 0x405540
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405616
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.004056a4
cmp byte [eax], 0
je 0x405586
cmp byte [ebp - 0x1c], 0
je 0x405586
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40559c
mov al, byte [esi + 1]
test al, al
je 0x4055f5
cmp al, 0x2e
jne 0x40559c
cmp byte [esi + 2], 0
je 0x4055f5
push esi
push ebx
call fcn.00405be9
test byte [ebp - 0x14c], 0x10
je 0x4055c1
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055f5
push dword [ebp + 0xc]
push edi
call fcn.004054a9
jmp 0x4055f5
push dword [ebp - 4]
push edi
call fcn.00405461
test eax, eax
jne 0x4055ed
cmp dword [ebp - 4], eax
je 0x4055e5
push edi
push 0xfffffffffffffff1
call fcn.00404ed2
push 0
push edi
call fcn.00405a9d
jmp 0x4055f5
inc dword [0x42e448]
jmp 0x4055f5
push edi
push 0xfffffffffffffff2
call fcn.00404ed2
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405564
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405620
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405672
cmp dword [ebp - 0xc], esi
jne 0x405634
inc dword [0x42e448]
jmp 0x405672
push edi
call fcn.00405eed
test eax, eax
je 0x405672
push edi
call fcn.00405679
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405461
test eax, eax
jne 0x40566a
cmp dword [ebp - 4], esi
je 0x40562c
push edi
push 0xfffffffffffffff1
call fcn.00404ed2
push esi
push edi
call fcn.00405a9d
jmp 0x405672
push edi
push 0xffffffffffffffe5
call fcn.00404ed2
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1200925c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x1201c270
call fcn.1201a4d8
sub esp, 0x218
mov eax, dword [section..cdata]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x214], esi
push 0x2001f
push eax
push dword [ebx]
lea ecx, [ebp - 0x214]
mov dword [ebp - 4], esi
call fcn.1201b254
cmp eax, esi
jne 0x12009305
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyExW]
jmp 0x120092bc
lea eax, [ebp - 0x210]
push eax
call fcn.1200925c
cmp eax, esi
jne 0x12009304
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x120092ac
call fcn.12008556
push dword [ebp - 0x21c]
push dword [ebx]
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.12008556
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.1201a428
leave
ret 4