joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019e0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x401a03
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 8]
mov dword [esi], ecx
mov eax, ecx
pop esi
add esp, 0x24
ret
mov eax, dword [esi]
pop esi
add esp, 0x24
ret

Function at 0x401ae0
Capabilities:
Read file via mapping

Disassembly:
push ecx
push esi
mov esi, eax
cmp byte [esi + 0x1d], 0
jne 0x401b20
cmp dword [esi + 0x20], 0xffffffff
jne 0x401b20
cmp dword [esi + 0x18], 0x10
jb 0x401afb
mov eax, dword [esi + 4]
jmp 0x401afe
lea eax, [esi + 4]
push 0
push 0
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
sete al
mov byte [esi + 0x1d], al
mov esi, dword [esi + 0x20]
cmp esi, 0xffffffff
je 0x401be0
cmp byte [ebx], 0
jne 0x401be0
cmp dword [ebx + 4], 0
jne 0x401b66
cmp byte [esp + 0xc], 0
mov eax, 2
je 0x401b4c
mov eax, 0x1000002
push 0
push 0
push 0
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebx + 4], eax
test eax, eax
jne 0x401b66
mov byte [ebx], 1
mov eax, dword [ebx + 4]
test eax, eax
je 0x401be0
cmp dword [ebx + 8], 0
jne 0x401be0
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 8], eax
test eax, eax
jne 0x401b94
test eax, eax
mov byte [ebx], 1
setne al
pop esi
pop ecx
ret
push edi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call fcn.00401a60
add esp, 8
pop edi
test al, al
je 0x401bcc
mov eax, dword [esp + 4]
test eax, eax
je 0x401bcc
mov edx, dword [ebx + 8]
lea eax, [edx + eax - 1]
mov dword [ebx + 0xc], eax
xor eax, eax
test edx, edx
setne al
pop esi
pop ecx
ret
mov ecx, dword [ebx + 8]
push ecx
mov byte [ebx], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebx + 8], 0
xor eax, eax
cmp dword [ebx + 8], eax
pop esi
setne al
pop ecx
ret

Function at 0x401bf0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
mov eax, dword [0x40840c]
xor eax, esp
mov dword [esp + 0x140], eax
mov eax, dword [esp + 0x148]
test edi, edi
jbe 0x401c5d
cmp dword [eax + 0x18], 0x10
jb 0x401c1a
mov eax, dword [eax + 4]
jmp 0x401c1d
add eax, 4
push ebx
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401c5c
push esi
mov esi, 1
cmp edi, esi
jbe 0x401c54
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edx, [esp + 0xc]
push edx
push ebx
call ebp
test eax, eax
je 0x401c53
inc esi
cmp esi, edi
jb 0x401c42
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.00403bae
add esp, 0x144
ret
Function at 0x401f90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 4], 0
jg 0x401fce
jl 0x401fb2
mov edx, dword [ebp - 0x1c]
cmp dword [edx], 0x7fffffff
ja 0x401fce
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + 4], 0xffffffff
jg 0x401fd3
jl 0x401fce
mov edx, dword [ebp - 0x20]
cmp dword [edx], 0x80000001
jae 0x401fd3
jmp 0x402065
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + 8]
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 2
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x402065
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc]
jae 0x402065
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0x14]
push edx
call fcn.00401e40
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402058
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
jae 0x40205a
jmp 0x402065
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x402008
mov esp, ebp
pop ebp
ret
Function at 0x402070
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4046a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x40840c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
xor cl, cl
mov byte [ebp - 0x11], cl
test cl, cl
jne 0x40227a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebx + 4]
jae 0x40227a
mov edx, dword [ebx]
lea ecx, [eax + eax*2]
mov eax, dword [edx + ecx*4 + 4]
lea edi, [edx + ecx*4]
mov ecx, dword [ebx + 0x2c]
mov edx, eax
shl edx, 4
add edx, eax
cmp byte [ecx + edx*4 + 0x1c], 0
lea esi, [ecx + edx*4]
mov dword [ebp - 0x1c], esi
jne 0x4021ef
cmp byte [ebx + 0x20], 0
mov dword [ebp - 4], 0
je 0x40213d
mov edi, dword [edi]
cmp edi, 2
jl case.default.0x40214c
cmp edi, 5
jle 0x402120
cmp edi, 6
jne case.default.0x40214c
mov ecx, esi
call fcn.00401f20
mov eax, dword [ebp + 8]
inc dword [eax]
mov cl, byte [ebp - 0x11]
mov dword [ebp - 4], 0xffffffff
jmp 0x4020a5
mov byte [ebp - 0x11], 1
call fcn.00401a10
mov eax, dword [ebp + 8]
inc dword [eax]
mov cl, byte [ebp - 0x11]
mov dword [ebp - 4], 0xffffffff
jmp 0x4020a5
mov eax, dword [edi]
mov byte [ebp - 0x11], 1
cmp eax, 6
ja case.default.0x40214c
jmp dword [eax*4 + 0x402290]
cmp dword [esi + 0x18], 0x10
jb 0x402177
mov esi, dword [esi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp + 8]
inc dword [eax]
mov cl, byte [ebp - 0x11]
mov dword [ebp - 4], 0xffffffff
jmp 0x4020a5
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp + 8]
inc dword [eax]
mov cl, byte [ebp - 0x11]
mov dword [ebp - 4], 0xffffffff
jmp 0x4020a5
mov edi, dword [edi + 8]
push esi
call fcn.00401bf0
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x11]
add esp, 4
inc dword [eax]
mov dword [ebp - 4], 0xffffffff
jmp 0x4020a5
push 1
lea ebx, [esi + 0x24]
mov eax, esi
call fcn.00401ae0
add esp, 4
test al, al
je 0x4021e5
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
mov edx, dword [edi + 8]
push eax
mov eax, dword [ebp - 0x18]
push ecx
mov ecx, dword [eax + 0x10]
lea edx, [ecx + edx*8]
push edx
call fcn.00401c80
add esp, 0xc
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
inc dword [eax]
mov cl, byte [ebp - 0x11]
jmp 0x4020a5
push 0
lea ebx, [esi + 0x34]
mov eax, esi
call fcn.00401ae0
add esp, 4
test al, al
je 0x4021e5
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
jmp 0x4021ce
call fcn.00401a10
test al, al
je case.default.0x40214c
mov eax, dword [ebx + 0x24]
test eax, eax
je case.default.0x40214c
mov edx, dword [edi + 8]
mov ecx, dword [ebx + 0x28]
push ecx
shl edx, 4
add edx, dword [ebx + 0x18]
push eax
mov eax, dword [esi + 0x20]
push edx
push eax
call fcn.00401f90
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x11]
add esp, 0x10
inc dword [eax]
mov dword [ebp - 4], 0xffffffff
jmp 0x4020a5
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4033a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4048f1
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40840c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esi + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x48]
mov dword [esi + 8], edx
mov edx, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x44]
mov byte [esp + 0x20], 1
mov dword [esi + 0xc], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], ebx
cmp cl, bl
jne 0x403484
xor edi, edi
mov dword [esp + 0x48], edi
cmp eax, ebx
jbe 0x403451
lea ecx, [edx + 0xc]
mov edx, eax
mov eax, dword [ecx]
cmp eax, edi
jbe 0x403438
mov edi, eax
add ecx, 0x10
sub edx, 1
jne 0x403430
mov dword [esp + 0x48], edi
mov eax, 0x405ffc
cmp edi, 0x100000
ja 0x403455
lea eax, [esp + 0x48]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.00403b97
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x40347b
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x24], edi
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
xor ecx, ecx
mov eax, ebp
mov edx, 0x44
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00403b97
add esp, 4
mov dword [esp + 0x48], eax
mov byte [esp + 0x20], 2
cmp eax, ebx
je 0x4034d2
push 0x402510
push 0x4024d0
push ebp
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebp
call fcn.00403ce9
jmp 0x4034d4
xor edi, edi
mov eax, dword [esi + 0x2c]
mov byte [esp + 0x20], 1
cmp eax, edi
je 0x403504
cmp eax, ebx
je 0x403501
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x402510
push ecx
push 0x44
push eax
call fcn.00403c86
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 0x2c], edi
mov ecx, esi
call fcn.00403070
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x24
Function at 0x42b660
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40d015
lea edi, [esi - 0xc015]
push edi
or ebp, 0xffffffff
jmp 0x42b682
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b689
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b678
mov eax, 1
add ebx, ebx
jne 0x42b69b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42b690
jne 0x42b6ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b690
xor ecx, ecx
sub eax, 3
jb 0x42b6c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42b732
mov ebp, eax
add ebx, ebx
jne 0x42b6cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42b6d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42b6fc
inc ecx
add ebx, ebx
jne 0x42b6e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42b6dd
jne 0x42b6f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b6dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42b71c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42b70d
jmp 0x42b67e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42b71c
add edi, ecx
jmp 0x42b67e
pop esi
mov edi, esi
mov ecx, 0x36
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42b73a
cmp byte [edi], 2
jne 0x42b73a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42b73f
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42b7ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b0e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b184]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42b76c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2b18c]
or eax, eax
je 0x42b7a8
mov dword [ebx], eax
add ebx, 4
jmp 0x42b789
call dword [esi + 0x2b188]
mov ebp, dword [esi + 0x2b190]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42b7e2
sub esp, 0xffffff80
jmp 0x401219
Function at 0x4016e0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x40], eax
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00403080
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.004035b0
push 0x41fadc
lea ecx, [ebp - 0x1c]
call fcn.004036b0
xor eax, eax
mov word [ebp - 0x248], ax
push 0x206
push 0
lea ecx, [ebp - 0x246]
push ecx
call fcn.00411ad0
add esp, 0xc
mov esi, 0x423060
call fcn.00403788
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00401ed0
test eax, eax
je 0x401760
call fcn.00404319
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x64
push 0x4240e0
push 0x67
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x424018
push 0x6d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401930
add esp, 4
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004019b0
add esp, 8
test eax, eax
jne 0x4017c3
mov dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x1c]
call fcn.004030b0
mov eax, dword [ebp - 0x24c]
jmp 0x401915
push 0x6d
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [ebp - 0x20], eax
cmp dword [0x424828], 0
jbe 0x401802
movzx edx, word [0x42482c]
test edx, edx
jle 0x401802
mov esi, 0x42306c
mov ecx, dword [0x424828]
call fcn.00404a3c
mov ax, word [0x42482c]
mov word [0x42307c], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
push edx
push 0x41fae0
push 0x424da0
call fcn.00403010
add esp, 0xc
call fcn.00404afa
lea edi, [ebp - 0x248]
call fcn.00404aa0
push 0x41faf8
push 0x104
lea eax, [ebp - 0x248]
push eax
call fcn.00408e4e
add esp, 0xc
push 0x424da0
push 0x104
lea ecx, [ebp - 0x248]
push ecx
call fcn.00408e4e
add esp, 0xc
lea edx, [ebp - 0x248]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4018ac
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0x41fafc
lea eax, [ebp - 0x248]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
call fcn.00401290
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.00408e3f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4036b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 2
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov ax, word [edx]
mov word [ebp - 0x22], ax
add dword [ebp - 0x1c], 2
cmp word [ebp - 0x22], 0
jne 0x4036cf
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
sar ecx, 1
mov dword [ebp - 0x28], ecx
jne 0x4036f8
xor eax, eax
jmp 0x403782
push 0x41f994
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 4]
push eax
call fcn.00409455
add esp, 0xc
test eax, eax
je 0x403715
xor eax, eax
jmp 0x403782
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], cx
mov dx, word [0x41f99c]
mov word [ebp - 0x14], dx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
add ecx, 0xe
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xa], 0x36
mov edx, dword [ebp - 4]
push edx
push 1
push 0xe
lea eax, [ebp - 0x14]
push eax
call fcn.0040960a
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call fcn.0040960a
add esp, 0x10
mov eax, dword [ebp - 4]
push eax
call fcn.00409703
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x403788
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp + 0x9c], eax
and dword [esi], 0
push 0x118
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00411ad0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40381b
mov ecx, dword [ebp - 0x78]
xor edx, edx
inc edx
cmp dword [ebp - 0x7c], 5
jne 0x4037ff
test ecx, ecx
jne 0x4037ea
cmp word [ebp + 0x94], 4
jb 0x40381b
mov dword [esi], edx
push 2
pop eax
cmp ecx, eax
jne 0x4037f3
mov dword [esi], eax
jae 0x4037f9
cmp ecx, edx
jne 0x40381b
mov dword [esi], 3
cmp dword [ebp - 0x7c], 6
jne 0x40381b
test ecx, ecx
jne 0x403811
mov dword [esi], 4
jmp 0x40381b
cmp ecx, edx
jne 0x40381b
mov dword [esi], 5
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00408e3f
add ebp, 0xa0
leave
ret
Function at 0x4038be
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00411ad0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x403970
push edi
mov edi, 0x41fcf8
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x403909
sub eax, edx
sar eax, 1
je 0x40396f
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408e4e
push 0x41fd2c
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00409455
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x40396f
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0040a2e8
push dword [ebp - 0x78]
call fcn.00409703
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00408e3f
add ebp, 0x198
leave
ret

Function at 0x403989
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.00411ad0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x403a64
push edi
mov edi, 0x41fd14
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x4039d8
sub eax, edx
sar eax, 1
je 0x403a63
cmp dword [0x423060], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x403a15
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41fd34
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408e4e
add esp, 0xc
jmp 0x403a1d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00408e4e
push 0x41fd2c
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00409455
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x403a63
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0040a2e8
push dword [ebp - 0x78]
call fcn.00409703
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00408e3f
add ebp, 0x198
leave
ret
Function at 0x403a7d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00411ad0
add esp, 0xc
cmp dword [0x423060], 3
lea eax, [ebp - 0x20c]
jne 0x403ae3
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41fd34
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00408e4e
add esp, 0xc
pop esi
jmp 0x403aef
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x41fd38
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00408e3f
leave
ret

Function at 0x403c7c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp + 0x18c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
call fcn.00411ad0
and dword [ebp - 0x80], 0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x80]
push eax
movzx eax, word [ebp - 0x7c]
sub eax, 0x41
push eax
call fcn.00403e0a
push dword [ebp - 0x80]
call fcn.00403ef7
add esp, 0xc
cmp eax, 0xffffffff
jne 0x403ce7
xor eax, eax
jmp 0x403cee
push esi
call fcn.00403bad
pop ecx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
call fcn.00408e3f
add ebp, 0x190
leave
ret

Function at 0x403d03
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x403dac
mov ebx, 0xb69
push ebx
call fcn.0040932a
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
push eax
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x403d9d
mov eax, dword [ebp - 4]
push 4
add eax, 0x30
pop ebx
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
mov ecx, dword [eax]
jl 0x403d7f
jg 0x403d73
cmp ecx, dword [ebp - 0x18]
jbe 0x403d7f
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
add eax, 0x89
dec ebx
jne 0x403d62
add esi, dword [ebp - 0x18]
push ebx
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.00416da0
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x403dac
push dword [ebp - 4]
call fcn.00408ecb
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret