joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7aec5d
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, 0x1001c7c0
push ebp
push edi
push dword [esp + 0x30]
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push edx
push eax
call fcn.007a542b
push ebx
push eax
call fcn.007a542b
mov dword [esp + 0x30], 0xa7d7
xor edx, edx
imul eax, dword [esp + 0x30], 0x38
push 0x44
pop ecx
mov dword [esp + 0x30], eax
imul eax, dword [esp + 0x30], 0x2d
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
div ecx
mov dword [esp + 0x30], eax
xor dword [esp + 0x30], 0x18010b
mov dword [esp + 0x34], 0x525c
or dword [esp + 0x34], 0x8a511e96
xor dword [esp + 0x34], 0x8a51741b
mov dword [esp + 0x2c], 0xdf8c
shl dword [esp + 0x2c], 4
imul eax, dword [esp + 0x2c], 0x5b
mov dword [esp + 0x2c], eax
imul eax, dword [esp + 0x2c], 0x24
mov dword [esp + 0x2c], eax
xor dword [esp + 0x2c], 0xb2cb278b
mov eax, dword [0x1001c7c0]
mov edx, dword [0x1001c7c4]
xor edx, eax
mov dword [esp + 0x38], eax
mov eax, edx
mov dword [esp + 0x3c], edx
and eax, 0xfffffffc
mov ecx, edx
add eax, 4
mov edi, edx
and cl, 3
cmovne edi, eax
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
add esp, 0x18
mov eax, dword [esp + 0x18]
mov ecx, edi
call fcn.007a7b36
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
je 0x7aed83
shr edi, 2
xor eax, eax
push esi
mov esi, 0x1001c7c8
lea ecx, [edi*4 + 0x1001c7c8]
xor edi, edi
mov edx, ecx
sub edx, esi
add edx, 3
shr edx, 2
cmp ecx, esi
cmovb edx, eax
test edx, edx
je 0x7aed78
mov ecx, ebp
sub ecx, esi
mov eax, dword [esi]
xor eax, dword [esp + 0x1c]
inc edi
mov dword [ecx + esi], eax
lea esi, [esi + 4]
cmp edi, edx
jb 0x7aed67
pop esi
test ebx, ebx
je 0x7aed83
mov eax, dword [esp + 0x1c]
mov dword [ebx], eax
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x7af526
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
push dword [esp + 0x3c]
push ebp
push edx
push ecx
call fcn.007a542b
mov dword [esp + 0x34], 0x549fa2
xor esi, esi
mov dword [esp + 0x38], 0x3101fe
add esp, 0x10
mov dword [esp + 0x2c], 0x619cf0
xor edx, edx
mov dword [esp + 0x30], esi
mov edi, esi
mov dword [esp + 0x10], 0x967d
xor dword [esp + 0x10], 0xcc63c068
add dword [esp + 0x10], 0x1ff
shl dword [esp + 0x10], 1
xor dword [esp + 0x10], 0x98c69dd6
mov dword [esp + 0x38], 0xb8e5
shr dword [esp + 0x38], 8
shr dword [esp + 0x38], 0xc
mov eax, dword [esp + 0x38]
push 0x78
pop ecx
div ecx
mov dword [esp + 0x38], eax
xor dword [esp + 0x38], 0x1898
mov eax, dword [ebp + 0x3c]
mov dword [esp + 0x20], eax
mov ebx, dword [eax + ebp + 0x78]
add ebx, ebp
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x20]
add eax, ebp
mov dword [esp + 0x1c], eax
add ecx, ebp
mov eax, dword [ebx + 0x24]
add eax, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [ebx + 0x18], esi
jbe 0x7af630
mov edx, dword [ecx + edi*4]
push dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
add edx, ebp
call fcn.007b7a34
xor eax, 0x762b677b
pop ecx
cmp eax, dword [esp + 0x3c]
je 0x7af604
mov ecx, dword [esp + 0x14]
inc edi
cmp edi, dword [ebx + 0x18]
jb 0x7af5da
jmp 0x7af630
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
movzx eax, word [eax + edi*2]
mov esi, dword [esi + eax*4]
add esi, ebp
cmp esi, ebx
jb 0x7af630
mov eax, dword [esp + 0x20]
mov eax, dword [eax + ebp + 0x7c]
add eax, ebx
cmp esi, eax
jae 0x7af630
mov ecx, esi
call fcn.007b7edc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x7b2c11
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push edx
push ecx
call fcn.007a542b
and dword [ebp - 0xc], 0
add esp, 0x18
and dword [ebp - 8], 0
mov dword [ebp - 0x10], 0x430482
mov dword [ebp - 4], 0xa9de
shr dword [ebp - 4], 3
imul eax, dword [ebp - 4], 0x35
mov dword [ebp - 4], eax
xor dword [ebp - 4], 0x4643c
cmp ecx, 0x40
jae 0x7b2c60
xor eax, eax
jmp 0x7b2c85
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x7b2c5c
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x7b2c5c
movzx edx, word [eax + 0x18]
xor esi, esi
mov ecx, dword [ebp - 4]
cmp edx, ecx
cmovne eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x7b5d65
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push dword [esp + 0x3c]
mov ebx, edx
mov edx, ecx
push dword [esp + 0x3c]
mov dword [esp + 0x24], edx
push ebx
push edx
call fcn.007a542b
mov dword [esp + 0x3c], 0x1d278d
xor esi, esi
mov dword [esp + 0x40], esi
add esp, 0x10
mov dword [esp + 0x10], 0x8ea6
mov ebp, esi
imul eax, dword [esp + 0x10], 0xf
mov dword [esp + 0x10], eax
add dword [esp + 0x10], 0xfbcc
xor dword [esp + 0x10], 0x50c7df06
xor dword [esp + 0x10], 0x50ced575
mov dword [esp + 0x14], 0x5d4
xor dword [esp + 0x14], 0x5075cd52
add dword [esp + 0x14], 0xffffa7e1
xor dword [esp + 0x14], 0x507554a4
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x28], eax
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add eax, ebx
mov dword [esp + 0x24], eax
add ecx, ebx
mov eax, dword [edi + 0x24]
add eax, ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
cmp dword [edi + 0x18], esi
jbe 0x7b5e5b
mov eax, dword [ecx + ebp*4]
add eax, ebx
push eax
push dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
call fcn.007b35c0
pop ecx
pop ecx
test eax, eax
je 0x7b5e35
mov ecx, dword [esp + 0x18]
inc ebp
mov edx, dword [esp + 0x1c]
cmp ebp, dword [edi + 0x18]
jb 0x7b5e0c
jmp 0x7b5e5b
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
movzx eax, word [eax + ebp*2]
mov esi, dword [esi + eax*4]
add esi, ebx
cmp esi, edi
jb 0x7b5e5b
mov ecx, dword [esp + 0x28]
xor eax, eax
mov ecx, dword [ecx + ebx + 0x7c]
add ecx, edi
cmp esi, ecx
cmovb esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x7b61b9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
push ebx
push esi
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x84]
push dword [esp + 0x84]
push 0
push 3
push ecx
call fcn.007a542b
and dword [esp + 0x88], 0
xor edx, edx
mov dword [esp + 0x84], 0x15bbba
mov dword [esp + 0x44], 0x7e44
imul eax, dword [esp + 0x44], 0x56
push 0x3e
pop esi
push 0x2e
mov dword [esp + 0x48], eax
or dword [esp + 0x48], 0xe97810d5
xor dword [esp + 0x48], 0xe97a6add
mov dword [esp + 0x58], 0x50ea
shr dword [esp + 0x58], 9
shr dword [esp + 0x58], 8
xor dword [esp + 0x58], 0x8000
mov dword [esp + 0x2c], 0x7422
add dword [esp + 0x2c], 0xffff8791
xor dword [esp + 0x2c], 0x724a15f0
add dword [esp + 0x2c], 0xd05
xor dword [esp + 0x2c], 0x8db5db48
mov dword [esp + 0x60], 0x2edd
mov eax, dword [esp + 0x60]
div esi
xor edx, edx
mov dword [esp + 0x60], eax
xor dword [esp + 0x60], 0x5532
mov dword [esp + 0x44], 0xee3f
add dword [esp + 0x44], 0xffffe6cd
add dword [esp + 0x44], 0xffff5ce1
xor dword [esp + 0x44], 0x6965
mov dword [esp + 0x28], 0xa36d
shl dword [esp + 0x28], 0xc
add dword [esp + 0x28], 0x5d19
shr dword [esp + 0x28], 1
xor dword [esp + 0x28], 0x51bebf0
mov dword [esp + 0x5c], 0xa852
add dword [esp + 0x5c], 0xddb7
xor dword [esp + 0x5c], 0x19bba
mov dword [esp + 0x30], 0xa4e6
or dword [esp + 0x30], 0xa6d42a45
imul eax, dword [esp + 0x30], 0x22
pop esi
mov dword [esp + 0x2c], eax
shl dword [esp + 0x2c], 1
xor dword [esp + 0x2c], 0x507e3c16
mov dword [esp + 0x64], 0x2ce2
Function at 0x7b7a34
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push dword [ebp + 8]
mov ebx, edx
push ebx
push ecx
call fcn.007a542b
and dword [ebp - 0xc], 0
add esp, 0xc
mov dword [ebp - 0x14], 0x35e2df
mov dword [ebp - 0x10], 0x52290
mov dword [ebp - 4], 0xdbb2
xor dword [ebp - 4], 0xd5385f4b
xor dword [ebp - 4], 0xd53884f9
mov dword [ebp - 8], 0x6576
add dword [ebp - 8], 0xfffffa8c
or dword [ebp - 8], 0x95d8e2a6
xor dword [ebp - 8], 0x95d8e2a0
mov dword [ebp - 8], 0xe475
shr dword [ebp - 8], 9
xor dword [ebp - 8], 0x62
cmp byte [ebx], 0
je 0x7b7af8
push esi
push edi
mov edi, dword [ebp - 4]
mov dword [ebp - 8], 0x6576
add dword [ebp - 8], 0xfffffa8c
or dword [ebp - 8], 0x95d8e2a6
xor dword [ebp - 8], 0x95d8e2a0
mov cl, byte [ebp - 8]
mov esi, dword [ebp - 4]
mov dword [ebp - 8], 0xe475
shr dword [ebp - 8], 9
xor dword [ebp - 8], 0x62
shl esi, cl
mov cl, byte [ebp - 8]
mov edx, dword [ebp - 4]
movsx eax, byte [ebx]
mov dword [ebp - 4], eax
add dword [ebp - 4], esi
shl edx, cl
add dword [ebp - 4], edx
sub dword [ebp - 4], edi
inc ebx
cmp byte [ebx], 0
jne 0x7b7aa3
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x7b7b8f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push esi
push edi
push eax
push dword [esp + 0x24]
push edx
push ecx
call fcn.007a542b
mov dword [esp + 0x34], 0x2399
lea edi, [eax + 4]
xor dword [esp + 0x34], 0xb4bbd3b6
add dword [esp + 0x34], 0xfffffbe3
xor dword [esp + 0x34], 0xb4bbb717
mov dword [esp + 0x20], 0xf668
or dword [esp + 0x20], 0x7255987b
xor dword [esp + 0x20], 0x7255e635
mov dword [esp + 0x1c], 0x6aea
add dword [esp + 0x1c], 0xffff3e88
xor dword [esp + 0x1c], 0xffff96c8
mov ecx, dword [eax]
mov eax, dword [edi]
add edi, 4
xor eax, ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
lea esi, [eax + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
add esp, 8
mov eax, dword [esp + 0x2c]
mov ecx, esi
call fcn.007a7b36
mov ebx, eax
mov dword [esp + 0x2c], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x7b7c94
shr esi, 2
xor eax, eax
push ebp
xor ebp, ebp
mov edx, ebx
lea ecx, [edi + esi*4]
mov esi, ecx
sub esi, edi
add esi, 3
shr esi, 2
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0x7b7c8b
mov ebx, dword [esp + 0x18]
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc ebp
mov byte [edx - 1], cl
cmp ebp, esi
jb 0x7b7c62
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
pop ebp
mov byte [ebx + eax], 0
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x10
ret
Function at 0x7b7c9d
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push dword [esp + 0x30]
push edx
push ecx
call fcn.007a542b
mov dword [esp + 0x30], 0x3e4ab4
lea edi, [ecx + 4]
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], 0xc5f8
add dword [esp + 0x24], 0x6051
xor dword [esp + 0x24], 0x10c1f
mov dword [esp + 0x1c], 0x21c8
mov eax, dword [esp + 0x1c]
push 0x48
pop esi
div esi
xor edx, edx
mov dword [esp + 0x1c], eax
add dword [esp + 0x1c], 0xffffac68
xor dword [esp + 0x1c], 0xffffa2cd
mov dword [esp + 0x20], 0xf93e
mov eax, dword [esp + 0x20]
push 0xe
pop esi
div esi
mov dword [esp + 0x20], eax
xor dword [esp + 0x20], 0x4b7b
mov edx, dword [ecx]
mov eax, dword [edi]
add edi, 4
xor eax, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
lea esi, [eax + 1]
mov eax, esi
mov ecx, esi
and eax, 0xfffffffc
add eax, 4
and cl, 3
cmovne esi, eax
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
add esp, 4
mov eax, dword [esp + 0x20]
lea ecx, [esi + esi]
call fcn.007a7b36
mov ebx, eax
mov dword [esp + 0x20], ebx
pop ecx
pop ecx
test ebx, ebx
je 0x7b7dc9
shr esi, 2
xor eax, eax
mov edx, ebx
lea ecx, [edi + esi*4]
mov esi, ecx
sub esi, edi
add esi, 3
shr esi, 2
cmp edi, ecx
cmova esi, eax
test esi, esi
je 0x7b7dbf
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edi]
lea edi, [edi + 4]
xor ecx, ebx
movzx eax, cl
mov word [edx], ax
mov eax, ecx
shr eax, 8
lea edx, [edx + 8]
movzx eax, al
mov word [edx - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc ebp
mov word [edx - 4], ax
movzx eax, cl
mov word [edx - 2], ax
cmp ebp, esi
jb 0x7b7d86
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov word [ebx + eax*2], cx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x1c
ret
Function at 0x401088
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push 0x482bbc
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4010a9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4010a5
xor eax, eax
ret

Function at 0x4010b7
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4010d8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4010d4
xor eax, eax
ret

Function at 0x401128
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401173
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40115b
push 0xd
pop esi
cmp esi, 0xe8
jne 0x401180
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x401130
jmp 0x401180
mov esi, dword [ebp - 4]
sub esi, 4
neg esi
sbb esi, esi
and esi, 0xd
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x401186
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x190000
push 3
pop esi
push esi
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4011cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x401261
push 0xd
pop edi
jmp 0x401261
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x4011f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x401258
push 0xd
pop edi
jmp 0x401258
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
je 0x4011e1
cmp dword [ebp + 0x10], ebx
je 0x401258
xor eax, eax
mov byte [ebp - 8], bl
lea edi, [ebp - 7]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00401128
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x401258
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
inc ecx
sub eax, ecx
neg eax
sbb eax, eax
and eax, 0xd
push ebx
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012ef
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4a806c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x41c], ax
xor ebx, ebx
lea eax, [ebp - 0x41a]
push ebx
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0x18
mov eax, 0x105
push eax
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x420]
push ecx
push eax
lea eax, [ebp - 0x41c]
push eax
push 0x482c58
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 0x428], ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov esi, 0x104
test eax, eax
je 0x4013a0
push esi
push edi
push dword [ebp - 0x420]
call fcn.004010e6
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x4013c9
call fcn.00401088
cmp eax, 1
jne 0x4013bd
push str.thsnYaVieBoda
jmp 0x4013c2
push str.TsnIorcAeBoda
push esi
push edi
call fcn.0040129b
cmp dword [ebp + 0xc], ebx
je 0x4013d8
push dword [ebp + 0xc]
push esi
push edi
call fcn.0040129b
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043edd8
leave
ret

Function at 0x40759e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4a806c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push edi
xor edi, edi
push edi
push edi
push 1
push edi
call esi
mov dword [ebp - 0xac], eax
cmp eax, edi
je 0x407661
push ebx
mov ebx, 0x9c
push ebx
lea eax, [ebp - 0xa0]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
mov dword [ebp - 0xa0], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x407660
cmp dword [ebp - 0x9c], 5
jne 0x407660
cmp dword [ebp - 0x98], 1
push 2
pop eax
je 0x40761b
cmp dword [ebp - 0x98], eax
jne 0x407660
mov dword [ebp - 0xa8], eax
call dword [sym.imp.MSVCR100.dll__get_heap_handle]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [ebp - 0xa4], eax
cmp ebx, edi
je 0x407646
push 4
lea eax, [ebp - 0xa8]
push eax
push edi
push ebx
call esi
cmp dword [ebp - 0xa4], edi
je 0x407660
push 4
lea eax, [ebp - 0xa8]
push eax
push edi
push dword [ebp - 0xa4]
call esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xac]
pop edi
xor ecx, ebp
pop esi
call fcn.0043edd8
leave
ret
Function at 0x409d31
Capabilities:
Get disk information

Disassembly:
push edi
mov ecx, esi
xor edi, edi
call fcn.00408157
cmp dword [esi + 4], edi
jne 0x409d44
xor eax, eax
pop edi
ret
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], 1
jne 0x409d6e
push edi
mov ecx, esi
call fcn.00409519
movzx eax, ax
push eax
call fcn.00409d17
add esp, 4
test al, al
je 0x409d6e
xor eax, eax
inc eax
pop edi
ret
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], 3
jne 0x409dd3
push edi
mov ecx, esi
call fcn.00409519
movzx eax, ax
push eax
call dword [sym.imp.MSVCR100.dll_iswalpha]
pop ecx
test eax, eax
je 0x409dd3
push 1
mov ecx, esi
call fcn.00409519
cmp ax, 0x3a
jne 0x409dd3
push 2
mov ecx, esi
call fcn.00409519
movzx eax, ax
push eax
call fcn.00409d17
add esp, 4
test al, al
je 0x409dd3
mov ecx, esi
call fcn.00408157
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop edi
ret
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], 2
jbe 0x409f09
push 0
mov ecx, esi
call fcn.00409519
movzx eax, ax
push eax
call fcn.00409d17
add esp, 4
test al, al
je 0x409f09
push 1
mov ecx, esi
call fcn.00409519
movzx eax, ax
push eax
call fcn.00409d17
add esp, 4
test al, al
je 0x409f09
push 2
pop edi
push edi
mov ecx, esi
call fcn.00409519
movzx eax, ax
push eax
call fcn.00409d17
add esp, 4
test al, al
jne 0x409d40
mov ecx, esi
inc edi
call fcn.00408157
cmp edi, dword [esi + 4]
jae 0x409e62
push edi
mov ecx, esi
call fcn.00409519
movzx eax, ax
push eax
call fcn.00409d17
add esp, 4
test al, al
je 0x409e3d
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], edi
je 0x409d40
mov ecx, esi
inc edi
call fcn.00408157
cmp dword [esi + 4], edi
je 0x409d40
push edi
mov ecx, esi
call fcn.00409519
movzx eax, ax
push eax
call fcn.00409d17
add esp, 4
test al, al
jne 0x409d40
mov ecx, esi
inc edi
call fcn.00408157
cmp edi, dword [esi + 4]
jae 0x409ec4
push edi
mov ecx, esi
call fcn.00409519
movzx eax, ax
push eax
call fcn.00409d17
add esp, 4
test al, al
je 0x409e9f
mov ecx, esi
call fcn.00408157
lea eax, [edi + 1]
cmp dword [esi + 4], eax
ja 0x409d40
mov ecx, esi
call fcn.00408157
cmp dword [esi + 4], edi
jne 0x409ef2
movzx eax, word [0x4a69d4]
push eax
mov ecx, esi
call fcn.004086cf
mov ecx, esi
call fcn.00408157
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb edi, edi
neg edi
mov eax, edi
pop edi
ret
Function at 0x40a354
Capabilities:
Check if file exists

Disassembly:
push 0x49c
mov eax, 0x47383c
call fcn.0043eed3
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00408157
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x40a381
mov eax, 0xffffe89d
jmp 0x40a5ac
push ebx
push 0xffffffffffffffff
push 0x484ce8
lea ecx, [ebp - 0x488]
call fcn.00408d63
push ebx
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409afc
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.004035af
lea ecx, [ebp - 0x480]
call fcn.004035af
test bl, bl
je 0x40a3d4
mov eax, 0xffffe8c2
jmp 0x40a5ac
mov ecx, esi
call fcn.00408157
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x46c]
push ecx
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
jne 0x40a50c
mov ecx, esi
call fcn.00408157
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
mov esi, 0x105
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x470], eax
test eax, eax
jne 0x40a42c
inc eax
jmp 0x40a5ac
cmp eax, esi
jbe 0x40a43a
mov eax, 0xffffe8c1
jmp 0x40a5ac
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x488]
call fcn.00408613
lea esi, [ebp - 0x488]
mov dword [ebp - 4], 1
call fcn.00409d31
test eax, eax
je 0x40a499
xor eax, eax
mov dword [edi], 2
mov dword [edi + 4], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
xor esi, esi
lea ecx, [ebp - 0x478]
call fcn.004035af
lea ecx, [ebp - 0x480]
call fcn.004035af
mov eax, esi
jmp 0x40a5ac
mov ecx, dword [ebp - 0x470]
lea ecx, [ebp + ecx*2 - 0x21e]
movzx eax, word [ecx]
push eax
call fcn.00409d17
add esp, 4
test al, al
jne 0x40a4d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40a4cb
cmp eax, 3
je 0x40a4cb
xor esi, esi
inc esi
jmp 0x40a47c
mov esi, 0xffffe8c2
jmp 0x40a47c
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
je 0x40a4b6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.004035af
lea ecx, [ebp - 0x480]
call fcn.004035af
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x46c], 0x10
push 0
pop eax
setne al
xor ebx, ebx
inc eax
mov dword [edi], eax
cmp dword [ebp - 0x450], ebx
je 0x40a560
push ebx
push 0xffffffffffffffff
push str.file_size_larger_than_4GB_encountered
lea ecx, [ebp - 0x4a4]
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
call fcn.00408d63
push 0x493cfc
lea eax, [ebp - 0x4a8]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp - 0x44c]
mov dword [edi + 4], eax
lea esi, [edi + 0x10]
lea eax, [ebp - 0x458]
push esi
push eax
call fcn.00409f0d
pop ecx
pop ecx
cmp dword [ebp - 0x468], ebx
jne 0x40a598
cmp dword [ebp - 0x464], ebx
jne 0x40a598
mov eax, dword [esi]
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov dword [edi + 0xc], eax
jmp 0x40a5aa
add edi, 8
lea eax, [ebp - 0x468]
push edi
push eax
call fcn.00409f0d
pop ecx
pop ecx
xor eax, eax
call fcn.0043ef56
ret