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

Disassembly:
cmp ecx, dword [0x4260f0]
jne 0x40bbde
repz ret
jmp fcn.0040fdc7

Function at 0x416be4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040ff47
and dword [ebp - 4], 0
cmp dword [0x428354], 0
mov ebx, eax
jne 0x416c95
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x416d46
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x420ac0
push edi
call esi
test eax, eax
je 0x416d46
push eax
call fcn.0040fed5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x428354], eax
call esi
push eax
call fcn.0040fed5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x428358], eax
call esi
push eax
call fcn.0040fed5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42835c], eax
call esi
push eax
call fcn.0040fed5
pop ecx
mov dword [0x428364], eax
test eax, eax
je 0x416c95
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040fed5
pop ecx
mov dword [0x428360], eax
mov eax, dword [0x428360]
cmp eax, ebx
je 0x416ced
cmp dword [0x428364], ebx
je 0x416ced
push eax
call fcn.0040ff50
push dword [0x428364]
mov esi, eax
call fcn.0040ff50
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x416ced
test edi, edi
je 0x416ced
call esi
test eax, eax
je 0x416ce4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x416ce4
test byte [ebp - 0xc], 1
jne 0x416ced
or dword [ebp + 0x10], 0x200000
jmp 0x416d26
mov eax, dword [0x428358]
cmp eax, ebx
je 0x416d26
push eax
call fcn.0040ff50
pop ecx
test eax, eax
je 0x416d26
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x416d26
mov eax, dword [0x42835c]
cmp eax, ebx
je 0x416d26
push eax
call fcn.0040ff50
pop ecx
test eax, eax
je 0x416d26
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x428354]
call fcn.0040ff50
pop ecx
test eax, eax
je 0x416d46
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x416d48
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41223d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41223d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x53dd9c
push eax
push dword fs:[0]
push ebx
add byte [eax + 0x64], dl
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xe7
mov dword [0x98c0ec09], eax
mov eax, dword [0xf6a8b15c]
jecxz 0x401003
xor dword [ecx], ecx
iretd
ljmp 0x2bdb:0xc41a7522
jne 0x40109c
invalid
mov ch, byte [edx + 0x477bf67f]
jle 0x4010d4
salc
rcr cl, 1
cwde
add al, 0x60
sub byte [ecx + 0x485b75a6], bh
adc byte [eax], cl
xor eax, 0x4156615a
clc
or edi, dword [esi + 0x54]
xchg byte [ebx + 0x456a3141], bl
adc dword [edx + 0x30], ecx
jno 0x401110
sbb ebx, edi
cmp al, 0x6e
jae 0x40107e
out dx, al
aad 0x69
sub dword [edi + 0x33], ebx
retf
push ebp
mov cs, edx
mov bl, byte [edx + 0x3812e7a7]
adc eax, 0x31bdc80d
movsd dword es:[edi], dword [esi]
fild qword [eax]
add ch, al
cmpsd dword [esi], dword es:[edi]
dec eax
ret
Function at 0x5fdd44
Capabilities:
Encode data using xor

Disassembly:
and al, 0xd7
sub al, 0xc3
add al, bh
xchg ebx, eax
push ecx
mov byte [ebx + 7], ah
vpackuswb xmm3, xmm1, xmmword [edi]
movsb byte es:[edi], byte [esi]
test dword [ecx + 6], eax
jmp [ebx + eax + 0x4b]
jae 0x5fdd4a
imul eax, dword [esp + ebp - 0x688fe821], 0xf4082bfd
mov ah, 0x91
pop ss
jo 0x5fdce4
std
sub ecx, dword [eax]
and byte [esi], dh
sub edi, dword [edx - 0x60]
or al, 0xb0
pushal
test eax, 0xf90d86a0
salc
push es
adc dword [ecx - 0x5fd8301d], ecx
mov ebx, 0x7b0c638a
je 0x5fddd0
daa
loopne 0x5fdd79
pop es
loope 0x5fddba
stosb byte es:[edi], al
mov bh, 0x46
rcl dword [ecx - 0x1c]
in al, 0x64
test byte [edi + 0x2a], 0x42
in al, 0xe4
test byte fs:[edi + 0x2a], 0x42
punpckldq mm3, dword [esi + 0x727272d6]
jb 0x5fddd1
or eax, 0xd5d59b4a
add bl, bl
cmp cl, byte [ecx + 0x14]
jne 0x5fdd71
test eax, 0x1783df01
ficom dword ss:[ebx + 0x11806b88]
pop es
movsd dword es:[edi], dword [esi]
dec ecx
andnps xmm0, xmmword [ecx]
sbb al, 0x2c
adc dword [esi], 0xb4ae7781
mov ch, 0x6d
dec esp
pop ecx
sbb byte [ecx], cl
inc edx
fldcw word [edx]
mov al, byte [0x4050bb81]
jmp 0x5d9bcb8b
mov ebx, 0xc9e94050
in eax, dx
cmp ebx, dword [ebp + 0x2a]
fadd dword [edi + 0x31]
pop ds
add ah, dl
sbb dword [eax + 0x8ff32db], edx
cmp byte [edx + 0x2cbcf050], dl
insd dword es:[edi], dx
and eax, 0x5a507b6f
xor al, byte [ecx]
cmc
xchg esp, eax
sub al, 0x1d
xchg esp, eax
insb byte es:[edi], dx
and eax, 0xb7a5f56e
xchg edx, eax
push edi
xchg esp, eax
push 0x10dd4b7b
pop es
cmc
aaa
out 0xe0, eax
jae 0x5fddfb
xchg edx, eax
push eax
invalid
rol dword [ecx + 0x3d559de0], 0x44
add al, 0x2b
invalid
push ebp
cmp eax, 0xf02b0444
xchg ebp, eax
cmp byte [0x3470cf2d], cl
nop
fst qword [ecx + 0x79]
lock adc ah, byte [ecx]
std
or ah, byte [0x990353c3]
add eax, 0xee9f9356
mov eax, dword [0x963a]
xor al, 0xa
mov esi, 0x823bb03
invalid
Function at 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x4182e8]
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x4182ec]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
mov esi, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edx
call fcn.00401200
mov ebx, dword [ebp - 0x18]
add ebx, 0x23f
cmp dword [0xb2b424], 0x14
jne 0x401265
push 0
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x4182f0]
mov eax, dword [0x4182f4]
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
pop edi
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, esi
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xb2b424], 0xfa9
mov dword [ebp - 8], eax
mov eax, dword [0xb2b420]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0xb2b424], 0x3eb
mov dword [0xb2b420], eax
mov eax, dword [0xb2b378]
cmove eax, dword [ebp - 0xc]
mov dword [0xb2b378], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x10], 0
mov dword [0xb2b41c], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 4]
sub edx, eax
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0xc], edx
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + edx]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0x10], eax
cmp dword [0xb2b424], 0xb03
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jne 0x401363
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add ebx, 0x61c88647
mov ecx, dword [ebp - 0x24]
sub esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
dec edi
jne 0x401279
mov edi, dword [ebp - 0x2c]
mov dword [edi], esi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c0ca
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00408870
mov dword [ebp - 0x14], eax
cmp dword [0x486c18], esi
jne 0x40c1bd
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c14a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c29d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c29d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c29d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x486c18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x486c1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x486c20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x486c28], eax
test eax, eax
je 0x40c1ba
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x486c24], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c1e2
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c1d5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c1f7
push 4
pop eax
jmp 0x40c29f
cmp dword [ebp - 0x14], esi
je 0x40c1f7
push dword [0x486c18]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c1dc
mov eax, dword [0x486c24]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c255
cmp dword [0x486c28], edi
je 0x40c255
push eax
call ebx
push dword [0x486c28]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c255
test eax, eax
je 0x40c255
call ecx
test eax, eax
je 0x40c24a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c24a
test byte [ebp - 8], 1
jne 0x40c255
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c285
mov eax, dword [0x486c1c]
cmp eax, edi
je 0x40c282
push eax
call ebx
test eax, eax
je 0x40c282
call eax
mov esi, eax
test esi, esi
je 0x40c282
mov eax, dword [0x486c20]
cmp eax, edi
je 0x40c282
push eax
call ebx
test eax, eax
je 0x40c282
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x486c18]
call ebx
test eax, eax
je 0x40c29d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c29f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403d87
mov esp, ebp
pop ebp
ret
Function at 0x4011d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
jle 0x40130f
push ebx
push ebp
mov ebp, dword [esp + 0x24]
jmp 0x4011f0
mov eax, dword [ebp]
movzx ecx, byte [eax + edi]
mov edx, dword [ebp + 4]
add eax, edi
mov dword [esp + 0x14], eax
movzx eax, byte [edi + edx]
mov byte [esp + 0x18], cl
mov ecx, dword [ebp + 8]
movzx edx, byte [edi + ecx]
mov byte [esp + 0x19], al
mov eax, dword [ebp + 0xc]
movzx ecx, byte [edi + eax]
mov byte [esp + 0x1b], cl
mov byte [esp + 0x1a], dl
mov edx, dword [esp + 0x19]
push edx
push 3
mov ecx, esi
call fcn.00401180
mov bl, al
mov eax, dword [esp + 0x18]
push eax
push 2
mov ecx, esi
call fcn.00401180
mov ecx, dword [esp + 0x1a]
xor bl, al
xor bl, byte [esp + 0x1b]
push ecx
xor bl, byte [esp + 0x1e]
push 3
mov ecx, esi
call fcn.00401180
mov edx, dword [esp + 0x19]
push edx
push 2
mov ecx, esi
mov byte [esp + 0x2c], al
call fcn.00401180
mov edx, dword [esp + 0x1b]
mov cl, al
mov al, byte [esp + 0x24]
xor al, cl
xor al, byte [esp + 0x1b]
push edx
xor al, byte [esp + 0x1c]
push 3
mov ecx, esi
mov byte [esp + 0x19], al
call fcn.00401180
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x1a]
push eax
push 2
mov ecx, esi
call fcn.00401180
mov edx, dword [esp + 0x1b]
mov cl, al
mov al, byte [esp + 0x24]
xor al, cl
xor al, byte [esp + 0x19]
push edx
xor al, byte [esp + 0x1c]
push 2
mov ecx, esi
mov byte [esp + 0x1a], al
call fcn.00401180
mov byte [esp + 0x24], al
mov eax, dword [esp + 0x18]
push eax
push 3
mov ecx, esi
call fcn.00401180
mov edx, dword [esp + 0x14]
mov cl, al
mov al, byte [esp + 0x24]
xor al, cl
xor al, byte [esp + 0x1a]
mov byte [edx], bl
xor al, byte [esp + 0x19]
mov ecx, dword [ebp + 4]
movzx edx, byte [esp + 0x11]
mov byte [edi + ecx], dl
mov ecx, dword [ebp + 8]
movzx edx, byte [esp + 0x12]
mov byte [edi + ecx], dl
mov ecx, dword [ebp + 0xc]
mov byte [edi + ecx], al
inc edi
cmp edi, dword [esi]
jl 0x4011f0
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x401320
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov ebp, ecx
mov edx, dword [ebp]
push edi
mov edi, dword [esp + 0x14]
xor ecx, ecx
nop
xor eax, eax
test edx, edx
jle 0x401354
mov edx, dword [esp + 0x18]
lea esi, [ecx + edx]
lea ecx, [ecx]
mov edx, dword [edi]
mov bl, byte [esi]
xor byte [edx + eax], bl
add edx, eax
mov edx, dword [ebp]
inc eax
add esi, 4
cmp eax, edx
jl 0x401340
inc ecx
add edi, 4
cmp ecx, 4
jl 0x401330
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4018a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, ecx
mov ecx, dword [edi + 0xc]
xor edx, edx
mov eax, esi
div ecx
mov ebp, dword [esp + 0x24]
imul eax, ecx
push eax
mov dword [ebp], eax
call fcn.0040a4be
mov ecx, dword [esp + 0x18]
push esi
push ecx
push eax
mov dword [esp + 0x28], eax
call fcn.0040a8d0
mov edx, dword [ebp]
push edx
call fcn.0040a4be
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
push eax
call fcn.0040a4be
mov ecx, dword [edi + 0xc]
mov edx, dword [esp + 0x38]
push ecx
mov esi, eax
push edx
push esi
call fcn.0040a8d0
xor ebx, ebx
add esp, 0x24
cmp dword [ebp], ebx
jbe 0x40194c
mov ebp, dword [edi + 0xc]
xor eax, eax
test ebp, ebp
jbe 0x40191e
mov ecx, dword [esp + 0x18]
add ecx, ebx
mov dl, byte [ecx + eax]
xor byte [eax + esi], dl
inc eax
cmp eax, ebp
jb 0x401913
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push ecx
lea ebp, [ebx + eax]
push ebp
push esi
mov ecx, edi
call fcn.004016c0
mov edx, dword [edi + 0xc]
push edx
push ebp
push esi
call fcn.0040a8d0
add ebx, dword [edi + 0xc]
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp ebx, dword [eax]
jb 0x401904
push esi
call fcn.0040ac35
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0040ac35
mov eax, dword [esp + 0x1c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret 0x14
Function at 0x401ea0
Capabilities:
Encode data using base64

Disassembly:
push 0xffffffffffffffff
push 0x41a409
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4201f4]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4201f4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x80]
xor eax, eax
mov dword [esp + 0x20], eax
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], eax
mov dword [esp + 0x24], ebp
mov byte [ebp + 4], al
xor esi, esi
mov dword [esp + 0x78], eax
mov dword [esp + 0x20], 1
cmp dword [esp + 0x88], eax
je 0x402060
mov edi, dword [esp + 0x84]
mov al, byte [edi]
dec dword [esp + 0x88]
mov byte [esp + esi + 0x14], al
mov bl, byte [esp + 0x15]
inc esi
inc edi
cmp esi, 3
jne 0x401fa3
mov al, byte [esp + 0x14]
mov cl, al
shr cl, 2
and al, 3
shl al, 4
mov byte [esp + 0x18], cl
mov dl, bl
shr dl, 4
add al, dl
mov byte [esp + 0x19], al
mov al, byte [esp + 0x16]
mov cl, bl
and cl, 0xf
add cl, cl
mov dl, al
add cl, cl
shr dl, 6
add cl, dl
and al, 0x3f
mov byte [esp + 0x1a], cl
mov byte [esp + 0x1b], al
xor esi, esi
jmp 0x401f80
movzx eax, byte [esp + esi + 0x18]
mov cl, byte [esp + eax + 0x28]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
push 1
mov ecx, ebp
call fcn.00401c30
inc esi
cmp esi, 4
jl 0x401f80
xor esi, esi
cmp dword [esp + 0x88], 0
jne 0x401f23
test esi, esi
je 0x402060
cmp esi, 3
jge 0x401fd9
mov ecx, 3
sub ecx, esi
push ecx
lea eax, [esp + esi + 0x18]
push 0
push eax
call fcn.0040a800
mov bl, byte [esp + 0x21]
add esp, 0xc
mov al, byte [esp + 0x14]
mov dl, al
mov cl, bl
and al, 3
shl al, 4
shr cl, 4
add al, cl
shr dl, 2
and bl, 0xf
mov byte [esp + 0x19], al
mov al, byte [esp + 0x16]
add bl, bl
mov byte [esp + 0x18], dl
mov dl, al
add bl, bl
shr dl, 6
add bl, dl
mov byte [esp + 0x1a], bl
and al, 0x3f
lea ebx, [esi + 1]
xor edi, edi
mov byte [esp + 0x1b], al
test ebx, ebx
jle 0x402040
jmp 0x402020
movzx eax, byte [esp + edi + 0x18]
mov cl, byte [esp + eax + 0x28]
mov byte [esp + 0x1c], cl
mov edx, dword [esp + 0x1c]
push edx
push 1
mov ecx, ebp
call fcn.00401c30
inc edi
cmp edi, ebx
jl 0x402020
cmp esi, 3
jge 0x402060
mov edi, 3
sub edi, esi
lea esp, [esp]
push 0x3d
push 1
mov ecx, ebp
call fcn.00401c30
sub edi, 1
jne 0x402050
mov eax, ebp
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0040b213
add esp, 0x68
ret 0xc
Function at 0x402670
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x12c
mov eax, dword [0x4201f4]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push esi
push 0
push 2
xor bl, bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4026b6
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4026d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0040b213
add esp, 0x12c
ret
lea ecx, [esp + 0x2c]
push str.egui.exe
push ecx
call fcn.0040b3d0
add esp, 8
test eax, eax
je 0x4026fc
lea edx, [esp + 0x2c]
push str.ekrn.exe
push edx
call fcn.0040b3d0
add esp, 8
test eax, eax
jne 0x4026fe
mov bl, 1
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4026d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x130]
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.0040b213
add esp, 0x12c
ret

Function at 0x4027d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4027e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402824
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402820
lea ebx, [ebx]
cmp esi, eax
jae 0x402824
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402810
cmp esi, eax
jb 0x40282a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402af0
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
sub esp, 0xd34
mov eax, dword [0x4201f4]
xor eax, esp
mov dword [esp + 0xd30], eax
push 0x104
lea eax, [esp + 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x402bc2
push 0x400
lea ecx, [esp + 0x134]
push 0
push ecx
call fcn.0040a800
push 0x800
lea edx, [esp + 0x540]
push 0
push edx
call fcn.0040a800
add esp, 0x18
push 0x400
lea eax, [esp + 0x134]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402bc2
push esi
push edi
mov ecx, 0xa
mov esi, str._d__c_timeout_5__cmd__d__c_del__f__q___s_
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0xc]
push edx
movsw word es:[edi], word [esi]
lea eax, [esp + 0x540]
push 0x800
push eax
movsb byte es:[edi], byte [esi]
call fcn.0040b65f
add esp, 0x10
push 0
push 0
lea ecx, [esp + 0x540]
push ecx
lea edx, [esp + 0x144]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
mov ecx, dword [esp + 0xd30]
xor ecx, esp
call fcn.0040b213
add esp, 0xd34
ret
Function at 0x406100
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x70
mov eax, dword [0x4201f4]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
mov esi, dword [esp + 0x78]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
push eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ecx
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00405f30
lea ecx, [esp + 4]
call fcn.00405ff0
lea eax, [esp + 0x5c]
push eax
call fcn.00405730
mov ecx, dword [esp + 0x74]
add esp, 4
pop esi
xor ecx, esp
call fcn.0040b213
add esp, 0x70
ret

Function at 0x4061a0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
push ebx
push ebp
mov ebp, dword [edi + 4]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 0xc], 0
cmp dx, word [eax + 6]
jae 0x40626d
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x40620e
mov eax, dword [esp + 0x1c]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x406253
mov ecx, dword [edi + 0x34]
mov edx, dword [esi - 4]
mov eax, dword [edi + 0x1c]
push ecx
push 4
push 0x1000
add edx, ebp
push ebx
push edx
call eax
add esp, 0x14
test eax, eax
je 0x40627f
mov eax, dword [esi - 4]
push ebx
add eax, ebp
push 0
push eax
mov dword [esi - 8], eax
call fcn.0040a800
jmp 0x406250
mov ecx, dword [esi + 4]
add ecx, eax
cmp dword [esp + 0x18], ecx
jb 0x406277
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x1c]
push edx
push 4
push 0x1000
push eax
mov eax, dword [esi - 4]
add eax, ebp
push eax
call ecx
add esp, 0x14
test eax, eax
je 0x40627f
mov eax, dword [esi + 4]
mov edx, dword [esi]
add eax, dword [esp + 0x14]
mov ebx, dword [esi - 4]
push edx
add ebx, ebp
push eax
push ebx
call fcn.0040a8d0
mov dword [esi - 8], ebx
add esp, 0xc
mov ecx, dword [edi]
mov eax, dword [esp + 0xc]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0xc], eax
jl 0x4061c8
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret