joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a309
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 0x40a373
push ebx
lea eax, [ebp - 0x5c]
call fcn.004044e8
lea ebx, [ebp - 0x5c]
call fcn.004095a0
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.004045dc
jmp 0x40a373
cmp word [ebp + edi*2 - 0x54], 0
je 0x40a378
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x40a36a
inc edi
cmp edi, dword [ebp - 0x58]
jb 0x40a33c
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043159b
add ebp, 0x78
leave
ret
Function at 0x40a62d
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.0040a392
test al, al
je 0x40a649
xor eax, eax
jmp 0x40a744
mov eax, dword [ebp + 8]
call fcn.0040a419
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.0040a4a4
mov edi, dword [ebp - 0x20]
cmp edi, ebx
pop ecx
jg 0x40a682
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.00409bcb
mov esi, eax
add esi, 0x10
dec edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], edi
cmp byte [ebp + 0xc], bl
je 0x40a6a4
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 0x40a725
mov edi, 0x44b8b0
jmp 0x40a6ba
xor ebx, ebx
lea eax, [esi - 0x10]
call fcn.00409bcb
add eax, 0x10
mov dword [ebp - 8], eax
push edi
lea eax, [ebp - 8]
push eax
call fcn.004020a2
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.00409616
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 8]
call fcn.00402288
push ebx
mov ebx, dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40a749
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xb7
je 0x40a75b
cmp byte [ebp - 1], 0
jne 0x40a75b
cmp dword [ebp - 0x10], 1
jle 0x40a71d
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebx - 0x10]
call fcn.004045dc
lea eax, [esi - 0x10]
call fcn.004045dc
lea esi, [ebp - 0x24]
call fcn.00408d52
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 0x40a75b
lea ebx, [ebp - 8]
call fcn.004095a0
mov ebx, dword [ebp - 8]
push edi
lea eax, [ebp - 0xc]
push eax
call fcn.004020a2
mov esi, dword [ebp - 0x10]
mov eax, esi
lea ecx, [ebp - 0x24]
call fcn.00409616
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 0xc]
call fcn.00402288
lea eax, [ebx - 0x10]
call fcn.004045dc
inc esi
cmp esi, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0xc]
jl 0x40a6b8
jmp 0x40a725
Function at 0x40b0d7
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 0x40b249
cmp byte [ebx + 0xd8], 0
jne 0x40b249
lea esi, [ebx + 0x90]
cmp dword [esi], 3
je 0x40b127
push ebx
call fcn.0040c6d0
mov esi, dword [esi]
cmp esi, 2
je 0x40b127
cmp esi, 1
je 0x40b127
test byte [ebx + 0x44], 0x48
je 0x40b127
mov eax, ebx
call fcn.0040b8fc
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 0x40b198
lea eax, [ebx + 0xa4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00409616
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call edi
test esi, esi
jne 0x40b18d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00409616
mov ebx, eax
lea esi, [ebp - 0x24]
call fcn.004095a0
mov ebx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x40b15a
mov esi, dword [ebx + 0xb4]
dec esi
mov dword [ebp - 4], esi
js 0x40b1ea
lea eax, [ebx + 0xb0]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.00409616
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], 0
jne 0x40b1e4
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.00409616
mov ebx, eax
lea esi, [ebp - 0x18]
call fcn.004095a0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
dec esi
mov dword [ebp - 4], esi
jns 0x40b1ad
lea eax, [ebx + 0xa4]
lea edi, [ebp - 0x24]
call fcn.0040dc79
lea esi, [ebx + 0xb0]
call fcn.00408d52
mov edi, dword [ebp - 0x14]
dec edi
js 0x40b220
mov eax, edi
lea ecx, [ebp - 0x18]
call fcn.00409616
mov ebx, eax
call fcn.004095a0
dec edi
jns 0x40b209
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0xa8], eax
jne 0x40b233
cmp dword [ebx + 0xb4], eax
jne 0x40b233
inc eax
lea esi, [ebp - 0x18]
mov byte [ebx + 0xd8], al
call fcn.00408d52
lea esi, [ebp - 0x24]
call fcn.00408d52
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40b8fc
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.00409bcb
add eax, 0x10
mov dword [ebp - 4], eax
mov eax, edi
call fcn.0040b521
test al, al
je 0x40b960
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.0040c0fb
lea ecx, [edi + 0x78]
call fcn.0040ddcd
add eax, 0x18
jmp 0x40b9a5
test byte [edi + 0x44], 0x40
je 0x40b9c6
lea esi, [ebp - 8]
mov ecx, edi
call fcn.0040d4f9
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00402288
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
lea esi, [ebp - 4]
call fcn.00409c45
push 6
mov eax, edi
call fcn.0040c13f
lea ecx, [edi + 0x98]
call fcn.00415e7d
lea edi, [ebp - 8]
call fcn.00409e5a
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.00402288
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
lea eax, [ebp - 4]
push eax
call fcn.00409ffc
mov esi, dword [ebp - 4]
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [esi - 0x10]
call fcn.004045dc
pop edi
xor eax, eax
pop esi
leave
ret
Function at 0x40c6d0
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.0040b521
test al, al
jne 0x40c6f1
test byte [ebx + 0x44], 0x40
je 0x40c81c
mov eax, dword [ebx + 0x7c]
and dword [ebp - 8], 0
mov dword [ebp - 0x18], eax
test eax, eax
jle 0x40c81c
lea eax, [ebx + 0x78]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.0040ddcd
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x40c80d
mov eax, dword [esi]
cmp eax, 1
je 0x40c754
cmp eax, 3
je 0x40c754
cmp eax, 7
je 0x40c754
cmp eax, 8
je 0x40c754
cmp eax, 0x64
jb 0x40c77b
mov eax, dword [ebx + 0x90]
cmp eax, 2
je 0x40c80d
cmp eax, 5
jne 0x40c77b
jmp 0x40c80d
mov eax, dword [ebx + 0x90]
cmp eax, 4
je 0x40c77b
cmp eax, 2
je 0x40c80d
cmp eax, 1
je 0x40c80d
test byte [esi + 8], 1
jne 0x40c80d
mov eax, dword [esi + 4]
mov ecx, ebx
call fcn.0040d57e
mov dword [ebp - 0x10], eax
mov eax, dword [eax]
sub eax, 0x10
call fcn.00409bcb
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.00402288
lea esi, [ebp - 4]
call fcn.00402010
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c7e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40c7e1
lea edi, [ebp - 0x24]
call fcn.004045f4
mov eax, edi
push eax
mov ebx, esi
call fcn.0040461b
mov esi, edi
call fcn.00401ba7
mov ebx, dword [ebp + 8]
push dword [ebp - 0x10]
lea eax, [ebp - 4]
lea edi, [ebp - 0x14]
call fcn.00409e5a
push eax
call fcn.0040a237
mov eax, dword [ebp - 0x14]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004045dc
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jl 0x40c709
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c823
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 0x40c839
xor eax, eax
jmp 0x40c993
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 0x40c880
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d541
push 2
pop eax
jmp 0x40c993
mov ecx, 0x45a180
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.004045c1
mov byte [ebp - 0x1c], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [edi + 0x10], ebx
jbe 0x40c97d
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 0x40c964
cmp dword [ebp - 0xc], ebx
je 0x40c964
cmp dword [ebp - 4], ebx
je 0x40c8ed
push dword [ebp - 4]
call fcn.004315b5
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0040dc56
test al, al
je 0x40c95f
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 0x40c964
cmp dword [ebp - 0xc], ebx
je 0x40c964
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.0040dd2f
mov eax, dword [ebp - 8]
mov ecx, ebx
call fcn.0040ddcd
push dword [ebp - 4]
add eax, 0x18
push eax
call fcn.004044c5
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp eax, dword [edi + 0x10]
jb 0x40c8b7
jmp 0x40c97d
push 3
pop ebx
jmp 0x40c97d
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.0040d541
push dword [ebp - 4]
call fcn.004315b5
mov eax, dword [ebp - 0x20]
pop ecx
add eax, 0xfffffff0
call fcn.004045dc
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x40c997
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 0x40c9b0
xor eax, eax
jmp 0x40cb2a
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 0x40c9f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d541
push 2
pop eax
jmp 0x40cb2a
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 0x40cb1f
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 0x40cb06
cmp dword [ebp - 8], esi
je 0x40cb06
mov eax, dword [0x45a180]
mov ecx, 0x45a180
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 0x40ca61
push dword [ebp - 4]
call fcn.004315b5
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0040dc56
test al, al
je 0x40cad4
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 0x40cae3
cmp dword [ebp - 8], esi
je 0x40cae3
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.004044c5
lea esi, [edi + 0x98]
lea ebx, [ebp - 0x1c]
call fcn.00422fee
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004045dc
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp eax, dword [edi + 8]
jb 0x40ca0c
jmp 0x40cb1f
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004045dc
push 3
jmp 0x40cb1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d541
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004045dc
jmp 0x40cb1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [edi + 0x60]
push eax
push 0x103
push edi
call fcn.0040d541
push 2
pop esi
push dword [ebp - 4]
call fcn.004315b5
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40debf
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x2c]
sub esp, 0xc
push edi
test eax, eax
je 0x40ded4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
je 0x40df2d
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov edi, 0x44bb2c
push edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 4], 0
je 0x40df2d
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.004044e8
lea eax, [ebp - 8]
call fcn.0040f41a
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
lea ecx, [esi + 0x1c]
call fcn.00409ae0
lea ecx, [esi + 0x10]
call fcn.00409ae0
mov eax, dword [esi + 0xc]
sub eax, 0x10
call fcn.004045dc
pop edi
leave
ret

Function at 0x40e2fc
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 0x40e383
push 0x104
lea eax, [ebp - 0x7c]
push eax
push dword [0x45a1a4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40e383
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 0x44bb2c
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x80], 0
je 0x40e382
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.0043159b
add ebp, 0x190
leave
ret

Function at 0x40e694
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, 0x45a180
call fcn.004045c1
movzx ebx, word [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0x44ae50
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.0040a93c
push esi
lea esi, [ebp - 4]
call fcn.00402010
push eax
push 2
push ebx
call edi
mov esi, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push 0x44bc64
push dword [ebp + 8]
call fcn.00409682
add esp, 0x10
lea eax, [esi - 0x10]
call fcn.004045dc
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e705
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push esi
mov word [ebx], ax
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [ebp + 8]
mov word [ecx], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, dword [ebp + 0xc]
lea esi, [ebp + 0xc]
mov word [ecx], ax
call fcn.0041028f
push str.Windows_2000
push eax
call fcn.00408f22
test eax, eax
mov eax, dword [ebp + 0xc]
setge byte [ebp + 0xb]
add eax, 0xfffffff0
call fcn.004045dc
cmp byte [ebp + 0xb], 0
je 0x40e78b
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSystemDefaultUILanguage
push eax
mov dword [ebp + 8], eax
call esi
test eax, eax
je 0x40e778
call eax
mov word [edi], ax
push str.GetUserDefaultUILanguage
push dword [ebp + 8]
call esi
test eax, eax
je 0x40e78b
call eax
mov word [ebx], ax
pop esi
pop ebp
ret

Function at 0x40ede2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
push edi
push dword [ebp + 8]
lea edi, [esi + 4]
mov eax, edi
call fcn.0040ed6c
xor eax, eax
cmp byte [esi + 0xc], al
je 0x40ee07
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x40ee2b
cmp dword [edi], eax
je 0x40ee2b
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push 0x40ee4f
push eax
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
add esi, 0x10
mov edi, eax
call fcn.00408d3b
pop edi
pop esi
pop ebp
ret 4

Function at 0x40ef80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x40f007
push esi
call fcn.004315aa
mov edi, eax
pop ecx
test edi, edi
jne 0x40efbf
push 8
pop esi
push edi
call fcn.004315b5
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret
push edi
push esi
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f007
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x44b8b0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f010
cmp dword [ebp - 0x10], 0
je 0x40f010
mov eax, dword [ebp - 8]
test ebx, ebx
je 0x40eff9
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40f010
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
jmp 0x40f010
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
jmp 0x40efb2
Function at 0x40f015
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebx]
push esi
push edi
sub eax, 0x10
call fcn.00409bcb
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 4]
call fcn.00402010
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x40f13b
push esi
call fcn.004315aa
mov edi, eax
pop ecx
test edi, edi
jne 0x40f067
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004045dc
push edi
jmp 0x40f148
push edi
push esi
push dword [ebp - 0xc]
lea esi, [ebp - 4]
call fcn.00402010
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f056
mov eax, dword [0x45a180]
mov ecx, 0x45a180
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f0c1
cmp dword [ebp - 0x10], 0
je 0x40f0c1
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x44bd38
push ecx
push eax
jmp 0x40f0d0
push 0x44bd38
push 0x4e2
push 0x409
lea eax, [ebp - 8]
push str.StringFileInfo_04x_04x_s
push eax
call fcn.00409682
add esp, 0x14
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
lea esi, [ebp - 8]
call fcn.00402010
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40f12b
cmp dword [ebp - 0x18], 0
je 0x40f12b
push dword [ebp - 0x1c]
push ebx
call fcn.004044c5
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004045dc
push edi
call fcn.004315b5
mov al, 1
jmp 0x40f14f
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.004045dc
jmp 0x40f056
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004045dc
push 0
call fcn.004315b5
xor al, al
pop ecx
pop edi
pop esi
leave
ret
Function at 0x40f30b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 4], 0xc8
call fcn.004315b5
pop ecx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], esi
call fcn.0040dc56
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push dword [ebp + 8]
call esi
mov edi, 0xea
jmp 0x40f38c
add dword [ebp - 4], 2
push ebx
call fcn.004315b5
and dword [ebp - 8], 0
pop ecx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040dc56
mov ebx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push dword [ebp + 8]
call esi
cmp eax, edi
je 0x40f358
test eax, eax
je 0x40f3a7
mov byte [ebp + 0xf], 0
push ebx
call fcn.004315b5
mov al, byte [ebp + 0xf]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x40f3d6
cmp eax, 2
je 0x40f3d6
cmp eax, 7
je 0x40f3d6
cmp eax, 4
jne 0x40f394
push dword [ebx]
push 0x44bdbc
push dword [ebp + 0x10]
call fcn.00409682
add esp, 0xc
mov byte [ebp + 0xf], 1
jmp 0x40f398
shr dword [ebp - 4], 1
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ebx + ecx*2], ax
mov edi, dword [ebp - 4]
jmp 0x40f3eb
dec edi
mov dword [ebp - 4], edi
cmp word [ebx + edi*2], ax
je 0x40f3e7
inc edi
push ebx
mov ecx, 0x45a180
lea esi, [ebp + 0xc]
mov dword [ebp - 4], edi
call fcn.0040911d
mov edi, dword [ebp + 0x10]
mov eax, esi
call fcn.004087db
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.004045dc
jmp 0x40f3d0