joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407ab0
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4591fb
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x4727f0]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4727f0]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x134]
mov edi, edx
test edi, edi
je 0x407bcd
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x407bd1
call fcn.00422455
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407b27
push 0x80004005
call fcn.00401f40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x12c], 0
mov esi, dword [ebp + 0x1060]
mov ecx, dword [esi + 0x24]
push 0x10000
mov byte [ecx], 0
mov edx, dword [esi + 0x28]
push edx
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [esi + 0x28]
mov ecx, dword [0x476eec]
push esi
mov ebx, str.BadHostName
call fcn.004187b0
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00404570
mov ecx, dword [0x476eec]
add esp, 0xc
mov ebx, 0x46321c
call fcn.004187b0
mov esi, dword [esp + 0x18]
push 0
push eax
push esi
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esi - 0x10]
mov dword [esp + 0x12c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407bcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x407c2f
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov ebx, dword [edx]
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov eax, ebx
shr eax, 0x18
push eax
mov ecx, ebx
shr ecx, 0x10
movzx edx, cl
push edx
mov eax, ebx
shr eax, 8
movzx ecx, al
push ecx
movzx edx, bl
push edx
lea eax, [esp + 0x2c]
push str._d._d._d._d
push eax
call fcn.0043e687
mov edi, dword [ebp + 0x1064]
add esp, 0x18
push 1
call fcn.00405fb0
mov eax, dword [ebp + 0x1064]
push esi
lea esi, [esp + 0x20]
call fcn.00406470
mov eax, 1
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0043d963
add esp, 0x11c
ret 4

Function at 0x4086b0
Capabilities:
Create thread

Disassembly:
push ecx
test edi, edi
push ebx
mov dword [esi + 0x210a0], 0
lea ecx, [esi + 0x106c]
jne 0x4086ca
xor eax, eax
jmp 0x4086df
mov eax, edi
lea ebx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4086d0
sub eax, ebx
sar eax, 1
push eax
push edi
call fcn.00401e30
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
push ecx
lea ecx, [esi + 8]
push ecx
mov dword [esi + 0x210a4], eax
call fcn.0040a1e0
add esp, 4
push eax
push 0
push 0
call fcn.0043e5d9
add esp, 0x18
mov dword [esi + 0x21098], eax
mov eax, 1
pop ebx
pop ecx
ret 4
Function at 0x4099c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x459122
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4727f0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.0040d780
xor edi, edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
mov dword [esp + 0x14], edi
call fcn.0040d780
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edi
mov byte [esp + 0x14], 1
call fcn.0040d780
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], edi
mov byte [esp + 0x14], 2
call fcn.0040d780
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov byte [esp + 0x14], 3
call fcn.0040d780
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov byte [esp + 0x14], 4
call fcn.0040d780
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], edi
mov byte [esp + 0x14], 5
call fcn.00406f50
mov dword [esi + 0x50], eax
mov byte [eax + 0x15], 1
mov eax, dword [esi + 0x50]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x50]
mov dword [eax], eax
mov eax, dword [esi + 0x50]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x54], edi
mov dword [esi], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x40ac40
Capabilities:
Create thread

Disassembly:
mov eax, dword [esi + 0x5c]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0xd4], 0
mov dword [esi + 0x64], edi
push 0
mov dword [eax + 0x1068], edi
mov ecx, dword [esi + 0x98]
push ecx
push 0x450
push edi
call ebx
mov edx, dword [esi + 0x94]
push 0
push edx
push 0x45a
push edi
call ebx
cmp dword [esi + 0x68], 0
jne 0x40ac89
xor eax, eax
pop ebx
ret
push 0
push 0
push 0
push ecx
lea eax, [esi + 4]
push eax
call fcn.0040dae0
add esp, 4
push eax
push 0
push 0
call fcn.0043e5d9
add esp, 0x18
mov dword [esi + 0xd8], eax
mov eax, 1
pop ebx
ret
Function at 0x40b850
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x404
mov eax, dword [0x4727f0]
xor eax, esp
mov dword [esp + 0x400], eax
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x80]
push eax
push 0x200
lea ecx, [esp + 0x10]
push ecx
push 0
push str.latest_launch
push 0x464fc0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b892
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xc]
lea esi, [edi + 0x9c]
push edx
mov ecx, esi
call fcn.00401e30
mov eax, dword [esi]
mov ecx, dword [edi + 0x64]
push 0
push eax
push 0x46e
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
add edi, 0x94
push edi
push esi
call fcn.0040d200
mov ecx, dword [esp + 0x410]
add esp, 8
neg al
pop edi
pop esi
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.0043d963
add esp, 0x404
ret

Function at 0x40b900
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x404
mov eax, dword [0x4727f0]
xor eax, esp
mov dword [esp + 0x400], eax
mov eax, dword [esi + 0x80]
push eax
push 0x200
lea ecx, [esp + 8]
push ecx
push 0
push str.latest_launch
push 0x464fc0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [esi + 0x74]
push edx
lea eax, [esp + 4]
push eax
push str.LocalLauncher
push str.Launcher
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [esp]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b956
push edi
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 8]
lea edi, [esi + 0x94]
push ecx
mov ecx, edi
call fcn.00401e30
mov edx, dword [edi]
mov eax, dword [esi + 0x64]
push 0
push edx
push 0x45a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x404]
pop edi
xor ecx, esp
mov eax, 1
call fcn.0043d963
add esp, 0x404
ret
Function at 0x40c070
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x458e3b
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x4727f0]
xor eax, esp
mov dword [esp + 0x460], eax
push esi
push edi
mov eax, dword [0x4727f0]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
push 0x200
lea eax, [esp + 0x70]
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.00422455
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c0d7
push 0x80004005
call fcn.00401f40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x478], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edx, dword [esi + 0x90]
mov edi, eax
push edi
lea ecx, [esp + 0x70]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._s__s__d
push eax
call fcn.00404570
push 0x44
lea ecx, [esp + 0x3c]
push 0
push ecx
call fcn.00440c10
mov ecx, dword [esi + 0x6c]
add esp, 0x20
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi + 0x90]
push ecx
push 0
push 0
push 1
push 0
push 0
push edx
push eax
mov dword [esp + 0x4c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0040b900
push 0
call fcn.0043e0aa
int3
Function at 0x40c180
Capabilities:
Check mutex on windows
Delete file
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x459436
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4727f0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x64]
push 0
push 0x64
push 0x414
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push str.Loong_client
push 0
push 0
call ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40c233
mov edi, dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40c1f0
mov ecx, dword [0x476eec]
mov ebx, str.ClientRunning
call fcn.004187b0
push 5
push 0
push eax
push 0
call edi
cmp eax, 4
jne 0x40c21d
push str.Loong_client
push 0
push 0
call ebp
mov esi, eax
jmp 0x40c226
cmp eax, 2
je 0x40c2c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40c1f0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f8
call fcn.0041a836
add esp, 4
mov dword [esp + 0x1c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x28], ebx
je 0x40c25f
push eax
call fcn.0040eec0
mov edi, eax
jmp 0x40c261
xor edi, edi
or esi, 0xffffffff
push 0x1f8
mov dword [esp + 0x2c], esi
call fcn.0041a836
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x28], 1
je 0x40c28d
push eax
call fcn.0040eec0
mov ebx, eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0x28], esi
mov eax, dword [edx]
push eax
mov eax, edi
call fcn.0040f400
test eax, eax
jne 0x40c2cd
test edi, edi
je 0x40c2b6
push edi
call fcn.0040f070
push edi
call fcn.0041a866
add esp, 4
test ebx, ebx
je 0x40c2c9
push ebx
call fcn.0040f070
push ebx
call fcn.0041a866
add esp, 4
xor eax, eax
jmp 0x40c34a
mov eax, dword [edi + 0x160]
mov ecx, dword [esp + 0x30]
push ebx
push edi
lea edx, [esp + 0x20]
push edx
push 0
mov dword [ecx + 0xd0], eax
mov dword [esp + 0x28], 0
call fcn.0040c360
mov esi, edi
mov ebp, eax
call fcn.0040f910
mov esi, ebx
call fcn.0040f910
push edi
call fcn.0040f070
push edi
call fcn.0041a866
add esp, 4
test ebx, ebx
je 0x40c325
push ebx
call fcn.0040f070
push ebx
call fcn.0041a866
add esp, 4
test ebp, ebp
je 0x40c2c9
mov ebx, dword [esp + 0x30]
mov esi, dword [ebx + 0xb0]
call fcn.0040cee0
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8
Function at 0x40cf50
Capabilities:
Create directory

Disassembly:
sub esp, 0x148
mov eax, dword [0x4727f0]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
xor esi, esi
cmp byte [edi], 0
je 0x40cfaf
cmp byte [edi + esi], 0x5c
jne 0x40cfa6
test esi, esi
jle 0x40cfa6
push 0x144
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00440c10
push esi
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.0043ec80
add esp, 0x18
push 0
lea edx, [esp + 0xc]
push edx
call ebx
add esi, 1
cmp byte [edi + esi], 0
jne 0x40cf73
push 0
push edi
call ebx
mov ecx, dword [esp + 0x14c]
pop esi
pop ebx
xor ecx, esp
call fcn.0043d963
add esp, 0x148
ret

Function at 0x40cfd0
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x154
mov eax, dword [0x4727f0]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push edi
push 0x487268
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40d073
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40d073
mov edi, dword [edi + 0x60]
mov eax, dword [edi + 0x24]
push 0x10000
mov byte [eax], 0
mov ecx, dword [edi + 0x28]
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, dword [edi + 0x28]
mov ecx, dword [0x476eec]
push edi
mov ebx, str.DeleteFileFailed
call fcn.004187b0
push eax
call fcn.004059c0
add esp, 8
or eax, 0xffffffff
pop edi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0043d963
add esp, 0x154
ret
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40d078
sub eax, edx
mov edi, eax
jne 0x40d0a0
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.0043d963
add esp, 0x154
ret
push 0x144
lea edx, [esp + 0x10]
push 0
push edx
call fcn.00440c10
lea eax, [edi - 1]
add esp, 0xc
test eax, eax
jl 0x40d0e9
jmp 0x40d0c0
cmp byte [esi + eax], 0x5c
jne 0x40d0ca
test eax, eax
jg 0x40d0d1
sub eax, 1
jns 0x40d0c0
jmp 0x40d0e9
push eax
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00445930
add esp, 0xc
lea edi, [esp + 0xc]
call fcn.0040cf50
push 0
push 0x10000080
push 4
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x158]
pop edi
pop ebx
xor ecx, esp
call fcn.0043d963
add esp, 0x154
ret
Function at 0x40de90
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov al, byte [ecx + 1]
push esi
movzx esi, byte [ecx]
add ecx, 1
shl esi, 0x18
test al, al
je 0x40deca
movzx eax, al
shl eax, 0x10
add ecx, 1
or esi, eax
mov al, byte [ecx]
test al, al
je 0x40deca
xor edx, edx
mov dh, al
mov al, byte [ecx + 1]
add ecx, 1
or esi, edx
test al, al
je 0x40deca
movzx eax, al
or esi, eax
add ecx, 1
mov dl, byte [ecx]
test dl, dl
not esi
mov eax, esi
je 0x40def2
mov esi, eax
movzx edx, dl
shl eax, 8
or eax, edx
mov dl, byte [ecx + 1]
add ecx, 1
shr esi, 0x18
xor eax, dword [esi*4 + 0x4643a8]
test dl, dl
jne 0x40ded4
not eax
pop esi
ret

Function at 0x40e070
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push esi
push str.GetDiskFreeSpaceExA
xor esi, esi
push 0x4651d4
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x40e0b8
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
push ecx
push esi
call eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
pop esi
add esp, 0x28
ret
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [esp + 8]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 0x10]
xor edx, edx
pop esi
add esp, 0x28
ret
Function at 0x40eec0
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x458d28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x4727f0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [esp + 0x48]
call fcn.00406f50
mov dword [esi + 0x1d8], eax
mov byte [eax + 0x15], 1
mov eax, dword [esi + 0x1d8]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x1d8]
mov dword [eax], eax
mov eax, dword [esi + 0x1d8]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [esi + 0x1dc], ebx
mov dword [esp + 0x40], ebx
push 0x2c
mov dword [esi + 0x144], ebx
call fcn.0041a836
mov edi, eax
add esp, 4
mov dword [esp + 0x10], edi
cmp edi, ebx
mov byte [esp + 0x40], 1
je 0x40ef71
push edi
mov dword [edi + 0x18], 1
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10000
call fcn.0041a861
push 0x20000
mov dword [edi + 0x24], eax
call fcn.0041a861
add esp, 8
mov dword [edi + 0x28], eax
jmp 0x40ef73
xor edi, edi
lea eax, [esp + 0x14]
mov byte [esp + 0x40], bl
push eax
mov dword [esi + 0x1f4], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x1e8], ecx
xor ecx, ecx
mov eax, 0x1388
mov dword [esi + 0x1d0], eax
mov edx, 0x1c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a861
mov ecx, dword [esi + 0x1d0]
lea edx, [ecx*8]
sub edx, ecx
add edx, edx
add edx, edx
push edx
push ebx
push eax
mov dword [esi + 0x1cc], eax
call fcn.00440c10
mov eax, dword [esi + 0x1d0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a861
mov dword [esi + 0x1e0], eax
mov eax, dword [esi + 0x1d0]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a861
mov ecx, dword [esi + 0x1e0]
mov dword [esi + 0x1e4], eax
mov eax, dword [esi + 0x1d0]
add eax, eax
add eax, eax
push eax
push 0xffffffffffffffff
push ecx
call fcn.00440c10
mov edx, dword [esi + 0x1d0]
mov eax, dword [esi + 0x1e4]
add edx, edx
add edx, edx
push edx
push 0xffffffffffffffff
push eax
call fcn.00440c10
add esp, 0x30
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x34
ret 4
Function at 0x410410
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [esi + 0x148]
add dword [esi + 0x160], 1
add dword [esi + 0x16c], 1
push ebx
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x148]
push 0
push 0x48700c
push 0x7c
lea ecx, [esi + 0x150]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x487010], eax
mov eax, esi
call fcn.00410d70
mov eax, dword [esi + 0x1cc]
lea edx, [edi*8]
sub edx, edi
mov ecx, dword [eax + edx*4]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
lea ebx, [esi + 0x1d4]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
call fcn.00407270
mov eax, 1
pop ebx
add esp, 0x18
ret

Function at 0x410970
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x40
mov eax, dword [0x4727f0]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x54]
push 0x5c
push edi
mov ebx, ecx
mov esi, edx
call fcn.0043eaf0
add esp, 8
test eax, eax
mov edx, 0x487778
jne 0x4109b0
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4109a2
jmp 0x4109c1
add eax, 1
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4109b5
mov eax, 0x487778
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4109d0
mov ecx, dword [esi + 0x148]
lea edi, [ebx*8]
sub edi, ebx
sub eax, edx
push 0
mov ebp, eax
mov eax, dword [esi + 0x1cc]
add edi, edi
add edi, edi
mov ebx, dword [eax + edi + 0xc]
push 0
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x148]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp ebx, eax
jb 0x410a26
mov edx, dword [esi + 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi + 0x1cc]
cmp dword [eax + edi + 0x10], 0
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
jbe 0x410a65
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0
call fcn.00411e20
mov eax, dword [esi + 0x148]
add esp, 0xc
push 0
push 0x48700c
push 0
push 0
push eax
call edi
mov dword [0x487010], eax
jmp 0x410a72
lea edx, [esp + 0x3c]
push edx
call fcn.00411db0
add esp, 4
mov eax, dword [esi + 0x148]
push 0
push 0x48700c
push ebp
push 0x487778
push eax
call edi
push 0
push 0x48700c
push 2
mov dword [0x487010], eax
mov eax, dword [esi + 0x148]
push 0x4653a4
push eax
call edi
mov esi, dword [esi + 0x148]
push 0
push 0x48700c
mov dword [0x487010], eax
push 0x38
lea eax, [esp + 0x20]
push eax
push esi
call edi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
mov dword [0x487010], eax
xor ecx, esp
mov eax, 1
call fcn.0043d963
add esp, 0x40
ret 4

Function at 0x410d30
Capabilities:
Write file on windows

Disassembly:
push esi
push 0
push 0
mov esi, eax
mov eax, dword [esi + 0x148]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0x148]
push 0
push 0x48700c
push 0x7c
add esi, 0x150
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x487010], eax
mov eax, 1
pop esi
ret
Function at 0x410d70
Capabilities:
Write file on windows

Disassembly:
push esi
push 0
mov esi, eax
mov eax, dword [esi + 0x158]
mov ecx, dword [esi + 0x148]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x170]
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [esi + 0x1cc]
mov esi, dword [esi + 0x148]
push 0
add eax, eax
push 0x48700c
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x487010], eax
mov eax, 1
pop esi
ret

Function at 0x411030
Capabilities:
Read file on windows

Disassembly:
push 0
push 0x487004
push esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [0x487004], esi
mov dword [0x487008], eax
je 0x41105c
push str.CE_CANNOT_READ_DISC_FILE
call fcn.004059c0
add esp, 4
xor eax, eax
ret

Function at 0x411060
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0x48700c
mov ebx, eax
push ebx
push edi
push esi
call ebp
cmp dword [0x48700c], ebx
mov dword [0x487010], eax
je 0x4110cb
cmp dword [esp + 0xc], 0xffffffff
je 0x4110cb
call fcn.00411190
test eax, eax
je 0x4110c9
mov eax, dword [esp + 0xc]
push 0
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0x48700c
push ebx
push edi
push esi
mov dword [0x48700c], 0
call ebp
cmp dword [0x48700c], ebx
mov dword [0x487010], eax
jne 0x411083
pop ebp
pop ebx
ret
xor eax, eax
pop ebp
pop ebx
ret

Function at 0x411100
Capabilities:
Get disk size

Disassembly:
sub esp, 0x28
push esi
push str.GetDiskFreeSpaceExA
xor esi, esi
push str.kernel32.dll
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x411148
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x28]
push ecx
push esi
call eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
pop esi
add esp, 0x28
ret
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [esp + 8]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 0x10]
xor edx, edx
pop esi
add esp, 0x28
ret