joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fae58
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x56a4f8]
je 0x4fae73
inc edi
cmp edi, 0x17
jb 0x4fae64
cmp edi, 0x17
jae 0x4faff3
push ebp
push 3
call fcn.00509890
cmp eax, 1
pop ecx
je 0x4fafbf
push 3
call fcn.00509890
test eax, eax
pop ecx
jne 0x4faea7
cmp dword [0x56a234], 1
je 0x4fafbf
cmp ebx, 0xfc
je 0x4faff2
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x56e738
push ebp
call fcn.004f299b
add esp, 0xc
test eax, eax
je 0x4faedd
push esi
push esi
push esi
push esi
push esi
call fcn.004f24e8
add esp, 0x14
push 0x104
mov esi, 0x56e751
push esi
push 0
mov byte [0x56e855], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4faf21
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004f299b
add esp, 0xc
test eax, eax
je 0x4faf21
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004f24e8
add esp, 0x14
push esi
call fcn.004fa660
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4faf66
push esi
call fcn.004fa660
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x56ea4c
push 0x5408d8
sub ecx, eax
push ecx
push eax
call fcn.004f2e74
add esp, 0x14
test eax, eax
je 0x4faf66
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004f24e8
add esp, 0x14
jmp 0x4faf68
xor esi, esi
push 0x54eb10
push ebx
push ebp
call fcn.004f5c11
add esp, 0xc
test eax, eax
je 0x4faf88
push esi
push esi
push esi
push esi
push esi
call fcn.004f24e8
add esp, 0x14
push dword [edi*8 + 0x56a4fc]
push ebx
push ebp
call fcn.004f5c11
add esp, 0xc
test eax, eax
je 0x4fafaa
push esi
push esi
push esi
push esi
push esi
call fcn.004f24e8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.005096d3
add esp, 0xc
jmp 0x4faff2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4faff2
cmp ebp, 0xffffffff
je 0x4faff2
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x56a4fc]
push dword [esi]
call fcn.004fa660
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x5096d3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004fba1c
xor ebx, ebx
cmp dword [0x56f248], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x5097a9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x509889
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x509889
push eax
call fcn.004fb9ae
mov dword [esp], 0x540e50
push edi
mov dword [0x56f248], eax
call esi
push eax
call fcn.004fb9ae
mov dword [esp], 0x540e3c
push edi
mov dword [0x56f24c], eax
call esi
push eax
call fcn.004fb9ae
mov dword [0x56f250], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004fa794
test eax, eax
pop ecx
pop ecx
je 0x509777
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004f24e8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x5097a9
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004fb9ae
cmp eax, ebx
pop ecx
mov dword [0x56f258], eax
je 0x5097a9
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004fb9ae
pop ecx
mov dword [0x56f254], eax
mov eax, dword [0x56f254]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x50982e
cmp dword [0x56f258], ecx
je 0x50982e
push eax
call fcn.004fba25
push dword [0x56f258]
mov esi, eax
call fcn.004fba25
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x50982e
cmp edi, ebx
je 0x50982e
call esi
cmp eax, ebx
je 0x5097fb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5097fb
test byte [ebp - 0x18], 1
jne 0x50982e
lea eax, [ebp - 0x10]
push eax
call fcn.004fa7cb
test eax, eax
pop ecx
je 0x509816
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004f24e8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x509825
or dword [ebp + 0x10], 0x200000
jmp 0x509869
or dword [ebp + 0x10], 0x40000
jmp 0x509869
mov eax, dword [0x56f24c]
cmp eax, dword [ebp - 8]
je 0x509869
push eax
call fcn.004fba25
cmp eax, ebx
pop ecx
je 0x509869
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x509869
mov eax, dword [0x56f250]
cmp eax, dword [ebp - 8]
je 0x509869
push eax
call fcn.004fba25
cmp eax, ebx
pop ecx
je 0x509869
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x56f248]
call fcn.004fba25
cmp eax, ebx
pop ecx
je 0x509889
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x50988b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5102fd
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x56a260]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00510292
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004f5b00
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x51034c
cmp dword [ebp - 0x1c], 5
jb 0x510364
jmp 0x510360
cmp dword [ebp - 0x10], 1
jne 0x510364
cmp dword [ebp - 0x1c], 4
ja 0x510360
jne 0x510364
cmp dword [ebp - 0x18], 0
jbe 0x510364
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x542dd8
call fcn.00510166
test eax, eax
jge 0x510385
mov byte [0x56f6ec], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004f2ac1
add ebp, 0x78
leave
ret

Function at 0x510537
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x56f324], 0
push esi
jne 0x5104aa
call fcn.005103d5
test eax, eax
je 0x5104ed
mov eax, dword [0x56f324]
cmp eax, 1
jne 0x5104cb
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5104ed
pop esi
ret
push eax
call dword [0x56f32c]
test eax, eax
jne 0x510535
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x5104f1
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x56f324]
call dword [0x56f32c]
mov edi, eax
test edi, edi
je 0x510518
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x510534
lea edi, [esi + 0xff0]
push esi
push dword [0x56f324]
call dword [0x56f328]
add esi, 0x10
cmp esi, edi
jb 0x51051e
mov eax, esi
pop edi
pop esi
ret
jmp 0x510497
Function at 0x513d90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x513d9b
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
not esi
jb 0x513e97
push ebp
mov ebp, edi
shr ebp, 3
jmp 0x513dc0
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x543160]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x543160]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x543160]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x543160]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x543160]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x543160]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x543160]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x543160]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x513dc0
pop ebp
test edi, edi
je 0x513ebc
jmp 0x513ea0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x543160]
add ecx, 1
sub edi, 1
jne 0x513ea0
mov eax, esi
pop edi
not eax
pop esi
ret

Function at 0x513ed0
Capabilities:
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
movzx ecx, byte [esp + 8]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x543160]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
add eax, 1
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x543160]
mov dword [edx + 8], ecx
ret

Function at 0x513f20
Capabilities:
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
push ebx
movsx ebx, byte [esp + 0xc]
push esi
push edi
mov edi, dword [edx]
mov eax, dword [edx + 8]
mov ecx, edi
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x543160]
shr edi, 8
xor ecx, edi
mov dword [edx], ecx
movzx ecx, cl
add ecx, dword [edx + 4]
mov esi, eax
imul ecx, ecx, 0x8088405
add ecx, 1
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x543160]
and esi, 0xfffd
mov dword [edx + 8], eax
or esi, 2
mov eax, esi
xor eax, 1
imul eax, esi
pop edi
shr eax, 8
pop esi
xor eax, ebx
pop ebx
ret
Function at 0x5140e0
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x48
push esi
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x514102
mov eax, 0x200
pop esi
add esp, 0x48
ret
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
push edi
je 0x514117
mov ebp, 1
test al, 2
je 0x51411e
or ebp, 2
test al, 4
je 0x514125
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x51412f
or ebp, 0x10
test al, 0x20
je 0x514136
or ebp, 0x20
test ecx, ecx
je 0x514142
or ebp, 0x40000000
jmp 0x514148
or ebp, 0x80000000
or ebp, 0x1000000
test edx, edx
jne 0x514158
or ebp, 0x800000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x14], eax
jbe 0x514203
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
cmp word [esp + 0x10], 0x54ad
jne 0x514203
mov eax, dword [esp + 0x1c]
lea edx, [eax + 0x34]
cmp dword [esp + 0x14], edx
jbe 0x514203
push 0
push 0
push eax
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x5141fd
cmp eax, 0x454e
je 0x5141fd
cmp eax, 0x454c
je 0x5141fd
cmp eax, 0x4550
jne 0x514203
or ebp, 0x400000
mov eax, dword [esp + 0x60]
test eax, eax
je 0x51420d
mov dword [eax], ebp
mov eax, dword [esp + 0x64]
test eax, eax
je 0x51421b
mov edx, dword [esp + 0x14]
mov dword [eax], edx
mov esi, dword [esp + 0x68]
test esi, esi
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
je 0x51429c
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
push 0
sub eax, 0xd53e8000
push 0x989680
sbb ecx, 0x19db1de
push ecx
push eax
call fcn.004f72c0
mov dword [esi + 4], edx
mov dword [esi], eax
push 0
mov edx, ebx
sub edx, 0xd53e8000
mov eax, edi
push 0x989680
sbb eax, 0x19db1de
push eax
push edx
call fcn.004f72c0
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x2c]
push 0
sub ecx, 0xd53e8000
push 0x989680
sbb edx, 0x19db1de
push edx
push ecx
mov dword [esi + 8], eax
call fcn.004f72c0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x6c]
test esi, esi
je 0x5142c9
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
call fcn.00514070
movzx edx, word [esp + 0x20]
movzx eax, word [esp + 0x24]
shl edx, 0x10
add esp, 0x10
or edx, eax
mov dword [esi], edx
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x48
ret
Function at 0x5144c0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
cmp byte [esi + 0x2d], 0
mov eax, edi
je 0x514543
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5144f1
cmp dword [esi + 0x40], ebx
jae 0x5144f1
push eax
call fcn.004d37ab
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x514509
lea eax, [ebx + ebx]
push eax
call fcn.004d377b
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
mov ecx, dword [esi + 0x3c]
push ebx
push edi
push ecx
call fcn.004f5c90
add esp, 0xc
xor edi, edi
test ebx, ebx
jbe 0x514540
push ebp
lea ebp, [esi + 0x30]
mov edx, dword [esi + 0x3c]
movzx eax, byte [edi + edx]
push eax
push ebp
call fcn.00513f20
mov ecx, dword [esi + 0x3c]
mov byte [edi + ecx], al
add edi, 1
add esp, 8
cmp edi, ebx
jb 0x514521
pop ebp
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x51457c
mov ecx, dword [esi + 0x24]
lea edi, [ecx + ebx]
cmp edi, dword [esi + 0x28]
jb 0x514564
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
ret 8
push ebx
push eax
add ecx, edx
push ecx
call fcn.004f5c90
add esp, 0xc
add dword [esi + 0x24], ebx
pop edi
pop esi
mov eax, ebx
pop ebx
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x51459d
push 0
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
ret 8

Function at 0x514910
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x84]
test ecx, ecx
push edi
je 0x51496f
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x5149b9
mov edx, dword [esp + 0x14]
sub edi, eax
cmp edi, edx
jbe 0x51493f
mov edi, edx
mov ebx, dword [esp + 0x10]
push edi
add eax, ecx
push eax
push ebx
call fcn.004f5c90
mov eax, dword [esi + 0x78]
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
push edi
push ebx
push eax
call fcn.00513d90
add esp, 0x18
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x5149b2
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5149b9
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
push edi
push ebx
push eax
call fcn.00513d90
add esp, 0xc
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov dword [esi + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x515b60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
xor edi, edi
cmp dword [esi + 0x6af90], ebx
mov dword [esi + 0x6af80], 2
lea ebp, [ebx + 1]
je 0x515d73
cmp dword [esi + 0x6af90], 3
jb 0x515bd9
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x515c19
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x515c19
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x515c01
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.00513150
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x515c19
mov edi, eax
cmp edi, 3
jb 0x515cf0
mov ecx, dword [esi + 0x6af84]
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.00512bc0
sub dword [esi + 0x6af90], edi
mov ecx, dword [esi + 0x6af90]
add esp, 0xc
cmp edi, dword [esi + 0x6af98]
ja 0x515cb8
cmp ecx, 3
jb 0x515cb8
sub edi, ebp
jmp 0x515c60
add dword [esi + 0x6af84], ebp
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov ebx, dword [esi + 0x6af7c]
shl ebx, 5
xor ecx, ebx
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub edi, ebp
mov dword [esi + edx*4 + 0x2af70], ebx
mov edx, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + edx*4 + 0x4af70], ecx
jne 0x515c60
jmp 0x515d11
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
add edx, esi
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + 0x1af71]
shl ecx, 5
xor edx, ecx
xor edi, edi
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x515d17
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
push ecx
push 0
push esi
call fcn.00512bc0
add esp, 0xc
add dword [esi + 0x6af90], 0xffffffff
add dword [esi + 0x6af84], ebp
test eax, eax
je 0x515d51
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x515d2e
lea ecx, [eax + esi + 0x1af70]
jmp 0x515d30
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.005159a0
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x515d66
push esi
call fcn.00513320
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x515b85
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x515d86
lea ecx, [eax + esi + 0x1af70]
jmp 0x515d88
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push ebp
sub edx, eax
push edx
push ecx
push esi
call fcn.005159a0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x516cc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51e538
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x56a260]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0xc]
call fcn.00434b60
mov esi, dword [esp + 0x30]
xor eax, eax
test esi, esi
setne al
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
add eax, 1
push eax
call fcn.00434ca0
mov eax, dword [edi + 0x10]
push eax
push 0
lea ecx, [esp + 0x14]
call fcn.00434b80
test esi, esi
je 0x516d32
mov esi, dword [esi + 4]
push esi
push 1
lea ecx, [esp + 0x14]
call fcn.00434b80
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x10]
call fcn.00434bf0
test eax, eax
jne 0x516d49
mov edi, dword [edi + 8]
jmp 0x516d55
sub eax, 1
neg eax
sbb eax, eax
add eax, 2
mov edi, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00434c70
mov eax, edi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret 8

Function at 0x517520
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x51e66e
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x56a260]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.004b2070
xor edi, edi
mov dword [esi], vtable.CNsUdpTransport.0
mov dword [esi + 0x18], vtable.CNsUdpTransport.1.0
mov dword [esp + 0x18], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov eax, dword [esi + 0x34]
cmp eax, edi
mov byte [esp + 0x18], 2
mov dword [esi + 0x30], 0x1c
je 0x517586
push eax
call fcn.004d37ab
add esp, 4
mov eax, dword [esi + 0x30]
push eax
call fcn.004d37a6
mov ecx, dword [esi + 0x30]
push ecx
push edi
push eax
mov dword [esi + 0x34], eax
call fcn.004f5b00
mov edx, dword [esi + 0x34]
add esp, 0x10
mov word [edx], 0x17
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40993f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x409997
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x409997
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x409997
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4099c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x409a2e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409a25
cmp dword [ebp - 0xc], 4
jne 0x409a25
cmp dword [ebp - 0x10], edi
je 0x409a25
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x624c58], edi
xor eax, eax
jmp 0x409a56
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x624c58], edi
jge 0x409a51
mov dword [0x624c58], edi
call fcn.0040999b
test eax, eax
je 0x409a51
emms
mov dword [0x624c58], 1
mov eax, dword [0x624c58]
pop edi
leave
ret

Function at 0x409b36
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x409b6d
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x409b8f
cmp dword [ebp - 0x20], 4
ja 0x409b99
jne 0x409b89
cmp dword [ebp - 0x1c], 0xa
jb 0x409b89
cmp word [ebp - 0x18], 0x55d
jae 0x409b99
mov byte [ebp + 0x73], 1
jmp 0x409b99
cmp dword [ebp - 0x14], 2
jne 0x409baf
test bl, bl
je 0x409bca
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x409bba
dec eax
je 0x409bb3
sub eax, 3
jne 0x409baf
cmp byte [ebp + 0x73], 0
je 0x409bdb
xor eax, eax
jmp 0x409be3
call fcn.00409a59
jmp 0x409be3
cmp byte [ebp + 0x73], 0
jne 0x409baf
call fcn.00409a91
and eax, 4
jmp 0x409be3
cmp dword [ebp + 0x7c], 0xa
je 0x409bdb
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x409be3
call fcn.00409a91
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret