joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f590
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5cd9a0]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x28]
movq qword [ebp - 0x28], xmm0
call fcn.004a2710
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.004a2710
xorps xmm0, xmm0
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x10]
movq qword [ebp - 0x10], xmm0
call fcn.004a2710
push 0
push 0
lea eax, [ebp - 0x10]
push 0x23
push eax
call fcn.004c9140
add esp, 0x10
test eax, eax
je 0x46f6ad
push 0x50f3dc
lea ecx, [ebp - 0x10]
call fcn.004a29c0
test eax, eax
je 0x46f6ad
push 0
lea ecx, [ebp - 0x10]
call fcn.004a2830
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46f636
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46f6ad
push 0x50f3f0
lea ecx, [ebp - 0x10]
call fcn.004a29c0
test eax, eax
je 0x46f6ad
push 0
lea ecx, [ebp - 0x10]
call fcn.004a2830
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x46f669
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x46f6ad
push 0x50f408
lea ecx, [ebp - 0x10]
call fcn.004a29c0
test eax, eax
je 0x46f6ad
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.004a2ee0
lea ecx, [ebp - 0x10]
call fcn.004a2730
push str.service.log
lea ecx, [ebp - 0x1c]
call fcn.004a29c0
test eax, eax
je 0x46f6b5
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004a2ee0
jmp 0x46f6b5
lea ecx, [ebp - 0x10]
call fcn.004a2730
lea ecx, [ebp - 0x1c]
call fcn.004a2730
push 1
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.004a2830
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x28]
call fcn.004a2730
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret
Function at 0x476d20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5cd9a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x3c
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.004cf68b
add esp, 0xc
mov dword [ebp - 0x38], str._start
xorps xmm0, xmm0
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x10]
movq qword [ebp - 0x10], xmm0
call fcn.004a2710
lea eax, [ebp - 0x10]
push eax
push str.RvControlSvc.exe
push 2
call fcn.004c7f20
add esp, 0xc
test eax, eax
jne 0x476d7a
xor bl, bl
jmp 0x476dee
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
call fcn.004a2da0
test byte [0x5d1200], 1
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
je 0x476ddf
lea ecx, [ebp - 0x10]
call fcn.004a2d80
push eax
push 0x515100
push 0x516470
push 0x5bd1b0
call fcn.004779b0
add esp, 0x10
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne bl
lea ecx, [ebp - 0x10]
call fcn.004a2730
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret

Function at 0x478f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5cd9a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov byte [eax], 0
mov ecx, dword [ebp + 0x14]
mov dword [edx], 0xffffffff
mov dword [ebp - 0x10], eax
push edi
mov dword [ecx], 0
mov edi, 0xbfd80
mov eax, dword [esi + 0x24]
mov dword [ebp - 0xc], edx
add eax, 0xffffffe7
xor edx, edx
mov ebx, dword [ebp + 8]
div edi
mov dword [ebp - 8], ecx
mov edi, eax
shl edi, 7
cmp edx, 0x80
jbe 0x478fe7
lea ecx, [edx - 0x80]
mov eax, 0xaad56003
mul ecx
mov ecx, dword [ebp - 8]
shr edx, 0xc
add edi, edx
cmp ebx, edi
jb 0x478ff6
mov dword [ecx], 1
jmp 0x47908a
mov edi, ebx
shr edi, 7
cmp dword [esi + 0x44], edi
je 0x479065
imul eax, edi, 0xbfd80
push 0
push 0
add eax, 0x19
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x479037
pop edi
mov dword [esi + 0x28], 0xa
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 0x10
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x80
lea eax, [esi + 0x48]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4790a2
cmp dword [ebp - 8], 0x80
jne 0x4790a2
mov dword [esi + 0x44], edi
and ebx, 0x7f
imul eax, edi, 0xbfd80
imul ecx, ebx, 0x17fa
add ecx, 0x99
add eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ebx + esi + 0x48]
mov byte [ecx], al
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
mov dword [esi + 0x28], 5
xor ecx, ebp
pop esi
pop ebx
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 0x10
Function at 0x479430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5cd9a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
push 0x17fa
push 0
push eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
call fcn.004cf68b
mov dword [ebx], 0xffffffff
add esp, 0xc
mov dword [edi], 0
mov ebx, dword [esi + 0x20]
xor edx, edx
mov dword [edi], 0
mov ecx, 0xbfd80
mov eax, dword [esi + 0x24]
add eax, 0xffffffe7
div ecx
mov edi, eax
shl edi, 7
cmp edx, 0x80
jbe 0x4794a7
lea ecx, [edx - 0x80]
mov eax, 0xaad56003
mul ecx
shr edx, 0xc
add edi, edx
cmp ebx, edi
jae 0x4795f0
mov edi, ebx
shr edi, 7
cmp dword [esi + 0x44], edi
je 0x479502
imul eax, edi, 0xbfd80
push 0
push 0
add eax, 0x19
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x479552
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x80
lea eax, [esi + 0x48]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x479535
cmp dword [ebp - 8], 0x80
jne 0x479535
mov dword [esi + 0x44], edi
and ebx, 0x7f
imul eax, edi, 0xbfd80
mov edi, dword [ebp - 0x10]
imul ecx, ebx, 0x17fa
add ecx, 0x99
add ecx, eax
cmp dword [edi], 0
mov al, byte [ebx + esi + 0x48]
jne 0x4795f9
cmp al, 1
je 0x47956f
inc dword [esi + 0x20]
jmp 0x479473
mov eax, 5
pop edi
mov dword [esi + 0x28], eax
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0xa
pop edi
mov dword [esi + 0x28], eax
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x47959d
pop edi
mov dword [esi + 0x28], 0xa
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 0xc
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x17fa
push dword [ebp - 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4795d4
cmp dword [ebp - 0xc], 0x17fa
jne 0x4795d4
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0x20]
mov dword [ecx], eax
inc dword [esi + 0x20]
jmp 0x4795f9
pop edi
mov dword [esi + 0x28], 5
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x10]
mov dword [eax], 1
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4c68c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5cd9a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
and eax, 0xff000000
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ecx
cmp eax, 0x8000000
jne 0x4c6a9b
test ecx, ecx
je 0x4c6a9b
mov ecx, ebx
call fcn.004c6b80
test eax, eax
je 0x4c6a9b
push esi
push edi
mov ecx, ebx
call fcn.004c6d80
mov esi, eax
lea ecx, [ebp - 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
movlpd qword [ebp - 0xc], xmm0
call fcn.004c6490
lea ecx, [esi + esi]
push ecx
lea ecx, [ebp - 0xc]
call fcn.004c64b0
test eax, eax
je 0x4c6a7e
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4c6a7e
mov eax, dword [ebp - 0x10]
lea edi, [ebx + esi]
mov dword [ebp - 0x1c], edi
mov eax, dword [eax]
test esi, esi
je 0x4c6965
push esi
test eax, eax
je 0x4c6a61
push eax
push ebx
call fcn.004cf6a9
add esp, 0xc
push esi
push edi
call fcn.004ccea0
add esp, 8
test eax, eax
je 0x4c6a7e
xor ecx, ecx
test esi, esi
je 0x4c6a2e
cmp esi, 0x40
jb 0x4c6a19
lea eax, [edi - 1]
lea edx, [ebx - 1]
add eax, esi
add edx, esi
cmp ebx, eax
ja 0x4c69a0
cmp edx, edi
jae 0x4c6a19
mov eax, esi
mov edx, esi
and eax, 0x3f
mov esi, edi
sub edx, eax
sub esi, ebx
mov dword [ebp - 0x10], esi
lea eax, [ebx + 0x10]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
lea edx, [edi + 0x30]
mov edi, dword [ebp - 0x10]
nop
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x40
lea edx, [edx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [edx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [ebp - 0x14]
jb 0x4c69c0
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
cmp ecx, esi
jae 0x4c6a2e
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x4c6a20
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.004cb2b0
test eax, eax
je 0x4c6a7e
lea ecx, [ebp - 0xc]
call fcn.004c64a0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 8
push 0
push ebx
call fcn.004cf68b
add esp, 0xc
call dword [0x4eac1c]
mov dword [eax], 0x16
call dword [0x4eac18]
lea ecx, [ebp - 0xc]
call fcn.004c64a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.004ce1ec
mov esp, ebp
pop ebp
ret 8
Function at 0x4c6db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push esi
test ebx, ebx
je 0x4c6ecc
mov ecx, ebx
call fcn.004c6690
mov edx, eax
test edx, edx
je 0x4c6ecc
test dl, 3
jne 0x4c6ecc
mov esi, dword [ebx]
shr edx, 1
mov dword [ebp - 0xc], esi
test esi, esi
je 0x4c6ecc
xor ecx, ecx
push edi
lea edi, [esi + edx]
test edx, edx
je 0x4c6ea3
cmp edx, 0x40
jb 0x4c6e8c
lea eax, [edi - 1]
add eax, edx
cmp esi, eax
ja 0x4c6e18
lea eax, [esi - 1]
add eax, edx
cmp eax, edi
jae 0x4c6e8c
mov eax, edx
mov ebx, edi
and eax, 0xffffffc0
sub ebx, esi
mov dword [ebp - 4], ebx
lea ebx, [edi + 0x30]
mov dword [ebp - 8], eax
lea eax, [esi + 0x10]
mov esi, dword [ebp - 4]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x40
lea ebx, [ebx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ebx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [ebp - 8]
jb 0x4c6e30
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp ecx, edx
jae 0x4c6ea3
lea eax, [ecx + esi]
sub edi, esi
mov esi, edx
sub esi, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x4c6e95
push 0
push edx
mov ecx, ebx
call fcn.004c66c0
pop edi
test eax, eax
je 0x4c6ecc
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.004c6bb0
test eax, eax
je 0x4c6ecc
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4c9710
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov edi, ecx
call fcn.004c9930
test eax, eax
je 0x4c97d5
mov esi, dword [ebp - 8]
test esi, esi
je 0x4c97d5
xor edx, edx
lea ecx, [edi + 0x54]
mov eax, 1
lock cmpxchg dword [ecx], edx
cmp eax, 1
jne 0x4c97d5
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
lea ebx, [edi + 8]
setne byte [ebp - 1]
test ebx, ebx
je 0x4c97ca
lea esi, [ebx + 0x24]
push esi
call fcn.004051a0
add esp, 4
test eax, eax
jne 0x4c97ca
lea ecx, [ebx + 8]
call fcn.00406040
test eax, eax
jne 0x4c979d
push 1
push esi
call fcn.004051e0
movzx eax, byte [ebp - 1]
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebx + 8]
mov edi, eax
call fcn.00406570
test eax, eax
jne 0x4c97c3
push 1
push esi
call fcn.004051e0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [ebp - 1]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4cf7f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4cf818
or eax, 0xffffffff
jmp 0x4cf8f8
mov eax, dword [ebp - 0xc]
add eax, 1
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cf8fe
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x4cf852
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
jge 0x4cf879
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + eax*4]
push edx
push 0
call fcn.004cf790
add esp, 8
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [edx + ecx*4], eax
jmp 0x4cf849
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [ecx + eax*4], 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00464ad0
add esp, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
jmp 0x4cf8b5
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jge 0x4cf8e3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
cmp dword [edx + ecx*4], 0
je 0x4cf8e3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004cf101
add esp, 4
jmp 0x4cf8ac
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call fcn.004cf101
add esp, 4
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10001e80
Capabilities:
Create directory
Encode data using base64
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
Function at 0x10002c70
Capabilities:
Create directory
Encode data using base64
Encode data using xor
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100021e0

Function at 0x10002c80
Capabilities:
Create directory
Encode data using base64
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
Function at 0x10008fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1001f6e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x908
mov dword [ebp - 0x1c], eax
call fcn.1000f5ac
pushfd
test byte [0x10009044], 0x31
Function at 0x1000d498
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001f6e8]
jne 0x1000d4a2
repz ret
jmp fcn.1001379a

Function at 0x100197e5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001f6e8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1001067b
and dword [ebp - 0x14], 0
cmp dword [0x1002170c], 0
mov dword [ebp - 0x18], eax
jne 0x10019898
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10019940
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10019940
mov esi, dword [0x1001f6c0]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1002170c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10021710], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10021714], eax
call edi
push eax
call esi
mov dword [0x1002171c], eax
test eax, eax
je 0x10019898
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10021718], eax
mov eax, dword [0x10021718]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x1001f6c4]
cmp eax, ecx
je 0x100198f1
cmp dword [0x1002171c], ecx
je 0x100198f1
push eax
call esi
push dword [0x1002171c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100198f1
test ebx, ebx
je 0x100198f1
call edi
test eax, eax
je 0x100198e8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100198e8
test byte [ebp - 8], 1
jne 0x100198f1
or dword [ebp + 0x10], 0x200000
jmp 0x10019924
mov eax, dword [0x10021710]
cmp eax, dword [ebp - 0x18]
je 0x10019924
push eax
call esi
test eax, eax
je 0x10019924
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10019924
mov eax, dword [0x10021714]
cmp eax, dword [ebp - 0x18]
je 0x10019924
push eax
call esi
test eax, eax
je 0x10019924
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1002170c]
call esi
test eax, eax
je 0x10019940
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10019942
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000d498
leave
ret
Function at 0x40155f
Capabilities:
Get common file path
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [0x429fe4], 0
je 0x4015a6
cmp dword [0x429fe0], 0
je 0x4015a6
cmp dword [0x429fdc], 0
je 0x4015a6
cmp dword [0x429fd8], 0
je 0x4015a6
cmp dword [0x429fd4], 0
je 0x4015a6
cmp dword [0x429fd0], 0
je 0x4015a6
xor eax, eax
inc eax
jmp 0x4016e8
push ebx
push 0x104
lea eax, [ebp - 0x20c]
xor ebx, ebx
push eax
mov byte [ebp - 0x20c], bl
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4016e5
push esi
push edi
push str.IsWow64Process
push str.kernel32
mov byte [ebp - 0x108], bl
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov esi, eax
test esi, esi
je 0x401600
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 4], ebx
je 0x40161f
push 7
pop ecx
mov esi, str.X:WindowsSysWOW64_ntdll.dll
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x401644
mov al, byte [ebp + ebx - 0x20c]
mov byte [ebp + ebx - 0x108], al
inc ebx
test al, al
jne 0x40161f
push 0x407254
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov al, byte [ebp - 0x20c]
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.RtlInitUnicodeString
push esi
call edi
push str.ZwOpenFile
push esi
mov dword [0x429fe4], eax
call edi
push str.ZwCreateSection
push esi
mov dword [0x429fe0], eax
call edi
push str.ZwMapViewOfSection
push esi
mov dword [0x429fdc], eax
call edi
push str.NtUnmapViewOfSection
push esi
mov dword [0x429fd8], eax
call edi
push 0x4072c0
push esi
mov dword [0x429fd4], eax
call edi
cmp dword [0x429fe4], 0
pop edi
mov dword [0x429fd0], eax
pop esi
je 0x4016e5
cmp dword [0x429fe0], 0
je 0x4016e5
cmp dword [0x429fdc], 0
je 0x4016e5
cmp dword [0x429fd8], 0
je 0x4016e5
cmp dword [0x429fd4], 0
je 0x4016e5
test eax, eax
je 0x4016e5
xor eax, eax
inc eax
jmp 0x4016e7
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401a46
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0x5a4d
push ebx
push esi
push edi
cmp word [0x409260], ax
je 0x401a67
mov esi, dword [ebp - 4]
xor edi, edi
jmp 0x401b51
mov ebx, dword [0x40929c]
cmp dword [ebx + 0x409260], 0x4550
jne 0x401a5d
mov eax, 0x8664
cmp word [ebx + 0x409264], ax
jne 0x401a5d
mov edi, dword [ebx + 0x4092b0]
mov ecx, edi
mov dword [ebp - 0x10], edi
call fcn.00404f83
push 0x40
push 0x3000
push edi
xor edi, edi
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cdq
mov ecx, eax
mov dword [ebp - 0xc], eax
or ecx, edx
mov dword [ebp - 8], edx
je 0x401b51
mov eax, dword [ebp + 8]
mov edx, 0x409260
mov ecx, dword [ebx + 0x409288]
push dword [ebx + 0x4092b4]
mov dword [eax], ecx
mov ecx, esi
call fcn.0040550e
mov eax, dword [0x40929c]
pop ecx
xor ecx, ecx
cmp cx, word [ebx + 0x409266]
jae 0x401b1d
lea ecx, [eax + 0x40937c]
mov dword [ebp - 4], ecx
mov edx, dword [ecx]
push dword [ecx - 4]
mov ecx, dword [ecx - 8]
add edx, 0x409260
add ecx, esi
call fcn.0040550e
movzx eax, word [ebx + 0x409266]
pop ecx
mov ecx, dword [ebp - 4]
add ecx, 0x28
inc edi
mov dword [ebp - 4], ecx
cmp edi, eax
jb 0x401af2
mov ebx, dword [ebp - 8]
mov ecx, esi
mov edi, dword [ebp - 0xc]
push ebx
push edi
call fcn.004017b2
mov ecx, esi
call fcn.004016ec
push dword [ebp - 0x10]
mov edx, esi
mov ecx, edi
call fcn.0040550e
mov dword [0x429fec], edi
add esp, 0xc
xor edi, edi
mov dword [0x429ff0], ebx
inc edi
test esi, esi
je 0x401b5c
mov ecx, esi
call fcn.00404f94
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401fd2
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.00401eb8
test eax, eax
jne 0x401ff2
xor eax, eax
jmp 0x402049
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ecx, dword [ebp - 4]
test eax, eax
jne 0x402012
call fcn.00401cd1
jmp 0x401fee
mov eax, dword [ebp - 0xc]
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call fcn.00401f4f
test eax, eax
je 0x40203f
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
call fcn.00401cd1
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret