joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bb00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ebp + 0xc]
mov eax, dword [0x440014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [esi], 0
lea edi, [ebp - 0x14]
push 0x43acd0
push dword [ebp + 8]
push edi
call fcn.0041e06d
add esp, 0xc
mov ebx, dword [edi]
test ebx, ebx
je 0x40bb9f
mov dword [esi], 0
push 0x410
call fcn.00420172
add esp, 4
mov esi, 2
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40bcbd
xor eax, eax
push 2
push eax
push eax
push ebx
call fcn.0041a2b6
add esp, 0x10
test eax, eax
je 0x40bbce
push ebx
call fcn.0042026f
add esp, 4
push 2
call fcn.0041552f
add esp, 4
push eax
push 1
push 0x2a
push str.Warning:_MAR_size_could_not_be_determined_n
call fcn.0041fc54
add esp, 0x10
mov dword [ebp - 0x18], 0
mov esi, 0x1f400000
jmp 0x40bbf9
push 2
call fcn.0041552f
add esp, 4
push eax
push 1
push 0x2a
push str.ERROR:_could_not_open_file_in_mar_wopen___n
call fcn.0041fc54
add esp, 0x10
push dword [ebp + 8]
call fcn.0041e194
add esp, 4
xor esi, esi
inc esi
jmp 0x40bcc8
push ebx
call fcn.0041b001
add esp, 4
mov esi, eax
push ebx
call fcn.0042026f
add esp, 4
test esi, esi
js 0x40bb75
cmp esi, 0x1f400001
jae 0x40bd00
mov dword [ebp - 0x18], 0
push esi
call fcn.00420172
add esp, 4
mov edi, dword [ebp - 0x1c]
mov dword [edi], eax
test eax, eax
je 0x40bc75
mov ecx, esi
mov esi, eax
push ebx
mov dword [ebp - 0x20], ecx
push ecx
push 1
push eax
call fcn.0041fa36
add esp, 0x10
mov dword [edi + 4], eax
push ebx
call fcn.0041f6a1
add esp, 4
cmp eax, 0xffffffff
jne 0x40bcdc
push ebx
call fcn.0041f3e2
add esp, 4
test eax, eax
je 0x40bca1
push 2
call fcn.0041552f
add esp, 4
push eax
push 1
push 0x1a
push str.ERROR:_Failed_to_read_MAR_n
call fcn.0041fc54
add esp, 0x10
push dword [edi]
call fcn.0041fc39
add esp, 4
push edi
call fcn.0041fc39
add esp, 4
xor esi, esi
inc esi
jmp 0x40bcbd
push 2
call fcn.0041552f
add esp, 4
push eax
push 1
push 0x29
push str.ERROR:_MAR_buffer_could_not_be_allocated_n
call fcn.0041fc54
add esp, 0x10
push edi
call fcn.0041fc39
add esp, 4
mov esi, 2
jmp 0x40bcbd
mov eax, edi
add eax, 8
push 0x408
push 0
push eax
call fcn.00414cd0
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor esi, esi
push dword [ebp - 0x14]
call fcn.0041f2e7
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412e03
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call fcn.0041552f
add esp, 4
push dword [ebp - 0x18]
push dword [ebp - 0x20]
push str.ERROR:_File_is_larger_than_buffer___lli__n
push eax
call fcn.00432360
add esp, 0x10
push esi
jmp 0x40bc5f
push 2
call fcn.0041552f
add esp, 4
push 0
push esi
push str.ERROR:_MAR_exceeds_maximum_size___lli__n
push eax
call fcn.00432360
add esp, 0x10
push dword [ebp - 0x1c]
call fcn.0041fc39
add esp, 4
mov esi, 3
jmp 0x40bcbd
Function at 0x40c3f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movdqa xmm6, xmmword [0x437ad0]
mov eax, 0xfffffc00
movdqa xmm1, xmmword [0x437ae0]
movdqa xmm7, xmmword [0x437b40]
movdqa xmm2, xmm6
psrld xmm2, 1
movdqa xmm0, xmm6
pslld xmm0, 0x1f
psrad xmm0, 0x1f
pand xmm0, xmm1
pxor xmm0, xmm2
movdqa xmm3, xmm0
psrld xmm3, 1
movdqa xmm2, xmm6
pslld xmm2, 0x1e
psrad xmm2, 0x1f
pand xmm2, xmm1
pxor xmm2, xmm3
movdqa xmm3, xmm6
pslld xmm3, 0x1d
psrad xmm3, 0x1f
pand xmm3, xmmword [0x437af0]
movdqa xmm4, xmm6
pslld xmm4, 0x1c
psrad xmm4, 0x1f
pand xmm4, xmmword [0x437b00]
pxor xmm4, xmm3
movdqa xmm5, xmm6
pslld xmm5, 0x1b
psrad xmm5, 0x1f
pand xmm5, xmmword [0x437b10]
movdqa xmm3, xmm6
pslld xmm3, 0x1a
psrad xmm3, 0x1f
pand xmm3, xmmword [0x437b20]
pxor xmm3, xmm5
pxor xmm3, xmm4
movdqa xmm4, xmm2
psrld xmm4, 6
pxor xmm3, xmm4
pslld xmm2, 0x1a
psrad xmm2, 0x1f
pand xmm2, xmm1
pxor xmm2, xmm3
pslld xmm0, 0x1a
psrad xmm0, 0x1f
pand xmm0, xmmword [0x437b30]
pxor xmm2, xmm0
movdqu xmmword [eax + 0x442b00], xmm2
paddd xmm6, xmm7
add eax, 0x10
jne 0x40c410
pop ebp
ret

Function at 0x40c500
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
movdqa xmm0, xmmword [0x437b50]
mov eax, 0xfffff800
movdqa xmm2, xmmword [0x437b60]
movdqa xmm3, xmmword [0x437b70]
movdqa xmm4, xmmword [0x437b80]
movdqa xmm7, xmm0
punpckldq xmm7, xmmword [0x437580]
movdqa xmm5, xmm7
psrlq xmm5, 1
movdqa xmm1, xmm7
pand xmm1, xmm2
pcmpeqd xmm1, xmm2
pshufd xmm6, xmm1, 0xb1
pand xmm1, xmm3
pand xmm1, xmm6
pxor xmm1, xmm5
movdqa xmm5, xmm1
psrlq xmm5, 1
pand xmm7, xmm4
pcmpeqd xmm7, xmm4
pshufd xmm6, xmm7, 0xb1
pand xmm7, xmm3
pand xmm7, xmm6
pxor xmm7, xmm5
movdqa xmm5, xmm7
psrlq xmm5, 1
pand xmm1, xmm4
pcmpeqd xmm1, xmm4
pshufd xmm6, xmm1, 0xb1
pand xmm1, xmm3
pand xmm1, xmm6
pxor xmm1, xmm5
movdqa xmm5, xmm1
psrlq xmm5, 1
pand xmm7, xmm4
pcmpeqd xmm7, xmm4
pshufd xmm6, xmm7, 0xb1
pand xmm7, xmm3
pand xmm7, xmm6
pxor xmm7, xmm5
movdqa xmm5, xmm7
psrlq xmm5, 1
pand xmm1, xmm4
pcmpeqd xmm1, xmm4
pshufd xmm6, xmm1, 0xb1
pand xmm1, xmm3
pand xmm1, xmm6
pxor xmm1, xmm5
movdqa xmm5, xmm1
psrlq xmm5, 1
pand xmm7, xmm4
pcmpeqd xmm7, xmm4
pshufd xmm6, xmm7, 0xb1
pand xmm7, xmm3
pand xmm7, xmm6
pxor xmm7, xmm5
movdqa xmm5, xmm7
pand xmm1, xmm4
pcmpeqd xmm1, xmm4
pshufd xmm6, xmm1, 0xb1
pand xmm6, xmm1
pand xmm7, xmm4
pcmpeqd xmm7, xmm4
pshufd xmm1, xmm7, 0xb1
pand xmm7, xmm3
pand xmm7, xmm1
psrlq xmm5, 2
pxor xmm7, xmm5
pand xmm6, xmmword [0x437b90]
pxor xmm7, xmm6
movdqu xmmword [eax + 0x443300], xmm7
paddd xmm0, xmmword [0x437ac0]
add eax, 0x10
jne 0x40c528
pop ebp
ret
Function at 0x40ceb0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
mov ecx, dword [ebp + 8]
xor edi, edi
cmp dword [esi], 4
jne 0x40d02f
mov ebx, dword [ebp + 0xc]
mov eax, dword [ecx]
sub ebx, eax
cmp ebx, 5
jb 0x40d02f
add edx, eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
add ebx, 0xfffffffc
xor edi, edi
xor eax, eax
dec eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edx
mov cl, byte [edx + edi]
and cl, 0xfe
cmp cl, 0xe8
jne 0x40cf0a
mov ecx, edi
sub ecx, eax
cmp ecx, 3
jbe 0x40cf11
xor ecx, ecx
jmp 0x40cf44
mov ecx, edi
jmp 0x40d009
dec cl
mov eax, dword [ebp - 0x10]
shl eax, cl
mov ecx, 0
and eax, 7
je 0x40cf44
mov ecx, 0xe8
bt ecx, eax
jb 0x40cf58
movzx ecx, byte [eax + 0x437be0]
mov ebx, edi
sub ebx, ecx
mov cl, byte [ebx + edx + 4]
dec cl
cmp cl, 0xfe
jae 0x40cf58
mov ecx, eax
mov dword [ebp - 0x10], ecx
movzx ebx, byte [edx + edi + 4]
mov ecx, ebx
dec cl
cmp cl, 0xfe
jae 0x40cf67
mov eax, dword [ebp - 0x10]
add eax, eax
inc eax
mov dword [ebp - 0x10], eax
mov ecx, edi
mov eax, edi
jmp 0x40d006
movzx ecx, byte [edx + edi + 1]
movzx eax, byte [edx + edi + 2]
shl eax, 8
shl ebx, 0x18
or ebx, ecx
movzx ecx, byte [edx + edi + 3]
shl ecx, 0x10
or ebx, eax
or ebx, ecx
mov ecx, dword [esi + 0xc]
add ecx, edi
mov esi, 0xfffffffb
sub esi, ecx
add ebx, esi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40cfd8
movzx edx, byte [eax + 0x437be0]
shl edx, 3
mov ecx, 0x18
sub ecx, edx
mov eax, ebx
shr eax, cl
dec al
cmp al, 0xfe
jb 0x40cfd8
neg dl
mov eax, edx
mov edx, ecx
mov dword [ebp - 0x20], esi
xor esi, esi
dec esi
mov ecx, eax
shl esi, cl
xor ebx, esi
not ebx
add ebx, dword [ebp - 0x20]
mov eax, ebx
mov ecx, edx
shr eax, cl
dec al
cmp al, 0xfd
ja 0x40cfc5
mov eax, ebx
and eax, 0x1000000
mov ecx, eax
neg ecx
or ecx, eax
mov edx, dword [ebp - 0x18]
mov byte [edx + edi + 1], bl
mov byte [edx + edi + 2], bh
shr ebx, 0x10
mov byte [edx + edi + 3], bl
shr ecx, 0x18
mov byte [edx + edi + 4], cl
lea ecx, [edi + 4]
mov eax, edi
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x14]
mov edi, ecx
inc edi
cmp edi, ebx
jb 0x40cef2
mov edx, edi
sub edx, eax
mov ecx, edx
dec cl
mov ebx, dword [ebp - 0x10]
shl ebx, cl
xor eax, eax
cmp edx, 4
cmovb eax, ebx
mov dword [esi + 0x10], eax
mov ecx, dword [ebp + 8]
add dword [ecx], edi
add dword [esi + 0xc], edi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x410460
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
sub esp, 0x10
mov eax, dword [0x440014]
xor eax, ebp
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x10]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4104b6
lea eax, [ebp - 0x18]
lea esi, [ebp - 0x14]
push eax
push 4
push esi
push 0x12
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
setne al
cmp dword [esi], 3
sete bl
and bl, al
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4104b8
xor ebx, ebx
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00412e03
mov eax, ebx
add esp, 0x10
pop esi
pop ebx
pop ebp
ret

Function at 0x410610
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 8]
mov eax, dword [0x440014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [esi], 0
je 0x410679
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
inc eax
push dword [esi]
push eax
push 0xd
push str._Warning:
call fcn.0041fc54
add esp, 0x10
mov ebx, dword [ebp - 0x14]
mov edi, dword [esi]
call fcn.00401060
push ebx
push 0
push dword [ebp + 0xc]
push edi
push dword [eax + 4]
push dword [eax]
call fcn.0041588e
add esp, 0x18
push dword [esi]
xor eax, eax
inc eax
push eax
push 4
push str._n
call fcn.0041fc54
add esp, 0x10
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412e03
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x410c80
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, ecx
mov eax, dword [0x440014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x8000
push section..rdata
call sub.SHELL32.dll_SHGetKnownFolderPath
xor esi, esi
test eax, eax
js 0x410cca
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.0041221b
add esp, 4
cmp eax, 0x105
jb 0x410cde
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412e03
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x105
push ebx
push edi
call fcn.00412348
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Mozilla_Maintenance_Service
push edi
call fcn.00432700
add esp, 8
test eax, eax
je 0x410cca
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410d22
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410cca
push str.UpdateLogs
push edi
call fcn.00432700
add esp, 8
test eax, eax
je 0x410cca
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x410d52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x410cca
xor esi, esi
inc esi
jmp 0x410cca
Function at 0x411370
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov eax, dword [0x440014]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
push 5
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x411437
mov ebx, eax
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x41145d
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], 0xcf
imul esi, eax, 0x3e8
test esi, esi
je 0x411485
mov dword [ebp - 0x3c], ebx
xor ebx, ebx
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4113ee
cmp dword [ebp - 0x30], 1
jne 0x41141a
jmp 0x4114c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jle 0x4114a8
lea ecx, [eax - 0x41c]
cmp ecx, 0xa
ja 0x4114f2
mov edx, 0x601
bt edx, ecx
jae 0x4114f2
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0x32
cmp ebx, esi
jb 0x4113cc
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
jmp 0x41152b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
sete cl
xor ecx, 0xff
cmp eax, 5
mov esi, 0xfd
cmovne esi, ecx
jmp 0x41153a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x411491
cmp edi, 5
je 0x4114c9
cmp edi, 6
jne 0x4114d7
mov esi, 0xec
jmp 0x41153a
mov dword [ebp - 0x40], 0xcf
jmp 0x41152b
cmp edi, 0x7b
je 0x4114d0
cmp edi, 0x424
jne 0x4114d7
mov esi, 0xee
jmp 0x41153a
cmp eax, 0x56
jg 0x4114de
cmp eax, 5
mov ebx, dword [ebp - 0x3c]
je 0x411508
cmp eax, 6
jne 0x411516
mov eax, 0xd9
jmp 0x411525
mov ebx, dword [ebp - 0x3c]
xor eax, eax
inc eax
jmp 0x411528
mov esi, 0xeb
jmp 0x41153a
mov esi, 0xed
jmp 0x41153a
mov esi, 0xef
jmp 0x41153a
cmp eax, 0x57
mov ebx, dword [ebp - 0x3c]
je 0x41150f
cmp eax, 0x7a
jne 0x411516
mov eax, 0xdb
jmp 0x411525
cmp eax, 0x7c
je 0x41151d
cmp eax, 0x45b
mov ebx, dword [ebp - 0x3c]
jne 0x411516
mov eax, 0xde
jmp 0x411525
mov eax, 0xda
jmp 0x411525
mov eax, 0xdc
jmp 0x411525
mov eax, 0xdf
jmp 0x411525
mov eax, 0xdd
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x40], eax
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push ebx
call esi
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412e03
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x411550
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 8]
lea ecx, [esi + 2]
xor eax, eax
dec eax
mov dword [ebp - 0x18], ecx
cmp ecx, 0x40000000
lea ecx, [esi*4 + 8]
cmovae ecx, eax
push ecx
call fcn.004120db
add esp, 4
mov edi, eax
mov dword [eax], str.MozillaMaintenance
mov dword [eax + 4], str.software_update
test esi, esi
jle 0x4115a4
lea eax, [edi + 8]
shl esi, 2
push esi
push dword [ebp + 0xc]
push eax
call fcn.00424140
add esp, 0xc
push 5
push str.MozillaMaintenance
call fcn.00411370
add esp, 8
cmp eax, 1
jne 0x411617
xor eax, eax
push 5
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x411621
mov esi, eax
mov dword [ebp - 0x10], edi
push 0x10
push str.MozillaMaintenance
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x411628
mov edi, eax
mov dword [ebp - 0x14], esi
mov esi, 0xffffff9c
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x411636
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x64
cmp esi, 0x1324
jb 0x4115e9
jmp 0x411638
mov ebx, eax
add ebx, 0x4e20
jmp 0x411649
mov ebx, 0x4269
jmp 0x411649
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, 0x426a
jmp 0x411646
xor ebx, ebx
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [ebp - 0x14]
call esi
mov edi, dword [ebp - 0x10]
push edi
call fcn.00412343
add esp, 4
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x411660
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x210
mov ebx, dword [ebp + 8]
mov eax, dword [0x440014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0
push edi
call fcn.00414cd0
add esp, 0xc
push ebx
call fcn.0041221b
add esp, 4
xor esi, esi
cmp eax, 0x104
ja 0x4116ce
mov esi, dword [ebp + 0xc]
push 0x104
push ebx
push edi
call fcn.00412348
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 3
sete cl
mov dword [esi], ecx
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412e03
mov eax, esi
add esp, 0x210
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4116f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x14
mov eax, dword [0x440014]
xor eax, ebp
mov dword [ebp - 0xc], eax
xor esi, esi
call fcn.00410460
test al, al
je 0x4117a1
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
jne 0x4117a1
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x10]
mov dword [edi], 4
lea ecx, [ebp - 0x18]
xor esi, esi
push edi
push ecx
push esi
push esi
push str.ConsentPromptBehaviorAdmin
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
test eax, eax
je 0x411763
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4117a1
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x1c]
xor esi, esi
push edi
push eax
push esi
push esi
push str.PromptOnSecureDesktop
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x4117a1
mov eax, dword [ebp - 0x18]
xor ecx, ecx
or eax, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
sete cl
mov dword [eax], ecx
xor esi, esi
inc esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00412e03
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebp
ret

Function at 0x427331
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042757a

Function at 0x429fb3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00429fbe
Function at 0x432180
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x440014]
xor ecx, ebp
mov dword [esp + 0xa8], ecx
lea edi, [esp + 0x2c]
mov ecx, edi
push eax
call fcn.00401070
add esp, 4
mov eax, dword [edi]
test eax, eax
je 0x4322ac
mov dword [esp + 8], eax
xor ebx, ebx
lea edi, [esp + 0x10]
mov dword [edi], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_IsProcessInJob]
test eax, eax
je 0x43222b
cmp dword [esp + 0x10], 0
je 0x43222b
xorps xmm0, xmm0
lea eax, [esp + 0x30]
movaps xmmword [eax + 0x60], xmm0
movaps xmmword [eax + 0x50], xmm0
movaps xmmword [eax + 0x40], xmm0
movaps xmmword [eax + 0x30], xmm0
movaps xmmword [eax + 0x20], xmm0
movaps xmmword [eax + 0x10], xmm0
movaps xmmword [eax], xmm0
xor ebx, ebx
push ebx
push 0x70
push eax
push 9
push ebx
call dword [sym.imp.KERNEL32.dll_QueryInformationJobObject]
test eax, eax
je 0x43222b
mov eax, dword [esp + 0x40]
bt eax, 0xd
jae 0x43222b
shl eax, 0xd
and eax, 0x1000000
mov ebx, eax
lea ecx, [esp + 0x10]
xorps xmm0, xmm0
lea eax, [esp + 0x30]
movups xmmword [eax + 4], xmm0
movups xmmword [eax + 0x34], xmm0
movups xmmword [eax + 0x24], xmm0
movups xmmword [eax + 0x14], xmm0
mov dword [eax], 0x44
mov dword [eax + 8], str.winsta0Default
movaps xmmword [esp + 0x10], xmm0
xor edi, edi
push ecx
push eax
push edi
push edi
push ebx
push edi
push edi
push edi
mov ebx, dword [esp + 0x28]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test eax, eax
je 0x4322b9
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x4322b0
mov dword [ecx], eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00412343
add esp, 4
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.00412e03
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x432294
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x432281
lea ebx, [esp + 0xc]
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
push edi
push ebx
push 0x400
push eax
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [ebx]
test eax, eax
mov ecx, 0x43ae22
cmovne ecx, eax
sub esp, 8
mov dword [esp + 4], ecx
call fcn.00432310
add esp, 8
mov eax, dword [ebx]
test eax, eax
je 0x432302
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 8]
jmp 0x43228b
Function at 0x432630
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x254
mov esi, dword [ebp + 8]
mov eax, dword [0x440014]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x43269c
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4326ce
lea eax, [ebp - 0x22c]
push 0x105
push eax
push 0x443300
call fcn.00412348
add esp, 0xc
mov esi, 0x443300
mov word [0x443508], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00412e03
mov eax, esi
add esp, 0x254
pop esi
pop ebp
ret
lea eax, [esi + 4]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x432660
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00419e69
cmp esi, 2
jne 0x4326e8
mov dword [eax], 2
jmp 0x4326ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x12
je 0x432687
call fcn.00419e69
mov dword [eax], 2
jmp 0x432687
mov dword [eax], 9
xor esi, esi
jmp 0x432687
Function at 0x4010d0
Capabilities:
Get process heap force flags
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop

Function at 0x401140
Capabilities:
Write file on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
mov eax, 0x203c
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
call fcn.00401048
sub esp, eax
mov eax, dword [ecx]
lea esi, [ebp - 0x2018]
add ecx, 4
mov dword [ebp - 0x201c], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x2000
mov dword [esp + 8], esi
mov dword [esp], 6
mov dword [esp + 4], 0
call dword [sym.imp.ucrtbase.dll___stdio_common_vsprintf]
test eax, eax
jle 0x4011dc
mov ebx, eax
mov dword [esp], 0xfffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push edx
lea edx, [ebp - 0x201c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov eax, dword [ebp - 0x201c]
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219