joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e041201
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x2e0c18a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x2e0d13a8], 1
push edi
mov edi, dword [ebp + 8]
jb 0x2e04122a
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x2e041292
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x2e04128f
push ebx
push edi
call fcn.2e027282
mov ebx, eax
lea eax, [ebp - 0x108]
push eax
call fcn.2e027282
lea eax, [ebx + eax + 2]
pop ebx
cmp eax, esi
ja 0x2e04128f
push esi
lea eax, [ebp - 0x108]
push eax
push 0x2e00442c
call fcn.2e05e388
push esi
lea eax, [ebp - 0x108]
push eax
push edi
call fcn.2e05e388
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x2e041291
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.2e06e7f2
leave
ret 4

Function at 0x2e0412a1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x2e0412b2
xor eax, eax
jmp 0x2e041313
push esi
cmp dword [ebp + 0x10], edi
je 0x2e0412db
push dword [ebp + 0x10]
call fcn.2e0441a3
mov esi, eax
cmp esi, edi
jne 0x2e0412ca
xor eax, eax
jmp 0x2e041312
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.2e06e2ea
add esp, 0xc
jmp 0x2e0412de
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x2e0412fc
push esi
call dword [ebp + 8]
jmp 0x2e04130f
mov ecx, dword [0x2e0c2b4c]
cmp ecx, edi
je 0x2e04130f
lea eax, [ebp - 4]
push eax
call fcn.2e025df3
mov eax, dword [ebp - 4]
pop esi
pop edi
leave
ret 0xc
Function at 0x2e041802
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x2e0c18a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x120]
push ecx
push eax
call fcn.2e07fd91
test eax, eax
je 0x2e0419bd
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call fcn.2e025e30
lea eax, [ebp - 0x108]
push eax
call fcn.2e03fd38
mov edi, eax
cmp byte [edi], 0x5c
jne 0x2e0419bc
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor ebx, ebx
push ebx
lea eax, [ebp - 0x108]
mov byte [edi], bl
push eax
push dword [ebp - 0x120]
inc edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x2e0419bb
mov eax, dword [esi + 0xc]
sub eax, ebx
je 0x2e041981
dec eax
je 0x2e041961
dec eax
je 0x2e041945
dec eax
jne 0x2e0419af
push 1
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x110]
push eax
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], ebx
call fcn.2e07fd06
test eax, eax
je 0x2e0419af
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp - 0x110]
push ebx
push ebx
call edi
mov dword [ebp - 0x114], eax
add eax, eax
push eax
mov dword [ebp - 0x124], eax
call fcn.2e0441a3
mov dword [esi + 4], eax
cmp eax, ebx
je 0x2e041930
push dword [ebp - 0x114]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x110]
push ebx
push ebx
call edi
mov eax, dword [ebp - 0x124]
mov dword [esi + 8], eax
mov dword [esi], 1
cmp dword [ebp - 0x110], ebx
je 0x2e0419af
push dword [ebp - 0x110]
call fcn.2e0441d7
jmp 0x2e0419af
push 3
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
push edi
push dword [ebp - 0x10c]
call fcn.2e07fd06
test eax, eax
je 0x2e0419af
jmp 0x2e0419a9
xor ebx, ebx
inc ebx
push ebx
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
push edi
push dword [ebp - 0x10c]
call fcn.2e07fd06
test eax, eax
je 0x2e0419af
mov dword [esi], ebx
jmp 0x2e0419af
lea eax, [ebp - 0x118]
push eax
lea eax, [esi + 4]
push eax
push ebx
push ebx
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x118], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e0419af
mov dword [esi], 1
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.2e06e7f2
leave
ret 8
Function at 0x2e0419cc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x2e004bf4
call fcn.2e07fd91
test eax, eax
jne 0x2e0419ea
leave
ret
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call ebx
test eax, eax
jne 0x2e041a44
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x2e041a3b
inc dword [ebp - 0x10]
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
call fcn.2e044308
test eax, eax
jne 0x2e041a4b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x2e041b05
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x18], esi
jbe 0x2e041aed
mov eax, dword [ebp - 0x10]
push esi
push esi
push esi
push esi
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x2e041ad0
push dword [ebp - 8]
call fcn.2e03f6e4
test eax, eax
je 0x2e041ac3
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x2e041ac3
push 3
push 0x2e0904b8
push 0x2e0904b4
push str.DigitalProductID
push dword [ebp - 0x14]
call fcn.2e07fd06
push dword [ebp - 0x14]
test eax, eax
jne 0x2e041ae1
call edi
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
jb 0x2e041a5e
jmp 0x2e041aed
push dword [ebp - 4]
call edi
push dword [ebp - 8]
call fcn.2e04440f
xor eax, eax
jmp 0x2e041b04
mov dword [0x2e0904b0], 1
call edi
push dword [ebp - 8]
call fcn.2e04440f
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x18]
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2e041be5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x2e0c18a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
imul esi, esi, 0x18
xor ebx, ebx
cmp dword [esi + 0x2e090498], ebx
je 0x2e041c20
mov ecx, dword [esi + 0x2e09049c]
cmp ecx, dword [ebp + 0x10]
jne 0x2e041c20
xor eax, eax
inc eax
jmp 0x2e041d0f
push edi
mov edi, 0x104
push edi
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.2e025e30
mov eax, dword [esi + 0x2e0904a8]
cmp eax, ebx
je 0x2e041c67
cmp byte [eax], bl
je 0x2e041c67
push edi
lea eax, [ebp - 0x108]
push eax
push 0x2e00442c
call fcn.2e05e388
push edi
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x2e0904a8]
call fcn.2e05e388
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.2e07fd91
test eax, eax
je 0x2e041cec
push dword [ebp - 0x10c]
call fcn.2e03fd38
mov edi, eax
cmp byte [edi], 0x5c
jne 0x2e041cec
push ebx
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x20006
push ebx
push ebx
mov byte [edi], bl
push ebx
push dword [ebp - 0x10c]
inc edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x2e041cec
mov eax, dword [esi + 0x2e0904ac]
cmp eax, ebx
je 0x2e041ccf
cmp byte [eax], bl
jne 0x2e041cd1
mov eax, edi
push 4
pop edi
push edi
lea ecx, [ebp + 0x10]
push ecx
push edi
push ebx
push eax
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x2e041cf0
xor eax, eax
jmp 0x2e041d0e
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x2e09049c], eax
xor eax, eax
inc eax
mov dword [esi + 0x2e0904a0], edi
mov dword [esi + 0x2e090498], eax
mov dword [esi + 0x2e0904a4], ebx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.2e06e7f2
leave
ret 0xc

Function at 0x2e041d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x2e0c18a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x2e041e75
call fcn.2e03e006
test eax, eax
je 0x2e041dde
push 0x2e0053a0
call fcn.2e03fc59
push esi
call fcn.2e03fc59
push 0x2e004420
call fcn.2e03fc59
cmp dword [0x2e0d1368], 0
jne 0x2e041df1
push esi
call fcn.2e03da7c
test eax, eax
je 0x2e041dfb
push esi
call fcn.2e03f234
test eax, eax
jne 0x2e041e75
push 0x824
lea eax, [ebp - 0x828]
push eax
push esi
call fcn.2e025e30
cmp dword [ebp + 0xc], 0
je 0x2e041e21
lea eax, [ebp - 0x828]
push eax
call fcn.2e03f344
jmp 0x2e041e75
push 0x38
lea eax, [ebp - 0x860]
push 0
push eax
call fcn.2e06e640
lea eax, [ebp - 0x828]
mov dword [ebp - 0x854], eax
add esp, 0xc
lea eax, [ebp - 0x864]
push eax
mov dword [ebp - 0x864], 0x3c
mov dword [ebp - 0x848], 0xa
mov dword [ebp - 0x860], 0x100
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x2e041e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.2e06e7f2
leave
ret 8
Function at 0x2e04213a
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x2e0421c3
push esi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x2e0421c2
push esi
call fcn.2e03fd60
cmp eax, esi
je 0x2e0421c2
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push edi
push edi
push edi
sub eax, esi
sar eax, 1
push eax
push esi
push edi
push dword [0x2e0d1380]
mov dword [ebp - 8], eax
call ebx
mov esi, eax
inc esi
push esi
lea eax, [ebp - 4]
push eax
call fcn.2e044308
test eax, eax
je 0x2e0421c1
push esi
push edi
push dword [ebp - 4]
call fcn.2e06e640
add esp, 0xc
push edi
push edi
push esi
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 0xc]
push edi
push dword [0x2e0d1380]
call ebx
test eax, eax
je 0x2e0421b9
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push dword [ebp - 4]
call fcn.2e04440f
pop ebx
pop esi
pop edi
leave
ret 8
Function at 0x2e042724
Capabilities:
Get common file path
Query or enumerate registry value
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x2e0c18a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x2e042763
lea eax, [ebp - 0x108]
push eax
push 0x2e005570
call edi
push 0x2e005560
call fcn.2e041201
xor ebx, ebx
mov dword [ebp - 0x10c], eax
cmp eax, ebx
je 0x2e042821
push esi
push 0x2e00554c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x2e042814
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x26
push ebx
call esi
test eax, eax
jne 0x2e0427b4
lea eax, [ebp - 0x108]
push eax
push 0x2e005540
call edi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x2b
push ebx
call esi
test eax, eax
jne 0x2e0427d4
lea eax, [ebp - 0x108]
push eax
push 0x2e005534
call edi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x1a
push ebx
call esi
test eax, eax
jne 0x2e0427f4
lea eax, [ebp - 0x108]
push eax
push 0x2e00552c
call edi
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 5
push ebx
call esi
test eax, eax
jne 0x2e042814
lea eax, [ebp - 0x108]
push eax
push 0x2e005520
call edi
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
lea eax, [ebp - 0x110]
push eax
push 0x20019
push ebx
push 0x2e0054ec
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x2e0428a5
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push ebx
push 0x2e0054e4
push dword [ebp - 0x110]
mov dword [ebp - 0x10c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e042899
lea eax, [ebp - 0x108]
push eax
call fcn.2e027282
lea eax, [ebp + eax - 0x109]
cmp byte [eax], 0x5c
jne 0x2e04288b
mov byte [eax], bl
lea eax, [ebp - 0x108]
push eax
push 0x2e0054d8
call edi
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.2e06e7f2
leave
ret
Function at 0x2e042f41
Capabilities:
Create process memory minidump

Disassembly:
push 0x44c
push 0x2e08cab8
call fcn.2e06eb1c
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp dword [0x2e0c5aec], ebx
je 0x2e043168
cmp dword [ebp + 0x20], ebx
je 0x2e042f78
cmp dword [ebp + 0x18], ebx
je 0x2e043168
cmp dword [ebp + 0x1c], ebx
je 0x2e043168
push 0x410
push ebx
lea eax, [ebp - 0x45c]
push eax
call fcn.2e06e640
add esp, 0xc
mov di, word [0x2e0c6288]
cmp di, bx
je 0x2e043001
mov edx, 0x2e00559c
mov eax, 0x2e0c6288
mov ecx, eax
mov si, word [ecx]
cmp si, word [edx]
jne 0x2e042fcb
cmp si, bx
je 0x2e042fc7
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x2e042fcb
add ecx, 4
add edx, 4
cmp si, bx
jne 0x2e042fa5
xor ecx, ecx
jmp 0x2e042fd0
sbb ecx, ecx
sbb ecx, 0xffffffff
cmp ecx, ebx
jne 0x2e042fdd
mov dword [ebp - 0x1c], 1
jmp 0x2e043001
movzx ecx, di
lea edx, [ebp - 0x45c]
mov dword [edx], eax
cmp cx, bx
je 0x2e042ff4
inc eax
inc eax
cmp word [eax], bx
jne 0x2e042fed
add edx, 4
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, bx
jne 0x2e042fe6
mov esi, dword [ebp + 0x20]
cmp esi, ebx
je 0x2e04301c
push 0x104
push 0x2e0cfa1a
push 0x2e00558c
call fcn.2e0272a0
call fcn.2e042c65
test eax, eax
je 0x2e043168
push ebx
push 0x40000000
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push 0x2e0d0080
lea eax, [ebp + 0xc]
push eax
call fcn.2e03f460
test eax, eax
je 0x2e043168
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], 0x2e0cf544
mov ecx, dword [0x2e0c5af0]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], esi
mov eax, dword [0x2e0c5af8]
cmp eax, ebx
je 0x2e043092
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0x2e042d29
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x20], ecx
cmp dword [0x2e0cf544], ebx
je 0x2e0430b9
mov ecx, dword [0x2e0cf548]
cmp esi, ebx
je 0x2e0430c2
or ecx, 0x400
jmp 0x2e0430be
mov ecx, 0x121
cmp esi, ebx
jne 0x2e0430c8
or ecx, 0x200
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x24]
push edx
push ebx
neg eax
sbb eax, eax
lea edx, [ebp - 0x30]
and eax, edx
push eax
push ecx
push dword [ebp + 0xc]
push dword [0x2e0c5aec]
push dword [0x2e0c5b0c]
call sub.dbghelp.dll_MiniDumpWriteDump
test eax, eax
jne 0x2e0430fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x2e043161
mov dword [ebp - 4], 0xfffffffe
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, ebx
je 0x2e043120
push 0x41
push 0x2e0cf9d8
push 0x2e0cfa1a
call fcn.2e03f855
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.2e03f387
test eax, eax
je 0x2e043168
cmp dword [esi + 0xc], ebx
je 0x2e043168
cmp dword [ebp + 0x20], ebx
je 0x2e04314c
cmp dword [0x2e0cfc34], ebx
jne 0x2e04314c
mov eax, dword [0x2e0c5af4]
mov dword [0x2e0cfc34], eax
xor eax, eax
inc eax
jmp 0x2e04316a
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
call fcn.2e06eb61
ret 0x1c
Function at 0x2e043ebd
Capabilities:
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
cmp ecx, edx
jb 0x2e043ede
mov eax, dword [eax + 8]
cmp ecx, eax
jb 0x2e043ede
cmp edx, eax
jb 0x2e043ede
add eax, 0x10000
cmp eax, ecx
jae 0x2e043f09
mov eax, dword [0x2e090bd0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push 0x35636561
call fcn.2e0448b0
push 0
push 0
push 1
push 0xe0000001
call dword [sym.imp.KERNEL32.dll_RaiseException]
ret

Function at 0x2e0445c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push esi
lea eax, [esp + 4]
push eax
push 1
push ecx
xor esi, esi
push edx
mov dword [esp + 0x14], esi
call fcn.2e06230b
test eax, eax
jne 0x2e04462a
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
push edx
push esi
push eax
push ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e04462a
cmp dword [esp + 0x10], 4
jne 0x2e04462a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 8]
mov dword [edx], eax
mov esi, 1
mov eax, dword [esp + 4]
test eax, eax
je 0x2e044641
push eax
mov dword [esp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x2e0450cd
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x2e08caf8
call fcn.2e06eb1c
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
movzx edx, word [eax]
mov ecx, 0x5a4d
cmp dx, cx
jne 0x2e04510b
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov esi, 0xe0
cmp word [ecx + 0x14], si
jne 0x2e04510b
add esi, 0x2b
cmp word [ecx + 0x18], si
jne 0x2e04510b
mov eax, dword [ecx + 0x50]
jmp 0x2e04512c
mov ecx, 0x4550
cmp dx, cx
jne 0x2e045138
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x2e045138
add ecx, 0x2b
cmp word [eax + 0x18], cx
jne 0x2e045138
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x1c], eax
jmp 0x2e04513c
and dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
call fcn.2e06eb61
ret

Function at 0x2e045919
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x2e04595f
push edi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.2e062071
mov edi, eax
cmp edi, 0xffffffff
je 0x2e04595e
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret
Function at 0x2e046b2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0xffffffff
jne 0x2e046b3d
xor eax, eax
leave
ret
push esi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
inc edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.2e045962
add esp, 0x10
test eax, eax
je 0x2e046c8a
cmp dword [ebp - 4], esi
je 0x2e046c8a
push ebx
mov ebx, 0x2e0dbe68
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call fcn.2e047aa7
pop ecx
test eax, eax
jne 0x2e046b98
xor edi, edi
jmp 0x2e046c82
cmp dword [0x2e0d8a7c], esi
je 0x2e046bab
push esi
push 0x72766c72
call fcn.2e0448b0
lea eax, [ebp - 0x14]
push eax
mov dword [0x2e0d8a7c], 1
mov dword [ebp - 0x14], esi
call fcn.2e045885
pop ecx
cmp eax, dword [ebp - 8]
jne 0x2e046bcf
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x2e046c08
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.2e0459af
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.2e045962
add esp, 0x18
test eax, eax
je 0x2e046bfb
cmp dword [ebp - 4], esi
jne 0x2e046c08
push esi
push 0x72766c73
call fcn.2e0448b0
xor edi, edi
cmp dword [ebp + 0x14], esi
jne 0x2e046c1a
cmp dword [ebp - 8], 0xea60
ja 0x2e046b91
cmp edi, esi
je 0x2e046c34
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.2e0468e7
add esp, 0x10
mov edi, eax
mov dword [0x2e0d8a7c], esi
push esi
cmp edi, esi
je 0x2e046c78
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x2e046c63
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jne 0x2e046c63
xor edi, edi
inc edi
jmp 0x2e046c65
xor edi, edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.2e045919
add esp, 0xc
jmp 0x2e046c82
push 0x74697970
call fcn.2e0448b0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x2e046ca5
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.2e0459af
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x2e046f5b
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp ebx, edi
jne 0x2e046f7d
push edi
push 0x36717370
call fcn.2e0448b0
jmp 0x2e0470bb
push esi
mov esi, dword [ebp + 0x10]
cmp esi, edi
jne 0x2e046f90
push edi
push 0x36717371
jmp 0x2e047090
cmp dword [ebp + 8], 2
je 0x2e046fad
cmp dword [ebp + 8], 8
je 0x2e046fad
cmp dword [ebp + 8], 3
je 0x2e046fad
push edi
push 0x36717372
jmp 0x2e047090
cmp dword [ebx], edi
je 0x2e046fbc
push edi
push 0x36717373
call fcn.2e0448b0
cmp dword [esi], edi
je 0x2e046fcb
push edi
push 0x37667270
call fcn.2e0448b0
push esi
push edi
push dword [ebp + 8]
mov dword [esi], edi
call sub.Secur32.dll_GetUserNameExW
movzx edi, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x2e047097
cmp eax, 0xea
jne 0x2e047097
mov eax, dword [esi]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.2e025b7c
pop ecx
mov dword [ebx], eax
test eax, eax
jne 0x2e04701b
push eax
push 0x36717375
jmp 0x2e04709e
mov ecx, dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x2e04703b
push 0
push 0x36717376
jmp 0x2e04709e
mov eax, dword [esi]
dec eax
cmp dword [ebp - 4], eax
je 0x2e04704f
push 0
push 0x36717377
call fcn.2e0448b0
cmp edi, 2
jne 0x2e04706b
push dword [esi]
push dword [ebx]
call fcn.2e046ee8
pop ecx
pop ecx
test eax, eax
jne 0x2e0470ba
push eax
push 0x36717378
jmp 0x2e04709e
cmp edi, 8
jne 0x2e047084
push dword [ebx]
call fcn.2e045cca
pop ecx
test eax, eax
jne 0x2e0470ba
push eax
push 0x36717379
jmp 0x2e04709e
cmp edi, 3
je 0x2e0470ba
push 0
push 0x3671737a
call fcn.2e0448b0
jmp 0x2e0470ba
push 0
push 0x36717374
call fcn.2e0448b0
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x2e0470b4
push eax
call fcn.2e0309b3
pop ecx
mov dword [ebx], edi
cmp dword [esi], edi
je 0x2e0470ba
mov dword [esi], edi
pop esi
pop edi
pop ebx
leave
ret