joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d3920
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
test edx, edx
je 0x100d3a1f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100d3a1f
or eax, 0xffffffff
cmp esi, 8
jb 0x100d39f7
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101265d8]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101265d8]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101265d8]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101265d8]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101265d8]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101265d8]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101265d8]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101265d8]
sub edi, 1
jne 0x100d3950
pop edi
test esi, esi
je 0x100d3a1a
nop dword [eax + eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x101265d8]
sub esi, 1
jne 0x100d3a00
not eax
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x100f8f8f
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100f8f11
Function at 0x40c413
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41ff40]
jne 0x40c41d
repz ret
jmp fcn.0040eed1

Function at 0x41435c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040f049
and dword [ebp - 4], 0
cmp dword [0x473c34], 0
mov ebx, eax
jne 0x41440d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4144be
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x41b238
push edi
call esi
test eax, eax
je 0x4144be
push eax
call fcn.0040efd7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x473c34], eax
call esi
push eax
call fcn.0040efd7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x473c38], eax
call esi
push eax
call fcn.0040efd7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x473c3c], eax
call esi
push eax
call fcn.0040efd7
pop ecx
mov dword [0x473c44], eax
test eax, eax
je 0x41440d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040efd7
pop ecx
mov dword [0x473c40], eax
mov eax, dword [0x473c40]
cmp eax, ebx
je 0x414465
cmp dword [0x473c44], ebx
je 0x414465
push eax
call fcn.0040f052
push dword [0x473c44]
mov esi, eax
call fcn.0040f052
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x414465
test edi, edi
je 0x414465
call esi
test eax, eax
je 0x41445c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41445c
test byte [ebp - 0xc], 1
jne 0x414465
or dword [ebp + 0x10], 0x200000
jmp 0x41449e
mov eax, dword [0x473c38]
cmp eax, ebx
je 0x41449e
push eax
call fcn.0040f052
pop ecx
test eax, eax
je 0x41449e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41449e
mov eax, dword [0x473c3c]
cmp eax, ebx
je 0x41449e
push eax
call fcn.0040f052
pop ecx
test eax, eax
je 0x41449e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x473c34]
call fcn.0040f052
pop ecx
test eax, eax
je 0x4144be
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4144c0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42062b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42066a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42066a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42066a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42066a
cmp dword [ecx + 0x74], 0xe
jbe 0x42066a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4261e8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x426285
push ebx
push esi
call fcn.004261b1
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00426145
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x426232
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x426284
push edi
push eax
call fcn.00424b4b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x426252
call fcn.00424b99
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x426283
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00426145
add esp, 0x20
test eax, eax
jne 0x426271
push edi
call fcn.00424b99
jmp 0x426279
push ebx
call fcn.00424b99
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x427494
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f0c8
push 0x42f0c0
push str.FlsAlloc
push 0x1f
call fcn.00427353
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4274c8
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d130]
call esi
jmp 0x4274ce
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x427512
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f0d8
push 0x42f0d0
push str.FlsGetValue
push 0x21
call fcn.00427353
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427549
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x427551
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f0e0
push 0x42f0d8
push str.FlsSetValue
push 0x22
call fcn.00427353
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42758b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42d130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x42c960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42c98d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42c98d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401310
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x401322
xor eax, eax
pop edi
pop ebp
ret 4
cmp dword [0x426f90], 0
push esi
je 0x401351
xor esi, esi
mov edi, edi
push ecx
call fcn.004011d0
test eax, eax
jne 0x401340
inc esi
cmp esi, 5
jl 0x401330
cmp dword [0x426f90], 0
je 0x401351
pop esi
xor eax, eax
pop edi
pop ebp
ret 4
cmp dword [edi + 0x34], 0
je 0x40137d
mov esi, edi
mov ecx, 0xe
mov edi, 0x426f58
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x426f94
xor eax, eax
test ecx, ecx
pop esi
mov dword [0x426f90], ecx
setne al
pop edi
pop ebp
ret 4
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
call esi
push 0
push 1
push 1
push 0
mov dword [0x426f9c], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x426fa0], eax
call esi
push 0
push 0
push 1
push 0
mov dword [0x426fa4], eax
call esi
cmp dword [0x426f9c], 0
mov dword [0x426fa8], eax
je 0x401433
cmp dword [0x426fa0], 0
je 0x401433
cmp dword [0x426fa4], 0
je 0x401433
test eax, eax
je 0x401433
lea eax, [ebp + 8]
push eax
push 4
push 0x426f58
push fcn.004014e0
mov esi, edi
push 0
mov ecx, 0xe
mov edi, 0x426f58
push 0
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov ecx, 0x426f94
cmove ecx, dword [0x426f90]
mov dword [0x426f94], eax
xor eax, eax
test ecx, ecx
pop esi
mov dword [0x426f90], ecx
setne al
pop edi
pop ebp
ret 4
mov ecx, dword [0x426f90]
xor eax, eax
test ecx, ecx
pop esi
setne al
pop edi
pop ebp
ret 4

Function at 0x401450
Capabilities:
Resume thread

Disassembly:
mov eax, dword [0x426f98]
test eax, eax
je 0x40145f
mov eax, 1
ret
cmp dword [0x426f90], 0
je 0x4014d6
push dword [0x426fa0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x4014d1
push dword [0x426fa4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x4014d1
push dword [0x426fa8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x4014d1
push dword [0x426f9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x4014d1
mov eax, dword [0x426f90]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
je 0x4014c6
cmp eax, 1
je 0x4014c6
xor eax, eax
mov dword [0x426f98], eax
ret
mov eax, 1
mov dword [0x426f98], eax
ret
mov eax, dword [0x426f98]
ret
Function at 0x402850
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub edx, 0x110
je 0x40288c
dec edx
je 0x40287c
sub edx, 0x27
jne 0x402886
mov eax, dword [0x423d84]
test eax, eax
je 0x402886
mov edx, dword [ebp + 8]
push eax
call fcn.00407810
add esp, 4
pop ebp
ret 8
movzx eax, word [ebp + 8]
dec eax
cmp eax, 1
jbe 0x4028a2
xor eax, eax
pop ebp
ret 8
push 2
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4028a2
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop ebp
ret 8

Function at 0x402c20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402c39
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402c74
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402c70
lea ebx, [ebx]
cmp esi, edx
jae 0x402c74
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402c60
cmp esi, edx
jb 0x402c7b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x404450
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
xor eax, eax
lea edi, [esi + 0x218]
mov word [ebp - 0x210], ax
test edi, edi
je 0x4044b4
xor ecx, ecx
cmp cx, word [edi]
je 0x4044b4
push edi
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksW]
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0x210]
call fcn.00407500
mov ax, word [ebp - 0x210]
lea ecx, [ebp - 0x210]
test ecx, ecx
je 0x40457f
xor ecx, ecx
cmp cx, ax
je 0x40457f
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x404523
mov ax, word [ebp - 0x20e]
mov ecx, 0x3a
cmp cx, ax
je 0x404503
mov ecx, 0x5c
cmp cx, word [ebp - 0x210]
jne 0x404523
cmp cx, ax
jne 0x404523
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040939c
mov esp, ebp
pop ebp
ret
xor eax, eax
mov word [ebp - 0x41c], ax
lea eax, [esi + 0x2b10]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x41c]
call fcn.004074d0
test eax, eax
jne 0x40456a
lea eax, [ebp - 0x210]
push eax
lea edx, [ebp - 0x41c]
mov ecx, edi
call fcn.004075f0
add esp, 4
test eax, eax
jne 0x4045c3
pop edi
mov eax, 0x21000111
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040939c
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x2b10]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
push 0x41f568
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push str..htm
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x210]
push eax
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0040939c
mov esp, ebp
pop ebp
ret
Function at 0x404890
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x421018]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea eax, [esp + 0x18]
lea ebx, [edi + 0x2d1a]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
mov ecx, edi
mov byte [esp + 0x13], 1
call fcn.004045e0
test eax, eax
jne 0x40492d
push ebx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
test eax, eax
je 0x40492d
push 0
push 0
lea eax, [esp + 0x18]
push eax
xorps xmm0, xmm0
push ebx
movlpd qword [esp + 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test ecx, ecx
ja 0x40490e
jb 0x404928
cmp eax, 0xa00000
jb 0x404928
add eax, 0xff600000
adc ecx, 0xffffffff
cmp dword [edi + 0x2b0c], ecx
jb 0x40492d
ja 0x404928
cmp dword [edi + 0x2b08], eax
jbe 0x40492d
mov byte [esp + 0xf], 0
xor eax, eax
mov ecx, 0x82
mov edi, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [esp + 0x22c]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040939c
mov esp, ebp
pop ebp
ret 4
Function at 0x404970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x3184], 0
mov byte [ebp - 0x59], 0
je 0x4049c6
mov byte [ebp - 0x59], 1
mov ebx, dword [esi + 0x3184]
lea eax, [ebp - 0x74]
push eax
push ebx
mov dword [ebp - 0x68], ebx
call fcn.00408080
test eax, eax
je 0x404a2c
mov eax, 0x210000d2
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040939c
mov esp, ebp
pop ebp
ret
lea edi, [esi + 0x2b10]
xor eax, eax
cmp ax, word [edi]
je 0x4049b0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404b46
shr eax, 4
not al
and al, 1
je 0x404b46
lea eax, [ebp - 0x94]
push eax
call fcn.00409360
add esp, 4
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.00408c70
mov dword [esi + 0x3184], eax
test eax, eax
jne 0x404999
mov eax, 0x210000d6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040939c
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x74]
push ebx
mov dword [esi + 0x2b00], eax
mov dword [esi + 0x2b04], 0
mov dword [esi + 0x2b08], 0
mov dword [esi + 0x2b0c], 0
call fcn.00408620
mov edi, eax
test edi, edi
je 0x404a75
mov eax, 0x210000d7
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040939c
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x2b04]
mov ecx, dword [esi + 0x2b00]
xor eax, eax
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x6c], edx
mov ebx, 1
mov dword [ebp - 0x64], eax
cmp eax, edx
ja 0x404b13
jb 0x404aa0
cmp ebx, ecx
ja 0x404b13
jmp 0x404aa0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x68]
call fcn.00408470
mov edi, eax
test edi, edi
jne 0x404a5f
test dword [ebp - 0x24], 0x10
jne 0x404ad6
mov eax, dword [ebp - 0x3c]
add dword [esi + 0x2b08], eax
adc dword [esi + 0x2b0c], edi
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x6c]
ja 0x404afc
jb 0x404ae7
mov ecx, dword [ebp - 0x60]
cmp ebx, ecx
jae 0x404aff
push dword [ebp - 0x68]
call fcn.00408670
mov edi, eax
test edi, edi
jne 0x404a5f
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
add ebx, 1
adc eax, 0
mov dword [ebp - 0x64], eax
cmp eax, dword [ebp - 0x6c]
jb 0x404aa0
ja 0x404b13
cmp ebx, ecx
jbe 0x404aa0
cmp byte [ebp - 0x59], 0
jne 0x404b33
mov eax, dword [esi + 0x3184]
test eax, eax
je 0x404b33
push eax
call fcn.00408e90
test eax, eax
jne 0x404b33
mov dword [esi + 0x3184], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040939c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x210000d5
pop ebx
call fcn.0040939c
mov esp, ebp
pop ebp
ret
Function at 0x404b60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, dword [0x426f4c]
xor bl, bl
mov byte [esp + 0xf], bl
test edi, edi
je 0x404bf8
mov bl, 1
mov byte [esp + 0xf], bl
mov eax, dword [0x4268c8]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x404bb8
cmp dword [0x4268cc], eax
jne 0x404bb8
mov ecx, 0x423dc8
call fcn.00404970
test eax, eax
jne 0x404d13
mov eax, dword [0x4268c8]
mov edi, dword [0x426f4c]
mov dword [esp + 0x10], eax
mov ecx, dword [0x4268cc]
mov dword [esp + 0x14], ecx
test eax, eax
jne 0x404c6c
test ecx, ecx
jne 0x404c6c
test bl, bl
jne 0x404bea
test edi, edi
je 0x404bea
push edi
call fcn.00408e90
neg eax
sbb eax, eax
and dword [0x426f4c], eax
mov eax, 0x210000d8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
cmp ax, word [0x4268d8]
jne 0x404c11
mov eax, 0x210000d2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x4268d8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404d0e
shr eax, 4
not al
and al, 1
je 0x404d0e
lea eax, [esp + 0x18]
push eax
call fcn.00409360
add esp, 4
lea eax, [esp + 0x18]
push eax
push 0x4268d8
call fcn.00408c70
mov edi, eax
mov dword [0x426f4c], edi
test edi, edi
jne 0x404b82
mov eax, 0x210000d6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.00408620
mov esi, eax
test esi, esi
je 0x404c86
mov eax, 0x210000d7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0x14], 0
mov ebx, 1
jb 0x404ce3
ja 0x404ca0
cmp dword [esp + 0x10], ebx
jb 0x404ce3
lea ebx, [ebx]
push dword [ebp + 8]
mov ecx, 0x423dc8
push ebx
call fcn.00404f30
mov esi, eax
test esi, esi
jne 0x404ce3
cmp eax, dword [esp + 0x14]
ja 0x404cd0
jb 0x404cc4
mov eax, dword [esp + 0x10]
cmp ebx, eax
jae 0x404cd4
push edi
call fcn.00408670
mov esi, eax
test esi, esi
jne 0x404c78
mov eax, dword [esp + 0x10]
xor ecx, ecx
inc ebx
cmp ecx, dword [esp + 0x14]
jb 0x404ca0
ja 0x404ce3
cmp ebx, eax
jbe 0x404ca0
cmp byte [esp + 0xf], 0
jne 0x404d03
mov eax, dword [0x426f4c]
test eax, eax
je 0x404d03
push eax
call fcn.00408e90
neg eax
sbb eax, eax
and dword [0x426f4c], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x210000d5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x404e60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push esi
push edi
mov edi, ecx
cmp ax, word [edi + 0x2b10]
lea esi, [edi + 0x2b10]
jne 0x404e86
mov eax, 0x210000d2
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404ecb
shr eax, 4
not al
and al, 1
je 0x404ecb
lea eax, [ebp - 0x20]
push eax
call fcn.00409360
add esp, 4
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.00408c70
xor ecx, ecx
test eax, eax
mov edx, 0x210000d6
cmove ecx, edx
mov dword [edi + 0x3184], eax
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0x210000d5
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404f30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov esi, ecx
mov word [ebp - 0x218], ax
mov eax, dword [esi + 0x3188]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x404f90
cmp dword [esi + 0x318c], 0
je 0x404f6e
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [esi + 0x3188]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x404f86
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404f90
mov dword [esi + 0x3188], 0xffffffff
mov ecx, esi
call fcn.004052a0
test eax, eax
jne 0x405134
test edi, edi
je 0x404fbd
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x404fbd
lea eax, [esi + 0x2f7a]
push eax
push 0x50
push dword [edi + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [esi + 0x1aa2], 0
jne 0x404fcf
cmp byte [esi + 0x2f78], 0
jne 0x405047
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00405320
test eax, eax
jne 0x405134
cmp byte [esi + 0x2f78], al
je 0x405013
lea ecx, [ebp - 0x218]
call fcn.00407380
neg eax
sbb eax, eax
and eax, 0x210000db
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040939c
mov esp, ebp
pop ebp
ret 8
cmp byte [esi + 0x1aa3], 0
jne 0x40505b
lea ecx, [ebp - 0x218]
call fcn.00407360
test al, al
je 0x40505b
test edi, edi
je 0x405047
mov eax, dword [edi + 4]
test eax, eax
je 0x405047
push 0x210000e1
push 0x32
push dword [edi + 0xc]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040939c
mov esp, ebp
pop ebp
ret 8
push dword [esi + 0x3184]
call fcn.00409080
test eax, eax
je 0x405081
mov eax, 0x210000dd
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040939c
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x218]
call fcn.004073d0
test eax, eax
je 0x4050a7
mov eax, 0x210000db
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040939c
mov esp, ebp
pop ebp
ret 8
push 0
push 0x8000080
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x3188], eax
cmp eax, 0xffffffff
jne 0x4050f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esi + 0x3184]
call fcn.00408bd0
mov eax, 0x210000dc
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040939c
mov esp, ebp
pop ebp
ret 8
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.00405170
mov ecx, esi
mov edi, eax
call fcn.00404ee0
push dword [esi + 0x3184]
call fcn.00408bd0
test eax, eax
je 0x405146
test edi, edi
jne 0x405125
mov edi, 0x210000e0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040939c
mov esp, ebp
pop ebp
ret 8
test edi, edi
jne 0x405125
mov edx, dword [esi + 0x2f38]
lea ecx, [ebp - 0x218]
call fcn.00407430
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040939c
mov esp, ebp
pop ebp
ret 8