joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a03e5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx eax, byte [ebp + 8]
test eax, eax
je 0x4a0416
push 0x5d4f
push 0x6305
push 0x7b36
push 0x6567
push 1
call fcn.004a04f6
add esp, 0x14
jmp 0x4a04f2
lea eax, [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x4a0448
push 1
push 0x234e
push 0x16b1
push 0x483
call dword [0xac0564]
jmp 0x4a04f2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
push 0
mov ecx, dword [ebp - 8]
call fcn.0043b7e4
and dword [eax], 0
jmp 0x4a047b
push 0
mov ecx, dword [ebp - 8]
call fcn.0043b7e4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
push 0
mov ecx, dword [ebp - 8]
call fcn.0043b7e4
cmp dword [eax], 0xfffffff1
jge 0x4a04f2
mov dword [ebp - 0x40], 0x72304b25
mov dword [ebp - 0x3c], 0x72304b25
mov dword [ebp - 0x38], 0x72304b25
mov dword [ebp - 0x34], 0x72304b25
lea ecx, [ebp - 1]
call fcn.0043b7f3
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043b7f6
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x2c]
call fcn.0043b7a2
push 1
lea ecx, [ebp - 0x2c]
call fcn.0043b7e4
cmp dword [eax], 0
je 0x4a04e5
lea ecx, [ebp - 0x2c]
call fcn.0043b7c8
jmp 0x4a04f2
lea ecx, [ebp - 0x2c]
call fcn.0043b7c8
jmp 0x4a0463
mov esp, ebp
pop ebp
ret
Function at 0x4c0c42
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
movzx eax, byte [ebp + 8]
test eax, eax
je 0x4c0d44
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x4c0c98
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x4c0c93
push 0
push 0x13a8
call dword [0xac0500]
jmp 0x4c0d42
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 8], eax
push 0
mov ecx, dword [ebp - 8]
call fcn.0043b7e4
and dword [eax], 0
jmp 0x4c0ccb
push 0
mov ecx, dword [ebp - 8]
call fcn.0043b7e4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
push 0
mov ecx, dword [ebp - 8]
call fcn.0043b7e4
cmp dword [eax], 0xfffffff1
jge 0x4c0d42
mov dword [ebp - 0x50], 0x72304b25
mov dword [ebp - 0x4c], 0x72304b25
mov dword [ebp - 0x48], 0x72304b25
mov dword [ebp - 0x44], 0x72304b25
lea ecx, [ebp - 1]
call fcn.0043b7f3
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x30]
call fcn.0043b7f6
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x3c]
call fcn.0043b7a2
push 1
lea ecx, [ebp - 0x3c]
call fcn.0043b7e4
cmp dword [eax], 0
je 0x4c0d35
lea ecx, [ebp - 0x3c]
call fcn.0043b7c8
jmp 0x4c0d42
lea ecx, [ebp - 0x3c]
call fcn.0043b7c8
jmp 0x4c0cb3
jmp 0x4c0d66
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
push 0
push 0x7f95
push 0x6bc3
push dword [ebp - 0x28]
push 0x1213
call fcn.004c0d6a
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x100092c3
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
push pe_nt_image_headers32
call sub.glib_lite.dll_Ordinal_406
mov edi, eax
pop ecx
test edi, edi
je 0x1000934d
push edi
xor ebp, ebp
push ebp
push 0x1001d834
push 0x10023880
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x10009352
push ebx
push ebp
mov ebx, 0x4000100
push ebx
push 2
push ebp
push 5
push 0xc0000000
push edi
call dword [sym.imp.kernel32.dll_CreateFileA]
push ebp
push ebx
push 3
push ebp
push 7
push Ordinal_1
push edi
mov dword [edi + 0x108], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
cmp dword [edi + 0x108], 0xffffffff
mov dword [edi + 0x104], eax
pop ebx
je 0x10009352
cmp eax, 0xffffffff
je 0x10009352
mov dword [edi + 0x118], ebp
mov dword [edi + 0x11c], ebp
mov dword [edi + 0x110], ebp
mov dword [edi + 0x114], ebp
mov eax, edi
pop edi
pop ebp
ret
push edi
call sub.glib_lite.dll_Ordinal_109
pop ecx
xor eax, eax
jmp 0x1000934f

Function at 0x10010530
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, dword [eax*4 + 0x1001e2c8]
push esi
push edi
push 0xffffffffffffff80
mov dword [esp + 0x18], ecx
lea edi, [ecx + ecx]
pop esi
mov ebx, esi
xor edx, edx
sar ebx, 0x1f
mov eax, ebx
xor eax, esi
sub eax, ebx
cmp eax, edi
cmovl edx, eax
mov al, bl
sub edx, ecx
mov ecx, edx
sar ecx, 0x1f
xor dl, cl
sub al, dl
add al, cl
mov ecx, dword [esp + 0x14]
add al, cl
xor al, bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0x80
jle 0x1001054d
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10013a24
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10013a33
pop dword [ebp - 0x38]
mov eax, 0x10013a33
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xc9d2d58c
sub dword [ebp - 0x48], 0x7b809041
mov dword [ebp - 0x44], 0x9f1af10
sub dword [ebp - 0x44], 0xd7be62cb
mov dword [ebp - 0x40], 0xcd7628f5
sub dword [ebp - 0x40], 0x8129e4c7
mov dword [ebp - 0x3c], 0xe3dd7f81
add dword [ebp - 0x3c], 0x1c22807f
lea eax, [ebp - 0x48]
push eax
mov eax, 0xd8e2231d
add eax, 0x371f9d63
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x5143d08e
add dword [ebp - 0x48], 0x232e98c8
mov dword [ebp - 0x44], 0xab15ad7d
add dword [ebp - 0x44], 0x9656b3f8
mov dword [ebp - 0x40], 0x1bc3d73c
add dword [ebp - 0x40], 0x47ab9530
mov dword [ebp - 0x3c], 0xde1c1643
add dword [ebp - 0x3c], 0x21e3e9bd
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x4911bcbe
sub eax, 0x390ffcbe
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x38ead
push 0
call eax
mov ecx, 0xa3d1e63b
sub ecx, 0xa3d19835
xor edi, edi
add edi, eax
mov ebx, 0x10026800
add ebx, dword [ebp - 0x38]
mov edx, 0x8d4d49c2
add dword [ebp - 0x18], esi
mov esi, dword [ebx]
sub dword [ebp - 0x2c], 0xaf4783c8
xor esi, edx
add dword [ebp - 0x10], 0x7eb47096
mov dword [edi], esi
sub dword [ebp - 0x10], 0x10092abe
add edi, 0x2b51552a
sub edi, 0x2b515526
add ebx, 0x3a0f1611
sub ebx, 0x3a0f160d
loop 0x10013b46
add eax, 0x12aeb
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x402a7c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42ec30]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402af7
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402afe
cmp dword [ebp + 0x10], ebx
jne 0x402aeb
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a7c
test eax, eax
jne 0x402afe
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402abe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405fb3
cmp eax, ebx
je 0x402b23
push ebx
push dword [0x42ec30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402af7
cmp dword [0x42ec30], ebx
jne 0x402af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402af4
jmp 0x402af7
Function at 0x402f8f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402fbc
mov ecx, dword [0x42ebd8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x420ba4], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004030ba
cmp eax, edi
jl 0x4030b3
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409018]
call ebx
test eax, eax
je 0x4030b0
cmp dword [ebp - 4], esi
jne 0x4030b0
push dword [ebp + 8]
add dword [0x420ba4], esi
call fcn.004030ba
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4030b3
cmp dword [ebp + 0x10], edi
jne 0x40307f
cmp dword [ebp + 8], edi
jle 0x4030ab
mov esi, 0x41cba0
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x40302f
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x4030b0
cmp edi, dword [ebp - 4]
jne 0x4030b0
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40307b
cmp dword [ebp + 0x14], edi
jne 0x40307b
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x420ba4], eax
cmp dword [ebp + 8], 0
jg 0x403022
jmp 0x4030ab
push 0xfffffffffffffffe
jmp 0x4030b2
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40308a
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x4030b0
mov eax, dword [ebp - 4]
add dword [0x420ba4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4030b3
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4030ba
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x420ba4]
sub esi, dword [0x40afd8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x42eb8c], eax
jle 0x403222
push dword [0x428bb4]
call fcn.0040326b
push ebx
push ebx
push dword [0x40afd8]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x428bb0], esi
mov dword [0x420ba0], ebx
mov ebp, 0x414ba0
mov eax, dword [0x420ba8]
mov edi, 0x4000
sub eax, dword [0x428bb4]
cmp eax, edi
jg 0x40312f
mov edi, eax
mov esi, 0x41cba0
push edi
push esi
call fcn.00403239
test eax, eax
je 0x40320a
add dword [0x428bb4], edi
mov dword [0x40afe0], esi
mov dword [0x40afe4], edi
cmp dword [0x42eb90], ebx
je 0x403186
cmp dword [0x42ec20], ebx
jne 0x403186
mov eax, dword [0x428bb0]
push ebx
sub eax, dword [0x420ba4]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40afd8]
mov dword [0x420ba0], eax
call fcn.00402c25
pop ecx
push 0x40afe0
mov dword [0x40afe8], ebp
mov dword [0x40afec], 0x8000
call fcn.0040609f
test eax, eax
jl 0x403234
mov esi, dword [0x40afe8]
sub esi, ebp
je 0x4031e4
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40320f
cmp esi, dword [esp + 0x10]
jne 0x40320f
add dword [0x40afd8], esi
cmp dword [0x40afe4], ebx
jne 0x403155
jmp 0x4031f0
cmp dword [0x40afe4], ebx
jne 0x403234
cmp edi, ebx
je 0x403234
mov eax, dword [0x420ba4]
mov ecx, eax
sub ecx, dword [0x40afd8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x403213
jmp 0x403119
or eax, 0xffffffff
jmp 0x40322c
push 0xfffffffffffffffe
jmp 0x403236
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402c25
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x40322c
Function at 0x40549c
Capabilities:
Create process on windows

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405833
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4055b1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ec08], eax
jmp 0x40574a
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4055cf
test eax, eax
je 0x4056f5
test byte [ebp + 0xc], 2
je 0x4056f5
mov esi, 0x42aff8
push edi
push esi
call fcn.00405c67
test ebx, ebx
je 0x4055ec
push str..
push esi
call fcn.00405c8a
jmp 0x4055f2
push edi
call fcn.00405797
cmp byte [edi], 0
jne 0x405600
cmp byte [0x42aff8], 0x5c
jne 0x40560b
push 0x409010
push edi
call fcn.00405c8a
push edi
call fcn.00405c7d
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4056eb
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040577b
cmp byte [eax], 0
je 0x405651
cmp byte [ebp - 0x18], 0
je 0x405651
lea esi, [ebp - 0x18]
mov al, byte [esi]
cmp al, 0x2e
jne 0x40566c
cmp byte [esi + 1], 0
je 0x4056ca
cmp al, al
jne 0x40566c
cmp byte [esi + 1], al
jne 0x40566c
cmp byte [esi + 2], 0
je 0x4056ca
push esi
push ebx
call fcn.00405c67
test byte [ebp - 0x148], 0x10
je 0x405691
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4056ca
push dword [ebp + 0xc]
push edi
call fcn.0040557d
jmp 0x4056ca
push edi
call fcn.0040591d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4056c2
test byte [ebp + 0xc], 4
je 0x4056ba
push edi
push 0xfffffffffffffff1
call fcn.00404fd0
push 0
push edi
call fcn.004059b4
jmp 0x4056ca
inc dword [0x42ec08]
jmp 0x4056ca
push edi
push 0xfffffffffffffff2
call fcn.00404fd0
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40562f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4056f5
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x40574a
cmp dword [ebp - 8], esi
jne 0x40570a
inc dword [0x42ec08]
jmp 0x40574a
push edi
call fcn.00405f8c
test eax, eax
je 0x40574a
push edi
call fcn.00405750
push edi
call fcn.0040591d
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405742
test byte [ebp + 0xc], 4
je 0x405702
push edi
push 0xfffffffffffffff1
call fcn.00404fd0
push esi
push edi
call fcn.004059b4
jmp 0x40574a
push edi
push 0xffffffffffffffe5
call fcn.00404fd0
pop edi
pop esi
leave
ret 8
Function at 0x405833
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42b3f8
push esi
call fcn.00405c67
push esi
call fcn.004057e4
mov edi, eax
test edi, edi
jne 0x405854
xor eax, eax
jmp 0x4058a6
push edi
call fcn.00405ef3
test byte [0x42eb98], 0x80
je 0x40586d
mov al, byte [edi]
test al, al
je 0x405850
cmp al, 0x5c
je 0x405850
sub edi, esi
push esi
call fcn.00405c7d
cmp eax, edi
push esi
jle 0x405890
call fcn.00405f8c
test eax, eax
je 0x405888
test byte [eax], 0x10
je 0x405850
push esi
call fcn.00405797
jmp 0x40586f
call fcn.00405750
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

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

Function at 0x40593c
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40596b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4059b0
mov eax, edi
dec edi
test eax, eax
jne 0x405976
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4059aa
Function at 0x4059b4
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405fb3
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4059d8
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405b11
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x42c180], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x42c180
je 0x405a1c
push 1
push 0
push esi
call fcn.0040593c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405b17
cmp eax, edi
jg 0x405b17
mov esi, 0x42bbf8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405b17
cmp eax, edi
jg 0x405b17
push esi
push ebp
push str._s_s_r_n
push 0x42b7f8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42eb90]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405c9b
push 4
push 0xc0000000
push esi
call fcn.0040593c
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405b11
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405b0a
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405b0a
cmp edi, dword [esp + 0x18]
jne 0x405b0a
push str._Rename__r_n
push esi
call fcn.004058ab
test eax, eax
jne 0x405b1e
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405c67
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b7f8
push eax
call fcn.004058f7
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42ec10]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409348
push eax
call fcn.004058ab
test eax, eax
je 0x405ad5
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405b45
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405b3a
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405ad7
Function at 0x405b4d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405bbe
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405bad
cmp dword [ebp + 0x14], 1
je 0x405baf
cmp dword [ebp + 0x14], 2
je 0x405baf
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x406029
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x42c584], esi
push edi
jne 0x406063
mov ecx, 0x42c580
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40603f
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x42c980
jl 0x40603a
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406098
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c580]
xor eax, esi
inc ecx
dec edx
jne 0x40607b
pop edi
pop esi
not eax
ret 0xc
Function at 0x10005c30
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x1006800c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10005cb1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [esi]
push 0
push dword [ebp - 0xd0]
mov dword [ebp - 0xcc], eax
push 4
push esi
call edi
xor eax, eax
nop word [eax + eax]
xor byte [ebp + eax - 0xcc], al
inc eax
cmp eax, 4
jb 0x10005c80
lea eax, [ebp - 0xd0]
push eax
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp - 0xcc]
push 0
push dword [ebp - 0xd0]
mov dword [esi], eax
push 4
push esi
call edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100473e9
mov esp, ebp
pop ebp
ret 4

Function at 0x10005cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x1006800c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x10005d17
mov eax, dword [eax]
mov dword [ebp - 0xcc], eax
xor eax, eax
xor byte [ebp + eax - 0xcc], al
inc eax
cmp eax, 4
jb 0x10005cf4
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100473e9
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100473e9
mov esp, ebp
pop ebp
ret 4

Function at 0x10005d30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10048abd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x1006800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
cmp dword [0x100684b4], 0x10
mov eax, 0x100684a0
cmovae eax, dword [0x100684a0]
cmp byte [eax], 0
je 0x10005e4a
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
je 0x10005e4a
cmp dword [0x10068188], 0x10
mov eax, 0x10068174
cmovae eax, dword [0x10068174]
cmp byte [eax], 0
je 0x10005e4a
mov esi, 0x1006f9a8
mov edx, ecx
sub esi, ecx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x10005da6
mov edx, 0x1006c568
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10005dc0
mov ecx, dword [0x1006a488]
mov edx, 0x100684a0
cmp dword [0x100684b4], 0x10
push 0x1006f9a8
cmovae edx, dword [0x100684a0]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
test eax, eax
jne 0x10005e4a
mov ecx, 0x98
xor edx, edx
nop dword [eax]
mov al, byte [edx + 0x1005c97c]
xor al, cl
inc ecx
mov byte [ebp + edx - 0x28], al
and ecx, 0x800000ff
jns 0x10005e1d
dec ecx
or ecx, 0xffffff00
inc ecx
inc edx
cmp edx, 0x14
jl 0x10005e00
mov byte [ebp - 0x14], 0
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov eax, dword [0x1006bfbc]
mov esi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x4c]
mov ecx, dword [0x1006bfbc]
push eax
lea eax, [ebp - 0x28]
push eax
call dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4