joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4beadf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f86c0]
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.004b13fb
mov dword [ebp - 0x14], eax
cmp dword [0x4fbe48], esi
jne 0x4bebd2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4beb5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4becb2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4becb2
push 0x4de24c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4becb2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4fbe48], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4fbe4c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4fbe50], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4fbe58], eax
test eax, eax
je 0x4bebcf
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4fbe54], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4bebf7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4bebea
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4bec0c
push 4
pop eax
jmp 0x4becb4
cmp dword [ebp - 0x14], esi
je 0x4bec0c
push dword [0x4fbe48]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4bebf1
mov eax, dword [0x4fbe54]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4bec6a
cmp dword [0x4fbe58], edi
je 0x4bec6a
push eax
call ebx
push dword [0x4fbe58]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4bec6a
test eax, eax
je 0x4bec6a
call ecx
test eax, eax
je 0x4bec5f
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 0x4bec5f
test byte [ebp - 8], 1
jne 0x4bec6a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4bec9a
mov eax, dword [0x4fbe4c]
cmp eax, edi
je 0x4bec97
push eax
call ebx
test eax, eax
je 0x4bec97
call eax
mov esi, eax
test esi, esi
je 0x4bec97
mov eax, dword [0x4fbe50]
cmp eax, edi
je 0x4bec97
push eax
call ebx
test eax, eax
je 0x4bec97
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4fbe48]
call ebx
test eax, eax
je 0x4becb2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4becb4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a768e
mov esp, ebp
pop ebp
ret
Function at 0x1000e1bc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1000e1cb
pop dword [ebp - 0x40]
mov eax, 0x1000e1cb
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x39ecd
push 0
mov eax, 0x2ea9055
sub eax, 0xf2e94ff1
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x4bad
xor ebx, ebx
add ebx, eax
mov esi, 0xac1e6952
sub esi, 0x9c1ce352
add esi, dword [ebp - 0x40]
mov edi, 0x35e842a7
sub edi, 0xbe1ee45d
xor dword [ebp - 8], 0xa0c82eac
mov edx, dword [esi]
xor edx, edi
mov dword [ebp - 0x30], 0xf21958e9
mov dword [ebx], edx
xor dword [ebp - 0x10], edi
add ebx, 0x6cfbfdc7
sub ebx, 0x6cfbfdc3
add esi, 4
loop 0x1000e221
add eax, 0xbb7392ec
sub eax, 0xbb727165
mov ebx, eax
add eax, 0xc7d5b5cf
sub eax, 0xc7d5b5ca
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0xef488ee
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0x449
call fcn.0ef7451f
cmp al, 0x11
jne 0xef48908
or dword [ebp - 4], 0xffffffff
jmp 0xef48918
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov eax, dword [eax*4 + 0xefa5550]
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x485
call fcn.0ef7451f
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0xefbc440]
movzx eax, al
lea esi, [edx + ecx*4]
mov dword [ebp + 0x10], eax
cmp ebx, 1
jne 0xef48972
test eax, eax
jbe 0xef489b4
mov ebx, dword [ebp + 0x18]
shl ebx, 2
push edi
call fcn.0ef7451f
movzx eax, al
mov ecx, eax
shl ecx, 8
or eax, ecx
mov ecx, eax
shl ecx, 0x10
or ecx, eax
and ecx, dword [ebp - 4]
inc edi
xor dword [esi], ecx
add esi, ebx
dec dword [ebp + 0x10]
jne 0xef4894c
jmp 0xef489b4
mov ecx, dword [ebp + 0x18]
sub ecx, ebx
test eax, eax
jbe 0xef489b4
mov eax, ecx
shl eax, 2
mov dword [ebp + 0x18], eax
push edi
call fcn.0ef7451f
movzx ecx, al
mov eax, ecx
shl eax, 8
or ecx, eax
mov eax, ecx
shl eax, 0x10
or eax, ecx
and eax, dword [ebp - 4]
inc edi
mov ecx, ebx
test ebx, ebx
jbe 0xef489ac
xor dword [esi], eax
add esi, 4
dec ecx
jne 0xef489a4
add esi, dword [ebp + 0x18]
dec dword [ebp + 0x10]
jne 0xef48983
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0xef4e3ca
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov al, byte [esi]
xor ebx, ebx
and al, 0x1f
mov dword [ebp - 4], ebx
cmp al, 3
jne 0xef4e40a
push edi
mov edi, 0xefdcb80
mov al, byte [esi + 1]
push dword [ebp + 0xc]
xor al, bl
and al, 3
xor byte [esi + 1], al
push esi
call dword [edi]
add edi, 0x1c
inc ebx
cmp edi, 0xefdcbf0
jl 0xef4e3e8
mov eax, dword [ebp - 4]
pop edi
jmp 0xef4e41f
movzx eax, byte [esi + 1]
push dword [ebp + 0xc]
and eax, 3
imul eax, eax, 0x1c
push esi
call dword [eax + 0xefdcb80]
cwde
pop esi
pop ebx
leave
ret 8
Function at 0xef7a504
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x60
push edi
push 0xa
xor eax, eax
pop ecx
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
sub eax, 3
je 0xef7a531
dec eax
dec eax
je 0xef7a52c
dec eax
dec eax
jne 0xef7a536
lea eax, [ebp - 0x60]
jmp 0xef7a539
lea eax, [ebp - 0x58]
jmp 0xef7a539
lea eax, [ebp - 0x50]
jmp 0xef7a539
mov eax, dword [ebp + 8]
push dword [ebp + 0x10]
push eax
push 1
call fcn.0ef7a35e
xor edi, edi
cmp eax, edi
jl 0xef7a614
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call dword [0xef3156c]
test al, al
jne 0xef7a571
mov eax, 0x80070003
jmp 0xef7a614
mov eax, dword [ebp - 0x20]
push ebx
mov ebx, dword [ebp - 4]
xor ecx, ecx
push esi
cmp cx, ax
je 0xef7a58b
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
jmp 0xef7a58e
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
push 0x4020
lea eax, [ebp - 8]
mov dword [ebp - 0x30], eax
push 7
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x100100
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
call dword [0xef314d0]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
call dword [0xef31568]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push edi
push dword [eax + 0x18]
call dword [fcn.0ef31530]
cmp esi, edi
jl 0xef7a610
push 4
push 0x28
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call dword [0xef31510]
push dword [ebp + 8]
mov esi, eax
call dword [0xef3145c]
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret 0xc
Function at 0xef7b0ce
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
call dword [0xef3156c]
test al, al
jne 0xef7b0fc
mov eax, 0x80070003
jmp 0xef7b1bf
mov eax, dword [ebp - 0x18]
push esi
xor ecx, ecx
push edi
mov edi, dword [ebp - 4]
cmp cx, ax
je 0xef7b116
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
jmp 0xef7b119
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x24], 0x40
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [0xef31578]
mov esi, eax
lea eax, [ebp - 0x18]
push eax
call dword [0xef31568]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push ebx
push dword [eax + 0x18]
call dword [fcn.0ef31530]
cmp esi, ebx
jge 0xef7b16f
mov eax, esi
jmp 0xef7b1bd
mov eax, dword [ebp + 8]
sub eax, 4
je 0xef7b189
dec eax
dec eax
je 0xef7b184
dec eax
dec eax
jne 0xef7b18e
lea eax, [ebp - 0x68]
jmp 0xef7b191
lea eax, [ebp - 0x60]
jmp 0xef7b191
lea eax, [ebp - 0x58]
jmp 0xef7b191
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0ef7a667
neg eax
sbb eax, eax
and eax, 0x10
push eax
call fcn.0ef7a35e
cmp eax, ebx
jge 0xef7b1bd
cmp eax, 0x8007000d
jne 0xef7b1bd
cmp dword [ebp + 8], 4
jne 0xef7b1bd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0xef866b0
Capabilities:
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
push edi
add ecx, ecx
push ecx
push 0
push dword [eax + 0x18]
call dword [fcn.0ef31548]
mov edi, eax
test edi, edi
jne 0xef866ec
push 8
call dword [fcn.0ef31090]
xor eax, eax
pop edi
pop esi
leave
ret 8
mov ax, word [esi]
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 8], ax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
call dword [fcn.0ef31354]
test eax, eax
jne 0xef86726
xor esi, esi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [fcn.0ef31530]
mov eax, esi
jmp 0xef866e6
push edi
lea eax, [ebp - 0x10]
push eax
call dword [fcn.0ef31460]
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call dword [fcn.0ef3149c]
movzx eax, word [ebp - 8]
mov dword [esi], eax
xor esi, esi
inc esi
jmp 0xef8670d

Function at 0xef876e3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ax, word [0xefb99f4]
mov word [ebp - 4], ax
jmp 0xef87768
movzx edx, word [ebp - 4]
mov eax, dword [0xefde83c]
shr edx, 3
shl edx, 3
add eax, edx
cmp byte [eax + 5], 0
jne 0xef87713
cmp byte [eax + 7], 0x80
je 0xef87760
xor eax, eax
xor ecx, ecx
mov ax, word [ebp - 4]
or eax, 7
lsl ecx, eax
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0xffff
jne 0xef87760
mov eax, dword [0xefde83c]
add eax, edx
movzx ecx, byte [eax + 7]
movzx edx, byte [eax + 4]
shl ecx, 8
or ecx, edx
movzx edx, word [eax + 2]
shl ecx, 0x10
or ecx, edx
cmp dword [ebp + 8], ecx
jne 0xef87760
movzx eax, byte [eax + 5]
movzx ecx, byte [ebp + 0xc]
xor eax, ecx
test eax, 0xfffffffe
je 0xef87777
add dword [ebp - 4], 8
mov ax, word [ebp - 4]
cmp ax, word [0xefb99f0]
jb 0xef876f6
xor eax, eax
leave
ret 8
mov eax, dword [ebp - 4]
or eax, 7
jmp 0xef87773
Function at 0x402170
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408134
call sym._EnterCriticalSection_4
mov ebx, dword [0x40812c]
sub esp, 4
test ebx, ebx
je 0x4021bb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4021b4
test esi, esi
je 0x4021b4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402190
mov dword [esp], 0x408134
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4023a0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4023f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4024c4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40242e
cmp eax, 4
jne 0x402450
test esi, esi
je 0x402442
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x402434
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40248f
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x402481
cmp ecx, 0x40
je 0x402442
cmp ecx, 4
je 0x402442
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004023a0
lea esi, [esi]
Function at 0x480605
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
lea ecx, [ebp + 0x10]
cmp dword [ebp + 0x10], eax
push esi
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
setne al
and dword [ebp + 0x10], 0
add eax, 0x80000001
push eax
call dword [0x481020]
mov esi, eax
test esi, esi
jne 0x480659
push dword [ebp + 0xc]
call dword [0x4812d4]
shl eax, 1
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [0x481008]
push dword [ebp + 0x10]
mov esi, eax
call dword [section..rdata]
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret

Function at 0x480663
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
lea ecx, [ebp + 0xc]
cmp dword [ebp + 0xc], eax
push esi
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
setne al
and dword [ebp + 0xc], 0
add eax, 0x80000001
push eax
call dword [0x481020]
mov esi, eax
test esi, esi
jne 0x4806a5
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [0x481018]
push dword [ebp + 0xc]
mov esi, eax
call dword [section..rdata]
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret

Function at 0x4806c6
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc1c
push esi
xor esi, esi
push edi
push esi
call dword [0x481284]
lea ecx, [ebp - 0x41c]
push 0x208
push ecx
push eax
call fcn.004806af
mov eax, dword [0x48d740]
mov ecx, 0x81
mov dword [ebp - 0x214], eax
xor eax, eax
lea edi, [ebp - 0x210]
push 0x487d4c
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
push eax
call fcn.00480c5a
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00480c5a
lea eax, [ebp - 0x214]
push str.___bg
push eax
call fcn.00480c5a
mov eax, dword [0x48d740]
add esp, 0x24
mov dword [ebp - 0xc1c], eax
mov ecx, 0x1ff
xor eax, eax
cmp dword [ebp + 0xc], esi
lea edi, [ebp - 0xc18]
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
setne al
lea ecx, [ebp - 4]
add eax, 0x80000001
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push eax
call dword [0x481020]
push 1
lea eax, [ebp - 0xc]
pop edi
mov dword [ebp - 0xc], 0x400
push eax
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 8], edi
push dword [ebp - 4]
call dword [0x48101c]
test eax, eax
jne 0x4807e5
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00480c82
pop ecx
test eax, eax
pop ecx
je 0x4807e1
lea eax, [ebp - 0x214]
push eax
call dword [0x4812d4]
shl eax, 1
push eax
lea eax, [ebp - 0x214]
push eax
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [0x481008]
mov eax, edi
jmp 0x4807e7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x403970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x5da460], ecx
inc edx
cmp edx, 0x100
jb 0x403972
cmp edx, 0x800
jae 0x403a49
lea esp, [esp]
mov eax, dword [edx*4 + 0x5da060]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x5da460]
inc edx
mov dword [edx*4 + 0x5da45c], eax
cmp edx, 0x800
jb 0x403a20
mov dword [0x5d7110], 0x404490
call fcn.00404660
test eax, eax
jne 0x403a66
mov dword [0x5d7110], 0x404540
ret
Function at 0x406410
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x406429
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x406450
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x40646d
jmp 0x406460
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40646d
inc edi
cmp edi, edx
jb 0x406460
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x406582
cmp ecx, 3
jbe 0x4064a1
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x1c], eax
test cl, cl
je 0x4064db
cmp cl, 0xff
je 0x4064db
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x406450
dec ecx
shl ebp, cl
and ebp, 7
je 0x406486
movzx ecx, byte [ebp + 0x570204]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x5701fc], 0
mov cl, byte [ebx + 4]
je 0x4064c9
test cl, cl
je 0x4064c9
cmp cl, 0xff
jne 0x406486
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
inc eax
jmp 0x406450
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x40650e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x406514
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x406554
movzx esi, byte [ebp + 0x570204]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x406539
cmp dl, 0xff
jne 0x406550
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x406500
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x406450
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x406595
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret
Function at 0x40d790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jle 0x40d8a4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
sub eax, 0xffffff80
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
lea esi, [ecx + 2]
sub ecx, eax
add ecx, 0xfffffffe
lea edx, [eax + 2]
mov dword [esp + 0x18], ecx
lea eax, [edi - 1]
mov dword [esp + 0x10], edx
shr eax, 3
inc eax
mov dword [esp + 0x14], eax
movzx eax, byte [edx - 2]
add ecx, edx
push ecx
mov byte [ecx], al
movzx eax, byte [edx - 1]
mov byte [esi - 1], al
movzx eax, byte [edx]
mov byte [esi], al
movzx eax, byte [edx + 1]
mov byte [esi + 1], al
movzx eax, byte [edx + 2]
mov byte [esi + 2], al
movzx eax, byte [edx + 3]
mov byte [esi + 3], al
movzx eax, byte [edx + 4]
mov byte [esi + 4], al
movzx eax, byte [edx + 5]
mov byte [esi + 5], al
mov edi, dword [edx - 2]
mov ebx, dword [edx + 2]
mov edx, ecx
mov ecx, dword [esp + 0x20]
call fcn.0040ce50
mov ecx, dword [ebp + 8]
lea esi, [esi + 8]
mov edx, dword [esp + 0x14]
add esp, 4
movzx eax, byte [ecx + 0x100]
mov ecx, dword [esp + 0x18]
xor byte [edx + ecx], al
add edx, 8
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], edx
movzx eax, byte [ecx + 0x101]
xor byte [esi - 9], al
movzx eax, byte [ecx + 0x102]
xor byte [esi - 8], al
movzx eax, byte [ecx + 0x103]
xor byte [esi - 7], al
movzx eax, byte [ecx + 0x104]
xor byte [esi - 6], al
movzx eax, byte [ecx + 0x105]
xor byte [esi - 5], al
movzx eax, byte [ecx + 0x106]
xor byte [esi - 4], al
movzx eax, byte [ecx + 0x107]
xor byte [esi - 3], al
sub dword [esp + 0x14], 1
mov dword [ecx + 0x100], edi
mov dword [ecx + 0x104], ebx
mov ecx, dword [esp + 0x18]
jne 0x40d7d5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412b30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ecx
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov ecx, dword [esi + 8]
call fcn.00412a20
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x412b57
mov ecx, dword [esi + 8]
mov dword [ecx + 0xc], eax
mov edi, dword [esi + 8]
lea eax, [ebp + 0xc]
push eax
push 0
push edi
push 0x4129a0
push 0
push 0
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x10], eax
test eax, eax
je 0x412b9b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x412b9b
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0
mov eax, dword [esi + 8]
pop edi
pop esi
mov al, byte [eax + 4]
pop ebp
ret 0xc