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

Disassembly:
push 0xffffffffffffffff
push 0x4a08f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebp
push esi
push edi
mov eax, dword [0x4c84d4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x10]
push eax
xor ebp, ebp
mov byte [esp + 0x14], 0x5c
call fcn.00444770
mov esi, eax
cmp esi, 0xffffffff
je 0x444508
mov ecx, 0x4af104
call fcn.00424680
test al, al
jne 0x444508
mov ecx, 0x4b2b0c
call fcn.00424680
test al, al
jne 0x444508
push esi
xor ecx, ecx
lea esi, [esp + 0x18]
mov edx, edi
call fcn.004340f0
push eax
mov dword [esp + 0x3c], ebp
call fcn.00444430
add esp, 4
cmp dword [esp + 0x2c], 0x10
jb 0x4444c5
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00460054
add esp, 4
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
jb 0x4444d2
mov eax, dword [esi]
jmp 0x4444d4
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4444e4
test al, 0x10
jne 0x444508
cmp dword [edi + 0x18], 0x10
jb 0x4444ec
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x2c
ret

Function at 0x447d40
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x8c
mov eax, dword [0x4c84d4]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
lea eax, [esp + 4]
push eax
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
xor ecx, ecx
cmp dword [esp + 0x18], 1
push edi
sete cl
lea edx, [esp + 0x2c]
push str.JMR_Optex_Event__s
push edx
mov dword [esi], ecx
call ebx
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 4], eax
je 0x447e02
push edi
lea ecx, [esp + 0x2c]
push str.JMR_Optex_MMF__s
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push 0x10
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 8], eax
je 0x447e02
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x447e02
cmp dword [esi], 0
jne 0x447e02
push 0xfa0
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [esi + 4], 0
pop ebx
je 0x447e2f
cmp dword [esi + 8], 0
je 0x447e2f
cmp dword [esi + 0xc], 0
je 0x447e2f
mov eax, 1
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0047d992
add esp, 0x8c
ret
mov ecx, dword [esp + 0x88]
xor ecx, esp
xor eax, eax
call fcn.0047d992
add esp, 0x8c
ret
Function at 0x449f60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a2948
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
mov eax, dword [0x4c84d4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x14]
call fcn.0046eb9b
lea eax, [esp + 0x10]
push eax
mov ecx, edi
mov dword [esp + 0x28], 0
call fcn.0046ea96
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov ebx, dword [ebp + 0x78]
push 0x5a0049
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc8]
add eax, dword [esi]
sub ecx, edx
push ecx
mov ecx, dword [edi + 4]
push ebx
push edx
add eax, ebx
push eax
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edx, dword [esp + 0x2c]
push edx
mov ecx, edi
call fcn.0046ea96
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CBrush.0
call fcn.0043bac0
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x44a6e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49eb08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x4c84d4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
cmp eax, dword [edi + 0x60]
jne 0x44a767
mov dword [esp + 0xc], vtable.CMenu.0
mov dword [esp + 0x10], 0
mov dword [esp + 0x30], 0
call fcn.0046952e
test eax, eax
je 0x44a743
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
mov esi, eax
jmp 0x44a745
xor esi, esi
mov eax, dword [ebp + 0xc]
cmp ax, 0x205
jne 0x44a77d
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CMenu.0
call fcn.0046df39
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
cmp ax, 0x203
jne 0x44a83d
push 5
mov ecx, esi
call fcn.004657ea
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0x40
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
push edx
push eax
push ecx
push 0x4cd1f0
mov ecx, esi
call fcn.004659f5
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [edi + 0x254], 0
je 0x44a81c
mov ecx, dword [edi + 0x60]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.0040e680
test eax, eax
je 0x44a74e
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call fcn.0046debe
test eax, eax
je 0x44a74e
mov edi, dword [edi + 0x250]
mov ecx, dword [eax + 4]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetMenuItemID]
jmp 0x44a822
mov eax, dword [edi + 0x250]
mov edx, dword [esi + 0x20]
push 0
push eax
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xc]
call fcn.0046df39
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], vtable.CMenu.0
call fcn.0046df39
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x44c680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a27a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
mov eax, dword [0x4c84d4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [edi + 0x54]
mov eax, dword [edx + 0x54]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.0047088d
mov edx, dword [edi + 0x54]
mov eax, dword [edx + 0x9c]
push eax
push 1
push 0
lea ecx, [esp + 0x20]
call fcn.0046eb52
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.0046ea96
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
mov ebx, eax
mov eax, dword [edi + 0x54]
add eax, 0xa8
push eax
mov ecx, esi
call edx
push 1
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.0046e00b
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x54]
add eax, 0x3ec
cmp dword [eax + 8], 0
jg 0x44c72f
jmp fcn.004671bb
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 0xc], edx
push ecx
mov ecx, esi
mov edx, edi
call fcn.0044c7b0
mov eax, dword [esp + 0xc]
push eax
mov ecx, esi
call fcn.0046e00b
mov edx, dword [esi]
mov eax, dword [esp + 0x10]
mov edx, dword [edx + 0x28]
push eax
mov ecx, esi
call edx
push ebx
mov ecx, esi
call fcn.0046ea96
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.CPen.0
call fcn.0043bac0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44dbd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x49f938
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x4c84d4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
test ebp, ebp
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x54]
mov esi, dword [eax + 0x94]
jl 0x44ddae
cmp ebp, dword [eax + 0x3b8]
jge 0x44ddae
mov eax, dword [eax + 0x3b4]
lea ecx, [ebp*4]
add eax, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x50], ecx
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x44dc5c
mov edi, dword [esp + 0x48]
test edi, edi
mov eax, edi
je 0x44dc5c
mov cl, 1
lea ecx, [ecx]
test byte [eax + 0x20], cl
jne 0x44dc71
mov eax, dword [eax + 4]
test eax, eax
jne 0x44dc50
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 0x2c
test byte [edi + 0x20], cl
je 0x44dd0e
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x54]
test byte [eax + 0x3ac], 4
je 0x44dce8
mov edx, dword [eax + 0xa4]
test dl, 0x10
jne 0x44dcb3
cmp ebp, dword [eax + 0x400]
jne 0x44dcd7
test dl, 0x20
je 0x44dcd7
mov ecx, dword [eax + 0x7c]
mov esi, dword [eax + 0x8c]
push ecx
lea ecx, [esp + 0x2c]
push ecx
jmp 0x44dd07
cmp dword [eax + 0x3f4], 0
jle 0x44dcc6
mov ecx, dword [eax + 0x3f0]
cmp edi, dword [ecx]
je 0x44dc95
mov ecx, dword [eax + 0x74]
mov esi, dword [eax + 0x84]
push ecx
lea ecx, [esp + 0x2c]
push ecx
jmp 0x44dd07
mov ecx, dword [eax + 0x78]
mov esi, dword [eax + 0x88]
push ecx
lea ecx, [esp + 0x2c]
push ecx
jmp 0x44dd07
mov ecx, dword [esp + 0x24]
mov edi, dword [eax + 0x80]
mov esi, dword [eax + 0x90]
call fcn.004656c8
test al, al
js 0x44dd0e
push edi
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
call fcn.0047088d
mov eax, dword [esp + 0x4c]
call fcn.0044ef50
mov edi, eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
push esi
mov ecx, ebx
call edx
mov esi, eax
mov eax, dword [esp + 0x48]
cmp ebp, dword [eax + 0x40]
jl 0x44dd32
xor eax, eax
jmp 0x44dd3d
mov eax, dword [eax + 0x3c]
add eax, dword [esp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x28]
call fcn.004087a0
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
mov ecx, dword [eax - 0xc]
mov edx, dword [ebx]
push edi
lea edi, [esp + 0x3c]
push edi
push ecx
push eax
mov eax, dword [edx + 0x68]
mov ecx, ebx
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44dd8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x30]
push esi
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 0x2c
call fcn.004671bb
int3
Function at 0x4513d0
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x49ea18
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebp
push esi
push edi
mov eax, dword [0x4c84d4]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
mov edi, edx
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 4]
lea edx, [esp + 0x38]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0x28]
call fcn.0046e229
test ebx, ebx
mov dword [esp + 0x58], 0
jne 0x451433
xor eax, eax
jmp 0x451436
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x2c]
call fcn.0046e6f7
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call fcn.0046ea43
lea edx, [esp + 0x60]
mov esi, eax
push edx
mov ecx, ebx
mov dword [esp + 0x18], esi
call fcn.0046e0e8
push 0
mov ecx, edi
call fcn.004616fa
mov ecx, dword [esp + 0x3c]
cdq
idiv ecx
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
xor edi, edi
neg edx
test eax, eax
mov dword [esp + 0x10], edx
jle 0x4514ec
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.GDI32.dll_BitBlt]
lea esp, [esp]
cmp edx, eax
mov esi, edx
jge 0x4514d8
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [ebx + 4]
push edi
push esi
push ecx
call ebp
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
sub eax, dword [esp + 0x18]
add esi, ecx
cmp esi, eax
jl 0x4514a6
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x24]
add edi, dword [esp + 0x40]
sub esi, dword [esp + 0x1c]
cmp edi, esi
jl 0x4514a0
mov esi, dword [esp + 0x14]
mov edx, dword [ebx + 4]
push 5
push 0
push edx
call dword [sym.imp.GDI32.dll_ExtSelectClipRgn]
test esi, esi
je 0x451501
mov esi, dword [esi + 4]
mov eax, dword [esp + 0x2c]
push esi
push eax
call fcn.0046ea43
lea ecx, [esp + 0x28]
call fcn.0046e75b
lea ecx, [esp + 0x28]
mov dword [esp + 0x58], 0xffffffff
call fcn.0046e771
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x4c
ret 0x10
Function at 0x456110
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push edi
mov edi, eax
cmp dword [edi + 0x3cc], 0
je 0x4561b2
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 8]
cmp eax, 9
je 0x456167
cmp eax, 0xd
je 0x456156
cmp eax, 0x1b
jne 0x45614f
test byte [edi + 0x3ac], 0x10
je 0x45614f
call fcn.00456a20
mov eax, 1
pop edi
pop ecx
ret 4
xor eax, eax
pop edi
pop ecx
ret 4
mov eax, edi
call fcn.004569b0
mov eax, 1
pop edi
pop ecx
ret 4
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, edi
jge 0x456199
call fcn.004570c0
cmp eax, 0xffffffff
je 0x4561b2
mov ecx, dword [edi + 0x414]
push eax
push ecx
mov ecx, edi
call fcn.00456250
mov eax, 1
pop edi
pop ecx
ret 4
call fcn.00457160
cmp eax, 0xffffffff
je 0x4561b2
mov edx, dword [edi + 0x414]
push eax
push edx
mov ecx, edi
call fcn.00456250
mov eax, 1
pop edi
pop ecx
ret 4

Function at 0x458c20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a22c3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x4c84d4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.0046e229
xor eax, eax
mov dword [esp + 0x24], eax
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CTreeListDC.0
mov dword [ebp + 4], eax
mov dword [ebp], vtable.CBitmap.0
mov byte [esp + 0x24], 1
mov dword [esi + 0x18], eax
lea edi, [esi + 0x20]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x1c], ebx
mov ecx, dword [ebx + 0xc]
cmp ecx, eax
mov dword [esi + 0x30], ecx
je 0x458ca4
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
jmp 0x458d06
mov eax, dword [ebx]
mov edx, dword [eax + 0x50]
push edi
mov ecx, ebx
call edx
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0046e6f7
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
push eax
mov eax, dword [ebx + 4]
push ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0046e9be
test ebp, ebp
je 0x458ce6
mov ebp, dword [ebp + 4]
mov ecx, dword [esi + 4]
push ebp
push ecx
call fcn.0046ea43
mov edx, dword [esi + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [edi]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0046e33d
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret 4
Function at 0x45c140
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x5350
call fcn.00483890
mov eax, dword [0x4c84d4]
xor eax, esp
mov dword [esp + 0x5348], eax
cmp dword [edi + 4], 0
push ebx
push ebp
push esi
mov ebx, ecx
jne 0x45c17d
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5348]
xor ecx, esp
call fcn.0047d992
add esp, 0x5350
ret
test ebx, ebx
jne 0x45c184
lea ebx, [edi + 8]
push ebx
mov ecx, edi
call fcn.0045c310
test eax, eax
je 0x45c163
lea esi, [esp + 0x10]
mov eax, edi
call fcn.0045c040
mov eax, esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call esi
lea ecx, [esp + 0x10]
sub ecx, 1
cmp byte [eax + ecx], 0x5c
jne 0x45c1d0
mov eax, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5348]
xor ecx, esp
call fcn.0047d992
add esp, 0x5350
ret
push ebx
lea edx, [esp + 0x24c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x248]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x248]
sub ecx, 1
cmp byte [eax + ecx], 0x5c
je 0x45c20e
push 0x4af104
lea edx, [esp + 0x24c]
push edx
call esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24c]
push ecx
call esi
push edi
lea eax, [esp + 0x24c]
call fcn.0045c3b0
test eax, eax
je 0x45c163
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45c163
mov eax, dword [edi + 4]
push eax
call fcn.00495200
test eax, eax
jne 0x45c163
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x45c280
mov edx, dword [edi + 4]
push 0x5000
lea ecx, [esp + 0x354]
push ecx
push edx
call fcn.00494b70
mov esi, eax
test esi, esi
jle 0x45c2c4
push 0
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x35c]
push ecx
push ebx
mov dword [esp + 0x20], 0
call ebp
test eax, eax
je 0x45c2c1
cmp dword [esp + 0xc], esi
je 0x45c280
or esi, 0xffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [edi + 4]
push edx
call fcn.00494d70
test esi, esi
jne 0x45c2eb
mov ecx, dword [esp + 0x228]
lea eax, [esp + 0x248]
call fcn.0045c3f0
mov ecx, dword [esp + 0x5354]
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop ebx
xor ecx, esp
call fcn.0047d992
add esp, 0x5350
ret

Function at 0x45c310
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov ebx, ecx
je 0x45c39b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x45c39b
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x45c343
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
pop edi
pop ebx
mov eax, ecx
ret 4
push esi
push edi
call fcn.004809d1
mov esi, eax
push 0x5c
push esi
call fcn.00480a30
add esp, 0xc
test eax, eax
je 0x45c390
push esi
mov ecx, ebx
mov byte [eax], 0
call fcn.0045c310
test eax, eax
push esi
jne 0x45c37b
call fcn.0047f7c5
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
ret 4
call fcn.0047f7c5
add esp, 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x45c373
pop esi
pop edi
mov eax, 1
pop ebx
ret 4
pop edi
xor eax, eax
pop ebx
ret 4
Function at 0x45c3f0
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x30
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
jne 0x45c41b
pop edi
pop esi
pop ebx
add esp, 0x30
ret
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov esi, eax
sub esi, 1
neg esi
sbb esi, esi
inc esi
je 0x45c47f
lea ecx, [esp + 0x18]
push ecx
push ebx
shr ebx, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov esi, eax
test esi, esi
je 0x45c47f
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov esi, eax
test esi, esi
je 0x45c47f
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
mov eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x45c5d0
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push esi
push edi
mov edi, eax
mov esi, ecx
xor eax, eax
mov edx, eax
sar edx, 3
mov dl, byte [edx + esi]
mov cl, al
and cl, 7
sar dl, cl
add eax, 1
and dl, 1
cmp eax, 0x40
mov byte [eax + 0x4cef17], dl
jl 0x45c5d8
xor eax, eax
lea ebx, [ebx]
movsx ecx, byte [eax + 0x4ad6e0]
movzx edx, byte [ecx + 0x4cef17]
movsx ecx, byte [eax + 0x4ad6e1]
mov byte [eax + 0x4ce6c0], dl
movzx edx, byte [ecx + 0x4cef17]
movsx ecx, byte [eax + 0x4ad6e2]
mov byte [eax + 0x4ce6c1], dl
movzx edx, byte [ecx + 0x4cef17]
movsx ecx, byte [eax + 0x4ad6e3]
mov byte [eax + 0x4ce6c2], dl
movzx edx, byte [ecx + 0x4cef17]
mov byte [eax + 0x4ce6c3], dl
add eax, 4
cmp eax, 0x40
jl 0x45c600
push ebx
push ebp
push 0x40
push 0x4ce6c0
push 0x4cef18
call fcn.00486030
add esp, 0xc
cmp byte [esp + 0x18], 0
jne 0x45c6fa
mov ebx, edi
mov ebp, 0x10
mov ecx, 8
mov esi, 0x4cef38
mov edi, 0x4cef88
rep movsd dword es:[edi], dword [esi]
mov edi, ebx
mov esi, 0x4cef38
call fcn.0045c9f0
xor eax, eax
nop
movzx ecx, byte [eax + 0x4cef18]
movzx edx, byte [eax + 0x4cef19]
xor byte [eax + 0x4cef38], cl
xor byte [eax + 0x4cef39], dl
movzx ecx, byte [eax + 0x4cef1a]
movzx edx, byte [eax + 0x4cef1b]
xor byte [eax + 0x4cef3a], cl
xor byte [eax + 0x4cef3b], dl
add eax, 4
cmp eax, 0x20
jl 0x45c6a0
mov ecx, 8
mov esi, 0x4cef88
mov edi, 0x4cef18
add ebx, 0x30
sub ebp, 1
rep movsd dword es:[edi], dword [esi]
jne 0x45c680
jmp 0x45c787
mov ebp, 0xf
lea ebx, [edi + 0x2d0]
jmp 0x45c710
mov ecx, 8
mov esi, 0x4cef18
mov edi, 0x4cef88
rep movsd dword es:[edi], dword [esi]
mov edi, ebx
mov esi, 0x4cef18
call fcn.0045c9f0
xor eax, eax
nop
movzx ecx, byte [eax + 0x4cef38]
movzx edx, byte [eax + 0x4cef39]
xor byte [eax + 0x4cef18], cl
xor byte [eax + 0x4cef19], dl
movzx ecx, byte [eax + 0x4cef3a]
movzx edx, byte [eax + 0x4cef3b]
xor byte [eax + 0x4cef1a], cl
xor byte [eax + 0x4cef1b], dl
add eax, 4
cmp eax, 0x20
jl 0x45c730
sub ebp, 1
mov ecx, 8
mov esi, 0x4cef88
mov edi, 0x4cef38
sub ebx, 0x30
test ebp, ebp
rep movsd dword es:[edi], dword [esi]
jge 0x45c710
pop ebp
xor eax, eax
pop ebx
jmp 0x45c790
movsx ecx, byte [eax + 0x4ad720]
movzx edx, byte [ecx + 0x4cef17]
movsx ecx, byte [eax + 0x4ad721]
mov byte [eax + 0x4ce6c0], dl
movzx edx, byte [ecx + 0x4cef17]
movsx ecx, byte [eax + 0x4ad722]
mov byte [eax + 0x4ce6c1], dl
movzx edx, byte [ecx + 0x4cef17]
movsx ecx, byte [eax + 0x4ad723]
mov byte [eax + 0x4ce6c2], dl
movzx edx, byte [ecx + 0x4cef17]
mov byte [eax + 0x4ce6c3], dl
add eax, 4
cmp eax, 0x40
jl 0x45c790
push 0x40
push 0x4ce6c0
push 0x4cef18
call fcn.00486030
mov esi, dword [esp + 0x18]
add esp, 0xc
mov edx, 0x4cef18
call fcn.0045cbe0
pop edi
pop esi
ret