joyce8/EMBER2024-capa huggingface dataset:
Function at 0x479ac0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d24a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004c4454
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004c9af2
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004cb14b
test eax, eax
je 0x479bdc
mov ecx, dword [esp + 0x3c]
call fcn.004c9b1f
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x479ba0
push edi
mov ecx, esi
call fcn.004c717a
mov ecx, esi
call fcn.00479d80
cmp dword [esp + 0x38], 1
jne 0x479bd5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004c72b5
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x47bdc0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x47bdf3
push esi
call fcn.00489fa0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x47bdec
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x47be79
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47be62
mov eax, dword [esi + 8]
test eax, eax
je 0x47be17
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x47be5e
cmp eax, 2
je 0x47be62
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x47be0a
cmp eax, 3
je 0x47be3d
cmp eax, 1
jne 0x47be0a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x47be0a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x47be0a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0047bea0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x47be88
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0047bea0
add esp, 4
pop esi
ret

Function at 0x47c710
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x47c731
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x47c731
mov eax, dword [eax + 0x44]
test eax, eax
je 0x47c731
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x498eb0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x498f53
test eax, eax
jbe 0x498f53
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x498f53
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x498efe
xor esi, esi
jmp 0x498f04
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x498f2f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0042f6e0
add esi, eax
push esi
mov ebx, esi
call fcn.0042f6e0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x498f10
pop ebp
test edi, edi
pop edi
jne 0x498f53
test ebx, ebx
je 0x498f53
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004b1a50
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4992d5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4993ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4993ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.004c48a6
mov esi, eax
test esi, esi
je 0x4993ed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4993ed
mov ecx, esi
call fcn.00499190
cmp edi, eax
jge 0x4993ed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x499373
mov dword [esp + 0x34], 1
jmp 0x4993ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4993ed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00496700
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x49fff0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4a0056
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4a0056
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4a0037
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4a0820
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4a0858
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4a14d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4a1519
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4a1990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d33e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004a1540
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004a15c0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004a15c0
lea ecx, [esi + 0xc]
call fcn.004c2e06
lea ecx, [esi + 0x10]
call fcn.004c2e06
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004a2b50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004a2b50
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004a2b50
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004c2e7b
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004c2e7b
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4a7c00
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x551e64]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4a7c13
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4a7c54
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x551f0c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4a7c86
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a7c8a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4a7c7b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4a7ca8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a7cac
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4a7c9d
xor ecx, ecx
mov eax, 0x551e74
xor ebx, ebx
mov bl, byte [ecx + 0x551f1c]
cmp byte [esp + ebx + 0x14], 0
je 0x4a7cd7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x551f34]
cmp byte [esp + ebx + 0x14], 0
je 0x4a7cee
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4a7cbe
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4a7c47
lea edx, [esp + 0x84]
push edx
call fcn.004a7d30
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4c5249
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c5281
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c32d6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c32ae
jmp 0x4c528d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c6937
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c6979
call fcn.004cc7fc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c6979
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c6970
xor eax, eax
jmp 0x4c6981
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c6987
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ccd2c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ccd5a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ccd78
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ccc92
jmp 0x4ccd78
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ccd78
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ccc92
test edi, edi
mov eax, edi
jne 0x4ccd62
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

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 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10007c2e
pop dword [ebp - 0x4c]
mov eax, 0x5da407e
sub eax, 0xf5d9c450
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x1177c22b
add dword [ebp - 0x5c], 0x3cda8320
mov dword [ebp - 0x58], 0x460838ba
add dword [ebp - 0x58], 0xec2b138b
mov dword [ebp - 0x54], 0x40ba440d
add dword [ebp - 0x54], 0xb920021
mov dword [ebp - 0x50], 0x7113ba51
sub dword [ebp - 0x50], 0x7113ba51
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x2d6b2247
add eax, 0xe2955e0d
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xbcfca087
add dword [ebp - 0x5c], 0xb775c8cf
mov dword [ebp - 0x58], 0x4ab34e1e
add dword [ebp - 0x58], 0xf6b91357
mov dword [ebp - 0x54], 0xde676b8e
sub dword [ebp - 0x54], 0x7af7ff22
mov dword [ebp - 0x50], 0xe73933
sub dword [ebp - 0x50], 0xe73933
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x1414c30a
add eax, 0xfbebbd46
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x31846
push 0
call eax
mov ecx, 0xa7de0a73
sub ecx, 0xa7ddd70d
mov edi, eax
mov ebx, 0x6c46071c
sub ebx, 0x5c450d1c
add ebx, dword [ebp - 0x4c]
mov esi, 0xc548ca21
add dword [ebp - 0x2c], esi
mov edx, dword [ebx]
add dword [ebp - 0x18], ecx
add edx, esi
xor dword [ebp - 0x28], 0xe60412e5
mov dword [edi], edx
add edi, 0x2620d880
add edi, 0xd9df2784
add ebx, 0xa7bca2a5
add ebx, 0x58435d5f
loop 0x10007d4a
add eax, 0x6535109
sub eax, 0x652909e
mov ebx, eax
add eax, 0xe91cf391
add eax, 0x16e30c74
mov ecx, 0xa0b5e7d4
sub ecx, 0x90b5e7d4
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40673a
pop dword [ebp - 0x34]
mov eax, 0x91b2bfbf
add eax, 0x6e8da77b
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xe51fa218
sub dword [ebp - 0x44], 0x96cd5ccd
mov dword [ebp - 0x40], 0x4d6c4032
sub dword [ebp - 0x40], 0x1b38f3ed
mov dword [ebp - 0x3c], 0xf651b8be
add dword [ebp - 0x3c], 0x55fa8b70
mov dword [ebp - 0x38], 0xa4f1e2d6
add dword [ebp - 0x38], 0x5b0e1d2a
lea eax, [ebp - 0x44]
push eax
mov eax, 0x81854d64
add eax, 0x7ebb33a0
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xa5865e62
add dword [ebp - 0x44], 0xceec0af4
mov dword [ebp - 0x40], 0xb71f84b0
sub dword [ebp - 0x40], 0x75b3233b
mov dword [ebp - 0x3c], 0x8b49a7bb
add dword [ebp - 0x3c], 0xd825c4b1
mov dword [ebp - 0x38], 0xf16862aa
add dword [ebp - 0x38], 0xe979d56
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x35bbd
push 0
call eax
mov ecx, 0xe5b6436f
add ecx, 0x1a49fd70
xor edi, edi
add edi, eax
mov ebx, 0x5506baaa
sub ebx, 0x54bfd6aa
add ebx, dword [ebp - 0x34]
mov esi, 0x96964cb
sub esi, 0xd9518db0
add dword [ebp - 0x1c], 0x8d4ac7f1
mov edx, dword [ebx]
add dword [ebp - 4], 0x8f1e0d13
xor edx, esi
add dword [ebp - 0x24], 0x71a16709
mov dword [edi], edx
add dword [ebp - 0x1c], 0x34a9df74
add edi, 0xef8cf7af
sub edi, 0xef8cf7ab
add ebx, 0x5d924cf0
sub ebx, 0x5d924cec
loop 0x406859
add eax, 0xe4efd99a
add eax, 0x1b111cb5
mov ebx, eax
add eax, 0xab9d686c
add eax, 0x54629799
mov ecx, 0x63000367
add ecx, 0x9d3ffc99
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x406e9c
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [eax], 0x20000000
mov dword [ebp - 4], edi
jne 0x406fe3
push ebx
push esi
push 4
pop esi
add eax, esi
mov ecx, dword [eax]
cmp ecx, 0x40020000
jne 0x406f42
add eax, esi
mov ecx, dword [eax]
xor edx, edx
cmp ecx, 0x40000001
je 0x406eec
cmp ecx, 0x40010001
je 0x406eec
cmp ecx, 0x40020001
je 0x406eec
cmp ecx, 0x40030001
jne 0x406ef7
shr ecx, 0x10
and ecx, 0xf
inc ecx
mov edx, ecx
add eax, esi
cmp dword [eax], 0x40050002
jne 0x406f09
inc edx
mov dword [ebp - 4], 0x1000
add eax, esi
mov ecx, edx
sub ecx, edi
je 0x406f3c
dec ecx
je 0x406f36
dec ecx
je 0x406f30
dec ecx
je 0x406f2a
dec ecx
je 0x406f24
dec ecx
jne 0x406f4f
or dword [ebp - 4], 0xe
jmp 0x406f4f
or dword [ebp - 4], 0xc
jmp 0x406f4f
or dword [ebp - 4], 0xa
jmp 0x406f4f
or dword [ebp - 4], 8
jmp 0x406f4f
or dword [ebp - 4], 6
jmp 0x406f4f
or dword [ebp - 4], 2
jmp 0x406f4f
cmp ecx, 0x40030000
jne 0x406f4f
mov dword [ebp - 4], esi
add eax, esi
cmp dword [eax], 0x40020003
push 0x10
pop ecx
jne 0x406f5f
or dword [ebp - 4], ecx
add eax, esi
cmp dword [eax], 0x40000004
jne 0x406f6d
or dword [ebp - 4], 0x20
add eax, esi
cmp dword [eax], 0x40040005
jne 0x406f7b
or dword [ebp - 4], 0x40
add eax, esi
cmp dword [eax], 0x40040006
jne 0x406f89
or byte [ebp - 4], 0x80
add eax, esi
push 7
pop esi
mov edx, dword [eax]
mov ebx, esi
or ebx, 0x40000000
cmp ebx, edx
jne 0x406f9e
push 3
jmp 0x406fc9
mov ebx, esi
or ebx, 0x40010000
cmp ebx, edx
je 0x406fcf
mov ebx, esi
or ebx, 0x40020000
cmp ebx, edx
jne 0x406fbb
xor edx, edx
inc edx
jmp 0x406fca
mov ebx, esi
or ebx, 0x40030000
cmp ebx, edx
jne 0x406fdb
push 2
pop edx
shl edx, cl
or dword [ebp - 4], edx
add eax, 4
inc edi
inc ecx
inc ecx
inc esi
cmp ecx, 0x20
jb 0x406f8c
shl edi, 8
or dword [ebp - 4], edi
pop esi
pop ebx
cmp dword [eax], 0xffffffff
pop edi
je 0x406ff0
mov eax, 0x8876086c
jmp 0x406ffa
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
leave
ret 8

Function at 0x41041c
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 0x648c98
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x410474
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 0x410474
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x410474
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x41049d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x648c98
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x41050b
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 0x410502
cmp dword [ebp - 0xc], 4
jne 0x410502
cmp dword [ebp - 0x10], edi
je 0x410502
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x6b959c], edi
xor eax, eax
jmp 0x410533
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x6b959c], edi
jge 0x41052e
mov dword [0x6b959c], edi
call fcn.00410478
test eax, eax
je 0x41052e
emms
mov dword [0x6b959c], 1
mov eax, dword [0x6b959c]
pop edi
leave
ret

Function at 0x410613
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 0x41064a
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x41066c
cmp dword [ebp - 0x20], 4
ja 0x410676
jne 0x410666
cmp dword [ebp - 0x1c], 0xa
jb 0x410666
cmp word [ebp - 0x18], 0x55d
jae 0x410676
mov byte [ebp + 0x73], 1
jmp 0x410676
cmp dword [ebp - 0x14], 2
jne 0x41068c
test bl, bl
je 0x4106a7
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x410697
dec eax
je 0x410690
sub eax, 3
jne 0x41068c
cmp byte [ebp + 0x73], 0
je 0x4106b8
xor eax, eax
jmp 0x4106c0
call fcn.00410536
jmp 0x4106c0
cmp byte [ebp + 0x73], 0
jne 0x41068c
call fcn.0041056e
and eax, 4
jmp 0x4106c0
cmp dword [ebp + 0x7c], 0xa
je 0x4106b8
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x4106c0
call fcn.0041056e
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x413cdf
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
push ebp
mov ebp, dword [eax + 0x18]
mov eax, dword [edx + 0x18]
push esi
mov esi, dword [edx + 0x105c]
push edi
mov edi, dword [edx + 0x1050]
imul esi, edi
add esi, eax
cmp eax, esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], esi
jae 0x413e15
push ebx
mov edx, dword [edx + 0x1058]
add edx, eax
add edi, eax
cmp eax, edx
mov ebx, eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], edx
jae 0x413df0
movzx ebp, byte [ebx]
movzx esi, byte [ebx + 1]
movzx eax, byte [edi + 1]
movzx edi, byte [edi]
mov edx, eax
push 0xf
pop ecx
and edx, ecx
mov ebx, ebp
and ebx, ecx
add edx, ebx
mov ebx, edi
and ebx, ecx
add edx, ebx
mov ebx, esi
and ebx, ecx
lea edx, [edx + ebx + 2]
mov ecx, eax
and ecx, 0xffff00f0
mov ebx, ebp
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, edi
and ebx, 0xffff00f0
add ecx, ebx
mov ebx, esi
and ebx, 0xffff00f0
shr edx, 2
lea ecx, [ecx + ebx + 0x20]
mov ebx, dword [esp + 0x14]
shr ecx, 2
xor dl, cl
mov ecx, 0xf0
and ax, cx
and bp, cx
and di, cx
and si, cx
and dl, 0xf
add eax, ebp
add eax, edi
mov edi, dword [esp + 0x18]
lea eax, [eax + esi + 0x20]
shr eax, 2
xor dl, al
mov eax, dword [esp + 0x10]
inc dword [esp + 0x10]
inc ebx
inc ebx
inc edi
inc edi
cmp ebx, dword [esp + 0x24]
mov byte [eax], dl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
jb 0x413d3e
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov edx, dword [ecx + 4]
add ebp, dword [edx + 0x1050]
mov edx, dword [ecx]
mov edi, dword [edx + 0x1050]
lea eax, [eax + edi*2]
cmp eax, esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], eax
jb 0x413d1a
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret

Function at 0x41c7bc
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x41c7e9
push esi
call fcn.0042c2b9
cmp byte [esi + 0x40], 0
pop ecx
je 0x41c7e2
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x41c858
mov eax, dword [esi + 0x18c]
cmp byte [eax + 0x10], 0
je 0x41c84d
mov eax, dword [esi + 8]
test eax, eax
je 0x41c80a
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x18c]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x41c849
cmp eax, 2
je 0x41c84d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41c7ff
cmp eax, 3
je 0x41c82e
cmp eax, 1
jne 0x41c7ff
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x41c7ff
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x41c7ff
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x41c876
cmp eax, 0xcc
je 0x41c876
mov eax, dword [esi]
mov dword [eax + 0x14], 0x12
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
push esi
call dword [eax]
pop ecx
call fcn.0041c68f
pop esi
ret