joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470418
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x470677
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x47047a
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0046fee0
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d2b8
cmp al, 1
jne 0x47047a
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004701f8
test al, al
je 0x470606
cmp dword [ebp - 8], 0
jge 0x470498
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0046fee0
mov eax, dword [ebp - 0x210]
call fcn.00403f00
cmp ebx, eax
jge 0x4704e2
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0046fee0
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4d32a8]
and eax, 0xff
bt dword [edx], eax
jae 0x4704e2
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x4704f6
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004703f4
cmp ebx, dword [ebp - 8]
je 0x4705f8
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x470522
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403110
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d2000]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 1
xor eax, eax
push ebp
push 0x4705e5
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403110
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d2000]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004367cc
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00403110
and eax, 0x7f
movzx eax, word [eax*2 + 0x4d2000]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004367cc
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4705ec
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x218], edx
jmp 0x470659
cmp dword [ebp - 8], 0
jge 0x470611
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0046fee0
mov eax, dword [ebp - 0x218]
call fcn.00403f00
cmp eax, dword [ebp - 8]
jg 0x47064b
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0046fee0
mov eax, dword [ebp - 0x21c]
call fcn.00403f00
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004703f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47067e
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00403ca4
ret
Function at 0x48cc24
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x48cc39
add esp, 0xfffffff0
call fcn.00403274
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov esi, eax
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp - 8]
call fcn.004040b4
mov eax, dword [ebp + 0x14]
call fcn.004040b4
xor eax, eax
push ebp
push 0x48cd8d
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00402f04
lea eax, [esi + 4]
mov edx, dword [ebp - 8]
call fcn.00403cd4
lea eax, [esi + 0x10]
mov edx, dword [ebp + 0x14]
call fcn.00403cd4
mov dword [esi + 0xc], edi
mov al, byte [ebp + 0xc]
mov byte [esi + 0x1a], al
mov al, byte [ebp + 8]
mov byte [esi + 0x1c], al
mov byte [esi + 0x1b], 0
mov byte [esi + 0x24], 0
mov byte [esi + 0x26], 1
xor eax, eax
mov dword [esi + 0x28], eax
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x16c]
call fcn.0048bb88
test eax, eax
setle al
mov byte [esi + 0x19], al
mov dl, 1
mov eax, dword [0x41019c]
call fcn.00402f04
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x487c58]
call fcn.0048a7c8
mov edi, eax
mov dword [esi + 0x14], edi
mov edx, dword [esi + 0x10]
push edx
mov ecx, edi
mov eax, dword [esi + 0xc]
mov edx, eax
call fcn.0049697c
mov byte [esi + 0x18], bl
test bl, 1
je 0x48cd0b
mov eax, dword [esi + 0x10]
push eax
mov ecx, 1
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
call fcn.00496bc0
test bl, 2
je 0x48cd24
mov eax, dword [esi + 0x10]
push eax
mov ecx, 2
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
call fcn.00496bc0
test bl, 4
je 0x48cd3d
mov eax, dword [esi + 0x10]
push eax
mov ecx, 4
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
call fcn.00496bc0
test bl, 8
je 0x48cd56
mov eax, dword [esi + 0x10]
push eax
mov ecx, 8
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
call fcn.00496bc0
test bl, 0x10
je 0x48cd6f
mov eax, dword [esi + 0x10]
push eax
mov ecx, 0x10
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0xc]
call fcn.00496bc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48cd94
lea eax, [ebp - 8]
call fcn.00403c80
lea eax, [ebp + 0x14]
call fcn.00403c80
ret
Function at 0x4b3780
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4b37ae
mov eax, ebx
call fcn.004b4224
cmp dword [ebx + 0x3c], 0
je 0x4b37a7
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4b381f
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x4b3811
cmp dword [ebx + 8], 0
je 0x4b37d0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x4b37e2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b3811
cmp dword [ebx + 8], 0
je 0x4b37c3
cmp eax, 3
je 0x4b37f5
dec eax
jne 0x4b37c3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4b37c3
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x4b37c3
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4b383d
cmp dword [ebx + 0x10], 0xcc
je 0x4b383d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b3848
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401640
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x405188], 0x30
mov dword [0x40518c], 0x1000
mov dword [0x405190], 0x401bb0
mov dword [0x405194], 0
mov dword [0x405198], 0
push dword [0x405050]
pop dword [0x40519c]
mov dword [0x4051a8], 0x10
mov dword [0x4051b0], 0x405092
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [0x4051a0], eax
mov dword [0x4051b4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x4051a4], eax
push 0x405188
call sub.user32.dll_RegisterClassExA
call fcn.004012f0
push 0
push dword [0x405050]
push 0
push 0
push pe_nt_image_headers32
push 0x12c
push 0x50
push 0x190
push 0xc0000
push str.Form
push str.proga
push 0
call sub.user32.dll_CreateWindowExA
mov dword [0x40517c], eax
push 0
push dword [0x40517c]
call sub.user32.dll_ShowWindow
push dword [0x40517c]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x4051b8
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401745
push 0x4051b8
call sub.user32.dll_TranslateMessage
push 0x4051b8
call sub.user32.dll_DispatchMessageA
jmp 0x40171b
mov eax, dword [0x405218]
lea ecx, [0x405050]
add eax, dword [0x40510e]
call eax
mov eax, dword [0x4051c0]
push eax
call sub.kernel32.dll_ExitProcess
mov esp, ebp
pop ebp
ret
Function at 0x100013b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x10050fc0]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x100013f4
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1002742c
add esp, 0x98
ret
cmp eax, 2
jne 0x10001442
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x10001423
cmp dword [esp + 8], 0
jne 0x10001428
mov eax, 2
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1002742c
add esp, 0x98
ret
cmp eax, 4
jbe 0x10001442
mov eax, 3
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.1002742c
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
xor eax, eax
call fcn.1002742c
add esp, 0x98
ret

Function at 0x10001b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001ba9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001be4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x10001be0
lea ebx, [ebx]
cmp esi, eax
jae 0x10001be4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001bd0
cmp esi, eax
jb 0x10001bea
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x10002490
Capabilities:
Get disk information

Disassembly:
sub esp, 0x14
mov eax, dword [0x10050fc0]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
push edi
mov edi, 0x41
lea esi, [eax + 3]
sub edi, eax
mov dword [esp + 0x10], 0x17
lea eax, [edi + esi]
push eax
lea ecx, [esp + 0x18]
push str._c:_
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call ebp
cmp eax, 4
jne 0x100024e9
mov al, byte [esp + 0x14]
mov byte [esi], al
inc esi
sub dword [esp + 0x10], 1
jne 0x100024c4
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1002742c
add esp, 0x14
ret
Function at 0x10002510
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x10050fc0]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
push 0x9c
lea eax, [esp + 8]
push 0
push eax
call fcn.10027470
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x9c
call esi
test eax, eax
jne 0x1000257d
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x94
call esi
test eax, eax
jne 0x1000257d
xor eax, eax
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1002742c
add esp, 0xa0
ret
mov eax, dword [esp + 0x14]
cmp eax, 2
jne 0x100025a1
mov eax, 1
pop esi
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.1002742c
add esp, 0xa0
ret
cmp eax, 1
jne 0x100025b6
cmp dword [esp + 8], 4
jne 0x100025b6
mov eax, dword [esp + 0xc]
cmp eax, 0xa
je 0x10002565
mov ecx, dword [esp + 0xa0]
pop esi
xor ecx, esp
or eax, 0xffffffff
call fcn.1002742c
add esp, 0xa0
ret

Function at 0x10002690
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100026ca
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x100026d0
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push 0x10
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x1000271c
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x1c
ret
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x1c
ret

Function at 0x10002900
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x10043714
mov dword [esp + 8], 0
call ebx
test eax, eax
jne 0x1000291e
pop ebx
pop ecx
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.WTSGetActiveConsoleSessionId
push eax
call esi
mov edi, eax
test edi, edi
je 0x1000297f
push str.Wtsapi32.dll
call ebx
test eax, eax
je 0x1000297f
push str.WTSQueryUserToken
push eax
call esi
mov esi, eax
test esi, esi
je 0x1000297f
call edi
lea ecx, [esp + 0xc]
push ecx
push eax
call esi
test eax, eax
je 0x1000297f
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x1000297f
mov eax, dword [esp + 0x14]
push 1
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x10002986
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x100030b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x54c
mov eax, dword [0x10050fc0]
xor eax, esp
mov dword [esp + 0x548], eax
push ebx
push ebp
mov ebp, dword [esp + 0x558]
xor ebx, ebx
mov dword [esp + 8], ecx
cmp ebp, ebx
je 0x100032ac
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100030e0
sub eax, edx
cmp byte [eax + ebp - 1], 0x5c
push edi
je 0x10003105
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x100030f4
mov ax, word [0x10043700]
mov word [edi], ax
lea edx, [esp + 0x354]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x10003110
lea edi, [esp + 0x354]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10003122
mov ecx, dword [0x100437ec]
push esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x35c]
push eax
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x100032aa
cmp dword [0x10131df4], ebx
jne 0x100032a3
cmp byte [esp + 0x44], 0x2e
je 0x10003283
test byte [esp + 0x18], 0x10
push 0x1ff
mov byte [esp + 0x15c], bl
push ebx
je 0x1000324d
lea ecx, [esp + 0x161]
push ecx
call fcn.10027470
lea edx, [esp + 0x164]
add esp, 0xc
mov eax, ebp
sub edx, ebp
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x100031a0
lea eax, [esp + 0x44]
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100031b0
lea edi, [esp + 0x158]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x100031c1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x158]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push edx
call fcn.100030b0
lea eax, [esp + 0x44]
push 0x100437e8
push eax
call fcn.100302af
add esp, 8
test eax, eax
je 0x10003283
lea eax, [esp + 0x158]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10003210
lea ecx, [esp + 0x158]
sub eax, edx
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x1000323d
lea eax, [esp + 0x158]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x10003231
sub eax, esi
mov byte [ecx + eax], bl
lea ecx, [esp + 0x158]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x10003283
lea edx, [esp + 0x161]
push edx
call fcn.10027470
lea eax, [esp + 0x50]
push eax
push ebp
lea ecx, [esp + 0x16c]
push 0x100437e0
push ecx
call fcn.10028736
add esp, 0x1c
lea edx, [esp + 0x158]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x100032a3
cmp dword [0x10131df4], ebx
je 0x10003161
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
mov ecx, dword [esp + 0x550]
pop ebp
pop ebx
xor ecx, esp
call fcn.1002742c
add esp, 0x54c
ret 4
Function at 0x10005bc0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x408
mov eax, dword [0x10050fc0]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [esp + 0x410]
cmp dword [eax - 0xc], 0
push esi
mov esi, dword [esp + 0x410]
push edi
mov edi, dword [esp + 0x424]
je 0x10005d30
test edi, edi
je 0x10005d30
lea ecx, [esp + 8]
push ecx
push 0xf003f
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10005c5e
mov eax, dword [esp + 0x418]
lea edx, [esp + 8]
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x10005c5e
lea ecx, [esp + 0x418]
call fcn.100018d0
lea ecx, [esp + 0x41c]
call fcn.100018d0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.1002742c
add esp, 0x408
ret
push ebx
mov ebx, dword [esp + 0x420]
cmp dword [ebx - 0xc], 0
jne 0x10005c90
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x41c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x10005ce4
mov esi, dword [esp + 0x42c]
push esi
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.10029ac0
mov eax, dword [esp + 0x430]
mov ecx, dword [esp + 0x18]
add esp, 0xc
push esi
lea edx, [esp + 0x14]
push edx
push eax
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x41c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005cf0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x420]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005d13
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.1002742c
add esp, 0x408
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005d4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x41c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10005d6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.1002742c
add esp, 0x408
ret
Function at 0x100085e0
Capabilities:
Access peb ldr_data
Check os version
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10040e24
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x10050fc0]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push esi
push edi
mov eax, dword [0x10050fc0]
xor eax, esp
push eax
lea eax, [esp + 0x2b4]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
call fcn.10001fc0
push fcn.100018d0
push fcn.100018a0
push 0x12
push 4
lea edi, [esi + 8]
push edi
mov dword [esp + 0x2d0], 0
mov dword [esi], vtable.CPrintAud.0
call fcn.10027d80
push 0x15
mov ebx, 1
push 0x10043b94
mov ecx, edi
mov byte [esp + 0x2c4], bl
call fcn.10001920
push 0x17
push 0x10043b7c
lea ecx, [esi + 0xc]
call fcn.10001920
push 0x13
push 0x10043b68
lea ecx, [esi + 0x10]
call fcn.10001920
push 0x15
push 0x10043b50
lea ecx, [esi + 0x14]
call fcn.10001920
push 0x14
push str.HTTP_VISITED_CONTROL
lea ecx, [esi + 0x18]
call fcn.10001920
push 0x14
push 0x10043b20
lea ecx, [esi + 0x1c]
call fcn.10001920
push 0x17
push 0x10043b08
lea ecx, [esi + 0x20]
call fcn.10001920
push 0x13
push 0x10043af4
lea ecx, [esi + 0x24]
call fcn.10001920
push 0x17
push str.UDISK_WRITEONLY_CONTROL
lea ecx, [esi + 0x28]
call fcn.10001920
push 0x12
push str.ANTI_ROGUE_CONTROL
lea ecx, [esi + 0x2c]
call fcn.10001920
push 0x14
push str.UDISK_ACTION_CONTROL
lea ecx, [esi + 0x30]
call fcn.10001920
push 0x13
push str.ONLINE_DIAL_CONTROL
lea ecx, [esi + 0x34]
call fcn.10001920
push 0x15
push str.OTHER_BEHAVIOR_MANAGE
lea ecx, [esi + 0x38]
call fcn.10001920
push 0x19
push str.ONLINE_DEAL_PROXY_CONTROL
lea ecx, [esi + 0x3c]
call fcn.10001920
push 0x12
push str.CLIP_BOARD_CONTROL
lea ecx, [esi + 0x40]
call fcn.10001920
push 0x11
push str.WEB_VISIT_CONTROL
lea ecx, [esi + 0x44]
call fcn.10001920
push 0x16
push str.SYSTEM_CONNECT_MONITOR
lea ecx, [esi + 0x48]
call fcn.10001920
push 0x16
push str.INTERNET_MONITOR_AUDIT
lea ecx, [esi + 0x4c]
call fcn.10001920
push 0x208
lea eax, [esp + 0xac]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x10008780
mov cl, byte [esp + eax + 0xa8]
sub eax, ebx
cmp cl, 0x5c
jne 0x10008780
mov byte [esp + eax + 0xa9], 0
xor eax, eax
jmp 0x100087a0
mov cl, byte [esp + eax + 0xa8]
mov byte [eax + 0x10052560], cl
add eax, ebx
test cl, cl
jne 0x100087a0
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], ebx
jne 0x10008809
mov dword [0x10131dfc], ebx
cmp dword [0x10131de4], 0
je 0x100087e0
call fcn.100037b0
mov eax, esi
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.1002742c
add esp, 0x2b0
ret
cmp dword [esp + 0x18], 6
mov dword [0x10131dfc], 0
jb 0x100087d2
mov dword [0x10131de4], ebx
jmp 0x100087db