joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472c60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x1c
mov eax, 1
shl eax, cl
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov ecx, eax
sar ecx, 1
or ecx, eax
mov dword [esp + 8], ecx
cmp dword [edi + 0x18], ebx
jle 0x472e52
push ebp
push esi
xor edx, edx
mov dword [esp + 0x20], edx
cmp dword [edi + 0x14], edx
jle 0x472e40
lea ecx, [ebx + 4]
mov eax, ebx
cmp ebx, ecx
jge 0x472e32
mov esi, dword [edi + 0x18]
cmp eax, esi
jge 0x472e32
test byte [esp + 0x34], 8
je 0x472cc5
dec ecx
cmp eax, ecx
je 0x472cbe
dec esi
cmp eax, esi
jne 0x472cc5
mov ecx, 1
jmp 0x472cc7
xor ecx, ecx
mov esi, dword [edi + 0x14]
mov ebx, dword [edi + 0xc]
imul esi, eax
add esi, edx
lea esi, [ebx + esi*4]
mov ebx, dword [edi + 0x10]
mov dword [esp + 0x1c], esi
mov esi, dword [edi + 0x24]
inc eax
imul esi, eax
add esi, edx
movsx ebp, word [ebx + esi*2 + 2]
lea esi, [ebx + esi*2 + 2]
mov ebx, dword [edi + 8]
mov dword [esp + 0x18], ebx
mov ebx, dword [edi + 4]
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x472d06
and ebp, 0xfffffbb9
mov ecx, ebp
and ecx, 0xff
je 0x472e1f
test ebp, 0x5000
jne 0x472e1f
cmp byte [esp + 0x30], 1
jne 0x472d4d
mov eax, dword [esp + 0x18]
push eax
call fcn.004753f0
add esp, 4
test eax, eax
je 0x472e0f
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004753f0
add esp, 4
test eax, eax
jmp 0x472da6
mov edx, dword [esp + 0x2c]
shl edx, 8
or edx, ecx
movsx eax, byte [edx + 0x59be78]
lea ecx, [ebx + eax*4 + 0x18]
push ebx
mov dword [ebx + 0x64], ecx
call fcn.00475220
add esp, 4
test eax, eax
je 0x472e0f
sar ebp, 4
and ebp, 0xff
movsx edx, byte [ebp + 0x59c278]
lea eax, [ebx + edx*4 + 0x18]
mov dword [ebx + 0x64], eax
mov cl, byte [ebp + 0x59c378]
push ebx
mov byte [esp + 0x13], cl
call fcn.00475220
movsx edx, byte [esp + 0x13]
add esp, 4
xor eax, edx
mov ecx, dword [esp + 0x10]
je 0x472dae
neg ecx
mov edx, dword [esp + 0x1c]
mov dword [edx], ecx
mov ecx, dword [edi + 0x24]
lea edx, [ecx + ecx]
mov ecx, esi
sub ecx, edx
or word [ecx - 2], 2
mov bx, word [eax*2 + 0x4e1098]
or word [ecx], bx
or word [ecx + 2], 4
movzx ecx, word [eax*2 + 0x4e109c]
or word [esi - 2], cx
mov ecx, 0x1000
or word [esi], cx
movzx ecx, word [eax*2 + 0x4e10a0]
or word [esi + 2], cx
or word [edx + esi - 2], 1
mov ax, word [eax*2 + 0x4e10a4]
or word [edx + esi], ax
or word [edx + esi + 2], 8
lea eax, [edx + esi + 2]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, 0x4000
or word [esi], cx
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x14]
add ecx, 4
cmp eax, ecx
jl 0x472ca2
inc edx
mov dword [esp + 0x20], edx
cmp edx, dword [edi + 0x14]
jl 0x472c95
add ebx, 4
mov dword [esp + 0x14], ebx
cmp ebx, dword [edi + 0x18]
jl 0x472c86
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4761e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x47620f
push esi
call fcn.00475ad0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x476208
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x476289
mov eax, dword [esi + 0x1a0]
cmp byte [eax + 0x10], 0
je 0x476279
mov eax, dword [esi + 8]
test eax, eax
je 0x476234
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x1a0]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x476275
cmp eax, 2
je 0x476279
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x476225
cmp eax, 3
je 0x47625c
cmp eax, 1
jne 0x476225
inc dword [ecx + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [esi + 8]
cmp ecx, dword [eax + 8]
jl 0x476225
mov ecx, dword [esi + 0x120]
add dword [eax + 8], ecx
jmp 0x476225
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.00475fb0
pop esi
ret
cmp eax, 0xcc
je 0x4762ab
mov eax, dword [esi]
mov dword [eax + 0x14], 0x15
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
call fcn.00475fb0
pop esi
ret
Function at 0x47a5e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1b8]
mov dword [esp + 0x18], esi
jne 0x47a607
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x47a613
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
mov dword [esp + 0xc], ecx
cmp dword [edi + 0x64], ecx
jle 0x47a725
push ebx
push ebp
jmp 0x47a65c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov edi, dword [esi + ecx*4 + 0x20]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
je 0x47a67f
mov edx, dword [esi + 0x18]
add dword [edx + ecx*4], 0xff
lea eax, [edx + ecx*4]
mov eax, dword [esi + 0x18]
mov ebp, dword [eax + ecx*4]
lea eax, [edi + 0xfe]
lea ecx, [edi + edi - 2]
cdq
idiv ecx
xor ebx, ebx
xor ecx, ecx
mov esi, eax
cmp ecx, esi
jle 0x47a6ce
mov edx, ebx
imul edx, edx, 0x1fe
lea edi, [edx + edi + 0xfe]
jmp 0x47a6b0
mov esi, dword [esp + 0x18]
add edi, 0x1fe
mov eax, edi
cdq
lea esi, [esi + esi - 2]
idiv esi
inc ebx
mov esi, eax
cmp ecx, esi
jg 0x47a6b0
mov edi, dword [esp + 0x18]
mov al, byte [esp + 0x1c]
imul bl
mov byte [ecx + ebp], al
inc ecx
cmp ecx, 0xff
jle 0x47a698
cmp dword [esp + 0x10], 0
je 0x47a70d
mov eax, 1
lea ecx, [ebp - 1]
nop
movzx edx, byte [ebp]
mov byte [ecx], dl
movzx edx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], dl
inc eax
dec ecx
cmp eax, 0xff
jle 0x47a6f0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [ecx + 0x64]
jl 0x47a650
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x4832e0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.0048e9a0
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.0048e930
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x483326
push edi
call fcn.0048e9b0
mov eax, dword [edi]
mov dword [eax + 0x14], 0x38
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
mov eax, dword [edx]
push edi
call eax
add esp, 8
mov dword [esi], fcn.004826d0
mov dword [esi + 4], fcn.00482820
mov dword [esi + 8], fcn.004828e0
mov dword [esi + 0xc], fcn.00482990
mov dword [esi + 0x10], 0x482a40
mov dword [esi + 0x14], 0x482ab0
mov dword [esi + 0x18], 0x482b20
mov dword [esi + 0x1c], 0x482e00
mov dword [esi + 0x20], 0x482f40
mov dword [esi + 0x24], 0x483090
mov dword [esi + 0x28], 0x4831a0
mov dword [esi + 0x30], 0x3b9aca00
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x483401
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
push ecx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x483401
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x4833dc
cmp al, 0x4d
jne 0x4833f4
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x49db96
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp dword [0x59fc18], ebx
jne 0x49dbcc
push 0x59fbfc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x59fc18], 1
push 0x59fbfc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x59fc14]
mov edi, eax
cmp eax, ebx
je 0x49dc30
cmp dword [ebp - 4], ebx
jne 0x49dd70
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x49dc03
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x49dbf4
jmp 0x49dc21
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.0049d9eb
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x49dbe2
cmp dword [ebp - 4], ebx
jne 0x49dd70
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x49dd70
mov edi, dword [0x59fc14]
jmp 0x49dc70
cmp dword [edi + 0xc], 0x3f
jl 0x49dd0a
mov edi, dword [edi]
cmp edi, ebx
jne 0x49dc64
push 0x310
push 8
push dword [0x59efb8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x49dd67
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [edi + 8], eax
cmp eax, ebx
je 0x49dd59
push ebx
push ebx
push edi
push 0x49da3c
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x49dd50
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0049d9eb
mov eax, dword [0x59fc14]
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
cmp eax, ebx
je 0x49dd02
mov dword [eax + 4], edi
mov dword [0x59fc14], edi
jmp 0x49dd70
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.0049d9eb
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x49dd70
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x59efb8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x59fbfc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x49ef88
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x158
push 8
push dword [0x59efb8]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x59fcec]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x59fcf0], esi
and dword [esi + 0x88], 0
or dword [esi + 0x8c], 0xffffffff
or dword [esi + 0x90], 0xffffffff
push esi
mov dword [esi + 0x84], 0xffffff
mov dword [esi + 0x6c], 2
mov dword [esi + 0x70], 0x3f
call fcn.004a500d
mov dword [esi + 0x58], 0x49ef07
mov dword [esi + 0x5c], 0x49ef46
mov dword [esi + 0x10], fcn.0049e0a5
mov dword [esi + 0x30], 0x49e22a
mov dword [esi + 0x64], 0x49e333
mov dword [esi + 0x60], 0x49e380
mov dword [esi + 0x34], 0x49eaa6
mov dword [esi + 0x24], 0x49e945
mov dword [esi + 0x28], 0x49e96e
mov dword [esi + 0x2c], 0x49e999
mov dword [esi + 0x44], 0x49ed97
mov eax, esi
pop esi
ret 4

Function at 0x4a0470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x1c], 0
mov ecx, dword [esi + 0xb4]
mov dword [ebp - 4], ecx
je 0x4a04e5
imul ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x14]
add eax, dword [ebp + 8]
push ebx
lea edx, [eax + edx*4]
push edi
mov eax, dword [esi + 0xac]
imul eax, dword [ebp + 0x10]
add eax, dword [esi + 0xa8]
mov edi, edx
add eax, ecx
cmp dword [ebp + 0x18], 0
jle 0x4a04d4
mov ebx, dword [ebp + 0x18]
mov dword [ebp + 0x14], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add eax, dword [ebp - 4]
add edi, 4
dec dword [ebp + 0x14]
jne 0x4a04b9
dec dword [ebp + 0x1c]
add edx, dword [ebp + 0xc]
inc dword [ebp + 0x10]
cmp dword [ebp + 0x1c], 0
jne 0x4a0499
pop edi
pop ebx
leave
ret 0x18

Function at 0x4a12aa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x20], 0
mov edx, dword [esi + 0xb4]
je 0x4a132a
push ebx
imul eax, eax, 3
push edi
mov edi, dword [ebp + 0x14]
mov ecx, edx
imul ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x18]
add edi, dword [ebp + 8]
add eax, edi
mov edi, eax
mov dword [ebp + 0x18], eax
mov eax, dword [esi + 0xac]
imul eax, dword [ebp + 0x10]
add eax, dword [esi + 0xa8]
add eax, ecx
cmp dword [ebp + 0x1c], 0
jle 0x4a1313
mov ebx, dword [ebp + 0x1c]
mov dword [ebp + 0x14], ebx
mov bl, byte [edi + 2]
xor byte [eax + 2], bl
mov bl, byte [edi + 1]
xor byte [eax + 1], bl
mov bl, byte [edi]
xor byte [eax], bl
add edi, 3
add eax, edx
dec dword [ebp + 0x14]
jne 0x4a12f9
mov edi, dword [ebp + 0x18]
add edi, dword [ebp + 0xc]
dec dword [ebp + 0x20]
inc dword [ebp + 0x10]
cmp dword [ebp + 0x20], 0
mov dword [ebp + 0x18], edi
jne 0x4a12db
pop edi
pop ebx
pop ebp
ret 0x1c
Function at 0x4a1384
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
imul eax, eax, 3
cmp dword [ebp + 0x1c], 0
mov dword [ebp - 4], eax
je 0x4a141e
mov eax, dword [ebp + 0x14]
imul ecx, ecx, 3
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x10]
imul eax, dword [ebp + 0x18]
add eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, edx
imul esi, esi, 3
add ecx, eax
push edi
mov edi, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xac]
imul ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0xa8]
mov edx, dword [ebp - 4]
add ecx, esi
test edx, edx
jle 0x4a1406
mov eax, 0xff
sub eax, dword [ebp + 0x20]
mov dword [ebp + 0x18], edx
mov dword [ebp - 8], eax
movzx eax, byte [ecx]
movzx edx, byte [edi]
imul eax, dword [ebp - 8]
imul edx, dword [ebp + 0x20]
add eax, edx
cdq
mov ebx, 0xff
idiv ebx
inc edi
mov byte [ecx], al
inc ecx
dec dword [ebp + 0x18]
jne 0x4a13e5
mov edi, dword [ebp + 0xc]
add edi, dword [ebp + 0x10]
dec dword [ebp + 0x1c]
inc dword [ebp + 0x14]
cmp dword [ebp + 0x1c], 0
mov dword [ebp + 0xc], edi
jne 0x4a13bb
pop edi
pop esi
pop ebx
leave
ret 0x1c
Function at 0x40c77d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040c392
push eax
push esi
push dword [ebp + 8]
call fcn.0040c347
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.0040c392
push eax

Function at 0x40caa3
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40ca59
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40ca77
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40cad5
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
adc byte [ecx + 0xe2], al
and byte [ecx + 0x1065], al
invalid
invalid
adc byte [ecx + 0xe2], al
and byte [ecx + 0x1065], al
add byte [eax + 0x3b184d8b], al
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40cabc
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40cac5
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40cacf
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40cab1
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40ca3b
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40cb22
dec eax
je 0x40cb19
sub eax, 3
je 0x40cb10
mov dword [ebp - 4], 0x40
jmp 0x40cb3f
mov dword [ebp - 4], 4
jmp 0x40cb25
mov dword [ebp - 4], 0x20
jmp 0x40cb25
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40cb71
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40caf1
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040c382
xor byte [esi + edx*8 + 0x5a], 0xff
jne 0x40cb7c
push 1
push esi
call edi
mov eax, esi
jmp 0x40cb7d
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006627
Capabilities:
Encode data using xor

Disassembly:
pushal
pushfd
call 0x1006607
pop ebp
sub ebp, 0x401007
lea esi, [ebp + 0x40105a]
push esi
push 0x12c
push dword [ebp + 0x401056]
call 0x1006627
jmp 0x100665a
add byte [eax], al
add bl, ch
xor ecx, eax
add byte [eax], al
add byte [eax - 0x45], ah
invalid
sbb eax, 0x28658a35
adc al, ch
xor eax, dword [esi - 0x6faafa61]
test dword [esp + ecx*2 - 0x59cb1636], esi
wait
dec esi
pop esp
and byte [eax + 0x64f79c1], ch
jp 0x10066e7
loopne 0x1006622
fsubr dword [edx + 0x2e]
xor al, 0x57
cli
invalid
pushal
scasd eax, dword es:[edi]
or eax, 0xe8aa2914
pop eax
out 0xc6, al
push cs
out dx, eax
lodsd eax, dword [esi]
jecxz 0x1006772
loope 0x100672e
cmp al, 0xad
invalid
je 0x100673a
sub dword [esi + 0x44], ebx
outsb dx, byte [esi]
sbb byte [esi + 0x2b45cebc], 0x3d
invalid
cmp eax, 0x9e16d062
lds ecx, [eax - 0x63864bb2]
pop ss
xchg ebp, eax
sbb eax, 0xde36aad7
not dword [ebx - 3]
retf
in eax, 0x8b
invalid

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x406180
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
mov ebx, ecx
mov ecx, 0x56c22b
push edi
mov dword [ebp - 0x18], ebx
call fcn.00500c8d
mov edi, dword [ebx + 4]
lea eax, [ebp - 0x14]
push eax
or edi, 0x2001f
mov dword [ebp - 0xc], 0
push edi
push 0
push dword [ebp + 8]
mov dword [ebp - 8], 0
push dword [ebx]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0xc]
test esi, esi
jne 0x406290
xor esi, esi
test eax, eax
je 0x4061f0
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x14]
and edi, 0x300
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
test esi, esi
jne 0x406290
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x100
push ecx
lea ecx, [ebp - 0x220]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x406268
nop
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0xc]
call fcn.00406180
mov esi, eax
test esi, esi
jne 0x40628d
lea eax, [ebp - 0x20]
mov dword [ebp - 0x10], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x220]
push eax
push esi
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x406230
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406279
push eax
call ebx
mov dword [ebp - 0xc], 0
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], 0
call fcn.00404f50
mov esi, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x406297
push eax
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406d80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ed26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov ecx, 0x56c279
mov dword [ebp - 0x10], 0
call fcn.00500c8d
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x536a3c
call fcn.00403ce0
mov eax, dword [ebp + 8]
push ecx
mov esi, esp
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404bb0
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
call fcn.0040ac40
mov ebx, dword [ebp - 0x20]
add esp, 0xc
sub ebx, dword [ebp - 0x24]
sar ebx, 2
call fcn.004056c0
mov ecx, eax
test ecx, ecx
je 0x406f90
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
xor edi, edi
mov byte [ebp - 4], 2
or ecx, 0xffffffff
test ebx, ebx
je 0x406f20
nop
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edi*4]
lea esi, [eax + edi*4]
mov eax, dword [ecx - 0xc]
test edi, edi
jne 0x406eed
cmp eax, 1
jl 0x406f9f
cmp word [ecx + 2], 0x3a
jne 0x406f1a
mov ecx, dword [ecx - 0x10]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x406e7e
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x406e94
call fcn.004056c0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x406f90
mov eax, dword [ecx]
call dword [eax + 0xc]
or dword [ebp - 0x10], 1
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push 1
push 0x536974
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404c90
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
add esp, 0x14
push dword [esi - 0xc]
push esi
call fcn.00404880
and dword [ebp - 0x10], 0xfffffffe
add esi, 0xfffffff0
mov byte [ebp - 4], 2
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x406f11
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x406f11
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.00404880
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push 0x536974
lea ecx, [ebp + 8]
call fcn.00404880
inc edi
cmp edi, ebx
jb 0x406e40
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
mov byte [ebp - 4], 0
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x406f39
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x406f7f
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x20]
push eax
call fcn.004037c0
mov ecx, dword [ebp - 0x1c]
add esp, 0xc
mov edx, dword [ebp - 0x24]
sub ecx, edx
and ecx, 0xfffffffc
mov eax, edx
cmp ecx, 0x1000
jb 0x406f75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406f9a
push ecx
push edx
call fcn.00500c7f
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404a90
call fcn.00507f1f
push 0x80070057
call fcn.00404a90
int3