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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.100076e0
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.100076e0
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401f6e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb18
cmp dword [0x2d3cb00], 0x594
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x28], esi
mov ebx, dword [esi]
mov edi, dword [esi + 4]
mov dword [ebp - 0x10], ebx
jne 0x401fa4
push 0
lea eax, [ebp - 0xb18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x4245b0]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
mov dword [ebp - 0x20], eax
mov eax, dword [0x4245b4]
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x30], eax
call fcn.00401f64
mov ecx, dword [0x4245b8]
mov eax, dword [0x4245bc]
add dword [ebp - 4], 0x23f
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], eax
pop esi
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, ebx
mov edx, 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x2d3cb00], 0xfa9
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [0x2d3c0fc]
cmove eax, edx
xor edx, edx
cmp dword [0x2d3cb00], 0x3eb
mov dword [0x2d3c0fc], eax
mov eax, dword [0x2d3baf0]
cmove eax, edx
add ecx, ebx
mov dword [0x2d3baf0], eax
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
xor ebx, ebx
mov eax, dword [ebp - 8]
xor edx, ecx
add eax, dword [ebp - 0x2c]
mov ecx, dword [0x2d3cb00]
xor eax, edx
mov dword [0x2d3c0f8], 0xf4ea3dee
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
cmp ecx, 0x213
jne 0x4020bf
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x318]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x4c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov eax, dword [ebp - 8]
mov ecx, dword [0x2d3cb00]
sub edi, eax
cmp ecx, 0xc
jne 0x4020d5
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, edi
shl eax, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov eax, edi
mov edx, dword [ebp - 4]
shr eax, cl
add edx, edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
xor eax, edx
mov edx, dword [ebp - 0xc]
xor edx, eax
mov dword [ebp - 0xc], edx
call fcn.00401f6b
mov eax, dword [ebp - 0x18]
sub dword [ebp - 4], eax
dec esi
je 0x402121
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
jmp 0x401fe2
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4168ae
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423458]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408cf5
mov dword [ebp - 0x14], eax
cmp dword [0x463214], esi
jne 0x4169a1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41692e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x416a81
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x416a81
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x416a81
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x463214], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x463218], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x46321c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x463224], eax
test eax, eax
je 0x41699e
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x463220], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4169c6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4169b9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4169db
push 4
pop eax
jmp 0x416a83
cmp dword [ebp - 0x14], esi
je 0x4169db
push dword [0x463214]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4169c0
mov eax, dword [0x463220]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x416a39
cmp dword [0x463224], edi
je 0x416a39
push eax
call ebx
push dword [0x463224]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x416a39
test eax, eax
je 0x416a39
call ecx
test eax, eax
je 0x416a2e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x416a2e
test byte [ebp - 8], 1
jne 0x416a39
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x416a69
mov eax, dword [0x463218]
cmp eax, edi
je 0x416a66
push eax
call ebx
test eax, eax
je 0x416a66
call eax
mov esi, eax
test esi, esi
je 0x416a66
mov eax, dword [0x46321c]
cmp eax, edi
je 0x416a66
push eax
call ebx
test eax, eax
je 0x416a66
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x463214]
call ebx
test eax, eax
je 0x416a81
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x416a83
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406eba
mov esp, ebp
pop ebp
ret
Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6fa0], dl
nop
pushal
nop
nop
nop
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x74331f4d
nop
nop
nop
nop
test eax, eax
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x431fdf
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x5f0762c1
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10003368
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10003377
pop dword [ebp - 0xc]
mov eax, 0x7d20d63d
sub eax, 0x6d20a2c6
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xc61a0912
add dword [ebp - 0x1c], 0x88383c39
mov dword [ebp - 0x18], 0xabef9c02
sub dword [ebp - 0x18], 0x79bc4fbd
mov dword [ebp - 0x14], 0x3abedd3b
sub dword [ebp - 0x14], 0xee72990d
mov dword [ebp - 0x10], 0x6d227b7f
sub dword [ebp - 0x10], 0x6d227b7f
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x77337761
sub eax, 0x67333719
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x7fb34225
sub dword [ebp - 0x1c], 0xb40d8cf
mov dword [ebp - 0x18], 0xe76164d6
add dword [ebp - 0x18], 0x5a0afc9f
mov dword [ebp - 0x14], 0x84dba7ad
sub dword [ebp - 0x14], 0x216c3b41
mov dword [ebp - 0x10], 0xd0549f87
add dword [ebp - 0x10], 0x2fab6079
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3607f
push 0
call eax
mov ecx, 0x15392c3
sub ecx, 0x1534d10
xor edx, edx
add edx, eax
mov ebx, 0x10009600
add ebx, dword [ebp - 0xc]
mov esi, 0xbcd0ecdc
sub esi, 0xd699a5a
xor dword [ebp - 8], 0x6d2f6a62
mov edi, dword [ebx]
add dword [ebp - 4], eax
add edi, esi
xor dword [ebp - 8], ecx
mov dword [edx], edi
add edx, 0xb4bb20f7
add edx, 0x4b44df0d
add ebx, 4
loop 0x10003490
add eax, 0x1099f
mov ebx, eax
add eax, 0xcf55186b
add eax, 0x30aae79a
mov ecx, 0x6eae2d6e
add ecx, 0xa151d292
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x4a0440
Capabilities:
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x4a0456
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x4a044f
mov edx, esp
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov ebx, dword [ebp - 4]
shr ebx, 8
and ebx, 0xff
mov eax, dword [ebp - 4]
shr eax, 0x10
and eax, 0xff
mov esi, dword [ebp - 4]
shr esi, 0x18
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov esi, dword [esi + 8]
cmp dword [esi - 4], 0x20
jne 0x4a04e1
movzx ecx, byte [ecx + 0x4bcfb8]
mov esi, dword [edx + 0xc]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x4bceb8]
mov esi, dword [edx + 0xc]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x4bceb8]
mov esi, dword [edx + 0xc]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x4bcfb8]
mov edi, dword [edx + 0xc]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov esi, dword [esi + 8]
cmp dword [esi - 4], 0x18
jl 0x4a053e
movzx ecx, byte [ecx + 0x4bcfb8]
mov esi, dword [edx + 8]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x4bcfb8]
mov esi, dword [edx + 8]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x4bceb8]
mov esi, dword [edx + 8]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x4bceb8]
mov edi, dword [edx + 8]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
movzx ecx, byte [ecx + 0x4bceb8]
mov esi, dword [edx + 4]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x4bcfb8]
mov esi, dword [edx + 4]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x4bceb8]
mov esi, dword [edx + 4]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x4bcfb8]
mov edi, dword [edx + 4]
shr edi, 0x18
xor esi, edi
mov dword [ebp - 8], esi
movzx ecx, byte [ecx + 0x4bceb8]
mov esi, dword [edx]
and esi, 0xff
xor ecx, esi
movzx ebx, byte [ebx + 0x4bceb8]
mov esi, dword [edx]
shr esi, 8
and esi, 0xff
xor ebx, esi
movzx eax, byte [eax + 0x4bcfb8]
mov esi, dword [edx]
shr esi, 0x10
and esi, 0xff
xor eax, esi
mov esi, dword [ebp - 8]
movzx esi, byte [esi + 0x4bcfb8]
mov edx, dword [edx]
shr edx, 0x18
xor esi, edx
mov dword [ebp - 8], esi
mov edx, dword [ecx*4 + 0x4bd0b8]
xor edx, dword [ebx*4 + 0x4bd4b8]
xor edx, dword [eax*4 + 0x4bd8b8]
mov eax, dword [ebp - 8]
xor edx, dword [eax*4 + 0x4bdcb8]
mov eax, edx
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4a0740
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
and ecx, 0xff
xor ebx, ebx
mov esi, dword [edx + ebx*4]
imul edi, ecx, 0x1010101
xor esi, edi
mov dword [eax + ebx*4], esi
inc ebx
cmp ebx, 0x40
jne 0x4a074b
pop edi
pop esi
pop ebx
ret
Function at 0x4a0764
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
mov edx, 0x4bceb8
lea eax, [ebp - 0x100]
call fcn.004a0740
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
and edx, 0xff
xor eax, eax
lea ecx, [ebp - 0x100]
mov ebx, eax
add ebx, ebx
mov esi, dword [ebp + 8]
mov esi, dword [esi - 0x20]
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x4bceb8]
xor edi, edx
mov edi, dword [edi*4 + 0x4bd0b8]
mov dword [esi + ebx*4], edi
inc eax
inc ecx
cmp eax, 0x100
jne 0x4a079a
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 8
mov edx, 0x4bcfb8
lea eax, [ebp - 0x100]
call fcn.004a0740
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
shr edx, 8
and edx, 0xff
xor eax, eax
lea ecx, [ebp - 0x100]
mov ebx, eax
add ebx, ebx
mov esi, dword [ebp + 8]
mov esi, dword [esi - 0x20]
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x4bceb8]
xor edi, edx
mov edi, dword [edi*4 + 0x4bd4b8]
mov dword [esi + ebx*4 + 4], edi
inc eax
inc ecx
cmp eax, 0x100
jne 0x4a07f3
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 0x10
mov edx, 0x4bceb8
lea eax, [ebp - 0x100]
call fcn.004a0740
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
shr edx, 0x10
and edx, 0xff
xor eax, eax
lea ecx, [ebp - 0x100]
mov ebx, eax
add ebx, ebx
mov esi, dword [ebp + 8]
mov esi, dword [esi - 0x20]
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x4bcfb8]
xor edi, edx
mov edi, dword [edi*4 + 0x4bd8b8]
mov dword [esi + ebx*4 + 0x800], edi
inc eax
inc ecx
cmp eax, 0x100
jne 0x4a084d
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 0x18
mov edx, 0x4bcfb8
lea eax, [ebp - 0x100]
call fcn.004a0740
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
shr edx, 0x18
xor eax, eax
lea ecx, [ebp - 0x100]
mov ebx, eax
add ebx, ebx
mov esi, dword [ebp + 8]
mov esi, dword [esi - 0x20]
movzx edi, byte [ecx]
movzx edi, byte [edi + 0x4bcfb8]
xor edi, edx
mov edi, dword [edi*4 + 0x4bdcb8]
mov dword [esi + ebx*4 + 0x804], edi
inc eax
inc ecx
cmp eax, 0x100
jne 0x4a08a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a08d8
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
mov edx, 0x4bcfb8
lea eax, [ebp - 0x100]
call fcn.004a0740
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
and edx, 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
and ecx, 0xff
xor eax, eax
lea ebx, [ebp - 0x100]
mov esi, eax
add esi, esi
mov edi, dword [ebp + 8]
mov edi, dword [edi - 0x20]
lea esi, [edi + esi*4]
push esi
movzx esi, byte [ebx]
movzx esi, byte [esi + 0x4bceb8]
xor esi, ecx
movzx esi, byte [esi + 0x4bceb8]
xor esi, edx
mov esi, dword [esi*4 + 0x4bd0b8]
pop edi
mov dword [edi], esi
inc eax
inc ebx
cmp eax, 0x100
jne 0x4a091a
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 8
mov edx, 0x4bcfb8
lea eax, [ebp - 0x100]
call fcn.004a0740
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
shr edx, 8
and edx, 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 8
and ecx, 0xff
xor eax, eax
lea ebx, [ebp - 0x100]
mov esi, eax
add esi, esi
mov edi, dword [ebp + 8]
mov edi, dword [edi - 0x20]
lea esi, [edi + esi*4 + 4]
push esi
movzx esi, byte [ebx]
movzx esi, byte [esi + 0x4bcfb8]
xor esi, ecx
movzx esi, byte [esi + 0x4bceb8]
xor esi, edx
mov esi, dword [esi*4 + 0x4bd4b8]
pop edi
mov dword [edi], esi
inc eax
inc ebx
cmp eax, 0x100
jne 0x4a098f
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 0x10
mov edx, 0x4bceb8
lea eax, [ebp - 0x100]
call fcn.004a0740
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
shr edx, 0x10
and edx, 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 0x10
and ecx, 0xff
xor eax, eax
lea ebx, [ebp - 0x100]
mov esi, eax
add esi, esi
mov edi, dword [ebp + 8]
mov edi, dword [edi - 0x20]
lea esi, [edi + esi*4 + 0x800]
push esi
movzx esi, byte [ebx]
movzx esi, byte [esi + 0x4bceb8]
xor esi, ecx
movzx esi, byte [esi + 0x4bcfb8]
xor esi, edx
mov esi, dword [esi*4 + 0x4bd8b8]
pop edi
mov dword [edi], esi
inc eax
inc ebx
cmp eax, 0x100
jne 0x4a0a05
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x10]
shr ecx, 0x18
mov edx, 0x4bceb8
lea eax, [ebp - 0x100]
call fcn.004a0740
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x18]
shr edx, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0x14]
shr ecx, 0x18
xor eax, eax
lea ebx, [ebp - 0x100]
mov esi, eax
add esi, esi
mov edi, dword [ebp + 8]
mov edi, dword [edi - 0x20]
lea esi, [edi + esi*4 + 0x804]
push esi
movzx esi, byte [ebx]
movzx esi, byte [esi + 0x4bcfb8]
xor esi, ecx
movzx esi, byte [esi + 0x4bcfb8]
xor esi, edx
mov esi, dword [esi*4 + 0x4bdcb8]
pop edi
mov dword [edi], esi
inc eax
inc ebx
cmp eax, 0x100
jne 0x4a0a72
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4abd6c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4abee3
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x10], 0
jne 0x4abecd
mov byte [ebx + 0xc], cl
mov al, byte [ebp + 8]
mov byte [ebx + 0xd], al
sub cl, 1
jb 0x4abdaf
je 0x4abe58
jmp 0x4abeb5
mov eax, esi
call fcn.00409790
test al, al
jne 0x4abddf
push 0
lea edx, [ebp - 4]
mov eax, dword [0x4bf75c]
call fcn.00406a00
mov eax, dword [ebp - 4]
push eax
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0xc]
xor ecx, ecx
pop eax
call fcn.00485dfc
mov edx, esi
mov eax, dword [ebx]
call fcn.004ac330
test al, al
jne 0x4abe04
push 0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4abefc
call fcn.00485dfc
mov edx, esi
mov eax, dword [ebx]
call fcn.004ac4bc
mov eax, esi
call fcn.00404b90
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
test eax, 1
seta al
mov byte [ebx + 0x14], al
cmp byte [ebx + 0x14], 0
je 0x4abe30
xor edi, edi
jmp 0x4abe34
mov di, 2
cmp byte [ebp + 8], 0
je 0x4abe40
or di, 0x10
jmp 0x4abe44
or di, 0x40
push edi
mov ecx, esi
mov dl, 1
mov eax, dword [0x4a22a0]
call fcn.004ab224
mov dword [ebx + 0x10], eax
jmp 0x4abeb5
mov eax, esi
call fcn.004a3ff4
test al, al
jne 0x4abe7b
push 0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0xc]
xor ecx, ecx
mov eax, 0x4abf2c
call fcn.00485dfc
mov eax, esi
call fcn.004a3e94
mov edi, eax
mov edx, edi
mov eax, dword [ebx]
call fcn.004ac2a0
test al, al
jne 0x4abea9
push 0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea edx, [ebp - 0xc]
mov eax, 0x4abefc
xor ecx, ecx
call fcn.00485dfc
mov edx, edi
mov eax, dword [ebx]
call fcn.004ac38c
mov dword [ebx + 0x10], edi
lea eax, [ebx + 8]
mov edx, esi
call fcn.00404724
mov eax, ebx
call fcn.004abf90
mov eax, ebx
call fcn.004ac028
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4abeea
lea eax, [ebp - 4]
call fcn.004046d0
ret

Function at 0x4b5560
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
mov dword [esp], 0xf
push esp
lea eax, [esp + 8]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x4b5587
mov edx, ebx
lea eax, [esp + 4]
call fcn.00409c60
add esp, 0x14
pop ebx
ret
Function at 0x4b5798
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b5837
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 0x105]
push eax
push 0
push esi
push 8
call sub.user32.dll_GetDesktopWindow
push eax
call sub.SHFolder.dll_SHGetFolderPathA
call fcn.0041a044
test al, al
jne 0x4b57ec
mov edx, ebx
lea eax, [ebp - 0x105]
call fcn.00409c60
jmp 0x4b57f3
mov eax, ebx
call fcn.004046d0
mov al, byte [0x4b5844]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebx]
mov ecx, 0x4b5850
mov edx, 0x4b5868
call fcn.0040e6d8
mov edx, dword [ebp - 0x10c]
mov eax, ebx
call fcn.00404724
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b583e
lea eax, [ebp - 0x10c]
call fcn.004046d0
ret