joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d5c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4dfb64]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x94
push esi
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0048bdc0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
call edi
test eax, eax
jne 0x403da7
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
call edi
test eax, eax
je 0x403db7
cmp dword [ebp - 0x10], 2
jne 0x403db7
cmp dword [ebp - 0x1c], 5
jbe 0x403db7
mov al, 1
jmp 0x403db9
xor al, al
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.0048b5ab
add ebp, 0x78
leave
ret

Function at 0x40431d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 2
push ebx
push esi
push edi
jne 0x40437b
movzx eax, word [ebp + 0xc]
push eax
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_LoadBitmapA]
push 0x10
mov ebx, eax
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, edi
je 0x404366
lea eax, [ebp + 0x10]
push eax
push edi
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp + 0x10], edi
call sub.gdiplus.dll_GdipCreateBitmapFromHBITMAP
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
mov edi, esi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi + 0x7c], edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esi + 0x7c]
jmp 0x40441c
call fcn.0046eaa8
mov esi, dword [eax + 8]
push dword [ebp + 0x10]
movzx eax, word [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
xor edi, edi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0048bf40
add esp, 0xc
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [ebp - 4]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
cmp esi, edi
je 0x4043ff
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], edi
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x404401
xor esi, esi
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [edi + 0x7c], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [edi + 0x7c]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4047ab
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ad809
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4dfb64]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00403c38
push dword [ebx + 0x2d0]
push 1
push 0x80
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
and dword [esp + 0x14], 0
and dword [esp + 0x50], 0
push 0x86
lea esi, [esp + 0x18]
call fcn.0040191c
lea eax, [esp + 0x2c]
push eax
push 0x18
push dword [esp + 0x1c]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
push 0x31
pop edx
push 0x3e8
push ebx
push ecx
push eax
lea eax, [edx + 0x7f]
push eax
lea esi, [ebx + 0x88]
mov edi, dword [esi]
push edx
lea ecx, [esp + 0x34]
call fcn.00404ae6
push eax
push 0x50000001
push 0
mov ecx, esi
call dword [edi + 0x134]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edi, dword [ebx + 0x1ac]
push 0x3e9
push ebx
push ecx
mov edx, 0xd8
push eax
lea eax, [edx - 0x28]
push eax
push edx
lea ecx, [esp + 0x34]
call fcn.00404ae6
push eax
push 0x50000000
push 0
lea ecx, [ebx + 0x1ac]
call dword [edi + 0x134]
mov eax, 0x86
push eax
push 0x87
push 0x88
push eax
mov edi, esi
call fcn.0040208e
mov eax, esi
call fcn.00402227
mov eax, 0x333300
push eax
mov dword [esi + 0x70], 1
mov dword [esi + 0x6c], eax
call fcn.00402243
mov eax, 0x8c
push eax
push 0x89
push 0x8b
lea esi, [ebx + 0x1ac]
push eax
mov edi, esi
call fcn.0040208e
mov eax, esi
call fcn.00402227
mov dword [esi + 0x70], 1
mov eax, 0x333300
push eax
mov dword [esi + 0x6c], eax
call fcn.00402243
push 0x190
push 0xc
lea esi, [ebx + 0x2d4]
push esi
xor cl, cl
call fcn.00404ab5
mov eax, dword [esp + 0x30]
push 0xf
pop ecx
push 0x31
pop edx
push 0xffffffffffffffff
push ebx
push ecx
push eax
lea eax, [edx + 0x6e]
push eax
push edx
lea ecx, [esp + 0x34]
mov dword [ebx + 0x19c], esi
mov dword [ebx + 0x1a0], 0xeaff
mov dword [ebx + 0x1a8], 0x40021
call fcn.00404ae6
push eax
mov eax, dword [ebx + 0x148]
push 0x5000000d
mov edi, 0x4c8168
push edi
lea ecx, [ebx + 0x148]
call dword [eax + 0x134]
push 0
lea ecx, [ebx + 0x148]
call fcn.0046d933
mov eax, dword [esp + 0x30]
push 0xf
pop ecx
push 0xffffffffffffffff
push ebx
push ecx
push eax
mov eax, 0x9f
push eax
add eax, 0x39
mov dword [ebx + 0x2c0], esi
push eax
lea ecx, [esp + 0x34]
mov dword [ebx + 0x2c4], 0xeaff
mov dword [ebx + 0x2cc], 0x40021
lea esi, [ebx + 0x26c]
call fcn.00404ae6
push eax
mov eax, dword [esi]
push 0x5000000d
push edi
mov ecx, esi
call dword [eax + 0x134]
push 0
mov ecx, esi
call fcn.0046d933
lea esi, [esp + 0x14]
call fcn.0040190b
xor eax, eax
inc eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405660
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x4dfb64]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x1c
mov eax, 0x4addb4
call fcn.004919bd
lea eax, [ebp - 0x28]
push eax
call fcn.0042f167
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x28]
mov dword [esp], 0x4c7ffc
push eax
lea eax, [ebp]
push eax
call fcn.0040664a
mov eax, dword [ebp + 4]
add esp, 0xc
cmp dword [ebp + 0x18], 0x10
jae 0x4056b5
lea eax, [ebp + 4]
push eax
push 0x104
lea eax, [ebp + 0x1c]
push eax
push str.http:__bw.zqgame.com
push str.patchaddr
push str.setup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push esi
push esi
lea eax, [ebp + 0x1c]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push esi
push 1
lea ecx, [ebp]
call fcn.004068b9
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.004068b9
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0048b5ab
add ebp, 0x124
leave
ret
Function at 0x40e213
Capabilities:
Read .ini file

Disassembly:
push 0x36c
mov eax, 0x4af79f
call fcn.00491a26
mov eax, dword [ebp + 8]
mov dword [ebp - 0x370], eax
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov esi, edx
push eax
mov dword [ebp - 0x378], eax
mov dword [ebp - 0x374], ebx
mov dword [ebp - 0x36c], esi
call fcn.0048bd30
pop ecx
mov edi, eax
push ebx
inc edi
call fcn.0048bd30
mov ebx, eax
mov eax, dword [esi + 4]
inc ebx
test eax, eax
pop ecx
jne 0x40e267
and dword [ebp - 0x364], eax
jmp 0x40e272
mov esi, dword [esi + 8]
sub esi, eax
mov dword [ebp - 0x364], esi
mov eax, dword [ebp - 0x364]
add eax, ebx
lea eax, [eax + edi + 0x90]
push eax
mov dword [ebp - 0x368], eax
call fcn.00466578
pop ecx
push 0x20
mov esi, eax
push str.PatchUpdate_ztgame.com
push esi
call fcn.0048eb10
add esp, 0xc
push 0x20
lea eax, [esi + 0x40]
push 0x4ca060
push eax
call fcn.0048eb10
add esp, 0xc
push 0x20
push dword [ebp - 0x370]
lea eax, [esi + 0x20]
push eax
call fcn.0048eb10
add esp, 0xc
push 0x20
lea eax, [esi + 0x60]
push 0x4c8d54
push eax
call fcn.0048eb10
mov eax, dword [ebp - 0x364]
add esp, 0xc
push dword [ebp - 0x378]
mov dword [esi + 0x8c], eax
lea eax, [esi + 0x90]
push eax
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], ebx
mov dword [esi + 0x80], 0x16
mov dword [ebp - 0x364], eax
call fcn.0048be40
push dword [ebp - 0x374]
add dword [ebp - 0x364], edi
push dword [ebp - 0x364]
call fcn.0048be40
mov edi, dword [ebp - 0x364]
add edi, ebx
add esp, 0x10
xor ebx, ebx
xor ecx, ecx
mov eax, dword [ebp - 0x36c]
mov edx, dword [eax + 4]
cmp edx, ebx
je 0x40e359
mov eax, dword [eax + 8]
sub eax, edx
cmp ecx, eax
jae 0x40e359
mov al, byte [edx + ecx]
mov byte [ecx + edi], al
inc ecx
jmp 0x40e33a
push ebx
lea eax, [ebp - 0x328]
push str.BugAddr_d
push eax
call fcn.0048c2a5
add esp, 0xc
push ebx
lea eax, [ebp - 0x220]
push str.BugPort_d
push eax
call fcn.0048c2a5
lea eax, [ebp - 0x360]
add esp, 0xc
push eax
call fcn.0042f167
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x360]
mov dword [esp], str.patchsetup.ini
push eax
lea eax, [ebp - 0x344]
push eax
call fcn.0040664a
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [ebp - 0x32c], 0x10
mov eax, dword [ebp - 0x340]
jae 0x40e3c8
lea eax, [ebp - 0x340]
push eax
push 0x104
lea eax, [ebp - 0x118]
push eax
push str.game.ztgame.comp
lea eax, [ebp - 0x328]
push eax
mov edi, str.Setup
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [ebp - 0x32c], 0x10
mov eax, dword [ebp - 0x340]
jae 0x40e402
lea eax, [ebp - 0x340]
push eax
push 0x26b2
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 0x368]
push esi
push eax
lea edx, [ebp - 0x118]
call fcn.0040e498
push esi
call fcn.00466573
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x344]
call fcn.004068b9
push ebx
push 1
lea ecx, [ebp - 0x360]
call fcn.004068b9
call fcn.00491aa9
ret
Function at 0x40e454
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
mov edi, eax
xor esi, esi
jmp 0x40e48f
mov eax, dword [esp + 0x10]
push 0
push edi
add eax, esi
push eax
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40e48b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2734
je 0x40e48f
cmp eax, 0x2738
jne 0x40e493
jmp 0x40e48f
add esi, eax
sub edi, eax
test edi, edi
jne 0x40e45c
pop edi
mov eax, esi
pop esi
ret

Function at 0x40e498
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push 0x1c4
mov eax, 0x4af761
call fcn.00491a26
mov edi, ecx
mov eax, dword [ebp + 0xc]
push 0x190
mov dword [ebp - 0x1c0], eax
xor esi, esi
lea eax, [ebp - 0x1b4]
push esi
push eax
mov ebx, edx
call fcn.0048bdc0
add esp, 0xc
lea eax, [ebp - 0x1b4]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40e61c
cmp byte [ebp - 0x1b2], 2
jb 0x40e61c
push esi
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 0x1b8], eax
je 0x40e61c
push 0x10
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.0048bdc0
add esp, 0xc
push dword [ebp + 8]
mov word [ebp - 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
push ebx
mov word [ebp - 0x22], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
jne 0x40e553
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x40e61c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1b8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40e61c
mov dword [ebp - 0x1cc], esi
mov dword [ebp - 0x1c8], esi
mov dword [ebp - 0x1c4], esi
push esi
lea eax, [edi + edi]
push eax
lea ecx, [ebp - 0x1d0]
mov dword [ebp - 4], esi
call fcn.004084ef
mov ebx, dword [ebp - 0x1cc]
cmp ebx, esi
jne 0x40e5a5
mov dword [ebp - 0x1bc], esi
jmp 0x40e5b3
mov eax, dword [ebp - 0x1c8]
sub eax, ebx
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp - 0x1c0]
mov ecx, edi
lea edx, [ebx + 4]
lea edi, [ebp - 0x1bc]
call fcn.0041dc60
test eax, eax
jne 0x40e5e6
mov eax, dword [ebp - 0x1bc]
push ebx
push dword [ebp - 0x1b8]
mov dword [ebx], eax
add eax, 4
call fcn.0040e454
pop ecx
pop ecx
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 2
push dword [ebp - 0x1b8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebp - 0x1b8]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [ebp - 0x1d0]
call fcn.00407ed4
call fcn.00491aa9
ret
Function at 0x4131fb
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
mov eax, 0x811c9dc5
cmp edx, dword [ebp + 0x14]
je 0x413223
mov ecx, dword [ebp + 8]
imul eax, eax, 0x1000193
mov dword [ebp - 8], ecx
mov ecx, edx
movsx ecx, byte [ecx]
inc edx
xor eax, ecx
jmp 0x413208
leave
ret

Function at 0x415f37
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3e4]
sub esp, 0x464
mov eax, dword [0x4dfb64]
xor eax, ebp
mov dword [ebp + 0x3e0], eax
mov eax, dword [ebp + 0x3ec]
push ebx
xor ebx, ebx
cmp byte [0x4e72ec], bl
push esi
mov dword [ebp - 0x2c], eax
mov esi, 0x4e72f8
jne 0x415fd8
lea eax, [ebp - 0x24]
push eax
push 1
push ebx
push str.http_shellopencommand
push closesocket
mov dword [ebp - 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x415f95
xor eax, eax
jmp 0x41604f
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
push ebx
push 0x4c8d54
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x415f8e
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.__1_
push esi
mov byte [0x4e72ec], 1
call fcn.0048fb70
cmp eax, ebx
pop ecx
pop ecx
je 0x415fd8
mov byte [eax], bl
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.0048bdc0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push esi
push str._s__s
push 0x400
push eax
mov dword [ebp - 0x80], 0x44
call fcn.0048e3fd
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
mov byte [ebp + 0x3df], bl
call fcn.0048bdc0
add esp, 0x2c
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push 0x210
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x415f8e
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38]
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x3e0]
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b5ab
add ebp, 0x3e4
leave
ret

Function at 0x416066
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4dfb64]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
mov esi, 0x94
push esi
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.0048bdc0
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
call edi
test eax, eax
jne 0x4160b1
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
call edi
test eax, eax
je 0x4160c7
cmp dword [ebp - 0x10], 2
jne 0x4160c7
cmp dword [ebp - 0x1c], 6
jne 0x4160c7
cmp dword [ebp - 0x18], 0
jne 0x4160c7
mov al, 1
jmp 0x4160c9
xor al, al
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.0048b5ab
add ebp, 0x78
leave
ret
Function at 0x4160da
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4dfb64]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push 0
mov dword [ebp - 0x80], eax
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x78]
push eax
push 0x4b5868
push 1
push 0
push 0x4b5878
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x416126
xor eax, eax
jmp 0x416191
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x7c]
push edx
push 0x4c3588
push eax
call dword [ecx]
test eax, eax
jl 0x416122
push 0x104
lea eax, [ebp - 0x74]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x80]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push 2
lea edx, [ebp - 0x74]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x194]
xor ecx, ebp
call fcn.0048b5ab
add ebp, 0x198
leave
ret

Function at 0x4161a6
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xd8]
sub esp, 0x158
mov eax, dword [0x4dfb64]
xor eax, ebp
mov dword [ebp + 0xd4], eax
mov eax, dword [ebp + 0xe0]
push ebx
push esi
push edi
push 0x10
pop ecx
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea edi, [ebp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
push eax
push 0x20019
xor ebx, ebx
push ebx
lea eax, [ebp + 0x90]
push eax
push reloc.WS2_32.dll_bind
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41621a
xor al, al
mov ecx, dword [ebp + 0xd4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048b5ab
add ebp, 0xd8
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push str.Common_Desktop
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x41624a
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x416202
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x7c]
call fcn.0048be40
pop ecx
pop ecx
mov bl, 1
jmp 0x41623d

Function at 0x417a23
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 8]
push 0x417a4f
push 0
push 0
call fcn.0048e5a4
add esp, 0x18
test eax, eax
je 0x417a4b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 4
Function at 0x41a12f
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x3c0]
sub esp, 0x440
mov eax, dword [0x4dfb64]
xor eax, ebp
mov dword [ebp + 0x3bc], eax
push ebx
push esi
push edi
push 0xc
pop ecx
mov esi, str.SYSTEMCurrentControlSetServicesTcpipParameters
lea edi, [ebp + 0x388]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x7c]
push ecx
push 0x2001f
xor ebx, ebx
push ebx
movsw word es:[edi], word [esi]
lea ecx, [ebp + 0x388]
mov eax, reloc.WS2_32.dll_bind
push ecx
push eax
mov dword [ebp - 0x7c], eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x41a1cc
xor eax, eax
cmp byte [ebp + 0x3c8], bl
push 4
sete al
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x80]
push eax
push 4
push ebx
push str.DisableTaskOffload
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x7c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x41a1be
mov bl, 1
jmp 0x41a1e4
push ebx
push 0x400
lea eax, [ebp - 0x78]
push eax
push ebx
push esi
jmp 0x41a1d8
push ebx
push 0x400
lea ecx, [ebp - 0x78]
push ecx
push ebx
push eax
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [ebp + 0x3bc]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0048b5ab
add ebp, 0x3c0
leave
ret

Function at 0x41a1fe
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4dfb64]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xc
pop ecx
mov esi, str.SYSTEMCurrentControlSetServicesTcpipParameters
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ecx, [ebp - 0x3c]
push ecx
push 0x2001f
movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
lea ecx, [ebp - 0x38]
mov eax, reloc.WS2_32.dll_bind
push ecx
push eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41a283
push 4
pop eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x48]
push eax
push esi
push str.DisableTaskOffload
push dword [ebp - 0x3c]
mov dword [ebp - 0x40], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x3c]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x41a283
xor eax, eax
cmp dword [ebp - 0x40], esi
sete al
jmp 0x41a285
xor al, al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0048b5ab
leave
ret
Function at 0x41a293
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x4dfb64]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, 0x9c
push esi
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.0048bdc0
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x41a2e1
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call esi
test eax, eax
je 0x41a2f5
cmp dword [ebp - 0x18], 2
jne 0x41a2f5
cmp dword [ebp - 0x24], 5
jne 0x41a2f5
xor eax, eax
inc eax
cmp dword [ebp - 0x20], eax
je 0x41a2f7
xor al, al
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.0048b5ab
add ebp, 0x78
leave
ret