joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495d9c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x495f47
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x495f28
mov dl, 1
mov eax, dword [0x41d3ac]
call fcn.0040441c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040539c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x495f17
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00483c4c
test al, al
je 0x495f0a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x495f58
lea eax, [ebp - 0x254]
call fcn.0040e158
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x495f0a
xor eax, eax
push ebp
push 0x495f03
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x495f90
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x495eec
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040560c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x495eec
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040560c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495f0a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x495e0d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00421ef0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x495f4e
lea eax, [ebp - 0x260]
call fcn.0040539c
ret

Function at 0x4968d8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x570550]
cmp byte [eax + 0xa5], 0
jne 0x496949
cmp dword [0x570568], 0
jne 0x49690a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x496894
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x570568], eax
cmp dword [0x570564], 0
jne 0x496925
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x570564], eax
cmp dword [0x57056c], 0
jne 0x496949
push esp
push 0
push 0
push 0x496838
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x57056c], eax
pop edx
ret
Function at 0x49700c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x570550]
cmp dword [eax + 0x30], 0
je 0x4970b6
cmp dword [ebx + 0x94], 0
jne 0x4970b0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x496f9c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4970b0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x497076
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4970b0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041f7c0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x497085
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x497c14
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x497c49
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040548c
jmp 0x497c56
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004053f0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x498d90
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x498dd1
mov eax, esi
call fcn.0047f30c
test al, al
je 0x498dd1
mov eax, dword [ebx + 0x84]
call fcn.0047f008
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x498dd1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047f008
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x49a160
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00405868
xor eax, eax
push ebp
push 0x49a1de
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405878
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x49a1a9
mov eax, dword [ebx + 4]
call fcn.00405878
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a1e5
lea eax, [ebp - 4]
call fcn.0040539c
ret
Function at 0x49b1e0
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49b37d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00403374
cmp word [ebx + 0xa2], 0
je 0x49b229
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x49b23d
lea esi, [ebp - 8]
jmp 0x49b23f
xor esi, esi
cmp dword [ebx + 0x80], 0
jne 0x49b24c
xor edi, edi
jmp 0x49b259
mov eax, dword [ebx + 0x80]
call fcn.00405878
mov edi, eax
mov eax, dword [ebx + 0x7c]
call fcn.00405878
push eax
push edi
lea edx, [ebp - 0x14]
mov eax, ebx
call fcn.0049a918
mov eax, dword [ebp - 0x14]
call fcn.00405878
push eax
push esi
mov eax, dword [ebx + 0x74]
call fcn.00405878
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405878
push eax
mov eax, ebx
call fcn.0049aa4c
push eax
mov eax, ebx
call fcn.0049aa20
push eax
mov eax, ebx
call fcn.0049a9d4
push eax
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0049a7e4
mov eax, dword [ebp - 0x18]
call fcn.00405878
push eax
mov eax, dword [ebx + 8]
call fcn.00405878
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 0xc], 0
jne 0x49b2e2
call fcn.00412988
xor edx, edx
push ebp
push 0x49b35b
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x49b320
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x49b316
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49b344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b362
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x49b38c
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x49b3b8
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00405878
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x49b3dd
call fcn.00412988
xor eax, eax
push ebp
push 0x49b414
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x49b3fd
call fcn.00412988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b41b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x49cfa0
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa8
mov dword [esp + 4], edx
mov dword [esp], eax
lea edi, [esp + 0xc]
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
lea eax, [esp + 0x18]
push eax
call sub.kernel32.dll_GetSystemInfo
mov esi, dword [esp + 0x1c]
call sub.kernel32.dll_GetCurrentProcessId
mov ebp, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
xor ebx, ebx
mov eax, dword [esp + 0x14]
mov dword [edi], eax
mov eax, dword [edi]
shr eax, 0x10
shl eax, 0x10
mov dword [edi], eax
mov eax, ebx
shl eax, 0x10
sub dword [edi], eax
mov eax, dword [edi]
xor edx, edx
div esi
imul esi
mov dword [edi], eax
push 4
push 0x3000
push esi
mov eax, dword [edi]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
je 0x49d034
mov eax, dword [edi]
cmp eax, dword [esp + 0x10]
je 0x49d034
push 0x8000
push 0
mov eax, dword [esp + 0x18]
push eax
call sub.kernel32.dll_VirtualFree_1
inc ebx
jmp 0x49d0d0
cmp dword [esp + 0x10], 0
jne 0x49d0d9
push 0x1c
lea eax, [esp + 0x40]
push eax
mov eax, dword [edi]
push eax
call sub.kernel32.dll_VirtualQuery_1
cmp dword [esp + 0x48], 0x118
jb 0x49d0cb
mov eax, dword [esp + 0x50]
and eax, 4
cmp eax, 4
jne 0x49d0cb
mov eax, ebp
xor edx, edx
xor eax, 0x23456789
xor edx, 0xabcdef01
push edx
push eax
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x49d086
cmp eax, dword [esp]
pop edx
pop eax
jne 0x49d0cb
mov eax, ebp
xor edx, edx
xor eax, 0x10fedcba
xor edx, 0x98765432
push edx
push eax
mov eax, dword [edi]
mov edx, dword [eax + 0x114]
mov eax, dword [eax + 0x110]
cmp edx, dword [esp + 4]
jne 0x49d0b3
cmp eax, dword [esp]
pop edx
pop eax
jne 0x49d0cb
mov eax, dword [edi]
add eax, 8
mov edx, dword [esp]
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.00403a50
je 0x49d0d9
inc ebx
xor eax, eax
mov dword [edi], eax
cmp ebx, 0x14
jle 0x49cfd9
xor eax, eax
mov dword [esp + 8], eax
cmp dword [esp + 0x10], 0
je 0x49d157
mov eax, dword [edi]
cmp eax, dword [esp + 0x10]
jne 0x49d17d
mov eax, ebp
xor edx, edx
xor eax, 0x23456789
xor edx, 0xabcdef01
mov ecx, dword [edi]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [edi]
add eax, 8
mov edx, dword [esp]
call fcn.004039a4
mov eax, ebp
xor edx, edx
xor eax, 0x10fedcba
xor edx, 0x98765432
mov ecx, dword [edi]
mov dword [ecx + 0x110], eax
mov dword [ecx + 0x114], edx
mov eax, dword [edi]
mov dword [eax + 0x108], 1
mov eax, dword [edi]
add eax, 0x118
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
mov dword [eax], 1
jmp 0x49d17d
cmp dword [edi], 0
je 0x49d17d
mov eax, dword [edi]
inc dword [eax + 0x108]
mov eax, dword [edi]
add eax, 0x118
mov dword [esp + 8], eax
mov eax, dword [edi]
mov eax, dword [eax + 0x108]
mov edx, dword [esp + 4]
mov dword [edx], eax
mov eax, dword [esp + 8]
add esp, 0x58
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x49eff8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x49f09f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00405878
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x49f089
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00405a04
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00405878
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x49f089
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x49f0b0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x49f089
cmp dword [ebp - 8], 0x34
jne 0x49f089
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f0a6
lea eax, [ebp - 0x10]
call fcn.0040539c
ret

Function at 0x4a0070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a00ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x56b200]
cmp dword [eax], 2
jne 0x4a00c0
lea eax, [ebp - 4]
mov edx, esi
call fcn.00405c20
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
mov eax, dword [ebp - 4]
call fcn.00405c9c
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExW
mov ebx, eax
jmp 0x4a00d6
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
push esi
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a00f3
lea eax, [ebp - 4]
call fcn.00405b00
ret
Function at 0x4a0234
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4a024e
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 1], 1
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
call fcn.0040539c
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, esi
call fcn.00405878
mov edx, eax
mov eax, ebx
call fcn.0049ff04
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4a0396
xor eax, eax
push ebp
push 0x4a038f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, edi
call fcn.00405878
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4a0361
mov ax, word [0x4a03b8]
mov word [ebp - 0x12], ax
cmp byte [ebp + 0x10], 0
je 0x4a02df
mov ax, word [0x4a03bc]
or ax, word [ebp - 0x12]
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0xc]
cmp eax, 0xf
ja 0x4a02eb
bt dword [ebp - 0x12], eax
jb 0x4a02f8
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.0049fe5c
mov edx, dword [ebp - 0x10]
shr edx, 0
inc edx
mov eax, dword [ebp + 0xc]
call fcn.00405a04
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
push 0
push 0
mov eax, edi
call fcn.00405878
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4a0350
mov eax, dword [ebp + 0xc]
call fcn.0040539c
cmp byte [ebp + 8], 0
je 0x4a0345
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.0049fdd4
jmp 0x4a0350
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], 1
mov edx, dword [ebp - 0x10]
dec edx
shr edx, 0
mov eax, dword [ebp + 0xc]
call fcn.00405a04
jmp 0x4a0378
cmp byte [ebp + 8], 0
je 0x4a0374
mov ecx, edi
mov edx, esi
mov eax, ebx
call fcn.0049fdd4
jmp 0x4a0378
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a03ab
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [ebp + 8], 0
je 0x4a03a7
mov edx, esi
mov eax, ebx
call fcn.0049fcdc
jmp 0x4a03ab
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4a03c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov edx, esi
mov eax, ebx
call fcn.004a0884
test al, al
jne 0x4a03e3
mov edx, esi
mov eax, ebx
call fcn.004a0474
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
mov eax, esi
call fcn.00405878
mov edx, eax
mov eax, ebx
call fcn.0049ff04
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4a0463
xor eax, eax
push ebp
push 0x4a045c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
xor eax, eax
mov al, byte [ebp + 0x10]
push eax
push 0
mov eax, edi
call fcn.00405878
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4a0445
mov edx, esi
mov eax, ebx
call fcn.0049fd58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a046c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov edx, esi
mov eax, ebx
call fcn.0049fd58
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x4a04a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.00405878
mov edx, eax
mov eax, ebx
call fcn.0049ff04
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
sete al
mov ebx, eax
test bl, bl
je 0x4a0513
push 0
push 0
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.00405878
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x4a0cc0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a0db0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040539c
lea eax, [ebp - 0x198]
push eax
mov dl, 1
mov al, 1
call fcn.004089e8
push eax
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4a0d9a
xor eax, eax
push ebp
push 0x4a0d93
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, esi
call fcn.00405434
cmp dword [ebp - 8], 0
jne 0x4a0d45
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00405a04
push 0x104
mov eax, dword [ebp - 8]
call fcn.00405878
push eax
call sub.wsock32.dll_gethostname
mov eax, dword [ebp - 8]
call fcn.00405878
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4a0d80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x1a4], eax
push dword [ebp - 0x1a4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.00405594
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0d9a
call sub.wsock32.dll_WSACleanup
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0db7
lea eax, [ebp - 8]
call fcn.0040539c
ret

Function at 0x4a0f18
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00405878
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00405878
mov edi, eax
push edi
push 0
call sub.advapi32.dll_LookupAccountNameA
mov edx, dword [ebp - 8]
inc edx
mov eax, ebx
call fcn.00405a04
mov eax, dword [ebp - 4]
call fcn.0040c340
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4a0fda
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00405878
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
push 0
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
je 0x4a0fb5
mov eax, ebx
call fcn.0049eb60
jmp 0x4a0fc4
mov eax, ebx
mov edx, dword [0x56afc4]
mov edx, dword [edx]
call fcn.004053f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a0fe1
mov eax, dword [ebp - 0xc]
call fcn.00402e24
ret
Function at 0x4a1064
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
call sub.kernel32.dll_GetCurrentProcessId
cmp ebx, eax
je 0x4a10f1
push ebx
push 0
push 0x100001
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4a10f1
xor eax, eax
push ebp
push 0x4a10ea
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
push 0x4a1034
call sub.user32.dll_EnumWindows
push esi
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x4a10c0
mov byte [ebp - 1], 1
jmp 0x4a10d3
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x4a10d3
mov byte [ebp - 1], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a10f1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
mov al, byte [ebp - 1]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4a12f8
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff3c
push ebx
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a1520
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xa0]
xor ecx, ecx
mov edx, 0x9c
call fcn.00403ac0
lea eax, [ebp - 0xc4]
xor ecx, ecx
mov edx, 0x24
call fcn.00403ac0
mov dword [ebp - 0xa0], 0x9c
lea eax, [ebp - 0xc4]
call fcn.004a19e8
cmp byte [0x5593e8], 0
je 0x4a13a0
call fcn.004a182c
cmp eax, 6
jl 0x4a13a0
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x4a14ab
cmp byte [ebp - 6], 1
jne 0x4a1384
mov bl, 1
jmp 0x4a14ab
mov ax, word [ebp - 8]
and ax, 2
cmp ax, 2
jne 0x4a1399
mov bl, 7
jmp 0x4a14ab
mov bl, 2
jmp 0x4a14ab
cmp byte [0x5593ec], 0
je 0x4a13ee
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x4a14ab
mov al, byte [ebp - 6]
add al, 0xfe
sub al, 2
jae 0x4a13e7
mov ax, word [ebp - 8]
test al, 0x80
je 0x4a13d5
mov bl, 6
jmp 0x4a14ab
test al, 2
je 0x4a13e0
mov bl, 3
jmp 0x4a14ab
mov bl, 2
jmp 0x4a14ab
mov bl, 5
jmp 0x4a14ab
cmp byte [0x5593f8], 0
jne 0x4a1409
cmp byte [0x5593f4], 0
jne 0x4a1409
cmp byte [0x5593fc], 0
je 0x4a1466
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x4a14ab
mov al, byte [ebp - 6]
mov edx, eax
add dl, 0xfe
sub dl, 2
jae 0x4a145e
mov ax, word [ebp - 8]
mov edx, eax
and dx, 0x80
cmp dx, 0x80
jne 0x4a1440
mov bl, 6
jmp 0x4a14ab
mov edx, eax
and dx, 2
cmp dx, 2
jne 0x4a1450
mov bl, 7
jmp 0x4a14ab
cmp ax, 0x400
jne 0x4a145a
mov bl, 8
jmp 0x4a14ab
mov bl, 2
jmp 0x4a14ab
cmp al, 1
jne 0x4a14ab
mov bl, 5
jmp 0x4a14ab
cmp byte [0x5593f0], 0
jne 0x4a1481
cmp byte [0x559400], 0
jne 0x4a1481
cmp byte [0x559404], 0
je 0x4a14ab
lea eax, [ebp - 0xa0]
push eax
call sub.kernel32.dll_GetVersionExA_1
test eax, eax
je 0x4a14ab
cmp byte [ebp - 6], 1
jne 0x4a14ab
mov ax, word [ebp - 8]
and ax, 0x200
cmp ax, 0x200
jne 0x4a14a9
mov bl, 4
jmp 0x4a14ab
mov bl, 5
test bl, bl
jne 0x4a150a
push 0
lea eax, [ebp - 4]
push eax
mov ecx, 0x4a1538
mov edx, 0x4a154c
mov eax, 0x80000002
call fcn.004a0694
mov edx, 0x4a1584
mov eax, dword [ebp - 4]
call fcn.0040c4c4
test eax, eax
jne 0x4a14de
mov bl, 1
jmp 0x4a150a
mov edx, 0x4a1594
mov eax, dword [ebp - 4]
call fcn.0040c4c4
test eax, eax
jne 0x4a14f3
mov bl, 3
jmp 0x4a150a
mov edx, 0x4a15a8
mov eax, dword [ebp - 4]
call fcn.0040c4c4
test eax, eax
jne 0x4a1508
mov bl, 2
jmp 0x4a150a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1527
lea eax, [ebp - 4]
call fcn.0040539c
ret