joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x485ba0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0xe4], ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.HARDWAREDEVICEMAPSERIALCOMM
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x411824
mov dword [ebp - 0x9c], 0x20
mov dword [ebp - 0x98], 0x80
mov dword [ebp - 0x94], 0
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0xe8], ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x9c]
push edx
lea eax, [ebp - 0xe0]
push eax
mov ecx, dword [ebp - 0xe8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ecx, dword [ebp - 0x94]
add ecx, 1
mov dword [ebp - 0x94], ecx
test eax, eax
jne 0x41181a
mov dword [ebp - 0x9c], 0x20
push 0x475834
lea edx, [ebp - 0xe0]
push edx
call fcn.00420e50
add esp, 8
test eax, eax
je 0x411815
mov dword [ebp - 0x98], 0x80
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x90]
push ecx
push 0
push 0
lea edx, [ebp - 0xe0]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x90]
mov dword [ebp - 0xec], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xf0]
mov cx, word [eax]
mov word [ebp - 0xf2], cx
mov edx, dword [ebp - 0xec]
cmp cx, word [edx]
jne 0x4117e4
cmp word [ebp - 0xf2], 0
je 0x4117d8
mov eax, dword [ebp - 0xf0]
mov cx, word [eax + 2]
mov word [ebp - 0xf4], cx
mov edx, dword [ebp - 0xec]
cmp cx, word [edx + 2]
jne 0x4117e4
add dword [ebp - 0xf0], 4
add dword [ebp - 0xec], 4
cmp word [ebp - 0xf4], 0
jne 0x41177e
mov dword [ebp - 0xf8], 0
jmp 0x4117ef
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0xf8], eax
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xfc], ecx
cmp dword [ebp - 0xfc], 0
jne 0x411815
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x411826
jmp 0x4116cc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0044ab88
mov esp, ebp
pop ebp
ret 4

Function at 0x416910
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret
Function at 0x421d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x473d28
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x421ebd
mov dword [ebp - 4], 4
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xb8
push eax
push 0
push 0
push 0x473d64
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xbc
push eax
push 0
push 0
push 0x473d98
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xc0
push eax
push 0
push 0
push 0x473dc0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xc4
push eax
push 0
push 0
push 0x473de8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xc8
push eax
push 0
push 0
push 0x473e10
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xcc
push eax
push 0
push 0
push 0x473e38
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xd0
push eax
push 0
push 0
push 0x473e60
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xd4
push eax
push 0
push 0
push 0x473e88
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xd8
push eax
push 0
push 0
push 0x473eb0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esp, ebp
pop ebp
ret
Function at 0x422d90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x485ba0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0xc], 0x3a
mov byte [ebp - 0xb], 0x53
mov byte [ebp - 0xa], 0x31
mov byte [ebp - 9], 0x52
mov byte [ebp - 8], 0x31
mov byte [ebp - 7], 0x4f
mov byte [ebp - 6], 0x4e
mov byte [ebp - 5], 0xde
push 0
push 8
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x44
call fcn.004013d0
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 0x14], 0x3a
mov byte [ebp - 0x13], 0x53
mov byte [ebp - 0x12], 0x31
mov byte [ebp - 0x11], 0x52
mov byte [ebp - 0x10], 0x37
mov byte [ebp - 0xf], 0x4f
mov byte [ebp - 0xe], 0x46
mov byte [ebp - 0xd], 0xdc
push 0
push 8
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0x44
call fcn.004013d0
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [ebp - 0x1c], 0x3a
mov byte [ebp - 0x1b], 0x53
mov byte [ebp - 0x1a], 0x31
mov byte [ebp - 0x19], 0x52
mov byte [ebp - 0x18], 0x38
mov byte [ebp - 0x17], 0x4f
mov byte [ebp - 0x16], 0x46
mov byte [ebp - 0x15], 0xdd
push 0
push 8
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x20]
add ecx, 0x44
call fcn.004013d0
push 0xf
call dword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
call fcn.00422cf0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044ab88
mov esp, ebp
pop ebp
ret 4

Function at 0x4231b0
Capabilities:
Reference absolute stream path on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x485ba0]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x30], ecx
push 0x1000
push 0x1000
push 0
mov ecx, dword [ebp - 0x30]
call fcn.00423650
test eax, eax
jne 0x4231df
xor al, al
jmp 0x42324b
mov dword [ebp - 4], 0x46
mov eax, dword [ebp + 8]
push eax
push str..COM_d:115200_N_8_0
lea ecx, [ebp - 0x28]
push ecx
call fcn.00423580
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea edx, [ebp - 0x28]
push edx
call fcn.00420fd0
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
call fcn.00423790
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x42322e
mov ecx, dword [ebp - 0x30]
call fcn.00423b50
test eax, eax
je 0x42322e
mov al, 1
jmp 0x42324b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
sub ecx, 1
mov dword [ebp - 4], ecx
test eax, eax
jne 0x4231e6
xor al, al
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044ab88
mov esp, ebp
pop ebp
ret 4
Function at 0x423b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0x2c
push eax
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x423c3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3e5
jne 0x423c1a
push 1
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x20]
add ecx, 0x2c
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x423c18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e4
je 0x423c16
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
xor eax, eax
jmp 0x423c44
jmp 0x423bcd
jmp 0x423c3f
cmp dword [ebp - 0x1c], 5
jne 0x423c26
xor eax, eax
jmp 0x423c44
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
xor eax, eax
jmp 0x423c44
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x423c50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
cmp dword [ebp - 0x10], 0
jne 0x423cb1
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp - 0x18]
jae 0x423ca5
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x28], edx
jmp 0x423cab
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x24]
add edx, 0x18
push edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0
jne 0x423d7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x3e5
jne 0x423d44
push 1
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0x24]
add eax, 0x18
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x423d42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x3e4
je 0x423d40
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x423d80
jmp 0x423ced
jmp 0x423d7d
cmp dword [ebp - 0x20], 5
jne 0x423d5a
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x423d80
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x423d80
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x42cde5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x42ce09
cmp dword [edi + 0x54], 0
jne 0x42ce09
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00437c60
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042cda6
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4326d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x432718
call fcn.00437c60
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x432718
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x432734
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00432249
mov esi, eax
test edi, edi
je 0x432732
test ebx, ebx
je 0x432732
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x432f2f
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x465d67
call fcn.0044d66e
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x432f54
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x432f9a
lea ecx, [ebp - 0x10]
call fcn.00401ee0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042b51d
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401e80
mov eax, esi
call fcn.0044d746
ret 8
Function at 0x434e88
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x434ed0
call fcn.00437c60
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x434ed0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x434f13
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x434efc
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x434efc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x434f10
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4369e3
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x436a0e
call fcn.00437c60
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x436a31
push eax
push dword [esi + 4]
call fcn.00436969
push esi
push eax
mov ecx, 0x4890a4
call fcn.00436611
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x437227
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x465d13
call fcn.0044d66e
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call fcn.004371e7
and dword [ebp - 4], 0
lea edi, [esi + 0x18]
mov ecx, edi
mov dword [esi], vtable.CFtpConnection.0
call fcn.00401ee0
push dword [ebp + 0xc]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00405560
push dword [esi + 8]
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebx + 8]
neg eax
sbb eax, eax
and eax, 0x8000000
push eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4372aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 8]
call fcn.00436969
push dword [esi + 0xc]
mov ecx, 0x4890a4
push eax
call fcn.00436611
mov eax, esi
call fcn.0044d746
ret 0x1c

Function at 0x44ab88
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x485ba0]
jne 0x44ab92
repz ret
jmp fcn.0045294e
Function at 0x45de7d
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.004522b2
and dword [ebp - 4], 0
cmp dword [0x48a198], 0
mov ebx, eax
jne 0x45df2e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x45dfdf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x45dfdf
push eax
call fcn.00452240
mov dword [esp], 0x46e358
push edi
mov dword [0x48a198], eax
call esi
push eax
call fcn.00452240
mov dword [esp], 0x46e344
push edi
mov dword [0x48a19c], eax
call esi
push eax
call fcn.00452240
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48a1a0], eax
call esi
push eax
call fcn.00452240
pop ecx
mov dword [0x48a1a8], eax
test eax, eax
je 0x45df2e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00452240
pop ecx
mov dword [0x48a1a4], eax
mov eax, dword [0x48a1a4]
cmp eax, ebx
je 0x45df86
cmp dword [0x48a1a8], ebx
je 0x45df86
push eax
call fcn.004522bb
push dword [0x48a1a8]
mov esi, eax
call fcn.004522bb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x45df86
test edi, edi
je 0x45df86
call esi
test eax, eax
je 0x45df7d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x45df7d
test byte [ebp - 0xc], 1
jne 0x45df86
or dword [ebp + 0x10], 0x200000
jmp 0x45dfbf
mov eax, dword [0x48a19c]
cmp eax, ebx
je 0x45dfbf
push eax
call fcn.004522bb
pop ecx
test eax, eax
je 0x45dfbf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x45dfbf
mov eax, dword [0x48a1a0]
cmp eax, ebx
je 0x45dfbf
push eax
call fcn.004522bb
pop ecx
test eax, eax
je 0x45dfbf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48a198]
call fcn.004522bb
pop ecx
test eax, eax
je 0x45dfdf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x45dfe1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4608b8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4608e9
call fcn.0044b4fe
mov dword [eax], esi
call fcn.0044b4eb
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0044c268
add esp, 0x14
push 0x16
pop eax
jmp 0x46093e
test dword [ebp + 0xc], 0xfffffff9
jne 0x4608c5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x460916
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0044b511
pop ecx
call fcn.0044b4eb
mov eax, dword [eax]
jmp 0x46093e
test al, 0x10
jne 0x46093c
test al, 1
je 0x46093c
test byte [ebp + 0xc], 2
je 0x46093c
call fcn.0044b4fe
mov dword [eax], 5
call fcn.0044b4eb
mov dword [eax], 0xd
jmp 0x46090d
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1803fb0
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [0x1812310], edi
mov dword [ebp - 8], ebx
jbe 0x1803ff1
xor esi, esi
push dword [ebp + 8]
mov eax, dword [0x18176a4]
push dword [esi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1803ffb
inc ebx
add esi, 0x14
cmp ebx, dword [0x1812310]
mov dword [ebp - 8], ebx
jb 0x1803fcb
mov eax, 0x490
jmp 0x18041a0
cmp dword [0x181230c], edi
jbe 0x1804028
xor esi, esi
mov eax, dword [0x18176a8]
cmp dword [esi + eax + 0x30], ebx
jne 0x180401a
push edi
call fcn.01803edc
dec edi
sub esi, 0x48
inc edi
add esi, 0x48
cmp edi, dword [0x181230c]
jb 0x1804005
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x180408f
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push 0x180136c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x1804072
mov ecx, dword [0x18176a4]
lea eax, [ebx + ebx*4]
push dword [ecx + eax*4 + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x180408f
push dword [ebp + 8]
push 0x3e9
push dword [0x1813678]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
mov eax, esi
jmp 0x18041a0
mov eax, dword [0x18176a4]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea ebx, [ebx + ebx*4]
shl ebx, 2
push dword [ebx + eax]
push edi
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
mov eax, dword [0x18176a4]
and dword [ebx + eax], 0
mov eax, dword [0x18176a4]
push dword [ebx + eax + 4]
push 0
call esi
push eax
call edi
mov eax, dword [0x18176a4]
and dword [ebx + eax + 4], 0
mov eax, dword [0x1812310]
lea eax, [eax + eax*4 - 5]
shl eax, 2
push eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp + 8], eax
jne 0x18040f9
push 8
pop eax
jmp 0x18041a0
mov esi, dword [0x18176a4]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp - 8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x1812310]
mov esi, dword [0x18176a4]
sub ecx, edx
dec ecx
lea ecx, [ecx + ecx*4]
shl ecx, 2
lea edi, [ebx + eax]
mov eax, ecx
shr ecx, 2
lea esi, [ebx + esi + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
dec dword [0x1812310]
xor edi, edi
xor esi, esi
cmp dword [0x181230c], edi
jbe 0x180416d
xor ecx, ecx
mov eax, dword [0x18176a8]
lea eax, [ecx + eax + 0x30]
cmp dword [eax], edx
jbe 0x1804161
dec dword [eax]
inc esi
add ecx, 0x48
cmp esi, dword [0x181230c]
jb 0x1804152
mov eax, dword [0x18176a4]
add ebx, eax
cmp dword [ebx + 8], edi
je 0x1804182
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x18176a4]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 8]
mov dword [0x18176a4], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x18045b4
Capabilities:
Persist via netsh registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x18122e8]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
cmp dword [0x1812310], ebx
mov dword [ebp - 0xa8], eax
jbe 0x180460b
xor esi, esi
push dword [ebp - 0xa8]
mov eax, dword [0x18176a4]
push dword [esi + eax]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x18046f4
inc edi
add esi, 0x14
cmp edi, dword [0x1812310]
jb 0x18045e1
push ebx
lea eax, [ebp - 0xac]
push eax
push ebx
push 0xf003f
push ebx
push 0x18013cc
push ebx
push 0x180136c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x18046d9
push dword [ebp - 0xa8]
call dword [sym.imp.msvcrt.dll__wcsdup]
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x1804655
push 8
pop eax
jmp 0x180470f
mov esi, dword [sym.imp.msvcrt.dll_wcsrchr]
push 0x2f
push edi
mov ebx, edi
call esi
test eax, eax
pop ecx
pop ecx
jne 0x1804673
push 0x5c
push edi
call esi
test eax, eax
pop ecx
pop ecx
je 0x1804676
lea ebx, [eax + 2]
lea eax, [ebp - 0xa4]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0xa4]
push 0x2e
push eax
call esi
add esp, 0x10
test eax, eax
je 0x180469a
and word [eax], 0
push edi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xac]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.msvcrt.dll_free]
test esi, esi
pop ecx
je 0x18046f4
push dword [ebp - 0xa8]
push 0x3e8
push dword [0x1813678]
call sym.NETSH.EXE_PrintMessageFromModule
add esp, 0xc
jmp 0x180470d
push dword [ebp - 0xa8]
lea eax, [ebp - 0xa4]
push eax
call fcn.0180447a
mov esi, eax
call fcn.01802f63
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01808732
leave
ret 4