joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403244
Capabilities:
Enumerate process modules
Enumerate processes
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
mov ecx, 0x4a
push eax
add esp, 0xfffffc30
push ebx
push esi
push edi
lea edi, [ebp - 0x238]
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x44e96c
rep movsd dword es:[edi], dword [esi]
pop esi
push ebx
call fcn.004031dc
pop ecx
test eax, eax
je 0x403280
push ebx
call fcn.00403224
pop ecx
mov dword [ebp - 0x2cc], 0x94
lea eax, [ebp - 0x2cc]
push eax
call sub.KERNEL32.DLL_GetVersionExA
cmp dword [ebp - 0x2bc], 1
jne 0x4032be
push ebx
call fcn.004030b8
pop ecx
test eax, eax
jne 0x4032b5
push ebx
call fcn.004030f0
pop ecx
test eax, eax
je 0x4032db
push ebx
call fcn.00403224
pop ecx
jmp 0x4032db
push ebx
call fcn.00403204
pop ecx
test eax, eax
jne 0x4032d4
push ebx
call fcn.004031a8
pop ecx
test eax, eax
je 0x4032db
push ebx
call fcn.00403224
pop ecx
mov dword [ebp - 0x238], 0x128
call sub.KERNEL32.DLL_GetCurrentProcessId
mov edi, eax
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp - 0x238]
push eax
push ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x403347
jmp 0x403336
push str.explorer.exe
lea edx, [ebp - 0x214]
push edx
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x403328
mov ecx, dword [ebp - 0x230]
mov dword [ebp - 4], ecx
cmp edi, dword [ebp - 0x230]
jne 0x403336
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x238]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x40330a
cmp esi, dword [ebp - 4]
je 0x40336c
cmp dword [ebp - 4], 0
je 0x40336c
push esi
push 1
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
jmp 0x40344a
xor edx, edx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0xc], edx
push 0x105
push ecx
call sub.KERNEL32.DLL_GetWindowsDirectoryA
push 0x44eb11
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.DLL_lstrcatA
push str.EXPLORER.EXE
lea edx, [ebp - 0x110]
push edx
call sub.KERNEL32.DLL_lstrcatA
push esi
push 0
push 0x410
call sub.KERNEL32.DLL_OpenProcess
mov edi, eax
test edi, edi
je 0x40344a
lea eax, [ebp - 8]
lea edx, [ebp - 0x12cc]
push eax
push 0x1000
push edx
push edi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x403426
xor esi, esi
lea ebx, [ebp - 0x12cc]

Function at 0x4034a4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
je 0x4034b5
jne 0x4034b5
jmp fcn.00403439
cmp esi, 8
jb 0x4034f3
xor ebx, ebx
jmp 0x4034ea
mov eax, dword [ebp + 0x10]
mov edx, ebx
add edx, edi
push eax
push edx
call fcn.004034f8
add esp, 8
movsx ecx, word [ebp + 0xc]
mov eax, 0x64
sub eax, ecx
imul esi
mov ecx, 0x64
xor edx, edx
div ecx
add ebx, eax
add ebx, 8
mov eax, esi
sub eax, 8
cmp ebx, eax
jbe 0x4034be
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4034f8
Capabilities:
Check for software breakpoints
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401740
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x4035ab
mov eax, fcn.004014e4
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x4035ab
mov eax, fcn.00403754
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x4035ab
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, ebx
mov edi, 0x20
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x4035ab
add ebx, 0x9e3779b9
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
add edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
add ecx, eax
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403573
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4035c8
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401740
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x40367e
mov eax, fcn.004014e4
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x40367e
mov eax, fcn.004035c8
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x40367e
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x40367e
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403646
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4037a4
Capabilities:
Check for software breakpoints
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, fcn.00401740
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
mov al, byte [esi]
cmp al, 0xcc
je 0x40385a
mov eax, fcn.004014e4
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
mov al, byte [esi]
cmp al, 0xcc
je 0x40385a
mov eax, fcn.00403754
mov dword [ebp - 0xc], eax
mov esi, dword [ebp - 0xc]
mov al, byte [esi]
cmp al, 0xcc
je 0x40385a
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ebx, 0xc6ef3720
mov edi, 0x20
mov ecx, dword [edx]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x40385a
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x18]
lea esi, [ebx + ecx]
xor eax, esi
mov esi, ecx
shr esi, 5
add esi, dword [ebp - 0x1c]
xor eax, esi
sub edx, eax
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x10]
lea esi, [ebx + edx]
xor eax, esi
mov esi, edx
shr esi, 5
add esi, dword [ebp - 0x14]
xor eax, esi
sub ecx, eax
sub ebx, 0x9e3779b9
mov eax, edi
add edi, 0xffffffff
test eax, eax
jg 0x403822
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404efc
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x409048
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4090aa
call fcn.00408ff8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004055e8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004055e8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x409108
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x45094c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4091e2
cmp dword [0x450948], 0
jne 0x4091e2
cmp dword [0x450b3c], 0
je 0x40919c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00408ef8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409182
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00408ef8
add esp, 8
mov ebx, eax
test eax, eax
jne 0x409182
lea ebx, [ebp - 0x84]
jmp 0x409183
inc ebx
call fcn.004090c4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x40921d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x450950
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004055e8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x450953
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x40921d
cmp dword [0x450948], 0
je 0x4091fc
cmp dword [0x450948], 0xffffffff
je 0x40921d
push esi
call dword [0x450948]
pop ecx
mov eax, dword [0x45094c]
test eax, eax
je 0x40921d
cmp dword [0x45094c], 0xffffffff
je 0x40921d
cmp byte [eax], 0
je 0x40921d
push esi
push eax
call fcn.00409048
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409a08
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4526b8], 0
jne 0x409a89
cmp dword [0x4526d8], 0
jne 0x409a38
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4526d8], eax
test eax, eax
jne 0x409a38
push str.GetEnvironmentStrings_failed
call fcn.00409234
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4526d8]
jmp 0x409a4c
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004055e8
pop ecx
mov edi, eax
test eax, eax
jne 0x409a44
lea edi, [ebp + 1]
push edi
call fcn.004044b4
pop ecx
mov ebx, eax
mov dword [0x4526bc], ebx
test ebx, ebx
jne 0x409a76
xor eax, eax
jmp 0x409b4c
push edi
mov edx, dword [0x4526d8]
push edx
push ebx
call fcn.00405498
add esp, 0xc
jmp 0x409aa9
xor esi, esi
mov ebx, dword [0x4526b8]
jmp 0x409aa3
push eax
call fcn.004055e8
pop ecx
test eax, eax
jne 0x409a9f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x409a93
lea ebx, [esi + 4]
push 4
mov dword [0x4526c0], ebx
inc ebx
push ebx
call fcn.00404018
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x409acc
xor eax, eax
jmp 0x409b4c
cmp dword [0x4526b8], 0
jne 0x409afd
xor esi, esi
mov ebx, dword [0x4526bc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x409aee
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004055e8
pop ecx
mov edi, eax
test eax, eax
jne 0x409ae4
jmp 0x409b2e
xor esi, esi
mov ebx, dword [0x4526b8]
mov eax, dword [esp]
mov edi, eax
jmp 0x409b28
push eax
call fcn.004055e8
pop ecx
test eax, eax
je 0x409b1d
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x409b21
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x409b0c
mov eax, dword [0x4526b8]
test eax, eax
je 0x409b3e
push eax
call fcn.004044c4
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4526b8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40be00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x4513d0
sub eax, eax
test esi, esi
je 0x40bee0
sub eax, 1
test ecx, ecx
je 0x40bede
test esi, 3
je 0x40be3e
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40be23
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x40bec5
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40be4c
mov ecx, edx
test ecx, ecx
je 0x40bede
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40becb
not eax
mov dword [esp + 0x1c], eax
popal
ret
Function at 0x40c1c4
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0040c247
jae 0x40c1d2
xor ecx, ecx
call fcn.0040c247
jae 0x40c201
xor eax, eax
call fcn.0040c247
jae 0x40c211
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0040c247
adc al, al
jae 0x40c1f3
jne 0x40c23d
stosb byte es:[edi], al
jmp 0x40c1d5
call fcn.0040c253
sub ecx, ebx
jne 0x40c21a
call fcn.0040c251
jmp 0x40c239
lodsb al, byte [esi]
shr eax, 1
je 0x40c263
adc ecx, ecx
jmp 0x40c236
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0040c251
cmp eax, 0x7d00
jae 0x40c236
cmp ah, 5
jae 0x40c237
cmp eax, 0x7f
ja 0x40c238
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40c1d5
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x40cb00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
lea edx, [ebp - 0xc]
push eax
push 0
push 0
push 0
push edx
lea ecx, [ebp - 0x114]
push ecx
push esi
push edi
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x40cb9f
mov dword [ebp - 0xc], 0xc8
push str.HIDVid_1199Pid_8282
call fcn.004055e8
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
push 0x45182c
call fcn.00405754
add esp, 0xc
test eax, eax
jne 0x40cb9f
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0xc]
jne 0x40cb9c
mov ecx, dword [ebp + 0x10]
mov esi, 0x451858
mov edi, ecx
lea edx, [ebp - 0x110]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004055ac
add esp, 8
mov eax, 1
jmp 0x40cbaa
inc dword [ebp - 0x10]
inc esi
test ebx, ebx
je 0x40cb1f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x527040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b8358
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.00521f40
test eax, eax
jne 0x5270ac
push ebp
push 0x4e9100
mov ecx, edi
call fcn.005262c0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.00521970
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00514e10
push ebx
mov dword [esp + 0x4c], ebp
call fcn.005220f0
add esp, 4
test eax, eax
je 0x52714f
add esi, 0x18
push esi
call fcn.00515810
add esi, eax
push esi
call fcn.00515810
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x527452
jmp dword [ecx*4 + 0x44f890]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.00526400
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.00515810
add esi, eax
push esi
call fcn.00515810
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x5271a0
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.004bc6c0]
test eax, eax
je 0x5271a0
mov eax, 1
jmp 0x5271a2
xor eax, eax
cmp ebx, 8
jge 0x527407
cmp ebx, 7
ja 0x527452
jmp dword [ebx*4 + 0x44f8a0]
test eax, eax
jne 0x52741a
mov ecx, dword [esp + 0x10]
push eax
push 0x4e90ec
call fcn.005262c0
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.00527960
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x4d0ec0
call fcn.00515010
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x52ff40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5017c0]
xor edx, edx
cmp eax, edx
jne 0x52ff66
xor eax, eax
mov byte [eax + 0x5016c0], al
inc eax
cmp eax, 0x100
jl 0x52ff4e
mov dword [0x5017c0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5016c0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x52fff7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x52ffca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x52ff98
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x530070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5300c3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5300aa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408d2d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x413b9b
call fcn.0040d2ec
sub esp, 0x14
push esi
xor eax, eax
mov dword [ebp - 0x10], eax
mov ecx, dword [0x416014]
push edi
mov edi, dword [ebp + 8]
mov dword [edi], ecx
push 0xff
mov esi, 0x4176c8
push esi
push 0x4013d0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov byte [ebp - 0x20], 0x47
mov byte [ebp - 0x1f], 0x6c
mov byte [ebp - 0x1e], 0x6f
mov byte [ebp - 0x1d], 0x62
mov byte [ebp - 0x1c], 0x61
mov byte [ebp - 0x1b], 0x6c
mov byte [ebp - 0x1a], 0x5c
mov byte [ebp - 0x19], 0x25
mov byte [ebp - 0x18], 0x53
mov byte [ebp - 0x17], al
call dword [fcn.0040125c]
push esi
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.004076b0
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4871c7
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x4871e4
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4871d5
add dl, dl
jne 0x4871ef
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x48723b
xor eax, eax
add dl, dl
jne 0x4871fc
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x4872d8
add dl, dl
jne 0x48720b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x487216
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x487221
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x48722c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x487236
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x4871db
mov eax, 1
add dl, dl
jne 0x487249
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x487254
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x487240
sub eax, 2
jne 0x487283
mov ecx, 1
add dl, dl
jne 0x487269
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x487274
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x487260
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4871db
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x48729a
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x4872a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x487291
cmp eax, 0x7d00
jae 0x4872c8
cmp eax, 0x500
jb 0x4872c3
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4871db
cmp eax, 0x7f
ja 0x4872cb
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4871db
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x4872f4
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4871db
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret
Function at 0x401b77
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00401d27
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x401c75
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401c18
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401c5b
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401c2f
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401c4a
test al, 0x40
je 0x401c41
mov ecx, dword [edi + 0x20]
jmp 0x401c48
test al, 0x80
je 0x401c5b
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401c5b
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x401be7
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret