joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004520
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor al, al
push esi
mov esi, ecx
mov byte [ebp - 1], al
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10004534
sub esi, edx
push ecx
sar esi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10004555
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
xor ecx, ecx
lea edi, [esi + 1]
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001690e
add esp, 4
mov ebx, eax
test edi, edi
je 0x1000458d
mov ecx, edi
xor eax, eax
shr ecx, 1
mov edi, ebx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
lea edi, [esi + 1]
push dword [ebp + 8]
push edi
push ebx
call fcn.10031f4f
add esp, 0xc
xor edi, edi
nop dword [eax]
movzx eax, word [ebx + edi*2]
cmp eax, 0x5c
je 0x100045ae
cmp eax, 0x2f
jne 0x100045ef
mov dword [ebp - 0xc], eax
xor eax, eax
push ebx
mov word [ebx + edi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100045e8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10004607
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x100045e8
mov dword [ebp - 8], ebx
lea edx, [ebp - 8]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov eax, dword [ebp - 0xc]
mov word [ebx + edi*2], ax
inc edi
cmp edi, esi
jbe 0x100045a0
push ebx
call fcn.10016917
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov byte [ebp - 1], 0
call fcn.10016917
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10004720
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1006e090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.1002dae0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
add esp, 0xc
or ecx, 0x8000
cmp byte [ebp + 0x10], 0
cmove ecx, dword [ebp + 0xc]
push eax
push 0
push 0
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
test eax, eax
je 0x100047a0
xor eax, eax
mov word [esi], ax
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100168fd
mov esp, ebp
pop ebp
ret
xor eax, eax
lea ecx, [ebp - 0x20c]
mov word [esi], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100047b0
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10002af0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100168fd
mov esp, ebp
pop ebp
ret
Function at 0x10004a60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1006e090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10004aec
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.1002dae0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10004aec
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x10004ae5
nop dword [eax]
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.10038c5a
add esp, 8
test eax, eax
je 0x10004afe
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10004ac0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100168fd
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
pop edi
pop esi
call fcn.100168fd
mov esp, ebp
pop ebp
ret
Function at 0x10006730
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050208
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1006e090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x50], eax
test edi, edi
jne 0x10006777
xor al, al
jmp 0x1000689b
cmp dword [ecx + 0x14], 0
lea esi, [ecx + 4]
ja 0x100067c7
lea eax, [ebp - 0x40]
push eax
call fcn.10004850
mov edi, eax
add esp, 4
cmp esi, edi
je 0x100067bc
mov ecx, esi
call fcn.100027b0
movups xmm0, xmmword [edi]
xor eax, eax
movups xmmword [esi], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x40]
call fcn.100027b0
mov edi, dword [ebp - 0x48]
push esi
lea ecx, [ebp - 0x28]
call fcn.10002df0
push 0xa
push str.Software_
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10002630
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100067f0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.10002630
mov esi, dword [ebp - 0x4c]
test esi, esi
je 0x1000683d
push 1
push 0x1005667c
lea ecx, [ebp - 0x28]
call fcn.10002630
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006824
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10002630
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x44]
push ecx
push 0xf003f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], 0
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10006891
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x1000687d
push eax
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x10006888
push 0
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.100027b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100168fd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10006d20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1006e090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
ja 0x10006db9
lea eax, [ebp - 0x1c]
push eax
call fcn.10004850
mov esi, eax
lea ebx, [edi + 4]
add esp, 4
cmp ebx, esi
je 0x10006dae
mov ecx, ebx
call fcn.100027b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebx], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebx + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x1c]
call fcn.100027b0
mov ebx, dword [ebp - 0x30]
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x10006dc4
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push 0
push eax
push 0x80000003
call esi
test eax, eax
jne 0x10006e03
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push 0
push str.SoftWare
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x10006e18
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100168fd
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x28]
push 0
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ebx
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x10006e60
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100168fd
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push dword [ebp - 0x34]
push dword [ebp - 0x28]
call esi
test eax, eax
je 0x10006ea9
push dword [ebp - 0x28]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100168fd
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0x38]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006eb1
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp - 0x3c]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x28]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100168fd
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10007d50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100503b8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1006e090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x58]
push eax
call fcn.10008200
mov ecx, eax
call fcn.10005b40
sub esp, 0x18
mov dword [ebp - 4], 0
lea eax, [ebp - 0x58]
mov ecx, esp
push eax
call fcn.10002df0
call fcn.10003b30
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x40]
mov edi, edx
push eax
call fcn.10008200
mov ecx, eax
call fcn.10005470
sub esp, 0x18
mov byte [ebp - 4], 1
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.10002df0
call fcn.10003b30
add esp, 0x18
test edx, edx
jl 0x10007df1
jg 0x10007ddf
test eax, eax
je 0x10007df1
push edx
push eax
call fcn.10012470
add esp, 8
test eax, eax
jne 0x10007ed0
test edi, edi
jg 0x10007e2e
jl 0x10007dfb
test esi, esi
jne 0x10007e2e
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x5c], esp
push 0
call fcn.10038e4e
push edx
push eax
push esi
call fcn.100039a0
add esp, 0x10
mov byte [ebp - 4], 2
call fcn.10008200
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10006470
jmp 0x10007ed0
push 0xc
push edi
push esi
call fcn.10012390
add esp, 0xc
test eax, eax
je 0x10007ed0
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x5c], esp
push 0
call fcn.10038e4e
push edx
push eax
push esi
call fcn.100039a0
add esp, 0x10
mov byte [ebp - 4], 3
call fcn.10008200
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.10006470
lea eax, [ebp - 0x28]
push eax
call fcn.10008200
mov ecx, eax
call fcn.100051d0
push 0xd
push 0x10056ad0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.10002630
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10007ec8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push 0
push eax
push str._8882471530
call fcn.10012200
add esp, 0x14
lea ecx, [ebp - 0x28]
call fcn.100027b0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10007f06
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10007efc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007f6b
push edx
push ecx
call fcn.1001633e
add esp, 8
mov edx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x10007f50
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10007f46
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007f70
push edx
push ecx
call fcn.1001633e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100168fd
mov esp, ebp
pop ebp
ret
call fcn.10031c09
call fcn.10031c09
int3
Function at 0x1000d5f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10050740
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1006e090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1001636f
mov edi, eax
add esp, 4
test edi, edi
je 0x1000d69b
push 1
mov dword [ebp - 4], 0
call fcn.100153f0
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10012200
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1006e090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001223d
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100168fd
mov esp, ebp
pop ebp
ret
push str.DGYg80dlVh2FoNE0
push str.YkNeF8pGJvCom4Qj
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.10011f80
add esp, 0x10
mov dword [ebp - 0x50], 0
test ebx, ebx
mov dword [ebp - 0x20], 0
mov ecx, 0x10056728
mov dword [ebp - 0x58], 0x3c
mov eax, str.runas
mov dword [ebp - 0x48], esi
cmove eax, ecx
mov dword [ebp - 0x54], 0x40
cmp dword [ebp - 8], 8
xorps xmm0, xmm0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x20]
mov esi, eax
test ecx, ecx
je 0x100122dc
cmp dword [ebp + 0x10], 0
je 0x100122dc
push dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.100027b0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100168fd
mov esp, ebp
pop ebp
ret
Function at 0x100185c6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x10043a18
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100436db

Function at 0x10043a23
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004385c

Function at 0x10048d8d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10048a4d
Function at 0x4018b8
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x254
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
xor ebx, ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ebp, dword [sym.imp.MSVCRT.dll_wcscpy]
lea edi, [esi + eax*2]
mov dword [esp], 0x4081a0
push edi
call ebp
pop ecx
lea eax, [esp + 0x18]
pop ecx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
and word [edi], bx
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x401905
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x4019c6
lea eax, [esp + 0x40]
push 0x40819c
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x401979
lea eax, [esp + 0x40]
push 0x408194
push eax
call dword [sym.imp.MSVCRT.dll_wcscmp]
pop ecx
test eax, eax
pop ecx
je 0x401979
lea eax, [esp + 0x40]
push eax
push edi
call ebp
test byte [esp + 0x1c], 0x10
pop ecx
pop ecx
je 0x401959
push 0x408158
push esi
call dword [sym.imp.MSVCRT.dll_wcscat]
pop ecx
pop ecx
mov ecx, esi
call fcn.004018b8
jmp 0x401973
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x401975
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x40199f
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x401905
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
cmp ebx, 0x12
jne 0x40199f
xor ebx, ebx
push dword [esp + 0x10]
and word [edi], 0
call dword [sym.imp.KERNEL32.DLL_FindClose]
test ebx, ebx
jne 0x4019c4
push esi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x4019c4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x254
ret

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

Disassembly:
push esi
push edi
xor edx, edx
mov ecx, 0x408200
push 8
mov eax, edx
pop esi
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec esi
jne 0x401a5a
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x408600
jb 0x401a55
pop edi
cmp edx, 0x800
pop esi
jae 0x401ab5
lea ecx, [edx*4 + 0x408200]
mov eax, dword [ecx - 0x400]
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x408200]
xor edx, eax
mov dword [ecx], edx
add ecx, 4
cmp ecx, 0x40a200
jb 0x401a8e
mov dword [0x4081e0], fcn.00401ad3
call fcn.0040477a
test eax, eax
jne 0x401ad2
mov dword [0x4081e0], 0x401b87
ret
Function at 0x401ad3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
mov esi, 0xff
mov ecx, edx
mov edx, dword [ebp + 0xc]
test edi, edi
mov dword [ebp - 4], ecx
jbe 0x401b15
test cl, 3
je 0x401b15
movzx ebx, byte [ecx]
mov edi, eax
and edi, esi
xor edi, ebx
shr eax, 8
mov edi, dword [edx + edi*4]
xor eax, edi
mov edi, dword [ebp + 8]
dec edi
inc ecx
test edi, edi
mov dword [ebp + 8], edi
mov dword [ebp - 4], ecx
ja 0x401af0
cmp edi, 4
jb 0x401b62
mov ebx, edi
shr ebx, 2
mov dword [ebp + 8], ebx
xor eax, dword [ecx]
xor ecx, ecx
xor ebx, ebx
sub edi, 4
mov dword [ebp + 0xc], eax
mov cl, ah
mov bl, byte [ebp + 0xe]
mov ecx, dword [edx + ecx*4 + 0x800]
xor ecx, dword [edx + ebx*4 + 0x400]
mov ebx, eax
and ebx, esi
shr eax, 0x18
xor ecx, dword [edx + ebx*4 + 0xc00]
xor ecx, dword [edx + eax*4]
mov eax, ecx
mov ecx, dword [ebp - 4]
add ecx, 4
dec dword [ebp + 8]
mov dword [ebp - 4], ecx
jne 0x401b22
test edi, edi
jbe 0x401b80
mov dword [ebp + 8], edi
movzx ebx, byte [ecx]
mov edi, eax
and edi, esi
xor edi, ebx
shr eax, 8
mov edi, dword [edx + edi*4]
xor eax, edi
inc ecx
dec dword [ebp + 8]
jne 0x401b69
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x401c12
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
mov edi, dword [esi]
test edi, edi
je 0x401c6b
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x401c35
mov eax, edi
lea ecx, [ebp + 8]
push 0
and dword [ebp + 8], 0
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x401c63
test ecx, ecx
je 0x401c6b
test edi, edi
jbe 0x401c6b
jmp 0x401c2a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x401c6d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x401c74
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
mov edi, dword [esi]
test edi, edi
je 0x401ccd
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x401c97
mov eax, edi
lea ecx, [ebp + 8]
push 0
and dword [ebp + 8], 0
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x401cc5
test ecx, ecx
je 0x401ccd
test edi, edi
jbe 0x401ccd
jmp 0x401c8c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x401ccf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4011c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x438280], 0x24e1
mov eax, dword [0x438280]
sub eax, 0x24e1
mov dword [0x438280], eax
mov ecx, 1
test ecx, ecx
je 0x40126b
mov edx, dword [0x438280]
cmp edx, dword [ebp + 0xc]
jb 0x4011f7
jmp 0x40126b
cmp dword [0x438280], 0
jne 0x401215
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401215
xor eax, eax
jmp 0x40126b
mov eax, dword [ebp + 8]
add eax, dword [0x438280]
mov ecx, dword [eax]
add ecx, dword [0x438280]
mov edx, dword [ebp + 8]
add edx, dword [0x438280]
mov dword [edx], ecx
mov dword [ebp - 4], 0x21
mov eax, dword [0x438280]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x438280]
push eax
call fcn.00401270
add esp, 8
mov ecx, dword [0x438280]
add ecx, 4
mov dword [0x438280], ecx
jmp 0x4011dd
mov esp, ebp
pop ebp
ret
Function at 0x4019f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 0x114], str._system32777.dll
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x401a5f
cmp dword [ebp - 0x118], 0
je 0x401a5f
jmp 0x401ac3
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
je 0x401ac3
mov dword [ebp - 0x11c], 0x15f
mov edx, dword [ebp + 8]
add edx, 8
mov dword [0x438274], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [0x438290], ecx
mov dword [ebp - 0x11c], 0x15f
mov dword [ebp - 0x11c], 0x15f
call fcn.004011b0
mov edx, dword [ebp + 8]
mov dword [0x43828c], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 1
call fcn.004013b0
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x401a5f
mov esp, ebp
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5a7431bd
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7277684c
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219