joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404dc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.00404a90
add esp, 0xc
mov dword [0x416228], eax
test eax, eax
jne 0x404dee
call fcn.00404740
test eax, eax
mov dword [0x416228], eax
je 0x404e1b
jle 0x404e04
push 0x30
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402ed0
add esp, 0x10
call fcn.00404c60
mov eax, dword [0x416228]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00404c60
test eax, eax
mov dword [0x416228], eax
je 0x404e42
push 0x30
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402ed0
mov eax, dword [0x416228]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40cc00
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x417468]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40cc1f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x417464], 1
mov byte [0x417460], bl
jne 0x40cc79
mov ecx, dword [0x419d28]
test ecx, ecx
je 0x40cc67
mov esi, dword [0x419d24]
sub esi, 4
cmp esi, ecx
jb 0x40cc67
mov eax, dword [esi]
test eax, eax
je 0x40cc60
call eax
mov ecx, dword [0x419d28]
sub esi, 4
cmp esi, ecx
jae 0x40cc52
push 0x41301c
push 0x413014
call fcn.0040ccb0
add esp, 8
push 0x413024
push 0x413020
call fcn.0040ccb0
add esp, 8
test ebx, ebx
jne 0x40cca0
push ebp
mov dword [0x417468], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x40e530
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x417588]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x40e572
call edi
mov esi, eax
test esi, esi
je 0x40e55c
mov eax, 1
jmp 0x40e56d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40e67f
mov eax, 2
mov dword [0x417588], eax
cmp eax, 1
jne 0x40e612
test esi, esi
jne 0x40e58b
call edi
mov esi, eax
test esi, esi
je 0x40e67f
cmp word [esi], 0
mov eax, esi
je 0x40e5a5
add eax, 2
cmp word [eax], 0
jne 0x40e593
add eax, 2
cmp word [eax], 0
jne 0x40e593
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x40e604
push edi
call fcn.0040ba70
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40e604
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x40e5f6
push ebx
call fcn.0040bb20
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40e67f
test ebx, ebx
jne 0x40e623
call ebp
mov ebx, eax
test ebx, ebx
je 0x40e67f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40e63b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e62b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40e62b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.0040ba70
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40e65d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x401100
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x41c650
push 0x40b8f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x41e028]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, edx
xor edi, edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
jne 0x40115d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
jmp 0x4011df
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x401150
lea edx, [ebp - 0x1c]
push edx
push 1
push 2
push edi
push 0xf01ff
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x401150
push edi
mov ecx, dword [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x401150
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
or esi, 0x400
push esi
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x401150
mov dword [ebp - 0x28], 1
mov dword [ebp - 4], 0xfffffffe
call fcn.00401204
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x401b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x41c5a0
push 0x40b8f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x41e028]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov edi, ecx
or ebx, 0xffffffff
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x401ba0
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x401ba0
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401ba0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.00401bc7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x41c580
push 0x40b8f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x41e028]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
or eax, 0xffffffff
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 2
push 0x40000000
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
jne 0x401c60
push 0
push 0
push 1
push 0
push 2
push 0x40000000
push ebx
call edi
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, 0xffffffff
je 0x401c93
push 0
push 0
mov edi, dword [ebp + 0xc]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, edi
jne 0x401c93
push 0
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401c93
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 4], 0xfffffffe
call fcn.00401cb7
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401d80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov esi, eax
test edi, edi
je 0x401f35
test esi, esi
je 0x401f35
cmp dword [ebp + 0xc], 0
je 0x401f35
mov ebx, dword [ebp + 8]
push 2
mov eax, ebx
call fcn.00401cf0
mov ecx, dword [ebp + 0xc]
add esp, 4
cmp dword [ecx], eax
jl 0x401f35
mov eax, 0x55555556
imul ebx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea edx, [ecx*4]
mov eax, 0x6bca1af3
imul edx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
mov eax, 0x13
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
js 0x401eb0
cmp dword [ebp - 8], ebx
jne 0x401e25
mov edx, ebx
imul edx, edx, 0x4c
lea eax, [ecx*4]
sub eax, edx
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0xc], eax
test eax, eax
jle 0x401e98
mov edx, eax
jmp 0x401e30
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi], al
shl ecx, 6
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
shl ecx, 6
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x1a
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
shr ecx, 0x14
and ecx, 0x3f
mov byte [esi + 2], al
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi + 3], cl
add edi, 3
add esi, 4
dec edx
jne 0x401e30
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
lea edx, [edx + eax*4]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 8]
inc edx
mov dword [ebp - 8], edx
cmp edx, ebx
jle 0x401e06
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 8]
sub ecx, eax
je 0x401f21
lea edx, [ecx + 1]
test edx, edx
je 0x401f21
xor eax, eax
test ecx, ecx
jle 0x401ecb
movzx eax, byte [edi]
inc edi
shl eax, 8
cmp ecx, 1
jle 0x401ed9
movzx ebx, byte [edi]
or eax, ebx
inc edi
shl eax, 8
cmp ecx, 2
jle 0x401ee6
movzx ecx, byte [edi]
or eax, ecx
shl eax, 8
test edx, edx
jle 0x401f04
mov ecx, edx
nop
mov edi, eax
shr edi, 0x1a
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__]
mov byte [esi], bl
inc esi
shl eax, 6
dec ecx
jne 0x401ef0
add dword [ebp - 4], edx
mov edi, 4
sub edi, edx
test edi, edi
jle 0x401f1e
push edi
push 0x3d
push esi
call fcn.0040e850
add esp, 0xc
add dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402100
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x41e028]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xff
lea eax, [ebp - 0x103]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x104], 0
call fcn.0040e850
add esp, 0xc
xor eax, eax
jmp 0x402140
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jb 0x402140
xor eax, eax
xor esi, esi
mov ecx, eax
and ecx, 7
movzx edx, byte [ecx + edi]
movzx ecx, byte [ebp + eax - 0x104]
add esi, edx
add esi, ecx
and esi, 0xff
mov dl, byte [ebp + esi - 0x104]
xor byte [ebp + eax - 0x104], dl
mov cl, byte [ebp + eax - 0x104]
xor byte [ebp + esi - 0x104], cl
mov cl, byte [ebp + esi - 0x104]
xor byte [ebp + eax - 0x104], cl
inc eax
cmp eax, 0x100
jb 0x402153
mov ecx, ebx
xor eax, eax
xor edx, edx
xor edi, edi
sub ecx, 0x420370
mov dword [ebp - 0x108], ecx
lea esi, [edx + 1]
and esi, 0xff
movzx ecx, byte [ebp + esi - 0x104]
add ecx, edi
and ecx, 0xff
movzx edx, byte [ebp + ecx - 0x104]
xor byte [ebp + esi - 0x104], dl
mov dl, byte [ebp + esi - 0x104]
xor byte [ebp + ecx - 0x104], dl
mov dl, byte [ebp + ecx - 0x104]
xor byte [ebp + esi - 0x104], dl
movzx edi, byte [ebp + ecx - 0x104]
movzx edx, byte [ebp + esi - 0x104]
add edx, edi
mov edi, dword [ebp - 0x108]
and edx, 0xff
movzx edx, byte [ebp + edx - 0x104]
xor dl, byte [edi + eax + 0x420370]
inc esi
mov byte [eax + 0x420370], dl
and esi, 0xff
movzx edx, byte [ebp + esi - 0x104]
add edx, ecx
and edx, 0xff
movzx ecx, byte [ebp + edx - 0x104]
xor byte [ebp + esi - 0x104], cl
mov cl, byte [ebp + esi - 0x104]
xor byte [ebp + edx - 0x104], cl
mov cl, byte [ebp + edx - 0x104]
xor byte [ebp + esi - 0x104], cl
movzx edi, byte [ebp + edx - 0x104]
movzx ecx, byte [ebp + esi - 0x104]
add ecx, edi
and ecx, 0xff
movzx ecx, byte [ebp + ecx - 0x104]
xor cl, byte [ebx + eax + 1]
inc esi
mov byte [eax + 0x420371], cl
and esi, 0xff
movzx ecx, byte [ebp + esi - 0x104]
add ecx, edx
and ecx, 0xff
movzx edx, byte [ebp + ecx - 0x104]
xor byte [ebp + esi - 0x104], dl
mov dl, byte [ebp + esi - 0x104]
xor byte [ebp + ecx - 0x104], dl
mov dl, byte [ebp + ecx - 0x104]
xor byte [ebp + esi - 0x104], dl
movzx edi, byte [ebp + ecx - 0x104]
movzx edx, byte [ebp + esi - 0x104]
add edx, edi
and edx, 0xff
movzx edx, byte [ebp + edx - 0x104]
xor dl, byte [ebx + eax + 2]
add eax, 4
mov byte [eax + 0x42036e], dl
lea edx, [esi + 1]
and edx, 0xff
movzx edi, byte [ebp + edx - 0x104]
add edi, ecx
and edi, 0xff
movzx ecx, byte [ebp + edi - 0x104]
xor byte [ebp + edx - 0x104], cl
mov cl, byte [ebp + edx - 0x104]
xor byte [ebp + edi - 0x104], cl
mov cl, byte [ebp + edi - 0x104]
xor byte [ebp + edx - 0x104], cl
movzx ecx, byte [ebp + edx - 0x104]
movzx esi, byte [ebp + edi - 0x104]
add ecx, esi
and ecx, 0xff
movzx ecx, byte [ebp + ecx - 0x104]
xor cl, byte [ebx + eax - 1]
mov byte [eax + 0x42036f], cl
cmp eax, 0x204
jb 0x4021b4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040942c
mov esp, ebp
pop ebp
ret
Function at 0x402390
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x41e028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push 0xff
mov ebx, ecx
lea ecx, [ebp - 0x103]
push 0
push ecx
mov dword [ebp - 0x108], eax
mov byte [ebp - 0x104], 0
call fcn.0040e850
add esp, 0xc
xor eax, eax
nop
mov byte [ebp + eax - 0x104], al
inc eax
cmp eax, 0x100
jb 0x4023d0
xor ecx, ecx
xor esi, esi
xor edx, edx
mov eax, ecx
div ebx
mov eax, dword [ebp - 0x108]
inc ecx
movzx edx, byte [edx + eax]
movzx eax, byte [ebp + ecx - 0x105]
add esi, edx
add esi, eax
and esi, 0xff
mov dl, byte [ebp + esi - 0x104]
xor byte [ebp + ecx - 0x105], dl
mov al, byte [ebp + ecx - 0x105]
xor byte [ebp + esi - 0x104], al
mov al, byte [ebp + esi - 0x104]
xor byte [ebp + ecx - 0x105], al
cmp ecx, 0x100
jb 0x4023e3
xor eax, eax
xor ecx, ecx
xor esi, esi
cmp dword [ebp + 8], eax
jbe 0x4024bb
jmp 0x402450
inc ecx
and ecx, 0xff
movzx edx, byte [ebp + ecx - 0x104]
add esi, edx
and esi, 0xff
movzx edx, byte [ebp + esi - 0x104]
xor byte [ebp + ecx - 0x104], dl
mov dl, byte [ebp + ecx - 0x104]
xor byte [ebp + esi - 0x104], dl
mov dl, byte [ebp + esi - 0x104]
xor byte [ebp + ecx - 0x104], dl
movzx edx, byte [ebp + ecx - 0x104]
movzx ebx, byte [ebp + esi - 0x104]
add edx, ebx
and edx, 0xff
movzx edx, byte [ebp + edx - 0x104]
xor byte [edi + eax], dl
inc eax
cmp eax, dword [ebp + 8]
jb 0x402450
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040942c
mov esp, ebp
pop ebp
ret
Function at 0x4024d0
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4024f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
push esi
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x8004
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x402530
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 8]
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
push 0
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x40256d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
push 0
lea eax, [ebp - 0xc]
push eax
push ecx
push 2
push edx
mov dword [ebp - 0xc], 0x14
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 8]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x402700
Capabilities:
Check os version
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x41e028]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x420294]
test eax, eax
jne 0x402843
push 4
call fcn.00409b7c
push 0x98
mov dword [0x420294], eax
mov dword [eax], 0
lea eax, [ebp - 0xd0]
push 0
push eax
call fcn.0040e850
add esp, 0x10
lea ecx, [ebp - 0xd4]
push ecx
mov dword [ebp - 0xd4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xd0], 6
jb 0x4027b2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea edx, [ebp - 0xdc]
push edx
push 4
mov dword [ebp - 0xdc], 0
call esi
lea eax, [ebp - 0xe0]
push eax
mov dword [ebp - 0xe0], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call esi
mov edx, dword [ebp - 0xdc]
xor ecx, ecx
cmp edx, dword [ebp - 0xe0]
pop esi
jmp 0x402839
push 0x31
lea eax, [ebp - 0x37]
push 0
push eax
mov byte [ebp - 0x38], 0
call fcn.0040e850
add esp, 0xc
lea ecx, [ebp - 0xe0]
push ecx
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0xe0], 0x31
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 0x38]
push eax
call fcn.0041567a
add esp, 4
mov dword [ebp - 0xdc], 0x74737973
mov word [ebp - 0xd8], 0x6d65
mov byte [ebp - 0xd6], 0
lea ecx, [ebp - 0xdc]
lea eax, [ebp - 0x38]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402830
test dl, dl
je 0x40282c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402830
add eax, 2
add ecx, 2
test dl, dl
jne 0x402810
xor eax, eax
jmp 0x402835
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
mov eax, dword [0x420294]
sete cl
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [eax]
xor ecx, ebp
call fcn.0040942c
mov esp, ebp
pop ebp
ret

Function at 0x402c50
Capabilities:
Create thread
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.00407c90
mov eax, dword [0x420840]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push eax
call ebx
test eax, eax
je 0x402cc2
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x402d30
push 0
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402c90
push eax
call edi
push 0
push 0
push 0
push 0x402be0
push 0
push 0
call esi
test eax, eax
je 0x402cb0
push eax
call edi
jmp 0x402cb0
mov ecx, dword [0x420840]
push 0x7530
push ecx
call ebx
test eax, eax
jne 0x402cb0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403ca0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esi + 8]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x403cb6
push eax
call dword [0x420708]
mov dword [esi + 8], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x403cc7
push eax
call dword [0x420708]
mov dword [esi + 4], edi
mov eax, dword [esi]
cmp eax, edi
je 0x403cd6
push eax
call dword [0x420708]
mov dword [esi], edi
test byte [0x41f4b4], 1
jne 0x403d09
mov al, byte [0x41f4b5]
rol al, 4
xor al, 0xaa
mov byte [0x41f4b5], al
je 0x403d02
mov ecx, 0x41f4b5
mov al, byte [ecx + 1]
inc ecx
rol al, 4
xor al, 0xaa
mov byte [ecx], al
jne 0x403cf5
or byte [0x41f4b4], 1
push edi
push edi
push edi
push edi
push 0x41f4b5
call dword [0x420700]
mov dword [esi], eax
cmp eax, edi
je 0x403db2
push 4
lea edi, [esi + 0xc]
push edi
push 2
lea ebx, [esi + 0x10]
push eax
mov dword [edi], 0x7530
mov dword [ebx], 0x2710
mov dword [esi + 0x14], 0x2710
call dword [0x420704]
mov ecx, dword [esi]
push 4
push ebx
push 5
push ecx
call dword [0x420704]
mov edx, dword [esi]
push 4
lea eax, [esi + 0x14]
push eax
push 6
push edx
call dword [0x420704]
mov eax, dword [edi]
movzx ecx, word [esi + 0x18]
push eax
push ecx
lea edx, [esi + 0x1a]
mov eax, esi
call fcn.004049d0
xor edi, edi
mov dword [esi + 4], eax
cmp eax, edi
jne 0x403db8
mov eax, dword [esi + 8]
cmp eax, edi
je 0x403d92
push eax
call dword [0x420708]
mov dword [esi + 8], edi
mov eax, dword [esi + 4]
cmp eax, edi
je 0x403da3
push eax
call dword [0x420708]
mov dword [esi + 4], edi
mov eax, dword [esi]
cmp eax, edi
je 0x403db2
push eax
call dword [0x420708]
mov dword [esi], edi
xor eax, eax
pop edi
pop ebx
pop ecx
ret
pop edi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x4049d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [eax]
mov ax, word [ebp + 8]
push esi
push edi
xor edi, edi
push edi
push edi
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
push ecx
push 0x4048d0
push edi
push edi
mov dword [ebp - 0x1c], edx
mov word [ebp - 0x18], ax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 3
mov dword [ebp - 8], edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp + 0xc]
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404a32
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp + 8]
push eax
push esi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x404a47
mov dword [ebp + 8], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x404b50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
push esi
push 0
push 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push 0x404a60
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 0x10]
push 0
push 0
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 0x14]
mov esi, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404ba3
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp + 8]
push edx
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x404bbc
mov dword [ebp + 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop esi
mov esp, ebp
pop ebp
ret