joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e0bf43e
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
xor edi, edi
cmp byte [ebp + 0x24], 0
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0xc]
mov word [ebx + 0xc], di
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x28], edi
mov esi, 0x8000
jne 0x2e0bf48e
push esi
push eax
add eax, esi
push eax
call fcn.2e046b17
add esp, 0xc
mov word [ebx + 0x2c], di
mov dword [ebx + 0x30], edi
call fcn.2e0bee98
mov eax, dword [ebx + 0x14]
and dword [ebx + 0x20], edi
push 2
mov word [ebx + 0x3c], si
mov dword [ebx + 0x34], esi
add eax, esi
pop ecx
movzx edi, byte [eax]
mov edx, dword [ebx + 0x20]
shl edx, 5
xor edx, edi
and edx, 0x7fff
inc eax
dec ecx
mov dword [ebx + 0x20], edx
jne 0x2e0bf4ac
cmp byte [ebp + 0x24], cl
je 0x2e0bf4d2
mov edi, ebx
call fcn.2e0becf5
jmp 0x2e0bf4e3
xor eax, eax
mov ecx, esi
mov edx, dword [ebx + 0x18]
and word [eax + edx], 0
inc eax
inc eax
dec ecx
jne 0x2e0bf4d6
push 8
pop edi
push 0x43
pop edx
mov eax, ebx
call fcn.2e0be13b
push 0x4b
pop edx
call fcn.2e0be13b
call fcn.2e0bf1c4
mov ecx, dword [ebp + 0x28]
inc eax
inc eax
cmp byte [ebp + 0x24], 0
movzx eax, ax
mov dword [ecx], eax
je 0x2e0bf521
mov eax, dword [ebx + 0x14]
push esi
lea ecx, [eax + 0x8000]
push ecx
push eax
call fcn.2e046b17
add esp, 0xc
mov eax, dword [ebx + 0x28]
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 3
pop ebx
pop ebp
ret 0x24
Function at 0x2e0c18d7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc9c
mov eax, dword [0x2e0d530c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc88], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0xc8c], eax
mov eax, dword [esi + 0x870]
add eax, 0x20
mov ecx, eax
shl ecx, 3
cmp ecx, 0x320
mov dword [ebp - 0xc9c], ecx
jb 0x2e0c1924
xor eax, eax
jmp 0x2e0c1b00
push edi
mov edi, eax
shl edi, 4
push edi
lea eax, [ebp - 0xc84]
push 0
push eax
call fcn.2e046a1a
push edi
lea eax, [ebp - 0x644]
push 0
push eax
call fcn.2e046a1a
mov ecx, dword [ebp + 0x18]
add esp, 0x18
test ecx, ecx
jbe 0x2e0c1a84
mov eax, dword [ebp + 0x14]
mov edi, dword [esi + 0x30]
shl eax, 2
mov dword [ebp - 0xc90], eax
mov eax, dword [ebp + 0x10]
shl eax, 2
push ebx
mov ebx, dword [esi + 0x34]
mov dword [ebp - 0xc94], eax
mov dword [ebp - 0xc98], ecx
jmp 0x2e0c1983
mov eax, dword [ebp - 0xc94]
mov ecx, dword [ebp - 0xc88]
and ecx, 7
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0xc88]
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x2e0c19ad
mov eax, dword [ebp - 0xc88]
movzx eax, byte [edi + eax]
jmp 0x2e0c19f1
mov ecx, dword [ebp - 0xc88]
cmp byte [edi + ecx], 7
mov ecx, dword [esi + 0x2c]
push dword [eax + ecx]
push esi
jae 0x2e0c19db
call fcn.2e0bfc41
mov ecx, dword [ebp - 0xc88]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x2e0c19ea
call fcn.2e0bfc41
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc94], 4
inc dword [ebp - 0xc88]
lea eax, [ebp + eax*2 - 0xc84]
inc word [eax]
mov eax, dword [ebp - 0xc8c]
xor edx, edx
mov ecx, eax
and ecx, 7
inc edx
shl edx, cl
mov ecx, eax
shr ecx, 3
mov cl, byte [ecx + ebx]
test cl, dl
jne 0x2e0c1a23
movzx eax, byte [edi + eax]
jmp 0x2e0c1a67
cmp byte [edi + eax], 7
mov ecx, dword [ebp - 0xc90]
mov eax, dword [esi + 0x2c]
push dword [eax + ecx]
push esi
jae 0x2e0c1a51
call fcn.2e0bfc41
mov ecx, dword [ebp - 0xc8c]
movzx ecx, byte [edi + ecx]
movzx eax, al
lea eax, [ecx + eax*8 + 0x100]
jmp 0x2e0c1a60
call fcn.2e0bfc41
movzx eax, al
lea eax, [eax*8 + 0x107]
add dword [ebp - 0xc90], 4
inc dword [ebp - 0xc8c]
lea eax, [ebp + eax*2 - 0x644]
inc word [eax]
dec dword [ebp - 0xc98]
jne 0x2e0c197d
pop ebx
xor esi, esi
xor edi, edi
cmp dword [ebp - 0xc9c], esi
jbe 0x2e0c1afd
movzx eax, word [ebp + esi*2 - 0xc84]
cmp ax, 0x100
movzx eax, ax
jae 0x2e0c1aaa
movzx eax, byte [eax + 0x2e032580]
jmp 0x2e0c1ab7
shr eax, 8
movzx eax, byte [eax + 0x2e032580]
add eax, 8
movzx ecx, word [ebp + esi*2 - 0x644]
cmp cx, 0x100
movzx ecx, cx
jae 0x2e0c1ad2
movzx ecx, byte [ecx + 0x2e032580]
jmp 0x2e0c1adf
shr ecx, 8
movzx ecx, byte [ecx + 0x2e032580]
add ecx, 8
mov eax, dword [eax*4 + 0x2e032538]
sub eax, dword [ecx*4 + 0x2e032538]
cdq
xor eax, edx
sub eax, edx
add edi, eax
inc esi
cmp esi, dword [ebp - 0xc9c]
jb 0x2e0c1a90
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.2e046266
leave
ret 0x14
Function at 0x4034ab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4034c2
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4034f7
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x4034f3
cmp edi, eax
jae 0x4034f7
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x4034e5
cmp edi, eax
jb 0x4034fb
xor eax, eax
jmp 0x403504
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4035b2
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x44c2d0
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov ebx, 0x10000
push ebx
xor eax, eax
push edi
push 0x44c2ee
mov word [0x44c2e0], ax
mov dword [0x44c2e2], edi
mov dword [0x44c2e6], 1
mov dword [0x44c2ea], edi
call fcn.004100e0
push ebx
push edi
push 0x45c2f2
mov dword [0x45c2ee], edi
call fcn.004100e0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x18
push edi
push edi
push esi
push 0x40351f
push edi
push edi
mov dword [0x46caf2], edi
call ebx
push edi
push edi
push esi
push 0x403574
push edi
push edi
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x404dd8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x404de7
pop dword [ebp - 8]
mov eax, 0x404de7
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x969131cb
add dword [ebp - 0x18], 0xb7c11380
mov dword [ebp - 0x14], 0xa994924b
sub dword [ebp - 0x14], 0x77614606
mov dword [ebp - 0x10], 0x5790c1aa
add dword [ebp - 0x10], 0xf4bb8284
mov dword [ebp - 0xc], 0xbcc4e6e8
sub dword [ebp - 0xc], 0xbcc4e6e8
lea eax, [ebp - 0x18]
push eax
mov eax, 0xbccfdc5
sub eax, 0xb8acd51
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x67af1f31
sub dword [ebp - 0x18], 0xf33cb5db
mov dword [ebp - 0x14], 0xb2700f79
add dword [ebp - 0x14], 0x8efc51fc
mov dword [ebp - 0x10], 0x35c4f901
add dword [ebp - 0x10], 0x2daa736b
mov dword [ebp - 0xc], 0xecf9d7a3
add dword [ebp - 0xc], 0x1306285d
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xb93bd410
add eax, 0x47065d14
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3f3d1
push 0
call eax
mov ecx, 0x4dfd
mov edi, eax
mov edx, 0x43e3dce5
add edx, 0xbc5f671b
add edx, dword [ebp - 8]
mov esi, 0x13720b7a
xor dword [ebp - 4], 0xccd4ae05
mov ebx, dword [edx]
add dword [ebp - 4], eax
sub ebx, esi
mov dword [edi], ebx
xor dword [ebp - 4], 0xc907b065
add edi, 0x2a334f0
sub edi, 0x2a334ec
add edx, 0x2d135546
sub edx, 0x2d135542
loop 0x404ef8
add eax, 0x12ac7
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c
Function at 0x406840
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sbb dword [edx], 0x229910
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx - 0x79]
cmp eax, 0xffffffff
je 0x4069ef
in eax, 0x4b
adc byte [ecx - 0x767bf037], al
add dword [eax], eax
mov si, word [ebp + 0xc]
mov ecx, dword [edx + 0x14]
adc byte [esi + 0x28], dl
push ecx
pushal
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
psrld mm6, qword [edi]
push edi
inc edx
int3

Function at 0x40a940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add al, 0x45
or al, al
mov ecx, dword [eax*4 + 0x4108e4]
dec ecx
xor al, 0x85
invalid
Function at 0x4059bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40fba0
cmp edx, dword [eax]
je 0x4059df
add eax, 8
inc ecx
cmp eax, 0x40fc30
jl 0x4059d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40fba0]
jne 0x405b0d
mov eax, dword [0x41f1f0]
cmp eax, 1
je 0x405ae7
test eax, eax
jne 0x405a10
cmp dword [0x40faec], 1
je 0x405ae7
cmp edx, 0xfc
je 0x405b0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405a47
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004067c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405e80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405a8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405e80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40841c
push edi
call fcn.00406940
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004067c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004067d0
lea eax, [ebp - 0xa0]
push 0x4083fc
push eax
call fcn.004067d0
push dword [esi + 0x40fba4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004067d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004068b0
add esp, 0x2c
pop edi
jmp 0x405b0d
lea eax, [ebp + 8]
lea esi, [esi + 0x40fba4]
push 0
push eax
push dword [esi]
call fcn.00405e80
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 0x408913
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edi
sub ebx, 0x93bf3d0e
mov esi, 0x76c078dd
call fcn.00408940
xor dword [ecx], edi
add ebx, 1
add ebx, 0x68a0c56c
inc ecx
inc esi
cmp ecx, eax
jne fcn.00408913
inc esi
dec ebx
ret
Function at 0x1000bf00
Capabilities:
Parse pe header

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

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40adef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43cd78]
jne 0x40adf9
repz ret
jmp fcn.0040da1c

Function at 0x40d433
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43cd78]
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.00406484
and dword [ebp - 0x14], 0
cmp dword [0x440744], 0
mov dword [ebp - 0x18], eax
jne 0x40d4e6
push 0x402c4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40d58e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c40
push ebx
call edi
test eax, eax
je 0x40d58e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402c30
push ebx
mov dword [0x440744], eax
call edi
push eax
call esi
push 0x402c1c
push ebx
mov dword [0x440748], eax
call edi
push eax
call esi
push 0x402c00
push ebx
mov dword [0x44074c], eax
call edi
push eax
call esi
mov dword [0x440754], eax
test eax, eax
je 0x40d4e6
push 0x402be8
push ebx
call edi
push eax
call esi
mov dword [0x440750], eax
mov eax, dword [0x440750]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40d53f
cmp dword [0x440754], ecx
je 0x40d53f
push eax
call esi
push dword [0x440754]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40d53f
test ebx, ebx
je 0x40d53f
call edi
test eax, eax
je 0x40d536
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40d536
test byte [ebp - 8], 1
jne 0x40d53f
or dword [ebp + 0x10], 0x200000
jmp 0x40d572
mov eax, dword [0x440748]
cmp eax, dword [ebp - 0x18]
je 0x40d572
push eax
call esi
test eax, eax
je 0x40d572
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d572
mov eax, dword [0x44074c]
cmp eax, dword [ebp - 0x18]
je 0x40d572
push eax
call esi
test eax, eax
je 0x40d572
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x440744]
call esi
test eax, eax
je 0x40d58e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40d590
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040adef
leave
ret
Function at 0x423820
Capabilities:
Accept command line arguments
Delete directory
Get common file path

Disassembly:
mov eax, 0x1420
call fcn.0040e9a0
cmp dword [0x22826c4], 0x37
jne 0x4238d7
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0x403430
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
lea eax, [esp + 0x824]
push eax
push 0x403448
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 4]
push edx
push 0
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea edx, [esp + 0xc20]
push edx
push 0
push 0x4034a0
push 0x4034b8
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x403558
push 0x403618
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov eax, dword [0x22826c8]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x445854]
mov byte [eax + esi], dl
add esp, 0x1420
ret

Function at 0x423910
Capabilities:
Manipulate console buffer

Disassembly:
sub esp, 0x64
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx]
mov edx, dword [0x43d380]
push ebx
push ebp
mov ebp, dword [0x43d37c]
push esi
mov esi, dword [ecx + 4]
mov ecx, dword [0x43d378]
mov dword [esp + 0x24], ecx
mov ecx, dword [0x43d384]
mov ebx, 0xc6ef3720
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x423964
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x20]
shl ecx, 4
add ecx, dword [esp + 0x24]
add eax, ebx
xor edx, ecx
xor edx, eax
sub esi, edx
mov ecx, esi
shl ecx, 4
mov dword [0x2278674], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
cmp dword [0x22826c4], 0x1be
lea edi, [ebx + esi]
jne 0x4239b9
lea edx, [esp + 0x2c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov eax, esi
shr eax, 5
add eax, ebp
xor eax, edi
xor dword [esp + 0x10], eax
mov dword [0x2278678], 0xff6b3619
mov dword [0x227867c], 0xffffffff
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov ecx, dword [0x22826c4]
cmp ecx, 0x93
je 0x4239fd
lea eax, [esp + 0x18]
call fcn.00423900
mov ebx, dword [esp + 0x18]
dec dword [esp + 0x1c]
jne 0x423960
cmp ecx, 0x8d4
jne 0x423a31
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], edx
pop ebx
add esp, 0x64
ret 4
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x64
ret 4
Function at 0x423a50
Capabilities:
Manipulate console buffer

Disassembly:
push ecx
mov eax, dword [0x22826c4]
shr eax, 3
push esi
mov esi, dword [0x445854]
test eax, eax
je 0x423a94
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push edi
mov edi, eax
mov edi, edi
cmp dword [0x22826c4], 0x1c
jne 0x423a86
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
call ebx
push esi
call fcn.00423910
add esi, 8
dec edi
jne 0x423a70
pop edi
pop ebx
pop esi
pop ecx
ret
Function at 0x40354e
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc48
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
xor esi, esi
cmp dword [0xd51a20], 0x594
mov dword [ebp - 0xc], eax
jne 0x40359a
push 0x402eb4
push 0x402ed4
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push 0x402ee0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x80d4b8]
mov dword [ebp - 0x24], eax
mov eax, dword [0x80d4bc]
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.00403547
mov eax, dword [0x80d4c0]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x80d4c4]
add ebx, 0x23f
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
mov ecx, eax
shl ecx, 4
cmp dword [0xd51a20], 0xc
mov dword [ebp - 4], ecx
jne 0x403641
push esi
lea eax, [ebp - 0x448]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0xc48]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
add dword [ebp - 4], ecx
mov ecx, dword [0xd51a20]
cmp ecx, 0xfa9
jne 0x40365f
mov dword [0xd50fbc], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x40366d
mov dword [0xd50970], esi
lea ecx, [ebx + eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 8]
shr eax, cl
mov dword [0xd50fb8], 0xf4ea3dee
add eax, dword [ebp - 0x20]
mov ecx, eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0xd51a20], 0x213
mov dword [ebp - 0x14], ecx
jne 0x4036aa
push 0x402f08
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
lea edx, [ebx + eax]
shr eax, cl
add eax, dword [ebp - 0x2c]
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
add ebx, 0x61c88647
dec dword [ebp - 0x1c]
jne 0x4035d6
cmp dword [0xd51a20], 0xa6d
mov eax, dword [ebp - 0x10]
mov dword [edi], eax
pop ebx
jne 0x403709
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov eax, dword [ebp - 0xc]
mov dword [edi + 4], eax
pop edi
pop esi
leave
ret 4
Function at 0x403715
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xd51a20]
mov ecx, dword [0xd50974]
sub esp, 0x58c
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x4037d7
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0xd51a20], 0x959
jne 0x4037c5
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessPriorityBoost]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea eax, [ebp - 0x188]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402f3c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
lea eax, [ebp - 0x588]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
call fcn.0040354e
add ebx, 8
dec dword [ebp - 8]
jne 0x40373e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403afd
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0xd51a20], 0x400
push edi
jne 0x403b56
push esi
push esi
call fcn.00403de6
push esi
push esi
call fcn.00403de6
push esi
call fcn.00403fb0
add esp, 0x14
push esi
push esi
push esi
call fcn.00404a6e
pop ecx
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403522
fstp st(0)
push esi
call fcn.00404af3
pop ecx
push esi
call fcn.00404885
pop ecx
mov eax, dword [0x80db44]
mov dword [0xd51a20], eax
mov eax, dword [0x80db1c]
mov dword [0xd51a24], eax
call fcn.004037f6
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x403bbd
cmp dword [esp + 0x18], 0x785074d5
jne 0x403bcb
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x403b78
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x403390
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x4033dc
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp edi, ebx
jle 0x403bfa
cmp dword [esp + 0x18], 0x785074d5
jne 0x403c03
inc edi
cmp edi, 0x11915
jl 0x403bcd
mov eax, dword [0xd50974]
mov dword [0xd50fb4], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40ab65
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80c6c4]
jne 0x40ab6f
repz ret
jmp fcn.0040ef28