joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c698
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4900b4]
cmp byte [eax + 0xc], 0
je 0x44c805
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44c7fe
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x491b74], 0
jne 0x44c6ec
push 0x44c80c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44c814
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b74], eax
cmp dword [0x48ec48], 0
jne 0x44c7e7
push 0x44c824
call sub.kernel32.dll_LoadLibraryA
mov dword [0x48ec48], eax
cmp dword [0x48ec48], 0
je 0x44c7e7
push 0x44c830
mov eax, dword [0x48ec48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b78], eax
push 0x44c840
mov eax, dword [0x48ec48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b7c], eax
push 0x44c854
mov eax, dword [0x48ec48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b80], eax
push 0x44c86c
mov eax, dword [0x48ec48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b84], eax
push 0x44c884
mov eax, dword [0x48ec48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b88], eax
push 0x44c898
mov eax, dword [0x48ec48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b8c], eax
push 0x44c8b0
mov eax, dword [0x48ec48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b90], eax
push 0x44c8c8
mov eax, dword [0x48ec48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b94], eax
push 0x44c8e4
mov eax, dword [0x48ec48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b98], eax
push 0x44c8f0
mov eax, dword [0x48ec48]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x491b9c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44c805
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x450bc8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404078
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x450c17
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004042e8
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x458404
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x458454]
test si, 4
je 0x458418
or bl, 1
test si, 8
je 0x458422
or bl, 4
test si, 1
je 0x45842c
or bl, 8
test si, 2
je 0x458436
or bl, 0x10
test si, 0x10
je 0x458440
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45844f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x458458
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x458490]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x458471
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x458480
or bl, 4
test esi, 0x20000000
je 0x45848b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45eb38
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45eb4a
add esp, 0xfffffff0
call fcn.004034e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ea2c
mov eax, dword [0x48fae0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45eedc
mov eax, dword [0x48faf0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45eee8
mov eax, ebx
call fcn.0045eef4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4157d0]
call fcn.00403194
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4157d0]
call fcn.00403194
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4157d0]
call fcn.00403194
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4157d0]
call fcn.00403194
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4157d0]
call fcn.00403194
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45b310
push eax
push 0
push 0
mov eax, dword [0x48fd54]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x420498]
call fcn.00421bd4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x420498]
call fcn.00421bd4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x420498]
call fcn.00421bd4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045f314
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f1f0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f1f0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45f1f0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45ec87
call fcn.00403540
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45efd4
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 0x45f17f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45f160
mov dl, 1
mov eax, dword [0x415e34]
call fcn.00403194
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404078
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45f14f
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.0044c9f8
test al, al
je 0x45f142
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, 0x45f190
lea eax, [ebp - 0x254]
call fcn.00409250
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45f142
xor eax, eax
push ebp
push 0x45f13b
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 0x45f1c8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45f124
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042e8
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 0x45f124
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f142
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45f045
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a574
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 0x45f186
lea eax, [ebp - 0x260]
call fcn.00404078
ret

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

Disassembly:
push ecx
mov eax, dword [0x491bc0]
cmp byte [eax + 0xa5], 0
jne 0x45fb25
cmp dword [0x491bd8], 0
jne 0x45fae6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45fa70
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x491bd8], eax
cmp dword [0x491bd4], 0
jne 0x45fb01
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x491bd4], eax
cmp dword [0x491bdc], 0
jne 0x45fb25
push esp
push 0
push 0
push 0x45fa14
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x491bdc], eax
pop edx
ret
Function at 0x45fc1c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45fc33
add esp, 0xfffffff0
call fcn.004034e8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ea2c
mov eax, dword [0x48fd2c]
cmp word [eax + 2], 0
jne 0x45fc5b
mov eax, dword [0x48fd2c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00461384
mov eax, dword [0x48fe70]
cmp word [eax + 2], 0
jne 0x45fc75
mov eax, dword [0x48fe70]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046157c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4157d0]
call fcn.00403194
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4157d0]
call fcn.00403194
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x420f40]
call fcn.004289f8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45fdfc
mov eax, dword [0x48fba0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428dc8
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x461b1c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48fba0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040cae8
test eax, eax
je 0x45fd6a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c30
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cb10
test eax, eax
je 0x45fd7e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042e8
mov eax, dword [0x48f954]
cmp byte [eax], 0
jne 0x45fdb2
mov eax, ebx
call fcn.0045ff24
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00461cf8
mov eax, ebx
call fcn.004626bc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45fdf2
call fcn.00403540
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4601a4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x491bc0]
cmp dword [eax + 0x30], 0
je 0x46024e
cmp dword [ebx + 0x94], 0
jne 0x460248
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x460134
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x460248
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 0x46020e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x460248
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.00417e88
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46021d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460db0
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 0x460de5
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.00404168
jmp 0x460df2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040cc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x461ed4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x461f15
mov eax, esi
call fcn.00447f9c
test al, al
je 0x461f15
mov eax, dword [ebx + 0x84]
call fcn.00447c98
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x461f15
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447c98
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x462d1c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x414d48]
call fcn.00404a04
xor eax, eax
push ebp
push 0x462e60
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x48ee7c], 0
jne 0x462d6f
mov ecx, dword [0x48f988]
mov dl, 1
mov eax, dword [0x4073fc]
call fcn.0040bd20
call fcn.00403a14
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402bcc
mov eax, ebx
call fcn.004048b4
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x462e70
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405a9c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004048c4
test eax, eax
jle 0x462e07
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x462e00
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404300
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.004042e8
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00408254
test eax, eax
jne 0x462e00
mov ebx, 0x15
jmp 0x462e0c
mov ebx, 0x10
jmp 0x462e0c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x48ee7c]
call fcn.00462c74
mov eax, dword [ebp - 8]
call fcn.00462c74
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405ab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462e67
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040409c
lea eax, [ebp - 0x10]
mov edx, dword [0x414d48]
call fcn.00404ad4
ret

Function at 0x464a28
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [0x48fe30]
mov eax, dword [eax]
call fcn.00460bc4
cmp byte [ebx + 0x290], 0
je 0x464a5c
cmp byte [ebx + 0x298], 0
je 0x464a5c
push 0
mov eax, dword [0x48fe30]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
mov si, 0xffe7
call fcn.004033c0
pop esi
pop ebx
ret
Function at 0x483210
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x483218
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x48340a
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x483420
mov eax, esi
call fcn.0048109c
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004040cc
lea ecx, [ebp - 0x10]
mov edx, 0x483434
mov eax, esi
call fcn.0048109c
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004040cc
lea ecx, [ebp - 0x14]
mov edx, 0x48344c
mov eax, esi
call fcn.0048109c
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004040cc
lea ecx, [ebp - 0x18]
mov edx, 0x483468
mov eax, esi
call fcn.0048109c
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004040cc
lea ecx, [ebp - 0x1c]
mov edx, 0x483484
mov eax, esi
call fcn.0048109c
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004040cc
lea ecx, [ebp - 0x24]
mov edx, 0x48349c
mov eax, esi
call fcn.0048109c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004082c4
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.004086a4
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4834b4
mov eax, esi
call fcn.0048109c
mov eax, dword [ebp - 0x28]
call fcn.0047ab74
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4834c4
mov eax, esi
call fcn.0048109c
mov eax, dword [ebp - 0x2c]
call fcn.0047ab74
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4834dc
mov eax, esi
call fcn.0048109c
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.004086a4
inc eax
je 0x4833ad
lea ecx, [ebp - 0x34]
mov edx, 0x4834dc
mov eax, esi
call fcn.0048109c
mov eax, dword [ebp - 0x34]
call fcn.00408668
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409ba0
fstp qword [ebp - 0x3c]
wait
call fcn.00409f04
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4833c8
lea ecx, [ebp - 0x40]
mov edx, 0x4834dc
mov eax, esi
call fcn.0048109c
mov eax, dword [ebp - 0x40]
call fcn.0047ab74
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4834ec
mov eax, esi
call fcn.0048109c
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004040cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483411
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0040409c
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.0040409c
ret
Function at 0x48a19c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x48a1f6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0048a18c
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004797e0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004793e0
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a1fd
lea eax, [ebp - 4]
call fcn.00404078
ret
Function at 0x1001e80
Capabilities:
Add user account to group
Delete user account from group

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x1005280]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [ebp + 8], 7
mov dword [ebp - 0x420], esi
jbe 0x1001eb1
mov edi, 0x80004005
jmp 0x1001f47
cmp dword [ebp + 8], 5
je 0x1001f47
mov eax, 0x104
push eax
lea ecx, [ebp - 0x41c]
push ecx
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.01001ddf
mov edi, eax
cmp edi, esi
jl 0x1001f33
lea eax, [ebp - 0x420]
push eax
push 0x10013c4
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x1001f2e
cmp dword [ebp + 8], 7
mov eax, dword [ebp - 0x420]
push 1
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x424]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
push esi
jne 0x1001f1b
call sub.NETAPI32.dll_NetLocalGroupAddMembers
jmp 0x1001f20
call sub.NETAPI32.dll_NetLocalGroupDelMembers
sub eax, esi
je 0x1001f33
sub eax, 0x561
je 0x1001f33
dec eax
je 0x1001f33
mov edi, 0x80004005
cmp dword [ebp - 0x420], esi
je 0x1001f47
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.01004124
leave
ret 4

Function at 0x1001f5e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [ebp + 0xc], eax
jne 0x1001f72
mov eax, 0x80070057
jmp 0x1001fbb
cmp dword [ebp + 8], 2
je 0x1001fbb
and dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x10013d8
push dword [ebp + 0xc]
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001fb6
cmp dword [ebp + 0xc], 4
jne 0x1001fb6
cmp dword [ebp + 8], 2
jne 0x1001fb6
push eax
call fcn.01001e80
jmp 0x1001fbb
mov eax, 0x80004005
leave
ret 8

Function at 0x1002023
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 0x2011f
push esi
push esi
push esi
push 0x1001400
push 0x80000002
mov dword [ebp - 4], esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100207b
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.01001f5e
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x10013d8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
test eax, eax
jne 0x100207b
inc edi
cmp dword [ebp - 4], esi
je 0x1002089
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x1002096
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x20119
xor edi, edi
push edi
push 0x1001400
push 0x80000002
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10020f4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push 0x10013d8
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x10020f1
cmp dword [ebp - 0x10], 4
je 0x10020f4
mov dword [ebp - 8], edi
cmp dword [ebp - 4], edi
pop edi
je 0x1002103
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x10021db
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1005280]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0x17
pop ecx
mov dword [ebp - 0x218], eax
xor eax, eax
push 0x1ac
push eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x1b0]
mov esi, 0x1001468
lea edi, [ebp - 0x20c]
push eax
rep movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.01002164
xor esi, esi
test eax, eax
jl 0x10022a1
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push 0x20106
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.KERNEL32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10022a1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
xor edi, edi
inc edi
push edi
push esi
push dword [ebp - 0x218]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_RegSetValueExW]
test eax, eax
jne 0x10022a1
mov dword [ebp - 0x214], edi
cmp dword [ebp - 0x210], esi
pop edi
pop esi
pop ebx
je 0x10022b8
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
xor ecx, ebp
call fcn.01004124
leave
ret 0xc