joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403b42
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test eax, eax
je 0x403b5f
mov ecx, dword [eax]
cmp ecx, 0x98124928
je 0x403b6a
push 0xc
call fcn.00403ac4
xor eax, eax
jmp 0x403bd9
test byte [eax + 0xc], 8
jne 0x403b77
mov eax, 1
jmp 0x403bd9
test edx, edx
jne 0x403b86
push 0xc
call fcn.00403ac4
xor eax, eax
jmp 0x403bd9
xor ecx, ecx
cmp esi, ecx
jbe 0x403bcd
mov bl, byte [eax + 0x19c]
and bl, 0xff
xor byte [edx], bl
inc edx
imul ebx, dword [eax + 0x19c], 0x15a4e35
mov dword [eax + 0x19c], ebx
mov ebx, dword [eax + 0x19c]
shr ebx, 8
mov edi, dword [eax + 0x19c]
and edi, 0xff
shl edi, 0x18
or ebx, edi
mov dword [eax + 0x19c], ebx
inc ecx
cmp esi, ecx
ja 0x403b8c
push 0
call fcn.00403ac4
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x406365
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
mov edx, dword [eax + 4]
test edx, edx
jne 0x4063f7
lea ecx, [ebp + 0xc]
push ecx
call fcn.004157b8
pop ecx
mov dx, word [eax + 0x14]
add dx, 0x76c
mov word [ebp - 0x18], dx
mov cx, word [eax + 0x10]
inc ecx
mov word [ebp - 0x16], cx
mov word [ebp - 0x14], 0
mov dx, word [eax + 0xc]
mov word [ebp - 0x12], dx
mov cx, word [eax + 8]
mov word [ebp - 0x10], cx
mov dx, word [eax + 4]
mov word [ebp - 0xe], dx
mov ax, word [eax]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], 0
lea ecx, [ebp - 8]
push ecx
lea eax, [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_SystemTimeToFileTime
lea edx, [ebp - 8]
push edx
push 0
push 0
push ebx
call fcn.0040632a
push eax
call fcn.0040fa94
pop ecx
push eax
call sub.KERNEL32.DLL_SetFileTime
test eax, eax
setne al
and eax, 1
jmp 0x4063f9
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4067d6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test edx, edx
jne 0x4067ec
xor eax, eax
pop ebx
pop ebp
ret
xor eax, 0xffffffff
cmp ecx, 8
jb 0x4068dc
xor ebx, ebx
mov bl, byte [edx]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x417d54]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
xor ebx, ebx
mov bl, byte [edx]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x417d54]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
xor ebx, ebx
mov bl, byte [edx]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x417d54]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
xor ebx, ebx
mov bl, byte [edx]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x417d54]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
xor ebx, ebx
mov bl, byte [edx]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x417d54]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
xor ebx, ebx
mov bl, byte [edx]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x417d54]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
xor ebx, ebx
mov bl, byte [edx]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x417d54]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
xor ebx, ebx
mov bl, byte [edx]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x417d54]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
sub ecx, 8
cmp ecx, 8
jae 0x4067f8
test ecx, ecx
je 0x4068fe
xor ebx, ebx
mov bl, byte [edx]
xor ebx, eax
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x417d54]
shr eax, 8
xor ebx, eax
mov eax, ebx
inc edx
dec ecx
jne 0x4068e0
xor eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x40ca24
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xff
mov eax, dword [ebp + 8]
push eax
push 0x41c68c
call fcn.0040f5dc
add esp, 0xc
lea edx, [ebp - 8]
push 0
push 0
push 0
push edx
push 0x41c68c
call fcn.0040cc70
add esp, 0x14
push 0x41ab7c
lea ecx, [ebp - 8]
push ecx
call fcn.004095a4
add esp, 8
mov byte [0x41c68c], 0
push 0
push 0
push 0
push 0
push 0
push 0xff
push 0x41c68c
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetVolumeInformationA
test eax, eax
je 0x40ca97
mov eax, 0x41c68c
jmp 0x40ca99
xor eax, eax
pop ecx
pop ecx
pop ebp
ret
Function at 0x40caa0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
test byte [ebx + 8], 8
je 0x40cac5
cmp dword [ebx + 4], 0xfffffffe
jne 0x40cac5
or eax, 0xffffffff
jmp 0x40cbfd
test byte [ebx + 8], 8
je 0x40cb32
cmp dword [ebx + 4], 0xffffffff
jne 0x40cb32
mov dword [esi + 8], 8
mov edx, dword [ebx + 0xc]
push edx
call fcn.0040ca24
pop ecx
mov edi, eax
test edi, edi
je 0x40cb1a
add esi, 0x10
xor eax, eax
push esi
push edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [ebx + 4], 0xfffffffe
xor eax, eax
jmp 0x40cbfd
call fcn.0040fa2c
test eax, eax
jne 0x40cb2a
xor eax, eax
jmp 0x40cbfd
or eax, 0xffffffff
jmp 0x40cbfd
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x40cb3f
cmp eax, 0xfffffffe
jne 0x40cb66
mov dword [ebx + 4], 0xffffffff
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 0xc]
push ecx
call sub.KERNEL32.DLL_FindFirstFileA
mov edi, eax
mov dword [ebx + 4], edi
cmp edi, 0xffffffff
setne al
and eax, 1
jmp 0x40cb76
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 4]
push ecx
call sub.KERNEL32.DLL_FindNextFileA
test eax, eax
jne 0x40cb8c
call fcn.0040fa2c
test eax, eax
jne 0x40cb87
xor eax, eax
jmp 0x40cbfd
or eax, 0xffffffff
jmp 0x40cbfd
mov eax, dword [ebp - 0x148]
test al, 0x16
je 0x40cba0
mov edx, dword [ebx + 8]
and edx, eax
test dl, 0x16
je 0x40cb32
mov ecx, dword [ebp - 0x148]
mov dword [esi + 8], ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x134]
push edx
call sub.KERNEL32.DLL_FileTimeToLocalFileTime
lea ecx, [esi + 0xc]
push ecx
lea eax, [esi + 0xe]
push eax
lea edx, [ebp - 8]
push edx
call sub.KERNEL32.DLL_FileTimeToDosDateTime
mov ecx, dword [ebp - 0x128]
xor eax, eax
mov dword [esi + 4], ecx
add esi, 0x10
push esi
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f418
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x40f434
call fcn.0040fa4c
jmp 0x40f4a3
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x40f450
call fcn.0040fa4c
jmp 0x40f4a3
cmp dword [0x41c9cc], 1
je 0x40f4a1
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.00412fb8
pop ecx
cmp al, 0x41
jl 0x40f4a1
cmp al, 0x5a
jg 0x40f4a1
cmp byte [ebp - 0x107], 0x3a
jne 0x40f4a1
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x40f4a1
call fcn.0040fa4c
jmp 0x40f4a3
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40f4d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x40f4eb
call fcn.0040fa2c
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40f4f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
cmp byte [ebp - 0x104], 0x61
jl 0x40f51f
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffa0
jmp 0x40f529
movsx edx, byte [ebp - 0x104]
add edx, 0xffffffc0
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov esp, ebp
pop ebp
ret

Function at 0x40f534
Capabilities:
Get disk information
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
xor eax, eax
lea ecx, [ebp - 4]
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x108]
mov dword [esi], eax
mov byte [ebp - 4], 0x3d
mov dl, byte [ebp + 8]
add dl, 0x40
mov byte [ebp - 3], dl
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push 0x104
push edi
push ecx
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x40f59a
mov al, byte [ebp - 3]
mov byte [edi], al
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
push edi
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x40f59a
call fcn.0040fa4c
jmp 0x40f5d5
push edi
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x40f5aa
call fcn.0040fa4c
jmp 0x40f5d5
mov byte [edi + 1], 0x3a
mov byte [edi + 2], 0x5c
mov byte [edi + 3], 0
mov byte [edi], 0x41
jmp 0x40f5d0
push edi
call sub.KERNEL32.DLL_GetDriveTypeA
mov ebx, eax
test eax, eax
je 0x40f5ce
cmp ebx, 1
je 0x40f5ce
inc dword [esi]
inc byte [edi]
cmp byte [edi], 0x5a
jle 0x40f5bb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f5dc
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.00413890
pop ecx
mov ebx, eax
test eax, eax
jne 0x40f600
xor eax, eax
jmp 0x40f6a9
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x40f621
cmp esi, 0x104
jb 0x40f62c
push ebx
call fcn.00413788
pop ecx
xor eax, eax
jmp 0x40f6a9
cmp byte [ebx + 1], 0x3a
jne 0x40f65c
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x40f65c
push ebx
call fcn.00413788
pop ecx
xor eax, eax
jmp 0x40f6a9
inc esi
test edi, edi
je 0x40f69f
cmp esi, dword [ebp + 0x10]
jbe 0x40f671
push ebx
call fcn.00413788
pop ecx
xor eax, eax
jmp 0x40f6a9
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.00413788
pop ecx
mov eax, edi
jmp 0x40f6a9
push esi
push ebx
call fcn.00413d24
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x40f6b0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test al, al
jne 0x40f6c5
xor eax, eax
jmp 0x40f6d9
add al, 0x40
mov byte [ebp - 4], al
lea eax, [ebp - 4]
mov byte [ebp - 3], 0x3a
mov byte [ebp - 2], 0x5c
mov byte [ebp - 1], 0
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push edx
lea edx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 8]
push edx
push ecx
push eax
call sub.KERNEL32.DLL_GetDiskFreeSpaceA
dec eax
je 0x40f6fb
mov dword [ebx + 0xc], 0xffffffff
jmp 0x40f712
mov eax, dword [ebp - 0x14]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov edx, dword [ebp - 8]
mov dword [ebx + 0xc], edx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 8], ecx
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
cmp dword [ebp + 0xc], 1
mov esi, dword [ebp + 8]
jne 0x40fcf3
lea eax, [ebp + 0x10]
add eax, 4
mov ebx, dword [eax - 4]
push ebx
push esi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x40fd07
call fcn.0040fa4c
jmp 0x40fd09
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x40fd07
call fcn.0040fa4c
jmp 0x40fd09
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x40ff68
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x40ff87
mov eax, dword [0x41ab84]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x40ff94
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x40ffc1
je 0x40ffd3
sub ecx, 0x100
je 0x40ffe1
sub ecx, 0x100
je 0x40ffe8
sub ecx, 0x100
je 0x40ffda
jmp 0x40ffef
sub ecx, 0x600
je 0x40ffe8
sub ecx, 0x100
je 0x40ffd3
jmp 0x40ffef
mov edi, 1
jmp 0x40fff4
mov edi, 2
jmp 0x40fff4
mov edi, 4
jmp 0x40fff4
mov edi, 5
jmp 0x40fff4
mov edi, 3
test byte [ebp + 0xd], 1
je 0x41001b
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x41b10c]
test al, 0x80
je 0x410014
mov ebx, 0x80
jmp 0x41002d
mov ebx, 1
jmp 0x41002d
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x41002d
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x41003f
je 0x410048
dec eax
je 0x410051
jmp 0x41005a
mov dword [ebp - 4], 0x80000000
jmp 0x410069
mov dword [ebp - 4], 0x40000000
jmp 0x410069
mov dword [ebp - 4], 0xc0000000
jmp 0x410069
push 1
call fcn.0040f9e8
pop ecx
mov ebx, eax
jmp 0x410155
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x410085
sub eax, 0x10
je 0x41008c
sub eax, 0x10
je 0x410095
sub eax, 0x10
je 0x41009e
jmp 0x41009e
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4100a5
mov dword [ebp - 8], 1
jmp 0x4100a5
mov dword [ebp - 8], 2
jmp 0x4100a5
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x41010e
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x410103
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x410103
add ebx, 0xffffffb2
push ebx
call fcn.0040f9e8
pop ecx
mov ebx, eax
jmp 0x410155
mov edi, esi
push edi
call fcn.0040fed8
pop ecx
test eax, eax
je 0x410122
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x41012e
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0040f744
add esp, 8
mov ebx, eax
inc eax
jne 0x410155
push 4
call fcn.0040f9e8
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x413b6c
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x413fc8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x41ba50], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x414080
cmp byte [0x417106], 0
je 0x41403a
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.00412f60
add esp, 8
mov ebx, eax
test eax, eax
jne 0x414023
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.00412f60
add esp, 8
mov ebx, eax
test eax, eax
jne 0x414023
lea ebx, [ebp - 0x54]
jmp 0x414024
inc ebx
call fcn.00413f80
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4140a1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x41ba54
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004096b0
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x41ba57
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4140a1
cmp dword [0x41ba50], 0xffffffff
je 0x4140a1
mov eax, dword [0x41ba50]
test eax, eax
je 0x4140a1
cmp byte [eax], 0
je 0x4140a1
push esi
push eax
call fcn.00414130
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40204c
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
lea eax, [esp + 0x2c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.d3d9.dll
lea ecx, [esp + 0x14]
mov dword [esp + 0x244], ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x401080
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
je 0x4010c8
push str.Direct3DCreate9
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x20
call eax
mov esi, eax
cmp esi, ebx
je 0x4010c1
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push ebx
push 0x16
push 0x16
push 1
push ebx
push esi
call eax
cmp eax, ebx
jl 0x4010b9
mov bl, 1
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
mov dword [esp + 0x240], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00401778
add esp, 0x234
ret
Function at 0x401110
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40200c
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
lea eax, [esp + 0x2c]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.dsound.dll
lea ecx, [esp + 0x14]
mov dword [esp + 0x244], ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x28], 8
mov eax, dword [esp + 0x14]
jae 0x40118f
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
cmp esi, ebx
je 0x4011d2
push str.DirectSoundCreate
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4011cb
push ebx
lea edx, [esp + 0x10]
push edx
push ebx
mov dword [esp + 0x18], ebx
call eax
cmp eax, ebx
jl 0x4011cb
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
mov bl, 1
call edx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
mov dword [esp + 0x240], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.00401778
add esp, 0x238
ret

Function at 0x401350
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push 0x44
lea eax, [esp + 0x14]
push 0
push eax
call sub.MSVCR80.dll_memset
xor eax, eax
push 0x404380
push 0x8000
push 0x414380
mov dword [esp + 0x28], 0x44
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push str.game.exe
push 0x8000
push 0x414380
call dword [sym.imp.MSVCR80.dll_wcscat_s]
mov eax, dword [esp + 0x80]
add esp, 0x24
lea ecx, [esp]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x404380
push 0
push 0
push 0
push 0
push 0
push eax
push 0x414380
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
neg eax
sbb eax, eax
neg eax
add esp, 0x58
ret
Function at 0x4013e0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x11008
call fcn.00401fc0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x11004], eax
push esi
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0xfffe
lea ecx, [esp + 0x100e]
push 0
push ecx
mov esi, eax
mov word [esp + 0x1014], 0
call sub.MSVCR80.dll_memset
push 0x7fe
lea edx, [esp + 0x81a]
push 0
push edx
mov word [esp + 0x820], 0
call sub.MSVCR80.dll_memset
push 0x7fe
lea eax, [esp + 0x26]
push 0
push eax
mov word [esp + 0x2c], 0
call sub.MSVCR80.dll_memset
push 0x400
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esi]
push 0x400
lea edx, [esp + 0x838]
push edx
push 0x8000
lea eax, [esp + 0x1040]
push eax
push 3
push 0x404380
push ecx
call dword [sym.imp.MSVCR80.dll__wsplitpath_s]
add esp, 0x48
lea edx, [esp + 0x1008]
push edx
push 0x8000
push 0x404380
call dword [sym.imp.MSVCR80.dll_wcscat_s]
mov ecx, 1
add esp, 0xc
cmp dword [esp + 4], ecx
jle 0x4014e7
mov edi, edi
mov eax, dword [esi + ecx*4]
sub eax, 2
cmp word [eax], 0
jne 0x4014de
lea esp, [esp]
mov word [eax], 0x20
sub eax, 2
cmp word [eax], 0
je 0x4014d0
add ecx, 1
cmp ecx, dword [esp + 4]
jl 0x4014c0
mov ecx, dword [esp + 0x11008]
pop esi
xor ecx, esp
call fcn.00401778
add esp, 0x11008
ret