joyce8/EMBER2024-capa huggingface dataset:
Function at 0x520380
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525216
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov dword [ebp - 0x64], ecx
cmp dword [ebp + 8], 0
jne 0x5203ae
mov eax, 0x80070057
jmp 0x5204f5
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ab60
mov dword [ebp - 4], 0
mov ecx, dword [0x540fe4]
push ecx
push 0x5c
lea ecx, [ebp - 0x28]
call fcn.0040aba0
mov dword [ebp - 0x2c], eax
mov edx, dword [0x540fe4]
cmp edx, dword [ebp - 0x2c]
je 0x5204cb
mov eax, dword [ebp - 0x2c]
push eax
push 0
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040abc0
mov dword [ebp - 0x68], eax
push 0
mov ecx, dword [ebp - 0x68]
call fcn.004077a0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x50]
call fcn.00407750
cmp dword [ebp - 0x30], 0
je 0x520452
cmp dword [ebp - 0x30], 0x50
je 0x520452
cmp dword [ebp - 0x30], 0xb7
je 0x520452
mov edx, dword [ebp - 0x30]
push edx
call fcn.004086b0
add esp, 4
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407750
mov eax, dword [ebp - 0x54]
jmp 0x5204f5
push 0
push 0x80
push 1
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x28]
call fcn.004077a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x5204a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004086b0
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407750
mov eax, dword [ebp - 0x58]
jmp 0x5204f5
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407750
mov eax, dword [ebp - 0x5c]
jmp 0x5204f5
mov dword [ebp - 0x60], 0x80070057
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407750
mov eax, dword [ebp - 0x60]
jmp 0x5204f5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x520510
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x52052a
jmp 0x52056f
cmp dword [ebp + 0xc], 0
je 0x520556
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x520556
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00520380
xor edx, edx
test eax, eax
setge dl
mov dword [ebp - 4], edx
jmp 0x52055d
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x52056f
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00407020
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x10001619
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x1b], 0x64
mov byte [ebp - 0x19], 0x6c
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x22], 0x76
mov byte [ebp - 0x20], 0x70
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x1e], 0x33
mov byte [ebp - 0x24], 0x41
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1d], 0x32
mov byte [ebp - 0x21], 0x61
mov byte [ebp - 0x23], 0x64
mov byte [ebp - 0x1c], 0x2e
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000168d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegOpenKeyExA
push edi
call esi
push str.RegQueryValueExA
push edi
mov dword [ebp - 8], eax
call esi
push str.RegCloseKey
push edi
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 0x10], eax
pop esi
lea eax, [ebp - 4]
push eax
push 0xf013f
push 0
push dword [ebp + 8]
push 0x80000002
call dword [ebp - 8]
pop edi
test eax, eax
jne 0x100016cb
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x190
push dword [ebp - 4]
call dword [ebp - 0xc]
push dword [ebp - 4]
call dword [ebp - 0x10]
mov al, 1
leave
ret
Function at 0x100023be
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov dword [0x1000ad54], eax
mov eax, dword [ebp + 0x14]
mov dword [0x1000ac4c], eax
mov eax, dword [ebp + 0x10]
mov dword [0x1000ae5c], eax
call fcn.1000127e
pop ebp
jmp fcn.10001420
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x4131b0
Capabilities:
Encode data using xor

Disassembly:
aaa
xor esp, esi
add dword [ebx - 0x20a455a2], eax
mov ebx, 0x8079a628
xor al, 0x56
adc eax, 0x71e74653
sbb byte [eax + 0x5c], dl
mov eax, dword [0x2e00a9f3]
adc esp, dword [ebp + 0x6bbc0a58]
shr dh, 3
mov edx, 0x945bc1b4
push 0x49
mov ah, 0x23
xor edx, dword [ebx - 0x78fedbd6]
add dword [0xbb097efb], edx
adc eax, 0xbb097efb
jb 0x4131dc
xor esi, dword [0x1229a45]
pop eax
jmp 0x4131e7

Function at 0x1cfc058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01cfc1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1cfc07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1cfc06a
add dl, dl
jne 0x1cfc089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1cfc0dc
xor eax, eax
add dl, dl
jne 0x1cfc096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1cfc17d
add dl, dl
jne 0x1cfc0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1cfc0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1cfc0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1cfc0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1cfc0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1cfc075
mov eax, 1
add dl, dl
jne 0x1cfc0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1cfc0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1cfc0e1
sub eax, ebx
mov ebx, 1
jne 0x1cfc128
mov ecx, 1
add dl, dl
jne 0x1cfc10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1cfc119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1cfc105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1cfc075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1cfc13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1cfc14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1cfc136
cmp eax, 0x7d00
jae 0x1cfc16d
cmp eax, 0x500
jb 0x1cfc168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1cfc075
cmp eax, 0x7f
ja 0x1cfc170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1cfc075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1cfc19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1cfc075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x1993526
Capabilities:
Encode data using xor

Disassembly:
imul esp, dword [ecx + 0x60], 0xffffffb3
xor byte [eax + edx*4 + 0x2b], dh
cmp eax, 0xbaffc93f
cmpsb byte [esi], byte es:[edi]
xchg byte [esi + 0x6737d801], cl
fisttp qword [ebx]
movsd dword es:[edi], dword [esi]
mov eax, 0xba39001c
jae 0x1993564
retf
insd dword es:[edi], dx
add byte [ecx - 0xcaeb3e0], bl
add al, 0x2e
sub bh, dl
jae 0x19935dd
xchg ebp, eax
dec ecx
mov esp, dword [esi + 0x278705c8]
loope 0x19935d6
pop ebp
xlatb
add al, 0x85
scasd eax, dword es:[edi]
aad 0xc1
movsd dword es:[edi], dword [esi]
xor dword [0x75c0038], ebx
pop es
or eax, dword [ebx]
in eax, dx
scasb al, byte es:[edi]
sub dword [eax], esi
push ecx
invalid
in eax, 0xdf
push 0xa0570880
dec ecx
mov ecx, 0xe501d1d2
call 0x1ae32b93
ret 0xa80e
Function at 0x1ad5ad0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x706000]
push edi
or ebp, 0xffffffff
jmp 0x1ad5af2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1ad5af9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1ad5ae8
mov eax, 1
add ebx, ebx
jne 0x1ad5b0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1ad5b00
jne 0x1ad5b1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1ad5b00
xor ecx, ecx
sub eax, 3
jb 0x1ad5b30
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1ad5ba2
mov ebp, eax
add ebx, ebx
jne 0x1ad5b3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1ad5b48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1ad5b6c
inc ecx
add ebx, ebx
jne 0x1ad5b58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1ad5b4d
jne 0x1ad5b69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1ad5b4d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1ad5b8c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1ad5b7d
jmp 0x1ad5aee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1ad5b8c
add edi, ecx
jmp 0x1ad5aee
pop esi
mov edi, esi
mov ecx, 0x305d1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1ad5baa
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 0x1ad5baf
lea edi, [esi + 0xbd1000]
mov eax, dword [edi]
or eax, eax
je 0x1ad5c17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc51638]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc5178c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1ad5bd5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc51790]
or eax, eax
je 0x1ad5c11
mov dword [ebx], eax
add ebx, 4
jmp 0x1ad5bf2
call dword [esi + 0xc517a0]
mov ebp, dword [esi + 0xc51794]
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 0x1ad5c4b
sub esp, 0xffffff80
jmp 0x1557134
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x6a83a63
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0xcdb4dec
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4013b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x50c380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
mov dword [ebp - 0x10c], esi
call fcn.004a0950
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xorps xmm0, xmm0
lea ecx, [ebp - 0x108]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
lea edx, [ecx + 1]
mov dword [esi + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401414
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
mov ecx, esi
call fcn.00402c50
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049ec00
mov esp, ebp
pop ebp
ret

Function at 0x4017b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x24]
cmp ax, 9
je 0x4017d5
cmp ax, 6
sete al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x401ac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c558d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x50c380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x30], esi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push edx
push dword [ebp + 0x1c]
mov dword [ebp - 0x2c], 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401b6d
push eax
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x30], eax
call fcn.004020d0
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp + 0x18]
push ecx
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push edi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0xf
lea edx, [ebp - 0x28]
xorps xmm0, xmm0
cmova edx, dword [ebp - 0x28]
mov ecx, edx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401b91
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00402c50
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x401bd3
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x401bc9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401bf0
push ecx
push edx
call fcn.0049ec8b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049ec00
mov esp, ebp
pop ebp
ret
call fcn.004a943a
int3

Function at 0x401c00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x18]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c4e
mov eax, dword [ebp + 0x14]
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x401c31
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x401cc0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401ce5
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
mov esp, ebp
pop ebp
ret
Function at 0x408c20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50c380]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x50dca8], ecx
inc eax
cmp eax, 0x100
jb 0x408c32
cmp eax, 0x800
jae 0x408d03
nop word [eax + eax]
mov edx, dword [eax*4 + 0x50d8a8]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x50dca8]
mov dword [eax*4 + 0x50dca8], edx
inc eax
cmp eax, 0x800
jb 0x408ce0
lea eax, [ebp - 0x24]
mov dword [0x50fca8], 0x403c60
push eax
call fcn.0040a350
add esp, 4
test eax, eax
je 0x408dcd
push esi
push edi
mov edi, dword [ebp - 0x14]
xor ecx, ecx
mov esi, edi
mov eax, 0x50c010
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
push ebx
mov ebx, dword [ebp - 0x20]
cmp dword [eax - 8], ebx
jne 0x408d5b
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x18]
jne 0x408d5b
cmp dword [eax], ebx
je 0x408d78
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x408d44
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ec00
mov esp, ebp
pop ebp
ret
sub ecx, 0
je 0x408db1
sub ecx, 1
je 0x408d95
sub ecx, 1
jne 0x408dca
cmp esi, 6
jb 0x408da6
jne 0x408dc0
cmp edi, 0xf
jae 0x408dc0
jmp 0x408da6
cmp esi, 5
jb 0x408da6
jne 0x408dc0
cmp edi, 6
jb 0x408da6
cmp edi, 0xa
jne 0x408dc0
mov eax, 1
test eax, eax
jne 0x408dca
jmp 0x408dc0
cmp esi, 6
jb 0x408dca
jne 0x408dc0
cmp edi, 0x100c
je 0x408dca
mov dword [0x50fca8], 0x403d00
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ec00
mov esp, ebp
pop ebp
ret
Function at 0x40a1a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x40a1c0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
lea edx, [esi - 4]
add edx, ecx
mov dword [ebp + 0xc], edx
add esi, ebx
mov dword [ebp - 4], esi
cmp esi, edx
jae 0x40a1f2
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40a1ef
inc esi
cmp esi, edx
jb 0x40a1e0
mov dword [ebp - 4], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x40a31a
cmp ecx, 3
jbe 0x40a232
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x40a270
cmp cl, 0xff
je 0x40a270
mov edx, dword [ebp + 0xc]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x40a1d4
dec ecx
shl eax, cl
and eax, 7
je 0x40a20a
cmp byte [eax + 0x4c9774], 0
je 0x40a25d
movzx ecx, byte [eax + 0x4c977c]
mov edx, esi
sub edx, ecx
mov cl, byte [edx + 4]
test cl, cl
je 0x40a25a
cmp cl, 0xff
jne 0x40a20a
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
and eax, 3
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x40a1d4
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x40a29e
lea edx, [edi + ebx]
add edx, esi
jmp 0x40a2a4
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x40a2e2
movzx edi, byte [eax + 0x4c977c]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x40a2ce
cmp cl, 0xff
jne 0x40a2e2
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x40a291
mov esi, dword [ebp - 4]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
neg cl
mov byte [esi + 1], dl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp + 0xc]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x40a1d4
pop edi
pop esi
cmp ecx, 3
jbe 0x40a32f
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a460
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
mov esi, ecx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
mov eax, esi
setne dl
mov dword [esi + 4], edx
pop esi
pop ebp
ret 4
Function at 0x40a880
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x50c380]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x104
push 0
push eax
call fcn.004a0950
add esp, 0xc
cmp dword [esi + 0x10], 0
jbe 0x40a912
cmp dword [esi + 0x14], 0xf
jbe 0x40a8bb
mov esi, dword [esi]
movsx eax, byte [esi]
push eax
lea eax, [ebp - 0x108]
push str._c:_
push eax
call fcn.0040a400
add esp, 0xc
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110]
xor ecx, ebp
mov edx, dword [ebp - 0x10c]
pop esi
call fcn.0049ec00
mov esp, ebp
pop ebp
ret 4
call fcn.004025f0
int3