joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409863
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x456178]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x260]
mov esi, ecx
push 0x27f4
push eax
call fcn.004033f1
mov ecx, eax
call fcn.004133d6
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00434600
add esp, 0xc
push 0x3ec
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov edi, eax
test edi, edi
je 0x409919
push edi
call ebx
test eax, eax
je 0x409919
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x409919
xor eax, eax
lea ecx, [esi + 0x240]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x218]
push eax
call fcn.00401628
jmp 0x409936
push edi
call ebx
test eax, eax
je 0x409936
lea eax, [esi + 0x240]
cmp dword [eax + 0x14], 8
jb 0x40992e
mov eax, dword [eax]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea edi, [esi + 0x240]
mov edx, edi
lea ecx, [ebp - 0x248]
call fcn.0040330a
push eax
mov ecx, edi
call fcn.00401e84
xor ebx, ebx
lea ecx, [ebp - 0x248]
push ebx
push 1
call fcn.00401751
mov edx, str.__r_n
mov ecx, edi
call fcn.0040c740
cmp byte [esi + 0x80], bl
je 0x409a98
cmp dword [esi + 0x78], ebx
je 0x409a98
lea ecx, [esi + 0x68]
mov edx, edi
call fcn.0040c510
test al, al
jne 0x409a98
lea ecx, [ebp - 0x280]
call fcn.0040538f
lea eax, [esi + 0x2c4]
push eax
lea ecx, [ebp - 0x248]
call fcn.00401e5c
lea ecx, [ebp - 0x248]
call fcn.0040c830
push 0x25
push 0x3a
pop edx
lea ecx, [ebp - 0x248]
call fcn.0040c680
add esp, 4
push 0x25
push 0x5c
pop edx
call fcn.0040c680
push 7
pop esi
xor eax, eax
mov dword [ebp - 0x21c], esi
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
mov dword [esp], 0x449d80
call fcn.00401628
lea eax, [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.00405443
push 0
push 1
lea ecx, [ebp - 0x230]
mov bl, al
call fcn.00401751
test bl, bl
je 0x409a7d
xor eax, eax
mov dword [ebp - 0x21c], esi
xor ebx, ebx
mov word [ebp - 0x230], ax
push 0x449d80
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
call fcn.00401628
push edi
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
push ecx
lea ecx, [ebp - 0x280]
call fcn.0040558a
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.00401751
jmp 0x409a7f
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.00401751
lea ecx, [ebp - 0x280]
call fcn.00405433
push ebx
push 1
lea ecx, [ebp - 0x260]
call fcn.00401751
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004333fa
mov esp, ebp
pop ebp
ret
Function at 0x40d440
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x442628
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x1c], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.004019ce
mov dword [esp + 0x30], 0
mov edx, 0x24
lea ecx, [esp + 0xc]
call fcn.0040cc20
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x40d4ef
push dword [esp + 0xc]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004333fa
add esp, 0x2c
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442658
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x18], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
call fcn.004019ce
mov dword [esp + 0x30], 0
mov edx, 0x24
lea ecx, [esp + 8]
call fcn.0040cc20
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d5d1
test al, 0x10
jne 0x40d5d1
mov bl, 1
jmp 0x40d5d3
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x1c], 8
jb 0x40d5ee
push dword [esp + 8]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
mov word [esp + 8], ax
mov al, bl
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.004333fa
mov esp, ebp
pop ebp
ret
Function at 0x40d630
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x442628
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x1c], 0
push 0xffffffffffffffff
push eax
push ecx
mov dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.004019ce
mov dword [esp + 0x30], 0
mov edx, 0x24
lea ecx, [esp + 0xc]
call fcn.0040cc20
cmp dword [esp + 0x20], 8
lea eax, [esp + 0xc]
cmovae eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d6cb
test al, 0x10
je 0x40d6cb
mov bl, 1
jmp 0x40d6cd
xor bl, bl
mov dword [esp + 0x30], 0xffffffff
cmp dword [esp + 0x20], 8
jb 0x40d6e8
push dword [esp + 0xc]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x20], 7
mov word [esp + 0xc], ax
mov al, bl
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004333fa
add esp, 0x2c
ret
Function at 0x40e5e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4427c8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov eax, dword [edx]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0
mov eax, dword [edx + 4]
mov ecx, dword [edx + 8]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, dword [edx + 0x14]
mov ecx, dword [edx + 0x18]
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x1c], ecx
add eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x1c]
adc ecx, 0
mov dword [esi], eax
xor eax, eax
mov dword [esi + 4], ecx
mov word [esp + 8], ax
lea ecx, [esp + 8]
lea eax, [edx + 0x2c]
mov dword [esp + 0x1c], 7
push eax
mov dword [esp + 0x1c], 0
call fcn.00401628
mov dword [esp + 0x28], 0
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0040d320
mov dword [esp + 0x28], 0xffffffff
cmp dword [esp + 0x1c], 8
jb 0x40e6af
push dword [esp + 8]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret 8

Function at 0x40e8f0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
jne 0x40e8fc
xor al, al
ret
and eax, 0xffffb1af
cmp dword [ecx + 0x14], 8
jb 0x40e909
mov ecx, dword [ecx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x442840
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
push 0x44a748
call fcn.0043413b
add esp, 4
mov ecx, esi
push eax
sub esp, 8
call fcn.0040f0b0
cmp eax, 0xffffffff
jne 0x40e9ca
cmp dword [esi + 0x14], 8
jb 0x40e9b7
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x40ea1c
lea ecx, [esp + 0xc]
call fcn.0040d210
mov dword [esp + 0x58], 0
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.0040e720
mov bl, al
mov dword [esp + 0x58], 0xffffffff
cmp dword [esp + 0x48], 8
jb 0x40ea03
push dword [esp + 0x34]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x48], 7
mov word [esp + 0x34], ax
mov al, bl
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.004333fa
add esp, 0x50
ret
Function at 0x40f490
Capabilities:
Get common file path

Disassembly:
sub esp, 0x220
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x234]
mov ebx, ecx
push esi
mov esi, dword [esp + 0x230]
push edi
cmp byte [ebx], 0
mov edi, dword [esp + 0x238]
je 0x40f4d3
lea ecx, [ebx + 4]
call fcn.004123f0
test al, al
sete al
mov byte [ebx], al
xor eax, eax
push 0x20a
push eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x22]
push eax
call fcn.00434600
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x40f4f5
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x40f4fd
mov esi, dword [esi]
lea eax, [esp + 0x18]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x40f546
xor eax, eax
mov ecx, ebp
mov word [esp + 0x222], ax
lea eax, [esp + 0x18]
push eax
call fcn.00401628
lea ecx, [ebx + 4]
mov al, 1
mov byte [esp + 0x17], al
cmp ecx, ebp
je 0x40f541
push 0xffffffffffffffff
push 0
push ebp
call fcn.004019ce
mov al, byte [esp + 0x17]
mov byte [ebx], 1
jmp 0x40f548
xor al, al
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004333fa
add esp, 0x220
ret 0xc
Function at 0x410e70
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x410e9c
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004333fa
add esp, 8
ret 4
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push dword [ecx + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410ec8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x410ec8
xor cl, cl
jmp 0x410eda
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
adc ecx, 0
mov dword [esi + 4], ecx
mov cl, 1
xor eax, eax
test cl, cl
mov ecx, dword [esp + 0xc]
pop edi
sete al
pop esi
xor ecx, esp
call fcn.004333fa
add esp, 8
ret 4

Function at 0x410f00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x442d8b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
push edi
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x34
call fcn.0043451f
mov esi, eax
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 0x30], 0
test esi, esi
je 0x410f6c
push 0x34
push 0
push esi
call fcn.00434600
add esp, 0xc
mov ecx, esi
call fcn.004109a0
mov esi, eax
jmp 0x410f6e
xor esi, esi
mov dword [esp + 0x30], 0xffffffff
lea eax, [edi + 0xc]
push ecx
push 3
push 3
push 0x80000000
push eax
lea ecx, [esi + 0x18]
call fcn.00412ca0
test al, al
jne 0x410fa0
test esi, esi
je 0x410f9c
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor eax, eax
jmp 0x410ff9
push 1
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
push 0
push dword [edi + 8]
movlpd qword [esp + 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp ecx, 0xffffffff
jne 0x410fd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410f90
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
xorps xmm0, xmm0
push edx
push 0
push dword [esp + 0x18]
movlpd qword [esp + 0x20], xmm0
mov eax, dword [esi + 8]
push ecx
lea ecx, [esi + 8]
call dword [eax + 0x14]
test eax, eax
jne 0x410f94
lea eax, [esi + 8]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004333fa
mov esp, ebp
pop ebp
ret
Function at 0x4112a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x442e69
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
push 0x18
call fcn.0043451f
add esp, 4
mov dword [edi + 0x20], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x38], 0
lea esi, [edi + 0x24]
mov dword [esi], 0
xor eax, eax
mov byte [esi + 4], 0
mov dword [esi + 0x1c], 7
mov dword [esi + 0x18], 0
mov dword [esp + 0x14], esi
mov word [esi + 8], ax
mov byte [esp + 0x38], 2
lea ecx, [esp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 0x10], 0xffffffff
mov dword [edi + 0x14], 0xffffffff
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
push 0x44979c
mov byte [edi + 8], al
mov dword [edi + 0x18], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x1c], eax
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], eax
mov word [esp + 0x1c], ax
call fcn.00401628
mov byte [esp + 0x38], 3
sub esp, 8
lea eax, [esp + 0x20]
mov ecx, esi
push eax
call fcn.00413130
mov byte [esp + 0x38], 2
cmp dword [esp + 0x2c], 8
jb 0x411383
push dword [esp + 0x18]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
mov dword [esp + 0x38], 0xffffffff
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x412360
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor eax, eax
mov esi, ecx
push 0x20a
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.00434600
add esp, 0xc
lea eax, [esp + 4]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x4123d7
xor eax, eax
mov ecx, esi
mov word [esp + 0x20e], ax
lea eax, [esp + 4]
push eax
call fcn.00401628
mov al, 1
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004333fa
add esp, 0x210
ret
mov ecx, dword [esp + 0x210]
xor al, al
pop esi
xor ecx, esp
call fcn.004333fa
add esp, 0x210
ret
Function at 0x4123f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4431d0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x456178]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x412427
mov eax, dword [esi]
jmp 0x412429
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x412448
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x412452
mov eax, dword [esi]
jmp 0x412454
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4125b8
cmp dword [esi + 0x14], 8
jb 0x412470
mov eax, dword [esi]
jmp 0x412472
mov eax, esi
xor ecx, ecx
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0
push eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
call fcn.00401628
mov dword [esp + 0x38], 0
lea eax, [esp + 0x14]
cmp dword [esp + 0x28], 8
push 0
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
test al, al
sete al
mov byte [esp + 0x13], al
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x4124ef
push dword [esp + 0x14]
call fcn.004342bb
mov al, byte [esp + 0x17]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], cx
test al, al
jne 0x4125b8
cmp dword [esi + 0x14], 8
jb 0x412518
mov eax, dword [esi]
jmp 0x41251a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412434
cmp dword [esi + 0x14], 8
jb 0x412531
mov esi, dword [esi]
xor eax, eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x14]
push esi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
call fcn.00401628
mov dword [esp + 0x38], 1
and edi, 0xffffb1af
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
push edi
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x4125a1
push dword [esp + 0x14]
call fcn.004342bb
add esp, 4
xor eax, eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
mov word [esp + 0x14], ax
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4125d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x624
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x620], eax
cmp dword [0x457290], 0
push esi
mov esi, ecx
je 0x41261e
cmp esi, 0x457280
je 0x412606
push 0xffffffffffffffff
push 0
push 0x457280
call fcn.004019ce
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004333fa
add esp, 0x624
ret
xor eax, eax
push 0x20a
push eax
mov word [esp + 0xc], ax
lea eax, [esp + 0xe]
push eax
call fcn.00434600
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x4126fd
xor eax, eax
push 0x410
push eax
mov word [esp + 0x216], ax
mov word [esp + 0x218], ax
lea eax, [esp + 0x21a]
push eax
call fcn.00434600
add esp, 0xc
lea eax, [esp + 0x210]
push 0x208
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4126d9
test eax, eax
je 0x4126d9
add eax, eax
cmp eax, 0x412
jae 0x412715
xor ecx, ecx
mov word [esp + eax + 0x210], cx
lea eax, [esp + 0x210]
push eax
mov ecx, esi
call fcn.00401628
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004333fa
add esp, 0x624
ret
lea eax, [esp + 4]
mov ecx, esi
push eax
call fcn.00401628
mov al, 1
pop esi
mov ecx, dword [esp + 0x620]
xor ecx, esp
call fcn.004333fa
add esp, 0x624
ret
mov ecx, dword [esp + 0x624]
xor al, al
pop esi
xor ecx, esp
call fcn.004333fa
add esp, 0x624
ret
call fcn.004343f8
int3

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

Disassembly:
sub esp, 0x94
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x98]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
mov dword [esp + 0xc], edx
xor esi, esi
cdq
push edi
mov dword [esp + 0x14], ecx
lea edi, [esp + 0x58]
mov ebp, eax
push 0
push 0xa
push edx
push ebp
call fcn.00439f30
lea ecx, [eax + eax*4]
add ecx, ecx
sub ebp, ecx
add ebp, 0x30
mov word [esp + esi*2 + 0x18], bp
inc esi
mov ebp, eax
or eax, edx
jne 0x412b07
jmp 0x412b30
mov ax, word [esp + esi*2 + 0x16]
lea edi, [edi + 2]
dec esi
mov word [edi - 2], ax
test esi, esi
jg 0x412b30
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x14]
cmp ebx, eax
je 0x412b5a
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.004019ce
push 0x44a938
call fcn.0043413b
add esp, 4
mov ecx, ebx
push eax
push 0x44a938
call fcn.004021eb
cmp word [esp + 0x58], 0
jne 0x412b80
xor eax, eax
jmp 0x412b8d
lea eax, [esp + 0x58]
push eax
call fcn.0043413b
add esp, 4
push eax
lea eax, [esp + 0x5c]
mov ecx, ebx
push eax
call fcn.004021eb
push 0x44a93c
call fcn.0043413b
add esp, 4
mov ecx, ebx
push eax
push 0x44a93c
call fcn.004021eb
push 0xffffffffffffffff
push 0
push dword [esp + 0x18]
mov ecx, ebx
call fcn.00402149
cmp dword [ebx + 0x14], 8
jb 0x412bcb
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
pop esi
sete al
mov ecx, dword [esp + 0x94]
pop ebp
pop ebx
xor ecx, esp
call fcn.004333fa
add esp, 0x94
ret
Function at 0x412d30
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x456178]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push edi
push eax
push dword [ecx]
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x412d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x412d7f
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004333fa
add esp, 8
ret 4
mov ecx, dword [esp + 8]
xor eax, eax
add eax, edi
mov dword [esi], eax
mov al, 1
adc ecx, 0
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor ecx, esp
call fcn.004333fa
add esp, 8
ret 4

Function at 0x412e50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x24
xor eax, eax
push ebx
push ebp
push esi
push edi
lea esp, [esp]
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x45e160], ecx
inc eax
cmp eax, 0x100
jb 0x412e60
cmp eax, 0x800
jae 0x412f33
lea esp, [esp]
mov edx, dword [eax*4 + 0x45dd60]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x45e160]
mov dword [eax*4 + 0x45e160], edx
inc eax
cmp eax, 0x800
jb 0x412f10
lea ecx, [esp + 0x10]
mov dword [0x45ae30], 0x4422b0
call fcn.00413200
test eax, eax
je 0x412feb
mov edi, dword [esp + 0x20]
xor ecx, ecx
mov ebp, dword [esp + 0x18]
mov esi, edi
shr esi, 8
mov eax, 0x4571f8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor edx, edx
mov ebx, dword [esp + 0x14]
cmp dword [eax - 8], ebx
mov ebx, dword [esp + 0x1c]
jne 0x412f89
cmp dword [eax - 4], ebp
jne 0x412f89
cmp dword [eax], ebx
je 0x412f98
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x412f73
or ecx, 0xffffffff
sub ecx, 0
je 0x412fd2
dec ecx
je 0x412fc1
dec ecx
jne 0x412feb
cmp esi, 6
jb 0x412feb
jne 0x412fe1
cmp edi, 0xf
jb 0x412feb
mov dword [0x45ae30], 0x4421d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp esi, 5
jb 0x412feb
jne 0x412fe1
cmp edi, 6
jb 0x412feb
cmp edi, 0xa
jmp 0x412fdf
cmp esi, 6
jb 0x412feb
jne 0x412fe1
cmp edi, 0x100c
je 0x412feb
mov dword [0x45ae30], 0x4421d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret