joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498650
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ebx, ecx
movzx esi, di
shr edi, 0x10
call fcn.00478990
mov eax, dword [eax + 0x50]
mov dword [ebp - 4], eax
call fcn.00478990
mov ecx, dword [ebp - 4]
mov edx, dword [eax + 0xd4]
movzx eax, dl
mov dword [ebp - 0xc], eax
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x4986ba
mov eax, ecx
shr eax, 8
movzx eax, al
cmp esi, eax
jne 0x4986b7
movzx eax, cl
cmp edi, eax
jne 0x4986b7
mov ecx, ebx
call fcn.00489050
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
test edx, edx
je 0x498711
cmp esi, eax
jne 0x498711
cmp edi, dword [ebp - 0xc]
jne 0x498711
mov ecx, dword [ebx + 0x1110]
test ecx, ecx
je 0x498711
push 0
call fcn.00439cb0
mov ecx, dword [ebx + 0x1110]
push 1
push 1
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebx + 0x1110]
call fcn.00423fd0
push eax
call fcn.004a39f0
mov ecx, dword [ebx + 0x1110]
add esp, 4
call fcn.004a3bf0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
shl esi, 8
lea eax, [ebp - 0x10]
or esi, edi
push esi
push eax
call fcn.004787a0
mov ecx, eax
call fcn.0048a500
mov eax, dword [ebp - 0x10]
or edi, 0xffffffff
test eax, eax
je 0x4987bb
push 0
push 0
push eax
push 0x4a4310
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00478990
cmp byte [eax + 0x35], 0
je 0x4987bb
mov eax, dword [ebp - 0x10]
inc dword [eax + 0x10c]
lea eax, [ebp - 0x10]
push eax
call fcn.00478890
mov ecx, eax
call fcn.00479840
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
lea ecx, [ecx + 8]
call fcn.0040ad40
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 1
jne 0x498795
push 0
mov ecx, ebx
call fcn.0049e290
mov esi, dword [ebp - 4]
test esi, esi
je 0x4987bb
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4987bb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4987bb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x4987e0
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4987e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4987e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a39f0
Capabilities:
Check for foreground window switch
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
xor al, al
push edi
push ebx
mov byte [ebp - 1], al
call dword [sym.imp.USER32.dll_IsHungAppWindow]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
test eax, eax
setne byte [ebp - 2]
call edi
push 0
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4a3a3c
push 0
push 0xf120
push 0x112
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [ebp - 2], 0
jne 0x4a3ad9
push esi
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 8], 0
call esi
cmp ebx, eax
je 0x4a3ace
call edi
push 0
mov edi, eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
mov esi, eax
push esi
push edi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 3
push 0
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
test eax, eax
push esi
push edi
setne byte [ebp - 1]
call dword [sym.imp.USER32.dll_AttachThreadInput]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 8]
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
inc edi
mov dword [ebp - 8], edi
cmp edi, 0xa
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
jl 0x4a3a54
movzx eax, byte [ebp - 1]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
pop edi
setne al
movzx eax, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a9e30
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x4a9e61
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x4a9e50
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4c1de0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi + 0x44]
test al, al
js 0x4c1ecf
push ebx
xor ebx, ebx
push edi
test al, al
jle 0x4c1e69
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ecx
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x4c1e4e
mov eax, dword [ecx + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov edi, dword [esi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.00532510
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x4c1e57
push ecx
call fcn.004fb960
add esp, 4
mov ecx, dword [ebp - 4]
inc ebx
movsx eax, byte [esi + 0x44]
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, eax
jl 0x4c1e01
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4c1ec0
mov eax, dword [edx + 0x14]
dec dword [eax + 0x78]
mov ecx, dword [eax + 0x88]
mov dword [edx + 0x10], ecx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], edx
push dword [edx + 4]
mov ecx, dword [edx + 0x18]
mov eax, dword [eax + 0x98]
dec ecx
mov edi, dword [esi]
cdq
push edx
push eax
push 0
push ecx
call fcn.00532510
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
pop edi
pop ebx
mov byte [esi + 0x44], 0xff
pop esi
mov esp, ebp
pop ebp
ret
push edx
call fcn.004fb960
add esp, 4
mov byte [esi + 0x44], 0xff
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d2f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp + 8], 0
mov al, byte [esi + 0x44]
test al, al
js 0x4d303e
mov edx, dword [esi + 0x74]
je 0x4d30b0
push edx
call fcn.004dabb0
mov al, byte [esi + 0x44]
add esp, 4
sub al, 1
mov byte [esi + 0x44], al
je 0x4d3033
push ebx
nop word [eax + eax]
movsx eax, al
mov eax, dword [esi + eax*4 + 0x78]
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x4d301f
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov edi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.00532510
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x4d3028
push ecx
call fcn.004fb960
add esp, 4
mov al, byte [esi + 0x44]
sub al, 1
mov byte [esi + 0x44], al
jne 0x4d2fd0
pop ebx
mov edx, dword [esi + 0x78]
mov dword [esi + 0x74], edx
jmp 0x4d30c5
mov ecx, dword [esi + 0x40]
test ecx, ecx
jne 0x4d3051
pop edi
mov byte [esi], 1
mov eax, 0x10
pop esi
pop ebp
ret
mov al, byte [esi]
cmp al, 3
jb 0x4d307a
cmp al, 4
jne 0x4d3062
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebp
ret
push dword [esi + 0x10]
call fcn.004ae470
mov ecx, dword [esi + 0x40]
add esp, 4
mov dword [esi + 0x10], 0
mov byte [esi], 1
movzx eax, byte [esi + 2]
lea edi, [esi + 0x74]
push eax
mov eax, dword [esi + 8]
push 0
push edi
push ecx
push dword [eax + 4]
call fcn.004cef20
mov ecx, eax
add esp, 0x14
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x4d30a4
pop edi
mov byte [esi], 1
pop esi
pop ebp
ret
mov edx, dword [edi]
mov byte [esi + 0x44], 0
mov al, byte [edx + 2]
mov byte [esi + 0x45], al
cmp byte [edx], 0
je 0x4d311e
movzx eax, byte [edx + 2]
xor ecx, ecx
cmp dword [esi + 0x70], ecx
sete cl
cmp ecx, eax
jne 0x4d311e
and byte [esi + 1], 0xf1
xor eax, eax
mov word [esi + 0x46], ax
mov word [esi + 0x32], ax
cmp word [edx + 0x18], ax
jbe 0x4d30e2
mov byte [esi], al
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 8], al
jne 0x4d3045
cmp dword [edx + 4], 1
je 0x4d3100
pop edi
pop esi
mov dword [ebp + 8], 0x10ed7
pop ebp
jmp fcn.004e78a0
movzx ecx, byte [edx + 9]
mov eax, dword [edx + 0x38]
mov eax, dword [ecx + eax + 8]
bswap eax
push eax
push esi
mov byte [esi], 0
call fcn.004d2d10
add esp, 8
pop edi
pop esi
pop ebp
ret
push 0x58cf94
push 0x10eca
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b7420
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
ret
Function at 0x4dba20
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push str.sqlite_master
push edi
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push dword [ebp + 8]
call fcn.004f8db0
add esp, 0x18
cmp dword [ebp + 0x10], 0
jne 0x4dba5d
push edi
push str.sqlite_master
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push dword [ebp + 8]
call fcn.004f8db0
add esp, 0x10
pop edi
pop ebp
ret
Function at 0x4e5e40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
add ecx, ecx
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
mov esi, dword [eax + ecx*8]
mov eax, 1
mov dword [ebp + 0xc], esi
mov dword [ebp - 0xc], eax
push eax
push str.sqlite_stat_d
lea eax, [ebp - 0x28]
push eax
push 0x18
call fcn.004ae300
mov ecx, dword [edi]
lea ebx, [ebp - 0x28]
add esp, 0x10
mov dword [ebp - 4], ecx
xor edi, edi
mov dword [ebp - 8], ebx
cmp dword [ecx + 0x14], edi
jle 0x4e5f30
nop
mov eax, dword [ebp + 0xc]
mov esi, edi
xor esi, 1
cmp edi, 2
cmovge esi, edi
test eax, eax
je 0x4e5ec5
mov ecx, dword [ecx + 0x10]
mov edx, esi
add edx, edx
mov ebx, dword [ecx + edx*8]
sub ebx, eax
nop
movzx edx, byte [eax]
movzx ecx, byte [ebx + eax]
cmp edx, ecx
jne 0x4e5f08
test edx, edx
jne 0x4e5f1a
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x10]
add esi, esi
push 0
push ebx
mov eax, dword [eax + esi*8 + 0xc]
add eax, 8
push eax
call fcn.004cb6f0
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
je 0x4e5f20
push dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x28]
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push eax
push esi
push str.DELETE_FROM__Q._s_WHERE__s_Q
push edi
call fcn.004f8db0
add esp, 0x18
jmp 0x4e5fbb
movzx ecx, byte [ecx + 0x5834a8]
movzx edx, byte [edx + 0x5834a8]
sub edx, ecx
jne 0x4e5f1d
inc eax
jmp 0x4e5eb0
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 0x14]
jl 0x4e5e90
mov esi, dword [ebp + 0xc]
mov edx, str.sqlite_master
sub edx, ebx
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x4e5f59
test ecx, ecx
jne 0x4e5f6b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
test esi, esi
jne 0x4e5f6e
neg ecx
sbb ecx, ecx
jmp 0x4e5f92
movzx eax, byte [eax + 0x5834a8]
movzx ecx, byte [ecx + 0x5834a8]
sub ecx, eax
jne 0x4e5fb8
inc ebx
jmp 0x4e5f37
test ecx, ecx
je 0x4e5fb8
mov edx, esi
mov esi, ecx
sub esi, dword [ebp + 0xc]
nop dword [eax]
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4e5fa3
test ecx, ecx
jne 0x4e5fb5
mov esi, dword [ebp + 0xc]
test ecx, ecx
jne 0x4e5fb8
mov ecx, dword [ebp - 4]
mov ebx, str.sqlite_temp_master
jmp 0x4e5e80
movzx eax, byte [eax + 0x5834a8]
movzx ecx, byte [ecx + 0x5834a8]
sub ecx, eax
jne 0x4e5f8f
inc edx
jmp 0x4e5f80
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 4
jle 0x4e5e64
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4eff30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
push edi
xor ebx, ebx
xor edi, edi
cmp dword [eax + 0x14], ebx
jle 0x4effc7
mov edx, dword [ebp + 0x10]
push esi
nop dword [eax]
mov eax, dword [eax + 0x10]
mov esi, edi
xor esi, 1
cmp edi, 2
cmovge esi, edi
shl esi, 4
add esi, eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 4], eax
test edx, edx
je 0x4eff85
mov esi, dword [esi]
mov eax, edx
sub esi, edx
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x4effb2
test edx, edx
jne 0x4effc4
mov eax, dword [ebp - 4]
push 0
push dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.004cb6f0
add esp, 0xc
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x4effa9
mov eax, dword [ebp + 8]
inc edi
mov edx, dword [ebp + 0x10]
cmp edi, dword [eax + 0x14]
jl 0x4eff50
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + 0x5834a8]
movzx edx, byte [edx + 0x5834a8]
sub edx, ecx
jne 0x4eff9d
inc eax
jmp 0x4eff73
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4effd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
nop
mov ecx, dword [ebp + 8]
xor esi, esi
cmp dword [ecx + 0x14], esi
jle 0x4f0051
nop word [eax + eax]
mov edi, esi
xor edi, 1
cmp esi, 2
cmovge edi, esi
test eax, eax
je 0x4f0022
mov ecx, dword [ecx + 0x10]
mov edx, edi
add edx, edx
mov ecx, dword [ecx + edx*8]
sub ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
nop
movzx edx, byte [eax]
movzx ecx, byte [ecx + eax]
cmp edx, ecx
jne 0x4f0085
test edx, edx
jne 0x4f0097
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
add edi, edi
push 0
push ebx
mov eax, dword [eax + edi*8 + 0xc]
add eax, 8
push eax
call fcn.004cb6f0
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
jne 0x4f00f7
mov ecx, dword [ebp + 8]
inc esi
mov eax, dword [ebp + 0x10]
cmp esi, dword [ecx + 0x14]
jl 0x4efff0
mov edx, str.sqlite_master
sub edx, ebx
nop dword [eax + eax]
movzx ecx, byte [ebx]
movzx eax, byte [edx + ebx]
cmp ecx, eax
jne 0x4f00a0
test ecx, ecx
jne 0x4f00b2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4f00b5
neg ecx
sbb ecx, ecx
jmp 0x4f00d2
movzx ecx, byte [ecx + 0x5834a8]
movzx edx, byte [edx + 0x5834a8]
sub edx, ecx
jne 0x4f0045
mov ecx, dword [ebp - 4]
inc eax
jmp 0x4f0010
movzx eax, byte [eax + 0x5834a8]
movzx ecx, byte [ecx + 0x5834a8]
sub ecx, eax
jne 0x4f00f5
inc ebx
jmp 0x4f0060
test ecx, ecx
je 0x4f00f5
mov esi, ecx
mov edx, eax
sub esi, eax
nop
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4f00e0
test ecx, ecx
jne 0x4f00f2
mov eax, dword [ebp + 0x10]
test ecx, ecx
jne 0x4f00f5
mov ebx, str.sqlite_temp_master
jmp 0x4effe0
movzx eax, byte [eax + 0x5834a8]
movzx ecx, byte [ecx + 0x5834a8]
sub ecx, eax
jne 0x4f00cf
inc edx
jmp 0x4f00c0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fad40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x4fad6a
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4fad6a
cmp dword [edx + 0x60], 0
je 0x4fad66
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0051c920
xor eax, eax
pop ebp
ret
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x4fad68
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x4fad88
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004d6840
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004d79f0
Function at 0x520e90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x14
mov dword [edi], 0
call fcn.004f8720
mov esi, eax
add esp, 8
test esi, esi
jne 0x520eb7
pop edi
lea eax, [esi + 7]
pop esi
pop ebp
ret
cmp byte [0x5b3c3c], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x520f02
mov eax, dword [0x5b3d2c]
test eax, eax
je 0x520edb
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x520f02
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x504ef0
push 0
push 0
mov dword [esi + 0xc], ebx
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x520f0f
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x520f28
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp + 0xc]
add esp, 4
mov dword [esi + 0x10], eax
pop ebx
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x5468d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [ebx - 4]
test ebp, ebp
jle 0x54693a
mov ecx, dword [esp + 0xc]
sub ecx, ebx
push esi
mov dword [esp + 0x10], ecx
push edi
nop dword [eax]
mov esi, dword [ecx + ebx]
lea ebx, [ebx + 4]
mov ecx, eax
mov edi, esi
and edi, 0xffff00ff
and ecx, 0xffff00ff
add edi, ecx
mov edx, esi
movzx ecx, ax
and edx, 0xff00
add edx, ecx
and eax, 0xff00ffff
mov ecx, dword [esp + 0x14]
xor edi, edx
and esi, 0xff00ff00
and edi, 0xff00ff
add eax, esi
xor eax, edi
mov dword [ebx - 4], eax
sub ebp, 1
jne 0x5468f0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x546940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jle 0x5469b4
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
sub ecx, eax
sub dword [esp + 0x14], eax
push ebx
push esi
mov dword [esp + 0x14], ecx
push edi
nop
mov ebx, dword [ecx + eax]
lea eax, [eax + 4]
mov esi, dword [eax - 4]
mov ecx, ebx
and ecx, 0xffff00ff
mov edi, esi
and edi, 0xffff00ff
mov edx, esi
add edi, ecx
and edx, 0xff00
movzx ecx, bx
and esi, 0xff00ff00
add edx, ecx
and ebx, 0xff00ffff
mov ecx, dword [esp + 0x20]
xor edi, edx
and edi, 0xff00ff
add ebx, esi
xor edi, ebx
mov dword [ecx + eax - 4], edi
mov ecx, dword [esp + 0x18]
sub ebp, 1
jne 0x546960
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x547020
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push edi
xor ebp, ebp
lea eax, [ebx + eax*4]
mov edi, eax
sub edi, ebx
add edi, 3
shr edi, 2
cmp ebx, eax
cmova edi, ecx
test edi, edi
je 0x54708e
push esi
mov esi, dword [esp + 0x1c]
nop word [eax + eax]
mov edx, dword [ebx]
lea esi, [esi + 2]
mov ecx, edx
lea ebx, [ebx + 4]
shr ecx, 0x10
mov eax, edx
shr eax, 0xd
inc ebp
xor cl, al
mov eax, edx
and cl, 7
shr eax, 0x10
xor cl, al
mov eax, edx
mov byte [esi - 2], cl
mov ecx, edx
shr ecx, 5
shr eax, 3
xor cl, al
shr edx, 5
and cl, 0x1f
xor cl, dl
mov byte [esi - 1], cl
cmp ebp, edi
jb 0x547050
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x5470a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
xor ecx, ecx
push ebx
push ebp
push edi
mov edi, dword [esp + 0x10]
xor ebp, ebp
lea eax, [edi + eax*4]
mov ebx, eax
sub ebx, edi
add ebx, 3
shr ebx, 2
cmp edi, eax
cmova ebx, ecx
test ebx, ebx
je 0x547104
push esi
mov esi, dword [esp + 0x1c]
nop word [eax + eax]
mov edx, dword [edi]
lea esi, [esi + 2]
mov ecx, edx
lea edi, [edi + 4]
shr ecx, 0x10
mov eax, edx
shr eax, 0xc
inc ebp
xor cl, al
mov eax, edx
shr eax, 0x10
and cl, 0xf
xor cl, al
mov eax, edx
shr eax, 0x1c
and dl, 0xf0
or al, dl
mov byte [esi - 2], cl
mov byte [esi - 1], al
cmp ebp, ebx
jb 0x5470d0
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x55e0a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x5b4ef4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x55e0c7
mov ecx, 5
int 0x29
push 2
call fcn.005331f6
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x55e1d2
test esi, esi
jne 0x55e1d2
push 2
call fcn.005331f6
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0053325b
mov esp, ebp
pop ebp
ret