joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419666
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x423808]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40631c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40631c
call fcn.004051f0
mov esi, eax
jmp 0x40640c
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40633f
call fcn.004051f0
jmp 0x4063ff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x40635d
call fcn.004051f0
jmp 0x4063ff
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40637e
mov esi, 0x8007000e
jmp 0x406401
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00405070
jmp 0x4063a8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4063bf
mov esi, 0x8007000e
jmp 0x406401
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4063df
call fcn.004051f0
jmp 0x4063ff
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00406110
mov esi, eax
test edi, edi
je 0x40640c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x406430
lea ecx, [ebp - 0x418]
call fcn.00405720
jmp 0x406430
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040fa6b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406d40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x406d59
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406d65
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x406d60
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x406da0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x406db5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x406dc0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406dc0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

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

Disassembly:
xor eax, eax
mov edx, eax
and edx, 1
dec edx
not edx
and edx, 0xedb88320
mov ecx, eax
shr ecx, 1
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov dword [eax*4 + 0x4256e0], ecx
inc eax
cmp eax, 0x100
jb 0x407b22
cmp eax, 0x800
jae 0x407bf3
mov edi, edi
mov edx, dword [eax*4 + 0x4252e0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x4256e0]
inc eax
mov dword [eax*4 + 0x4256dc], edx
cmp eax, 0x800
jb 0x407bd0
mov dword [0x4246fc], 0x407c20
call fcn.0040bfc0
mov ecx, dword [0x4246fc]
mov edx, 0x407cc0
test eax, eax
cmove ecx, edx
mov dword [0x4246fc], ecx
ret
Function at 0x408830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x408844
pop edi
xor eax, eax
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
mov ecx, 0x400000
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, esi
cmp esi, 0x400000
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x408899
test ecx, ecx
je 0x408892
mov ecx, 0x400000
test esi, esi
jne 0x408853
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop ebx
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x408940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
test esi, esi
jne 0x408954
pop edi
xor eax, eax
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [edi], 0
mov ecx, 0x400000
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, esi
cmp esi, 0x400000
cmova eax, ecx
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [eax]
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x4089a9
test ecx, ecx
je 0x4089a2
mov ecx, 0x400000
test esi, esi
jne 0x408963
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop ebx
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x40be20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
sub esp, 0x10
and eax, 7
push ebx
xor ebx, ebx
cmp ecx, 5
jae 0x40be40
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
push esi
mov esi, dword [ebp + 8]
push edi
lea edx, [ecx - 4]
or edi, 0xffffffff
add edx, esi
mov dword [ebp + 0xc], edx
add esi, ebx
mov dword [ebp - 4], esi
cmp esi, edx
jae 0x40be72
lea ecx, [ecx]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40be6f
inc esi
cmp esi, edx
jb 0x40be60
mov dword [ebp - 4], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x40bf97
cmp ecx, 3
jbe 0x40be8c
xor eax, eax
jmp 0x40beca
dec ecx
shl eax, cl
and eax, 7
je 0x40beca
movzx ecx, byte [eax + 0x41ac14]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x41ac0c], 0
mov cl, byte [edx + 4]
je 0x40beb4
test cl, cl
je 0x40beb4
cmp cl, 0xff
jne 0x40bec7
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
and eax, 3
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x40be54
mov edx, dword [ebp + 0xc]
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x40beec
cmp cl, 0xff
je 0x40beec
mov esi, dword [ebp + 8]
and eax, 3
add eax, eax
or eax, 1
inc ebx
jmp 0x40be54
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
lea ecx, [ecx]
cmp dword [ebp + 0x18], 0
je 0x40bf1d
lea edx, [edi + ebx]
add edx, esi
jmp 0x40bf23
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x40bf61
movzx edi, byte [eax + 0x41ac14]
shl edi, 3
mov ecx, 0x18
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x40bf4d
cmp cl, 0xff
jne 0x40bf61
mov ecx, 0x20
sub ecx, dword [ebp - 0xc]
mov edi, 1
shl edi, cl
dec edi
xor edi, edx
jmp 0x40bf10
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
mov ecx, edx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
shr ecx, 8
mov byte [esi + 1], dl
mov edx, dword [ebp + 0xc]
mov byte [esi + 2], cl
mov esi, dword [ebp + 8]
add ebx, 5
jmp 0x40be54
pop edi
pop esi
cmp ecx, 3
jbe 0x40bfac
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40def0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
mov edx, ecx
shr edx, 8
sub dl, 0x2b
lea eax, [ecx + 7]
or dl, al
mov eax, ecx
shr eax, 0x10
and dl, al
and dl, 0x55
shr ecx, 0x18
push edi
mov edi, dword [ebp + 8]
xor dl, cl
xor eax, eax
test edi, edi
je 0x40df37
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x40df31
xor byte [eax + edi], dl
lea ecx, [eax + edi]
add dl, al
inc eax
cmp eax, esi
jb 0x40df24
mov eax, 1
pop esi
pop edi
pop ebp
ret
Function at 0x40df40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ecx, dword [ebp + 0xc]
shr ecx, 2
mov eax, ecx
dec ecx
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
test eax, eax
je 0x40dfc0
inc ecx
mov ebx, dword [esi]
add esi, 4
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x423358]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x423358]
xor edx, edi
mov eax, ebx
shr ebx, 8
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x423358]
xor edx, edi
mov eax, ebx
xor eax, edx
and eax, 0xff
shr edx, 8
mov edi, dword [eax*4 + 0x423358]
xor edx, edi
dec ecx
jne 0x40df5b
mov dword [ebp + 8], edx
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
and esi, 3
je 0x40dffc
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 4]
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x423358]
inc edi
mov dword [ebp + 8], edx
mov dword [ebp - 4], edi
dec esi
jne 0x40dfd4
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e280
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x423808]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00410510
push esi
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.004106db
lea ecx, [ebp - 0x414]
add esp, 0x18
xor edx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e2d3
sub ecx, esi
sar ecx, 1
mov ebx, 0x5c
je 0x40e323
lea esp, [esp]
cmp word [ebp + edx*2 - 0x414], 0x2f
jne 0x40e303
mov word [ebp + edx*2 - 0x414], bx
lea eax, [ebp - 0x414]
inc edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e310
sub eax, esi
sar eax, 1
cmp edx, eax
jb 0x40e2f0
lea eax, [ebp - 0x40e]
push 0x41a518
push eax
call fcn.00410c69
mov esi, eax
add esp, 8
test esi, esi
je 0x40e36e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push eax
mov word [esi], ax
lea eax, [ebp - 0x414]
push eax
call edi
lea eax, [esi + 2]
push 0x41a518
push eax
mov word [esi], bx
call fcn.00410c69
mov esi, eax
add esp, 8
test esi, esi
jne 0x40e344
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040fa6b
mov esp, ebp
pop ebp
ret
Function at 0x40e390
Capabilities:
Extract resource via kernel32 functions
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x423808]
xor eax, ebp
mov dword [ebp - 4], eax
movzx edx, word [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push eax
mov esi, ecx
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40e50f
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e50f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [esi]
mov dword [ebp - 0x668], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x670], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00410510
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x41ac40
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00410510
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x424704]
add esp, 0xc
push eax
lea eax, [ebp - 0x20c]
push eax
push str._s7z_03d.tmp
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040f8c4
add esp, 0x14
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call edi
cmp eax, 0xffffffff
je 0x40e49d
push eax
call esi
mov eax, dword [0x424704]
inc eax
mov dword [0x424704], eax
jmp 0x40e457
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004106db
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e50f
push 0
lea eax, [ebp - 0x66c]
push eax
push dword [ebp - 0x670]
mov dword [ebp - 0x66c], 0
push dword [ebp - 0x668]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40e524
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fa6b
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x20c]
push eax
mov ecx, ebx
call fcn.0040dea0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
setne al
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fa6b
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e590
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor ecx, ecx
push ebx
push esi
push edi
mov eax, 0x1000
mov edi, 2
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f0b5
push 0x2000
mov esi, eax
push 0
push esi
call fcn.00410510
add esp, 0x10
push 0xfff
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 4]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40e67a
xor ecx, ecx
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040f0b5
lea ecx, [ebx + ebx]
push ecx
mov edi, eax
push 0
push edi
call fcn.00410510
add esp, 0x10
push edi
push ebx
push dword [ebp - 4]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40e661
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x41a518
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40e661
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
movzx eax, cx
push eax
movzx eax, dx
shr ecx, 0x10
push ecx
push eax
shr edx, 0x10
push edx
push str._d._d._d._d
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp + 8]
add esp, 0x18
push esi
call fcn.0040dea0
push edi
call fcn.004105eb
add esp, 4
push esi
call fcn.004105eb
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 7
push str.1.0.0.0
call fcn.004021e0
push esi
call fcn.004105eb
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e6a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e6d0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x40e6f7
mov eax, dword [ebp + 0x14]
add eax, edi
push eax
call fcn.0040f0b5
mov ecx, eax
add esp, 4
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x40e706
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
xor esi, esi
test edi, edi
je 0x40e734
lea ecx, [ecx]
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ecx]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e734
add esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp esi, edi
jb 0x40e710
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
cmp esi, edi
pop esi
jae 0x40e754
push ecx
call fcn.004105eb
add esp, 4
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e870
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x423808]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e890
sub ecx, edx
sar ecx, 1
push 0x41ac3c
lea ebx, [edi + ecx*2]
push 0x104
push ebx
mov dword [ebp - 0x25c], ebx
call fcn.004106db
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
xor ecx, ecx
mov dword [ebp - 0x258], eax
mov word [ebx], cx
cmp eax, 0xffffffff
jne 0x40e8f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040fa6b
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40e900
mov ecx, 0x41a51c
lea eax, [ebp - 0x228]
jmp 0x40e910
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e936
test dx, dx
je 0x40e932
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e936
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e910
xor eax, eax
jmp 0x40e93b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40e9d9
mov ecx, 0x41a520
lea eax, [ebp - 0x228]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40e976
test dx, dx
je 0x40e972
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40e976
add eax, 4
add ecx, 4
test dx, dx
jne 0x40e950
xor eax, eax
jmp 0x40e97b
sbb eax, eax
or eax, 1
test eax, eax
je 0x40e9d9
lea eax, [ebp - 0x228]
push eax
push 0x104
push dword [ebp - 0x25c]
call fcn.004106db
add esp, 0xc
test byte [ebp - 0x254], 0x10
je 0x40e9bd
push 0x41a518
push 0x104
push edi
call fcn.0041066f
push edi
call fcn.0040e870
add esp, 0x10
jmp 0x40e9d3
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e9d5
call ebx
mov esi, eax
test esi, esi
jne 0x40ea00
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e900
call ebx
mov esi, eax
xor eax, eax
cmp esi, 0x12
cmove esi, eax
mov eax, dword [ebp - 0x25c]
push dword [ebp - 0x258]
xor ecx, ecx
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jne 0x40ea2a
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40ea2a
call ebx
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fa6b
mov esp, ebp
pop ebp
ret
Function at 0x415f50
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423808]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00414607
mov dword [ebp - 0x14], eax
cmp dword [0x425408], edi
jne 0x416041
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x415fce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x416121
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x416121
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416121
push eax
call ebx
push 0x41ccd4
push esi
mov dword [0x425408], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42540c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x425410], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x425418], eax
test eax, eax
je 0x41603e
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x425414], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x416066
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416059
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41607b
push 4
pop eax
jmp 0x416123
cmp dword [ebp - 0x14], edi
je 0x41607b
push dword [0x425408]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x416060
mov eax, dword [0x425414]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4160d9
cmp dword [0x425418], esi
je 0x4160d9
push eax
call ebx
push dword [0x425418]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4160d9
test eax, eax
je 0x4160d9
call ecx
test eax, eax
je 0x4160ce
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4160ce
test byte [ebp - 8], 1
jne 0x4160d9
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x416109
mov eax, dword [0x42540c]
cmp eax, esi
je 0x416106
push eax
call ebx
test eax, eax
je 0x416106
call eax
mov edi, eax
test edi, edi
je 0x416106
mov eax, dword [0x425410]
cmp eax, esi
je 0x416106
push eax
call ebx
test eax, eax
je 0x416106
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x425408]
call ebx
test eax, eax
je 0x416121
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x416123
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040fa6b
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x58630bec
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x37190a18
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219