joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401120
Capabilities:
Check if file exists
Create thread
Get common file path
Get file attributes
Inject dll
Inject thread

Disassembly:
sub esp, 0x210
lea eax, [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.secdrvemu.dll
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x408eb4]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x401181
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4011d2
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x65
call fcn.004010c0
lea eax, [esp + 0x24]
push 0x40824c
push eax
call fcn.00402195
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4011b7
push str.Could_not_write_SecDrvEmu.dll_n
call fcn.00401080
add esp, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push esi
push ecx
push 1
push edx
call fcn.0040206b
push esi
call fcn.00402015
add esp, 0x14
mov eax, dword [esp + 0x224]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4011fa
push 0x408204
call fcn.00401080
add esp, 4
push 0x4081f4
push 0x4081e4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x11c]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x104
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
push 4
repne scasb al, byte es:[edi]
not ecx
push 0x3000
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x401260
push 0x4081ac
call fcn.00401080
add esp, 4
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x120]
push ecx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x401294
push 0x40816c
call fcn.00401080
add esp, 4
push 0
push 0
push ebx
push ebp
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
jne 0x4012b8
push 0x408138
call fcn.00401080
add esp, 4
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
Function at 0x4012e0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
sub esp, 0x54
push 0x23
push str.SafeDiscLoader
push str.This_does_not_appear_to_be_a_SafeDisc_2.9_or_higher_executable__r_n_r_nInject_SecDrvEmu.dll_Emulation_and_hope_for_the_best_anyway_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x401397
push esi
mov esi, dword [esp + 0x5c]
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push esi
push str.lpApplicationName:__s_n
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x44
call fcn.00401000
add esp, 8
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push 4
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401371
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Failed_to_CreateProcess:__s_r_n_ErrCode:__d__n
call fcn.00401080
add esp, 0xc
mov eax, dword [esp + 0x10]
push eax
call fcn.00401120
mov ecx, dword [esp + 0x10]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.00401020
push 0
call fcn.00401eef
pop edi
pop esi
push 0xffffffffffffffff
call fcn.00401eef
nop
nop

Function at 0x4013a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, dword [0x408da4]
mov dl, byte [esp + 0x18]
push esi
push edi
mov ecx, dword [eax + 0x3c]
mov byte [ecx + eax - 3], dl
mov dl, byte [esp + 0x14]
mov byte [ecx + eax - 8], 0xcc
lea esi, [ecx + eax - 8]
mov al, byte [esp + 0x1c]
mov cl, byte [esp + 0x18]
mov byte [esi + 4], al
mov al, byte [esp + 0x10]
mov byte [esi + 3], cl
mov byte [esi + 2], dl
mov byte [esi + 1], al
mov edi, dword [0x408da8]
mov ecx, dword [0x408da4]
mov edx, dword [0x408da0]
sub edi, ecx
lea ecx, [esp + 0x20]
push ecx
add edi, esi
push 0x40
push 8
push edi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [0x408da0]
lea eax, [esp + 8]
push eax
push 8
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
pop edi
pop esi
pop ecx
ret
Function at 0x401420
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x10c
lea eax, [esp + 8]
push ebx
push esi
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x408344
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x408eb4]
mov ecx, ebx
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
jne 0x401480
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4014d1
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x66
call fcn.004010c0
lea eax, [esp + 0x20]
push 0x40824c
push eax
call fcn.00402195
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4014b6
push str.Could_not_write_SDLoader.dll_n
call fcn.00401080
add esp, 4
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push ecx
push 1
push edx
call fcn.0040206b
push esi
call fcn.00402015
add esp, 0x14
mov ecx, dword [0x408dac]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x401530
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
call fcn.004014f0
add esp, 4
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.004021d7
add esp, 4
pop esi
ret
Function at 0x404ba5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408858
cmp edx, dword [eax]
je 0x404bc7
add eax, 8
inc ecx
cmp eax, 0x4088e8
jl 0x404bb8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408858]
jne 0x404cf5
mov eax, dword [0x408f14]
cmp eax, 1
je 0x404ccf
test eax, eax
jne 0x404bf8
cmp dword [0x408794], 1
je 0x404ccf
cmp edx, 0xfc
je 0x404cf5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404c2f
lea eax, [ebp - 0x1a4]
push 0x407480
push eax
call fcn.00405f60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404da0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404c72
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404da0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40747c
push edi
call fcn.004060e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x407460
push eax
call fcn.00405f60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405f70
lea eax, [ebp - 0xa0]
push 0x40745c
push eax
call fcn.00405f70
push dword [esi + 0x40885c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405f70
push 0x12010
lea eax, [ebp - 0xa0]
push 0x407434
push eax
call fcn.00406050
add esp, 0x2c
pop edi
jmp 0x404cf5
lea eax, [ebp + 8]
lea esi, [esi + 0x40885c]
push 0
push eax
push dword [esi]
call fcn.00404da0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push edx
push ecx
mov esi, dword [ebp + 0xc]
sub eax, eax
test esi, esi
je 0x4022d1
call fcn.004022e0
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
not eax
test ecx, ecx
je 0x4022cf
test esi, 3
je 0x402253
xor al, byte [esi]
inc esi
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40223c
mov edx, ecx
shr ecx, 3
je 0x4022b5
lea ebx, [ebx]
xor eax, dword [esi]
add esi, 4
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x402260
mov ecx, edx
and ecx, 7
je 0x4022cf
lea esp, [esp]
xor al, byte [esi]
inc esi
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4022c0
not eax
pop ecx
pop edx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x402300
Capabilities:
Hash data with crc32

Disassembly:
push 0x400
call fcn.00413274
add esp, 4
test eax, eax
je 0x402347
push esi
push edi
xor edx, edx
mov esi, eax
mov ecx, edx
mov edi, 8
test cl, 1
je 0x40232d
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x40232f
shr ecx, 1
dec edi
jne 0x40231e
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x100
jl 0x402317
pop edi
mov dword [0x428d64], eax
pop esi
ret

Function at 0x402390
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [0x439d14]
mov eax, dword [esp + 4]
mov ecx, edx
push esi
mov esi, dword [0x439b04]
xor ecx, eax
and ecx, 0xff
push edi
shr edx, 8
mov ecx, dword [esi + ecx*4]
xor ecx, edx
mov edx, dword [0x439d18]
mov dword [0x439d14], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [0x439d1c]
imul ecx, ecx, 0x8088405
inc ecx
mov edi, edx
mov dword [0x439d18], ecx
and edi, 0xff
shr ecx, 0x18
xor ecx, edi
pop edi
shr edx, 8
mov ecx, dword [esi + ecx*4]
pop esi
xor ecx, edx
mov dword [0x439d1c], ecx
ret
Function at 0x4068d0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
test ebx, ebx
push edi
mov dword [esp + 0x18], ebx
je 0x406978
mov ebp, dword [esp + 0x14]
mov eax, dword [0x439b14]
test eax, eax
jg 0x406934
mov eax, dword [0x439b0c]
mov ecx, dword [0x439b30]
push 0x2000
push eax
push ecx
call fcn.0041b5e5
add esp, 0xc
mov dword [0x439b14], eax
test eax, eax
je 0x406981
jl 0x40698c
mov ecx, dword [0x439b38]
mov edx, dword [0x439b0c]
add ecx, 0x2000
mov dword [0x439b10], edx
mov dword [0x439b38], ecx
cmp ebx, eax
mov edx, ebx
jb 0x40693c
mov edx, eax
mov esi, dword [0x439b10]
mov ecx, edx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add ebp, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x439b10]
mov eax, dword [0x439b14]
add edi, edx
sub eax, edx
sub ebx, edx
mov dword [0x439b10], edi
mov dword [0x439b14], eax
jne 0x4068ed
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
sub eax, ebx
pop ebp
pop ebx
ret
mov edi, str.error:__zipfile_read_error_n
or ecx, 0xffffffff
xor eax, eax
push 0x401
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.error:__zipfile_read_error_n
push 0x429240
call dword [int.00439d6c]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4069c0
Capabilities:
Read file on windows
Terminate process

Disassembly:
mov eax, dword [0x439bc8]
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x4069d3
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [0x4292e0]
cmp eax, esi
jg 0x4069ee
dec eax
mov dword [0x439b14], esi
mov dword [0x4292e0], eax
pop edi
or eax, 0xffffffff
pop esi
ret
cmp dword [0x439b14], esi
jg 0x406a7a
mov eax, dword [0x439b0c]
mov ecx, dword [0x439b30]
push 0x2000
push eax
push ecx
call fcn.0041b5e5
add esp, 0xc
cmp eax, esi
mov dword [0x439b14], eax
jne 0x406a29
mov dword [0x439b14], esi
pop edi
or eax, 0xffffffff
pop esi
ret
jge 0x406a5a
mov edi, str.error:__zipfile_read_error_n
or ecx, 0xffffffff
xor eax, eax
push 0x401
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.error:__zipfile_read_error_n
push 0x429240
call dword [int.00439d6c]
add esp, 0x10
push 3
call fcn.00413825
mov eax, dword [0x439b38]
mov edx, dword [0x439b0c]
add eax, 0x2000
mov dword [0x439b10], edx
mov dword [0x439b38], eax
call fcn.00406880
mov eax, dword [0x429b00]
test byte [eax + 0x18], 1
je 0x406ab9
mov eax, dword [0x439b14]
mov esi, dword [0x439b10]
mov ecx, eax
dec eax
test ecx, ecx
je 0x406ab9
lea edi, [eax + 1]
call fcn.00402370
mov cl, byte [esi]
xor cl, al
mov al, cl
mov byte [esi], cl
and eax, 0xff
push eax
call fcn.00402390
add esp, 4
inc esi
dec edi
jne 0x406a9a
mov edx, dword [0x439b14]
mov eax, dword [0x439b10]
dec edx
pop edi
mov dword [0x439b14], edx
xor edx, edx
mov dl, byte [eax]
inc eax
mov dword [0x439b10], eax
mov eax, edx
pop esi
ret
Function at 0x406ae0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x439b3c]
add eax, ecx
push esi
mov esi, eax
and esi, 0x80001fff
jns 0x406aff
dec esi
or esi, 0xffffe000
inc esi
mov ecx, eax
sub ecx, esi
test eax, eax
jge 0x406b42
mov edx, dword [0x439b2c]
push 1
push str.___please_check_that_you_have_transferred_or_created_the_zipfile_in_the_n__appropriate_BINARY_mode_and_that_you_have_compiled_UnZip_properly__n
push edx
push str.error___s_:__attempt_to_seek_before_beginning_of_zipfile_n_s
push 0x429b04
call fcn.00412920
add esp, 0x10
push eax
push 0x429b04
push 0x429240
call dword [int.00439d6c]
add esp, 0x10
mov eax, 3
pop esi
ret
cmp ecx, dword [0x439b38]
je 0x406b9f
mov eax, dword [0x439b30]
push 0
push ecx
push eax
call fcn.0041908b
mov ecx, dword [0x439b0c]
mov edx, dword [0x439b30]
push 0x2000
push ecx
push edx
mov dword [0x439b38], eax
call fcn.0041b5e5
add esp, 0x18
mov dword [0x439b14], eax
test eax, eax
jg 0x406b88
mov eax, 0x33
pop esi
ret
sub eax, esi
mov dword [0x439b14], eax
mov eax, dword [0x439b0c]
add eax, esi
pop esi
mov dword [0x439b10], eax
xor eax, eax
ret
mov ecx, dword [0x439b10]
mov eax, dword [0x439b0c]
mov edx, dword [0x439b14]
sub ecx, eax
sub ecx, esi
add eax, esi
add edx, ecx
mov dword [0x439b10], eax
mov dword [0x439b14], edx
xor eax, eax
pop esi
ret
Function at 0x40f740
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [0x439bf0]
sub esp, 0x20
push ebx
push esi
push edi
push eax
call fcn.004144da
mov eax, dword [0x429250]
add esp, 4
test eax, eax
jne 0x40f974
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.0040fb60
add esp, 0xc
mov esi, eax
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push 0x439c08
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [0x429b00]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [ecx + 0x14]
test al, 0x5f
je 0x40f7ea
and eax, 0x7f
push eax
push 0x439c08
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40f7ea
push 1
call ebx
push eax
push 0x4254f4
push 0x429b04
call fcn.00412920
add esp, 0xc
push eax
push 0x429b04
push 0x429240
call dword [int.00439d6c]
add esp, 0x10
mov eax, dword [0x439b40]
test eax, eax
je 0x40f8ce
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
mov edx, dword [0x439b60]
and edx, 0xffff
push ecx
push edx
push eax
call fcn.0040fac0
add esp, 0x10
test eax, eax
je 0x40f8ce
mov eax, dword [esp + 0xc]
mov edx, dword [0x429b00]
mov ecx, dword [esp + 0x10]
push eax
mov eax, dword [edx + 0x14]
push ecx
push eax
push 0x439c08
call fcn.0040f980
add esp, 0x10
cmp eax, 0x4f
jne 0x40f8ce
mov eax, dword [0x429274]
test eax, eax
je 0x40f898
push 1
push 0x431b04
push 0x439c08
call fcn.00406640
push eax
push 0x4250c8
push 0x429b04
call fcn.00412920
add esp, 0x14
push eax
push 0x429b04
push 0x429240
call dword [int.00439d6c]
mov eax, dword [0x429274]
add esp, 0x10
test eax, eax
mov eax, 0x4250d8
jne 0x40f89d
mov eax, 0x428d60
mov ecx, dword [esp + 0xc]
push 1
add ecx, 0xfffffff5
push eax
push ecx
push str._compressed_WinNT_security_data_missing___d_bytes__s
push 0x429b04
call fcn.00412920
add esp, 0x10
push eax
push 0x429b04
push 0x429240
call dword [int.00439d6c]
add esp, 0x10
cmp edi, 0xffffffff
jne 0x40f905
push 1
call ebx
push eax
push 0x4254c0
push 0x429b04
call fcn.00412920
add esp, 0xc
push eax
push 0x429b04
push 0x429240
call dword [int.00439d6c]
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x20
ret
test esi, esi
je 0x40f96d
mov edx, esi
mov ecx, esi
and dl, 1
lea eax, [esp + 0x14]
neg dl
sbb edx, edx
and cl, 2
and edx, eax
mov eax, esi
neg cl
push edx
lea edx, [esp + 0x20]
sbb ecx, ecx
and al, 4
and ecx, edx
neg al
push ecx
lea ecx, [esp + 0x2c]
sbb eax, eax
and eax, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x40f96d
push eax
call ebx
push eax
push 0x4254a4
push 0x429b04
call fcn.00412920
add esp, 0xc
push eax
push 0x429b04
push 0x429240
call dword [int.00439d6c]
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x4101d0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x218
push esi
mov esi, dword [esp + 0x220]
push 2
push 0x4255d8
push esi
call fcn.00412a00
add esp, 0xc
test eax, eax
je 0x410206
push 2
push 0x4255d4
push esi
call fcn.00412a00
add esp, 0xc
test eax, eax
jne 0x41021f
mov al, byte [esi + 2]
test al, al
je 0x41021f
cmp al, 0x2f
je 0x41021f
cmp al, 0x5c
je 0x41021f
xor eax, eax
pop esi
add esp, 0x218
ret
cmp dword [0x425c84], 1
jle 0x41023c
xor eax, eax
push 0x103
mov al, byte [esi]
push eax
call fcn.0041338f
add esp, 8
jmp 0x41024f
mov edx, dword [0x425a78]
xor ecx, ecx
mov cl, byte [esi]
mov ax, word [edx + ecx*2]
and eax, 0x103
test eax, eax
je 0x410259
cmp byte [esi + 1], 0x3a
je 0x410285
lea eax, [esp + 4]
lea ecx, [esp + 0x118]
push eax
push ecx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x41027e
pop esi
add esp, 0x218
ret
lea esi, [esp + 0x118]
push 2
push esi
push 0x439da4
mov dword [esp + 0x10], esi
call fcn.00412a00
add esp, 0xc
test eax, eax
je 0x41037d
mov edx, dword [esp + 4]
push 2
push edx
push 0x439da4
call fcn.004140c0
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
lea edx, [esp + 8]
push 0x104
push eax
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x12c]
push 0x104
push ecx
push 0x439da4
mov byte [0x439da6], 0x2f
mov byte [0x439da7], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x410305
mov byte [0x439da4], al
pop esi
add esp, 0x218
ret
mov esi, dword [esp + 8]
mov edx, 0xc
cmp edx, esi
push 4
sbb eax, eax
lea ecx, [esp + 0x18]
inc eax
push 0x4255cc
push ecx
mov dword [0x439da8], eax
call fcn.0041c146
add esp, 4
push eax
call fcn.00412a00
add esp, 0xc
test eax, eax
je 0x410373
push 4
lea edx, [esp + 0x18]
push 0x4255c4
push edx
call fcn.00412a00
add esp, 0xc
test eax, eax
je 0x410373
push 3
lea eax, [esp + 0x18]
push 0x4255c0
push eax
call fcn.00412a00
add esp, 0xc
mov dword [0x439dac], 0
test eax, eax
jne 0x41037d
mov dword [0x439dac], 1
mov eax, 1
pop esi
add esp, 0x218
ret
Function at 0x411b10
Capabilities:
Get disk information

Disassembly:
mov al, byte [esp + 4]
lea ecx, [esp + 4]
add al, 0x40
push ecx
mov byte [esp + 8], al
mov byte [esp + 9], 0x3a
mov byte [esp + 0xa], 0x2f
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor edx, edx
cmp eax, 2
sete dl
mov eax, edx
ret

Function at 0x411cb0
Capabilities:
Get geographical location

Disassembly:
push ecx
lea eax, [esp]
push 2
push eax
push 0x21
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x411ceb
mov eax, dword [esp]
and eax, 0xff
sub eax, 0x30
je 0x411ceb
dec eax
je 0x411ce4
dec eax
jne 0x411ceb
mov eax, 2
pop ecx
ret
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x411cf0
Capabilities:
Get geographical location

Disassembly:
push ecx
lea eax, [esp + 2]
push 2
push eax
push 0x1d
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x411d11
mov al, byte [esp + 2]
test al, al
jne 0x411d13
mov al, 0x2d
pop ecx
ret
Function at 0x411df0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x28]
push esi
push edi
call fcn.0041c29c
add esp, 8
test eax, eax
jne 0x411f48
push ebp
push edi
call fcn.0040fdc0
add esp, 4
mov ebp, eax
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x411f3e
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x411f3e
lea edi, [esi + 0x1c]
lea eax, [esp + 0x20]
test ebp, ebp
push edi
push eax
jne 0x411ede
call fcn.00411fa0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x411e93
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x411e93
mov ecx, dword [edi]
mov dword [esi + 0x18], ecx
jmp 0x411ea4
lea edx, [esi + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00411fa0
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x411ec3
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x411ec3
mov ecx, dword [edi]
pop ebp
mov dword [esi + 0x20], ecx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
add esi, 0x20
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00411fa0
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
call fcn.00412020
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x411efd
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x411efd
mov ecx, dword [edi]
mov dword [esi + 0x18], ecx
jmp 0x411f0e
lea edx, [esi + 0x18]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00412020
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x411f2d
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x411f2d
mov ecx, dword [edi]
pop ebp
mov dword [esi + 0x20], ecx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
add esi, 0x20
lea edx, [esp + 0x18]
push esi
push edx
call fcn.00412020
add esp, 8
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x411f94
test bl, 0x10
je 0x411f94
mov ecx, 9
xor eax, eax
mov edi, esi
push 0x210000
rep stosd dword es:[edi], eax
call fcn.00407730
not bl
and ebx, 1
add esp, 4
or bl, 0x82
mov dword [esi + 0x1c], eax
shl ebx, 7
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], eax
mov word [esi + 6], bx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
Function at 0x412130
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
push 0
push 0
push 3
push 0
push 1
or edi, 0xffffffff
push 0xc0000000
push 0x4258ec
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x4121ea
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x412179
push 1
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0xc]
push 0
push ecx
lea edx, [esp + 0x18]
push 1
push edx
push esi
call ebx
test eax, eax
je 0x4121d1
cmp dword [esp + 0xc], 1
jne 0x4121d1
mov edi, dword [esp + 0x10]
and edi, 0xff
cmp edi, 0xa
jne 0x4121d1
lea eax, [esp + 0xc]
push 0
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push esi
call ebx
test eax, eax
je 0x4121d1
cmp dword [esp + 0xc], 1
jne 0x4121d1
mov edi, dword [esp + 0x10]
and edi, 0xff
mov eax, dword [esp + 0x14]
pop ebx
cmp eax, 0xffffffff
je 0x4121e3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret