joyce8/EMBER2024-capa huggingface dataset:
Function at 0x545d0b
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x9b3390]
push esi
test eax, eax
jne 0x545d30
push fcn.00545e38
push 0x10
push 0x258
call fcn.00558f44
mov dword [0x9b3390], eax
push dword [esp + 0xc]
push eax
call fcn.00558ec3
mov esi, eax
test esi, esi
je 0x545e31
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x545d52
mov edi, 0x6cf048
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x545d62
xor eax, eax
cmp word [ebx], ax
jne 0x545d67
mov ebx, 0x6cfd4c
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x545e18
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x545dc8
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x545dcc
push 0x6cfc14
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x545dcc
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x545df0
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x545e06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x545e04
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x545e2f
cmp dword [esp + 0x14], 0xffffffff
je 0x545e23
mov esi, dword [esp + 0x14]
push esi
push dword [0x9b3390]
call fcn.00558e61
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x545eae
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x545ed7
test byte [esp + 8], 2
je 0x545ecb
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x545ed9
xor eax, eax
ret 8

Function at 0x545fb9
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x545fd9
cmp dword [esp + 8], 0
je 0x545fd9
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x545fdb
xor eax, eax
ret 8

Function at 0x546137
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x5461af
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x546190
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x54618d
cmp ecx, 0x5c
je 0x54618d
cmp ecx, 0x2f
jne 0x54619a
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x54617a
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x5461b1
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x54738c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
je 0x5473ea
add ebx, 2
lea eax, [ebx*2 + 2]
push eax
push edi
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x5473ea
cmp dword [ebp + 0xc], 0
je 0x5473d9
push dword [ebp + 0xc]
push edi
call sub.MSVCRT.dll_wcscpy
push 0x6cf65c
push edi
call sub.MSVCRT.dll_wcscat
add esp, 0x10
jmp 0x5473e6
push 0x6cf65c
push edi
call sub.MSVCRT.dll_wcscpy
pop ecx
pop ecx
mov esi, edi
jmp 0x5473ed
mov esi, dword [ebp + 0xc]
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x547454
mov eax, dword [0x9a397c]
dec eax
dec eax
je 0x54742e
sub eax, 0x16
je 0x547426
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [ebx + ebx]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x547454
push esi
call fcn.006cdf70
jmp 0x547434
push esi
call fcn.006ce010
mov esi, eax
lea eax, [ebp + 0x10]
push 0
push eax
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.006cdf60
test edi, edi
je 0x547467
push edi
push 0
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x547b6b
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x547be0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x547b89
mov esi, 0x6cf048
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
lea ebp, [eax*2 + 2]
push ebp
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x547bd7
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x547bd7
push ebp
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
ret 4

Function at 0x547fe8
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x548045
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x548045
mov eax, dword [esi + 0x70]
test eax, eax
je 0x548024
push ebx
push esi
call eax
push esi
push ebx
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x9b4984]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x9b4988], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x548381
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x184
push 8
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x9b4984]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 8]
mov dword [0x9b4988], esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
push esi
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 2
mov dword [esi + 0x78], 0x3f
call fcn.0054af5a
mov dword [esi + 0x58], 0x548f94
mov eax, esi
mov dword [esi + 0x5c], 0x548fe0
mov dword [esi + 0x10], fcn.00548b35
mov dword [esi + 0x30], 0x548a27
mov dword [esi + 0x64], 0x54906a
mov dword [esi + 0x60], 0x549022
mov dword [esi + 0x34], 0x5486d7
mov dword [esi + 0x24], 0x5486ae
mov dword [esi + 0x28], 0x548683
mov dword [esi + 0x2c], 0x5485d5
mov dword [esi + 0x44], 0x548d9a
pop esi
ret 4
Function at 0x54e1fe
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x54e2b4
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x54e294
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x54e26f
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x54e2a9
add edi, dword [esp + 0x14]
jmp 0x54e2ad
add edi, dword [esp + 0x24]
test edx, edx
jne 0x54e24d
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x54e5bf
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x54e699
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x54e66f
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x54e637
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x54e686
add edi, ecx
jmp 0x54e68a
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x54e60d
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x54ecb9
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x54ed6e
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x54ed4f
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x54ed2a
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x54ed64
add edx, dword [esp + 0x14]
jmp 0x54ed68
add edx, dword [esp + 0x24]
test esi, esi
jne 0x54ed08
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x5506fd
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push esi
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push closesocket
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x550781
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x550779
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x55076a
cmp dword [esp + 0x18], ebx
jne 0x55076a
push ebx
push edi
push dword [esp + 0x1c]
call fcn.005507f3
mov ebp, eax
push edi
push 0
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x551233
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
xor ebp, ebp
push esi
test ebx, ebx
je 0x551247
mov esi, ebx
jmp 0x551251
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x551342
lea eax, [esp + 0x18]
push eax
push 0x18
pop eax
push eax
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x551337
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push edi
mov edi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], edi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x18
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x551336
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push edi
push 0
push dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul edi, dword [esp + 0x14]
test edi, edi
jle 0x551336
mov ebx, dword [esp + 0x10]
push 3
pop ebp
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
add eax, ecx
movzx ecx, byte [ebx]
add eax, ecx
cdq
idiv ebp
mov byte [ebx], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 2], al
mov ebx, dword [esp + 0x10]
add ebx, ebp
mov dword [esp + 0x10], ebx
dec edi
jne 0x5512ff
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x551342
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x50
ret 8
Function at 0x552cf9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x6d0334
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x9b35bc], eax
test eax, eax
je 0x552d27
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x9b35b8], eax
lea eax, [ebp - 0x114]
mov dword [0x9b35c0], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x552d89
cmp dword [ebp - 0x104], 1
jne 0x552d5e
and dword [0x9b35c0], 0
jmp 0x552da1
cmp dword [ebp - 0x104], 2
jne 0x552d89
cmp dword [ebp - 0x110], 5
jb 0x552d55
jne 0x552d89
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x9b35c0]
mov dword [0x9b35c0], eax
jmp 0x552d8e
mov eax, dword [0x9b35c0]
test eax, eax
je 0x552da1
call fcn.005525d4
neg eax
sbb eax, eax
and dword [0x9b35c0], eax
mov esp, ebp
pop ebp
ret

Function at 0x553e10
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x553e42
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x553e3d
cmp dword [esp + 0xc], esi
je 0x553e59
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret
Function at 0x5547af
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x5547df
cmp esi, 2
je 0x5547df
cmp esi, 4
je 0x5547df
cmp esi, 8
je 0x5547df
cmp esi, 0x18
je 0x5547df
cmp esi, 0x20
je 0x5547df
xor eax, eax
jmp 0x5549a9
mov ecx, dword [0x9b361c]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x5549a5
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x9b4a10]
cmp dword [eax], edx
je 0x554812
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x5547f9
jmp 0x5549a5
cmp dword [esp + 0x38], 0x20
jne 0x55497c
mov eax, dword [eax + 8]
test eax, eax
je 0x554852
cmp esi, 0x20
je 0x55482e
cmp esi, 0xffffffff
jne 0x554852
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x5549a3
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x9aa644]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x5549a5
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x554947
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x554927
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
dec edi
jne 0x5548b8
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
dec dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x5548a5
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x9b4a10]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x9aa644]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x5549a5
cmp dword [esp + 0x38], 0x18
jne 0x5549a5
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28
Function at 0x55a200
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
push ebx
push ebp
push esi
xor ebp, ebp
lea eax, [ecx + 0x32350]
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], eax
jmp 0x55a220
xor ebx, ebx
mov edi, ebp
lea eax, [ebx + 1]
lea ebp, [ebx + 4]
lea ebx, [ebx]
movzx edx, word [ecx + eax*2 + 0x329f4]
mov esi, edi
and esi, 1
shr edx, 4
mov ecx, esi
shr edi, 1
neg ecx
add eax, eax
sar ecx, 4
or eax, esi
and ecx, 0x7f
xor edx, ecx
mov ecx, dword [esp + 0x1c]
add ebx, dword [ecx + edx*4 + 0x30ca0]
dec ebp
jne 0x55a230
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
inc ebp
mov dword [esp + 0x10], ebp
mov dword [edx], ebx
add edx, 4
mov dword [esp + 0x14], edx
cmp ebp, 0x10
jb 0x55a220
pop edi
pop esi
pop ebp
mov dword [ecx + 0x32390], 0
pop ebx
add esp, 8
ret
Function at 0x55a290
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x214
push ebx
push ebp
push esi
mov ebx, 4
push edi
mov edi, dword [esp + 0x228]
mov dword [esp + 0x10], ebx
lea ebx, [ebx]
movzx eax, byte [edi + ebx + 0x304a0]
mov ebp, eax
mov dword [esp + 0x20], eax
mov edx, eax
shr ebp, 1
and edx, 1
dec ebp
or edx, 2
mov ecx, ebp
shl edx, cl
mov eax, ebx
sub eax, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x14], eax
lea esi, [eax + 1]
test ebp, ebp
je 0x55a332
mov ebx, dword [esp + 0x1c]
lea ebx, [ebx]
mov eax, esi
mov edx, ebx
sub eax, dword [esp + 0x20]
and edx, 1
add eax, dword [esp + 0x18]
add esi, esi
shr ebx, 1
or esi, edx
movzx ecx, word [edi + eax*2 + 0x3290e]
mov eax, edx
neg eax
shr ecx, 4
sar eax, 4
and eax, 0x7f
xor ecx, eax
mov eax, dword [esp + 0x14]
add eax, dword [edi + ecx*4 + 0x30ca0]
mov dword [esp + 0x14], eax
dec ebp
jne 0x55a2f0
mov ebx, dword [esp + 0x10]
mov dword [esp + ebx*4 + 0x24], eax
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, 0x80
jb 0x55a2b0
lea eax, [esp + 0x24]
mov dword [esp + 0x1c], 4
sub eax, edi
lea ebp, [edi + 0x31750]
lea esi, [edi + 0x32710]
mov dword [esp + 0x18], ebp
lea edx, [edi + 0x31b58]
mov dword [esp + 0x10], esi
sub eax, 0x31b50
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], eax
lea esp, [esp]
xor ebx, ebx
cmp dword [edi + 0x32394], ebx
jbe 0x55a3e0
lea ebx, [ebx]
mov eax, ebx
xor esi, esi
or eax, 0x40
cmp eax, 1
je 0x55a3cb
mov ebp, dword [esp + 0x10]
mov edx, eax
and eax, 1
shr edx, 1
neg eax
sar eax, 4
and eax, 0x7f
movzx ecx, word [ebp + edx*2]
shr ecx, 4
xor ecx, eax
mov eax, edx
add esi, dword [edi + ecx*4 + 0x30ca0]
cmp eax, 1
jne 0x55a3a0
mov ebp, dword [esp + 0x18]
mov dword [ebp + ebx*4], esi
inc ebx
cmp ebx, dword [edi + 0x32394]
jb 0x55a390
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0xe
cmp dword [edi + 0x32394], ecx
jbe 0x55a407
lea ecx, [ecx]
mov eax, ecx
shr eax, 1
sub eax, 5
shl eax, 4
add dword [ebp + ecx*4], eax
inc ecx
cmp ecx, dword [edi + 0x32394]
jb 0x55a3f0
mov eax, dword [ebp]
mov ecx, 4
mov ebx, dword [esp + 0x20]
mov dword [edx - 8], eax
mov eax, dword [ebp + 4]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], eax
add edx, 8
lea ebx, [ebx]
movzx eax, byte [edi + ecx + 0x304a0]
lea edx, [edx + 4]
inc ecx
mov eax, dword [ebp + eax*4]
add eax, dword [ebx + edx - 4]
mov dword [edx - 4], eax
cmp ecx, 0x80
jb 0x55a430
mov edx, dword [esp + 0x14]
sub esi, 0xffffff80
add ebp, 0x100
mov dword [esp + 0x10], esi
add edx, 0x200
mov dword [esp + 0x18], ebp
sub ebx, 0x200
mov dword [esp + 0x14], edx
dec dword [esp + 0x1c]
mov dword [esp + 0x20], ebx
jne 0x55a380
mov dword [edi + 0x3baf8], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret