joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xdeb008], 0x8088405
inc edx
mov dword [ebx + 0xdeb008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cb84
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cbb5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cb9d
add dl, dl
jne 0x41cbc0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc11
xor eax, eax
add dl, dl
jne 0x41cbcd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccae
add dl, dl
jne 0x41cbdc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbe7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbf2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbfd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc07
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbac
mov eax, 1
add dl, dl
jne 0x41cc1f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc2a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc16
sub eax, ebx
mov ebx, 1
jne 0x41cc5d
mov ecx, 1
add dl, dl
jne 0x41cc43
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc4e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc3a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbac
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc74
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc7f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc6b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbac
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cccf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cbac
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41dffc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0xdd64bb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e0ad
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e096
test esi, esi
jbe 0x41e0ad
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088a4
test eax, eax
jne 0x41e088
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e0ad
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e065
jmp 0x41e0ad
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e0ad
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xdd64c2
ret
Function at 0x41e8f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0xdd6e9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41e92b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e944
lea eax, [ebp - 0x10]
mov edx, dword [0xded23c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41e957
lea eax, [ebp - 0x10]
mov edx, dword [0xded23c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41e963
adc edx, 0
mov edx, dword [edx*4 + 0xdec0d0]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41ea71
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ea64
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d94
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ea64
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ea64
cmp dx, 0x150
ja 0x41ea64
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ea64
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ea89
inc ebx
cmp ebx, 0x19
jne 0x41e91d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xdd6ea6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x40d000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
cmp esi, eax
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
je 0x40d0d7
mov edi, dword [ebp + 0x14]
lea ecx, [edi + 0x11]
cmp esi, ecx
jbe 0x40d0d7
mov ebx, dword [ebp + 8]
mov edx, esi
sub edx, edi
push eax
sub edx, 2
push edx
push ebx
call fcn.00427456
lea eax, [ebp - 4]
push 2
push eax
push ebx
call fcn.00427b93
add esp, 0x18
cmp eax, 2
jne 0x40d0d7
mov ecx, dword [ebp - 4]
mov eax, ecx
and eax, 0xffff
cmp esi, eax
jbe 0x40d0d7
cmp cx, 0x11
jb 0x40d0d7
neg eax
push 1
push eax
push ebx
call fcn.00427456
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
and ecx, 0xffff
push 0x11
add edi, ecx
push esi
push ebx
mov dword [ebp + 0x14], edi
call fcn.00427b93
add esp, 0x18
cmp eax, 0x11
jne 0x40d0d7
mov ecx, 9
mov edi, 0x430450
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x40d0d7
mov eax, dword [ebp + 0xc]
cmp word [eax + 9], 0x100
jne 0x40d0c2
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
sub eax, ecx
pop edi
pop esi
mov dword [ebp - 8], eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push ecx
push edx
push eax
push ebx
call fcn.0040d000
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40fca0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
mov esi, dword [ebx + 0x11bc]
mov edx, dword [ebx + 0x11b0]
cmp esi, edx
jl 0x40fd02
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x11b4]
imul eax, dword [ebp + 0x10]
add ecx, edx
lea edi, [eax + esi]
cmp edi, ecx
jae 0x40fd02
mov edi, dword [ebp + 8]
mov ecx, eax
sub esi, edx
mov edx, ecx
shr ecx, 2
lea esi, [esi + ebx + 0x1b0]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x11bc]
pop edi
add ecx, eax
pop esi
mov dword [ebx + 0x11bc], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebx + 8]
push esi
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x54]
and esi, 0x800000ff
jns 0x40fd1d
dec esi
or esi, 0xffffff00
inc esi
mov edx, dword [edi]
lea eax, [ebx + 0x1b0]
push 0x1000
push eax
mov ecx, edi
mov dword [ebx + 0x1ac], esi
call dword [edx + 0x38]
mov esi, eax
test esi, esi
mov dword [ebp - 4], esi
jle 0x40fd79
mov edi, 0xfffffe50
lea ecx, [ebx + 0x1b0]
sub edi, ebx
mov eax, dword [ebx + 0x1ac]
and eax, 0xff
mov dl, byte [eax + ebx + 0xaa]
mov al, byte [ecx]
xor al, dl
mov byte [ecx], al
mov edx, dword [ebx + 0x1ac]
inc edx
inc ecx
mov dword [ebx + 0x1ac], edx
lea eax, [edi + ecx]
cmp eax, esi
jl 0x40fd4c
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
imul edx, dword [ebp + 0x10]
mov ecx, edx
lea esi, [ebx + 0x1b0]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 4]
and ecx, 3
cmp eax, edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x11bc]
mov dword [ebx + 0x11b4], eax
mov dword [ebx + 0x11b0], ecx
jb 0x40fdb4
mov eax, edx
add ecx, eax
pop edi
mov dword [ebx + 0x11bc], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b026
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x458
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x2fc]
mov dword [ebp - 0x10], esi
call fcn.0040eb20
push 1
lea eax, [ebp - 0x190]
push 0x43045c
push eax
mov dword [ebp - 0x2fc], 0x42c250
call fcn.00421320
add esp, 0xc
mov byte [ebp - 0x18f], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov al, byte [ebx + 5]
cmp al, 0x3a
je 0x410424
cmp byte [ebx + 4], 0x5c
jne 0x4103b3
cmp al, 0x5c
je 0x410424
test byte [esi + 0x15c], 8
jne 0x4103d4
mov eax, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x464]
push ecx
push 0x168
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x464]
push 0x3a
push edx
call fcn.00422510
add esp, 8
inc eax
lea edi, [ebp - 0x464]
or ecx, 0xffffffff
mov byte [eax], 0
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x2f8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebx + 4]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebp - 0x2f8]
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
cmp esi, 0x168
jb 0x410464
lea edi, [ebp - 0x2f8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x167
sub eax, ecx
jmp 0x410472
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, ecx
test eax, eax
je 0x410487
push eax
lea ecx, [ebp - 0x2f8]
push edx
push ecx
call fcn.00421950
add esp, 0xc
lea ecx, [ebp - 0x18c]
call fcn.00411380
lea edx, [ebp - 0x2f8]
push 0x167
lea eax, [ebp - 0x188]
push edx
push eax
mov byte [ebp - 4], 1
call fcn.00421320
lea ecx, [ebp - 0x190]
push 1
lea edx, [ebp - 0x20]
push ecx
push edx
mov byte [ebp - 0x21], 0
call fcn.00421320
add esp, 0x18
lea ecx, [ebp - 0x18c]
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 2
call fcn.0041d440
cmp byte [ebp - 0x2f7], 0x3a
jne 0x41050d
mov al, byte [ebp - 0x188]
sub al, 0x40
push eax
call fcn.0041fce0
add esp, 4
and eax, 0xffff
mov dword [ebp - 0x1c], eax
sub esp, 0x17c
lea ecx, [ebp - 0x18c]
mov dword [ebp + 8], esp
mov esi, esp
push ecx
mov ecx, esi
call fcn.004113b0
mov edx, dword [ebp - 0x1c]
mov dword [esi + 0x170], edx
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x174], eax
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x178], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00411230
mov ecx, dword [ebp - 0xc]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xf9
mov dword fs:[0], ecx
add eax, 7
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x411000
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x411093
lea eax, [ebp - 0x44c]
push eax
call fcn.00411120
lea ecx, [ebp - 0x44c]
lea edx, [ebp - 0x2d0]
push ecx
push edx
mov ecx, esi
call fcn.00410d90
mov edi, 0x43045c
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x2d0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [ebp + 8]
push eax
and ecx, 3
push eax
push eax
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], al
push eax
lea eax, [ebp - 0x168]
push 0x168
lea ecx, [ebp - 0x2d0]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x41109e
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov al, byte [ebp - 0x168]
test al, al
je 0x411093
lea edi, [ebp - 0x168]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x412400
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
push esi
mov esi, ecx
lea eax, [ebp - 8]
push edi
mov ecx, dword [esi + 0x10]
push eax
push 0x73
call fcn.0041bad0
test eax, eax
jne 0x41242a
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x740]
push str.NAI.frc
test eax, eax
je 0x412447
lea ecx, [ebp - 0x17c]
push 0x43087c
push ecx
jmp 0x412453
lea edx, [ebp - 0x17c]
push str.c:_s
push edx
call fcn.00421fda
add esp, 0xc
lea eax, [ebp - 0x17c]
push 0x430870
push eax
call fcn.00421e61
mov esi, eax
add esp, 8
test esi, esi
je 0x4124e0
push esi
lea ecx, [ebp - 0x14]
push 0xc
push ecx
call fcn.004225cc
push esi
call fcn.00421a73
lea edx, [ebp - 0x14]
push edx
call fcn.004218b2
mov edi, eax
mov eax, dword [ebp - 4]
push str.daily
push eax
call fcn.0042a010
add esp, 0x1c
test eax, eax
jne 0x4124ae
mov esi, 0x18
jmp 0x4124bc
mov ecx, dword [ebp - 4]
push ecx
call fcn.004218b2
add esp, 4
mov esi, eax
push 0
call fcn.0042218c
lea ecx, [esi + esi*4]
add esp, 4
lea ecx, [ecx + ecx*4]
lea edx, [ecx + ecx*8]
shl edx, 4
add edx, edi
cmp edx, eax
jbe 0x4124e0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push 0
call fcn.0042218c
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 4
mov edi, eax
lea eax, [ebp - 0x17c]
push 0
push eax
call ebx
lea ecx, [ebp - 0x17c]
push 0x430864
push ecx
call fcn.00421e61
mov esi, eax
add esp, 8
test esi, esi
je 0x41252d
push edi
push 0x430860
push esi
call fcn.00421f9e
push esi
call fcn.00421a73
add esp, 0x10
lea edx, [ebp - 0x17c]
push 3
push edx
call ebx
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a700
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x1c]
push ebx
push esi
push edi
test eax, eax
mov esi, ecx
mov dword [ebp - 4], 0
je 0x41a729
mov dword [esi], 0x42c57c
mov dword [esi + 0x170], 0x42c240
mov eax, dword [esi]
lea edi, [esi + 0x70]
push 0xfffffffffffffff5
mov ecx, dword [eax + 4]
mov eax, 0x20202020
mov dword [ecx + esi], 0x42c578
mov ecx, 0x40
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
lea edx, [ebp - 0x20]
mov edi, eax
push edx
push edi
mov dword [esi + 0x6c], edi
call ebx
mov al, byte [ebp - 0x20]
lea ecx, [ebp - 8]
dec al
push ecx
mov byte [esi + 6], al
mov al, byte [ebp - 0x1e]
dec al
push edi
mov byte [esi + 7], al
inc al
mov byte [esi + 4], 0
mov byte [esi + 5], 0
mov byte [esi + 9], al
call dword [sym.imp.KERNEL32.dll_GetConsoleCursorInfo]
lea edx, [ebp - 8]
mov dword [ebp - 4], 0
push edx
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
mov eax, dword [ebp + 0x18]
mov dword [esi + 0xc], eax
xor eax, eax
mov al, byte [esi + 6]
sub eax, 2
cmp eax, 0x50
jbe 0x41a7b0
mov eax, 0x50
push eax
lea ecx, [esi + 0x10]
push str._Press_a_key_
push ecx
call fcn.00421320
xor edx, edx
xor eax, eax
mov dl, byte [esi + 6]
mov al, byte [esi + 4]
sub edx, eax
add esp, 0xc
mov byte [edx + esi + 0xf], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41a80c
mov edi, dword [esi + 0x6c]
lea ecx, [ebp - 0x38]
push ecx
push edi
call ebx
mov al, byte [ebp - 0x32]
test al, al
jne 0x41a80c
lea edx, [ebp - 0x38]
push edx
push edi
call ebx
movzx ax, byte [ebp - 0x34]
mov word [ebp + 0x1c], ax
mov word [ebp + 0x1e], 1
mov ecx, dword [ebp + 0x1c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [esi + 0x6c]
lea edx, [ebp - 0x38]
push edx
push eax
call ebx
movzx cx, byte [ebp - 0x32]
mov word [esi + 0xa], cx
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x41aa00
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
movzx ax, byte [ebp + 8]
movzx dx, byte [ebp + 0xc]
mov ecx, dword [ecx + 0x6c]
mov word [ebp + 8], ax
mov word [ebp + 0xa], dx
mov eax, dword [ebp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop ebp
ret 8
Function at 0x41aab0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b5b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov esi, ecx
push edi
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040f1a0
mov ebx, dword [esi + 0x6c]
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
lea eax, [ebp - 0x34]
mov dword [ebp - 4], 0
push eax
push ebx
call edi
lea ecx, [ebp - 0x4c]
push ecx
push ebx
call edi
movzx dx, byte [ebp - 0x46]
mov word [ebp - 0x10], 0
mov word [ebp - 0xe], dx
mov eax, dword [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov al, byte [esi + 0x10]
lea ebx, [esi + 0x10]
test al, al
je 0x41ab91
push 0xa
push ebx
call fcn.00422510
mov edi, eax
add esp, 8
test edi, edi
je 0x41ab73
mov eax, dword [esi + 0x6c]
inc edi
mov edx, edi
lea ecx, [ebp - 0x10]
push 0
sub edx, ebx
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41ab67
dec word [esi + 0xa]
cmp word [esi + 0xa], 0
jne 0x41ab67
mov ecx, esi
call fcn.0041aab0
movzx cx, byte [esi + 9]
dec ecx
mov word [esi + 0xa], cx
push 1
push edi
mov ecx, esi
call fcn.0041a8f0
jmp 0x41ab91
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x10]
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x6c]
push 0
not ecx
dec ecx
push edx
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
lea ecx, [ebp - 0x1c]
call fcn.0040f2b0
test eax, eax
je 0x41aba5
lea ecx, [ebp - 0x1c]
call fcn.0040f240
lea ecx, [ebp - 0x1c]
call fcn.0040f240
mov edx, dword [esi + 0x6c]
lea ecx, [ebp - 0x4c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov eax, dword [ebp - 0x46]
mov ecx, esi
push eax
push 0
call fcn.0041aa00
mov ecx, esi
call fcn.0041a990
movzx cx, byte [ebp - 0x30]
movzx dx, byte [ebp - 0x2e]
mov word [ebp - 0x10], cx
mov ecx, dword [esi + 0x6c]
mov word [ebp - 0xe], dx
mov eax, dword [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f230
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41ac30
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x20]
push eax
mov esi, dword [edi + 0x6c]
push esi
call ebx
movzx cx, byte [ebp - 0x1a]
mov word [ebp - 4], 0
mov word [ebp - 2], cx
mov edx, dword [ebp - 4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
lea ecx, [ebp - 0x38]
push ecx
push esi
call ebx
mov ebx, dword [ebp - 0x1c]
lea edx, [ebp - 8]
movsx ecx, word [ebp - 0x38]
mov eax, ebx
push 0
and eax, 0xff
push edx
sub ecx, eax
lea edx, [edi + 0x70]
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
movzx cx, byte [ebp - 0x1a]
xor ax, ax
mov word [ebp - 2], cx
mov al, bl
mov word [ebp - 4], ax
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41b4d0
Capabilities:
Access the windows event log
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
xor esi, esi
cmp word [ebp + 0xc], si
mov edi, 0x104
mov ebx, ecx
mov dword [ebp - 0x10], edi
jne 0x41b4f6
mov ax, word [ebx + 0xc]
mov word [ebp + 0xc], ax
mov eax, dword [ebp + 8]
and eax, 0xc0000000
cmp eax, 0x80000000
ja 0x41b524
je 0x41b51b
test eax, eax
je 0x41b512
cmp eax, 0x40000000
jne 0x41b532
mov dword [ebp - 4], 4
jmp 0x41b532
mov dword [ebp - 4], 2
jmp 0x41b532
cmp eax, 0xc0000000
jne 0x41b532
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x118]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x41b5d6
push 2
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_GetSidLengthRequired]
push eax
mov dword [ebp - 8], eax
call fcn.0041d1a0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
lea ecx, [ebp - 0xc]
push eax
lea edx, [ebp - 0x21c]
push ecx
lea eax, [ebp - 8]
push edx
push eax
lea ecx, [ebp - 0x118]
push esi
push ecx
push 0
call edi
test eax, eax
jne 0x41b5d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov dword [ebx + 8], eax
jne 0x41b5d4
push esi
call fcn.0041d1c0
mov edx, dword [ebp - 8]
push edx
call fcn.0041d1a0
add esp, 8
mov esi, eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0xc]
push eax
lea edx, [ebp - 0x21c]
push ecx
lea eax, [ebp - 8]
push edx
push eax
lea ecx, [ebp - 0x118]
push esi
push ecx
push 0
call edi
test eax, eax
je 0x41b58d
jmp 0x41b5d6
xor esi, esi
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push 0
push edx
mov edx, dword [ebp + 0xc]
push 0
push eax
mov eax, dword [ebp - 4]
push esi
push ecx
mov ecx, dword [ebx + 4]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x41b606
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 8], eax
test esi, esi
je 0x41b613
push esi
call fcn.0041d1c0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10