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

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x6d9c8b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x6d9d8e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x2904f0c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x2904f0c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x2904f0c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x2904f0c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x2904f0c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x2904f0c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x2904f0c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x2904f0c]
xor eax, edx
inc ecx
dec edi
jne 0x6d9ca6
pop edi
test esi, esi
je 0x6d9db0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x2904f0c]
xor eax, edx
inc ecx
dec esi
jne 0x6d9d92
pop esi
pop ebx
not eax
ret

Function at 0x6da690
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x6da6d1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile_1]
test eax, eax
jne 0x6da6c6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x6da6e4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x6e067d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6e069d
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
push eax
call fcn.006df9da
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x6e06c0
test byte [esp + 8], 2
je 0x6e06c0
call fcn.006dfa4d
mov dword [eax], 0xd
call fcn.006dfa56
mov dword [eax], 5
jmp 0x6e0699
xor eax, eax
ret

Function at 0x6f0b52
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x6f0b8a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.006eec06
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.006eebde
jmp 0x6f0b96
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x6f2249
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x6f228b
call fcn.006f7ebb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x6f228b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x6f2282
xor eax, eax
jmp 0x6f2293
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.006f2299
pop edi
pop esi
pop ebx
ret 4

Function at 0x6f83eb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x6f8419
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x6f8437
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.006f8351
jmp 0x6f8437
mov eax, dword [esi + 0x14]
test eax, eax
je 0x6f8437
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.006f8351
test edi, edi
mov eax, edi
jne 0x6f8421
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

Function at 0x7ffe5498
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
call 0x7ffe54a3
pop edx
xor dx, dx
add edx, 0xd5e0
xor ecx, ecx
mov cl, 0x1e
xor byte [ecx + edx], 0xb7
loop 0x7ffe54b1
push dword fs:[0x24]
pop dword [edx + 0xa]
mov cl, 0xff
push edx
loop 0x7ffe54c3
mov dword [edx + 0x11], 0xffffacbb
mov ecx, dword [eax + 0x2c]
mov dword [edx + 0x1b], ecx
mov dword [edx + 0x100], ecx
mov dword [eax + 0x2c], esp
push 0
push 0
push 0
push 0
push 0x30
push 0x20
push 0
add al, 0
push 0
clc
add edx, 0xffff7f36
cld
push edx
push es
pop ds
push edx
push 0
nop
call dword [edx + 0x820d]
and al, 0xff
add esp, 0x3f8
inc esi
dec esi
xor eax, eax
clc
inc eax
ret 0xc

Function at 0x7ffe9c50
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [bp + si]
lahf
pop ss
jp 0x7ffe9c90
cmp dword [edi + ecx], ebp
sub al, 0xf
scasd eax, dword es:[edi]
and eax, dword [esp + edx*8]
sbb eax, 0x53a167a0
sbb eax, 0xba9e2e19
sal dword [eax + ebp], cl
sbb ecx, dword [ecx + 0xd0e90ed]
imul eax, dword ds:[edi + 0x3bd1a2b7], 0x292a0f00
fild dword cs:[edi]
mov eax, 0xfddca29b
or dword [esi], ecx
outsd dx, dword [esi]
pushal
pushal
cli
bound ebx, qword [edx - 0x3e65dde2]
xor eax, 0x1f6a2fe2
loop 0x7ffe9cc1
push 0x1f
mov ebp, 0x841074c7
out dx, eax
das
pop esi
sbb dword [edx - 0x37c0e0a1], edx
inc ebx
jns 0x7ffe9c56
sbb bl, byte [ebx]
cmpsb byte [esi], byte es:[edi]
jmp 0x7ffe9cc1
fist dword [0x2414977e]
invalid
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x432003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x408928
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
sub ebx, 0xa2e776f4
call fcn.00408950
or edx, edx
sub edx, 0xb0ab423b
xor dword [edi], esi
inc edi
sub ebx, 0xb1b80e88
cmp edi, eax
jne fcn.00408928
sub ebx, edx
ret
Function at 0xab09f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4c3000]
push edi
or ebp, 0xffffffff
jmp 0xab0a12
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xab0a19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xab0a08
mov eax, 1
add ebx, ebx
jne 0xab0a2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xab0a3c
jne 0xab0a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xab0a5b
dec eax
add ebx, ebx
jne 0xab0a48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xab0a20
add ebx, ebx
jne 0xab0a57
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xab0aad
xor ecx, ecx
sub eax, 3
jb 0xab0a73
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xab0ae2
sar eax, 1
mov ebp, eax
jmp 0xab0a7e
add ebx, ebx
jne 0xab0a7e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xab0a4c
inc ecx
add ebx, ebx
jne 0xab0a8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xab0a4c
add ebx, ebx
jne 0xab0a99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xab0a8e
jne 0xab0aaa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xab0a8e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xab0acc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xab0abe
jmp 0xab0a0e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xab0acc
add edi, ecx
jmp 0xab0a0e
pop esi
mov edi, esi
mov ecx, 0x24fe0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xab0aea
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xab0aef
lea edi, [esi + 0x6ac000]
mov eax, dword [edi]
or eax, eax
je 0xab0b57
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6ba284]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6ba3a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xab0b15
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x6ba3b0]
or eax, eax
je 0xab0b51
mov dword [ebx], eax
add ebx, 4
jmp 0xab0b32
call dword [esi + 0x6ba3ac]
mov ebp, dword [esi + 0x6ba3b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xab0b8b
sub esp, 0xffffff80
jmp 0x8615cc
Function at 0x4015a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x110
lea eax, [esp]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x114]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40172e
push ebx
push ebp
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 8]
push 0
push 0
mov ebx, eax
push 0
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push 0
push ecx
mov ebp, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x40171a
push esi
push edi
mov edx, dword [esp + 0x128]
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00403676
add esp, 8
test eax, eax
je 0x4016e4
mov edi, dword [esp + 0x124]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40acf0
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40acec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00403645
mov ecx, dword [esp + 0x20]
add esp, 8
push 0x40d9ac
push ebx
call fcn.004015a0
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4016e1
dec ebp
mov byte [ebx], 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x2c]
mov eax, ebp
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], 0x104
push eax
inc ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x40161b
pop edi
pop esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebp
pop ebx
add esp, 0x110
ret 8
Function at 0x401740
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [ecx + 4]
push esi
mov esi, 0x104
mov dword [esp + 0x10], ecx
test eax, eax
mov dword [esp + 0x14], esi
mov dword [esp + 8], esi
je 0x40176c
push 0x40ad24
call fcn.00403645
add esp, 4
mov ecx, dword [esp + 0x224]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401937
push ebx
push ebp
push edi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push 0
push 0
mov ebx, eax
push 0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x34]
push edx
push eax
push 0
push ecx
mov esi, 1
call edi
cmp eax, 0x103
je 0x401922
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
test eax, eax
je 0x4017f5
lea eax, [esp + 0x24]
push eax
push 0x40ad18
call fcn.00403645
add esp, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
lea edx, [esp + 0x2c]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401860
lea ecx, [esp + 0x20]
lea edx, [esp + 0x128]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x28]
push 0x40ad08
push eax
call ebp
test eax, eax
jne 0x40184d
lea ecx, [esp + 0x128]
push 0x40acfc
push ecx
call fcn.00403676
add esp, 8
test eax, eax
jne 0x40188d
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0x104
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x34]
mov eax, esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x2c]
inc esi
push eax
call edi
cmp eax, 0x103
jne 0x4017d8
jmp 0x401922
mov edi, dword [esp + 0x230]
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40acf0
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40acec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00403645
add esp, 8
push ebx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x21c
ret 4
Function at 0x402200
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40225c
cmp eax, 4
je 0x40225c
cmp eax, 0x10
je 0x40225c
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
push 0x40ae14
call fcn.00403645
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40225c
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x40225c
push esi
push 0x40adf8
call fcn.00403645
add esp, 8
pop esi
ret 4
Function at 0x403010
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 0x104
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40303d
push 0x40b08c
call fcn.00403645
add esp, 4
mov ecx, dword [esp + 0x230]
mov edx, dword [esp + 0x22c]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40316d
mov edx, dword [esp + 0x10]
push eax
push eax
push eax
push eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x30]
push eax
push ecx
push 0
push edx
mov ebx, 1
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x403162
mov edi, dword [esp + 0x238]
mov ebp, dword [esp + 0x234]
mov eax, dword [esi + 4]
test eax, eax
je 0x4030b6
lea eax, [esp + 0x20]
push eax
push 0x40ad18
call fcn.00403645
add esp, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
lea edx, [esp + 0x28]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403139
lea ecx, [esp + 0x14]
lea edx, [esp + 0x124]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x28]
push 0x40b080
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40310e
lea ecx, [esp + 0x124]
push ebp
push ecx
call fcn.00403676
add esp, 8
test eax, eax
jne 0x40317c
mov edx, dword [esp + 0x23c]
mov ecx, dword [esp + 0x10]
push edx
push edi
lea eax, [esp + 0x28]
push ebp
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0x104
call fcn.00403010
test eax, eax
jne 0x403213
push 0
push 0
push 0
lea edx, [esp + 0x28]
push 0
lea ecx, [esp + 0x30]
mov eax, ebx
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x40309d
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret 0x14
mov eax, dword [esi + 4]
test eax, eax
je 0x4031a5
mov eax, dword [esp + 0x230]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x128]
push ecx
push edx
push 0x40b014
call fcn.00403645
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
push edi
push ecx
call esi
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x14]
lea eax, [esp + 0x124]
push edx
push eax
push 0
push 0
push edi
push ecx
call esi
mov edx, dword [esp + 0x18]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40316d
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x23c]
lea ecx, [esp + 0x124]
push eax
push ecx
push edx
call fcn.004037d0
add esp, 0xc
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret 0x14
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x58586d2e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x61ae5a9e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x485b3c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
test dl, dl
push ebx
push esi
mov byte [ebp - 8], dl
jle 0x485b50
call fcn.00537be0
mov byte [ebp - 0x29], dl
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
mov eax, 0x5932c4
call fcn.00527ca4
mov word [ebp - 0x18], 8
mov cl, 1
xor edx, edx
mov eax, dword [esi]
call fcn.00514dac
add dword [ebp - 0xc], 2
mov eax, dword [esi]
xor edx, edx
add eax, 0x44
mov dword [eax], edx
inc dword [ebp - 0xc]
mov ebx, dword [esi]
push 1
add ebx, 0x48
push 0
push ebx
call fcn.005276d0
add esp, 0xc
mov eax, dword [esi]
add eax, 0x78
xor edx, edx
mov dword [eax], edx
inc dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x50c8d0]
call fcn.0040e3c0
mov ecx, dword [esi]
mov dword [ecx + 0x34], eax
mov dl, 1
mov eax, dword [0x50c8d0]
call fcn.0040e3c0
mov ecx, dword [esi]
mov dword [ecx + 0x38], eax
mov dl, 1
mov eax, dword [0x50c8d0]
call fcn.0040e3c0
mov ecx, dword [esi]
mov dword [ecx + 0x3c], eax
mov dl, 1
mov eax, dword [0x50c8d0]
call fcn.0040e3c0
mov ecx, dword [esi]
mov dword [ecx + 0x40], eax
mov eax, dword [esi]
xor edx, edx
mov dword [eax + 0x30], edx
mov dl, 1
mov eax, dword [0x50c8d0]
call fcn.0040e3c0
mov ebx, eax
mov eax, dword [esi]
mov dword [eax + 0x74], ebx
mov eax, ebx
mov dl, 1
call fcn.0051026c
mov ecx, dword [esi]
mov eax, dword [ecx + 0x74]
mov byte [eax + 0x19], 0
mov edx, dword [esi]
xor ecx, ecx
mov dword [edx + 0x6c], ecx
mov eax, dword [esi]
mov dword [eax + 0x4c], 0xa
mov eax, dword [esi]
add eax, 0x48
or byte [eax], 2
or byte [eax], 1
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov eax, dword [esi]
cmp byte [ebp - 0x29], 0
je 0x485c44
call fcn.00537bed
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x498134
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x5ab904
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x498156
shr eax, 1
xor eax, 0xedb88320
jmp 0x498158
shr eax, 1
dec edx
jne 0x498144
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x49813d
mov byte [0x5abd04], 1
pop esi
pop ebx
ret

Function at 0x498174
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x5abd04], 0
jne 0x49818b
call fcn.00498134
mov eax, edi
dec eax
test eax, eax
jl 0x4981b4
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5ab904]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x498195
mov eax, ebx
pop edi
pop esi
pop ebx
ret