joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e2b0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x244
xor eax, eax
push ebp
mov ebp, dword [esp + 0x250]
mov ecx, ebp
push esi
mov esi, dword [esp + 0x250]
push edi
mov dword [ecx], eax
push esi
mov dword [ecx + 4], eax
call fcn.0040d7d0
add esp, 4
test eax, eax
jne 0x40e2e7
pop edi
pop esi
pop ebp
add esp, 0x244
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0xc]
push esi
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0xc]
push 0x104
push eax
call fcn.0040dd40
add esp, 8
lea ecx, [esp + 0xc]
push 0x43b3f8
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x110]
lea eax, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40e350
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x244
ret
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x110], 0x10
je 0x40e36f
cmp byte [esp + 0x13c], 0x2e
je 0x40e372
inc dword [ebp]
jmp 0x40e372
inc dword [ebp + 4]
lea ecx, [esp + 0x110]
push ecx
push esi
call edi
test eax, eax
jne 0x40e356
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x244
ret

Function at 0x40e3a0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
mov ebx, 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, dword [esp + 0x14]
test ebp, ebp
je 0x40e3f1
cmp byte [ebp], 0
je 0x40e3f1
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0xffffffff
mov ebx, eax
je 0x40e3f1
and edi, 0xfffffffe
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e402
mov dword [eax], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40e410
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push esi
mov esi, dword [esp + 0x110]
xor ebx, ebx
test esi, esi
push edi
je 0x40e483
cmp byte [esi], 0
je 0x40e483
mov edi, dword [esp + 0x118]
test edi, edi
je 0x40e483
cmp dword [esp + 0x11c], 0x104
jl 0x40e483
mov eax, dword [esp + 0x120]
test eax, eax
jne 0x40e46e
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40e483
lea ecx, [esp + 0xc]
lea eax, [esp + 0xc]
test ecx, ecx
je 0x40e483
push edi
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x40e4e0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
test esi, esi
je 0x40e508
mov eax, dword [esp + 0x10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40e508
push esi
call fcn.0040dd80
add esp, 4
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x40ea70
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
xor edi, edi
test ebp, ebp
je 0x40ea81
mov dword [ebp], edi
mov esi, dword [esp + 0x14]
push esi
call fcn.0040d800
add esp, 4
test eax, eax
je 0x40eb29
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40eb29
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.004205ed
mov esi, eax
add esp, 4
test esi, esi
je 0x40eb1b
lea ecx, [esp + 0x18]
push 0
push ecx
push edi
push esi
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40eb10
mov eax, dword [esp + 0x18]
cmp edi, eax
jne 0x40eb10
test ebp, ebp
mov byte [eax + esi], 0
je 0x40eb1b
push ebx
mov dword [ebp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004203d7
add esp, 4
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40ebc0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
je 0x40ec2c
cmp byte [eax], 0
je 0x40ec2c
mov ebx, dword [esp + 0x14]
cmp ebx, ebp
je 0x40ec2c
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40ec2c
push edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push ebp
push eax
push edi
push ebx
push esi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40ec1e
cmp edi, dword [esp + 0x14]
jne 0x40ec1e
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x4106e0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x7c]
lea eax, [esp + 0x1c]
push edi
xor edi, edi
push eax
xor ebx, ebx
push 0x20019
push edi
mov dword [esp + 0x24], ebx
mov dword [esi], edi
xor ebp, ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
call fcn.004106d0
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4108c0
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x1c]
mov eax, ecx
inc ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x34]
push ecx
push eax
push edx
mov dword [esp + 0x3c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4108a1
mov al, byte [esp + 0x84]
test al, al
jne 0x4107dd
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push 0x20019
lea ecx, [esp + 0x44]
push 0
push ecx
push edx
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410727
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x30]
push eax
push ecx
push 0
push 0
push str.RegStatus
push edx
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4107ca
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x4107c8
cmp eax, 2
jne 0x4107ca
xor bl, bl
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x410727
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
lea edx, [ecx + edi + 1]
cmp edx, eax
jb 0x410855
mov ebx, dword [esi]
test ebx, ebx
je 0x41083c
add eax, 0x101
push eax
call fcn.004205ed
mov ecx, edi
mov dword [esi], eax
mov edx, ecx
mov esi, ebx
mov edi, eax
mov eax, dword [esp + 0x84]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x18]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x18]
mov ebp, dword [eax]
add esi, 0x100
add ebp, edx
mov dword [esp + 0x18], esi
call fcn.004203d7
add esp, 8
jmp 0x410855
push 0x101
call fcn.004205ed
add esp, 4
mov dword [esi], eax
mov dword [esp + 0x10], 0x100
mov ebp, eax
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x80]
lea ebp, [eax + ebp + 1]
lea edx, [ecx + eax + 1]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edx
inc eax
mov edi, edx
mov dword [esp + 0x18], eax
jmp 0x410727
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x4108b4
mov byte [ebp], 0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x6c
ret
Function at 0x411210
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov ebp, dword [esp + 0x3c]
mov byte [ebp + 0xf], al
shr eax, 8
mov byte [ebp + 0xe], al
shr eax, 8
mov byte [ebp + 0xd], al
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
shr edi, 0xc
lea edx, [esp + 0x10]
shl edi, 0xc
shr ecx, 0xc
push edx
add edi, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
shl ebx, 0xa
add ebx, eax
call esi
mov esi, eax
mov al, byte [0x443c90]
add esi, ebx
add esi, edi
test al, al
jne 0x411282
push esi
call fcn.00421748
add esp, 4
mov byte [0x443c90], 1
call fcn.00421755
mov dword [esp + 0x3c], eax
call fcn.00421755
mov ebx, eax
mov eax, esi
and eax, 0xff
add eax, 0xa
test eax, eax
jle 0x4112b3
mov edi, eax
call fcn.00421755
dec edi
mov ebx, eax
jne 0x4112a9
push 0
call fcn.004205fb
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, edi
add esi, eax
call fcn.00421755
and esi, 0xff
add esi, 0xa
test esi, esi
jle 0x4112e3
call fcn.00421755
dec esi
jne 0x4112db
mov cl, byte [esp + 0x3c]
or al, 0x80
pop edi
mov byte [ebp + 0xc], cl
mov byte [ebp + 0xb], bl
mov byte [ebp + 0xa], al
pop esi
pop ebp
pop ebx
add esp, 0x28
ret

Function at 0x411400
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x443d30]
test eax, eax
jne 0x41153b
push edi
mov ecx, 0x25
xor eax, eax
mov edi, 0x443c98
rep stosd dword es:[edi], eax
push 0x443c98
mov dword [0x443d2c], 0
mov dword [0x443c98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edx, dword [0x443ca4]
mov eax, dword [0x443ca8]
and edx, 0xffff
sub eax, 0
mov dword [0x443ca4], edx
mov ecx, 1
pop edi
je 0x41152f
dec eax
je 0x4114f8
dec eax
je 0x41147c
mov dword [0x443d2c], 0
mov dword [0x443d30], ecx
ret
mov eax, dword [0x443c9c]
cmp eax, 4
jae 0x411497
mov dword [0x443d2c], 4
mov dword [0x443d30], ecx
ret
jne 0x4114aa
mov dword [0x443d2c], 5
mov dword [0x443d30], ecx
ret
cmp eax, 5
jne 0x411535
mov eax, dword [0x443ca0]
test eax, eax
jne 0x4114cd
mov dword [0x443d2c], 6
mov dword [0x443d30], ecx
ret
cmp eax, ecx
jne 0x4114e2
mov dword [0x443d2c], 7
mov dword [0x443d30], ecx
ret
cmp eax, 2
jne 0x411535
mov dword [0x443d2c], 7
mov dword [0x443d30], ecx
ret
mov eax, dword [0x443c9c]
cmp eax, 4
ja 0x41151e
jne 0x41150d
mov eax, dword [0x443ca0]
test eax, eax
ja 0x41151e
mov dword [0x443d2c], 2
mov dword [0x443d30], ecx
ret
mov dword [0x443d2c], 3
mov dword [0x443d30], ecx
ret
mov dword [0x443d2c], ecx
mov dword [0x443d30], ecx
ret
Function at 0x411870
Capabilities:
Create process on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x432478
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
xor esi, esi
push edi
test ebp, ebp
mov edi, 2
je 0x41189e
mov dword [ebp], esi
mov ebx, dword [esp + 0x74]
push ebx
call fcn.0040d800
add esp, 4
test eax, eax
je 0x4119ee
push ebx
lea ecx, [esp + 0x84]
call fcn.0040af60
push 0x20
lea ecx, [esp + 0x84]
mov dword [esp + 0x70], 0
call fcn.0040b940
test eax, eax
je 0x41191a
push 0x22
lea ecx, [esp + 0x84]
call fcn.0040c0c0
push 0x22
lea ecx, [esp + 0x84]
call fcn.0040c210
push 0x43b8d0
push 0
lea ecx, [esp + 0x88]
call fcn.0040c3d0
push 0x43b8d0
lea ecx, [esp + 0x84]
call fcn.0040b840
mov esi, dword [esp + 0x78]
test esi, esi
je 0x411940
push 0x439d5c
lea ecx, [esp + 0x84]
call fcn.0040b840
push esi
lea ecx, [esp + 0x84]
call fcn.0040b840
lea ecx, [esp + 0x80]
call fcn.0040c110
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push eax
mov dword [esp + 0x20], eax
call ebx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0xa0]
call fcn.0040b220
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
mov edi, eax
je 0x4119b5
xor edi, edi
push 0
call ebx
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
test ebp, ebp
je 0x4119d3
mov ecx, dword [esp + 0x10]
mov dword [ebp], ecx
jmp 0x4119da
mov edx, dword [esp + 0x10]
push edx
call ebx
lea ecx, [esp + 0x80]
mov dword [esp + 0x6c], 0xffffffff
call fcn.0040af80
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4119f8
mov dword [eax], edi
mov ecx, dword [esp + 0x64]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret
Function at 0x411e90
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4324d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
lea ecx, [esp + 8]
xor edi, edi
call fcn.0040af50
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
test esi, esi
je 0x411f2e
cmp byte [esi], 0
je 0x411f2e
mov eax, dword [0x443dd0]
test eax, eax
jne 0x411ee2
push 0x443dd0
mov dword [0x443dd0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [0x443de0]
dec eax
je 0x411f1e
dec eax
jne 0x411f2e
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x411f03
mov edi, 1
jmp 0x411f2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc]
push str.MoveFileEx_failed__err__d_
push eax
call fcn.0040c040
add esp, 0xc
jmp 0x411f2e
lea ecx, [esp + 8]
push ecx
push esi
call fcn.00411f70
add esp, 8
mov edi, eax
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x411f40
lea edx, [esp + 8]
push edx
call fcn.0040b680
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0040af80
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x412210
Capabilities:
Create process on windows
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x432510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebp
push esi
lea ecx, [esp + 8]
xor ebp, ebp
call fcn.0040af50
mov esi, dword [esp + 0x78]
mov dword [esp + 0x70], ebp
push esi
call fcn.0040d800
add esp, 4
test eax, eax
je 0x41240c
lea ecx, [esp + 0xc]
call fcn.0040af50
lea eax, [esp + 0xc]
mov byte [esp + 0x70], 1
push eax
push esi
call fcn.0040e9e0
add esp, 8
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x7c]
call fcn.0040b2f0
lea edx, [esp + 0x78]
mov byte [esp + 0x70], 2
push edx
call fcn.0040ded0
add esp, 4
lea ecx, [esp + 0x78]
push str._DEL.bat
call fcn.0040b840
lea eax, [esp + 0x78]
lea ecx, [esp + 0x78]
push eax
call fcn.0040b220
push eax
call fcn.0040e9e0
add esp, 8
lea ecx, [esp + 0x10]
call fcn.0040af50
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 3
call fcn.0040b220
push eax
lea ecx, [esp + 0x10]
call fcn.0040b220
push eax
lea ecx, [esp + 0x14]
call fcn.0040b220
push eax
lea ecx, [esp + 0x1c]
push str.:Repeat_r_ndel___s__r_nif_exist___s__goto_Repeat_r_ndel___s__r_n
push ecx
call fcn.0040c040
add esp, 0x14
lea ecx, [esp + 0x10]
call fcn.0040b220
push eax
lea ecx, [esp + 0x7c]
call fcn.0040b220
push eax
call fcn.0040ec40
add esp, 8
test eax, eax
je 0x4123c4
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov word [esp + 0x58], ax
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0x43b6a4
push ebp
push 0x44
push ebp
push ebp
push ebp
lea ecx, [esp + 0x9c]
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 1
call fcn.0040b220
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x4123b1
lea ecx, [esp + 0x78]
mov ebp, 1
call fcn.0040b220
push eax
lea ecx, [esp + 0xc]
push str.Created_and_started__s
push ecx
call fcn.0040c040
mov edx, dword [esp + 0x24]
add esp, 0xc
push 0xfffffffffffffff1
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esp + 0x18]
push edx
call esi
jmp 0x4123e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xc]
push str.CreateProcess_failed__err__d_
push eax
jmp 0x4123d8
lea ecx, [esp + 0x78]
call fcn.0040b220
push eax
lea ecx, [esp + 0xc]
push str.Failed_to_create___s_
push ecx
call fcn.0040c040
add esp, 0xc
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], 2
call fcn.0040af80
lea ecx, [esp + 0x78]
mov byte [esp + 0x70], 1
call fcn.0040af80
lea ecx, [esp + 0xc]
mov byte [esp + 0x70], 0
call fcn.0040af80
jmp 0x412428
cmp esi, ebp
jne 0x412415
mov esi, 0x44386c
push esi
lea edx, [esp + 0xc]
push str.File_not_found:___s_
push edx
call fcn.0040c040
add esp, 0xc
mov ecx, dword [esp + 0x7c]
test ecx, ecx
je 0x41243a
lea eax, [esp + 8]
push eax
call fcn.0040b680
lea ecx, [esp + 8]
mov dword [esp + 0x70], 0xffffffff
call fcn.0040af80
mov ecx, dword [esp + 0x68]
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x412520
Capabilities:
Get disk size

Disassembly:
sub esp, 0x14
mov eax, dword [0x43ba64]
mov cl, byte [esp + 0x18]
push ebx
push esi
mov dword [esp + 8], eax
lea edx, [esp + 0x18]
push edi
mov byte [esp + 0xc], cl
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x18]
xor esi, esi
push edx
push eax
or edi, 0xffffffff
or ebx, 0xffffffff
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x412597
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push esi
push ecx
push esi
push edx
call fcn.00421830
mov ecx, dword [esp + 0x18]
push esi
push ecx
push edx
push eax
call fcn.00421830
pop edi
pop esi
pop ebx
add esp, 0x14
ret
mov eax, edi
pop edi
mov edx, ebx
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4125d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xb4]
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x14], ebx
call fcn.0040b440
mov esi, dword [esp + 0xac]
cmp esi, ebx
je 0x4127bc
cmp byte [esi], 0
je 0x4127bc
mov ebp, dword [esp + 0xb0]
cmp ebp, ebx
je 0x4127bc
cmp byte [ebp], 0
je 0x4127bc
mov ecx, 0x22
xor eax, eax
lea edi, [esp + 0x20]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x24]
push eax
push esi
call sub.LZ32.dll_LZOpenFileA
mov ebx, eax
test ebx, ebx
jl 0x4127a4
push 2
push 0
push ebx
call sub.LZ32.dll_LZSeek
push 0
push 0
push ebx
mov dword [esp + 0x28], eax
call sub.LZ32.dll_LZSeek
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x412785
push 0x4000
call fcn.004205ed
mov edi, eax
add esp, 4
test edi, edi
je 0x41277e
mov dword [esp + 0x10], 0
push 0x4000
push edi
push ebx
call sub.LZ32.dll_LZRead
mov esi, eax
test esi, esi
jl 0x4126d3
je 0x412729
lea ecx, [esp + 0x18]
push 0
push ecx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4126eb
mov eax, dword [esp + 0x18]
cmp esi, eax
jne 0x41270a
add dword [esp + 0x10], eax
jmp 0x41269d
mov edx, dword [esp + 0xb4]
push esi
push str.Decompress:_LZRead_returned__d
push edx
call fcn.0040c040
add esp, 0xc
jmp 0x412757
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb4]
push eax
push str.Decompress_failed_to_write_to__s
push ecx
call fcn.0040c040
add esp, 0xc
jmp 0x412757
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
push edx
push str.Decompress_failed_to_write_all_bytes_to__s
push eax
call fcn.0040c040
add esp, 0xc
jmp 0x412757
push edi
call fcn.004203d7
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ecx
jne 0x412777
mov dword [esp + 0x14], 1
push str.Success
mov ecx, dword [esp + 0xb8]
call fcn.0040b700
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jl 0x412768
push ebx
call sub.LZ32.dll_LZClose
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
push str.Decompress_failed_to_copy_all_bytes
jmp 0x41274b
push str.Decompress_failed_to_alloc_copy_buffer
jmp 0x41274b
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb4]
push edx
push str.Decompress_failed_to_create__s
push eax
call fcn.0040c040
add esp, 0xc
jmp 0x41275e
mov ecx, dword [esp + 0xb4]
push esi
push str.Decompress_failed_to_open_compressed_file__s
push ecx
call fcn.0040c040
add esp, 0xc
jmp 0x41275e
push str.Invalid_arg_s_
mov ecx, edi
call fcn.0040b700
jmp 0x412762
Function at 0x413240
Capabilities:
Check os version

Disassembly:
mov ecx, dword [esp + 4]
push ebp
xor eax, eax
push esi
test ecx, ecx
push edi
je 0x4132f2
mov ebp, dword [esp + 0x14]
test ebp, ebp
jle 0x4132f2
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4132f2
cmp byte [edi], 0
je 0x4132f2
mov eax, dword [0x443e68]
test eax, eax
jne 0x413290
push 0x443e68
mov dword [0x443e68], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x1c]
mov esi, 0x44386c
test eax, eax
je 0x4132b4
cmp dword [0x443e78], 2
jne 0x4132b4
cmp dword [0x443e6c], 5
jb 0x4132b4
mov esi, str.Global_
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
call ebx
mov edx, eax
push edi
mov dword [esp + 0x1c], edx
call ebx
mov ecx, dword [esp + 0x18]
pop ebx
add ecx, eax
cmp ebp, ecx
jle 0x4132f0
mov edx, dword [esp + 0x10]
push edi
push esi
push 0x43b068
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x413300
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov dword [esi], 0
test eax, eax
mov dword [edi], 0
je 0x413346
cmp byte [eax], 0
je 0x413346
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [esi], eax
je 0x413346
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov dword [edi], ecx
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
ret

Function at 0x413830
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43261f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call fcn.0040af50
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
test eax, eax
je 0x4138fc
cmp byte [eax], 0
je 0x4138fc
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x4138fc
cmp byte [ebx], 0
je 0x4138fc
mov eax, dword [esi + 0x10]
add eax, 0xa
push eax
call fcn.004205ed
mov edi, eax
add esp, 4
test edi, edi
je 0x4138fc
push ebp
mov ebp, dword [esp + 0x34]
test ebp, ebp
jne 0x4138ab
mov ebp, 0x44386c
lea ecx, [esi + 4]
call fcn.0040b220
mov ecx, dword [esi + 0x10]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edi
push ebp
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi + 0xc]
pop ebp
test eax, eax
je 0x4138e0
push 0x3b
push edi
call fcn.00420be0
add esp, 8
test eax, eax
je 0x4138e0
mov byte [eax], 0
push edi
lea ecx, [esp + 0x10]
call fcn.0040b700
lea ecx, [esp + 0xc]
call fcn.0040c110
push edi
call fcn.004203d7
add esp, 4
mov esi, dword [esp + 0x24]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0040b2f0
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.0040af80
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10