joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005944
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call fcn.01012067
jmp fcn.01005858

Function at 0x100661c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x768
push ebx
xor ebx, ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x1006650
mov eax, dword [ebp - 0x28]
mov dword [0x101614c], eax
mov al, byte [ebp - 8]
cmp al, 0x20
mov byte [0x1015e30], al
jbe 0x1006657
xor al, al
jmp 0x1006778
test al, al
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
mov edi, 0x1f40
jbe 0x100669c
push edi
push 0x40
call esi
test eax, eax
mov dword [ebx*4 + 0x1016450], eax
je 0x1006752
push edi
push 0x40
call esi
test eax, eax
mov dword [ebx*4 + 0x10164d0], eax
je 0x1006752
movzx eax, byte [0x1015e30]
inc ebx
cmp ebx, eax
jl 0x1006668
push edi
push 0x40
call esi
test eax, eax
mov dword [0x1016550], eax
je 0x1006752
push 0
push 0x600
lea eax, [ebp - 0x768]
push eax
push 8
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x1006752
movzx eax, byte [0x1015e30]
and dword [ebp - 4], 0
test eax, eax
jle 0x1006738
lea eax, [ebp - 0x760]
mov ecx, dword [ebp - 4]
mov edx, dword [eax - 8]
mov edi, dword [eax + 8]
mov esi, dword [eax + 4]
mov ebx, dword [eax + 0xc]
shl ecx, 3
mov dword [ecx + 0x1016150], edx
mov edx, dword [eax - 4]
mov dword [ecx + 0x1016154], edx
mov edx, dword [eax]
add edi, edx
adc ebx, esi
add edx, dword [eax - 8]
mov dword [ecx + 0x1016250], edi
adc esi, dword [eax - 4]
mov dword [ecx + 0x1016254], ebx
mov dword [ecx + 0x1016350], edx
mov dword [ecx + 0x1016354], esi
movzx ecx, byte [0x1015e30]
add eax, 0x30
inc dword [ebp - 4]
cmp dword [ebp - 4], ecx
jl 0x10066e1
push 0
push 0x138
lea eax, [ebp - 0x168]
push eax
push 2
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jge 0x1006756
xor al, al
jmp 0x1006776
mov eax, dword [0x101614c]
shr eax, 0xa
imul eax, dword [ebp - 0x134]
and dword [0x1016564], 0
mov dword [0x1016560], eax
mov al, byte [0x1015e30]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100a6af
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, ecx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x100a6f9
push ebx
push dword [esi + 0x14]
push eax
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, ebx
jge 0x100a71b
cmp eax, 0xc0000004
jne 0x100a723
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x100a6f9
push eax
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x10], ebx
add dword [esi + 0x14], 0x1000
push dword [esi + 0x14]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x100a6c5
mov dword [ebp - 4], 0x8007000e
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebp - 4], 0x80004005
jmp 0x100a71b
Function at 0x100abe7
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push edi
lea eax, [ebp - 0x48]
mov edi, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xa
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
test eax, eax
mov dword [ebp - 4], eax
je 0x100ad45
push ebx
push esi
push 0x3f2
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x18]
push eax
push dword [edi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [0x1015e50]
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
push 0x15
add eax, eax
sub ebx, eax
sub ebx, dword [ebp - 0x10]
sub esi, eax
sub esi, dword [ebp - 0xc]
xor eax, eax
push eax
push eax
add ecx, esi
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, ebx
push ecx
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DeferWindowPos]
push 0x3f0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100ace3
cmp dword [0x1015e90], 0
je 0x100acd8
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x28]
push eax
push dword [edi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ecx, dword [ebp - 0x24]
push 0x15
xor eax, eax
push eax
push eax
add ecx, esi
push ecx
push dword [ebp - 0x28]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DeferWindowPos]
jmp 0x100ace3
push 0
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3f1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [ebp - 0x38]
push ecx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x38]
push eax
push dword [edi + 4]
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x14]
sub eax, dword [0x1015e50]
push 0x16
sub eax, dword [ebp - 0x34]
add eax, esi
push eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x38]
add eax, ebx
push eax
push edi
push edi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DeferWindowPos]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
pop esi
pop ebx
pop edi
leave
ret
Function at 0x100af3e
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x1015494]
push ebx
push esi
push 0x271a
xor ebx, ebx
push 0x2717
mov dword [ebp - 4], eax
mov esi, ecx
mov dword [ebp - 0x418], ebx
call fcn.0100a1d0
cmp eax, 6
je 0x100af78
xor eax, eax
jmp 0x100b01a
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x414]
push dword [esi + 0x4c]
push 0x1001e54
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x10
pop ecx
xor eax, eax
mov dword [ebp - 0x46c], 0x44
lea edi, [ebp - 0x468]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x46c]
push eax
push ebx
push ebx
push 0x10
push ebx
push ebx
push ebx
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x100afe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x418], eax
jmp 0x100aff6
push dword [ebp - 0x424]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x428]
call edi
cmp dword [ebp - 0x418], ebx
pop edi
je 0x100b017
push dword [ebp - 0x418]
push 0x2722
push dword [esi + 4]
call fcn.01003f97
jmp 0x100af71
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.010120da
leave
ret 4

Function at 0x100b365
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
mov eax, 0x47e0
push eax
push 0
mov dword [ebp - 4], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x100b3c4
push 0
push dword [ebp - 4]
push ebx
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
mov dword [ebp - 8], eax
je 0x100b3ad
push ebx
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
cmp dword [ebp - 8], 0xc0000004
jne 0x100b3cf
add dword [ebp - 4], 0x2000
push dword [ebp - 4]
push 0
call esi
push eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x100b38a
jmp 0x100b3d5
cmp dword [ebp - 8], 0
jge 0x100b3d9
xor eax, eax
jmp 0x100b3db
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100c17d
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
push dword [edi + 0xc]
call fcn.0100b5ea
mov esi, eax
test esi, esi
je 0x100c1ad
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.0100c0bc
test eax, eax
je 0x100c1b4
xor eax, eax
jmp 0x100c27c
push ebx
mov ebx, dword [esi + 0x8c]
test ebx, ebx
je 0x100c1c4
mov eax, dword [ebx + 8]
jmp 0x100c1c7
mov eax, dword [esi + 8]
cmp dword [ebp + 0xc], 0
mov si, word [esi + 0x90]
mov dword [ebp - 8], eax
jne 0x100c1f4
push 0x2719
push 0x2717
mov ecx, edi
call fcn.0100a1d0
cmp eax, 6
je 0x100c1f4
xor eax, eax
jmp 0x100c27b
test ebx, ebx
je 0x100c203
push esi
push dword [ebp - 8]
call sub.VDMDBG.dll_VDMTerminateTaskWOW
jmp 0x100c27b
push 0x1001f28
lea ecx, [ebp - 0x20]
call fcn.01012b16
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100c24b
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x100c23b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x100c242
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100c254
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100c26e
push dword [ebp - 4]
push 0x2721
push dword [edi + 4]
call fcn.01003f97
xor esi, esi
jmp 0x100c271
xor esi, esi
inc esi
lea ecx, [ebp - 0x20]
call fcn.01012b84
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x100d926
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
jne 0x100d94b
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x3c], eax
je 0x100d999
cmp dword [esi + 0x40], edi
jne 0x100d95d
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x40], eax
je 0x100d999
cmp dword [esi + 0x44], edi
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x24]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edi
jne 0x100d99d
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push 0x100d8d3
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x44], eax
jne 0x100d99d
xor eax, eax
jmp 0x100d9b4
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x38]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100f8a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov esi, ecx
push 0x1001500
push 0x80000001
mov dword [esi], 0x10022ec
mov word [esi + 4], 0xf0
mov dword [esi + 8], 0x6a
mov dword [esi + 0xc], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100f948
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [0x1015410]
push dword [ebp - 8]
call edi
test eax, eax
jne 0x100f91b
mov eax, dword [ebp - 4]
mov dword [esi + 8], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push dword [0x1015414]
push dword [ebp - 8]
call edi
test eax, eax
pop edi
jne 0x100f93f
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x100f952
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x1001a3c
push esi
push 0x1001500
mov edi, ecx
push 0x80000001
mov dword [edi], 0x10022ec
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100f9c2
push 4
lea eax, [edi + 8]
push eax
push 4
push esi
push dword [0x1015410]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call esi
push 4
add edi, 0xc
push edi
push 4
push 0
push dword [0x1015414]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x100fc1d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x1001a3c
push esi
push 0x1001500
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100fc75
push 0x64
push 0x1015420
push 3
push esi
push dword [0x1015418]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x1011570
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x10d8
call sub.ntdll.dll__chkstk
mov eax, dword [0x1015494]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10b4], eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x648]
push eax
push 0x2713
push dword [0x1015e28]
call edi
lea eax, [ebp - 0x10d8]
push eax
push 0xa68
lea eax, [ebp - 0x10b0]
push eax
push 1
push dword [esi]
push 0
call sub.WINSTA.dll_WinStationQueryInformationW
test al, al
je 0x10117a1
cmp dword [ebp - 0xb50], 0
jne 0x10115f4
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0x9cbe
jmp 0x101161c
cmp dword [esi + 0x84], 4
jne 0x101165e
cmp dword [ebp - 0xb50], 1
je 0x101160f
cmp dword [ebp - 0xb50], 3
jne 0x101165e
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0x9cbf
push dword [0x1015e28]
call edi
push dword [esi]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x30
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x10b4]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x10117a1
lea ecx, [ebp - 0x10d4]
call fcn.0100f8a4
push dword [ebp - 0x10b4]
lea ecx, [ebp - 0x10d4]
call fcn.0101002a
cmp eax, 1
jne 0x1011796
push 0
push 0x1011524
push dword [ebp - 0x10b4]
push 0xd6
push dword [0x1015e28]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
test eax, eax
mov dword [ebp - 0x10b8], eax
je 0x10116c0
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x10b8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x384
mov dword [ebp - 0x10c0], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10c4]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x10c4], 0xf
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push dword [ebp - 0x10c8]
lea eax, [ebp - 0x24]
push dword [ebp - 0x10cc]
push dword [esi]
push eax
push 0
call sub.WINSTA.dll_WinStationShadow
cmp dword [ebp - 0x10b8], 0
movzx eax, al
mov dword [ebp - 0x10bc], eax
je 0x1011737
push dword [ebp - 0x10b8]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp - 0x10bc], 0
jne 0x101178a
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0x9cbd
push dword [0x1015e28]
call edi
push dword [esi]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x30
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x10b4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x10c0]
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [ebp - 0x10d4]
call fcn.0100f952
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010120da
leave
ret 8
Function at 0x1012851
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002368
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10128a9
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10023a4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101289c
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10128ab
xor eax, eax
pop esi
leave
ret 4

Function at 0x1012c0b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp + 0xc]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x1012c6c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x1012c63
cmp dword [ebp - 0xc], 4
je 0x1012c63
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1012caf
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x1012ca6
cmp dword [ebp - 0xc], esi
je 0x1012ca6
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x1012cbe
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1015494]
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x10c]
push edx
push 1
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1012d34
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.010120da
leave
ret 0xc
Function at 0x1012ea0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1002478
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1012ef2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x100245c
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x1012efc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10154bc]
cmp eax, 0xffffffff
jne 0x1012f80
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10024fc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1012f6f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x10024f0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1012f66
cmp dword [ebp - 0xc], 4
jne 0x1012f66
cmp dword [ebp - 0x10], eax
je 0x1012f66
mov dword [0x10154bc], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x10154bc]
cmp eax, 0xffffffff
jne 0x1012f80
xor eax, eax
mov dword [0x10154bc], eax
leave
ret
Function at 0x430004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x2b457c60
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x17ca58e5
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40b380
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b71b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00460214
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b402
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045db6d
mov eax, dword [eax]
push 0x54a1c0
push eax
call fcn.004509e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046049f
test bl, bl
je 0x40b402
push 0x54a1c0
lea ecx, [esp + 0xc]
call fcn.0046082f
push 0x54dd34
lea ecx, [esp + 0xc]
call fcn.0046082f
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b43e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046049f
jmp 0x40b509
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b4c2
lea edx, [esp + 0x7c]
push 0x54dd30
push edx
call fcn.004509e4
add esp, 8
test eax, eax
je 0x40b4c2
lea eax, [esp + 0x7c]
push 0x54dd2c
push eax
call fcn.004509e4
add esp, 8
test eax, eax
je 0x40b4c2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b452
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046049f
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40bd00
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40bd62
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc