joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40de30
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4d7d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov ecx, 0x51c276
call fcn.004c108d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40df22
lea eax, [ebp - 0x18]
push eax
call fcn.0040cf90
add esp, 4
mov dword [ebp - 4], 0
push 0x208
push 0
lea ecx, [ebp - 0x224]
push ecx
call fcn.004c4400
add esp, 0xc
mov dword [ebp - 0x1c], 0x104
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00407470
lea ecx, [ebp - 0x18]
call fcn.0040a600
movzx edx, al
test edx, edx
jne 0x40df0b
lea ecx, [ebp - 0x14]
call fcn.0040a600
movzx eax, al
test eax, eax
jne 0x40df0b
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.00408100
add esp, 8
movzx eax, al
test eax, eax
je 0x40df0b
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x14]
call fcn.00407d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00407d20
mov al, byte [ebp - 0xd]
jmp 0x40df24
lea ecx, [ebp - 0x14]
call fcn.00407d20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00407d20
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40e0b0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov ecx, 0x51c276
call fcn.004c108d
mov dword [ebp - 0x18], 0xffffffff
mov byte [ebp - 1], 1
cmp dword [ebp + 8], 0
jne 0x40e0db
xor al, al
jmp 0x40e1dd
mov dword [ebp - 0x2c], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x258], 0x22c
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Process32FirstW
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x40e1c6
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x234]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dx, word [ecx]
mov word [ebp - 0xe], dx
mov eax, dword [ebp - 0xc]
cmp dx, word [eax]
jne 0x40e169
cmp word [ebp - 0xe], 0
je 0x40e160
mov ecx, dword [ebp - 8]
mov dx, word [ecx + 2]
mov word [ebp - 0x10], dx
mov eax, dword [ebp - 0xc]
cmp dx, word [eax + 2]
jne 0x40e169
add dword [ebp - 8], 4
add dword [ebp - 0xc], 4
cmp word [ebp - 0x10], 0
jne 0x40e124
mov dword [ebp - 0x1c], 0
jmp 0x40e171
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jne 0x40e1ae
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x28], eax
push 1
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
je 0x40e1ae
mov byte [ebp - 1], 0
jmp 0x40e1c6
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Process32NextW
mov dword [ebp - 0x20], eax
jmp 0x40e10b
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40e1da
xor al, al
jmp 0x40e1dd
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x40e320
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e511d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov ecx, 0x51c276
call fcn.004c108d
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x4f1ee4
push 1
push 0
push 0x4f1f54
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x40e46b
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x4f1f04
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x40e45d
push 2
mov ecx, dword [ebp + 8]
call fcn.00408170
push eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 0x14]
call eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x40e44f
push 0x5c
mov ecx, dword [ebp + 0xc]
call fcn.0040b600
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040a860
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call fcn.00408170
push eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [eax + 0x50]
call edx
lea ecx, [ebp - 0x1c]
call fcn.00408170
push eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ecx + 0x24]
call eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00408170
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 0x44]
call ecx
push 1
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00407d20
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ecx + 8]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40e490
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e513d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov dword [ebp - 4], 0
mov ecx, 0x51c276
call fcn.004c108d
call fcn.0040a6e0
movzx eax, al
test eax, eax
je 0x40e50f
push 0
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
call fcn.00408170
push eax
mov ecx, esi
call fcn.00405400
call fcn.00415890
add esp, 0x1c
push 1
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x14], esp
lea ecx, [ebp + 8]
call fcn.00408170
push eax
mov ecx, esi
call fcn.00405400
call fcn.00415890
add esp, 0x1c
jmp 0x40e547
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00408170
push eax
push 0x4eb8a8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0
lea ecx, [ebp + 8]
call fcn.00408170
push eax
push str.taskbarpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407d20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ef20
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, 0x51c276
call fcn.004c108d
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40ef52
lea ecx, [ebp + 8]
call fcn.00407d20
jmp 0x40efbd
push 0xf01ff
lea ecx, [ebp + 8]
call fcn.00408170
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ef87
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp + 8]
call fcn.00407d20
jmp 0x40efbd
lea edx, [ebp - 0x24]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [ebp + 8]
call fcn.00407d20
mov esp, ebp
pop ebp
ret

Function at 0x40efd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, 0x51c276
call fcn.004c108d
lea ecx, [ebp - 0x28]
call fcn.00403690
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
lea ecx, [ebp + 8]
call fcn.00408170
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40f022
jmp 0x40f067
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00404ef0
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00404d60
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40f061
mov ecx, dword [ebp + 0xc]
call fcn.00404ef0
cmp dword [ebp - 8], eax
je 0x40f063
jmp 0x40f067
xor edx, edx
jne 0x40eff6
cmp dword [ebp - 4], 0xffffffff
je 0x40f077
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.004038c0
lea ecx, [ebp + 8]
call fcn.00407d20
mov esp, ebp
pop ebp
ret
Function at 0x40f0c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4d2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, 0x51c276
call fcn.004c108d
mov ecx, dword [ebp + 8]
call fcn.00407360
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x800
push 0
lea ecx, [ebp - 0x814]
push ecx
call fcn.004c4400
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0x814]
push edx
call fcn.004c4400
add esp, 0xc
push 0
push 0x10
lea eax, [ebp - 0x814]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40f170
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408090
push 0x4ebb14
mov ecx, dword [ebp + 8]
call fcn.004084d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40f190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4d2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, 0x51c276
call fcn.004c108d
mov ecx, dword [ebp + 8]
call fcn.00407360
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x800
push 0
lea ecx, [ebp - 0x814]
push ecx
call fcn.004c4400
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0x814]
push edx
call fcn.004c4400
add esp, 0xc
push 0
push 0x19
lea eax, [ebp - 0x814]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40f240
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408090
push 0x4ebb10
mov ecx, dword [ebp + 8]
call fcn.004084d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40f290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4d2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, 0x51c276
call fcn.004c108d
mov ecx, dword [ebp + 8]
call fcn.00407360
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x800
push 0
lea ecx, [ebp - 0x814]
push ecx
call fcn.004c4400
add esp, 0xc
push 0x800
push 0
lea edx, [ebp - 0x814]
push edx
call fcn.004c4400
add esp, 0xc
push 0
push 2
lea eax, [ebp - 0x814]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40f340
lea ecx, [ebp - 0x814]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408090
push 0x4ebb0c
mov ecx, dword [ebp + 8]
call fcn.004084d0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40f360
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4ebd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x808
mov dword [ebp - 0x10], 0
mov ecx, 0x51c276
call fcn.004c108d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40f3b6
mov eax, dword [ebp + 8]
push eax
call fcn.0040f190
add esp, 4
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
jmp 0x40f44b
lea ecx, [ebp - 0x14]
call fcn.00407360
mov dword [ebp - 4], 0
push 0x800
push 0
lea edx, [ebp - 0x814]
push edx
call fcn.004c4400
add esp, 0xc
push 0x800
push 0
lea eax, [ebp - 0x814]
push eax
call fcn.004c4400
add esp, 0xc
push 0
push 0x10
lea ecx, [ebp - 0x814]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40f424
lea edx, [ebp - 0x814]
push edx
lea ecx, [ebp - 0x14]
call fcn.00408090
push 0x4ec318
lea ecx, [ebp - 0x14]
call fcn.004084d0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.00407390
mov ecx, dword [ebp - 0x10]
or ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00407d20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40f460
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, 0x51c276
call fcn.004c108d
mov byte [ebp - 1], 0
mov dword [ebp - 0x14], 0
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [ebp + 8]
call fcn.00408170
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40f4c1
mov byte [ebp - 2], 0
lea ecx, [ebp + 8]
call fcn.00407d20
lea ecx, [ebp + 0x10]
call fcn.00407d20
mov al, byte [ebp - 2]
jmp 0x40f551
lea ecx, [ebp + 0x10]
call fcn.00408170
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f4e2
jmp 0x40f52e
mov ecx, dword [ebp - 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40f4f9
jmp 0x40f52e
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40f526
jmp 0x40f52e
mov byte [ebp - 1], 1
xor ecx, ecx
jne 0x40f4c1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov byte [ebp - 3], al
lea ecx, [ebp + 8]
call fcn.00407d20
lea ecx, [ebp + 0x10]
call fcn.00407d20
mov al, byte [ebp - 3]
mov esp, ebp
pop ebp
ret
Function at 0x40f5a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, 0x51c21c
call fcn.004c108d
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40f5ce
xor eax, eax
jmp 0x40f64e
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40f5e5
xor eax, eax
jmp 0x40f64e
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x40f631
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x40f631
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40f608
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x40f63d
xor eax, eax
jmp 0x40f64e
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x40f64b
xor eax, eax
jmp 0x40f64e
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x411660
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e52ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov ecx, 0x51c39e
call fcn.004c108d
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x28], 4
mov ecx, dword [ebp + 8]
call fcn.00410a40
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
push 0
push 0
push 0x4ec430
lea ecx, [ebp - 0x14]
push ecx
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
jl 0x411773
mov dword [ebp - 0x10], 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
jl 0x411768
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jl 0x41175f
push 4
lea ecx, [ebp - 0x20]
push ecx
call fcn.00411200
add esp, 8
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00410aa0
lea ecx, [ebp - 0x20]
call fcn.004114f0
push 0
push 0x10
mov ecx, dword [ebp + 8]
call fcn.00413560
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
jge 0x41175f
push 0
mov ecx, dword [ebp + 8]
call fcn.00413670
mov ecx, dword [ebp - 0x10]
push ecx
call sub.bcrypt.dll_BCryptDestroyHash
push 0
mov edx, dword [ebp - 0x14]
push edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x411860
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov ecx, 0x51c39e
call fcn.004c108d
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x40000001
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
jne 0x4118b6
push 0
mov ecx, dword [ebp + 8]
call fcn.00410a70
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
jmp 0x411941
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004112a0
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.004109c0
lea ecx, [ebp - 0x14]
call fcn.004114f0
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
call fcn.00413560
push eax
push 0x40000001
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
jne 0x411921
push 0
mov ecx, dword [ebp + 8]
call fcn.00410a70
mov ecx, dword [ebp - 4]
or ecx, 1
mov dword [ebp - 4], ecx
lea ecx, [ebp - 8]
call fcn.004114f0
mov eax, dword [ebp + 8]
jmp 0x411941
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
call fcn.004109c0
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
call fcn.004114f0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x4127e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov ecx, 0x51c389
call fcn.004c108d
xor eax, eax
jne 0x4127f3
cmp dword [ebp + 0xc], 0
je 0x412806
mov dword [ebp - 0xc], 1
jmp 0x41280d
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jne 0x412820
mov eax, 0xd
jmp 0x412875
xor edx, edx
jne 0x4127f7
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
mov ax, word [edx]
mov word [ebp - 2], ax
add dword [ebp - 8], 2
cmp word [ebp - 2], 0
jne 0x412833
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
sar ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx + 2]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414ed0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov ecx, 0x51c496
call fcn.004c108d
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x415099
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x414f48
mov dword [ebp - 0x10], 0x64
mov dword [ebp - 8], 0
jmp 0x414f5a
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x10]
jae 0x415099
mov dword [ebp - 4], 0
push 0x104
push 0
lea edx, [ebp - 0x228]
push edx
call fcn.004c4400
add esp, 0xc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0x104
push 0x104
push 0
lea eax, [ebp - 0x124]
push eax
call fcn.004c4400
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
push str._04u
push 0x104
lea edx, [ebp - 0x124]
push edx
call fcn.00413d60
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x414ff0
jmp 0x414f51
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
push str.NetCfgInstanceId
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x415023
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x414f51
lea edx, [ebp - 0x228]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404d60
push eax
call fcn.004cb6e8
add esp, 8
test eax, eax
je 0x41504e
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x414f51
mov dword [ebp - 0x14], 4
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0x4ed718
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41508a
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x415099
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x414f51
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret