joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
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 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
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 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0xa76058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a761a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa7607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa7606a
add dl, dl
jne 0xa76089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa760dc
xor eax, eax
add dl, dl
jne 0xa76096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa7617d
add dl, dl
jne 0xa760a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa760b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa760bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa760c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa760d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa76075
mov eax, 1
add dl, dl
jne 0xa760ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa760f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa760e1
sub eax, ebx
mov ebx, 1
jne 0xa76128
mov ecx, 1
add dl, dl
jne 0xa7610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa76119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa76105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa76075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa7613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa7614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa76136
cmp eax, 0x7d00
jae 0xa7616d
cmp eax, 0x500
jb 0xa76168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa76075
cmp eax, 0x7f
ja 0xa76170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa76075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa7619e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa76075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401260
Capabilities:
Get common file path

Disassembly:
sub esp, 0x400
lea eax, [esp]
push esi
push edi
push 0x408564
push 0x409810
push 0x40838c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40970c
mov edx, ecx
mov esi, edi
mov edi, 0x408564
push 0x104
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop edi
pop esi
test eax, eax
jne 0x4012c6
add esp, 0x400
ret
push 0x40970c
call fcn.00401450
add esp, 4
push 0x104
push 0x409608
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4012ee
add esp, 0x400
ret
push 0x409608
call fcn.00401450
add esp, 4
mov eax, 1
add esp, 0x400
ret

Function at 0x401310
Capabilities:
Get common file path

Disassembly:
sub esp, 0x400
push ebp
push 0x40970c
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401333
pop ebp
add esp, 0x400
ret
push 0x40970c
call fcn.00401450
push 0x408388
push 0x408564
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x40135e
pop ebp
add esp, 0x400
ret
mov al, byte [ebp + 0xc]
push ebx
push esi
push edi
test al, 0x10
jne 0x40142f
mov ebx, dword [sym.imp.MSVCRT.dll_fgets]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x10]
push ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push 0x400
push eax
call ebx
mov al, byte [esp + 0x1c]
add esp, 0xc
cmp al, 0x34
jne 0x4013d4
lea ecx, [esp + 0x10]
push 0x408668
push ecx
call esi
add esp, 8
test eax, eax
je 0x4013d4
mov edi, 0x408668
or ecx, 0xffffffff
xor eax, eax
push 0x40869c
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x14]
push edx
call esi
mov edx, eax
add esp, 8
test edx, edx
jne 0x4013dc
test byte [ebp + 0xc], 0x10
je 0x401378
jmp 0x40142f
mov edi, 0x40869c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ecx + edx + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x4091fc
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4091fc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx + 0x4091fa]
mov cl, byte [ecx + 0x4091fa]
cmp cl, 0xa
jne 0x40142f
mov byte [eax], 0
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x400
ret
Function at 0x402640
Capabilities:
Delete file
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x40c
mov al, byte [0x4091f4]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x15]
mov esi, 0x400
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 0xc], esi
push ecx
push 0xf003f
stosw word es:[edi], ax
push 0
push 0x40833c
push 0x80000002
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4026a1
cmp eax, 2
jne 0x40277e
pop edi
mov eax, 1
pop esi
add esp, 0x40c
ret
lea edx, [esp + 0xc]
push ebx
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0x408378
push edx
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4026da
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
jmp 0x40274f
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40274f
lea eax, [esp + 0x18]
push 0x20
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
mov edi, dword [sym.imp.MSVCRT.dll__access]
mov esi, eax
lea ecx, [esp + 0x20]
push 0
push ecx
mov byte [esi], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x10
test eax, eax
jne 0x402731
lea edx, [esp + 0x18]
push edx
call ebx
test eax, eax
jne 0x402731
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00401f30
add esp, 8
inc esi
push 0
push esi
call edi
add esp, 8
test eax, eax
jne 0x40274f
push esi
call ebx
test eax, eax
jne 0x40274f
push eax
push esi
call fcn.00401f30
add esp, 8
mov ecx, dword [esp + 0xc]
push 0x408378
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop ebx
je 0x402693
cmp esi, 2
je 0x402693
pop edi
xor eax, eax
pop esi
add esp, 0x40c
ret

Function at 0x402790
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
push edi
jne 0x40279f
pop edi
xor eax, eax
pop esi
ret
mov al, byte [0x408990]
cmp al, 0x31
mov eax, dword [esp + 0x14]
jne 0x40282a
mov ecx, eax
and ecx, 4
cmp cl, 4
jne 0x4027c7
mov edx, dword [esp + 0x10]
push edx
push esi
call fcn.00401f30
add esp, 8
pop edi
pop esi
ret
and eax, 1
cmp al, 1
jne 0x40279a
mov edi, dword [esp + 0x10]
push 0
test edi, edi
je 0x4027fc
push edi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x4027f1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x40279a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
ret
push esi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x402822
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402822
push eax
push esi
call fcn.00401f30
add esp, 8
pop edi
pop esi
ret
pop edi
mov eax, 1
pop esi
ret
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
ret
Function at 0x4032a0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x408
push ebp
mov ebp, dword [esp + 0x414]
test ebp, ebp
push edi
je 0x403378
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403378
mov ecx, dword [esp + 0x414]
lea eax, [esp + 8]
push eax
push 0xa
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40337d
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x400
call edi
mov esi, eax
cmp esi, 0x103
je 0x403350
test esi, esi
jne 0x403361
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004032a0
mov esi, eax
add esp, 8
test esi, esi
je 0x4032f0
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebp
add esp, 0x408
ret
mov ecx, dword [esp + 0x418]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebp
add esp, 0x408
ret
mov eax, 0x3f2
pop edi
pop ebp
add esp, 0x408
ret
Function at 0x403390
Capabilities:
Delete registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x804
or ecx, 0xffffffff
push ebx
push ebp
push esi
push edi
lea esi, [eax + 2]
mov edi, 0x4087f4
xor eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_strncmp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4087f4
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x4033d5
mov ebp, 0x80000002
mov edi, 0x4087f4
jmp 0x403486
mov edi, 0x4087e0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4087e0
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x403403
mov ebp, 0x80000000
mov edi, 0x4087e0
jmp 0x403486
mov edi, 0x4087cc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4087cc
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x40342e
mov ebp, 0x80000005
mov edi, 0x4087cc
jmp 0x403486
mov edi, 0x4087b8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4087b8
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x403459
mov ebp, 0x80000001
mov edi, 0x4087b8
jmp 0x403486
mov edi, 0x4087ac
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4087ac
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x4035a3
mov ebp, 0x80000003
mov edi, 0x4087ac
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x14]
push 0x7c
lea ebx, [esi + ecx + 1]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x4035a3
mov byte [eax], 0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x414]
push 0x7c
lea edi, [ecx + ebx + 1]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x418]
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x40351e
mov byte [eax], 0
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push 0xf003f
push 0
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403596
mov ecx, dword [esp + 0x818]
mov al, byte [ecx]
cmp al, 0x4b
je 0x403576
cmp al, 0x6b
je 0x403576
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x414]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x804
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x414]
push ecx
push edx
call fcn.004032a0
mov eax, dword [esp + 0x18]
add esp, 8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x804
ret
pop edi
pop esi
pop ebp
mov eax, 0x80000001
pop ebx
add esp, 0x804
ret
Function at 0x403660
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
push 0
push 2
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, dword [esp + 0x240]
push 0x5c
push edi
mov ebp, eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x403697
lea edi, [eax + 1]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x138]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push ebp
call sub.KERNEL32.dll_Process32First
cmp eax, 1
jne 0x403772
lea edx, [esp + 0x34]
lea eax, [esp + 0x138]
push edx
push eax
call fcn.004035c0
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
add esp, 8
test eax, eax
jne 0x403723
mov ecx, dword [esp + 0x18]
push ecx
push 1
push 1
call edi
mov esi, eax
push 0
push esi
call ebx
test eax, eax
jne 0x403723
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret
lea edx, [esp + 0x10]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
jne 0x403772
lea eax, [esp + 0x34]
lea ecx, [esp + 0x138]
push eax
push ecx
call fcn.004035c0
add esp, 8
test eax, eax
jne 0x403762
mov edx, dword [esp + 0x18]
push edx
push 1
push 1
call edi
mov esi, eax
push 0
push esi
call ebx
test eax, eax
je 0x40370a
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
je 0x403733
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x22c
ret
Function at 0x404310
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
push ebx
push esi
mov esi, dword [esp + 0x164]
push edi
xor ebx, ebx
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebx
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x64]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__fullpath]
lea ecx, [esp + 0x6c]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x14
cmp eax, ebx
je 0x40436e
mov ecx, eax
lea edx, [esp + 0x60]
sub ecx, edx
cmp ecx, 2
jle 0x404369
mov byte [eax], bl
jmp 0x40436e
jne 0x40436e
mov byte [eax + 1], bl
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0xc]
lea edx, [esp + 0x50]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x16c]
mov cx, word [esp + 0x170]
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], cx
lea eax, [esp + 0xc]
push edx
lea ecx, [esp + 0x64]
push eax
push ecx
push ebx
push 0x80
push ebx
push ebx
push ebx
push esi
push ebx
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x38], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4043f0
cmp dword [esp + 0x174], ebx
je 0x4043e1
mov edx, dword [esp + 0x50]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x158
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x158
ret

Function at 0x404ee0
Capabilities:
Get common file path

Disassembly:
mov al, byte [0x408020]
sub esp, 0x104
cmp al, 0x30
push esi
je 0x404f25
jle 0x404f6b
cmp al, 0x32
jg 0x404f6b
mov eax, dword [esp + 0x10c]
push 5
push 0
push eax
call fcn.00402790
add esp, 0xc
test eax, eax
je 0x404f6b
mov dword [0x409918], 1
mov eax, 1
pop esi
add esp, 0x104
ret
lea ecx, [esp + 4]
push ecx
push 0
push 0x408448
push 0x40970c
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x404f6b
mov esi, dword [esp + 0x10c]
lea edx, [esp + 4]
push 1
push edx
push esi
call fcn.00402790
add esp, 0xc
test eax, eax
jne 0x404f75
push 5
push eax
push esi
call fcn.00402790
add esp, 0xc
test eax, eax
jne 0x404f75
xor eax, eax
pop esi
add esp, 0x104
ret
push 5
lea eax, [esp + 8]
push 0
push eax
call fcn.00402790
add esp, 0xc
mov eax, 1
pop esi
add esp, 0x104
ret
Function at 0x405020
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov al, byte [0x408990]
sub esp, 0x20
cmp al, 0x31
push ebp
push esi
jne 0x405036
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
push ebx
push 0xf003f
push 0
push 0
call dword [fcn.004089b8]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0xc], ebp
jne 0x405057
mov esi, 0x81000001
jmp 0x4050b6
mov eax, dword [esp + 0x30]
push edi
push 0x20
push eax
push ebp
call dword [fcn.004089b4]
mov ebx, eax
test ebx, ebx
jne 0x405086
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub esi, 0x424
neg esi
sbb esi, esi
and esi, 0x81000002
jmp 0x4050aa
lea ecx, [esp + 0x14]
push ecx
push 1
push ebx
call dword [fcn.00408994]
test eax, eax
jne 0x4050ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x426
jne 0x4050aa
xor esi, esi
test ebx, ebx
pop edi
je 0x4050b6
push ebx
call dword [fcn.004089a0]
test ebp, ebp
pop ebx
je 0x4050c2
push ebp
call dword [fcn.004089a0]
mov eax, esi
pop esi
pop ebp
add esp, 0x20
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edi, eax
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x4050a8
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, edi
cmp eax, 0x2710
ja 0x405112
mov edx, dword [esp + 0x2c]
push edx
call ebp
lea eax, [esp + 0x14]
push eax
push ebx
call dword [fcn.0040899c]
test eax, eax
je 0x40511d
cmp dword [esp + 0x18], 1
jne 0x4050e3
mov ebp, dword [esp + 0x10]
jmp 0x4050a8
mov ebp, dword [esp + 0x10]
mov esi, 0x81000009
jmp 0x4050aa
mov ebp, dword [esp + 0x10]
mov esi, 0x81000005
jmp 0x4050aa
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x401c66
pop dword [ebp - 0x34]
mov eax, 0x94743337
add eax, 0x6bcbe92f
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x23885668
add dword [ebp - 0x44], 0x2ac9eee3
mov dword [ebp - 0x40], 0x865b67fc
add dword [ebp - 0x40], 0xabd7e449
mov dword [ebp - 0x3c], 0xd2fec4e1
add dword [ebp - 0x3c], 0x794d7f4d
mov dword [ebp - 0x38], 0x749d305a
sub dword [ebp - 0x38], 0x749d305a
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xad661919
add dword [ebp - 0x44], 0xc70c503d
mov dword [ebp - 0x40], 0x5b7834a6
add dword [ebp - 0x40], 0xe5f42ccf
mov dword [ebp - 0x3c], 0x5a621595
sub dword [ebp - 0x3c], 0xf6f2a929
mov dword [ebp - 0x38], 0x42257272
add dword [ebp - 0x38], 0xbdda8d8e
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0xdd2f8ea8
sub eax, 0xdcef5e7c
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x36f5a
push 0
call eax
mov ecx, 0x49ea
xor esi, esi
add esi, eax
mov edi, 0x407000
add edi, dword [ebp - 0x34]
mov edx, 0x31fe4ee6
mov dword [ebp - 0xc], 0xd34234d1
mov ebx, dword [edi]
sub dword [ebp - 0x30], edx
xor ebx, edx
xor dword [ebp - 0x14], 0x2c46d6ac
mov dword [esi], ebx
add dword [ebp - 0x2c], ecx
add esi, 4
add edi, 4
loop 0x401d73
add eax, 0xd16b6747
sub eax, 0xd16a4ccc
xor ebx, ebx
add ebx, eax
add eax, 0xfb4cafdf
add eax, 0x4b35026
mov ecx, 0xb9284f8c
add ecx, 0x4717b074
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x405b99
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x405bea
xor eax, eax
jmp 0x405c11
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405c11
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x405be6
call esi
pop esi
leave
ret 4

Function at 0x405c4b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x426750], 0x44
push eax
xor eax, eax
push 0x426750
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405c8a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405d2c
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406133
mov edi, eax
cmp edi, 0xffffffff
je 0x405d6d
test byte [esp + 0x10], 1
push esi
je 0x405d4f
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405d55
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405d5e
xor eax, eax
inc eax
jmp 0x405d6f
test byte [esp + 0x10], 4
jne 0x405d6d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x402000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x40200f
pop dword [ebp - 0x24]
mov eax, 0x40200f
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x744d9c32
sub dword [ebp - 0x34], 0x25fb56e7
mov dword [ebp - 0x30], 0x359ded65
sub dword [ebp - 0x30], 0x36aa120
mov dword [ebp - 0x2c], 0xa42d36c7
sub dword [ebp - 0x2c], 0x57e0f299
mov dword [ebp - 0x28], 0x43b1889f
add dword [ebp - 0x28], 0xbc4e7761
lea eax, [ebp - 0x34]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xb96a30a5
sub dword [ebp - 0x34], 0x44f7c74f
mov dword [ebp - 0x30], 0x4c022b32
add dword [ebp - 0x30], 0xf56a3643
mov dword [ebp - 0x2c], 0xafa3619d
sub dword [ebp - 0x2c], 0x4c33f531
mov dword [ebp - 0x28], 0xf1427b04
add dword [ebp - 0x28], 0xebd84fc
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3e0ab
push 0
call eax
mov ecx, 0x5e2c
mov edi, eax
mov edx, 0x3c17db20
add edx, 0xc42abae0
add edx, dword [ebp - 0x24]
mov esi, 0xbd01fd4d
sub esi, 0x39a50af5
sub dword [ebp - 0x14], 0xdb88cdfe
mov ebx, dword [edx]
add dword [ebp - 8], edi
sub ebx, esi
add dword [ebp - 0x10], 0x63f67ae0
mov dword [edi], ebx
xor dword [ebp - 0x18], 0xcae2dd92
add edi, 0x28af653a
add edi, 0xd7509aca
add edx, 4
loop 0x40211c
add eax, 0x16b83
mov ebx, eax
add eax, 0x96e10d47
sub eax, 0x96e10d42
mov ecx, 0x1de30e77
sub ecx, 0x1da30e77
add ecx, dword [ebp - 0x24]
call ebx
leave
ret