joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52a740
Capabilities:
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
sub eax, 2
je 0x52a7f6
dec eax
je 0x52a7a6
dec eax
jne 0x52a8a9
movzx eax, byte [ebp - 8]
mov cl, byte [esi + edx*4 + 0x18]
xor cl, byte [eax + 0x563370]
movzx eax, byte [ebp - 7]
mov bl, byte [eax + 0x563270]
movzx eax, byte [ebp - 6]
xor bl, byte [esi + edx*4 + 0x19]
mov ch, byte [eax + 0x563270]
movzx eax, byte [ebp - 5]
xor ch, byte [esi + edx*4 + 0x1a]
mov bh, byte [eax + 0x563370]
xor bh, byte [esi + edx*4 + 0x1b]
jmp 0x52a7b2
mov bh, byte [ebp - 5]
mov ch, byte [ebp - 6]
mov bl, byte [ebp - 7]
mov cl, byte [ebp - 8]
movzx eax, cl
mov cl, byte [esi + edx*4 + 0x10]
xor cl, byte [eax + 0x563370]
movzx eax, bl
mov byte [ebp - 1], cl
mov bl, byte [eax + 0x563370]
xor bl, byte [esi + edx*4 + 0x11]
movzx eax, ch
mov al, byte [eax + 0x563270]
xor al, byte [esi + edx*4 + 0x12]
mov byte [ebp - 2], al
movzx eax, bh
mov bh, byte [ebp - 2]
mov al, byte [eax + 0x563270]
xor al, byte [esi + edx*4 + 0x13]
mov byte [ebp + 0x17], al
mov al, cl
jmp 0x52a805
mov al, byte [ebp - 5]
mov bh, byte [ebp - 6]
mov bl, byte [ebp - 7]
mov byte [ebp + 0x17], al
mov al, byte [ebp - 8]
movzx ecx, byte [esi + edx*4 + 8]
movzx eax, al
movzx eax, byte [eax + 0x563270]
xor ecx, eax
movzx eax, byte [esi + edx*4]
movzx ecx, byte [ecx + 0x563270]
xor ecx, eax
movzx eax, byte [ecx + 0x563370]
mov byte [ebp - 8], al
movzx eax, bl
movzx ecx, byte [eax + 0x563370]
movzx eax, byte [esi + edx*4 + 9]
xor ecx, eax
movzx eax, byte [esi + edx*4 + 1]
movzx ecx, byte [ecx + 0x563270]
xor ecx, eax
movzx eax, byte [ecx + 0x563270]
mov byte [ebp - 7], al
movzx eax, bh
movzx ecx, byte [eax + 0x563270]
movzx eax, byte [esi + edx*4 + 0xa]
xor ecx, eax
movzx eax, byte [esi + edx*4 + 2]
movzx ecx, byte [ecx + 0x563370]
xor ecx, eax
movzx eax, byte [ecx + 0x563370]
mov byte [ebp - 6], al
movzx eax, byte [ebp + 0x17]
movzx ecx, byte [eax + 0x563370]
movzx eax, byte [esi + edx*4 + 0xb]
xor ecx, eax
movzx eax, byte [esi + edx*4 + 3]
movzx ecx, byte [ecx + 0x563370]
xor ecx, eax
movzx eax, byte [ecx + 0x563270]
mov byte [ebp - 5], al
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0052a8c0
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52a900
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
push edi
mov edi, 0x563250
mov dword [ebp - 8], eax
sub edi, ecx
add eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0xc], eax
xor bl, bl
mov dword [ebp - 4], 8
mov byte [eax], 0
lea esp, [esp]
movzx eax, byte [edi + esi]
push 0x14d
push eax
movzx eax, byte [esi]
push eax
call fcn.0052a650
xor bl, al
lea esi, [esi + 1]
mov eax, dword [ebp - 0xc]
add esp, 0xc
dec dword [ebp - 4]
mov byte [eax], bl
jne 0x52a930
mov eax, dword [ebp - 8]
add edi, 8
mov ecx, dword [ebp + 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 4
jl 0x52a918
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x52b6a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, 4
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, eax
push edi
mov edi, dword [ebp + 8]
mov ebx, esi
sub edi, eax
sub ebx, eax
lea esp, [esp]
mov eax, dword [edi + ecx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [ebx + ecx - 4], eax
dec edx
jne 0x52b6c0
mov ecx, dword [ebp + 0x14]
push ecx
push esi
push esi
mov eax, dword [ecx + 0x2140]
lea eax, [eax + eax*2]
shl eax, 5
mov eax, dword [eax + 0x5bcca0]
call eax
mov ebx, eax
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov edx, 4
mov edi, eax
sub edi, esi
jmp 0x52b700
mov ecx, dword [edi + esi]
lea esi, [esi + 4]
xor dword [esi - 4], ecx
dec edx
jne 0x52b700
push eax
call fcn.0052e2a0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x52cce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, 4
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, eax
push edi
mov edi, dword [ebp + 8]
mov ebx, esi
sub edi, eax
sub ebx, eax
lea esp, [esp]
mov eax, dword [edi + ecx]
lea ecx, [ecx + 4]
xor eax, dword [ecx - 4]
mov dword [ebx + ecx - 4], eax
dec edx
jne 0x52cd00
mov ecx, dword [ebp + 0x14]
push ecx
push esi
push esi
mov eax, dword [ecx + 0x2140]
lea eax, [eax + eax*2]
shl eax, 5
mov eax, dword [eax + 0x5bcc9c]
call eax
add esp, 0xc
test eax, eax
jne 0x52cd57
mov edi, dword [ebp + 0x10]
mov ecx, 4
mov edx, edi
sub edx, esi
lea ecx, [ecx]
mov eax, dword [edx + esi]
lea esi, [esi + 4]
xor dword [esi - 4], eax
dec ecx
jne 0x52cd40
push edi
call fcn.0052e2a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x52cf70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 0xc]
xor eax, eax
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 8], eax
mov ecx, 8
mov dword [ebp - 0xc], ebx
xor edi, edi
mov dword [ebp - 4], ecx
xor esi, esi
test edx, edx
je 0x52d02f
mov eax, dword [ebp + 0x10]
lea ecx, [ecx]
dec edx
mov dword [ebp + 0xc], edx
test eax, eax
je 0x52cfb0
call eax
mov ecx, dword [ebp - 4]
lea ecx, [ecx]
dec ecx
mov dword [ebp - 4], ecx
call fcn.00535719
mov ebx, eax
call fcn.00535719
cmp ebx, eax
jne 0x52cfd0
xor esi, 1
call fcn.00535719
cmp ebx, eax
je 0x52cfc4
call fcn.00535719
mov ebx, eax
call fcn.00535719
cmp ebx, eax
jne 0x52cfec
xor edi, 1
call fcn.00535719
cmp ebx, eax
je 0x52cfe0
cmp esi, edi
je 0x52cfb4
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add eax, eax
or eax, esi
mov dword [ebp - 8], eax
test ecx, ecx
jne 0x52cfb0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov byte [ecx], al
inc ecx
xor eax, eax
mov dword [ebp + 8], ecx
mov dword [ebp - 8], eax
mov ecx, 8
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
test edx, edx
jne 0x52cfa0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x52d0a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x55b7bc
lea eax, [ebp - 4]
push str._dev_urandom
push eax
call fcn.00534afe
add esp, 0xc
test eax, eax
je 0x52d0d8
push 0x55b7bc
lea eax, [ebp - 4]
push str._dev_random
push eax
call fcn.00534afe
add esp, 0xc
test eax, eax
jne 0x52d0f8
push 0
push 4
push 0
push dword [ebp - 4]
call fcn.005355e8
add esp, 0x10
test eax, eax
je 0x52d0fe
push dword [ebp - 4]
call fcn.00511fd3
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp - 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00534f1b
push dword [ebp - 4]
mov esi, eax
call fcn.00511fd3
add esp, 0x14
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40703f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40705f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407674
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x407080
test byte [esp + 8], 2
je 0x407080
mov dword [0x412778], 0xd
mov dword [0x41277c], 5
jmp 0x40705b
xor eax, eax
ret

Function at 0x4082ed
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ec08
cmp edx, dword [eax]
je 0x40830f
add eax, 8
inc ecx
cmp eax, 0x40ec98
jl 0x408300
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ec08]
jne 0x40843d
mov eax, dword [0x4127cc]
cmp eax, 1
je 0x408417
test eax, eax
jne 0x408340
cmp dword [0x40e9e4], 1
je 0x408417
cmp edx, 0xfc
je 0x40843d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408377
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004092c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004093b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4083ba
lea eax, [ebp - 0x1a4]
push eax
call fcn.004093b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d554
push edi
call fcn.0040adc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004092c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004092d0
lea eax, [ebp - 0xa0]
push 0x40d534
push eax
call fcn.004092d0
push dword [esi + 0x40ec0c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004092d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ad2c
add esp, 0x2c
pop edi
jmp 0x40843d
lea eax, [ebp + 8]
lea esi, [esi + 0x40ec0c]
push 0
push eax
push dword [esi]
call fcn.004093b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push edi
push 0x103
lea eax, [ebp - 0x117]
push 0
push eax
mov byte [ebp - 0x118], 0
call sub.ntdll.dll_memset
xor eax, eax
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
push 0x1c
stosb byte es:[edi], al
pop eax
mov dword [ebp - 4], 1
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40105c
push 0x84
push 0x1b
mov edx, 0x40ae18
call fcn.0040498f
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4010ea
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40107c
push 0x8003
lea ecx, [ebp - 0x14]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004027f0
test eax, eax
je 0x4010ea
xor al, al
lea edi, [ebp - 0x118]
mov ecx, 0x104
rep stosb byte es:[edi], al
lea eax, [ebp - 0x118]
lea edi, [ebp - 0x14]
call fcn.004028c5
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
jne 0x4010ea
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov word [0x42c310], ax
test ax, ax
je 0x4010ea
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x11c]
pop edi
leave
ret

Function at 0x4010f6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call sub.ntdll.dll_memset
push esi
lea eax, [ebp - 0x207]
push ebx
push eax
mov byte [ebp - 0x208], bl
call sub.ntdll.dll_memset
add esp, 0x18
inc esi
push esi
lea eax, [ebp - 0x208]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
cmp eax, ebx
je 0x401158
mov byte [eax - 1], bl
lea eax, [ebp - 0x104]
push eax
push ebx
push ebx
call fcn.004043d0
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, 0x42c318
test eax, eax
js 0x4011cd
lea eax, [ebp - 0x208]
push eax
lea ebx, [ebp - 0x104]
call fcn.004041bc
test eax, eax
je 0x4011cb
mov eax, ebx
push eax
call fcn.00404248
test eax, eax
je 0x4011cb
mov eax, ebx
push eax
call fcn.0040433f
test eax, eax
jne 0x4011b2
inc eax
mov dword [0x42c304], eax
mov dword [0x42c30c], eax
jmp 0x4011cb
push esi
lea eax, [ebp - 0x104]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [0x42c304], 1
xor ebx, ebx
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4011d2
sub eax, edx
cmp eax, ebx
jne 0x4011e8
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4013db
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x117]
push ebx
push eax
mov byte [ebp - 0x118], bl
call sub.ntdll.dll_memset
xor eax, eax
mov byte [ebp - 0x14], bl
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
push 0x1c
stosb byte es:[edi], al
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x401432
push 0x84
push 0x1b
mov edx, 0x40ae18
call fcn.0040498f
mov esi, 0x104
push esi
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4014dc
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401457
push 0x8004
lea ecx, [ebp - 0x14]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004027f0
test eax, eax
je 0x4014dc
xor al, al
lea edi, [ebp - 0x118]
mov ecx, esi
rep stosb byte es:[edi], al
lea eax, [ebp - 0x118]
lea edi, [ebp - 0x14]
call fcn.004028c5
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00404b88
mov ecx, 0x42c318
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4014bf
push ecx
lea ecx, [ebp - 0x21c]
sub eax, esi
push ecx
call fcn.00403de2
test eax, eax
je 0x4014dc
xor ebx, ebx
inc ebx
mov eax, ebx
lea esp, [ebp - 0x228]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4014e9
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push 0x11c
lea eax, [ebp - 0x158]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x158], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40157b
cmp dword [ebp - 0x154], 6
jb 0x40157b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call main
cmp eax, 0x2000
jae 0x40157b
call fcn.00401f59
test eax, eax
jne 0x40157b
push 6
push eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x40157b
lea eax, [ebp - 0x3c]
call fcn.0040219d
test eax, eax
je 0x40156d
lea edi, [ebp - 0x3c]
call fcn.004022d5
test eax, eax
je 0x401561
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
leave
ret
Function at 0x40157d
Capabilities:
Check if file exists
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
mov edi, 0x104
push edi
push 0x42c1b0
xor ebx, ebx
push ebx
call esi
call fcn.00404c43
call fcn.00403685
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.00403931
call fcn.0040291d
mov dword [0x42c2b4], eax
call fcn.004040cd
push 0x5217027e
call fcn.00402ccf
test eax, eax
jne 0x4015fe
cmp dword [0x42c2b4], ebx
jne 0x4015fe
call fcn.00402b6c
test eax, eax
jne 0x4015fe
call fcn.004016de
test eax, eax
jne 0x4016c6
call fcn.00401ae6
test eax, eax
jne 0x4016c6
call fcn.004014e9
call section..text
test eax, eax
je 0x40166c
call fcn.0040238d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call main
cmp eax, 0x2000
jbe 0x4016c6
push edi
lea eax, [ebp - 0x104]
push eax
push ebx
call esi
lea edi, [ebp - 0x104]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x40163a
lea eax, [ebp - 0x104]
mov esi, 0x4086b0
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, ebx
je 0x4016c6
lea edi, [ebp - 0x104]
call fcn.00403e41
call fcn.004011ed
jmp 0x4016c6
call fcn.004010f6
cmp dword [0x42c304], ebx
je 0x4016ac
call fcn.00401a93
call fcn.004013db
test eax, eax
jne 0x4016ac
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x4016a6
push 0x80
push 0x11
mov edx, 0x40ae04
call fcn.0040498f
push eax
call fcn.0040340d
call fcn.0040124f
cmp dword [0x42c304], ebx
je 0x4016c6
cmp dword [0x42c30c], ebx
jne 0x4016c6
call fcn.00403e62
cmp dword [0x42c308], ebx
je 0x4016d6
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40219d
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
xor ebx, ebx
push 0x3c
mov esi, eax
push ebx
push esi
mov dword [ebp - 4], ebx
call sub.ntdll.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x424]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4022cd
push edi
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x4022cd
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00402128
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x402217
mov dword [ebp - 8], 0x4086bc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x618
push 8
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4022cd
push dword [ebp - 8]
lea ecx, [ebp - 0x424]
push ecx
push 0x4086c0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x20a
push 8
call edi
push eax
call ebx
mov ebx, eax
xor eax, eax
cmp ebx, eax
je 0x4022b1
push ebx
push eax
push eax
push 0x25
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x4022b1
push 0x4086ec
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x4022b1
mov eax, dword [ebp - 0xc]
and dword [esi + 0x1c], 0
mov dword [ebp - 4], 1
mov dword [esi], 0x3c
mov dword [esi + 0xc], str.runas
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x40
jmp 0x4022cd
push dword [ebp - 0xc]
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
test ebx, ebx
je 0x4022cd
push ebx
push 0
call edi
push eax
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4022d5
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor ebx, ebx
jmp 0x4022f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x402300
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call esi
test eax, eax
je 0x4022e1
push 0xffffffffffffffff
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x38]
test eax, eax
je 0x40231a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402323
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x402328
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push 0x3c
pop edx
xor al, al
mov ecx, edx
lea edi, [ebp - 0x3c]
rep stosb byte es:[edi], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
push 8
mov dword [ebp - 0x28], eax
pop eax
mov dword [ebp - 0x3c], edx
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402369
push 0x88
push 4
mov edx, 0x40aef8
call fcn.0040498f
and dword [ebp - 8], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x38], 0x200000
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea esp, [ebp - 0x40]
pop edi
leave
ret 8
Function at 0x4027f0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push 4
xor ebx, ebx
pop edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
cmp dword [ebp + 8], esi
je 0x4028bc
cmp dword [ebp + 0xc], esi
je 0x4028bc
cmp dword [ebp + 0x10], esi
je 0x4028bc
push 0xf0000020
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x40289f
cmp dword [ebp - 8], esi
je 0x40289f
lea eax, [ebp - 4]
push eax
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40289f
cmp dword [ebp - 4], esi
je 0x4028ad
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40289f
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
je 0x40289f
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
test eax, eax
je 0x40289f
inc ebx
cmp dword [ebp - 4], esi
je 0x4028ad
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], esi
je 0x4028bc
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10

Function at 0x402a60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x402aa9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x402abf
push 0x1388
call ebx
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push esi
call edi
mov dword [ebp - 4], eax
cmp eax, esi
je 0x402abf
push 4
push ebx
push 9
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwSetInformationThread]
push dword [ebp - 4]
call fcn.00402d6f
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4