joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a3180
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 0x4a31cc
push 0
push 0xf120
push 0x112
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [ebp - 2], 0
jne 0x4a3269
push esi
mov esi, dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 8], 0
call esi
cmp ebx, eax
je 0x4a325e
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 0x4a31e4
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 0x4a95d0
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 0x4a9601
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x4a95f0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x4c1590
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 0x4c167f
push ebx
xor ebx, ebx
push edi
test al, al
jle 0x4c1619
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ecx
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x48]
test byte [ecx + 0x1c], 0x20
je 0x4c15fe
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.00531b30
push edx
push eax
mov eax, dword [edi + 0x48]
push esi
call eax
mov esi, dword [ebp + 8]
add esp, 0x10
jmp 0x4c1607
push ecx
call fcn.004fb120
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 0x4c15b1
mov eax, dword [esi + 0x74]
mov edx, dword [eax + 0x48]
test byte [edx + 0x1c], 0x20
je 0x4c1670
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.00531b30
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.004fb120
add esp, 4
mov byte [esi + 0x44], 0xff
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d2740
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 0x4d27ee
mov edx, dword [esi + 0x74]
je 0x4d2860
push edx
call fcn.004da370
mov al, byte [esi + 0x44]
add esp, 4
sub al, 1
mov byte [esi + 0x44], al
je 0x4d27e3
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 0x4d27cf
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.00531b30
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
add esp, 0x10
jmp 0x4d27d8
push ecx
call fcn.004fb120
add esp, 4
mov al, byte [esi + 0x44]
sub al, 1
mov byte [esi + 0x44], al
jne 0x4d2780
pop ebx
mov edx, dword [esi + 0x78]
mov dword [esi + 0x74], edx
jmp 0x4d2875
mov ecx, dword [esi + 0x40]
test ecx, ecx
jne 0x4d2801
pop edi
mov byte [esi], 1
mov eax, 0x10
pop esi
pop ebp
ret
mov al, byte [esi]
cmp al, 3
jb 0x4d282a
cmp al, 4
jne 0x4d2812
mov eax, dword [esi + 4]
pop edi
pop esi
pop ebp
ret
push dword [esi + 0x10]
call fcn.004adc10
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.004ce6d0
mov ecx, eax
add esp, 0x14
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x4d2854
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 0x4d28ce
movzx eax, byte [edx + 2]
xor ecx, ecx
cmp dword [esi + 0x70], ecx
sete cl
cmp ecx, eax
jne 0x4d28ce
and byte [esi + 1], 0xf1
xor eax, eax
mov word [esi + 0x46], ax
mov word [esi + 0x32], ax
cmp word [edx + 0x18], ax
jbe 0x4d2892
mov byte [esi], al
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
cmp byte [edx + 8], al
jne 0x4d27f5
cmp dword [edx + 4], 1
je 0x4d28b0
pop edi
pop esi
mov dword [ebp + 8], 0x10ed7
pop ebp
jmp fcn.004e7050
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.004d24c0
add esp, 8
pop edi
pop esi
pop ebp
ret
push 0x58b964
push 0x10eca
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.004b6bd0
add esp, 0x14
mov eax, 0xb
pop edi
pop esi
pop ebp
ret
Function at 0x4db1e0
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.004f8560
add esp, 0x18
cmp dword [ebp + 0x10], 0
jne 0x4db21d
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.004f8560
add esp, 0x10
pop edi
pop ebp
ret
Function at 0x4e55f0
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.004adaa0
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 0x4e56e0
nop
mov eax, dword [ebp + 0xc]
mov esi, edi
xor esi, 1
cmp edi, 2
cmovge esi, edi
test eax, eax
je 0x4e5675
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 0x4e56b8
test edx, edx
jne 0x4e56ca
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.004caea0
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
je 0x4e56d0
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.004f8560
add esp, 0x18
jmp 0x4e576b
movzx ecx, byte [ecx + 0x581e78]
movzx edx, byte [edx + 0x581e78]
sub edx, ecx
jne 0x4e56cd
inc eax
jmp 0x4e5660
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 0x14]
jl 0x4e5640
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 0x4e5709
test ecx, ecx
jne 0x4e571b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
test esi, esi
jne 0x4e571e
neg ecx
sbb ecx, ecx
jmp 0x4e5742
movzx eax, byte [eax + 0x581e78]
movzx ecx, byte [ecx + 0x581e78]
sub ecx, eax
jne 0x4e5768
inc ebx
jmp 0x4e56e7
test ecx, ecx
je 0x4e5768
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 0x4e5753
test ecx, ecx
jne 0x4e5765
mov esi, dword [ebp + 0xc]
test ecx, ecx
jne 0x4e5768
mov ecx, dword [ebp - 4]
mov ebx, str.sqlite_temp_master
jmp 0x4e5630
movzx eax, byte [eax + 0x581e78]
movzx ecx, byte [ecx + 0x581e78]
sub ecx, eax
jne 0x4e573f
inc edx
jmp 0x4e5730
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 4
jle 0x4e5614
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ef6e0
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 0x4ef777
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 0x4ef735
mov esi, dword [esi]
mov eax, edx
sub esi, edx
movzx edx, byte [eax]
movzx ecx, byte [esi + eax]
cmp edx, ecx
jne 0x4ef762
test edx, edx
jne 0x4ef774
mov eax, dword [ebp - 4]
push 0
push dword [ebp + 0xc]
add eax, 0x18
push eax
call fcn.004caea0
add esp, 0xc
mov ebx, dword [eax + 8]
test ebx, ebx
jne 0x4ef759
mov eax, dword [ebp + 8]
inc edi
mov edx, dword [ebp + 0x10]
cmp edi, dword [eax + 0x14]
jl 0x4ef700
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ecx + 0x581e78]
movzx edx, byte [edx + 0x581e78]
sub edx, ecx
jne 0x4ef74d
inc eax
jmp 0x4ef723
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ef780
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 0x4ef801
nop word [eax + eax]
mov edi, esi
xor edi, 1
cmp esi, 2
cmovge edi, esi
test eax, eax
je 0x4ef7d2
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 0x4ef835
test edx, edx
jne 0x4ef847
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.004caea0
add esp, 0xc
mov eax, dword [eax + 8]
test eax, eax
jne 0x4ef8a7
mov ecx, dword [ebp + 8]
inc esi
mov eax, dword [ebp + 0x10]
cmp esi, dword [ecx + 0x14]
jl 0x4ef7a0
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 0x4ef850
test ecx, ecx
jne 0x4ef862
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4ef865
neg ecx
sbb ecx, ecx
jmp 0x4ef882
movzx ecx, byte [ecx + 0x581e78]
movzx edx, byte [edx + 0x581e78]
sub edx, ecx
jne 0x4ef7f5
mov ecx, dword [ebp - 4]
inc eax
jmp 0x4ef7c0
movzx eax, byte [eax + 0x581e78]
movzx ecx, byte [ecx + 0x581e78]
sub ecx, eax
jne 0x4ef8a5
inc ebx
jmp 0x4ef810
test ecx, ecx
je 0x4ef8a5
mov esi, ecx
mov edx, eax
sub esi, eax
nop
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4ef890
test ecx, ecx
jne 0x4ef8a2
mov eax, dword [ebp + 0x10]
test ecx, ecx
jne 0x4ef8a5
mov ebx, str.sqlite_temp_master
jmp 0x4ef790
movzx eax, byte [eax + 0x581e78]
movzx ecx, byte [ecx + 0x581e78]
sub ecx, eax
jne 0x4ef87f
inc edx
jmp 0x4ef870
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4fa4f0
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 0x4fa51a
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x4fa51a
cmp dword [edx + 0x60], 0
je 0x4fa516
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.0051c100
xor eax, eax
pop ebp
ret
mov eax, dword [edx + 0x28]
test eax, eax
jne 0x4fa518
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x4fa538
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004d6000
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.004d71b0
Function at 0x520670
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.004f7ed0
mov esi, eax
add esp, 8
test esi, esi
jne 0x520697
pop edi
lea eax, [esi + 7]
pop esi
pop ebp
ret
cmp byte [0x5b2c3c], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x5206e2
mov eax, dword [0x5b2d2c]
test eax, eax
je 0x5206bb
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x5206e2
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x5046b0
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 0x5206ef
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [esi + 8], 0
jne 0x520708
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 0x545ef0
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 0x545f5a
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 0x545f10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x545f60
Capabilities:
Encode data using xor

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

Function at 0x546640
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 0x5466ae
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 0x546670
pop esi
pop edi
pop ebp
pop ebx
ret

Function at 0x5466c0
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 0x546724
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 0x5466f0
pop esi
pop edi
pop ebp
pop ebx
ret
Function at 0x55d690
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x5b3ef4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x55d6b7
mov ecx, 5
int 0x29
push 2
call fcn.00532816
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 0x55d7c2
test esi, esi
jne 0x55d7c2
push 2
call fcn.00532816
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.0053287b
mov esp, ebp
pop ebp
ret
Function at 0x56bfa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.0056bfd0
mov esi, dword [ebp + 8]
test al, al
je 0x56bfbe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.0056bfe0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x56c110
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x56c16c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56c16c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56c16c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x56c16c
cmp dword [ecx + 0x74], 0xe
jbe 0x56c16c
cmp dword [ecx + 0xe8], 0
je 0x56c16c
push dword [ebp + 8]
call fcn.0056bfe0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x5b95a4
call fcn.0056bdb0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x56c1a1
push dword [ebp + 8]
call fcn.0056bfa0
mov esp, ebp
pop ebp
ret

Function at 0x56c1e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x56c23c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56c23c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56c23c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x56c23c
cmp dword [ecx + 0x74], 0xe
jbe 0x56c23c
cmp dword [ecx + 0xe8], 0
je 0x56c23c
push dword [ebp + 8]
call fcn.0056bfe0
add esp, 4
lea eax, [ebp - 0xc]
mov byte [ebp - 1], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 1]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push 0x5b95a4
call fcn.0056bdb0
add esp, 8
cmp dword [ebp - 8], 0
jne 0x56c271
push dword [ebp + 8]
call fcn.0056bfa0
mov esp, ebp
pop ebp
ret

Function at 0x56d100
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60000
jae 0x56d12a
mov eax, 2
pop ebp
ret
push esi
call fcn.0056d030
mov esi, eax
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x70]
mov ecx, edx
and cl, 2
movzx ecx, cl
neg ecx
sbb ecx, ecx
inc eax
cmp eax, 3
ja case.default.0x56d14a
jmp dword [eax*4 + 0x56d180]
or edx, 2
lea eax, [ecx + 2]
mov dword [esi + 0x70], edx
pop esi
pop ebp
ret
and edx, 0xfffffffd
mov dword [esi + 0x70], edx
lea eax, [ecx + 2]
pop esi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
call fcn.0055d620
or eax, 0xffffffff
pop esi
pop ebp
ret