joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454d50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x534650]
sub esp, 0x14
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
cmp eax, 0xffffffff
mov ebp, ecx
je 0x454ee6
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x454ee6
push edi
push 0xb8
call fcn.004d8aef
add esp, 4
cmp eax, ebx
je 0x454e86
mov cl, byte [esp + 0x13]
mov dl, byte [esp + 0x13]
mov byte [eax + 0x34], cl
mov cl, byte [esp + 0x13]
mov dword [eax + 0x38], ebx
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x40], ebx
mov byte [eax + 0x44], dl
mov dl, byte [esp + 0x13]
mov dword [eax + 0x48], ebx
mov dword [eax + 0x4c], ebx
mov dword [eax + 0x50], ebx
mov byte [esp + 0x18], bl
mov word [esp + 0x1a], bx
mov edi, dword [esp + 0x18]
lea esi, [eax + 0x28]
mov byte [eax + 0x88], cl
mov dword [eax + 0x8c], ebx
mov dword [eax + 0x90], ebx
mov dword [eax + 0x94], ebx
mov byte [eax + 0x98], dl
mov dword [eax + 0x9c], ebx
mov dword [eax + 0xa0], ebx
mov dword [eax + 0xa4], ebx
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov dword [esi], edi
mov edi, dword [esp + 0x1c]
xor dx, dx
mov ecx, 1
mov dword [esi + 4], edi
mov dword [eax + 0x20], 0x33333333
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov word [esi + 8], dx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x24], 0x40073333
mov dword [eax + 0x54], ecx
mov dword [eax + 0x58], ecx
mov dword [eax + 0x5c], ecx
mov dword [eax + 0x60], ecx
mov dword [eax + 0x64], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], ebx
mov dword [eax + 0x70], ecx
mov dword [eax + 0x74], ecx
mov dword [eax + 0x78], ebx
mov dword [eax + 0x7c], ecx
mov dword [eax + 0x80], ecx
mov dword [eax + 0x84], ebx
mov dword [eax + 0xa8], ebx
mov dword [eax + 0xac], ebx
mov byte [eax + 0xb0], bl
mov dword [eax + 0xb4], ebx
mov esi, eax
jmp 0x454e88
xor esi, esi
mov eax, dword [0x534650]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
cmp eax, ebx
jne 0x454eb2
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [esp + 0x14]
push 0x509398
push ecx
mov dword [esp + 0x1c], eax
call fcn.004c0b6c
push 8
call fcn.004d8aef
add esp, 4
mov edi, eax
push 0x534658
mov dword [edi], esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edx, dword [0x534654]
push 0x534658
mov dword [edi + 4], edx
mov dword [0x534654], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, dword [esi + 4]
inc eax
mov dword [esi + 4], eax
mov dword [ebp], ebx
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x45b600
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x45b630
push esi
call fcn.00464f90
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x45b629
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x45b6b3
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x45b69f
mov eax, dword [esi + 8]
test eax, eax
je 0x45b654
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45b69b
cmp eax, 2
je 0x45b69f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45b647
cmp eax, 3
je 0x45b67a
cmp eax, 1
jne 0x45b647
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45b647
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45b647
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0045b6e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45b6d3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0045b6e0
add esp, 4
pop esi
ret
Function at 0x481e50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
mov ebp, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x60]
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov esi, dword [ebp + 0x10c]
mov eax, dword [ebp + 0x13c]
shr esi, 1
imul ecx, esi
test eax, 0x800000
je 0x481ebf
shl esi, 4
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x92492493
shl ecx, 4
mov esi, edx
imul ecx
mov al, byte [ebp + 0x13c]
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
test al, 0x40
mov ecx, edx
je 0x481ed5
jmp 0x481ed3
mov eax, dword [ebp + 0x13c]
test al, 0x10
je 0x481ed5
shl ecx, 1
shl esi, 1
test al, 0x40
je 0x481ed5
shl ecx, 1
shl esi, 1
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push esi
push ecx
push ebp
call dword [ebp + 0x175]
mov eax, dword [ebx + 0xa4]
add esp, 0x1c
cmp eax, 0xffffffff
jne 0x481f5c
mov ecx, dword [ebx + 0x78]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
push ebx
call dword [ebx + 0x38]
add esp, 0x10
test al, al
jne 0x481f74
mov eax, dword [ebx + 0x98]
mov ecx, dword [ebx + 0x10]
shl eax, 8
mov dword [ebx + 0xa4], eax
mov edx, dword [ecx + 0x104]
cmp edx, edi
je 0x481f74
mov edx, dword [0x51ba94]
mov ecx, dword [edx + 0x3c]
shl ecx, 8
add eax, ecx
mov dword [ebx + 0xa4], eax
mov edx, dword [0x51ba94]
mov ecx, dword [edx + 0x44]
add ecx, eax
mov dword [ebx + 0xa4], ecx
jmp 0x481f74
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [ebx + 8]
mov edx, dword [esp + 0x10]
lea ecx, [ebx + 8]
mov eax, edx
cmp esi, ecx
je 0x481fb7
test esi, esi
je 0x481fae
mov cl, byte [esi + 0x10]
test cl, cl
je 0x481fae
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x481fae
mov edi, dword [esi + 0x14]
push edi
mov edi, dword [ebp + 0x10c]
shr edi, 1
push edi
push eax
push edx
call ecx
mov edx, dword [esp + 0x20]
add esp, 0x10
mov esi, dword [esi]
lea ecx, [ebx + 8]
cmp esi, ecx
jne 0x481f84
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
push edx
push ebp
call dword [ebp + 0x179]
mov eax, dword [ebx + 0x60]
add esp, 0x14
mov ecx, 1
sub ecx, eax
pop edi
pop esi
mov dword [ebx + 0x60], ecx
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x4858d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4858ec
mov cl, byte [esi + 0x20]
test cl, cl
je 0x4858ec
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov dword [esi + 0x1c], 0
pop esi
ret
Function at 0x4859f0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00485900
mov edi, eax
add esp, 4
sub edi, 0x64
cmp edi, 1
jae 0x485a0e
pop edi
xor eax, eax
pop esi
ret
push esi
call fcn.004858d0
add esp, 4
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x485bd0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x1c], eax
mov eax, edi
pop edi
pop esi
ret

Function at 0x486890
Capabilities:
Create thread

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
push eax
push 0
push ecx
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, eax
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 3
ja case.default.0x4868b8
jmp dword [eax*4 + 0x4868f4]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov eax, esi
pop esi
ret
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov eax, esi
pop esi
ret
push 2
push esi
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov eax, esi
pop esi
ret
push 0xf
push esi
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov eax, esi
pop esi
ret

Function at 0x486910
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
ret
Function at 0x48c540
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x33c
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionMultimediaMIDIMap
push SysReAllocStringLen
mov dword [esp + 0x28], 0x100
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48c678
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14c]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.CurrentInstrument
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
xor ebp, ebp
mov ecx, 0x4d
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [0x54c71c]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x134
push ecx
mov edx, dword [eax]
push ebp
push eax
call dword [edx + 0xc]
mov edi, eax
test edi, edi
jne 0x48c62d
cmp dword [esp + 0x30], 1
jne 0x48c62d
push edi
push edi
lea edx, [esp + 0x254]
push 0x100
push edx
lea eax, [esp + 0x5c]
push 0xffffffffffffffff
push eax
push edi
push edi
call ebx
lea esi, [esp + 0x14c]
lea eax, [esp + 0x24c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x48c624
test cl, cl
je 0x48c620
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x48c624
add eax, 2
add esi, 2
test cl, cl
jne 0x48c600
xor eax, eax
jmp 0x48c629
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x48c638
inc ebp
cmp edi, 1
je 0x48c665
jmp 0x48c5a5
mov eax, dword [esp + 0x350]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [0x51ba94]
test byte [eax + 8], 1
je 0x48c678
mov eax, dword [0x54c71c]
mov edx, dword [esp + 0x350]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x33c
ret
Function at 0x49c0f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x84
push ebx
push esi
lea eax, [esp + 8]
push edi
mov esi, ecx
push eax
xor edi, edi
push str.software_asio
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
mov dword [esi + 4], edi
mov dword [esi], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x49c15d
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov eax, edi
push 0x80
push ecx
push eax
push edx
inc edi
call ebx
test eax, eax
jne 0x49c15d
mov eax, dword [esi]
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push 0
push ecx
push edx
call fcn.0049c1a0
add esp, 0x10
mov dword [esi], eax
jmp 0x49c129
mov eax, dword [esp + 0xc]
test eax, eax
je 0x49c16c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
test eax, eax
je 0x49c183
mov edx, dword [esi + 4]
inc edx
mov dword [esi + 4], edx
mov eax, dword [eax + 0x298]
test eax, eax
jne 0x49c172
mov eax, dword [esi + 4]
test eax, eax
je 0x49c192
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x84
ret
Function at 0x49c1a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3e4
push ebx
mov ebx, dword [esp + 0x3f8]
test ebx, ebx
jne 0x49c337
mov ecx, dword [esp + 0x3f0]
mov edx, dword [esp + 0x3ec]
lea eax, [esp + 0xc]
push eax
push 0x20019
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x49c365
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
push ebx
push str.clsid
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x100
call esi
test eax, eax
jne 0x49c320
lea ecx, [esp + 0x1f0]
push 0x200
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.0049c370
add esp, 0xc
test eax, eax
jne 0x49c320
push 0x29c
call fcn.004d8aef
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x49c320
mov ecx, 0xa7
xor eax, eax
mov edi, ebx
push 0x64
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x400]
lea ecx, [esp + 0x12c]
push ecx
lea edx, [esp + 0x30]
push 0xffffffffffffffff
push edx
push 0
push 0
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x128]
push eax
push ecx
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
jne 0x49c2b9
mov eax, dword [esp + 0x18]
lea edx, [ebx + 4]
mov dword [ebx + 4], eax
mov ecx, dword [esp + 0x1c]
mov dword [edx + 4], ecx
mov eax, dword [esp + 0x20]
mov dword [edx + 8], eax
mov ecx, dword [esp + 0x24]
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x10]
lea eax, [esp + 0x28]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.description
push edx
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 0x100
call esi
test eax, eax
jne 0x49c2f6
lea edi, [esp + 0x28]
lea edx, [ebx + 0x214]
jmp 0x49c303
mov edi, dword [esp + 0x3f8]
lea edx, [ebx + 0x214]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x3e4
ret
mov eax, dword [esp + 0x3f4]
mov edx, dword [ebx + 0x298]
mov ecx, dword [esp + 0x3f0]
inc eax
push edx
mov edx, dword [esp + 0x3f0]
push eax
push ecx
push edx
call fcn.0049c1a0
add esp, 0x10
mov dword [ebx + 0x298], eax
mov eax, ebx
pop ebx
add esp, 0x3e4
ret
Function at 0x49c370
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2a4
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2b4]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
or ebx, 0xffffffff
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x1c], ebx
push ecx
push esi
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [esp + 0x10]
push eax
push str.clsid
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x49c536
mov ebx, dword [esp + 0x2bc]
xor ecx, ecx
jmp 0x49c3d1
mov esi, dword [esp + 0x2b8]
mov ecx, dword [esp + 0x20]
test ebp, ebp
jne 0x49c51c
mov edx, dword [esp + 0x10]
mov eax, ecx
inc ecx
push 0x200
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0xb8]
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x49c51c
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xb4]
push ecx
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffA]
lea eax, [esp + 0xb4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x49c44a
test cl, cl
je 0x49c446
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x49c44a
add eax, 2
add esi, 2
test cl, cl
jne 0x49c426
xor eax, eax
jmp 0x49c44f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x49c3c6
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0xb4]
push eax
push 0x20019
push 0
push ecx
push edx
call edi
mov esi, eax
test esi, esi
jne 0x49c50f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push 0x20019
push esi
push str.InprocServer32
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x49c504
mov edx, dword [esp + 0x2c0]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ebx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
push ecx
push esi
push esi
push edx
mov dword [esp + 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x49c4f9
mov ecx, 0x22
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push 0x4000
push eax
push ebx
mov byte [esp + 0x38], 0x88
call dword [sym.imp.KERNEL32.DLL_OpenFile]
test eax, eax
je 0x49c4f9
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
mov ebp, 1
je 0x49c3c6
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2a4
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x2a4
ret
Function at 0x4a4bd0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x4a4c70
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x4a4c22
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x522444]
xor eax, edx
inc esi
cmp esi, edi
jl 0x4a4c03
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x4a4c4b
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x522444]
xor eax, edx
inc esi
cmp esi, edi
jl 0x4a4c2e
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x4aae00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
mov eax, 1
push ebx
mov ebx, dword [esp + 0x68]
mov word [esp + 0xc], ax
mov word [esp + 0x2c], ax
push ebp
xor ecx, ecx
lea edx, [esp + 0x30]
lea eax, [esp + 0x10]
push esi
push edi
mov word [esp + 0x1a], 2
mov dword [esp + 0x28], 0x1f40
mov dword [esp + 0x2c], 0x2b11
mov dword [esp + 0x30], 0x5622
mov dword [esp + 0x34], 0xac44
mov word [esp + 0x1c], 8
mov word [esp + 0x1e], 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x4c], 0x24
mov dword [esp + 0x50], 0x14
mov dword [esp + 0x54], 4
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov word [esp + 0x48], cx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x28]
mov dword [esp + 0x20], 0
mov dword [esp + 0x74], eax
mov dx, word [ecx]
mov word [esp + 0x3a], dx
mov ecx, dword [esp + 0x74]
xor ebp, ebp
lea edi, [esp + 0x1c]
mov edx, dword [ecx]
mov dword [esp + 0x3c], edx
mov ax, word [edi]
mov ecx, dword [esp + 0x3a]
mov word [esp + 0x46], ax
mov eax, dword [esp + 0x46]
and eax, 0xffff
and ecx, 0xffff
imul eax, ecx
cdq
and edx, 7
lea ecx, [esp + 0x14]
add eax, edx
push 0
sar eax, 3
mov word [esp + 0x48], ax
mov edx, dword [esp + 0x48]
and edx, 0xffff
mov eax, dword [ebx]
imul edx, dword [esp + 0x40]
mov dword [esp + 0x44], edx
lea edx, [esp + 0x50]
push ecx
push edx
push ebx
call dword [eax + 0xc]
mov esi, eax
test esi, esi
jge 0x4aaf5c
inc ebp
add edi, 2
cmp ebp, 2
jb 0x4aaeb6
test esi, esi
jge 0x4aaf5c
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x74]
inc eax
add edx, 4
cmp eax, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x74], edx
jb 0x4aaea6
test esi, esi
jge 0x4aaf5c
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
inc eax
add edx, 2
cmp eax, 2
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], edx
jb 0x4aae8a
test esi, esi
jl 0x4aaf71
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x78]
push edx
push 0x4fcad8
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4aaf7f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret
Function at 0x4b27bc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x4b2803
cmp edx, 0x10
jl 0x4b27ef
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x4b27dc
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x4b2803
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x4b27fb
and edx, 3
cmp edx, 3
jne 0x4b2817
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x4b281c
cmp edx, 2
jne 0x4b2828
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x4b282d
cmp edx, 1
jne 0x4b2833
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x4c1088
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c10a8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004c2d0f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4c10cb
test byte [esp + 8], 2
je 0x4c10cb
call fcn.004c2d82
mov dword [eax], 0xd
call fcn.004c2d8b
mov dword [eax], 5
jmp 0x4c10a4
xor eax, eax
ret

Function at 0x4c8656
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x52ba28
cmp edx, dword [eax]
je 0x4c8678
add eax, 8
inc ecx
cmp eax, 0x52bab8
jl 0x4c8669
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x52ba28]
jne 0x4c87a6
mov eax, dword [0x562b58]
cmp eax, 1
je 0x4c8780
test eax, eax
jne 0x4c86a9
cmp dword [0x52aef4], 1
je 0x4c8780
cmp edx, 0xfc
je 0x4c87a6
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4c86e0
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c8a80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c7f00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c8723
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c7f00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4fff08
push edi
call fcn.004c08f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c8a80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c8a90
lea eax, [ebp - 0xa0]
push 0x4ffee8
push eax
call fcn.004c8a90
push dword [esi + 0x52ba2c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c8a90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004ccb3e
add esp, 0x2c
pop edi
jmp 0x4c87a6
lea eax, [ebp + 8]
lea esi, [esi + 0x52ba2c]
push 0
push eax
push dword [esi]
call fcn.004c7f00
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