joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4572f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49db66
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45742b
and eax, 0x11
cmp al, 0x11
jne 0x45742b
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push eax
push 0x49f3cc
push 1
push 0
push 0x49f40c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x457373
xor esi, esi
jmp 0x457410
mov dword [ebp - 0x21c], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 0x220]
push edx
push 0x49f44c
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x4573f0
mov eax, dword [ebp - 0x21c]
push 0
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x4573f0
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x218]
push 2
push 0
push 0x104
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0xc]
test eax, eax
js 0x4573f0
push 0x7fffffff
push 0x4bcdd4
lea edx, [ebp - 0x218]
mov ecx, edi
call fcn.0045c480
add esp, 8
mov esi, 1
jmp 0x4573f2
xor esi, esi
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x457410
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 0xa
mov ecx, dword [ebp - 0x220]
test ecx, ecx
je 0x457427
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
jmp 0x45742d
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret

Function at 0x457580
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x100
lea eax, [ebp - 0x104]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.00481280
push 0x100
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.00481280
push 0x100
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00481280
add esp, 0x24
mov dword [ebp - 0x308], 0x80
lea eax, [ebp - 0x308]
mov dword [ebp - 0x310], 0x80
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x457611
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x30c]
mov dword [ebp - 0x30c], 1
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push esi
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x304]
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047d39f
mov esp, ebp
pop ebp
ret
Function at 0x4578c0
Capabilities:
Delete directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, edx
push edi
mov edi, ecx
push edi
call esi
test eax, eax
jne 0x457a6f
test ebx, ebx
je 0x457a66
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0x91
je 0x4578fb
cmp eax, 5
jne 0x45790d
mov ecx, edi
call fcn.004577e0
test eax, eax
jne 0x457a6f
mov eax, dword [ebp - 4]
test bl, 4
je 0x4579c1
cmp eax, 0x91
jne 0x4579c1
push 3
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edi
call eax
cmp esi, 0xffffffff
jne 0x45793f
mov edi, eax
jmp 0x4579a8
test eax, eax
jne 0x4579a3
xor ebx, ebx
mov dword [ebp - 4], ebx
nop dword [eax + eax]
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4579a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
jne 0x457998
cmp dword [ebp - 8], 0x102
jne 0x457985
inc ebx
cmp ebx, 1
jae 0x457998
jmp 0x45798c
push esi
call dword [sym.imp.KERNEL32.dll_FindNextChangeNotification]
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 0xa
jl 0x457950
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov edi, eax
jmp 0x4579a8
mov edi, 1
test esi, esi
je 0x4579b8
cmp esi, 0xffffffff
je 0x4579b8
push esi
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x457a66
test bl, 1
je 0x457a00
xor edx, edx
mov ecx, edi
and ebx, 0xfffffffe
call fcn.004576f0
push edi
call esi
test eax, eax
jne 0x457a6f
mov ecx, edi
call fcn.004577e0
test eax, eax
jne 0x457a6f
test ebx, ebx
je 0x457a66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x457a66
test bl, 2
je 0x457a35
mov edx, 1
mov ecx, edi
and ebx, 0xfffffffd
call fcn.004576f0
push edi
call esi
test eax, eax
jne 0x457a6f
mov ecx, edi
call fcn.004577e0
test eax, eax
jne 0x457a6f
test ebx, ebx
je 0x457a66
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x457a66
test ebx, 0x100
je 0x457a66
push 0x10
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call esi
test eax, eax
jne 0x457a6f
mov ecx, edi
call fcn.004577e0
test eax, eax
jne 0x457a6f
test ebx, 0xfffffeff
je 0x457a66
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457a80
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x457b63
mov ecx, esi
call fcn.004577e0
test eax, eax
jne 0x457b63
test ebx, ebx
je 0x457b5d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 5
jne 0x457b5d
test bl, 1
je 0x457af4
xor edx, edx
mov ecx, esi
and ebx, 0xfffffffe
call fcn.004576f0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x457b63
mov ecx, esi
call fcn.004577e0
test eax, eax
jne 0x457b63
test ebx, ebx
je 0x457b5d
call edi
cmp eax, 5
jne 0x457b5d
test bl, 2
je 0x457b29
mov edx, 1
mov ecx, esi
and ebx, 0xfffffffd
call fcn.004576f0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x457b63
mov ecx, esi
call fcn.004577e0
test eax, eax
jne 0x457b63
test ebx, ebx
je 0x457b5d
call edi
cmp eax, 5
jne 0x457b5d
test ebx, 0x100
je 0x457b5d
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x457b63
mov ecx, esi
call fcn.004577e0
test eax, eax
jne 0x457b63
test ebx, 0xfffffeff
je 0x457b5d
call edi
pop edi
pop esi
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x457b70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push dword [ebp + 0x14]
mov eax, edx
mov edi, ecx
push dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 0
push dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x457c6e
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
test ebx, ebx
je 0x457c69
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x457c69
test bl, 1
je 0x457bf4
xor edx, edx
mov ecx, edi
and ebx, 0xfffffffe
call fcn.004576f0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x457c6c
test ebx, ebx
je 0x457c69
call esi
cmp eax, 5
jne 0x457c69
test bl, 2
je 0x457c2f
mov edx, 1
mov ecx, edi
and ebx, 0xfffffffd
call fcn.004576f0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x457c6c
test ebx, ebx
je 0x457c69
call esi
cmp eax, 5
jne 0x457c69
test ebx, 0x100
je 0x457c69
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x457c6c
test ebx, 0xfffffeff
je 0x457c69
call esi
or eax, 0xffffffff
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x458100
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
push str..chm::
push esi
mov ebx, ecx
call fcn.0047f21b
add esp, 8
test eax, eax
je 0x45814c
push edi
push esi
mov edx, ebx
call fcn.0045b290
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.00481280
add esp, 0xc
lea eax, [ebp - 0x214]
push 0x208
push 0
push eax
call fcn.00481280
add esp, 0xc
mov eax, 0x4bce0c
test edi, edi
cmovne eax, edi
push eax
push esi
push ebx
push str.file:____s__s_s
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0045ca50
add esp, 0x10
lea ecx, [ebp - 0x214]
call fcn.0045cae0
add esp, 4
lea edx, [ebp - 0x41c]
call fcn.0045c200
add esp, 4
test eax, eax
lea eax, [ebp - 0x214]
push 5
push 0
je 0x4581d1
push eax
lea eax, [ebp - 0x41c]
jmp 0x4581d3
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047d39f
mov esp, ebp
pop ebp
ret

Function at 0x459600
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x20
push fcn.0047d52b
mov dword [ebp - 8], fcn.0047d52b
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 4], 0
call esi
test eax, eax
je 0x459679
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x18]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.004596f0
cmp byte [ebp - 0x1c], 0
mov ecx, 0x90909090
mov eax, dword [ebp - 8]
mov dword [eax + 5], ecx
mov word [eax + 9], cx
je 0x459679
mov eax, dword [ebp - 0x20]
push eax
push dword [eax]
mov eax, dword [ebp - 0x24]
push dword [eax]
mov eax, dword [ebp - 0x28]
push dword [eax]
call esi
lea eax, [ebp - 8]
mov dword [ebp - 4], fcn.0047d553
push eax
push 0x40
push 0x20
push fcn.0047d553
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0
call esi
test eax, eax
je 0x4596eb
lea eax, [ebp - 4]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x18]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 8]
mov dword [ebp - 0x10], eax
call fcn.004596f0
cmp byte [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x90909090
mov dword [eax + 0x14], 0x90909090
mov byte [eax + 0x18], 0x90
je 0x4596eb
mov eax, dword [ebp - 0x20]
push eax
push dword [eax]
mov eax, dword [ebp - 0x24]
push dword [eax]
mov eax, dword [ebp - 0x28]
push dword [eax]
call esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x459710
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4597a7
push 0x7fffffff
push 0x4bd108
xor edx, edx
mov ecx, edi
call fcn.0045c480
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x104
add esp, 8
xor esi, esi
sub ecx, eax
lea eax, [edi + eax*2]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
nop dword [eax]
mov edx, 8
lea ecx, [ebp - 0x10]
call fcn.0045f4b0
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0x4bc22c
push str._s__llx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045ca50
add esp, 0x18
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4597b0
call ebx
cmp eax, 0xb7
jne 0x4597a7
inc esi
cmp esi, 0x64
jl 0x459760
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4597c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4cf06c]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
mov esi, ecx
mov edx, 8
push edi
lea ecx, [esp + 0x10]
call fcn.0045f4b0
push 0x7fffffff
push dword [esp + 0x18]
push dword [esp + 0x18]
push str.tlib__llx
call fcn.0045cde0
add esp, 0xc
lea ecx, [esp + 0x1c]
mov edx, esi
push eax
call fcn.0045c480
add esp, 8
lea eax, [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 7
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x459851
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x45985e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
nop word [eax + eax]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45988c
push 0xc8
call ebx
inc edi
cmp edi, 0xa
jl 0x459870
test esi, esi
je 0x45989c
cmp esi, 0xffffffff
je 0x45989c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x224]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret
Function at 0x459990
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bd68
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4cf06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4cfb34], 0xffffffff
jne 0x4599ce
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x4cfb34], eax
xor edx, edx
call fcn.00459d40
movzx ebx, al
xor edx, edx
lea eax, [ebp + 0xc]
xor ecx, ecx
push eax
push dword [ebp + 8]
call fcn.0045c9f0
mov esi, eax
add esp, 8
mov edi, 0
mov dword [ebp - 0x1c], edi
add esi, 1
je 0x459a0e
lea eax, [esi + 1]
push eax
call fcn.0047d522
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
mov byte [edi], 0
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
mov edx, esi
mov dword [ebp - 0x18], 0xffffffff
mov ecx, edi
call fcn.0045c9f0
mov esi, eax
add esp, 8
mov dword [ebp - 0x14], esi
mov eax, 1
test ebx, ebx
jne 0x459aa3
test edi, edi
mov ecx, 0x4c2758
cmovne ecx, edi
or edx, 0xffffffff
call fcn.0045d1d0
mov esi, eax
test esi, esi
jne 0x459a5c
mov ecx, 0x4c2758
jmp 0x459a65
mov ecx, esi
call fcn.004122d0
mov ecx, esi
push 0
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
push edx
push eax
push ecx
push dword [0x4cfb34]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
mov eax, 1
cmove ebx, eax
test esi, esi
je 0x459a98
push esi
call fcn.0047d4ed
add esp, 4
mov eax, 1
mov esi, dword [ebp - 0x14]
test ebx, ebx
je 0x459b2a
mov edx, eax
call fcn.00459d40
test al, al
je 0x459afd
lea eax, [esi*2 + 1]
mov dword [ebp - 0x10], eax
inc eax
push eax
call fcn.0047d522
mov esi, eax
test edi, edi
mov ecx, 0x4c2758
mov edx, esi
cmovne ecx, edi
mov byte [esi], 0
push dword [ebp - 0x10]
call fcn.0045a150
add esp, 8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push 0
push ecx
push eax
push esi
push dword [0x4cfb34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0047d4ed
add esp, 4
jmp 0x459b2a
test edi, edi
jne 0x459b0a
xor eax, eax
mov ecx, 0x4c2758
jmp 0x459b13
mov ecx, edi
call fcn.0042ea40
mov ecx, edi
push 0
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
push edx
push eax
push ecx
push dword [0x4cfb34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x459b37
push edi
call fcn.0047d4ed
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459b50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49dc40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4cf06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4cfb34], 0xffffffff
jne 0x459b8e
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [0x4cfb34], eax
xor edx, edx
call fcn.00459d40
movzx ebx, al
xor edx, edx
lea eax, [ebp + 0xc]
xor ecx, ecx
push eax
push dword [ebp + 8]
call fcn.0045ca70
mov esi, eax
add esp, 8
mov edi, 0
mov dword [ebp - 0x18], edi
add esi, 1
je 0x459be0
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047d522
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov word [edi], ax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
mov edx, esi
mov dword [ebp - 0x14], 0xffffffff
mov ecx, edi
call fcn.0045ca70
add esp, 8
test ebx, ebx
jne 0x459c41
test edi, edi
jne 0x459c12
xor eax, eax
mov ecx, 0x4c2758
jmp 0x459c1e
mov ecx, edi
call fcn.004122d0
mov dword [ebp - 0x14], eax
mov ecx, edi
push 0
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
push edx
push eax
push ecx
push dword [0x4cfb34]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
je 0x459c41
test ebx, ebx
je 0x459d14
mov edx, 1
call fcn.00459d40
mov ecx, 0x4c2758
test al, al
je 0x459cd0
test edi, edi
cmovne ecx, edi
call fcn.0045d280
mov ebx, eax
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x459c7c
mov ecx, ebx
call fcn.0042ea40
mov dword [ebp - 0x1c], eax
lea eax, [eax*2 + 1]
mov dword [ebp - 0x10], eax
inc eax
push eax
call fcn.0047d522
mov esi, eax
test ebx, ebx
mov ecx, 0x4c2758
mov edx, esi
cmovne ecx, ebx
mov byte [esi], 0
push dword [ebp - 0x10]
call fcn.0045a150
add esp, 8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
push 0
push ecx
push eax
push esi
push dword [0x4cfb34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0047d4ed
add esp, 4
test ebx, ebx
je 0x459d14
push ebx
jmp 0x459d0c
test edi, edi
cmovne ecx, edi
call fcn.0045d280
mov esi, eax
test esi, esi
jne 0x459ce7
mov ecx, 0x4c2758
jmp 0x459cf0
mov ecx, esi
call fcn.0042ea40
mov ecx, esi
push 0
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
push edx
push eax
push ecx
push dword [0x4cfb34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x459d14
push esi
call fcn.0047d4ed
add esp, 4
test edi, edi
je 0x459d21
push edi
call fcn.0047d4ed
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459e20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.0047e620
mov eax, dword [0x4cf06c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, 0x10624dd3
sub edi, dword [0x4d3e24]
mul edi
mov esi, edx
shr esi, 6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
imul eax, esi, 0x3e8
sub edi, eax
mov eax, 0xcccccccd
mul edi
lea eax, [ebp - 0x200c]
shr edx, 3
push edx
push esi
push 0x4bd4b4
push eax
call fcn.0040e230
add esp, 0x14
lea ecx, [ebp - 0x200c]
mov esi, eax
mov edx, 0x1fff
lea eax, [ebp + 0xc]
sub edx, esi
add ecx, esi
push eax
push dword [ebp + 8]
call fcn.0045c9f0
add esp, 8
add esi, eax
lea eax, [ebp - 0x200c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x4cfd38]
cmp eax, 0xffffffff
je 0x459ed9
push 0
lea ecx, [ebp - 0x2010]
mov dword [ebp - 0x2010], esi
push ecx
push esi
lea ecx, [ebp - 0x200c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
call fcn.0042b3e0
test eax, eax
je 0x459eef
mov edx, esi
lea ecx, [ebp - 0x200c]
call fcn.00459dc0
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0047d39f
mov esp, ebp
pop ebp
ret

Function at 0x459f00
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2010
call fcn.0047e620
mov eax, dword [0x4cf06c]
xor eax, esp
mov dword [esp + 0x200c], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, 0x10624dd3
sub edi, dword [0x4d3e24]
mul edi
mov esi, edx
shr esi, 6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
imul eax, esi, 0x3e8
sub edi, eax
mov eax, 0xcccccccd
mul edi
lea eax, [esp + 0x14]
shr edx, 3
push edx
push esi
push 0x4bd4c8
push eax
call fcn.0040e1d0
add esp, 0x14
mov edi, eax
lea eax, [ebp + 0xc]
mov ecx, 0x1000
sub ecx, edi
push eax
push 0
push dword [ebp + 8]
push ecx
lea ecx, [esp + 0x20]
lea ecx, [ecx + edi*2]
push ecx
call fcn.0040e190
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004858fa
add esp, 0x1c
mov esi, eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x4cfd38]
cmp eax, 0xffffffff
je 0x459fd1
or ecx, 0xffffffff
test esi, esi
push 0
cmovs esi, ecx
lea ecx, [esp + 0x10]
push ecx
add esi, edi
lea ecx, [esp + 0x18]
push esi
push ecx
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
call fcn.0042b3e0
test eax, eax
je 0x45a006
lea ecx, [esp + 0x10]
call fcn.0045d280
mov esi, eax
test esi, esi
je 0x459ff0
mov ecx, esi
call fcn.0042ea40
mov edx, eax
mov ecx, esi
call fcn.00459dc0
test esi, esi
je 0x45a006
push esi
call fcn.0047d4ed
add esp, 4
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
xor ecx, esp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret
Function at 0x45a020
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2010
call fcn.0047e620
mov eax, dword [0x4cf06c]
xor eax, esp
mov dword [esp + 0x200c], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, 0x10624dd3
sub edi, dword [0x4d3e24]
mul edi
mov esi, edx
shr esi, 6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
imul eax, esi, 0x3e8
sub edi, eax
mov eax, 0xcccccccd
mul edi
lea eax, [esp + 0x14]
shr edx, 3
push edx
push esi
push str._04d._02d:___4x_:
push eax
call fcn.0040e230
add esp, 0x14
lea ecx, [ebp + 0xc]
mov edx, 0x2000
sub edx, eax
push ecx
push dword [ebp + 8]
lea ecx, [esp + 0x18]
add ecx, eax
call fcn.0045c9f0
add esp, 8
lea ecx, [esp + 0x10]
or edx, 0xffffffff
call fcn.0045d1d0
mov esi, eax
or edi, 0xffffffff
test esi, esi
mov ecx, 0x4c2758
cmovne ecx, esi
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x4cfd38], edi
je 0x45a0fe
test esi, esi
jne 0x45a0da
xor eax, eax
mov ecx, 0x4c2758
jmp 0x45a0e5
mov ecx, esi
call fcn.004122d0
mov edi, eax
mov ecx, esi
push 0
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
push eax
push ecx
push dword [0x4cfd38]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
call fcn.0042b3e0
test eax, eax
je 0x45a127
test edi, edi
jns 0x45a11c
test esi, esi
jne 0x45a113
xor edi, edi
jmp 0x45a11c
mov ecx, esi
call fcn.004122d0
mov edi, eax
mov edx, edi
lea ecx, [esp + 0x10]
call fcn.00459dc0
test esi, esi
je 0x45a134
push esi
call fcn.0047d4ed
add esp, 4
mov ecx, dword [esp + 0x2014]
pop edi
pop esi
xor ecx, esp
call fcn.0047d39f
mov esp, ebp
pop ebp
ret