joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a0920
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x612790]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
push edi
mov eax, dword [esi + 0x2c]
mov al, byte [eax]
cmp al, 0x62
je 0x4a0ad1
cmp al, 0x66
jne 0x4a0b22
lea ebp, [esi + 0x14]
xor eax, eax
test dword [ebp], 0x100
je 0x4a096f
push str.CARES_HOSTS
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
jne 0x4a0a37
mov byte [esp + 0x18], al
call fcn.0049f7d0
cmp eax, 3
jne 0x4a09f1
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a0a0a
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push eax
lea eax, [esp + 0x120]
push eax
push 0
push 0
push str.DatabasePath
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x104
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a0a0a
cmp eax, 2
jne 0x4a0b16
push 0x104
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x18]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x4a0a10
mov eax, dword [str.hosts]
mov dword [ecx], eax
mov ax, word [0x5fe08c]
mov word [ecx + 4], ax
mov al, byte [0x5fe08e]
mov byte [ecx + 6], al
lea eax, [esp + 0x18]
push 0x5ec364
push eax
call fcn.0049a181
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a0a5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
inc dword [esi + 0x2c]
jmp 0x4a093f
push dword [esi + 0x30]
movzx eax, word [esi + 8]
push ebp
push eax
push dword [esi + 4]
push edi
call fcn.004a2400
push edi
mov ebx, eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 0x18
cmp ebx, 4
jne 0x4a0ac5
mov edi, dword [esi + 4]
mov ecx, str.localhost
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4a0aa8
test dl, dl
je 0x4a0aa4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4a0aa8
add eax, 2
add ecx, 2
test dl, dl
jne 0x4a0a88
xor eax, eax
jmp 0x4a0aad
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4a0ac5
push dword [esi + 0x30]
movzx eax, word [esi + 8]
push ebp
push eax
push edi
call fcn.004a28a0
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x4a0b1e
inc dword [esi + 0x2c]
jmp 0x4a093f
mov ecx, dword [esi + 4]
mov eax, str.localhost
nop dword [eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4a0b00
test dl, dl
je 0x4a0afc
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4a0b00
add ecx, 2
add eax, 2
test dl, dl
jne 0x4a0ae0
xor eax, eax
jmp 0x4a0b05
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a0b16
push esi
call fcn.004a07c0
add esp, 4
test eax, eax
jne 0x4a0b32
inc dword [esi + 0x2c]
jmp 0x4a093f
push 0
jmp 0x4a0b29
push dword [esp + 0x22c]
push esi
call fcn.004a0460
add esp, 8
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00498b38
add esp, 0x214
ret
Function at 0x4a14f0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
jle 0x4a1592
mov esi, dword [esp + 0x18]
xor ecx, ecx
add esi, 4
mov edx, esi
nop dword [eax]
mov ebp, dword [edx]
mov eax, closesocket
sub eax, edi
cmp ebp, eax
ja 0x4a1592
inc ecx
add edi, ebp
add edx, 8
cmp ecx, ebx
jl 0x4a1510
test edi, edi
jne 0x4a1532
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push edi
call dword [0x6127b4]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4a1554
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov ebp, eax
push dword [esi]
push dword [esi - 4]
push ebp
call sub.VCRUNTIME140.dll_memcpy
add ebp, dword [esi]
lea esi, [esi + 8]
add esp, 0xc
sub ebx, 1
jne 0x4a1556
push ebx
push edi
mov edi, dword [esp + 0x24]
push edi
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_send]
push edi
mov esi, eax
call dword [0x6127bc]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0x2726
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
Function at 0x4a1de0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push edi
xor edi, edi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4a1fb7
mov eax, dword [eax + 0x1c]
mov ebx, edi
inc edi
mov dword [esp + 0x20], ebx
test eax, eax
jne 0x4a1df7
test edi, edi
je 0x4a1fb7
lea eax, [edi + edi*4]
shl eax, 3
push esi
push eax
mov dword [esp + 0x2c], eax
call dword [0x6127b4]
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
test esi, esi
jne 0x4a1e37
lea eax, [esi + 0xf]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ebp, dword [ebp + 0x1c]
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
test edi, edi
jle 0x4a1f3c
mov ebx, dword [esp + 0x30]
lea ecx, [esi + 0x24]
mov dword [esp + 0x10], ecx
mov dword [ecx], eax
mov dword [ecx - 0x24], ebp
mov ebp, dword [ebp + 0x18]
movzx ecx, word [ebp]
mov eax, ecx
sub eax, 2
je 0x4a1e7d
sub eax, 0x15
je 0x4a1e76
xor eax, eax
jmp 0x4a1f0a
mov eax, 0x1c
jmp 0x4a1e82
mov eax, 0x10
push 0x11
push 2
push ecx
push ebx
mov dword [esp + 0x24], eax
call fcn.0049ce50
mov esi, eax
add esp, 0x10
cmp esi, 0xffffffff
jne 0x4a1eb0
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 0x273f
jne 0x4a1f9d
xor eax, eax
jmp 0x4a1f0a
push dword [esp + 0x14]
push ebp
push esi
push ebx
call fcn.0049cdb0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4a1edf
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 0x2714
je 0x4a1eb0
push esi
push ebx
call fcn.0049cd80
add esp, 8
xor eax, eax
jmp 0x4a1f0a
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
add eax, 0xffffffe4
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
push esi
push ebx
test eax, eax
jne 0x4a1f95
call fcn.0049cd80
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
mov dword [ecx - 0x20], eax
add ecx, 0x28
mov eax, dword [esp + 0x18]
mov ebp, dword [ebp + 0x1c]
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ebp
cmp eax, edi
jl 0x4a1e57
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push 0x4a2260
push 0x28
push edi
push esi
call sub.api_ms_win_crt_utility_l1_1_0.dll_qsort
mov ecx, dword [esp + 0x44]
add esp, 0x10
mov eax, dword [esi]
mov dword [ecx + 0x1c], eax
test ebx, ebx
jle 0x4a1f72
mov ecx, esi
nop dword [eax]
mov eax, dword [ecx + 0x28]
lea edx, [ecx + 0x28]
mov ecx, dword [ecx]
mov dword [ecx + 0x1c], eax
lea ecx, [edx]
sub ebx, 1
jne 0x4a1f60
mov eax, dword [esp + 0x28]
push esi
mov eax, dword [eax + esi - 0x28]
mov dword [eax + 0x1c], 0
call dword [0x6127bc]
add esp, 4
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
call fcn.0049cd80
add esp, 8
push dword [esp + 0x20]
call dword [0x6127bc]
add esp, 4
mov eax, 4
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x1c
ret
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x4a30c0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x18
push ebx
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x4a30f2
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret 0x10
mov eax, dword [esp + 4]
xor ecx, ecx
inc eax
mov edx, 4
mul edx
push ebp
push esi
seto cl
neg ecx
or ecx, eax
push edi
push ecx
call fcn.004994c5
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], 0
mov ebp, eax
mov dword [esp + 0x20], ebp
test ecx, ecx
je 0x4a318c
mov eax, ebx
sub eax, ebp
mov dword [esp + 0x1c], eax
mov ebx, dword [eax + ebp]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.004994c5
add esp, 4
mov edi, eax
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x14]
lea ebp, [ebp + 4]
inc eax
mov dword [ebp - 4], edi
mov ecx, dword [esp + 0x10]
cmp eax, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
jne 0x4a3131
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
push ebx
mov dword [ebp + ecx*4], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
push dword [esp + 0x14]
call fcn.00408890
xor esi, esi
add esp, 8
mov edi, eax
cmp dword [esp + 0x10], esi
je 0x4a31ca
mov ecx, dword [ebp + esi*4]
test ecx, ecx
je 0x4a31ca
push ecx
call fcn.004994ce
inc esi
add esp, 4
cmp esi, dword [esp + 0x10]
jne 0x4a31b2
push ebp
call fcn.004994ce
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x41387c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415ac0
push 0x4139ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x41a128], 0xffffffff
or dword [0x41a12c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x419df0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x419dec]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41a130], eax
call fcn.004139ad
cmp dword [0x419de0], 0
jne 0x4138ff
push 0x4139aa
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00413998
push 0x41600c
push 0x416008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x419de8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x419de4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x416004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401028
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x1002fa40
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x100a7008]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, ecx
mov ecx, 0x100aa321
call fcn.10066665
push pe_nt_image_headers32
lea eax, [esi + 4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1002fb8c
cmp dword [esi + 4], 6
push edi
ja 0x1002faa0
jne 0x1002fb28
cmp dword [esi + 8], 2
jb 0x1002fb28
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x1002fb28
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1002fb28
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002fb28
movups xmm0, xmmword [0x10083800]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x10083810]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x1002fb28
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1002fb28
cmp word [edi + 2], ax
jbe 0x1002fb28
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1002fb73
push pe_nt_image_headers32
lea eax, [esp + 0x10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x1002fb73
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.1006413c
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.1006413c
add esp, 0x140
ret

Function at 0x10030a60
Capabilities:
Create directory

Disassembly:
push esi
mov esi, ecx
mov ecx, 0x100aa321
call fcn.10066665
mov ecx, esi
pop esi
jmp fcn.100323d0
Function at 0x100336e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10097720
push 0x10064dbe
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x100a7008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov dword [ebp - 0x438], esi
mov ecx, 0x100aa321
call fcn.10066665
mov dword [ebp - 4], 0
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10033743
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov edx, esi
call fcn.10033820
mov bl, al
mov byte [ebp - 0x431], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x1003377e
test bl, bl
jne 0x100337fd
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x10033793
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
push 0x410
push ecx
lea eax, [ebp - 0x430]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x207
lea eax, [ebp - 0x430]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [ebp - 0x430]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100337d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x430]
push eax
mov ecx, esi
call fcn.10003b10
movzx ebx, bl
mov eax, 1
cmp dword [esi + 0x10], 0
cmovne ebx, eax
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1006413c
mov esp, ebp
pop ebp
ret
Function at 0x40a130
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
mov eax, dword [0x4ae9fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [ebp - 0x3f4]
push edx
push 0x20019
push 0
push str.TypeLib
push SysReAllocString
mov dword [ebp - 0x3fc], eax
mov dword [ebp - 0x400], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push SysReAllocString
mov esi, eax
call edi
test esi, esi
je 0x40a197
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d3f1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x3f4]
lea eax, [ebp - 0x3f0]
push eax
push 0x20019
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp - 0x3f4]
push edx
mov esi, eax
call edi
test esi, esi
jne 0x40a185
mov edx, dword [ebp - 0x3f0]
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x3ec]
push ecx
push esi
push edx
mov dword [ebp - 0x3f8], 0x3e8
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [ebp - 0x3f0]
push eax
call edi
test esi, esi
jne 0x40a185
mov ecx, dword [ebp - 0x400]
mov edx, dword [ebp - 0x3fc]
push ecx
push edx
lea eax, [ebp - 0x3ec]
push str._d._d
push eax
call fcn.0046fdfd
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0046d3f1
mov esp, ebp
pop ebp
ret
Function at 0x40a230
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2720
call fcn.00484a30
mov eax, dword [0x4ae9fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x270f
mov esi, ecx
lea ecx, [ebp - 0x2713]
push 0
push ecx
mov ebx, edx
mov dword [ebp - 0x2720], eax
mov byte [ebp - 0x2715], 0
mov byte [ebp - 0x2714], 0
call fcn.00476c70
mov eax, esi
add esp, 0xc
mov ecx, eax
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a280
push edi
lea edi, [ebp - 0x2714]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a291
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebx, ebx
je 0x40a2f6
lea edi, [ebp - 0x2714]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40a2b2
mov dx, word [0x497f14]
mov eax, ebx
mov word [edi], dx
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40a2c8
lea edi, [ebp - 0x2714]
sub eax, ecx
mov esi, ecx
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a2e0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea eax, [ebp - 0x271c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x2714]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
test eax, eax
jne 0x40a39b
mov esi, dword [ebp - 0x2720]
test esi, esi
je 0x40a355
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a332
sub eax, edx
mov edx, dword [ebp - 0x271c]
inc eax
push eax
push esi
push 1
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40a376
mov eax, dword [ebp - 0x271c]
push eax
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d3f1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x271c]
mov bl, byte [ebp - 0x2715]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d3f1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x2715]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d3f1
mov esp, ebp
pop ebp
ret

Function at 0x40a3c0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2714
call fcn.00484a30
mov eax, dword [0x4ae9fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x270f
lea eax, [ebp - 0x2713]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x2714], 0
call fcn.00476c70
mov eax, esi
add esp, 0xc
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a400
lea edi, [ebp - 0x2714]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40a410
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x2714]
push ecx
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov ecx, dword [ebp - 4]
test eax, eax
sete al
pop edi
xor ecx, ebp
pop esi
call fcn.0046d3f1
mov esp, ebp
pop ebp
ret
Function at 0x415110
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x491de8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
mov eax, dword [0x4ae9fc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
cmp word [esi], 0xc
jne 0x415154
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0xc]
jmp 0x41516b
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov dx, word [esi]
mov word [esp + 0xc], dx
lea eax, [esp + 0x14]
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SafeArrayPutElement]
xor ecx, ecx
cmp eax, ecx
jge 0x4151d8
mov dword [esp + 0x20], vtable.tcomxException.0
mov dword [esp + 0x28], vtable.tStringBuffer.0
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x40], ecx
mov ebx, dword [str.Internal_Error]
lea esi, [esp + 0x28]
mov dword [esp + 0x24], ecx
call fcn.0040b280
mov edx, dword [esp + 0x30]
push edx
mov ecx, 0x4965dc
call fcn.004091c0
add esp, 4
push 0x4aa4e0
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x48], 0xffffffff
call fcn.00476a0e
mov edx, dword [esp + 0x10]
push 0xffff
push ecx
push ecx
mov ecx, dword [esp + 0x18]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
push edi
mov dword [eax + 0xc], edx
call fcn.00412a60
add esp, 0x20
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
sar eax, 4
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b390
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [ebp + 0xc]
lea eax, [edx + 5]
push esi
cmp eax, 4
ja case.0x41b3a7.2
jmp dword [eax*4 + 0x41b484]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
or dword [esi + 0x68], 4
test eax, eax
je 0x41b3d8
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
jne 0x41b3d8
mov eax, dword [esi + 0x5c]
push 8
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, dword [ebp + 8]
xor eax, eax
add ecx, 0xffffffbc
cmp edx, 0xfffffffc
sete al
push eax
call fcn.0041bb30
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x18]
lea eax, [esi + 8]
push eax
call edx
test byte [esi + 0x68], 4
je 0x41b438
mov eax, dword [esi + 0x5c]
and dword [esi + 0x68], 0xfffffffb
test eax, eax
je 0x41b438
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x10000000
je 0x41b438
mov eax, dword [esi + 0x5c]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, str.FAIL
test edx, edx
jle 0x41b465
push 0x30e
push 0x4b02cc
call fcn.0041a8d0
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1c
push 0x31a
push str.Unrecognized_Negative_verb_in_DoVerb__.__bad.
call fcn.0041a8d0
add esp, 8
mov eax, 0x80004001
pop esi
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x420cf0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4ae9fc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x420ce0
call fcn.00470ba7
add esp, 4
call fcn.00420ba0
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x420d7e
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x420d44
mov edx, dword [ebp - 0x18]
push edx
jmp 0x420d78
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.0044ac70
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d3f1
mov esp, ebp
pop ebp
ret