joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b170
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
push edi
xor edi, edi
test ecx, ecx
je 0x40b1e7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b1e7
cmp byte [eax], 0
je 0x40b1e7
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40b1e7
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x10]
push edx
mov edx, dword [0x431e18]
push edx
push 0x20006
push edi
push edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40b1e7
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ecx, dword [esp + 0xc]
inc eax
push eax
mov eax, dword [esp + 0x18]
push esi
push 1
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40b1dc
mov edi, 1
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
ret

Function at 0x40b1f0
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
test ecx, ecx
je 0x40b25b
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b25b
cmp byte [eax], 0
je 0x40b25b
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0xc]
push edx
mov edx, dword [0x431e18]
push edx
push 0x20006
push esi
push esi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40b25b
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40b250
mov esi, 1
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret

Function at 0x40b260
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
xor esi, esi
test ecx, ecx
push edi
je 0x40b2dc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b2dc
cmp byte [eax], 0
je 0x40b2dc
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x40b2dc
mov ebx, dword [esp + 0x20]
cmp ebx, 0x3fac
ja 0x40b2dc
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
mov edx, dword [0x431e18]
push edx
push 0x20006
push esi
push esi
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40b2dc
mov ecx, dword [esp + 0x10]
push ebx
push edi
push 3
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40b2d1
mov esi, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x40b2f0
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
test ecx, ecx
je 0x40b341
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40b341
cmp byte [eax], 0
je 0x40b341
lea edx, [esp + 8]
push edx
push 0x20006
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b341
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret
Function at 0x40b6f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
push esi
xor esi, esi
push edi
test ecx, ecx
je 0x40b761
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b761
cmp byte [eax], 0
je 0x40b761
mov edi, dword [esp + 0x14]
test edi, edi
je 0x40b761
cmp byte [edi], 0
je 0x40b761
lea edx, [esp + 0x10]
push edx
push 0x20019
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b761
mov ecx, dword [esp + 0x10]
push eax
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0x14]
push eax
push esi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40b756
mov eax, dword [esp + 0xc]
xor edx, edx
test eax, eax
setne dl
mov esi, edx
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
ret

Function at 0x40b7d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov edx, dword [esp + 8]
push edi
xor eax, eax
mov ecx, 6
mov edi, edx
push eax
rep stosd dword es:[edi], eax
push eax
lea eax, [edx + 0x14]
push eax
lea ecx, [edx + 0x10]
lea eax, [edx + 0xc]
push ecx
push eax
lea ecx, [edx + 4]
push 0
push ecx
push edx
mov edx, dword [esp + 0x28]
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
neg eax
sbb eax, eax
pop edi
inc eax
ret

Function at 0x40b810
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x34
push esi
xor esi, esi
test eax, eax
je 0x40b8f6
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x40b8f6
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 4]
push ecx
push 0x20019
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b8f6
mov ecx, dword [esp + 4]
push ebx
lea eax, [esp + 0x24]
push ebp
push eax
push ecx
call fcn.0040b7d0
add esp, 8
test eax, eax
je 0x40b8e2
mov edx, dword [esp + 0x2c]
lea ebx, [edx + 1]
push ebx
call fcn.0041b345
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40b8e2
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
push edi
mov dword [esp + 0x14], ebx
xor edi, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebp
mov esi, 1
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
push ebp
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40b8d8
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x20]
push edx
push eax
call dword [esp + 0x58]
add esp, 8
mov esi, eax
inc edi
mov dword [esp + 0x14], ebx
test esi, esi
jne 0x40b89b
push ebp
call fcn.0041b272
add esp, 4
pop edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop ebx
pop esi
add esp, 0x34
ret
mov eax, esi
pop esi
add esp, 0x34
ret
Function at 0x40b900
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x3c
push edi
xor edi, edi
test eax, eax
je 0x40ba2d
cmp byte [eax], 0
je 0x40ba2d
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x40ba2d
mov edx, dword [esp + 0x44]
lea ecx, [esp + 4]
push ecx
push 0x20019
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ba2d
mov ecx, dword [esp + 4]
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.0040b7d0
add esp, 8
test eax, eax
je 0x40ba22
mov edx, dword [esp + 0x38]
push ebx
push ebp
push esi
lea ebx, [edx + 1]
push ebx
call fcn.0041b345
mov esi, eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], esi
lea ebp, [eax + 1]
push ebp
call fcn.0041b345
add esp, 8
mov dword [esp + 0x18], eax
test esi, esi
je 0x40ba0c
test eax, eax
je 0x40ba0c
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
xor esi, esi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x30], ebp
mov edi, 1
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x5c]
push 0
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x40ba08
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [esp + 0x60]
add esp, 8
mov edi, eax
inc esi
mov dword [esp + 0x50], ebx
test edi, edi
mov dword [esp + 0x30], ebp
jne 0x40b9bd
mov esi, dword [esp + 0x14]
push esi
call fcn.0041b272
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041b272
add esp, 8
pop esi
pop ebp
pop ebx
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 0x3c
ret
Function at 0x40be60
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.0040be50
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c040
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 0x40c021
mov al, byte [esp + 0x84]
test al, al
jne 0x40bf5d
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 0x40bea7
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 0x40bf4a
mov eax, dword [esp + 0x30]
cmp eax, 1
je 0x40bf48
cmp eax, 2
jne 0x40bf4a
xor bl, bl
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x40bea7
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
lea edx, [ecx + edi + 1]
cmp edx, eax
jb 0x40bfd5
mov ebx, dword [esi]
test ebx, ebx
je 0x40bfbc
add eax, 0x101
push eax
call fcn.0041b345
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.0041b272
add esp, 8
jmp 0x40bfd5
push 0x101
call fcn.0041b345
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 0x40bea7
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
je 0x40c034
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 0x40c750
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 [0x431e45]
add esi, ebx
add esi, edi
test al, al
jne 0x40c7c2
push esi
call fcn.0041c169
add esp, 4
mov byte [0x431e45], 1
call fcn.0041c176
mov dword [esp + 0x3c], eax
call fcn.0041c176
mov ebx, eax
mov eax, esi
and eax, 0xff
add eax, 0xa
test eax, eax
jle 0x40c7f3
mov edi, eax
call fcn.0041c176
dec edi
mov ebx, eax
jne 0x40c7e9
push 0
call fcn.0041b800
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add eax, edi
add esi, eax
call fcn.0041c176
and esi, 0xff
add esi, 0xa
test esi, esi
jle 0x40c823
call fcn.0041c176
dec esi
jne 0x40c81b
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 0x40c9a0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push eax
or edi, 0xffffffff
call fcn.0040c920
mov esi, eax
add esp, 4
test esi, esi
je 0x40c9ca
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push esi
mov edi, eax
call fcn.0041b272
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x40ca30
Capabilities:
Delete file

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
xor esi, esi
mov ebx, 0x57
test edi, edi
je 0x40ca87
cmp byte [edi], 0
je 0x40ca87
push edi
call fcn.0040ca00
add esp, 4
test eax, eax
je 0x40ca80
push ebp
push edi
call fcn.0040d320
add esp, 8
test eax, eax
je 0x40ca87
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
jmp 0x40ca87
mov esi, 1
xor ebx, ebx
test ebp, ebp
je 0x40ca8e
mov dword [ebp], ebx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40cbf0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4256f8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x40cd8c
cmp byte [ebx], 0
je 0x40cd8c
push ebx
call fcn.0040c9d0
add esp, 4
test eax, eax
je 0x40cc48
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov esi, eax
add esi, 0xa
push esi
mov dword [esp + 0x14], esi
call fcn.0041b345
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x40cd7a
push ebx
push ebp
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push esi
call fcn.0041b345
mov esi, eax
add esp, 4
test esi, esi
je 0x40cd5f
mov byte [esi], 0
mov al, byte [ebp]
cmp al, 0x5c
mov edi, 1
mov ebx, ebp
jne 0x40ccbc
cmp byte [ebp + 1], 0x5c
jne 0x40ccbc
lea eax, [ebp + 2]
push 0x5c
push eax
call fcn.0041bb90
mov ebx, eax
add esp, 8
inc ebx
mov ecx, ebx
sub ecx, ebp
inc ecx
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcpynA]
push 0x5c
push ebx
lea ecx, [esp + 0x1c]
call fcn.0040f3d0
lea edx, [esp + 0x34]
lea ecx, [esp + 0x14]
push edx
mov dword [esp + 0x30], 0
call fcn.0040f540
test eax, eax
je 0x40cd3a
mov ebx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov ecx, dword [esp + 0x10]
push ecx
push esi
call fcn.0040ce70
push esi
call fcn.0040c9d0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40cd28
mov edx, dword [0x431e88]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test ebx, ebx
mov edi, eax
je 0x40cd28
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx], eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x14]
push eax
call fcn.0040f540
test eax, eax
jne 0x40cce6
push esi
call fcn.0041b272
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0040f430
push ebp
call fcn.0041b272
add esp, 4
jmp 0x40cd9a
mov esi, dword [esp + 0x38]
test esi, esi
je 0x40cd6f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], eax
push ebp
call fcn.0041b272
add esp, 4
jmp 0x40cd9a
mov esi, dword [esp + 0x38]
test esi, esi
je 0x40cd9a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi], eax
jmp 0x40cd9a
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40cd9a
mov dword [eax], 0x57
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x40cdb0
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
test ebx, ebx
push edi
je 0x40cdbf
mov dword [ebx], esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ce0a
cmp byte [eax], 0
je 0x40ce0a
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40ce0a
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ce03
xor esi, esi
test ebx, ebx
je 0x40ce03
mov dword [ebx], esi
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x40e2c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x9c
push ebx
push esi
mov esi, dword [esp + 0xa8]
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0xc], ebx
je 0x40e4dc
cmp byte [esi], 0
je 0x40e4dc
mov eax, dword [esp + 0xac]
cmp eax, ebx
je 0x40e4dc
cmp byte [eax], 0
je 0x40e4dc
mov eax, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xb8]
push edi
push ebx
push ebp
push eax
call fcn.0040e510
mov ecx, 0x22
xor eax, eax
lea edi, [esp + 0x30]
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
push eax
push ecx
push esi
call sub.LZ32.dll_LZOpenFileA
mov ebx, eax
test ebx, ebx
jl 0x40e4c3
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
mov esi, dword [esp + 0xb4]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x40e4aa
push 0x4000
call fcn.0041b345
mov edi, eax
add esp, 4
test edi, edi
je 0x40e49a
mov dword [esp + 0x10], 0
push 0x4000
push edi
push ebx
call sub.LZ32.dll_LZRead
mov esi, eax
test esi, esi
jl 0x40e3da
je 0x40e433
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push 0
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40e3f3
mov eax, dword [esp + 0x20]
cmp esi, eax
jne 0x40e413
add dword [esp + 0x10], eax
jmp 0x40e3a0
mov ecx, dword [esp + 0xb8]
push esi
push str.Decompress:_LZRead_returned__d
push ebp
push ecx
call fcn.0040e510
add esp, 0x10
jmp 0x40e466
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb8]
push edx
push str.Decompress_failed_to_write_to__s
push ebp
push eax
call fcn.0040e510
add esp, 0x10
jmp 0x40e466
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb8]
push ecx
push str.Decompress_failed_to_write_all_bytes_to__s
push ebp
push edx
call fcn.0040e510
add esp, 0x10
jmp 0x40e466
push edi
call fcn.0041b272
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
add esp, 4
cmp ecx, eax
jne 0x40e48a
mov ecx, dword [esp + 0xb8]
push str.Success
push ebp
mov dword [esp + 0x1c], 1
push ecx
call fcn.0040e510
add esp, 0xc
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop ebp
test ebx, ebx
jl 0x40e47d
push ebx
call sub.LZ32.dll_LZClose
mov eax, dword [esp + 0xc]
pop esi
pop ebx
add esp, 0x9c
ret
mov edx, dword [esp + 0xb8]
push str.Decompress_failed_to_copy_all_bytes
push ebp
push edx
jmp 0x40e45e
mov eax, dword [esp + 0xb8]
push str.Decompress_failed_to_alloc_copy_buffer
push ebp
push eax
jmp 0x40e45e
mov ecx, dword [esp + 0xb8]
push esi
push str.Decompress_failed_to_create__s
push ebp
push ecx
call fcn.0040e510
add esp, 0x10
jmp 0x40e471
mov edx, dword [esp + 0xb8]
push esi
push str.Decompress_failed_to_open_compressed_file__s
push ebp
push edx
call fcn.0040e510
add esp, 0x10
jmp 0x40e471
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xb0]
push str.Invalid_arg_s_
push eax
push ecx
call fcn.0040e510
add esp, 0xc
push ebx
call sub.LZ32.dll_LZClose
mov eax, dword [esp + 0xc]
pop esi
pop ebx
add esp, 0x9c
ret
Function at 0x40eff0
Capabilities:
Check os version

Disassembly:
mov ecx, dword [esp + 4]
push ebp
xor eax, eax
push esi
test ecx, ecx
push edi
je 0x40f0a2
mov ebp, dword [esp + 0x14]
test ebp, ebp
jle 0x40f0a2
mov edi, dword [esp + 0x18]
test edi, edi
je 0x40f0a2
cmp byte [edi], 0
je 0x40f0a2
mov eax, dword [0x432168]
test eax, eax
jne 0x40f040
push 0x432168
mov dword [0x432168], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov eax, dword [esp + 0x1c]
mov esi, 0x42fa7c
test eax, eax
je 0x40f064
cmp dword [0x432178], 2
jne 0x40f064
cmp dword [0x43216c], 5
jb 0x40f064
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 0x40f0a0
mov edx, dword [esp + 0x10]
push edi
push esi
push 0x42ae94
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 0x40f0b0
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 0x40f0f6
cmp byte [eax], 0
je 0x40f0f6
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
test eax, eax
mov dword [esi], eax
je 0x40f0f6
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 0x40f5c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42577b
push eax
mov dword fs:[0], esp
sub esp, 0xcb4
push ebx
xor ebx, ebx
call fcn.0040fde0
test eax, eax
jne 0x40f5fd
pop ebx
mov ecx, dword [esp + 0xcb4]
mov dword fs:[0], ecx
add esp, 0xcc0
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push esi
push edi
call ebp
mov ecx, dword [esp + 0xcd8]
mov edx, dword [esp + 0xcd4]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call fcn.00410290
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
stosb byte es:[edi], al
call fcn.0040f760
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [0x4322fc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xcdc]
neg eax
sbb eax, eax
push ecx
and eax, 2
push ecx
push ecx
push eax
push 1
lea ecx, [esp + 0x4a8]
call fcn.00410510
mov eax, dword [esp + 0xce0]
mov dword [esp + 0xccc], ebx
cmp eax, ebx
jne 0x40f69d
mov eax, 0x42fa7c
push eax
lea ecx, [esp + 0x98]
push str.User_Agent:_Qwert_3.1_Log_r_n_s
push ecx
call fcn.0041c117
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x94]
lea ecx, [esp + 0x14]
push edx
push eax
push str._Cmd_client_log_event
push ecx
lea ecx, [esp + 0x4a4]
call fcn.00410a50
mov esi, eax
mov eax, dword [0x432300]
cmp eax, ebx
je 0x40f705
mov edx, dword [0x432304]
mov ecx, dword [esp + 0x10]
push edx
push esi
lea edx, [esp + 0x9c]
push ecx
push edx
lea ecx, [esp + 0x24]
push str._Cmd_client_log_event
push ecx
call eax
add esp, 0x18
cmp esi, 0xc8
jne 0x40f712
mov ebx, 1
call ebp
mov edx, dword [esp + 0x10]
push edx
call fcn.0041b272
add esp, 4
lea ecx, [esp + 0x494]
mov dword [esp + 0xccc], 0xffffffff
call fcn.00410630
mov ecx, dword [esp + 0xcc4]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xcc0
ret