joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ab452
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
jmp 0x7ab469
mov eax, dword [ebp + 8]
movzx edx, byte [eax]
movzx esi, byte [eax + 1]
movzx edi, byte [eax + 5]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 2]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 3]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 4]
shl esi, 8
xor esi, edi
movzx edi, byte [eax + 6]
shl esi, 8
xor esi, edi
movzx edi, byte [eax + 7]
shl esi, 8
xor esi, edi
xor esi, dword [ecx + 4]
movzx edi, byte [eax + 8]
movzx ebx, byte [eax + 0xd]
mov dword [ebp - 0x14], esi
movzx esi, byte [eax + 9]
shl edi, 8
xor edi, esi
movzx esi, byte [eax + 0xa]
shl edi, 8
xor edi, esi
movzx esi, byte [eax + 0xb]
shl edi, 8
xor edi, esi
movzx esi, byte [eax + 0xc]
xor edi, dword [ecx + 8]
xor edx, dword [ecx]
shl esi, 8
xor esi, ebx
movzx ebx, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl esi, 8
xor esi, ebx
shl esi, 8
xor esi, eax
xor esi, dword [ecx + 0xc]
mov dword [ebp - 0xc], edi
shr edi, 8
mov ebx, esi
shr ebx, 0x10
mov eax, 0xff
and edi, eax
and ebx, eax
mov ebx, dword [ebx*4 + reloc.MSVCRT.dll___dllonexit]
xor ebx, dword [edi*4 + reloc.MSVCRT.dll___dllonexit]
mov edi, edx
shr edi, 0x18
xor ebx, dword [edi*4 + reloc.MSVCRT.dll___dllonexit]
mov edi, dword [ebp - 0x14]
and edi, eax
xor ebx, dword [edi*4 + reloc.MSVCRT.dll___dllonexit]
mov dword [ebp - 8], esi
xor ebx, dword [ecx + 0x10]
shr esi, 8
mov edi, edx
shr edi, 0x10
and edi, eax
and esi, eax
mov dword [ebp - 4], edi
mov edi, dword [esi*4 + reloc.MSVCRT.dll___dllonexit]
mov esi, dword [ebp - 4]
xor edi, dword [esi*4 + reloc.MSVCRT.dll___dllonexit]
mov esi, dword [ebp - 0x14]
mov dword [ebp + 8], edx
mov dword [ebp - 0x10], ebx
shr esi, 0x18
xor edi, dword [esi*4 + reloc.MSVCRT.dll___dllonexit]
mov esi, dword [ebp - 0xc]
and esi, eax
xor edi, dword [esi*4 + reloc.MSVCRT.dll___dllonexit]
mov esi, dword [ebp - 0x14]
shr esi, 0x10
shr edx, 8
and esi, eax
and edx, eax
mov dword [ebp - 4], edx
mov edx, dword [esi*4 + reloc.MSVCRT.dll___dllonexit]
mov esi, dword [ebp - 4]
xor edx, dword [esi*4 + reloc.MSVCRT.dll___dllonexit]
mov esi, dword [ebp - 0xc]
shr esi, 0x18
xor edx, dword [esi*4 + reloc.MSVCRT.dll___dllonexit]
mov esi, dword [ebp - 8]
and esi, eax
xor edx, dword [esi*4 + reloc.MSVCRT.dll___dllonexit]
mov esi, dword [ebp - 0x14]
xor edx, dword [ecx + 0x18]
xor edi, dword [ecx + 0x14]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0xc]
shr edx, 0x10
shr esi, 8
and edx, eax
mov edx, dword [edx*4 + reloc.MSVCRT.dll___dllonexit]
and esi, eax
xor edx, dword [esi*4 + reloc.MSVCRT.dll___dllonexit]
mov esi, dword [ebp - 8]
shr esi, 0x18
xor edx, dword [esi*4 + reloc.MSVCRT.dll___dllonexit]
mov esi, dword [ebp + 8]
and esi, eax
xor edx, dword [esi*4 + reloc.MSVCRT.dll___dllonexit]
mov esi, dword [ebp - 0x18]
xor edx, dword [ecx + 0x1c]
sar esi, 1
add ecx, 0x20
dec esi
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], esi
je 0x7ab7e3

Function at 0x7ac1a8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x7e431c
jmp fcn.007cd27c
Function at 0x7ba77c
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp + 1]
jo 0x7ba821
mov edi, ebp
pushfd
jmp 0x7ba7e5
mov edi, esp
cpuid
sbb ah, 0xc9
jmp 0x7ba803
mov dx, 0xe9a4
mov ebx, esi
rdtsc
bswap eax
jmp 0x7ba7ed
mov edi, ebp
pushfd
sub esp, 0xb0
jmp 0x7ba7bf
bsf edx, ebp
ja 0x7ba80b
xchg ch, dh
mov ecx, edi
mov edx, 0xd330bd43
jmp 0x7ba83e
js 0x7ba7cc
mov dx, 0xe9a4
jmp 0x7ba7d0
xchg ch, dh
mov ecx, edi
jmp 0x7ba839
jmp 0x7ba7e2
mov ecx, 0x22b5a9ac
lea ecx, [ebx*4]
neg dh
bswap eax
jmp 0x7ba889
mov edx, 0xd330bd43
xor esi, 0x17de976
mov edx, eax
ror ecx, 1
jmp 0x7ba84e
je 0x7ba823
mov ecx, 0x22b5a9ac
lea ecx, [ebx*4]
jmp 0x7ba87f

Function at 0x7cc8eb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [esp + 2], dl
call fcn.007cc8f0
lcall 0xde89, 0x2217e4f5
mov edx, 0x96e0a7c6
adc al, 0x66
not bp
not bp
jmp 0x7cc8d5

Function at 0x7cc8f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ebp, dword [esp + 0xd]
lea esp, [esp + 0x14]
jmp fcn.007ac1a8
Function at 0x7e3552
Capabilities:
Encrypt data using aes

Disassembly:
mov cx, 0x60b9
lea ecx, reloc.MSVCRT.dll___dllonexit
jmp 0x7e351e
lea esp, [esp + 2]
jmp 0x7e349d
add esp, 2
cmc
jmp 0x7e3481
push edx
mov edx, ecx
add edx, 0x14
jmp 0x7e34a9
mov dword [edx], ebx
pop edx
jmp 0x7e34e1
mov dword [ebp], eax
pop ebp
bsf bx, bp
jmp 0x7e35c8
push ebp
mov ebp, ecx
add ebp, 0x18
jmp 0x7e34cb
mov ecx, edx
bt di, di
mov edi, dword [esp]
lea edi, [ecx + esi]
jmp 0x7e353e
mov eax, edi
sub esp, 4
mov edx, dword [eax + 0xc]
jmp 0x7e3506
mov edi, edx
sub esp, 2
mov byte [esp], bh
lea esp, [esp + 2]
jmp 0x7e354a
shr ecx, 8
mov di, word [esp]
mov edi, ecx
clc
jmp 0x7e3528
and ecx, esi
call 0x7e3552
int1
push esi
mov esi, ecx
jmp 0x7e3591
shr edi, 0x10
jmp 0x7e357b
add ebp, 0x1c
mov dword [ebp], edx
pop ebp
call fcn.007e34ff
and edi, esi
clc
jmp 0x7e35a3
lea esi, [esi*4]
lea esi, reloc.MSVCRT.dll___dllonexit
mov ecx, dword [esi]
pop esi
jmp 0x7e3557
mov edi, dword [edi*4 + reloc.MSVCRT.dll___dllonexit]
lea esp, [esp + 8]
and ecx, 0xff0000
clc
jmp 0x7e36c3
xor edx, eax
push ebp
mov ebp, ecx
jmp 0x7e356f
and edi, 0xff000000
xor ecx, edi
call fcn.007e3663
mov dl, 2
jmp 0x7e372b
mov dword [eax + 0x1c], edx
cmc
jmp 0x7e3733
mov edx, dword [eax + 0xc]
push ebp
xor edx, ecx
jmp 0x7e3713
lea esp, [esp + 4]
cmp ebx, 0x7b72a4
jne 0x7e2ef6
jmp 0x7e377e
mov si, 0x1378
bswap esi
jmp 0x7e3764
pop esi
setae bl
setb bl
jmp 0x7e394e
push 0xa
mov ah, cl
pop eax
pop edi
jmp 0x7e3745
mov ebp, dword [esp]
mov ebx, dword [esp + 4]
lea esp, [esp + 8]
ret

Function at 0x7e3663
Capabilities:
Encrypt data using aes

Disassembly:
movzx edi, byte [edi*4 + 0x7b5a7c]
stc
jmp 0x7e35f3
shr edi, 0x18
cmc
sub esp, 2
stc
lea esp, [esp + 2]
jmp 0x7e35cf
xor ecx, edi
lea edi, reloc.MSVCRT.dll___dllonexit
stc
and edx, ebp
jmp 0x7e3639
lea edi, [eax + 0x10]
mov dx, 0x5bf8
not edx
jmp 0x7e3623
and edx, esi
mov edx, dword [edx*4 + reloc.MSVCRT.dll___dllonexit]
pushal
jmp 0x7e35e5
xor ecx, dword [eax]
jmp 0x7e3646
xor ecx, edx
lea esp, [esp + 0x24]
xor ecx, dword [ebx]
mov edi, dword [esp]
jmp 0x7e3600
add ebx, 4
lea edx, [ebx*4]
jmp 0x7e368d
mov edi, edx
jmp 0x7e3617
mov edx, dword [eax + 4]
push cx
lea esp, [esp + 2]
xor edx, ecx
jmp 0x7e369e
xor ecx, edx
setne dl
jmp 0x7e36ac
mov dword [edi], ecx
mov dx, 0xa6c1
mov dl, dh
mov dx, word [esp]
lea edx, [ebx + edi]
jmp 0x7e3667
mov dword [eax + 0x14], edx
shr ecx, cl
mov cx, 0x65da
mov ecx, dword [eax + 8]
jmp 0x7e3674
push ebp
mov ebp, eax
jmp 0x7e36e6
add ebp, 0x18
mov dword [ebp], ecx
pop ebp
mov dx, bp
bswap edx
jmp 0x7e36d0
Function at 0x8f5af7
Capabilities:
Check for peb beingdebugged flag
Parse pe header

Disassembly:
inc dword [eax + 0x86d00c]
pushfd
std
call fcn.008f3b68
push 0xffffffffffffff94
adc dword [ecx + reloc.MSVCRT.dll___dllonexit], eax
xchg ebx, eax
push eax
jmp 0x8f300e
call 0x8f3013
jmp 0x8f40a4
lea esp, [esp + 8]
jmp 0x8f4080
sub eax, 0x8f3013
cmp dword [eax + reloc.MSVCRT.dll___dllonexit], 0
je 0x8f2fd0
jmp 0x8f4056
popal
jmp fcn.00452dc9
mov eax, 0xe08185d7
setbe al
mov eax, dword [esp]
lea esp, [esp + 4]
jmp 0x8f406c
movzx ebx, word [eax + 0x3c]
jmp 0x8f5b1d
call 0x8f5081
jmp 0x8f5b33
mov byte [esp + 4], bl
jmp 0x8f5cf3
add ebx, eax
jmp 0x8f5b6c
pop eax
xor ax, ax
cmp word [eax], 0x5a4d
je 0x8f5025
sub eax, 0x10000
jmp 0x8f5b37
je 0x8f2fe6
jne 0x8f5b42
xchg edx, eax
pop ss
xchg edx, esp
adc edi, esi
or byte [eax + 0x6288791e], cl
cmpsb byte [esi], byte es:[edi]
and eax, 0xcb2fdcb5
rcl byte [esi - 0x3c]
mov dword [reloc.MSVCRT.dll___dllonexit], eax
stc
cmp word [ebx], 0x4550
jmp 0x8f5b49
mov eax, dword [eax + 8]
push eax
jmp 0x8f507c
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x8f5b9b
mov dword [esp + 4], ebp
lea esp, [esp + 2]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
mov eax, dword fs:[0x30]
jmp 0x8f5c74
mov dword [esp + 0xb], edi
mov dword [esp + 0x58], esi
push edx
push word [esp]
mov word [esp + 2], si
pushfd
jmp 0x8f5cb1
Function at 0x401491
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x4519b0]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x401526
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014e3
cmp dword [ebp + 0x10], ebx
jne 0x40151a
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401491
test eax, eax
jne 0x4014f5
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014ca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.004058a6
cmp eax, ebx
je 0x40152d
push ebx
push dword [0x4519b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401526
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x4519b0], ebx
jne 0x401523
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x401523
jmp 0x401526
Function at 0x405491
Capabilities:
Create process on windows

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

Function at 0x405613
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 0x405630
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405633
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
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 0x405662
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4056a6
test edi, edi
jne 0x40566d
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4056a0

Function at 0x4056aa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40571b
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x2000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40570a
cmp dword [ebp + 0x14], 1
je 0x40570c
cmp dword [ebp + 0x14], 2
je 0x40570c
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405964
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x443580
push esi
call fcn.004057c3
push esi
call fcn.0040559c
mov edi, eax
test edi, edi
jne 0x405985
xor eax, eax
jmp 0x4059dd
push edi
call fcn.004057e5
test byte [0x451928], 0x80
je 0x40599e
mov al, byte [edi]
test al, al
je 0x405981
cmp al, 0x5c
je 0x405981
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x4059be
push esi
call fcn.0040587f
test eax, eax
je 0x4059b8
test byte [eax], 0x10
je 0x4059e2
push esi
call fcn.0040593d
push esi
call ebx
cmp eax, edi
jg 0x4059a9
push esi
call fcn.00405910
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x4059dc
Function at 0x405c96
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.004058a6
mov esi, dword [esp + 0x18]
test eax, eax
je 0x405cba
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405df3
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x445580], 0x4c554e
mov edi, 0x400
mov ebp, 0x445580
test esi, esi
je 0x405cfe
push 1
push 0
push esi
call fcn.00405633
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405df9
cmp eax, edi
jg 0x405df9
push edi
mov esi, 0x445ec0
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405df9
cmp eax, edi
jg 0x405df9
push esi
push ebp
push str._s_s_r_n
push 0x445980
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4518cc]
push dword [eax + 0x128]
push esi
call fcn.00405a3c
push 4
push 0xc0000000
push esi
call fcn.00405633
mov ebp, eax
mov dword [esp + 0x14], ebp
cmp ebp, 0xffffffff
je 0x405df3
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 0x405dec
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405dec
cmp edi, dword [esp + 0x18]
jne 0x405dec
push str._Rename__r_n
push esi
call fcn.004059e6
test eax, eax
jne 0x405e00
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.004057c3
add edi, 0xa
mov eax, edi
push ebx
push 0x445980
add eax, esi
push eax
call fcn.004055ef
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
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 [0x451990]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x407614
add eax, 0xa
push eax
call fcn.004059e6
test eax, eax
je 0x405db7
inc eax
lea ecx, [esi + edi]
mov ebp, eax
cmp eax, ecx
jae 0x405e27
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405e1c
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405db9
Function at 0x405e2f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405964
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405e64
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x451988], eax
jmp 0x405ff6
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x405e7f
test eax, eax
je 0x405fa1
test cl, 2
je 0x405fa1
push edi
push ebx
mov esi, 0x4462c0
push esi
call fcn.004057c3
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x405ea2
push str..
push esi
call edi
jmp 0x405ea8
push ebx
call fcn.0040593d
cmp byte [ebx], 0
jne 0x405eb6
cmp byte [0x4462c0], 0x5c
jne 0x405ebe
push 0x407290
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x405f96
lea esi, [ebp - 0x11c]
push 0x3f
mov eax, esi
push eax
call fcn.00405558
cmp byte [eax], 0
je 0x405f01
cmp byte [ebp - 0x18], 0
je 0x405f01
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405f17
mov al, byte [esi + 1]
test al, al
je 0x405f75
cmp al, 0x2e
jne 0x405f17
cmp byte [esi + 2], 0
je 0x405f75
push esi
push edi
call fcn.004057c3
test byte [ebp - 0x148], 0x10
je 0x405f3c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405f75
push dword [ebp + 0xc]
push ebx
call fcn.00405e2f
jmp 0x405f75
push ebx
call fcn.00405613
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405f6d
test byte [ebp + 0xc], 4
je 0x405f65
push ebx
push 0xfffffffffffffff1
call fcn.00404855
push 0
push ebx
call fcn.00405c96
jmp 0x405f75
inc dword [0x451988]
jmp 0x405f75
push ebx
push 0xfffffffffffffff2
call fcn.00404855
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405ee3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405fa0
mov byte [edi - 1], 0
pop edi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405ff5
cmp dword [ebp - 8], esi
je 0x405fe5
push ebx
call fcn.0040587f
test eax, eax
je 0x405ff5
push ebx
call fcn.00405910
push ebx
call fcn.00405613
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405fed
test byte [ebp + 0xc], 4
je 0x405fe5
push ebx
push 0xfffffffffffffff1
call fcn.00404855
push esi
push ebx
call fcn.00405c96
jmp 0x405ff5
inc dword [0x451988]
jmp 0x405ff5
push ebx
push 0xffffffffffffffe5
call fcn.00404855
pop esi
pop ebx
leave
ret 8
Function at 0x405ffb
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4482c4], 0
jne 0x406039
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40600f
mov dword [ecx*4 + 0x4482c0], eax
inc ecx
cmp ecx, 0x100
jl 0x40600a
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406066
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4482c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406047
not eax
pop ebp
ret 0xc

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov bl, byte [eax]
cmp bl, 0xd8
je 0x40102e
cmp bl, 0xd7
je 0x40102e
mov esi, dword [ebp + 0x10]
lea ecx, [eax + 1]
test esi, esi
jle 0x40104f
mov eax, dword [ebp + 0xc]
sub ecx, eax
mov dl, byte [ecx + eax]
mov byte [eax], dl
inc eax
dec esi
jne 0x401023
jmp 0x40104f
mov esi, dword [ebp + 0xc]
inc eax
push esi
push eax
call fcn.00401ac0
cmp bl, 0xd8
jne 0x40104f
xor eax, eax
cmp dword [ebp + 0x10], eax
jle 0x40104f
xor byte [eax + esi], 0xf0
inc eax
cmp eax, dword [ebp + 0x10]
jl 0x401045
pop esi
pop ebx
pop ebp
ret

Function at 0x4010c1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
xor esi, esi
push edi
push esi
push dword [esp + 0x14]
push esi
push 0x8000040
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, esi
je 0x4010fc
push esi
push esi
push esi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x40112a
push 0x40
push 0x101000
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x40112a
push esi
mov eax, 0x401130
push esi
push eax
push eax
push 0x80030008
call fcn.00401057
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x402ae4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404194
test esi, esi
jne 0x402b1a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404284
jmp 0x402b38
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402998
mov edi, eax
test esi, esi
je 0x402b38
cmp dword [ebx], 0
je 0x402b38
dec esi
jmp 0x402b21
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403214
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x480020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4032ac
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40328c
xor eax, eax
push ebp
push 0x403285
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4032c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40328c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x480020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x480020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f94
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48304c], 0
je 0x403ff5
cmp word [0x483220], 0xd7b2
jne 0x403fbd
cmp dword [0x483228], 0
jbe 0x403fbd
mov eax, 0x48321c
call dword [0x483238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48006c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40401c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x480030], 0
jne 0x404011
push 0
push 0x480064
push 0x48006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404148
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040275c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48304d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404110
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc