joyce8/EMBER2024-capa huggingface dataset:
Function at 0x107e7b70
Capabilities:
Check if file exists
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x418]
push ebx
push ebp
mov ebp, dword [esp + 0x410]
push esi
push edi
lea ecx, [esp + 0x14]
push 0x200
xor ebx, ebx
push ecx
push ebp
mov byte [esp + 0x1f], 0
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x107e7c1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x107e7c15
mov eax, dword [0x107cca08]
mov cl, byte [0x107cca0c]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x107cca04]
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x14], edx
sub edi, ecx
lea edx, [esp + 0x14]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x14]
and ecx, 3
push eax
push ebp
push 1
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x107e7cca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x107e7d07
mov ecx, dword [0x107cc9fc]
mov edi, ebp
mov dword [esp + 0x214], ecx
or ecx, 0xffffffff
xor eax, eax
mov dl, byte [0x107cca00]
repne scasb al, byte es:[edi]
not ecx
mov byte [esp + 0x218], dl
sub edi, ecx
lea edx, [esp + 0x214]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
push 0xffffffffffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
push 3
push eax
mov ecx, edx
push 1
push eax
and ecx, 3
lea eax, [esp + 0x22c]
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x107e7cd4
mov ecx, dword [esp + 0x428]
mov edx, dword [esp + 0x424]
mov eax, dword [esp + 0x420]
push 0
push ecx
push edx
push eax
lea ecx, [esp + 0x42c]
push 4
push ecx
push 0x170002
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x107e7cc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x107e7cdc
mov byte [esp + 0x13], 1
jmp 0x107e7c1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov al, byte [esp + 0x13]
test al, al
je 0x107e7d07
lea edx, [esp + 0x14]
push edx
push ebp
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x107e7d07
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x404
ret
Function at 0x107e80c0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x10
lea ecx, [esp]
push esi
push eax
push ecx
call fcn.107e8080
push 0
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x18]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x18]
mov dword [esi], eax
jne 0x107e812f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x107e8116
cmp eax, 3
ja 0x107e8116
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x107e8124
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x107e8140
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
mov al, 0x5c
push esi
mov byte [esp + 4], al
mov byte [esp + 5], al
mov byte [esp + 7], al
push 0
mov al, 0x6e
push 0x80
push 3
mov byte [esp + 0x15], al
mov byte [esp + 0x17], al
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
mov byte [esp + 0x22], 0x2e
mov byte [esp + 0x24], 0x53
mov byte [esp + 0x26], 0x74
mov byte [esp + 0x28], 0x6c
mov byte [esp + 0x29], 0x55
mov byte [esp + 0x2a], 0x73
mov byte [esp + 0x2b], 0x62
mov byte [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov esi, dword [esp + 0x18]
mov dword [esi], eax
jne 0x107e81e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jb 0x107e81c7
cmp eax, 3
ja 0x107e81c7
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov esi, dword [esi]
cmp esi, 0xffffffff
je 0x107e81d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x107ee890
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov ebx, 4
sub esi, ecx
lea eax, [edi + ecx]
lea edx, [esp + ebp + 0x10]
add edi, ebx
mov cl, byte [esi + eax]
mov byte [edx], cl
mov byte [eax], cl
add edx, 4
inc eax
dec ebx
jne 0x107ee8b3
inc ebp
cmp ebp, 4
jl 0x107ee89b
cmp edi, 0xb0
jge 0x107ee96a
mov ebp, 0x107cd2f8
xor eax, eax
lea ecx, [esp + 0x10]
inc eax
mov edx, eax
and edx, reloc.WSOCK32.dll_closesocket
jns 0x107ee8ee
dec edx
or edx, 0xfffffffc
inc edx
xor ebx, ebx
add ecx, 4
mov bl, byte [esp + edx*4 + 0x13]
mov dl, byte [ebx + 0x107cd0f8]
mov bl, byte [ecx - 4]
xor bl, dl
cmp eax, 4
mov byte [ecx - 4], bl
jl 0x107ee8de
mov al, byte [ebp]
mov cl, byte [esp + 0x10]
xor cl, al
add ebp, 4
mov byte [esp + 0x10], cl
mov esi, 1
lea eax, [esp + esi + 0x10]
mov ecx, 4
mov dl, byte [eax - 1]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x107ee928
inc esi
cmp esi, 4
jl 0x107ee91f
xor esi, esi
lea eax, [esp + esi + 0x10]
mov ecx, 4
mov ebx, dword [esp + 0x24]
mov dl, byte [eax]
add eax, 4
mov byte [edi + ebx], dl
inc edi
dec ecx
jne 0x107ee948
inc esi
cmp esi, 4
jl 0x107ee93f
cmp edi, 0xb0
jl 0x107ee8d8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x107ee980
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebp
push esi
call fcn.107eea10
add esp, 8
lea edi, [ebp + 0x10]
mov ebx, 9
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x107cd0f8]
mov byte [eax + esi - 1], dl
jl 0x107ee9a0
push 0
push esi
call fcn.107eea40
push esi
call fcn.107eea90
push edi
push esi
call fcn.107eea10
add esp, 0x14
add edi, 0x10
dec ebx
jne 0x107ee99e
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x107cd0f8]
mov byte [eax + esi - 1], dl
jl 0x107ee9d5
push 0
push esi
call fcn.107eea40
add ebp, 0xa0
push ebp
push esi
call fcn.107eea10
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x107eea10
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push ebx
push esi
sub ecx, eax
mov esi, 0x10
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x107eea21
pop esi
pop ebx
ret

Function at 0x107eebb0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
lea eax, [ebp + 0xa0]
push eax
push esi
call fcn.107eea10
add esp, 8
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x107cd1f8]
mov byte [eax + esi - 1], dl
jl 0x107eebce
push 0x10
push esi
call fcn.107eea40
add esp, 8
lea edi, [ebp + 0x90]
mov ebx, 9
push edi
push esi
call fcn.107eea10
push esi
call fcn.107eec40
add esp, 0xc
xor eax, eax
xor ecx, ecx
mov cl, byte [eax + esi]
inc eax
cmp eax, 0x10
mov dl, byte [ecx + 0x107cd1f8]
mov byte [eax + esi - 1], dl
jl 0x107eec0b
push 0x10
push esi
call fcn.107eea40
add esp, 8
sub edi, 0x10
dec ebx
jne 0x107eebf9
push ebp
push esi
call fcn.107eea10
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x107eec40
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
xor edi, edi
lea eax, [esp + edi + 0x14]
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
mov eax, ebp
sub eax, ecx
mov esi, 1
mov dword [esp + 0x10], eax
lea edx, [esi - 2]
and edx, 3
add edx, edi
mov al, byte [edx + ebp]
push eax
push 9
call fcn.107eeb60
lea ecx, [esi + 1]
mov bl, al
and ecx, 3
add ecx, edi
mov dl, byte [ecx + ebp]
push edx
push 0xd
call fcn.107eeb60
xor bl, al
mov eax, esi
and eax, 3
add eax, edi
mov cl, byte [eax + ebp]
push ecx
push 0xb
call fcn.107eeb60
mov edx, dword [esp + 0x28]
xor bl, al
mov eax, dword [esp + 0x40]
mov cl, byte [edx + eax]
push ecx
push 0xe
call fcn.107eeb60
add esp, 0x20
xor bl, al
mov eax, dword [esp + 0x28]
inc esi
mov byte [eax], bl
lea edx, [esi - 1]
inc eax
cmp edx, 4
mov dword [esp + 0x28], eax
jl 0x107eec66
add edi, 4
cmp edi, 0x10
jl 0x107eec4d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [ebp], eax
mov eax, dword [esp + 0x20]
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
pop edi
mov dword [ebp + 0xc], eax
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x107fc4b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
mov bx, word [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
cmp bx, 4
mov word [esi], 0
jbe 0x107fc4d3
pop esi
xor al, al
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.107fc1a0
lea ecx, [esp + 0x38]
push 0x10
push ecx
call fcn.107fc1f0
lea edx, [esp + 0x18]
push 0x10
push edx
call fcn.107fc290
lea eax, [esp + 0x18]
add bl, 0x31
push eax
call fcn.107da600
and eax, 0xffff
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc]
mov byte [esp + eax + 0x1c], bl
push 0x10
push edx
lea eax, [esp + 0x24]
push 0x107cdb54
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x107fc583
lea edx, [esp + 8]
push 0x2c
push edx
call fcn.107fc480
test ax, ax
je 0x107fc54d
and eax, 0xffff
mov byte [esp + eax + 8], 0
cmp byte [esp + 8], 0x30
jne 0x107fc56f
mov al, byte [esp + 9]
and al, 0xdf
cmp al, 0x58
jne 0x107fc56f
lea ecx, [esp + 0xa]
push esi
push ecx
call fcn.107da710
test al, al
jne 0x107fc583
jmp 0x107fc57e
lea edx, [esp + 8]
push esi
push edx
call fcn.107da670
test al, al
jne 0x107fc583
mov word [esi], 0
mov ax, word [esi]
test ax, ax
je 0x107fc59e
cmp ax, 0xffff
je 0x107fc59e
pop esi
mov eax, 1
pop ebx
add esp, 0x40
ret 8
pop esi
xor eax, eax
pop ebx
add esp, 0x40
ret 8
Function at 0x107fc5b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
mov bx, word [esp + 0x48]
push esi
mov esi, dword [esp + 0x50]
cmp bx, 4
mov word [esi], 0
jbe 0x107fc5d3
pop esi
xor al, al
pop ebx
add esp, 0x40
ret 8
lea eax, [esp + 0x28]
push 0x10
push eax
call fcn.107fc1a0
lea ecx, [esp + 0x38]
push 0x10
push ecx
call fcn.107fc1f0
lea edx, [esp + 0x18]
push 0x10
push edx
call fcn.107fc290
lea eax, [esp + 0x18]
add bl, 0x31
push eax
call fcn.107da600
and eax, 0xffff
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0xc]
mov byte [esp + eax + 0x1c], bl
push 0x10
push edx
lea eax, [esp + 0x24]
push 0x107cdb54
lea ecx, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x107fc67e
lea edx, [esp + 8]
push 0x2c
push edx
call fcn.107fc480
test ax, ax
je 0x107fc67e
and eax, 0xffff
mov cl, byte [esp + eax + 9]
and cl, 0xdf
cmp cl, 0x54
jne 0x107fc67e
cmp byte [esp + eax + 0xa], 0x3a
jne 0x107fc67e
lea edx, [esp + eax + 0xb]
push esi
push edx
call fcn.107da670
test al, al
je 0x107fc679
mov ax, word [esi]
cmp ax, 1
jl 0x107fc679
cmp ax, 7
jle 0x107fc67e
mov word [esi], 0
xor eax, eax
cmp word [esi], ax
pop esi
pop ebx
setne al
add esp, 0x40
ret 8

Function at 0x107fc690
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50
lea eax, [esp]
push esi
push 0x10
push eax
call fcn.107fc1a0
lea ecx, [esp + 0x24]
push 0x10
push ecx
call fcn.107fc1f0
lea edx, [esp + 0x14]
push 0x10
push edx
call fcn.107fc350
lea eax, [esp + 0x44]
push 0x10
push eax
call fcn.107fc310
lea ecx, [esp + 4]
lea edx, [esp + 0x34]
push ecx
push 0x10
push edx
lea eax, [esp + 0x20]
push 0x107cdb54
lea ecx, [esp + 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
je 0x107fc700
lea edx, [esp + 0x34]
lea eax, [esp + 0x44]
push edx
push eax
call fcn.107da4b0
mov ecx, dword [esp + 0x5c]
mov byte [ecx], al
xor eax, eax
test esi, esi
setne al
pop esi
add esp, 0x50
ret 8

Function at 0x107fc710
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x30
lea eax, [esp]
push 0x10
push eax
call fcn.107fc1a0
lea ecx, [esp + 0x20]
push 0x10
push ecx
call fcn.107fc1f0
lea edx, [esp + 0x10]
push 0x10
push edx
call fcn.107fc2d0
lea eax, [esp]
lea ecx, [esp + 0x10]
push eax
push 0
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor edx, edx
mov ecx, dword [esp + 0x34]
test eax, eax
setne dl
mov word [ecx], ax
mov al, dl
add esp, 0x30
ret 4
Function at 0x107fc770
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x70
lea eax, [esp]
push esi
mov esi, dword [esp + 0x78]
push 0x10
push 0
push eax
mov word [esi], 0
call fcn.107da620
lea ecx, [esp + 0x14]
push 0x10
push ecx
call fcn.107fc1a0
lea edx, [esp + 0x34]
push 0x10
push edx
call fcn.107fc1f0
lea eax, [esp + 0x24]
push 0x10
push eax
call fcn.107fc240
lea ecx, [esp + 0x44]
push 0x10
push ecx
call fcn.107fc3a0
lea edx, [esp + 0x54]
push 0x10
push edx
call fcn.107fc430
lea eax, [esp + 0x64]
push 0x10
push eax
call fcn.107fc3f0
lea ecx, [esp + 0x14]
lea edx, [esp + 4]
push ecx
push 0x10
push edx
lea eax, [esp + 0x30]
push 0x107cdb54
lea ecx, [esp + 0x44]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x107fc85e
lea edx, [esp + 0x44]
lea eax, [esp + 4]
push edx
push eax
call fcn.107da4b0
test al, al
je 0x107fc81f
xor eax, eax
mov word [esi], 2
cmp word [esi], ax
pop esi
setne al
add esp, 0x70
ret 4
lea ecx, [esp + 0x54]
lea edx, [esp + 4]
push esp
and al, 4
Function at 0x409be0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
sub esp, 0x82c
cmp dword [0x562ad4], 0x13f7
mov eax, dword [esp + 0x830]
push ebx
mov ebx, dword [eax + 4]
push ebp
push esi
mov esi, dword [esp + 0x840]
mov ebp, dword [esi]
push edi
mov edi, dword [eax]
mov dword [esp + 0x1c], 0xc6ef3720
jne 0x409c2d
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
cmp dword [0x562ad4], 0x60b
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], edx
jne 0x409c7d
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
mov dword [esp + 0x20], 0x20
jmp 0x409c90
mov edx, edi
shl edx, 4
cmp dword [0x562ad4], 5
mov dword [esp + 0x18], edx
jne 0x409cd1
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
push 0
call dword [sym.imp.KERNEL32.dll_HeapLock]
lea eax, [esp + 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00409b90
mov eax, dword [esp + 0x1c]
add eax, edi
mov dword [esp + 0x14], eax
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x30]
cmp dword [0x562ad4], 0x1b
mov dword [esp + 0x10], eax
mov dword [0x545f34], 0xffcf03fc
jne 0x409d2d
push 0
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x14]
mov dword [0x545f34], 0
xor eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add dword [0x545f34], eax
sub ebx, dword [esp + 0x10]
mov esi, ebx
shl esi, 4
cmp dword [0x562ad4], 0x78c
mov dword [esp + 0x18], ebx
jne 0x409d78
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov ecx, ebx
shr ecx, 5
mov dword [0x545f38], 0xc5e121b4
mov dword [0x545f3c], 0xffffffff
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
lea eax, [esi + ebp]
xor eax, dword [esp + 0x10]
push 0x9e3779b9
xor eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
sub edi, eax
call fcn.00408d50
sub dword [esp + 0x20], 1
jne 0x409c90
mov eax, dword [esp + 0x840]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov dword [eax + 4], ebx
pop ebx
add esp, 0x82c
ret 8
Function at 0x409df0
Capabilities:
Copy file
Manipulate console buffer
Terminate thread

Disassembly:
sub esp, 0xa98
cmp dword [0x562ad4], 0x516
jne 0x409e54
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll__hread]
push 0
lea eax, [esp + 0x29c]
push eax
push 0
call sub.KERNEL32.dll_VerLanguageNameA
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
xor edx, edx
xor ecx, ecx
mov word [esp + 2], dx
lea eax, [esp + 4]
push eax
mov word [esp + 4], cx
mov ecx, dword [esp + 4]
push ecx
push edx
lea edx, [esp + 0x6a4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [esp + 0xaa0]
shr eax, 3
test eax, eax
jbe 0x409f7b
mov ecx, dword [esp + 0xa9c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileExA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x562ad4], 0x29
jne 0x409edb
xor eax, eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x34]
push ecx
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call esi
push 0
push 0
push 0
push 0
push 0
push 0
call edi
lea edx, [esp + 0x2c]
push edx
push 0x401370
call ebx
push 0
call ebp
cmp dword [0x562ad4], 0xe1b
jne 0x409eff
lea eax, [esp + 0x2a8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x562ad4], 0x1c
jne 0x409f55
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push 0
push 0
push 0
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
lea edx, [esp + 0x194]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea eax, [esp + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov ecx, dword [esp + 0xab4]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.00409be0
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x409e91
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa98
ret 0xc
Function at 0x409f90
Capabilities:
Connect pipe
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
sub esp, 0x6c
cmp dword [0x562ad4], 0x37
jne 0x40a084
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x401398
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
lea edx, [esp + 4]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
push 0
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
push 0x30
lea eax, [esp + 0x40]
push 0
push eax
mov dword [esp + 0x44], 0
call fcn.0040af20
add esp, 0xc
push 0
lea ecx, [esp + 0x3c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
mov dword [esp], 0
mov eax, dword [0x562ad8]
add dword [esp], eax
mov eax, 0x38d6
add dword [esp], eax
mov edx, dword [esp]
mov eax, dword [esp + 0x70]
mov cl, byte [edx + eax]
mov edx, dword [0x545f30]
mov byte [edx + eax], cl
add esp, 0x6c
ret 4

Function at 0x40a0f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov al, 0x65
mov cl, 0x6c
push 0x4c2568
mov byte [0x4c2569], al
mov byte [0x4c256a], 0x72
mov byte [0x4c2570], 0x2e
mov byte [0x4c2571], 0x64
mov byte [0x4c2572], cl
mov byte [0x4c2574], 0
mov byte [0x4c256c], al
mov byte [0x4c256d], cl
mov byte [0x4c256e], 0x33
mov byte [0x4c256f], 0x32
mov byte [0x4c2573], al
mov byte [0x4c256b], 0x6e
mov byte [0x4c2568], 0x6b
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x562ad4]
mov edx, dword [0x545f30]
mov dword [0x56216c], eax
lea eax, [esp]
push eax
push 0x40
push ecx
push edx
mov byte [0x4c2576], 0
mov byte [0x4c256f], 0x50
mov byte [0x4c256d], 0x61
mov byte [0x4c2568], 0x60
mov byte [0x4c2570], 0x7c
mov byte [0x4c2571], 0x6f
mov byte [0x4c2575], 0x74
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x40b1c0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40b1df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40b1e6
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40b1fd
mov ecx, dword [ebp - 4]
push ecx
call fcn.004114c0
add esp, 4
or eax, 0xffffffff
jmp 0x40b1ff
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x412330
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c1304]
jne 0x41233a
repz ret
jmp fcn.0041e310