joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ab30
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.0047aee0
mov eax, dword [eax + 0x50]
mov dword [ebp - 4], eax
call fcn.0047aee0
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 0x49ab9a
mov eax, ecx
shr eax, 8
movzx eax, al
cmp esi, eax
jne 0x49ab97
movzx eax, cl
cmp edi, eax
jne 0x49ab97
mov ecx, ebx
call fcn.0048b4a0
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 0x49abf1
cmp esi, eax
jne 0x49abf1
cmp edi, dword [ebp - 0xc]
jne 0x49abf1
mov ecx, dword [ebx + 0x1110]
test ecx, ecx
je 0x49abf1
push 0
call fcn.0043a870
mov ecx, dword [ebx + 0x1110]
push 1
push 1
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [ebx + 0x1110]
call fcn.004237c0
push eax
call fcn.004a5f30
mov ecx, dword [ebx + 0x1110]
add esp, 4
call fcn.004a6130
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.0047acf0
mov ecx, eax
call fcn.0048c950
mov eax, dword [ebp - 0x10]
or edi, 0xffffffff
test eax, eax
je 0x49ac9b
push 0
push 0
push eax
push 0x4a6880
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0047aee0
cmp byte [eax + 0x35], 0
je 0x49ac9b
mov eax, dword [ebp - 0x10]
inc dword [eax + 0x10c]
lea eax, [ebp - 0x10]
push eax
call fcn.0047ade0
mov ecx, eax
call fcn.0047bd90
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
lea ecx, [ecx + 8]
call fcn.0040abf0
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 1
jne 0x49ac75
push 0
mov ecx, ebx
call fcn.004a0750
mov esi, dword [ebp - 4]
test esi, esi
je 0x49ac9b
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x49ac9b
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x49ac9b
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x49acc0
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x49acc0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x49acc0
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 0x4a5f30
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 0x4a5f7c
push 0
push 0xf120
push 0x112
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [ebp - 2], 0
jne 0x4a6019
push esi
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 8], 0
call esi
cmp ebx, eax
je 0x4a600e
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 0x4a5f94
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 0x4ac3a0
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 0x4ac3d1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x4ac3c0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4c4370
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 0x4c445f
push ebx
xor ebx, ebx
push edi
test al, al
jle 0x4c43f9
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ecx
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x4c43de
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.00534aa0
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x4c43e7
push ecx
call fcn.004fdee0
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 0x4c4391
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4c4450
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.00534aa0
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.004fdee0
add esp, 4
mov byte [esi + 0x44], 0xff
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d5520
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 0x4d55ce
mov edx, dword [esi + 0x74]
je 0x4d5640
push edx
call fcn.004dd140
mov al, byte [esi + 0x44]
add esp, 4
sub al, 1
mov byte [esi + 0x44], al
je 0x4d55c3
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 0x4d55af
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.00534aa0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x4d55b8
push ecx
call fcn.004fdee0
add esp, 4
mov al, byte [esi + 0x44]
sub al, 1
mov byte [esi + 0x44], al
jne 0x4d5560
pop ebx
mov edx, dword [esi + 0x78]
mov dword [esi + 0x74], edx
jmp 0x4d5655
mov ecx, dword [esi + 0x40]
test ecx, ecx
jne 0x4d55e1
pop edi
mov byte [esi], 1
mov eax, 0x10
pop esi
pop ebp
ret
mov al, byte [esi]
cmp al, 3
jb 0x4d560a
cmp al, 4
jne 0x4d55f2
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebp
ret
push dword [esi + 0x10]
call fcn.004b09e0
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.004d14b0
mov ecx, eax
add esp, 0x14
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x4d5634
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 0x4d56ae
movzx eax, byte [edx + 2]
xor ecx, ecx
cmp dword [esi + 0x70], ecx
sete cl
cmp ecx, eax
jne 0x4d56ae
and byte [esi + 1], 0xf1
xor eax, eax
mov word [esi + 0x46], ax
mov word [esi + 0x32], ax
cmp word [edx + 0x18], ax
jbe 0x4d5672
mov byte [esi], al
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 8], al
jne 0x4d55d5
cmp dword [edx + 4], 1
je 0x4d5690
pop edi
pop esi
mov dword [ebp + 8], 0x10ed7
pop ebp
jmp fcn.004e9e20
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.004d52a0
add esp, 8
pop edi
pop esi
pop ebp
ret
push 0x58efe4
push 0x10eca
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b99a0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
ret
Function at 0x4ddfb0
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.004fb330
add esp, 0x18
cmp dword [ebp + 0x10], 0
jne 0x4ddfed
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.004fb330
add esp, 0x10
pop edi
pop ebp
ret
Function at 0x4e83c0
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.004b0870
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 0x4e84b0
nop
mov eax, dword [ebp + 0xc]
mov esi, edi
xor esi, 1
cmp edi, 2
cmovge esi, edi
test eax, eax
je 0x4e8445
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 0x4e8488
test edx, edx
jne 0x4e849a
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.004cdc80
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
je 0x4e84a0
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.004fb330
add esp, 0x18
jmp 0x4e853b
movzx ecx, byte [ecx + 0x5854f8]
movzx edx, byte [edx + 0x5854f8]
sub edx, ecx
jne 0x4e849d
inc eax
jmp 0x4e8430
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 0x14]
jl 0x4e8410
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 0x4e84d9
test ecx, ecx
jne 0x4e84eb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
test esi, esi
jne 0x4e84ee
neg ecx
sbb ecx, ecx
jmp 0x4e8512
movzx eax, byte [eax + 0x5854f8]
movzx ecx, byte [ecx + 0x5854f8]
sub ecx, eax
jne 0x4e8538
inc ebx
jmp 0x4e84b7
test ecx, ecx
je 0x4e8538
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 0x4e8523
test ecx, ecx
jne 0x4e8535
mov esi, dword [ebp + 0xc]
test ecx, ecx
jne 0x4e8538
mov ecx, dword [ebp - 4]
mov ebx, str.sqlite_temp_master
jmp 0x4e8400
movzx eax, byte [eax + 0x5854f8]
movzx ecx, byte [ecx + 0x5854f8]
sub ecx, eax
jne 0x4e850f
inc edx
jmp 0x4e8500
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 4
jle 0x4e83e4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f24b0
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 0x4f2547
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 0x4f2505
mov esi, dword [esi]
mov eax, edx
sub esi, edx
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x4f2532
test edx, edx
jne 0x4f2544
mov eax, dword [ebp - 4]
push 0
push dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.004cdc80
add esp, 0xc
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x4f2529
mov eax, dword [ebp + 8]
inc edi
mov edx, dword [ebp + 0x10]
cmp edi, dword [eax + 0x14]
jl 0x4f24d0
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + 0x5854f8]
movzx edx, byte [edx + 0x5854f8]
sub edx, ecx
jne 0x4f251d
inc eax
jmp 0x4f24f3
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4f2550
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 0x4f25d1
nop word [eax + eax]
mov edi, esi
xor edi, 1
cmp esi, 2
cmovge edi, esi
test eax, eax
je 0x4f25a2
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 0x4f2605
test edx, edx
jne 0x4f2617
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.004cdc80
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
jne 0x4f2677
mov ecx, dword [ebp + 8]
inc esi
mov eax, dword [ebp + 0x10]
cmp esi, dword [ecx + 0x14]
jl 0x4f2570
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 0x4f2620
test ecx, ecx
jne 0x4f2632
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4f2635
neg ecx
sbb ecx, ecx
jmp 0x4f2652
movzx ecx, byte [ecx + 0x5854f8]
movzx edx, byte [edx + 0x5854f8]
sub edx, ecx
jne 0x4f25c5
mov ecx, dword [ebp - 4]
inc eax
jmp 0x4f2590
movzx eax, byte [eax + 0x5854f8]
movzx ecx, byte [ecx + 0x5854f8]
sub ecx, eax
jne 0x4f2675
inc ebx
jmp 0x4f25e0
test ecx, ecx
je 0x4f2675
mov esi, ecx
mov edx, eax
sub esi, eax
nop
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4f2660
test ecx, ecx
jne 0x4f2672
mov eax, dword [ebp + 0x10]
test ecx, ecx
jne 0x4f2675
mov ebx, str.sqlite_temp_master
jmp 0x4f2560
movzx eax, byte [eax + 0x5854f8]
movzx ecx, byte [ecx + 0x5854f8]
sub ecx, eax
jne 0x4f264f
inc edx
jmp 0x4f2640
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fd2c0
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 0x4fd2ea
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4fd2ea
cmp dword [edx + 0x60], 0
je 0x4fd2e6
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0051eeb0
xor eax, eax
pop ebp
ret
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x4fd2e8
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x4fd308
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004d8dd0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004d9f80
Function at 0x523420
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.004faca0
mov esi, eax
add esp, 8
test esi, esi
jne 0x523447
pop edi
lea eax, [esi + 7]
pop esi
pop ebp
ret
cmp byte [0x5b5c3c], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x523492
mov eax, dword [0x5b5d2c]
test eax, eax
je 0x52346b
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x523492
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x507480
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 0x52349f
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x5234b8
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 0x548ea0
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 0x548f0a
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 0x548ec0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x548f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jle 0x548f84
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 0x548f30
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5495f0
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 0x54965e
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 0x549620
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x549670
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 0x5496d4
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 0x5496a0
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x560640
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x5b6ef4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x560667
mov ecx, 5
int 0x29
push 2
call fcn.00535786
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 0x560772
test esi, esi
jne 0x560772
push 2
call fcn.00535786
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.005357eb
mov esp, ebp
pop ebp
ret