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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [edx + 0x28]
call fcn.0040b60f
test al, al
jne 0x407238
test dword [edx + 0x6c], 0x2000
jne 0x407238
push edx
call fcn.00408148
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x407238
test ecx, ecx
jge 0x4071e6
push 0x80070057
call fcn.00404620
cmp word [eax], 0x5c
jne 0x407204
cmp ecx, 1
jl 0x4071dc
cmp word [eax + 2], 0x5c
jne 0x407204
cmp ecx, 2
jl 0x4071dc
cmp word [eax + 4], 0x5c
jne 0x407238
push esi
xor esi, esi
test esi, esi
jl 0x4071dc
mov ecx, esi
mov eax, edi
call fcn.00408e2a
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x407207
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 0x40723a
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0043189b
leave
ret

Function at 0x407247
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.00408148
lea ecx, [ebp - 4]
mov esi, eax
call fcn.00409d9d
push 0x5c
call fcn.00408c75
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.00408d0b
mov ebx, dword [ebp - 8]
push dword [ebx - 0xc]
lea eax, [ebp - 4]
push ebx
call fcn.00402306
lea eax, [ebx - 0x10]
call fcn.00404644
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4072ad
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 0x4072c8
xor esi, esi
inc esi
mov dword [edi + 0x10], esi
jmp 0x407349
push esi
lea ebx, [edi + 0x18]
push ebx
push 3
pop eax
call fcn.00415b4e
mov eax, dword [0x45a140]
mov ecx, 0x45a140
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.00415c44
push dword [eax]
mov ebx, dword [ebp - 4]
push ebx
lea eax, [ebp - 8]
push 0x44b6e8
push eax
call fcn.004097a8
mov eax, dword [ebp - 0xc]
add esp, 0x10
add eax, 0xfffffff0
call fcn.00404644
lea eax, [edi + 0x16c]
call fcn.004158ad
push esi
push 0x20
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0040f96d
add esp, 0x14
test al, al
jne 0x40733e
inc esi
mov dword [edi + 0x10], esi
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
lea eax, [ebx - 0x10]
call fcn.00404644
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40a122
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 [0x458090]
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.00409cf1
add eax, 0x10
lea esi, [esp + 0xc]
mov dword [esp + 0xc], eax
call fcn.00409d6b
push 0x44ba08
mov eax, esi
push eax
call fcn.00402120
xor esi, esi
push 0x24c
lea eax, [esp + 0x28]
push esi
push eax
mov dword [esp + 0x2c], esi
call fcn.004318c0
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 0x40a284
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [esp + 0x4c], 0x2e
jne 0x40a1da
cmp word [esp + 0x4e], si
je 0x40a1c6
cmp word [esp + 0x4e], 0x2e
jne 0x40a1da
cmp word [esp + 0x50], si
jne 0x40a1da
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
jmp 0x40a278
test byte [esp + 0x20], 0x10
je 0x40a23a
mov eax, dword [edi]
sub eax, 0x10
call fcn.00409cf1
add eax, 0x10
lea esi, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.00409d6b
lea eax, [esp + 0x4c]
push eax
mov eax, esi
push eax
call fcn.00402120
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call ebx
mov dword [esp + 0x18], eax
mov eax, esi
push eax
call fcn.0040a122
pop ecx
call fcn.00402073
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.00404644
jmp 0x40a278
mov eax, edi
lea edi, [esp + 0xc]
call fcn.00408901
mov esi, edi
call fcn.00409d6b
lea eax, [esp + 0x4c]
push eax
mov eax, edi
push eax
call fcn.00402120
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 0x40a1a8
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.00404644
mov ecx, dword [esp + 0x274]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043189b
mov esp, ebp
pop ebp
ret
Function at 0x40a325
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45a140]
push esi
mov ecx, 0x45a140
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 0x40a3ec
push edi
mov eax, esi
call fcn.00408e2a
cmp ax, 0x5c
jne 0x40a383
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00408d82
lea edi, [ebp - 4]
call fcn.00408901
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.00404644
jmp 0x40a38d
mov eax, esi
lea edi, [ebp - 4]
call fcn.00408901
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 0x40a3a9
add eax, 0xfffffff0
call fcn.00404644
pop esi
leave
ret
push 0x5c
call fcn.00408c75
mov ecx, eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00408d82
mov eax, dword [ebp - 8]
cmp dword [eax - 0xc], 0
je 0x40a3dc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040a325
pop ecx
pop ecx
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 4]
jmp 0x40a39e
push 0x80070057
call fcn.00404620
int3

Function at 0x40a3f7
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x458090]
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 0x40a461
push ebx
lea eax, [ebp - 0x5c]
call fcn.0040456b
lea ebx, [ebp - 0x5c]
call fcn.004096e7
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.00404644
jmp 0x40a461
cmp word [ebp + edi*2 - 0x54], 0
je 0x40a466
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x40a458
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x40a42a
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043189b
add ebp, 0x78
leave
ret
Function at 0x40a71b
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.0040a480
test al, al
je 0x40a737
xor eax, eax
jmp 0x40a832
mov eax, dword [ebp + 8]
call fcn.0040a507
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.0040a592
mov edi, dword [ebp - 0x20]
cmp edi, ebx
pop ecx
jg 0x40a770
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.00409cf1
mov esi, eax
add esi, 0x10
dec edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], edi
cmp byte [ebp + 0xc], bl
je 0x40a792
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 0x40a813
mov edi, 0x44b8d0
jmp 0x40a7a8
xor ebx, ebx
lea eax, [esi - 0x10]
call fcn.00409cf1
add eax, 0x10
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 8]
push eax
call fcn.00402120
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.00408ead
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
call fcn.00402306
push ebx
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a837
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xb7
je 0x40a849
cmp byte [ebp - 1], 0
jne 0x40a849
cmp dword [ebp - 0x10], 1
jle 0x40a80b
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebx - 0x10]
call fcn.00404644
lea eax, [esi - 0x10]
call fcn.00404644
lea esi, [ebp - 0x24]
call fcn.00408e78
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 0x40a849
lea ebx, [ebp - 8]
call fcn.004096e7
mov ebx, dword [ebp - 8]
push edi
lea eax, [ebp - 0xc]
push eax
call fcn.00402120
mov esi, dword [ebp - 0x10]
mov eax, esi
lea ecx, [ebp - 0x24]
call fcn.00408ead
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xc]
call fcn.00402306
lea eax, [ebx - 0x10]
call fcn.00404644
inc esi
cmp esi, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0xc]
jl 0x40a7a6
jmp 0x40a813
Function at 0x40b1c5
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 0x40b337
cmp byte [ebx + 0xd8], 0
jne 0x40b337
lea esi, [ebx + 0x90]
cmp dword [esi], 3
je 0x40b215
push ebx
call fcn.0040c7be
mov esi, dword [esi]
cmp esi, 2
je 0x40b215
cmp esi, 1
je 0x40b215
test byte [ebx + 0x44], 0x48
je 0x40b215
mov eax, ebx
call fcn.0040b9ea
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 0x40b286
lea eax, [ebx + 0xa4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00408ead
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call edi
test esi, esi
jne 0x40b27b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00408ead
mov ebx, eax
lea esi, [ebp - 0x24]
call fcn.004096e7
mov ebx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x40b248
mov esi, dword [ebx + 0xb4]
dec esi
mov dword [ebp - 4], esi
js 0x40b2d8
lea eax, [ebx + 0xb0]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.00408ead
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], 0
jne 0x40b2d2
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.00408ead
mov ebx, eax
lea esi, [ebp - 0x18]
call fcn.004096e7
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
dec esi
mov dword [ebp - 4], esi
jns 0x40b29b
lea eax, [ebx + 0xa4]
lea edi, [ebp - 0x24]
call fcn.0040dd67
lea esi, [ebx + 0xb0]
call fcn.00408e78
mov edi, dword [ebp - 0x14]
dec edi
js 0x40b30e
mov eax, edi
lea ecx, [ebp - 0x18]
call fcn.00408ead
mov ebx, eax
call fcn.004096e7
dec edi
jns 0x40b2f7
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0xa8], eax
jne 0x40b321
cmp dword [ebx + 0xb4], eax
jne 0x40b321
inc eax
lea esi, [ebp - 0x18]
mov byte [ebx + 0xd8], al
call fcn.00408e78
lea esi, [ebp - 0x24]
call fcn.00408e78
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b9ea
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.00409cf1
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, edi
call fcn.0040b60f
test al, al
je 0x40ba4e
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.0040c1e9
lea ecx, [edi + 0x78]
call fcn.0040debb
add eax, 0x18
jmp 0x40ba93
test byte [edi + 0x44], 0x40
je 0x40bab4
lea esi, [ebp - 8]
mov ecx, edi
call fcn.0040d5e7
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00402306
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
lea esi, [ebp - 4]
call fcn.00409d6b
push 6
mov eax, edi
call fcn.0040c22d
lea ecx, [edi + 0x98]
call fcn.0040df58
lea edi, [ebp - 8]
call fcn.00409f80
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00402306
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
lea eax, [ebp - 4]
push eax
call fcn.0040a122
mov esi, dword [ebp - 4]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esi - 0x10]
call fcn.00404644
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x40c7be
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.0040b60f
test al, al
jne 0x40c7df
test byte [ebx + 0x44], 0x40
je 0x40c90a
mov eax, dword [ebx + 0x7c]
and dword [ebp - 8], 0
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x40c90a
lea eax, [ebx + 0x78]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.0040debb
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x40c8fb
mov eax, dword [esi]
cmp eax, 1
je 0x40c842
cmp eax, 3
je 0x40c842
cmp eax, 7
je 0x40c842
cmp eax, 8
je 0x40c842
cmp eax, 0x64
jb 0x40c869
mov eax, dword [ebx + 0x90]
cmp eax, 2
je 0x40c8fb
cmp eax, 5
jne 0x40c869
jmp 0x40c8fb
mov eax, dword [ebx + 0x90]
cmp eax, 4
je 0x40c869
cmp eax, 2
je 0x40c8fb
cmp eax, 1
je 0x40c8fb
test byte [esi + 8], 1
jne 0x40c8fb
mov eax, dword [esi + 4]
mov ecx, ebx
call fcn.0040d66c
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409cf1
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.00402306
lea esi, [ebp - 4]
call fcn.00402073
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c8cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40c8cf
lea edi, [ebp - 0x24]
call fcn.00404679
mov eax, edi
push eax
mov ebx, esi
call fcn.004046a0
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.00409f80
push eax
call fcn.0040a325
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.00404644
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00404644
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jl 0x40c7f7
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c911
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 0x40c927
xor eax, eax
jmp 0x40ca81
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 0x40c96e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d62f
push 2
pop eax
jmp 0x40ca81
mov ecx, 0x45a140
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.004020bf
mov byte [ebp - 0x1c], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x10], ebx
jbe 0x40ca6b
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 0x40ca52
cmp dword [ebp - 0xc], ebx
je 0x40ca52
cmp dword [ebp - 4], ebx
je 0x40c9db
push dword [ebp - 4]
call fcn.004318b5
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0040dd44
test al, al
je 0x40ca4d
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 0x40ca52
cmp dword [ebp - 0xc], ebx
je 0x40ca52
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.0040de1d
mov eax, dword [ebp - 8]
mov ecx, ebx
call fcn.0040debb
push dword [ebp - 4]
add eax, 0x18
push eax
call fcn.00404548
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp eax, dword [edi + 0x10]
jb 0x40c9a5
jmp 0x40ca6b
push 3
pop ebx
jmp 0x40ca6b
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.0040d62f
push dword [ebp - 4]
call fcn.004318b5
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.00404644
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x40ca85
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 0x40ca9e
xor eax, eax
jmp 0x40cc18
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 0x40cae5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d62f
push 2
pop eax
jmp 0x40cc18
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 0x40cc0d
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 0x40cbf4
cmp dword [ebp - 8], esi
je 0x40cbf4
mov eax, dword [0x45a140]
mov ecx, 0x45a140
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 0x40cb4f
push dword [ebp - 4]
call fcn.004318b5
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0040dd44
test al, al
je 0x40cbc2
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 0x40cbd1
cmp dword [ebp - 8], esi
je 0x40cbd1
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.00404548
lea esi, [edi + 0x98]
lea ebx, [ebp - 0x1c]
call fcn.0040dedc
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404644
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp eax, dword [edi + 8]
jb 0x40cafa
jmp 0x40cc0d
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404644
push 3
jmp 0x40cc0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d62f
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00404644
jmp 0x40cc0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d62f
push 2
pop esi
push dword [ebp - 4]
call fcn.004318b5
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40e04a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x2c]
sub esp, 0xc
push edi
test eax, eax
je 0x40e05f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x40e0b8
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov edi, 0x44bb5c
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 4], 0
je 0x40e0b8
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.0040456b
lea eax, [ebp - 8]
call fcn.0040f4c3
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.00404644
lea ecx, [esi + 0x1c]
call fcn.00409c06
lea ecx, [esi + 0x10]
call fcn.00409c06
mov eax, dword [esi + 0xc]
sub eax, 0x10
call fcn.00404644
pop edi
leave
ret

Function at 0x40e487
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [edi + 0xc]
cmp dword [eax - 0xc], 0
je 0x40e50e
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x45a164]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40e50e
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 0x44bb5c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x80], 0
je 0x40e50d
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.0043189b
add ebp, 0x190
leave
ret

Function at 0x40e81f
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, 0x45a140
call fcn.004020bf
movzx ebx, word [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0x44ae98
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.0040aa2a
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 0x44bc94
push dword [ebp + 8]
call fcn.004097a8
add esp, 0x10
lea eax, [esi - 0x10]
call fcn.00404644
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret