joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d33c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d34f
add esp, 0xfffffff0
call fcn.00403d6c
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403af4
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d375
cmp dword [esi + 0x58], 0x40
jb 0x41d55b
jmp 0x41d37b
jl 0x41d55b
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00406e44
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041cef4
cmp word [ebx + 0xc], 0x5a4d
jne 0x41d55b
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41d55b
cmp ecx, 0x10000
jge 0x41d55b
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d3d6
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d3dc
jg 0x41d55b
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00406e44
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041cef4
cmp dword [ebx + 0x4c], 0x4550
jne 0x41d55b
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041cef4
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41d493
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d457
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d45d
jg 0x41d4e4
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
jmp 0x41d4e4
cmp ax, 0x14c
jne 0x41d4e4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d4b4
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d4b6
jg 0x41d4e4
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41d55b
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d515
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d517
jg 0x41d55b
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0x4d2e0c]
call fcn.00405b38
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041cef4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41d572
call fcn.00403dc4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41e270
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 0x4d472f
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 0x41e321
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 0x41e30a
test esi, esi
jbe 0x41e321
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.00408868
test eax, eax
jne 0x41e2fc
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 0x41e321
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e2d9
jmp 0x41e321
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e321
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 0x4d4736
ret
Function at 0x41eb80
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 0x4d512f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404c94
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41ebbb
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41ebd4
lea eax, [ebp - 0x10]
mov edx, dword [0x4ea188]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404cf4
jmp 0x41ebe7
lea eax, [ebp - 0x10]
mov edx, dword [0x4ea188]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404cf4
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41ebf3
adc edx, 0
mov edx, dword [edx*4 + 0x4e8ca8]
call fcn.00404ee4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404ec8
push eax
call fcn.00406ab8
mov esi, eax
cmp esi, 0xffffffff
je 0x41ed01
mov eax, 0x40
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ecf4
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d58
mov eax, edi
call fcn.00403270
mov eax, 0x18
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ecf4
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ecf4
cmp dx, 0x150
ja 0x41ecf4
mov eax, edi
call fcn.00403270
mov eax, 0xe0
call fcn.00403250
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d00
test eax, eax
je 0x41ecf4
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ecf4
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.00404cd0
mov eax, edi
call fcn.00403270
push esi
call fcn.00406a70
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00404ff0
jne 0x41ed19
inc ebx
cmp ebx, 0x19
jne 0x41ebad
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5136
lea eax, [ebp - 0x10]
call fcn.00404c94
ret
Function at 0x41f054
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
xor ebx, ebx
push 0
push 0
push 0
push edi
call fcn.00406d58
push 0
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call fcn.00406d00
test eax, eax
je 0x41f0f1
cmp word [esi], 0x5a4d
jne 0x41f0f1
push 0
push 0
mov eax, dword [esi + 0x3c]
push eax
push edi
call fcn.00406d58
push 0
lea eax, [ebp - 4]
push eax
push 0x18
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.00406d00
test eax, eax
je 0x41f0f1
cmp dword [ebp - 0x1c], 0x4550
jne 0x41f0f1
lea edx, [ebp - 0x18]
mov ecx, 0x14
mov eax, dword [ebp + 0xc]
call fcn.00406e3c
mov ax, word [ebp - 0x18]
cmp ax, 0x14c
jb 0x41f0f1
cmp ax, 0x150
ja 0x41f0f1
push 0
lea eax, [ebp - 4]
push eax
push 0xe0
mov eax, dword [ebp + 8]
push eax
push edi
call fcn.00406d00
test eax, eax
je 0x41f0f1
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0xb8b840
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4e4000]
push edi
jmp 0xb8b85a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb8b861
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb8b850
mov eax, 1
add ebx, ebx
jne 0xb8b873
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb8b884
jne 0xb8b8a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb8b8a3
dec eax
add ebx, ebx
jne 0xb8b890
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb8b868
add ebx, ebx
jne 0xb8b89f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb8b8f5
xor ecx, ecx
sub eax, 3
jb 0xb8b8bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb8b92a
sar eax, 1
mov ebp, eax
jmp 0xb8b8c6
add ebx, ebx
jne 0xb8b8c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb8b894
inc ecx
add ebx, ebx
jne 0xb8b8d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb8b894
add ebx, ebx
jne 0xb8b8e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb8b8d6
jne 0xb8b8f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb8b8d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb8b914
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb8b906
jmp 0xb8b856
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb8b914
add edi, ecx
jmp 0xb8b856
pop esi
mov edi, esi
mov ecx, 0xd3ac
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb8b932
cmp byte [edi], 0x22
jne 0xb8b932
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xb8b937
lea edi, [esi + 0x787000]
mov eax, dword [edi]
or eax, eax
je 0xb8b9af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x791d4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x791e84]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb8b964
mov ecx, edi
jns 0xb8b993
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x791e8c]
or eax, eax
je 0xb8b9a9
mov dword [ebx], eax
add ebx, 4
jmp 0xb8b981
call dword [esi + 0x791e88]
mov ebp, dword [esi + 0x791e90]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xb8b9e3
sub esp, 0xffffff80
jmp 0x5b8381
Function at 0x40d44a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [0x820d98]
sub esp, 0x10
test eax, eax
push esi
mov esi, ecx
je 0x40d532
push str.Combat
call fcn.004372b0
mov edx, dword [eax]
add esp, 4
mov ecx, eax
call dword [edx + 0x20]
test al, al
je 0x40d532
call fcn.00477ca0
test eax, eax
je 0x40d532
call fcn.00477ca0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x50]
test al, al
je 0x40d532
mov eax, dword [0x809d3c]
push 0
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.005dd7a0
mov ecx, dword [esp + 4]
mov dx, word [0x83f43c]
mov word [ecx], dx
mov ecx, dword [0x85fd18]
mov eax, dword [str.TDBERR]
cmp ecx, 0x1822
jle 0x40d4de
mov ecx, dword [0x85fd0c]
mov ecx, dword [ecx + 0x6088]
test ecx, ecx
je 0x40d4de
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov eax, dword [eax]
push eax
mov eax, dword [esi + 0x758]
push eax
lea ecx, [esp + 0xc]
push 0x7f54d0
push ecx
call fcn.005ddb30
mov ecx, dword [0x855edc]
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 4]
push 0
push 0
push edx
push eax
mov dword [esp + 0x18], 0x3f333333
mov dword [esp + 0x1c], 0x3f333333
mov dword [esp + 0x20], 0x3f333333
call fcn.006a76e0
lea ecx, [esp + 4]
call fcn.005dd990
pop esi
add esp, 0x10
ret
Function at 0x413100
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov al, byte [esp + 4]
sub esp, 0x10
push esi
mov esi, ecx
cmp al, byte [esi + 0x7bd]
je 0x4132cc
mov ecx, dword [0x820d98]
test ecx, ecx
je 0x413205
cmp al, 1
jne 0x41313a
mov ecx, esi
call fcn.0040cf00
push esi
call fcn.00416420
jmp 0x413202
push str.Combat
call fcn.004372b0
mov edx, dword [eax]
add esp, 4
mov ecx, eax
call dword [edx + 0x20]
test al, al
je 0x4131fc
call fcn.00477ca0
test eax, eax
je 0x4131fc
call fcn.00477ca0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x50]
test al, al
je 0x4131fc
mov eax, dword [0x809d3c]
push 0
push 0
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.005dd7a0
mov ecx, dword [esp + 4]
mov dx, word [0x83f43c]
push 0x1c0a
mov word [ecx], dx
call fcn.00409840
add esp, 4
lea ecx, [esp + 4]
push eax
mov eax, dword [esi + 0x758]
push eax
push 0x7f54d0
push ecx
call fcn.005ddb30
mov ecx, dword [0x855edc]
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 4]
push 0
push 0
push edx
push eax
mov dword [esp + 0x18], 0x3f333333
mov dword [esp + 0x1c], 0x3f333333
mov dword [esp + 0x20], 0x3f333333
call fcn.006a76e0
lea ecx, [esp + 4]
call fcn.005dd990
push esi
call fcn.004163d0
add esp, 4
mov al, byte [esi + 0x7bd]
push edi
test al, al
jne 0x4132b2
mov eax, dword [esi + 0x7a4]
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
test eax, eax
je 0x413266
mov dword [esi + 0x7a4], 0
mov al, byte [0x81c644]
test al, al
jne 0x413248
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call edi
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x413258
sub eax, ecx
jmp 0x413260
mov ecx, dword [0x83f454]
add eax, ecx
mov dword [esi + 0x7a8], eax
mov eax, dword [esi + 0x7b4]
test eax, eax
je 0x4132b2
mov dword [esi + 0x7b4], 0
mov al, byte [0x81c644]
test al, al
jne 0x413294
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call edi
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x4132a4
sub eax, ecx
jmp 0x4132ac
mov edx, dword [0x83f454]
add eax, edx
mov dword [esi + 0x7b8], eax
mov al, byte [esp + 0x1c]
lea ecx, [esi + 0xa0]
mov byte [esi + 0x7bd], al
push 1
mov edx, dword [ecx]
push 7
call dword [edx + 0x38]
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x4350e0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x500
push ebx
push ebp
push esi
push edi
xor bl, bl
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x110]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x110]
lea esi, [esp + 0x110]
test al, al
je 0x435213
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x4351a0
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
push 0
push 0
push 0
push 0
stosw word es:[edi], ax
push 0
lea ecx, [esp + 0x24]
push 0x100
push ecx
push esi
stosb byte es:[edi], al
call ebx
test eax, eax
je 0x4351a0
lea edx, [esp + 0x10]
push edx
call ebp
cmp eax, 0xb
jg 0x435188
mov eax, 0xb
push eax
mov eax, dword [str.Renegade_Data]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0078d550
add esp, 0xc
test eax, eax
je 0x4351bb
push esi
call ebp
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x43513b
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x500
ret 4
test esi, esi
mov al, 1
je 0x435215
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [esp + 0x514]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, ebp
lea edi, [ebx + 1]
push edi
call fcn.005dd330
mov eax, dword [ebp]
mov ecx, dword [0x809d38]
cmp eax, ecx
je 0x4351f1
mov dword [eax - 4], ebx
mov ecx, edi
mov edi, dword [ebp]
mov edx, ecx
mov al, 1
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 ebp
pop ebx
add esp, 0x500
ret 4
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x500
ret 4
Function at 0x435a10
Capabilities:
Set console window title

Disassembly:
push ecx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 4]
test eax, eax
je 0x435af5
mov al, byte [0x82023c]
mov edx, dword [esp + 0x10]
mov byte [esp + 4], al
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push ebx
push esi
push edi
push ecx
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, ebp
call fcn.004357e0
mov esi, eax
mov eax, dword [0x809d38]
mov dword [esp + 0x1c], eax
mov edi, dword [esi]
cmp edi, eax
je 0x435aab
mov ebx, dword [edi - 4]
test ebx, ebx
jne 0x435a79
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, esi
push ebx
call fcn.004029d0
mov eax, dword [0x809d38]
test ebx, ebx
jle 0x435aab
mov edi, dword [esi]
xor ebx, ebx
cmp edi, eax
je 0x435a9e
mov ebx, dword [edi - 4]
test ebx, ebx
jne 0x435a9e
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
mov ecx, esi
push ebx
call fcn.004029d0
inc ebx
push 0
push ebx
lea ecx, [esp + 0x24]
call fcn.005dcfa0
push esi
lea ecx, [esp + 0x20]
call fcn.0041f5a0
lea ecx, [esp + 0x18]
call fcn.005dd410
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
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]
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea ecx, [esp + 0x1c]
call fcn.005dd410
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x435ed0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x158
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xe]
mov eax, dword [esp + 0xa]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
push str.renlog__d__d__02d.txt
push 0x81e448
call fcn.0078cdc6
mov eax, dword [esp + 0x22]
mov ecx, dword [0x7f7de8]
and eax, 0xffff
add esp, 0x14
cmp ecx, eax
je 0x435fe7
cmp dword [0x7f9344], 0xffffffff
je 0x435fe7
lea ecx, [esp]
lea edx, [esp + 8]
push ecx
push edx
mov dword [0x7f7de8], eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x435fe7
mov eax, dword [0x7f9344]
push esi
cdq
push 0xc9
push 0x2a69c000
push edx
push eax
call fcn.0078dc90
mov ecx, dword [esp + 4]
sub ecx, eax
mov eax, dword [esp + 8]
sbb eax, edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
lea eax, [esp + 0x1c]
push eax
push str.renlog_.txt
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x435fd3
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CompareFileTime]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x3c]
push ecx
push edx
call edi
cmp eax, 0xffffffff
jne 0x435fc4
lea eax, [esp + 0x54]
push eax
call ebp
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
test eax, eax
jne 0x435fac
pop edi
pop ebp
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0x81e448
pop esi
add esp, 0x158
ret
mov eax, 0x81e448
add esp, 0x158
ret
Function at 0x436840
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov edx, dword [ebp + 8]
mov eax, dword [0x809d38]
push ebx
mov ebx, ecx
push esi
cmp edx, eax
push edi
mov dword [ebp - 4], ebx
je 0x436a37
mov eax, dword [edx - 4]
test eax, eax
jne 0x436878
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [edx - 4], ecx
je 0x436a37
mov al, byte [ebx + 0x115]
test al, al
je 0x436a37
mov al, byte [0x81c644]
test al, al
jne 0x4368a0
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
call esi
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x4368b6
sub eax, ecx
jmp 0x4368be
mov ecx, dword [0x83f454]
add eax, ecx
sub eax, dword [ebx + 0x11c]
cmp eax, 0x5dc
jbe 0x436a37
mov al, byte [0x81c644]
test al, al
jne 0x4368e9
mov ecx, 0x83f450
call fcn.005ddd50
mov byte [0x81c644], 1
call esi
mov ecx, dword [0x83f450]
cmp eax, ecx
jbe 0x4368f9
sub eax, ecx
jmp 0x436901
mov edx, dword [0x83f454]
add eax, edx
mov edx, dword [ebp + 8]
mov dword [ebx + 0x11c], eax
mov eax, dword [0x809d38]
xor ecx, ecx
cmp edx, eax
je 0x43692e
mov ecx, dword [edx - 4]
test ecx, ecx
jne 0x43692e
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [edx - 4], ecx
mov edx, dword [ebp + 8]
push 0
push ecx
push edx
call fcn.005e6d90
mov ecx, dword [ebx + 0x118]
add esp, 0xc
cmp eax, ecx
mov dword [ebp - 0xc], eax
je 0x436a37
mov ebx, dword [ebp + 8]
mov eax, dword [0x809d38]
xor esi, esi
cmp ebx, eax
je 0x436974
mov esi, dword [ebx - 4]
test esi, esi
jne 0x436974
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov dword [ebx - 4], esi
mov ebx, dword [ebp + 8]
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0078c8d0
mov eax, esp
test esi, esi
mov dword [ebp - 8], eax
jle 0x43699b
mov cl, byte [ebx]
inc ebx
cmp cl, 0x25
jne 0x436995
mov byte [eax], cl
inc eax
mov byte [eax], cl
inc eax
dec esi
jne 0x43698a
mov esi, dword [ebp - 4]
mov byte [eax], 0
lea eax, [ebp - 0x24]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov ebx, eax
mov eax, dword [ebp - 0x20]
test ebx, ebx
mov edi, eax
je 0x436a12
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push eax
mov eax, dword [esi + 4]
push 0x4060
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov eax, dword [esi + 0x118]
test eax, eax
jne 0x436a12
mov al, byte [0x82023c]
test al, al
jne 0x4369fc
mov edx, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
push edi
push 0x640
push 0x1b
push edx
jmp 0x436a0c
mov ecx, dword [esi + 4]
lea eax, [ebp - 4]
push eax
push edi
push 0x640
push 0x70
push ecx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov edx, dword [ebp - 8]
push edx
push esi
call fcn.00435b00
add esp, 8
test ebx, ebx
je 0x436a2e
mov eax, dword [esi + 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x118], ecx
lea ecx, [ebp + 8]
call fcn.005dd410
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4