joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d5de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x45d600
cmp dword [edi + 0x3c], 0
jne 0x45d600
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0047a691
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.Kernel32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.Kernel32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0045d63f
pop edi
pop esi
pop ebx
ret 8

Function at 0x45ed7b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45edb3
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.0046271d
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004626f5
jmp 0x45edbf
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x460b7d
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 0x460bbf
call fcn.0047a691
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.Kernel32.dll_FindResourceA]
cmp eax, edi
je 0x460bbf
push eax
push esi
call dword [sym.imp.Kernel32.dll_LoadResource]
cmp eax, edi
jne 0x460bb6
xor eax, eax
jmp 0x460bc7
push eax
call dword [sym.imp.Kernel32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00460bcd
pop edi
pop esi
pop ebx
ret 4
Function at 0x47bb0e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0047a691
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.Kernel32.dll_FindResourceA]
test eax, eax
je 0x47bb4b
push eax
push esi
call dword [sym.imp.Kernel32.dll_LoadResource]
test eax, eax
je 0x47bb4b
push eax
call dword [sym.imp.Kernel32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x47bb4f
xor eax, eax
jmp 0x47bbcd
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00462947
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x47bb87
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x47bb71
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0047bcd2
push ebx
mov edi, eax
call fcn.00462970
test edi, edi
pop ecx
je 0x47bbc9
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0047ba24
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0047bbd2
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x47e29d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x47e31b
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x401000
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
or byte [ebp + 0x56002444], cl
lea ecx, [esp + 0xc]

Function at 0x401060
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebp
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
xor ebp, ebp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x118]
lea eax, [esp + 8]
push eax
push 0xf003f
push ebp
push ecx
push 0x80000002
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne fcn.00401120
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
adc al, 0x52
mov edx, dword [esp + 0x120]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x10]
push ecx
push ebp
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401115
push ebx
push esi
mov esi, dword [esp + 0x128]
lea eax, [esp + 0x1c]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401105
test cl, cl
je 0x401101
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
invalid
mov cl, dl
cmp dl, bl
jne 0x401105
add eax, 2
add esi, 2
test cl, cl
jne 0x4010dd
invalid
xor eax, eax
jmp 0x40110a
sbb eax, eax
sbb eax, 0xffffffff
pop esi
pop ebx
test eax, eax
jne 0x401115

Function at 0x401130
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
or byte [ebp + 0x56002444], cl
lea ecx, [esp + 0xc]
xor esi, esi
push eax
push ecx
push esi
push 0xf003f
push esi
push esi
push esi
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401189
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0x40
push eax
push 1

Function at 0x401190
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x11c]
push str.FILE
push esi
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
add byte [ebx + 0x15ff55e8], cl
and byte [eax + 0x40], ah
add byte [ecx - 0x72f3dbbc], cl
inc esp
and al, 0x18
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x4011e9
mov cl, byte [eax + str.c:windows_system32]
mov byte [esp + eax + 0x18], cl
inc eax
test cl, cl
jne 0x4011da
int1
push edi
lea edi, [esp + 0x1c]
and al, 0x1c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov cx, word [0x40705c]
Function at 0x402ed1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407698
cmp edx, dword [eax]
je 0x402ef3
add eax, 8
inc ecx
cmp eax, 0x407728
jl 0x402ee4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407698]
jne 0x403021
mov eax, dword [0x409c18]
cmp eax, 1
je 0x402ffb
test eax, eax
jne 0x402f24
cmp dword [0x407364], 1
je 0x402ffb
cmp edx, 0xfc
je 0x403021
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402f5b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403210
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x402f9e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403210
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40647c
push edi
call fcn.004052e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403800
lea eax, [ebp - 0xa0]
push 0x40645c
push eax
call fcn.00403800
push dword [esi + 0x40769c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403800
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405254
add esp, 0x2c
pop edi
jmp 0x403021
lea eax, [ebp + 8]
lea esi, [esi + 0x40769c]
push 0
push eax
push dword [esi]
call fcn.00403210
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x507a4b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0x14]
and dword [ebp - 4], 0
and dword [ebp + 0x14], 0
cmp edx, dword [ebp + 0x18]
push edi
mov edi, dword [ecx + 0x34]
mov dword [ebp - 8], edx
jge 0x507ac6
mov eax, dword [ebp + 0x1c]
lea ecx, [eax + eax]
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov esi, edi
imul esi, eax
mov eax, dword [ebp + 8]
mov ecx, edi
imul ecx, edx
add ecx, dword [ebp + 0xc]
add esi, esi
sub eax, dword [ebp + 0xc]
mov dword [ebp + 0x1c], eax
inc dword [ebp + 0x14]
test edi, edi
jle 0x507ab1
mov ebx, ecx
mov dword [ebp + 0xc], edi
mov eax, dword [ebp + 0x1c]
movzx edx, byte [eax + ebx]
movzx eax, byte [ebx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add dword [ebp - 4], eax
inc ebx
dec dword [ebp + 0xc]
jne 0x507a97
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
add ecx, esi
inc dword [ebp + 0x14]
cmp eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
jl 0x507a8b
pop esi
pop ebx
mov eax, dword [ebp - 4]
cdq
idiv dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
pop edi
mov dword [ecx], eax
leave
ret 0x18

Function at 0x50cb65
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movq mm7, qword [0x5253a8]
mov eax, ecx
sar eax, 3
and ecx, 7
movq mm0, qword [edx]
pxor mm0, mm7
pxor mm1, mm1
pxor mm2, mm2
punpcklbw mm1, mm0
punpckhbw mm2, mm0
psraw mm1, 9
psraw mm2, 9
packsswb mm1, mm2
pxor mm1, mm7
movq qword [edx], mm1
add edx, 8
sub eax, 1
jne 0x50cb74
test ecx, ecx
je 0x50cbbc
movzx eax, byte [edx]
sub eax, 0x80
sar eax, 1
add eax, 0x80
mov byte [edx], al
add edx, 1
sub ecx, 1
jne 0x50cba3
ret

Function at 0x50cbbf
Capabilities:
Encode data using xor

Disassembly:
movq mm7, qword [0x5253a8]
mov eax, ecx
sar eax, 3
and ecx, 7
movq mm0, qword [edx]
pxor mm0, mm7
paddsb mm0, mm0
pxor mm0, mm7
movq qword [edx], mm0
add edx, 8
sub eax, 1
jne 0x50cbce
test ecx, ecx
je 0x50cc0e
movzx eax, byte [edx]
sub eax, 0x80
add eax, eax
add eax, 0x80
cmp eax, 0xff
jle 0x50cc04
mov eax, 0xff
mov byte [edx], al
add edx, 1
sub ecx, 1
jne 0x50cbe9
ret
Function at 0x51db51
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x2170]
mov ebx, dword [eax + 4]
shl ebx, 3
mov dword [esi + 0x21d0], ebx
jne 0x51db76
and dword [esi + 0x2210], 0
jmp 0x51dc7a
cmp dword [esi + 0x588], 0
mov eax, dword [esi + 0x21fc]
push edi
jne 0x51dbe2
mov edx, dword [esi + 0x6138]
test edx, edx
je 0x51dbea
xor ecx, ecx
mov edi, edx
mov edx, dword [esi + 0x21c8]
mov eax, 0x3e8
inc ecx
dec edi
cmp edx, eax
jb 0x51dbb5
add ecx, ecx
lea eax, [ecx + 0xa]
imul eax, eax, 0x64
test edi, edi
jne 0x51dba0
cmp edx, eax
jae 0x51dbb7
mov eax, edx
test eax, eax
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
jge 0x51dbc9
fadd dword [0x4042fc]
fmul dword [0x4058d0]
fmul qword [esi + 0x2188]
fmul qword [0x402d40]
call fcn.005d02c0
jmp 0x51dbea
mov eax, dword [esi + 0x217c]
add eax, ebx
mov ecx, dword [esi + 0x217c]
mov edx, dword [esi + 0x21d4]
sub edx, ecx
sub edx, ebx
js 0x51dc40
cmp dword [esi + 0x98], 1
je 0x51dc0c
lea edi, [ecx + ebx]
cmp edi, eax
jg 0x51dc40
add dword [esi + 0x21d0], ecx
mov eax, dword [esi + 0x21d0]
sub dword [esi + 0x21d4], eax
mov eax, dword [esi + 0x21d4]
and dword [esi + 0x2210], 0
lea ecx, [esi + 0x21d8]
cmp eax, dword [ecx]
jge 0x51dc37
mov dword [ecx], eax
and dword [esi + 0x6138], 0
jmp 0x51dc79
cmp dword [esi + 0x98], 0
jne 0x51dc5b
test edx, edx
jl 0x51dc5b
add ecx, ebx
cmp ecx, eax
jle 0x51dc5b
inc dword [esi + 0x6138]
jmp 0x51dc62
and dword [esi + 0x6138], 0
xor eax, eax
inc eax
cmp dword [esi + 0x3b4c], eax
jne 0x51dc73
push eax
call fcn.005d13f2
mov dword [esi + 0x2210], eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x520500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
fldz
and dword [ebp - 4], 0
test eax, eax
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
jle 0x52054f
push ebx
push esi
lea ebx, [edi - 4]
mov dword [ebp + 8], eax
push 4
pop esi
cmp ebx, esi
jle 0x52053f
movzx edx, byte [esi + ecx + 1]
movzx eax, byte [esi + ecx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add dword [ebp - 4], eax
inc esi
cmp esi, ebx
jl 0x520527
fiadd dword [ebp - 4]
and dword [ebp - 4], 0
add ecx, edi
dec dword [ebp + 8]
jne 0x520520
pop esi
pop ebx
add edi, 0xfffffff8
imul edi, dword [ebp + 0x10]
mov dword [ebp + 0x10], edi
pop edi
fild dword [ebp + 0x10]
fdivr st(1)
fstp st(1)
leave
ret 0xc
Function at 0x520565
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
fldz
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0x10]
push edi
lea edi, [eax + ecx*4]
lea eax, [ebx - 4]
test eax, eax
jle 0x5205b7
mov dword [ebp + 8], eax
push esi
test ecx, ecx
jle 0x5205a8
mov esi, edi
mov dword [ebp + 0xc], ecx
movzx edx, byte [esi + ecx]
movzx eax, byte [esi]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add dword [ebp - 4], eax
inc esi
dec dword [ebp + 0xc]
jne 0x520591
fiadd dword [ebp - 4]
and dword [ebp - 4], 0
add edi, ecx
dec dword [ebp + 8]
jne 0x520588
pop esi
add ebx, 0xfffffff8
imul ebx, ecx
mov dword [ebp + 0xc], ebx
pop edi
pop ebx
fild dword [ebp + 0xc]
fdivr st(1)
fstp st(1)
leave
ret 0xc
Function at 0x54ccaa
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
push ebx
and eax, 3
push esi
push edi
mov edi, dword [eax*4 + 0x52cfe0]
add edi, dword [ebp + 0x24]
mov eax, dword [ebp + 0x28]
and eax, 3
mov esi, dword [eax*4 + 0x52cfe0]
add esi, dword [ebp + 0x28]
sar edi, 1
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 0x1c]
mov eax, edi
sar eax, 2
sar esi, 1
lea eax, [eax + ecx*8]
lea ebx, [ebp - 0x85]
mov ecx, esi
sar ecx, 2
and ebx, 0xffffffe0
cmp eax, 0xfffffff8
lea edx, [ecx + edx*8]
jge 0x54cd06
push 0xfffffffffffffff8
pop ecx
jmp 0x54cd16
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xb0]
shl ecx, 3
cmp eax, ecx
jle 0x54cd1b
sub ecx, eax
lea edi, [edi + ecx*4]
cmp edx, 0xfffffff8
jge 0x54cd25
push 0xfffffffffffffff8
pop eax
jmp 0x54cd35
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xb4]
shl eax, 3
cmp edx, eax
jle 0x54cd3a
sub eax, edx
lea esi, [esi + eax*4]
mov ecx, dword [ebp - 4]
push 0
push esi
push edi
push 8
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00565052
mov ecx, dword [ebp - 4]
push 0
push esi
push edi
push 8
lea esi, [ebx + 0x40]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00565052
mov ecx, dword [ebp + 0x18]
and dword [ebp + 0x28], 0
mov edi, esi
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0x24], ebx
sub dword [ebp + 0x24], ecx
sub edi, ecx
sub esi, ecx
mov dword [ebp + 0x10], 0x40
movzx edx, byte [esi + ecx]
mov eax, dword [ebp + 0x24]
movzx eax, byte [eax + ecx]
sub eax, edx
cdq
mov ebx, eax
movzx eax, byte [edi + ecx]
xor ebx, edx
sub ebx, edx
movzx edx, byte [ecx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add eax, dword [ebp + 0x28]
add eax, ebx
inc ecx
dec dword [ebp + 0x10]
mov dword [ebp + 0x28], eax
jne 0x54cd84
pop edi
pop esi
pop ebx
leave
ret 0x24

Function at 0x54daad
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x1c]
push ebx
push edi
xor edi, edi
xor ebx, ebx
sar eax, 1
inc edi
cmp dword [ebp + 0x1c], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
jle 0x54db13
push esi
mov ecx, dword [ebp + 0x18]
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + eax*4]
mov ecx, dword [ebp + 0xc]
mov eax, esi
sub eax, dword [ecx + edi*4]
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov eax, esi
cdq
mov esi, eax
xor esi, edx
sub esi, edx
mov eax, edi
cdq
idiv dword [ebp - 8]
mov edx, ecx
sar edx, 1
imul edx, eax
add edx, ecx
mov ecx, esi
sar ecx, 1
imul ecx, eax
add ecx, esi
add dword [ebp - 4], ecx
add ebx, edx
inc edi
cmp edi, dword [ebp + 0x1c]
jl 0x54daca
pop esi
mov eax, dword [ebp + 0x10]
add dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 4]
add dword [eax], ecx
pop edi
pop ebx
leave
ret 0x18
Function at 0x56047f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0x40
mov si, word [edi]
mov ax, word [edx]
mov cx, si
xor cx, ax
sar cx, 0xf
mov ebx, ecx
not ebx
and ebx, esi
and eax, ecx
or ebx, eax
mov word [edx], bx
inc edx
inc edx
inc edi
inc edi
dec dword [ebp - 4]
jne 0x560493
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5770b2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1b90]
xor ebx, ebx
sub eax, ebx
push edi
mov edi, dword [esi + 0xaf4]
je 0x5771f1
dec eax
je 0x577177
dec eax
jne 0x577251
cmp dword [esi + 0xb8], ebx
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
jbe 0x577251
jmp 0x5770f6
xor ebx, ebx
mov ecx, dword [esi + 0xf78]
mov edi, dword [ebp - 8]
push 1
call fcn.005751da
test eax, eax
je 0x57712d
xor eax, eax
cmp dword [esi + 0xbc], ebx
jbe 0x577160
or dword [edi], 1
mov ecx, dword [esi + 0xb8]
imul ecx, ecx, 0x78
add edi, ecx
inc eax
cmp eax, dword [esi + 0xbc]
jb 0x577114
jmp 0x577160
cmp dword [esi + 0xbc], 0
jbe 0x577160
mov ecx, dword [esi + 0xf78]
push 1
call fcn.005751da
mov ecx, dword [edi]
xor ecx, eax
and ecx, 1
xor dword [edi], ecx
mov eax, dword [esi + 0xb8]
imul eax, eax, 0x78
add edi, eax
inc ebx
cmp ebx, dword [esi + 0xbc]
jb 0x577136
add dword [ebp - 8], 0x78
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0xb8]
jb 0x5770f4
jmp 0x577251
cmp dword [esi + 0xbc], ebx
mov dword [ebp - 8], ebx
jbe 0x577251
jmp 0x57718a
xor ebx, ebx
mov ecx, dword [esi + 0xf78]
push 1
call fcn.005751da
test eax, eax
je 0x5771b6
xor eax, eax
cmp dword [esi + 0xb8], ebx
jbe 0x5771e1
or dword [edi], 1
add edi, 0x78
inc eax
cmp eax, dword [esi + 0xb8]
jb 0x5771a5
jmp 0x5771e1
cmp dword [esi + 0xb8], 0
jbe 0x5771e1
mov ecx, dword [esi + 0xf78]
push 1
call fcn.005751da
mov ecx, dword [edi]
xor ecx, eax
and ecx, 1
xor dword [edi], ecx
add edi, 0x78
inc ebx
cmp ebx, dword [esi + 0xb8]
jb 0x5771bf
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 0xbc]
jb 0x577188
jmp 0x577251
cmp dword [esi + 0xbc], ebx
mov dword [ebp - 8], ebx
jbe 0x577251
mov eax, dword [esi + 0xb8]
jmp 0x577206
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
jbe 0x577236
mov ebx, edi
mov ecx, dword [esi + 0xf78]
push 1
call fcn.005751da
mov ecx, dword [ebx]
xor ecx, eax
and ecx, 1
xor dword [ebx], ecx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 0x78
cmp eax, dword [esi + 0xb8]
jb 0x57720f
mov eax, dword [esi + 0xb8]
mov ecx, eax
imul ecx, ecx, 0x78
add edi, ecx
inc dword [ebp - 8]
mov ecx, dword [ebp - 8]
cmp ecx, dword [esi + 0xbc]
jb 0x577204
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5796d8
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
movq mm7, qword [0x52dce0]
mov eax, ecx
sar eax, 3
and ecx, 7
movq mm0, qword [edx]
pxor mm0, mm7
pxor mm1, mm1
pxor mm2, mm2
punpcklbw mm1, mm0
punpckhbw mm2, mm0
psraw mm1, 9
psraw mm2, 9
packsswb mm1, mm2
pxor mm1, mm7
movq qword [edx], mm1
add edx, 8
sub eax, 1
jne 0x5796e7
test ecx, ecx
je 0x57972f
movzx eax, byte [edx]
sub eax, 0x80
sar eax, 1
add eax, 0x80
mov byte [edx], al
add edx, 1
sub ecx, 1
jne 0x579716
ret

Function at 0x579732
Capabilities:
Encode data using xor

Disassembly:
movq mm7, qword [0x52dce0]
mov eax, ecx
sar eax, 3
and ecx, 7
movq mm0, qword [edx]
pxor mm0, mm7
paddsb mm0, mm0
pxor mm0, mm7
movq qword [edx], mm0
add edx, 8
sub eax, 1
jne 0x579741
test ecx, ecx
je 0x579781
movzx eax, byte [edx]
sub eax, 0x80
add eax, eax
add eax, 0x80
cmp eax, 0xff
jle 0x579777
mov eax, 0xff
mov byte [edx], al
add edx, 1
sub ecx, 1
jne 0x57975c
ret
Function at 0x5bcf15
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
inc esi
add ecx, ecx
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 8
mov cx, word [eax - 4]
mov bx, word [eax + 2]
mov dx, word [eax - 2]
movsx edi, cx
movsx ecx, bx
mov ebx, edi
imul ebx, ebx, 7
add ebx, ecx
lea ebx, [ebx + esi + 3]
sar ebx, 3
mov word [eax - 4], bx
movsx ebx, dx
movsx edx, word [eax]
mov dword [ebp - 8], ebx
imul ebx, ebx, 7
sub ebx, edi
sub ebx, esi
add ebx, edx
imul edx, edx, 7
sub edx, ecx
add edx, dword [ebp - 8]
lea ebx, [ebx + ecx + 4]
imul ecx, ecx, 7
sub ecx, esi
add edx, edi
lea edx, [edx + esi + 3]
lea ecx, [ecx + edi + 4]
sar ebx, 3
sar edx, 3
sar ecx, 3
mov word [eax - 2], bx
mov word [eax], dx
mov word [eax + 2], cx
add eax, dword [ebp - 0xc]
xor esi, 1
dec dword [ebp - 4]
jne 0x5bcf2d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5d5fae
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x5d5fdc
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x5d5fe3
cmp ebx, dword [eax + 4]
jae 0x5d5fe3
xor eax, eax
jmp 0x5d61d2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x5d5ff4
xor eax, eax
inc eax
jmp 0x5d61d1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5d600a
cmp ecx, edx
jae 0x5d614e
cmp dword [eax + 4], 0
je 0x5d6013
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x5d5ffb
cmp dword [ebp + 8], 0
je 0x5d6035
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x5d614e
cmp eax, esi
jae 0x5d614e
mov eax, dword [0x57ed20]
mov edi, ebx
and di, 0xf000
xor esi, esi
test eax, eax
jle 0x5d6059
cmp dword [esi*4 + 0x57ed28], edi
je 0x5d6152
inc esi
cmp esi, eax
jl 0x5d6047
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x40111c]
test eax, eax
je 0x5d61ce
cmp dword [ebp - 8], 0x1000000
jne 0x5d61ce
test byte [ebp - 0xc], 0xcc
je 0x5d60d7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x5d61ce
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5d61ce
cmp word [eax + 0x18], 0x10b
jne 0x5d61ce
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x5d61ce
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x5d60d7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x5d60d7
test byte [ecx + 0x27], 0x80
jne 0x5d614e
push 1
push 0x57ed68
call dword [0x4010cc]
test eax, eax
jne 0x5d5fec
mov ecx, dword [0x57ed20]
test ecx, ecx
mov edx, ecx
jle 0x5d610b
lea eax, [ecx*4 + 0x57ed24]
cmp dword [eax], edi
je 0x5d610b
dec edx
sub eax, 4
test edx, edx
jg 0x5d60ff
test edx, edx
jne 0x5d613c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x5d6118
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x5d6130
lea eax, [edx*4 + 0x57ed28]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x5d611e
cmp ecx, 0x10
jge 0x5d613c
inc ecx
mov dword [0x57ed20], ecx
push 0
push 0x57ed68
call dword [0x4010cc]
jmp 0x5d5fec
xor eax, eax
jmp 0x5d61d1
test esi, esi
jle 0x5d5fec
mov ebx, dword [0x4010cc]
push 1
push 0x57ed68
call ebx
test eax, eax
jne 0x5d5fec
cmp dword [esi*4 + 0x57ed28], edi
je 0x5d61a8
mov eax, dword [0x57ed20]
lea esi, [eax - 1]
test esi, esi
jl 0x5d6196
cmp dword [esi*4 + 0x57ed28], edi
je 0x5d6192
dec esi
jns 0x5d6186
test esi, esi
jge 0x5d61a6
cmp eax, 0x10
jge 0x5d61a1
inc eax
mov dword [0x57ed20], eax
lea esi, [eax - 1]
jmp 0x5d61a8
je 0x5d61c0
xor ecx, ecx
test esi, esi
jl 0x5d61c0
lea eax, [ecx*4 + 0x57ed28]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x5d61ae
push 0
push 0x57ed68
call ebx
jmp 0x5d5fec
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret