joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cff80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x53fbb0]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [esi + 0x158]
push ebp
mov ebp, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4cffd4
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.004c34b0
add esp, 8
cmp edi, 0xffffffff
jne 0x4d0008
push str.Error_accept__ing_server_connect
push ebp
call fcn.004c0ad0
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0049115e
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.004c0a40
push 1
push edi
mov dword [esi + 0x158], edi
call fcn.004ded40
mov dword [esi + 0x168], 1
mov eax, dword [ebp + 0x1b0]
add esp, 0x10
test eax, eax
je 0x4d0076
mov ecx, dword [ebp + 0x1b4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x4d0076
push edi
push esi
call fcn.004c34b0
add esp, 8
pop edi
pop ebp
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0049115e
add esp, 0x18
ret
mov ecx, dword [esp + 0x20]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0049115e
add esp, 0x18
ret
Function at 0x4da430
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x4da43f
jmp dword [ecx*4 + 0x4da494]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x4da620
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x53fbb0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004ac1af
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4da685
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4da685
lea edx, [esp]
push edx
call dword [0x5411e4]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0049115e
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0049115e
add esp, 0x108
ret
jmp 0x4da620

Function at 0x4da6a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x53fbb0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004ac1af
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4da685
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4da685
lea edx, [esp]
push edx
call dword [0x5411e4]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0049115e
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0049115e
add esp, 0x108
ret
jmp 0x4da620
Function at 0x4ded70
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x4ded89
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.004c0620
push edx
push eax
call fcn.004c0650
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x4dedd6
mov eax, dword [ebx + 0x148]
mov ecx, dword [ebx + 0x144]
push eax
push ecx
call fcn.004c0620
push edx
push eax
call fcn.004c0650
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x4dedd8
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4e1110
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x4e1142
push 0x2e
push esi
call fcn.004a7860
add esp, 8
test eax, eax
je 0x4e1140
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x4e12b0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x53fbb0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4e135a
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov byte [esp + 0x14], 8
mov byte [esp + 0x15], 2
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.004e1220
mov ecx, esi
push 8
push ecx
call fcn.004e3be0
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x4e136c
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0049115e
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0049115e
add esp, 0x24
ret
Function at 0x4e14f0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e1500
sub eax, edx
mov esi, eax
lea ebp, [esi + esi]
push ebp
call dword [0x5411d8]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4e1529
pop edi
pop esi
pop ebp
lea eax, [ebx + 0x1b]
pop ebx
add esp, 0xc
ret
mov ecx, ebx
call fcn.004e3380
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [esp + 0x28]
test eax, eax
je 0x4e15af
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0x8002
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4e15a2
mov eax, dword [esp + 0x10]
push 0
push ebp
push ebx
push eax
mov dword [esp + 0x28], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x14]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [esi + 0x10], eax
push ebx
mov byte [esi + 0x14], al
call dword [0x5411dc]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x4e18a0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4e18d1
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
ret

Function at 0x4e18e0
Capabilities:
Hash data via wincrypt

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
ret
Function at 0x4e3a50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x5411d8]
mov edi, eax
add esp, 4
test edi, edi
jne 0x4e3a75
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x4e3abc
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x4e3ac0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x4e3b1e
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x4e3ae3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x4e3b61
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x51396f
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x513970
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x4e3b30
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4e6c30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x514354
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4e6d13
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x20], 0x33
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0x20], 0xc0
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov byte [ebp + ecx - 0x20], 0xc2
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov byte [ebp + eax - 0x20], 4
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov byte [ebp + edx - 0x20], 0
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0xc]
push ecx
push 0x40
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret

Function at 0x4e74c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.004e7270
movzx eax, al
test eax, eax
jne 0x4e74da
xor al, al
jmp 0x4e7513
mov ecx, dword [ebp + 0xc]
call fcn.004017c0
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00403bb0
push eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.00403bb0
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4e7511
xor al, al
jmp 0x4e7513
mov al, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4e7800
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5ecc
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0x44]
call fcn.004e7270
movzx eax, al
test eax, eax
jne 0x4e785a
mov ecx, dword [ebp + 8]
call fcn.00403bd0
mov ecx, dword [ebp - 0x40]
or ecx, 1
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp + 8]
jmp 0x4e7958
lea edx, [ebp - 0x14]
push edx
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00403bb0
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4e7892
cmp dword [ebp - 0x10], 1
je 0x4e78ab
cmp dword [ebp - 0x10], 2
je 0x4e78ab
cmp dword [ebp - 0x10], 6
je 0x4e78ab
mov ecx, dword [ebp + 8]
call fcn.00403bd0
mov eax, dword [ebp - 0x40]
or eax, 1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
jmp 0x4e7958
cmp dword [ebp - 0x14], 0
jbe 0x4e7944
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
lea ecx, [ebp - 0x3c]
call fcn.0040ac00
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00430fb0
push eax
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00403bb0
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040ac40
mov byte [eax], 0
lea ecx, [ebp - 0x3c]
call fcn.00430fb0
push eax
lea ecx, [ebp - 0x34]
call fcn.00404490
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403c00
mov edx, dword [ebp - 0x40]
or edx, 1
mov dword [ebp - 0x40], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403c40
mov eax, dword [ebp + 8]
jmp 0x4e7958
mov ecx, dword [ebp + 8]
call fcn.00403bd0
mov eax, dword [ebp - 0x40]
or eax, 1
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret 8

Function at 0x4ea490
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x68], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x4ea8b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x4ea8cf
cmp dword [ebp + 0xc], 0
jne 0x4ea8d6
xor eax, eax
jmp 0x4ea9f3
lea eax, [ebp - 0x400]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4ea9e3
mov dword [ebp - 8], 0
jmp 0x4ea902
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movzx eax, word [ebp + edx*2 - 0x400]
test eax, eax
je 0x4ea9e3
push 0x514b6c
mov ecx, dword [ebp - 8]
lea edx, [ebp + ecx*2 - 0x400]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4ea949
push 0x514b74
mov eax, dword [ebp - 8]
lea ecx, [ebp + eax*2 - 0x400]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4ea94b
jmp 0x4ea8f9
mov edx, dword [ebp - 8]
mov ax, word [ebp + edx*2 - 0x400]
mov word [ebp - 0x14], ax
mov ecx, dword [ebp - 8]
mov dx, word [ebp + ecx*2 - 0x3fe]
mov word [ebp - 0x12], dx
xor eax, eax
mov word [ebp - 0x10], ax
push 0x64
lea ecx, [ebp - 0x4c8]
push ecx
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4ea98a
xor eax, eax
jmp 0x4ea9f3
lea eax, [ebp - 0x4c8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x4c8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0049a0f9
add esp, 0xc
test eax, eax
jne 0x4ea9de
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
lea edx, [ecx + eax*2]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 1
jmp 0x4ea9f3
jmp 0x4ea8f9
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret

Function at 0x4eaaf0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4eab1f
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esp, ebp
pop ebp
ret

Function at 0x4eab30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4eab57
xor al, al
jmp 0x4eab83
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 4], 0
sete al
mov esp, ebp
pop ebp
ret
Function at 0x4eab90
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x24]
cmp ecx, 9
je 0x4eabb2
movzx edx, word [ebp - 0x24]
cmp edx, 6
jne 0x4eabb6
mov al, 1
jmp 0x4eabb8
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x4eac00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4eac38
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x4eac60
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x424], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00491200
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0
je 0x4ead16
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push 0
lea ecx, [ebp - 0x41e]
push ecx
call fcn.00491200
add esp, 0xc
push 0x208
lea edx, [ebp - 0x420]
push edx
mov eax, dword [ebp - 0x214]
push eax
call sub.PSAPI.DLL_GetProcessImageFileNameW
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x420]
push edx
call fcn.004ea8b0
add esp, 8
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004016c0
mov edx, dword [ebp - 0x424]
or edx, 1
mov dword [ebp - 0x424], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret

Function at 0x4eb1c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f598c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, 0x14
mov word [ebp - 0x3c], ax
mov dword [ebp - 0x36], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x32], 0
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401700
mov dword [ebp - 4], 0
push 0
push 4
lea ecx, [ebp - 0x2c]
call fcn.00403280
lea ecx, [ebp - 0x2c]
call fcn.00401780
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 3
lea edx, [ebp - 0x4c]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401740
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret
Function at 0x4eb280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f5a7a
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x2c]
call fcn.00403bd0
mov dword [ebp - 4], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4eb324
mov dword [ebp - 0x38], 1
mov ecx, dword [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00401580
lea edx, [ebp + 0x18]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00401560
push eax
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x2c]
call fcn.00401560
push eax
mov ecx, dword [ebp + 8]
call fcn.00404490
mov ecx, dword [ebp - 0x3c]
or ecx, 1
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403c40
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret