joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e1dba
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x468], ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x46c], ebx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x4e1de5
sub esi, edx
mov ebx, 0x104
sar esi, 1
lea eax, [esi + 4]
cmp eax, ebx
jb 0x4e1e13
mov ebx, 0x8007006f
push ebx
push 0x3860197
mov edi, ebx
push ecx
jmp 0x4e1f26
push ecx
mov edx, ebx
lea ecx, [ebp - 0x210]
call fcn.0043eb7d
push 0x42f9d0
mov edx, ebx
lea ecx, [ebp - 0x210]
call fcn.0043eadb
inc esi
mov eax, ebx
sub eax, esi
mov dword [ebp - 0x470], eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x464], eax
cmp eax, 0xffffffff
jne 0x4e1e79
call fcn.004c73cc
mov edi, eax
test edi, edi
je 0x4e1e79
push edi
push 0x3920197
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4e1f2c
xor eax, eax
mov ebx, 0x8007006f
mov edi, eax
test byte [ebp - 0x460], 0x10
jne 0x4e1eef
lea ecx, [ebp - 0x434]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x46c]
jne 0x4e1e94
sub ecx, edx
sar ecx, 1
lea eax, [ecx + esi]
cmp eax, 0x104
jb 0x4e1ec7
push ebx
push 0x39d0197
push dword [ebp - 0x468]
mov edi, ebx
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x4e1eef
mov edx, dword [ebp - 0x470]
lea eax, [ebp - 0x434]
lea ecx, [ebp - 0x210]
push eax
lea ecx, [ecx + esi*2]
call fcn.0043eb7d
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4e1e82
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x4e1f2c
push edi
push 0x3a50197
push dword [ebp - 0x468]
call dword [sym.imp.certcli.dll_Ordinal_359]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret
Function at 0x4e32c9
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 0x405d88
push ecx
push eax
push ecx
lea eax, [ebp - 8]
mov dword [ebp - 4], ecx
push eax
mov dword [ebp - 8], ecx
mov ecx, ebx
push 2
call fcn.004eeb33
mov esi, eax
test esi, esi
je 0x4e3309
push esi
push 0x7df0197
push ebx
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x4e332d
push 0
push 0
push 0x42fa38
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov esi, eax
test esi, esi
je 0x4e332d
push esi
push 0x7e20197
call dword [sym.imp.certcli.dll_Ordinal_357]
cmp dword [ebp - 4], 0
je 0x4e333c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x4e334b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4e447f
Capabilities:
Generate random numbers via winapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf0000000
xor eax, eax
mov dword [ebp - 0x2c], edx
push 1
push eax
push eax
mov dword [ebp - 0x28], eax
mov esi, ecx
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0x10
pop ebx
test eax, eax
jne 0x4e44cf
call fcn.004c73cc
mov esi, eax
push esi
push 0xd940197
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4e45ac
cmp esi, 1
je 0x4e44d8
cmp esi, ebx
jbe 0x4e44da
mov esi, ebx
mov eax, dword [ebp + 8]
dec eax
cmp esi, eax
jbe 0x4e44e4
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4e4505
call fcn.004c73cc
mov esi, eax
push esi
push 0xda20197
jmp 0x4e44c4
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4e4526
call fcn.004c73cc
mov esi, eax
push esi
push 0xda70197
jmp 0x4e44c4
push edi
lea eax, [esi*2 + 2]
mov dword [ebp - 0x30], 0x59
push eax
push 0
push dword [ebp - 0x2c]
mov edi, esi
shr edi, 3
call sub.msvcrt.dll_memset
add esp, 0xc
xor ecx, ecx
test esi, esi
je 0x4e45a9
mov ebx, dword [ebp - 0x2c]
movzx eax, byte [ebp + ecx - 0x14]
xor edx, edx
div dword [ebp - 0x30]
movzx eax, byte [ebp + ecx - 0x24]
mov dword [ebp - 0x2c], edx
xor edx, edx
div esi
jmp 0x4e4576
lea eax, [edx + 1]
mov edx, eax
sub edx, esi
neg edx
sbb edx, edx
and edx, eax
xor eax, eax
cmp ax, word [ebx + edx*2]
jne 0x4e4569
mov eax, dword [ebp - 0x2c]
push 0x3e
mov ax, word [eax*2 + 0x42faa0]
mov word [ebx + edx*2], ax
pop eax
cmp dword [ebp - 0x2c], eax
jb 0x4e45a1
test edi, edi
je 0x4e459e
dec edi
test edi, edi
jne 0x4e45a1
mov dword [ebp - 0x30], eax
inc ecx
cmp ecx, esi
jb 0x4e4551
push 0x10
pop ebx
xor esi, esi
pop edi
lea eax, [ebp - 0x14]
mov byte [eax], 0
inc eax
sub ebx, 1
jne 0x4e45af
cmp dword [ebp - 0x28], ebx
je 0x4e45c7
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret 4
Function at 0x4e5b35
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, edx
mov edi, ecx
mov edx, edi
mov dword [ebp - 0x670], eax
xor esi, esi
mov dword [ebp - 0x66c], esi
mov dword [eax], esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x4e5b66
sub edx, ecx
mov ebx, 0x104
sar edx, 1
lea eax, [edx + 6]
cmp eax, ebx
jb 0x4e5b9a
mov eax, 0x8007006f
push eax
push 0x11640197
push edi
mov esi, eax
call dword [sym.imp.certcli.dll_Ordinal_359]
jmp 0x4e5d00
push edi
mov edx, ebx
lea ecx, [ebp - 0x210]
call fcn.0043eb7d
push 0x41fbd4
mov edx, ebx
lea ecx, [ebp - 0x210]
call fcn.0043eadb
push 0x4057e8
mov edx, ebx
lea ecx, [ebp - 0x210]
call fcn.0043eadb
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4e5cef
test byte [ebp - 0x668], 0x10
je 0x4e5c08
lea eax, [ebp - 0x668]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4e5beb
jmp 0x4e5c57
lea ecx, [ebp - 0x63c]
mov dword [ebp - 0x66c], 1
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4e5c1b
sub ecx, edx
mov edx, 0x104
sar ecx, 1
cmp ecx, edx
jb 0x4e5c43
mov eax, 0x8007006f
push eax
push 0x11760197
jmp 0x4e5b8c
push ecx
lea eax, [ebp - 0x63c]
push eax
push ecx
lea ecx, [ebp - 0x418]
call fcn.0043eb27
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x66c], esi
je 0x4e5cef
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4e5c6f
sub ecx, edx
lea edx, [ebp - 0x418]
sar ecx, 1
lea ebx, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, si
jne 0x4e5c87
sub edx, ebx
lea ebx, [ecx + 2]
sar edx, 1
add ebx, edx
lea eax, [ebx + ebx]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp - 0x670]
mov dword [ecx], eax
test eax, eax
jne 0x4e5cbf
mov esi, 0x8007000e
push esi
push 0x118f0197
jmp 0x4e5cfa
push edi
mov edx, ebx
mov ecx, eax
call fcn.0043eb7d
mov edi, dword [ebp - 0x670]
mov edx, ebx
push 0x4050fc
mov ecx, dword [edi]
call fcn.0043eadb
mov ecx, dword [edi]
lea eax, [ebp - 0x418]
push eax
mov edx, ebx
call fcn.0043eadb
jmp 0x4e5d00
mov esi, 0x80070002
push esi
push 0x11820197
call dword [sym.imp.certcli.dll_Ordinal_357]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret
Function at 0x4e982b
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x5184d0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword fs:[0x30]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
cmp dword [eax + 0x68], ebx
jne 0x4e9860
call fcn.004cbee4
test eax, eax
js 0x4e986b
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0x4000
push 1
call fcn.0050435a
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__fileno]
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__setmode]
mov ebx, 0x428d50
push ebx
push 1
call dword [sym.imp.msvcrt.dll__wsetlocale]
push ebx
push 3
call dword [sym.imp.msvcrt.dll__wsetlocale]
push ebx
push 4
call dword [sym.imp.msvcrt.dll__wsetlocale]
push ebx
push 5
call dword [sym.imp.msvcrt.dll__wsetlocale]
add esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
push 0x428d5c
lea eax, [esp + 0x5c]
push 0xc
push eax
call fcn.0043ec15
lea eax, [esp + 0x64]
push eax
push 2
call dword [sym.imp.msvcrt.dll__wsetlocale]
add esp, 0x18
call fcn.004cbe75
mov dword [0x518de8], esi
call fcn.004cf514
call fcn.004e9f7d
sub esp, 0xc
call fcn.004ea477
xor eax, eax
mov dword [esp + 0x14], 0x4e97d0
mov ebx, 0x7f00
mov dword [esp + 0x10], eax
push ebx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
call dword [sym.imp.USER32.dll_LoadIconW]
push ebx
xor ebx, ebx
mov dword [esp + 0x28], eax
push ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x406524
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x4e9962
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4e99ce
push ebx
push esi
push ebx
push ebx
mov eax, SysReAllocString
push eax
push eax
push eax
push eax
push 0xcf0000
push 0x406554
push 0x406524
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x4e9958
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push edi
push ebx
push 0x400
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x4e99b8
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x4e99a2
mov esi, dword [esp + 0x40]
mov edi, dword [0x519ad0]
test edi, edi
je 0x4e99e2
mov ecx, edi
call dword [0x51cbac]
call edi
call fcn.004cfa13
call dword [sym.imp.certcli.dll_Ordinal_213]
mov ecx, 0x430988
call fcn.004cf40a
mov ecx, 0x4089f0
call fcn.004cf40a
call fcn.004e9eeb
mov ecx, dword [esp + 0x6c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005036b0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ea7a9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, 0x430b04
test cl, cl
jne 0x4ea7cf
mov eax, 0x430b0c
push edx
push eax
push 0x430a18
push 0x430b18
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.00463de5
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005036b0
leave
ret 4

Function at 0x4ea9e7
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ecx
push ebx
xor edx, edx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.004ea82a
mov esi, eax
test esi, esi
je 0x4eaa19
push esi
push 0x9e01b5
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4eaa62
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push dword [ebp - 4]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x4eaa3f
push esi
push 0xa601b5
jmp 0x4eaa11
push 0x427ef8
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
cmp esi, 2
je 0x4eaa60
test esi, esi
je 0x4eaa60
push esi
push 0xab01b5
jmp 0x4eaa11
mov esi, ebx
cmp dword [ebp - 4], ebx
je 0x4eaa70
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], ebx
je 0x4eaa7e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.004c738c
pop esi
pop ebx
leave
ret 0xc

Function at 0x4eaa91
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [ebp + 0x20]
lea eax, [ebp - 4]
mov ecx, edx
xor edx, edx
push eax
push ecx
push edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edx
call fcn.004ea82a
mov esi, eax
test esi, esi
je 0x4eaaca
push esi
push 0x13201b5
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4eab53
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push 0xf003f
push eax
push eax
push eax
push dword [ebp - 4]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
je 0x4eaaf9
push esi
push 0x13e01b5
jmp 0x4eaabf
cmp dword [ebp + 0x14], 0
je 0x4eab51
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4eab0a
test edi, edi
jne 0x4eab2d
mov eax, dword [ebp + 0x18]
sub eax, 1
je 0x4eab25
sub eax, 1
je 0x4eab25
sub eax, 5
jne 0x4eab2d
mov ecx, 0x405dcc
push 4
jmp 0x4eab2c
mov ecx, 0x405d88
push 2
pop edi
push edi
push ecx
push dword [ebp + 0x18]
push 0
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x4eab51
push esi
push 0x15801b5
jmp 0x4eaabf
xor esi, esi
cmp dword [ebp - 4], 0
je 0x4eab62
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 0
je 0x4eab71
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, esi
call fcn.004c738c
pop edi
pop esi
leave
ret 0x20
Function at 0x4eabc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
xor esi, esi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], esi
mov dword [eax], esi
push edi
mov edi, esi
test ebx, ebx
je 0x4eabe6
mov dword [ebx], esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x4eabef
mov dword [eax], esi
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push esi
push edx
push ecx
jmp 0x4eac4c
test edi, edi
jne 0x4eac8a
cmp dword [ebp - 8], 7
mov ecx, dword [ebp - 0xc]
je 0x4eac14
cmp dword [ebp - 8], 1
jne 0x4eac27
push 4
pop eax
mov dword [ebp - 4], eax
test cl, 1
je 0x4eac2a
push 5
pop eax
mov dword [ebp - 4], eax
jmp 0x4eac2a
mov eax, dword [ebp - 4]
add eax, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x4eac77
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x4eabfd
push 2
push esi
push 0x1b101b5
push dword [ebp - 0x10]
call dword [sym.imp.certcli.dll_Ordinal_360]
mov ecx, esi
call fcn.004c738c
pop edi
pop esi
pop ebx
leave
ret 0xc
mov esi, 0x8007000e
push esi
push 0x1cf01b5
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4eac69
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
add eax, edi
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0xc
test ecx, ecx
je 0x4eacaa
mov eax, dword [ebp - 8]
mov dword [ecx], eax
test ebx, ebx
je 0x4eacb3
mov eax, dword [ebp - 0xc]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
mov dword [eax], edi
jmp 0x4eac69
Function at 0x4ed54f
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, edx
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push 1
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
jne 0x4ed584
call fcn.004c73cc
mov esi, eax
test edi, edi
jne 0x4ed5ae
cmp esi, 0x800700ea
jne 0x4ed5ae
test edi, edi
jne 0x4ed5c7
mov eax, dword [ebp - 4]
add eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4ed560
mov esi, 0x8007000e
push esi
push 0x74101c9
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4ed5cb
push esi
push 0x73601c9
call dword [sym.imp.certcli.dll_Ordinal_357]
test edi, edi
je 0x4ed5cb
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4ed5cb
mov dword [ebx], edi
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x4ed5d8
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov eax, ecx
xor edi, edi
push 3
pop ebx
mov dword [ebp - 8], eax
mov dword [eax], edi
lea eax, [ebp - 4]
push eax
push edi
push ebx
jmp 0x4ed61f
call fcn.004c73cc
mov esi, eax
mov eax, 0x80070002
cmp esi, eax
jne 0x4ed650
cmp ebx, 3
jne 0x4ed658
push eax
push 0x76301c9
call dword [sym.imp.certcli.dll_Ordinal_357]
lea eax, [ebp - 4]
mov ebx, edi
push eax
push edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x4ed5f6
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
add eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4ed66b
mov esi, 0x8007000e
push esi
push 0x77601c9
jmp 0x4ed65e
cmp esi, 0x800700ea
je 0x4ed666
push esi
push 0x76901c9
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4ed69e
mov eax, dword [ebp - 4]
jmp 0x4ed633
lea eax, [ebp - 4]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x4ed697
call fcn.004c73cc
mov esi, eax
push esi
push 0x77c01c9
call dword [sym.imp.certcli.dll_Ordinal_357]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4ed69e
mov eax, dword [ebp - 8]
xor esi, esi
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f1378
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x5184d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x218], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push 0x20a
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x210]
push 0
push eax
mov byte [ebp - 0x211], dl
mov dword [ebp - 0x224], esi
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x220]
xor edi, edi
add esp, 0xc
mov dword [ebp - 0x21c], edi
test eax, eax
je 0x4f13db
and dword [eax], edi
test esi, esi
je 0x4f13e1
and dword [esi], edi
test ebx, ebx
je 0x4f14f8
xor eax, eax
cmp ax, word [ebx]
je 0x4f14f8
mov ecx, ebx
call fcn.0046720e
test al, al
je 0x4f14f8
lea edx, [ebp - 0x218]
mov ecx, ebx
call fcn.004cb806
mov esi, eax
test esi, esi
je 0x4f1427
push esi
push 0x3701ce
call dword [sym.imp.certcli.dll_Ordinal_357]
jmp 0x4f150a
mov bl, byte [ebp - 0x211]
lea eax, [ebp - 0x210]
push eax
xor ecx, ecx
xor eax, eax
test bl, bl
push ecx
sete al
dec eax
and eax, 7
push ecx
add eax, 0x1c
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, 0x8007007f
jne 0x4f1478
movzx ecx, bl
lea eax, [ebp - 0x210]
xor ecx, 1
push 0x105
push eax
lea ecx, [ecx*2 + 4]
call fcn.00443732
mov esi, eax
test esi, esi
je 0x4f1484
push esi
push 0x4901ce
jmp 0x4f141c
lea eax, [ebp - 0x21c]
mov edx, 0x431490
push eax
push ecx
lea ecx, [ebp - 0x210]
call fcn.004cc4cd
mov esi, eax
test esi, esi
je 0x4f14b6
push esi
push 0x5001ce
call dword [sym.imp.certcli.dll_Ordinal_357]
mov edi, dword [ebp - 0x21c]
jmp 0x4f150a
mov eax, dword [ebp - 0x224]
mov edi, dword [ebp - 0x21c]
test eax, eax
je 0x4f14e6
mov edx, dword [ebp - 0x218]
push eax
push ecx
mov ecx, edi
call fcn.004cc4cd
mov esi, eax
test esi, esi
je 0x4f14e6
push esi
push 0x5701ce
jmp 0x4f141c
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x4f14f4
mov dword [eax], edi
xor edi, edi
xor esi, esi
jmp 0x4f150a
mov esi, 0x80070057
push esi
push 0x3101ce
push ebx
call dword [sym.imp.certcli.dll_Ordinal_359]
cmp dword [ebp - 0x218], 0
je 0x4f151f
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x4f152a
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005036b0
leave
ret 8
Function at 0x4f2146
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor eax, eax
mov dword [ebp - 0x14], ecx
push esi
push edi
lea edx, [ebp - 4]
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov edi, eax
call fcn.004cbc9e
mov esi, eax
test esi, esi
je 0x4f217c
push esi
push 0x21e0199
jmp 0x4f2241
lea eax, [ebp - 0x10]
xor ecx, ecx
push eax
lea eax, [ebp - 8]
push eax
push ecx
lea eax, [ebp - 0xc]
push eax
push ecx
push dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4f21b3
call fcn.004c73cc
mov esi, eax
push esi
push 0x22b0199
jmp 0x4f2241
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4f21d6
mov ecx, 0x8007000e
push ecx
mov esi, ecx
push 0x2340199
jmp 0x4f2241
push dword [ebp - 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x4f21f6
mov ecx, 0x8007000e
push ecx
mov esi, ecx
push 0x23d0199
jmp 0x4f2241
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4f2222
call fcn.004c73cc
mov esi, eax
push esi
push 0x24a0199
jmp 0x4f2241
mov eax, dword [ebp - 0x14]
add eax, 0x44
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
jne 0x4f2247
call fcn.004c73cc
mov esi, eax
push esi
push 0x2520199
call dword [sym.imp.certcli.dll_Ordinal_357]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret