joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407186
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [edx + 0x28]
call fcn.0040b569
test al, al
jne 0x40721e
test dword [edx + 0x6c], 0x2000
jne 0x40721e
push edx
call fcn.00408128
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x40721e
test ecx, ecx
jge 0x4071cc
push 0x80070057
call fcn.0040460d
cmp word [eax], 0x5c
jne 0x4071ea
cmp ecx, 1
jl 0x4071c2
cmp word [eax + 2], 0x5c
jne 0x4071ea
cmp ecx, 2
jl 0x4071c2
cmp word [eax + 4], 0x5c
jne 0x40721e
push esi
xor esi, esi
test esi, esi
jl 0x4071c2
mov ecx, esi
mov eax, edi
call fcn.00408e0a
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x4071ed
xor eax, eax
mov word [ebp - 6], ax
pop esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
setne al
jmp 0x407220
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004313fb
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.00408128
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00409d12
push 0x5c
call fcn.00408c55
mov ecx, dword [esi]
mov ecx, dword [ecx - 0xc]
inc eax
lea edx, [ebp - 8]
push edx
sub ecx, eax
mov edx, eax
mov eax, esi
call fcn.00408ceb
mov ebx, dword [ebp - 8]
push dword [ebx - 0xc]
lea eax, [ebp - 4]
push ebx
call fcn.004022eb
lea eax, [ebx - 0x10]
call fcn.0040464c
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407293
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi]
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4072ae
xor esi, esi
inc esi
mov dword [edi + 0x10], esi
jmp 0x40732f
push esi
lea ebx, [edi + 0x18]
push ebx
push 3
pop eax
call fcn.00415aa1
mov eax, dword [0x459100]
mov ecx, 0x459100
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00415b97
push dword [eax]
mov ebx, dword [ebp - 4]
push ebx
lea eax, [ebp - 8]
push 0x44a6e8
push eax
call fcn.0040971d
mov eax, dword [ebp - 0xc]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040464c
lea eax, [edi + 0x16c]
call fcn.00415800
push esi
push 0x20
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040f8a6
add esp, 0x14
test al, al
jne 0x407324
inc esi
mov dword [edi + 0x10], esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040464c
lea eax, [ebx - 0x10]
call fcn.0040464c
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40a097
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x457090]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
sub eax, 0x10
mov dword [esp + 0x1c], edi
call fcn.00409c66
add eax, 0x10
lea esi, [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00409ce0
push 0x44aa04
mov eax, esi
push eax
call fcn.00402105
xor esi, esi
push 0x24c
lea eax, [esp + 0x28]
push esi
push eax
mov dword [esp + 0x2c], esi
call fcn.00431420
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x40a1f9
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [esp + 0x4c], 0x2e
jne 0x40a14f
cmp word [esp + 0x4e], si
je 0x40a13b
cmp word [esp + 0x4e], 0x2e
jne 0x40a14f
cmp word [esp + 0x50], si
jne 0x40a14f
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
jmp 0x40a1ed
test byte [esp + 0x20], 0x10
je 0x40a1af
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409c66
add eax, 0x10
lea esi, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.00409ce0
lea eax, [esp + 0x4c]
push eax
mov eax, esi
push eax
call fcn.00402105
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
mov eax, esi
push eax
call fcn.0040a097
pop ecx
call fcn.00402073
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.0040464c
jmp 0x40a1ed
mov eax, edi
lea edi, [esp + 0xc]
call fcn.004088e1
mov esi, edi
call fcn.00409ce0
lea eax, [esp + 0x4c]
push eax
mov eax, edi
push eax
call fcn.00402105
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
call fcn.00402073
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [esp + 0x1c]
xor esi, esi
cmp dword [esp + 0x18], esi
jne 0x40a11d
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.0040464c
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004313fb
mov esp, ebp
pop ebp
ret
Function at 0x40a29a
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x459100]
push esi
mov ecx, 0x459100
call dword [eax + 0xc]
mov esi, dword [ebp + 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
dec ecx
js 0x40a361
push edi
mov eax, esi
call fcn.00408e0a
cmp ax, 0x5c
jne 0x40a2f8
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00408d62
lea edi, [ebp - 4]
call fcn.004088e1
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040464c
jmp 0x40a302
mov eax, esi
lea edi, [ebp - 4]
call fcn.004088e1
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [esi]
mov edx, dword [eax - 0xc]
cmp edx, dword [ecx - 0xc]
pop edi
jl 0x40a31e
add eax, 0xfffffff0
call fcn.0040464c
pop esi
leave
ret
push 0x5c
call fcn.00408c55
mov ecx, eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00408d62
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x40a351
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040a29a
pop ecx
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [ebp - 4]
jmp 0x40a313
push 0x80070057
call fcn.0040460d
int3

Function at 0x40a36c
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x54]
mov esi, ecx
xor edi, edi
push eax
push 0x64
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x58], eax
lea ebx, [ebp + edi*2 - 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x40a3d6
push ebx
lea eax, [ebp - 0x5c]
call fcn.00404558
lea ebx, [ebp - 0x5c]
call fcn.0040965c
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.0040464c
jmp 0x40a3d6
cmp word [ebp + edi*2 - 0x54], 0
je 0x40a3db
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x40a3cd
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x40a39f
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004313fb
add ebp, 0x78
leave
ret
Function at 0x40a675
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x28
push ebx
push esi
push edi
call fcn.0040a3f5
test al, al
je 0x40a691
xor eax, eax
jmp 0x40a78c
mov eax, dword [ebp + 8]
call fcn.0040a461
mov byte [ebp - 1], al
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040a4ec
mov edi, dword [ebp - 0x20]
cmp edi, ebx
pop ecx
jg 0x40a6ca
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409c66
mov esi, eax
add esi, 0x10
dec edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], edi
cmp byte [ebp + 0xc], bl
je 0x40a6ec
inc edi
mov dword [ebp - 0x18], edi
xor eax, eax
inc eax
cmp edi, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
jle 0x40a76d
mov edi, 0x44a8d0
jmp 0x40a702
xor ebx, ebx
lea eax, [esi - 0x10]
call fcn.00409c66
add eax, 0x10
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 8]
push eax
call fcn.00402105
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.00408e8d
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
call fcn.004022eb
push ebx
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a791
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xb7
je 0x40a7a3
cmp byte [ebp - 1], 0
jne 0x40a7a3
cmp dword [ebp - 0x10], 1
jle 0x40a765
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebx - 0x10]
call fcn.0040464c
lea eax, [esi - 0x10]
call fcn.0040464c
lea esi, [ebp - 0x24]
call fcn.00408e58
mov eax, dword [ebp - 0x14]
sub eax, 0xb7
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x40a7a3
lea ebx, [ebp - 8]
call fcn.0040965c
mov ebx, dword [ebp - 8]
push edi
lea eax, [ebp - 0xc]
push eax
call fcn.00402105
mov esi, dword [ebp - 0x10]
mov eax, esi
lea ecx, [ebp - 0x24]
call fcn.00408e8d
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xc]
call fcn.004022eb
lea eax, [ebx - 0x10]
call fcn.0040464c
inc esi
cmp esi, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0xc]
jl 0x40a700
jmp 0x40a76d
Function at 0x40b11f
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xc0], 0
push esi
push edi
je 0x40b291
cmp byte [ebx + 0xd8], 0
jne 0x40b291
lea esi, [ebx + 0x90]
cmp dword [esi], 3
je 0x40b16f
push ebx
call fcn.0040c718
mov esi, dword [esi]
cmp esi, 2
je 0x40b16f
cmp esi, 1
je 0x40b16f
test byte [ebx + 0x44], 0x48
je 0x40b16f
mov eax, ebx
call fcn.0040b944
mov ecx, dword [ebx + 0xa8]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
cmp ecx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
jle 0x40b1e0
lea eax, [ebx + 0xa4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00408e8d
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call edi
test esi, esi
jne 0x40b1d5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00408e8d
mov ebx, eax
lea esi, [ebp - 0x24]
call fcn.0040965c
mov ebx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x40b1a2
mov esi, dword [ebx + 0xb4]
dec esi
mov dword [ebp - 4], esi
js 0x40b232
lea eax, [ebx + 0xb0]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.00408e8d
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], 0
jne 0x40b22c
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.00408e8d
mov ebx, eax
lea esi, [ebp - 0x18]
call fcn.0040965c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
dec esi
mov dword [ebp - 4], esi
jns 0x40b1f5
lea eax, [ebx + 0xa4]
lea edi, [ebp - 0x24]
call fcn.0040dcc1
lea esi, [ebx + 0xb0]
call fcn.00408e58
mov edi, dword [ebp - 0x14]
dec edi
js 0x40b268
mov eax, edi
lea ecx, [ebp - 0x18]
call fcn.00408e8d
mov ebx, eax
call fcn.0040965c
dec edi
jns 0x40b251
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0xa8], eax
jne 0x40b27b
cmp dword [ebx + 0xb4], eax
jne 0x40b27b
inc eax
lea esi, [ebp - 0x18]
mov byte [ebx + 0xd8], al
call fcn.00408e58
lea esi, [ebp - 0x24]
call fcn.00408e58
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b944
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 0x68]
sub eax, 0x10
call fcn.00409c66
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, edi
call fcn.0040b569
test al, al
je 0x40b9a8
mov eax, dword [edi + 0x44]
and eax, 8
cmp eax, 8
sete cl
xor edx, edx
test cl, cl
setne dl
cmp eax, 8
sete al
movzx eax, al
neg eax
lea edx, [edx + edx + 1]
sbb eax, eax
mov ecx, edx
and eax, 7
push ecx
push eax
mov eax, edi
call fcn.0040c143
lea ecx, [edi + 0x78]
call fcn.0042874c
add eax, 0x18
jmp 0x40b9ed
test byte [edi + 0x44], 0x40
je 0x40ba0e
lea esi, [ebp - 8]
mov ecx, edi
call fcn.0040d541
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.004022eb
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040464c
lea esi, [ebp - 4]
call fcn.00409ce0
push 6
mov eax, edi
call fcn.0040c187
lea ecx, [edi + 0x98]
call fcn.0040de91
lea edi, [ebp - 8]
call fcn.00409ef5
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.004022eb
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040464c
lea eax, [ebp - 4]
push eax
call fcn.0040a097
mov esi, dword [ebp - 4]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esi - 0x10]
call fcn.0040464c
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x40c718
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, ebx
call fcn.0040b569
test al, al
jne 0x40c739
test byte [ebx + 0x44], 0x40
je 0x40c864
mov eax, dword [ebx + 0x7c]
and dword [ebp - 8], 0
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x40c864
lea eax, [ebx + 0x78]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.0042874c
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x40c855
mov eax, dword [esi]
cmp eax, 1
je 0x40c79c
cmp eax, 3
je 0x40c79c
cmp eax, 7
je 0x40c79c
cmp eax, 8
je 0x40c79c
cmp eax, 0x64
jb 0x40c7c3
mov eax, dword [ebx + 0x90]
cmp eax, 2
je 0x40c855
cmp eax, 5
jne 0x40c7c3
jmp 0x40c855
mov eax, dword [ebx + 0x90]
cmp eax, 4
je 0x40c7c3
cmp eax, 2
je 0x40c855
cmp eax, 1
je 0x40c855
test byte [esi + 8], 1
jne 0x40c855
mov eax, dword [esi + 4]
mov ecx, ebx
call fcn.0040d5c6
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409c66
mov esi, dword [esi + 0x18]
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 4]
call fcn.004022eb
lea esi, [ebp - 4]
call fcn.00402073
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c829
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40c829
lea edi, [ebp - 0x24]
call fcn.00404681
mov eax, edi
push eax
mov ebx, esi
call fcn.004046a8
mov esi, edi
call fcn.00401c08
mov ebx, dword [ebp + 8]
push dword [ebp - 0x10]
lea eax, [ebp - 4]
lea edi, [ebp - 0x14]
call fcn.00409ef5
push eax
call fcn.0040a29a
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.0040464c
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.0040464c
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jl 0x40c751
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c86b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
push esi
cmp dword [edi + 0x10], ebx
jne 0x40c881
xor eax, eax
jmp 0x40c9db
mov eax, dword [edi + 0x1c]
xor ecx, ecx
add eax, dword [edi + 0x58]
push ebx
adc ecx, dword [edi + 0x5c]
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x84]
push eax
push ecx
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40c8c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d589
push 2
pop eax
jmp 0x40c9db
mov ecx, 0x459100
lea esi, [ebp - 0x20]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call fcn.00404631
mov byte [ebp - 0x1c], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x10], ebx
jbe 0x40c9c5
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi + 0x84]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x38]
push ecx
push eax
call esi
test eax, eax
je 0x40c9ac
cmp dword [ebp - 0xc], ebx
je 0x40c9ac
cmp dword [ebp - 4], ebx
je 0x40c935
push dword [ebp - 4]
call fcn.00431415
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0040dc9e
test al, al
je 0x40c9a7
mov eax, dword [edi + 0x84]
push ebx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call esi
test eax, eax
je 0x40c9ac
cmp dword [ebp - 0xc], ebx
je 0x40c9ac
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 4]
xor eax, eax
mov word [edx + ecx*2], ax
lea eax, [ebp - 0x38]
lea ebx, [edi + 0x78]
push eax
call fcn.0040dd77
mov eax, dword [ebp - 8]
mov ecx, ebx
call fcn.0042874c
push dword [ebp - 4]
add eax, 0x18
push eax
call fcn.00404535
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp eax, dword [edi + 0x10]
jb 0x40c8ff
jmp 0x40c9c5
push 3
pop ebx
jmp 0x40c9c5
push 2
pop ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d589
push dword [ebp - 4]
call fcn.00431415
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.0040464c
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x40c9df
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor esi, esi
cmp dword [edi + 0x9c], esi
jle 0x40c9f8
xor eax, eax
jmp 0x40cb72
mov eax, dword [edi + 0xc]
xor ecx, ecx
add eax, dword [edi + 0x58]
push esi
adc ecx, dword [edi + 0x5c]
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], ecx
mov ecx, dword [edi + 0x84]
push eax
push ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40ca3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d589
push 2
pop eax
jmp 0x40cb72
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
cmp dword [edi + 8], esi
jbe 0x40cb67
mov eax, dword [edi + 0x84]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
lea ecx, [ebp - 8]
push ecx
push 8
lea ecx, [ebp - 0x14]
push ecx
push eax
call ebx
test eax, eax
je 0x40cb4e
cmp dword [ebp - 8], esi
je 0x40cb4e
mov eax, dword [0x459100]
mov ecx, 0x459100
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], esi
je 0x40caa9
push dword [ebp - 4]
call fcn.00431415
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0040dc9e
test al, al
je 0x40cb1c
mov eax, dword [edi + 0x84]
push esi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call ebx
test eax, eax
je 0x40cb2b
cmp dword [ebp - 8], esi
je 0x40cb2b
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push eax
mov word [eax + edx*2], cx
lea eax, [ebp - 0x1c]
push eax
call fcn.00404535
lea esi, [edi + 0x98]
lea ebx, [ebp - 0x1c]
call fcn.0040de15
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040464c
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp eax, dword [edi + 8]
jb 0x40ca54
jmp 0x40cb67
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040464c
push 3
jmp 0x40cb66
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d589
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.0040464c
jmp 0x40cb64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d589
push 2
pop esi
push dword [ebp - 4]
call fcn.00431415
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40df83
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x2c]
sub esp, 0xc
push edi
test eax, eax
je 0x40df98
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x40dff1
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov edi, 0x44ab54
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 4], 0
je 0x40dff1
push dword [esi + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea eax, [ebp - 8]
call fcn.00404558
lea eax, [ebp - 8]
call fcn.0040f3fc
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040464c
lea ecx, [esi + 0x1c]
call fcn.00409b7b
lea ecx, [esi + 0x10]
call fcn.00409b7b
mov eax, dword [esi + 0xc]
sub eax, 0x10
call fcn.0040464c
pop edi
leave
ret

Function at 0x40e3c0
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x40e447
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x459124]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40e447
push esi
lea esi, [eax + eax]
xor eax, eax
and dword [ebp - 0x80], eax
mov word [ebp + esi - 0x7c], ax
lea eax, [ebp - 0x80]
push eax
push 0x44ab54
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x80], 0
je 0x40e446
add esi, 2
push esi
lea eax, [ebp - 0x7c]
push eax
push 1
push 0
push dword [edi + 0xc]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
call fcn.004313fb
add ebp, 0x190
leave
ret

Function at 0x40e758
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, 0x459100
call fcn.00404631
movzx ebx, word [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0x449e70
push 2
push ebx
call edi
mov esi, eax
lea eax, [esi - 1]
push eax
push 0x78
pop ecx
lea edx, [ebp - 4]
call fcn.0040a984
push esi
lea esi, [ebp - 4]
call fcn.00402073
push eax
push 2
push ebx
call edi
mov esi, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push 0x44ac8c
push dword [ebp + 8]
call fcn.0040971d
add esp, 0x10
lea eax, [esi - 0x10]
call fcn.0040464c
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret