joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f50f8
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x73cb90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebp - 0x108]
push eax
xor edi, edi
push edi
push 0x425058
push 0x408920
mov dword [ebp - 0x110], ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x5f5140
mov eax, 0x88760387
jmp 0x5f523b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x114], eax
jne 0x5f5174
mov eax, 0x8876038f
jmp 0x5f523a
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push ebx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5f519c
mov dword [ebp - 0x10c], 0x8876038f
jmp 0x5f51e8
lea ecx, [ebp - 0x138]
call fcn.005f4df5
lea ecx, [ebp - 0x138]
call fcn.005f4ea6
test eax, eax
jne 0x5f51c2
mov dword [ebp - 0x10c], 0x8007000e
jmp 0x5f51da
push dword [ebp - 0x114]
lea ecx, [ebp - 0x138]
push esi
call fcn.005f4f60
mov dword [ebp - 0x10c], eax
push esi
call ebx
lea ecx, [ebp - 0x138]
call fcn.005f4e19
push dword [ebp - 0x114]
call ebx
cmp dword [ebp - 0x10c], edi
jge 0x5f5207
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x5f5234
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x5f5234
mov dword [ebp - 0x10c], 0x8876038f
mov eax, dword [ebp - 0x10c]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00666f65
leave
ret 4
Function at 0x5f5250
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x73cb90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
push edi
push 0x425060
push 0x42505c
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x5f5298
mov eax, 0x88760387
jmp 0x5f5393
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x218], eax
jne 0x5f52cc
mov eax, 0x8876038f
jmp 0x5f5392
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push ebx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5f52f4
mov dword [ebp - 0x210], 0x8876038f
jmp 0x5f5340
lea ecx, [ebp - 0x23c]
call fcn.005f4df5
lea ecx, [ebp - 0x23c]
call fcn.005f4ea6
test eax, eax
jne 0x5f531a
mov dword [ebp - 0x210], 0x8007000e
jmp 0x5f5332
push dword [ebp - 0x218]
lea ecx, [ebp - 0x23c]
push esi
call fcn.005f4f60
mov dword [ebp - 0x210], eax
push esi
call ebx
lea ecx, [ebp - 0x23c]
call fcn.005f4e19
push dword [ebp - 0x218]
call ebx
cmp dword [ebp - 0x210], edi
jge 0x5f535f
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x5f538c
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x5f538c
mov dword [ebp - 0x210], 0x8876038f
mov eax, dword [ebp - 0x210]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00666f65
leave
ret 4

Function at 0x5f72a8
Capabilities:
Get memory capacity

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push 0x42526c
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [ebp + 8]
xor edi, edi
cmp eax, edi
mov dword [ebp - 8], eax
je 0x5f72f7
push ebx
push 0x425254
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, edi
je 0x5f72e9
push esi
call ebx
mov dword [ebp - 4], eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, edi
pop ebx
jne 0x5f734a
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x24], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 4
Function at 0x5f7bb5
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.005f4457
mov ecx, dword [esi]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0xc]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 8], ecx
jne 0x5f7be7
mov eax, 0x80004005
jmp 0x5f7cfd
mov ecx, eax
mov dword [ebp + 8], ebx
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x5f7bef
push ebx
sub ecx, esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [ebp + 8]
push edx
inc ecx
push ecx
push eax
push dword [edi + 0x30]
call esi
test eax, eax
jne 0x5f7c19
mov eax, 0x8007000e
jmp 0x5f7cfd
mov eax, dword [ebp - 4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x5f7c1f
push ebx
sub eax, ecx
lea ecx, [ebp + 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push dword [edi + 0x30]
call esi
test eax, eax
je 0x5f7c0f
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x5f7cde
cmp dword [ecx], ebx
mov dword [ebp - 4], ebx
jbe 0x5f7cde
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
cmp dword [eax], ebx
mov dword [ebp - 0xc], eax
je 0x5f7c82
push ebx
lea eax, [ebp + 8]
push eax
push 1
push 0x425040
push dword [edi + 0x30]
call esi
test eax, eax
je 0x5f7c0f
push ebx
lea eax, [ebp + 8]
push eax
push 4
push dword [ebp - 0xc]
jmp 0x5f7cc0
cmp dword [eax + 4], ebx
je 0x5f7cd0
push ebx
lea eax, [ebp + 8]
push eax
push 1
push 0x425041
push dword [edi + 0x30]
call esi
test eax, eax
je 0x5f7c0f
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 0xc], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x5f7cae
sub eax, dword [ebp - 0xc]
push ebx
lea edx, [ebp + 8]
push edx
inc eax
push eax
push ecx
push dword [edi + 0x30]
call esi
test eax, eax
je 0x5f7c0f
mov ecx, dword [ebp - 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ecx]
jb 0x5f7c51
push ebx
lea eax, [ebp + 8]
push eax
push 1
push 0x425042
push dword [edi + 0x30]
call esi
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
add eax, 0x8007000e
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5f7f7c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x10
lea eax, [edi + 8]
mov esi, ecx
push eax
push dword [esi + 0x30]
mov dword [ebp - 0xc], esi
call ebx
test eax, eax
jne 0x5f7fbb
mov eax, 0x8007000e
jmp 0x5f816a
mov ecx, dword [edi + 4]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 0x10], edx
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5f7fc6
sub eax, dword [ebp - 0x10]
push 0
lea edx, [ebp - 4]
push edx
inc eax
push eax
push ecx
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5f7fb1
mov edi, dword [edi + 0x1c]
test edi, edi
je 0x5f802f
and dword [ebp - 8], 0
cmp dword [edi], 0
jbe 0x5f802f
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x425040
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5f7fb1
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
lea eax, [eax + ecx*4]
push dword [eax]
mov ecx, esi
call fcn.005f7bb5
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x5f816a
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edi]
jb 0x5f7ff2
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x425042
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5f7fb1
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [eax + 0x24], ecx
jne 0x5f8071
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0x425043
push dword [esi + 0x30]
call ebx
test eax, eax
jne 0x5f8167
jmp 0x5f7fb1
mov eax, dword [eax + 0x20]
cmp eax, ecx
mov dword [ebp - 0x10], eax
je 0x5f814d
cmp dword [eax], ecx
mov dword [ebp + 8], ecx
jbe 0x5f814d
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx*4]
push 4
lea esi, [eax + 4]
pop ecx
mov dword [ebp - 8], eax
xor eax, eax
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], esi
mov edi, 0x42c0bc
push eax
repe cmpsd dword [esi], dword es:[edi]
mov esi, dword [ebp - 0xc]
push 1
je 0x5f80fc
push 0x425040
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5f7fb1
mov eax, dword [ebp - 8]
mov edi, dword [eax]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5f80d0
push 0
sub eax, ecx
lea ecx, [ebp - 4]
push ecx
inc eax
push eax
push edi
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5f7fb1
push 0
lea eax, [ebp - 4]
push eax
push 0x10
push dword [ebp - 0x18]
jmp 0x5f812a
push 0x425041
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5f7fb1
mov eax, dword [ebp - 8]
mov edi, dword [eax]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5f8118
sub eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
inc eax
push eax
push edi
push dword [esi + 0x30]
call ebx
test eax, eax
je 0x5f7fb1
inc dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax]
jb 0x5f808a
mov esi, dword [ebp - 0xc]
xor ecx, ecx
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0x425042
push dword [esi + 0x30]
call ebx
test eax, eax
mov eax, 0x8007000e
je 0x5f816a
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x5fcad0
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x5fcaf5
mov eax, dword [esi + 0x1a8]
mov ecx, dword [eax]
push esi
call ecx
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov edx, dword [esi + 0x1a8]
cmp dword [edx + 8], 0
je 0x5fcb1d
mov eax, dword [esi]
mov dword [eax + 0x14], 0x30
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
mov eax, dword [esi + 0x1a8]
cmp dword [eax + 8], 0
jne 0x5fcb01
xor ecx, ecx
cmp dword [esi + 0x44], ecx
mov eax, 1
setne cl
add ecx, 0xcd
mov dword [esi + 0x14], ecx
ret

Function at 0x5fcbe0
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x5fcc16
push esi
call fcn.006011e0
cmp dword [esi + 0x40], 0
je 0x5fcc0f
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
pop ebp
ret 4
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x5fcc98
mov eax, dword [esi + 0x1b8]
cmp dword [eax + 0x10], 0
je 0x5fcc82
lea esp, [esp]
mov eax, dword [esi + 8]
test eax, eax
je 0x5fcc3c
mov ecx, dword [eax]
push esi
call ecx
mov edx, dword [esi + 0x1b8]
mov eax, dword [edx]
push esi
call eax
test eax, eax
je 0x5fcc7b
cmp eax, 2
je 0x5fcc82
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x5fcc30
cmp eax, 3
je 0x5fcc61
cmp eax, 1
jne 0x5fcc30
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x5fcc30
mov edx, dword [esi + 0x144]
add dword [eax + 8], edx
jmp 0x5fcc30
xor eax, eax
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.005fcad0
pop esi
pop ebp
ret 4
cmp eax, 0xcc
je 0x5fccb7
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
call fcn.005fcad0
pop esi
pop ebp
ret 4
Function at 0x6024c0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x73cb90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x426f08
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [ebp - 0x108]
push 0x426f00
push ecx
mov byte [ebp - 5], 0
call sub.msvcrt.dll__tempnam
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x60254a
push 0
push 0x4000100
push 1
push 0
push 0
push 0x10000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x60254a
mov dword [esi], 0x602390
mov dword [esi + 4], 0x602410
mov dword [esi + 8], 0x602490
jmp 0x602592
mov edx, dword [edi]
mov dword [edx + 0x14], 0x3f
mov eax, dword [edi]
mov edx, 0x425040
mov esi, 0x50
add eax, 0x18
lea ecx, [esi + 0x7fffffae]
test ecx, ecx
je 0x602581
mov cl, byte [edx]
test cl, cl
je 0x602581
mov byte [eax], cl
add eax, 1
add edx, 1
sub esi, 1
jne 0x602562
jmp 0x602585
test esi, esi
jne 0x602588
sub eax, 1
mov byte [eax], 0
mov edx, dword [edi]
mov eax, dword [edx]
push edi
call eax
test ebx, ebx
je 0x60259f
push ebx
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00666f65
mov esp, ebp
pop ebp
ret 0xc

Function at 0x60c530
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ecx + 0xf4]
push ebx
mov ebx, dword [ecx + 0x1c]
push esi
push edi
mov esi, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x1c]
add edi, edi
add edi, edi
add edi, edi
push edx
lea eax, [edi + edi]
push esi
mov dword [ebp - 0xc], edi
call fcn.0060c2d0
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
mov dword [ebp - 4], 0
jle 0x60c5cd
mov ebx, dword [ebp + 0xc]
sub ebx, esi
mov edx, esi
mov dword [ebp - 8], esi
mov dword [ebp + 0xc], ebx
lea esp, [esp]
mov ecx, dword [ebx + edx]
mov eax, dword [edx]
xor esi, esi
test edi, edi
jbe 0x60c5b6
jmp 0x60c590
movzx edx, byte [eax + 1]
movzx ebx, byte [eax]
add edx, esi
add ebx, edx
sar ebx, 1
mov byte [ecx], bl
add ecx, 1
xor esi, 1
add eax, 2
sub edi, 1
jne 0x60c590
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add eax, 1
add edx, 4
cmp eax, dword [ecx + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
jl 0x60c580
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x60c6a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ecx + 0xf4]
push ebx
mov ebx, dword [ecx + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x1c]
add edi, edi
push edx
mov edx, dword [ebp + 0xc]
add edi, edi
add edi, edi
lea eax, [edi + edi]
push edx
mov dword [ebp - 0x10], edi
call fcn.0060c2d0
xor eax, eax
cmp dword [esi + 0xc], eax
mov dword [ebp - 0xc], eax
jle 0x60c74c
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
test edi, edi
mov ecx, dword [ebp + 0x10]
mov esi, dword [ecx + eax*4]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp + 0xc], 1
jbe 0x60c735
mov dword [ebp - 4], edi
lea esp, [esp]
movzx edi, byte [eax + 1]
movzx edx, byte [ecx + 1]
movzx ebx, byte [eax]
add edx, edi
movzx edi, byte [ecx]
add edi, dword [ebp + 0xc]
xor dword [ebp + 0xc], 3
add edi, edx
add ebx, edi
sar ebx, 2
mov byte [esi], bl
add esi, 1
add eax, 2
add ecx, 2
sub dword [ebp - 4], 1
jne 0x60c700
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add eax, 1
add edx, 8
cmp eax, dword [ecx + 0xc]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
jl 0x60c6e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x654c8f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x654ca2
xor eax, eax
jmp 0x654d7a
mov eax, dword [ebp + 0x10]
cmp eax, 8
push ebx
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x654d5b
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4295f8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4295f8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4295f8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4295f8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4295f8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4295f8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4295f8]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4295f8]
inc edx
sub eax, 8
dec edi
jne 0x654cc0
pop edi
test eax, eax
je 0x654d74
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x4295f8]
inc edx
dec eax
jne 0x654d5f
mov eax, esi
pop esi
not eax
pop ebx
pop ebp
ret 0xc
Function at 0x6557a6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
jmp 0x6557bb
mov edi, dword [ebp - 0xc]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp - 8], eax
jne 0x6557da
test ecx, ecx
jne 0x6557e8
test edx, edx
jne 0x6557e8
mov dword [ebp - 8], edi
jmp 0x655852
cmp eax, 0xffffffff
jne 0x6557e8
mov dword [ebp - 8], 0xfffffffe
jmp 0x655852
mov eax, dword [esi + 0x24]
lea eax, [edi + eax - 0x106]
cmp ecx, eax
jb 0x655852
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x655819
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x655838
add dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x6558f5
mov ebx, dword [esi + 0x6c]
add ebx, dword [esi + 0x64]
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 8]
add ebx, dword [esi + 0x30]
cmp eax, ecx
mov dword [ebp - 4], eax
jbe 0x655877
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x655881
xor eax, eax
jmp 0x6558b6
sub eax, dword [ebp - 4]
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
cmp dword [eax + 0x18], 0
jne 0x6558a0
push dword [ebp - 4]
push dword [edi]
push dword [edi + 0x30]
call fcn.00656b38
mov dword [edi + 0x30], eax
push dword [ebp - 4]
push dword [edi]
push ebx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x6c], eax
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x6558e1
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x6558f5
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x6557b8
pop edi
pop ebx
leave
ret

Function at 0x667a10
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x667a23
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x667a1f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x667a50
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x667a8f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x667a85
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x667a91
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x667a75
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x66822c
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
and dword [ebx], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push edi
push 0xfffffffffffffffe
push 0xfffffffffffffffe
mov edi, 0x73ceb4
push edi
call esi
cmp eax, 0xfffffffe
jne 0x6682a9
mov ebx, 0x756bb4
jmp 0x668261
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 1
push ebx
call esi
cmp eax, 1
je 0x668259
push 0xfffffffffffffffe
push 0xfffffffffffffffe
push edi
call esi
cmp eax, 0xfffffffe
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
jne 0x668294
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x668294
push eax
push edi
call esi
push 0
push ebx
call esi
cmp dword [ebp - 4], 0xffffffff
jne 0x6682a6
mov eax, 0x8007000e
jmp 0x6682f8
mov ebx, dword [ebp + 8]
call fcn.00668213
test eax, eax
je 0x6682c0
inc dword [eax + 0x11c]
mov dword [ebx], 1
jmp 0x6682f6
mov esi, 0x120
push esi
call sub.msvcrt.dll_malloc
mov edi, eax
test edi, edi
pop ecx
je 0x66829f
push esi
push 0
push edi
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
inc eax
mov dword [edi + 0x11c], eax
push edi
mov dword [ebx], eax
push dword [0x73ceb4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4