joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462d20
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push edi
call fcn.00418bf4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x24]
push 0x1f6
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x462d92
mov eax, dword [edi + 0x14]
mov ecx, edi
cmp esi, eax
ja 0x462d60
push 0xffffffffffffffff
push esi
call fcn.00403da1
jmp 0x462d6c
mov edx, esi
push 0
sub edx, eax
push edx
call fcn.00419c50
cmp dword [edi + 0x18], 8
jb 0x462d85
mov edi, dword [edi + 4]
inc esi
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
pop ebx
ret 4
inc esi
push esi
add edi, 4
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
pop edi
pop esi
pop ebx
ret 4

Function at 0x4633a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d6c66
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x51f714]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push edi
mov eax, dword [0x51f714]
xor eax, esp
push eax
lea eax, [esp + 0x154]
mov dword fs:[0], eax
mov eax, dword [esp + 0x164]
push eax
lea eax, [esp + 0x30]
push eax
xor edx, edx
call fcn.00459de0
add esp, 8
xor ebx, ebx
mov dword [esp + 0x15c], ebx
cmp dword [esp + 0x40], ebx
jne 0x4634ac
push 0x103
lea ecx, [esp + 0x4d]
push ebx
push ecx
mov byte [esp + 0x54], bl
call fcn.004af810
add esp, 0xc
push 0x104
lea edx, [esp + 0x4c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x48]
push eax
call fcn.004af230
add esp, 4
push eax
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x34]
call fcn.004056ce
lea edx, [esp + 0xc]
push edx
lea edi, [esp + 0x30]
mov byte [esp + 0x10], 0x5c
call fcn.00463a50
cmp eax, 0xffffffff
je 0x4634ac
push eax
lea eax, [esp + 0x14]
push eax
xor ecx, ecx
mov edx, edi
call fcn.004639e0
mov byte [esp + 0x15c], 1
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.00405995
mov byte [esp + 0x15c], bl
cmp dword [esp + 0x28], 0x10
jb 0x46349c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004ad670
add esp, 4
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
cmp dword [esp + 0x44], 0x10
mov eax, dword [esp + 0x30]
jae 0x4634bb
lea eax, [esp + 0x30]
mov edx, dword [esi]
push eax
push edx
call dword [sym.imp.dbghelp.dll_SymSetSearchPath]
cmp eax, 1
sete byte [esp + 0xc]
mov dword [esp + 0x15c], 0xffffffff
cmp dword [esp + 0x44], 0x10
jb 0x4634ec
mov eax, dword [esp + 0x30]
push eax
call fcn.004ad670
add esp, 4
mov al, byte [esp + 0xc]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
mov ecx, dword [esp + 0x154]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.004ad67b
add esp, 0x154
ret 4
Function at 0x463cc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d6bfe
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x51f714]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0xc]
push eax
call fcn.00463b90
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x3c]
mov dx, word [esp + 0x40]
mov dword [esp + 0x20], ecx
mov word [esp + 0x24], dx
test esi, esi
jne 0x463d13
xor eax, eax
jmp 0x463d1c
push esi
call fcn.004af01d
add esp, 4
push eax
push esi
lea eax, [esp + 0x14]
call fcn.00404644
mov eax, dword [esp + 0x44]
mov cx, word [esp + 0x48]
mov dx, word [esp + 0x4c]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov ax, word [esp + 0x50]
mov word [esp + 0x18], cx
mov cx, word [esp + 0x54]
add esi, 0x14
lea ebx, [esp + 0xc]
mov dword [esp + 0x14], 0
mov word [esp + 0x1a], dx
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], cx
call fcn.00464190
mov dword [esp + 0x30], 0xffffffff
mov edx, ebx
push edx
call fcn.00463bf0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret 0x20
Function at 0x464c7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
inc esi
cmp byte [ebp + 0x10], 0
push edi
mov eax, esi
je 0x464c95
mov eax, 0x101
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
or dword [ebp - 0x2c], 0xffffffff
push 0x14
pop edi
push edi
mov ebx, eax
mov dword [ebp - 0x14], esi
call fcn.004ab72b
or dword [ebp - 0x24], 0xffffffff
push edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0xc], edi
call fcn.004ab72b
pop ecx
pop ecx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], edi
call fcn.0045b8c0
or dword [ebp - 0x24], 0xffffffff
push edi
call fcn.004ab72b
and dword [ebp + 0x10], 0
pop ecx
mov dword [ebp - 0x20], eax
test ebx, ebx
jne 0x464dce
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, str.InstallLanguage
mov dword [ebp - 0x10], ebx
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call edi
mov dword [ebp - 0x1c], eax
cmp eax, 0xea
jne 0x464d7b
lea esi, [ebp - 0x2c]
call fcn.0045b8c0
push dword [ebp - 0xc]
or dword [ebp - 0x2c], 0xffffffff
call fcn.004ab72b
pop ecx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x28], eax
call fcn.0045b8c0
push dword [ebp - 8]
or dword [ebp - 0x24], 0xffffffff
call fcn.004ab72b
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x28]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
call edi
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
sub esi, ebx
inc eax
mov cl, byte [esi + eax]
mov dl, byte [eax]
cmp cl, dl
jl 0x464dc1
jg 0x464dc1
test cl, cl
je 0x464d97
test dl, dl
jne 0x464d83
mov ebx, dword [ebp - 0x20]
or dword [ebp + 0x10], 0xffffffff
lea eax, [ebp + 0x10]
push eax
call fcn.0045b970
pop ecx
mov edi, eax
lea esi, [ebp - 0x24]
call fcn.0045b8c0
lea esi, [ebp - 0x2c]
call fcn.0045b8c0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
inc dword [ebp + 0x10]
cmp dword [ebp - 0x1c], 0
je 0x464d0b
xor edi, edi
jmp 0x464daa
Function at 0x467993
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x51f714]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test byte [eax + 0x6c], 1
jne 0x4679b0
xor al, al
jmp 0x467a26
push edi
push eax
call fcn.004687ca
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jl 0x4679ef
test ecx, ecx
jge 0x4679d1
push 0x80070057
call fcn.00402978
cmp word [eax], 0x5c
jne 0x4679f3
cmp ecx, 1
jl 0x4679c7
cmp word [eax + 2], 0x5c
jne 0x4679f3
cmp ecx, 2
jl 0x4679c7
cmp word [eax + 4], 0x5c
je 0x4679f3
xor al, al
jmp 0x467a25
push esi
xor esi, esi
test esi, esi
jl 0x4679c7
mov ecx, esi
mov eax, edi
call fcn.0045e6c0
mov word [ebp + esi*2 - 0xc], ax
inc esi
cmp esi, 3
jl 0x4679f6
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
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ad67b
leave
ret 4

Function at 0x467a34
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.004687ca
lea esi, [ebp - 4]
mov ebx, eax
call fcn.0045c310
push 0x5c
mov esi, ebx
call fcn.00443314
lea edx, [eax + 1]
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00443332
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.004434e9
lea ecx, [ebp - 0xc]
call fcn.00402907
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x467a94
push 0x80
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebx]
push 0
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x467aae
xor esi, esi
inc esi
mov dword [edi + 0x10], esi
jmp 0x467b22
push ebx
push 3
lea esi, [edi + 0x18]
pop eax
mov ecx, esi
call fcn.0047374e
lea eax, [ebp - 8]
push eax
call fcn.004441b6
xor ebx, ebx
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.004737d6
push dword [eax]
lea eax, [ebp - 8]
push dword [ebp - 4]
push 0x4f3b1c
push eax
call fcn.004492b5
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.00402907
lea eax, [edi + 0x160]
call fcn.004734bd
push ebx
push 0x20
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.0046e2a4
add esp, 0x14
xor esi, esi
test al, al
jne 0x467b1a
inc esi
mov dword [edi + 0x10], esi
lea ecx, [ebp - 8]
call fcn.00402907
lea ecx, [ebp - 4]
call fcn.00402907
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46a6e8
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0xb8], 0
je 0x46a869
cmp byte [ebx + 0xd0], 0
jne 0x46a869
push esi
lea esi, [ebx + 0x84]
cmp dword [esi], 3
push edi
je 0x46a745
mov edi, ebx
call fcn.0046baad
mov esi, dword [esi]
cmp esi, 2
je 0x46a745
cmp esi, 1
je 0x46a745
mov eax, dword [ebx + 0x44]
mov ecx, eax
shr ecx, 3
test cl, 1
jne 0x46a740
shr eax, 6
test al, 1
je 0x46a745
call fcn.0046ae14
mov ecx, dword [ebx + 0xa0]
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 0x46a7b6
lea eax, [ebx + 0x9c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0044888c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call edi
test esi, esi
jne 0x46a7ab
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0044888c
mov ebx, eax
lea esi, [ebp - 0x24]
call fcn.0045b3f0
mov ebx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jl 0x46a778
mov esi, dword [ebx + 0xac]
dec esi
mov dword [ebp - 4], esi
js 0x46a808
lea eax, [ebx + 0xa8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.0044888c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], 0
jne 0x46a802
mov ecx, dword [ebp - 8]
mov eax, esi
call fcn.0044888c
mov ebx, eax
lea esi, [ebp - 0x18]
call fcn.0045b3f0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 4]
dec esi
mov dword [ebp - 4], esi
jns 0x46a7cb
lea eax, [ebx + 0x9c]
lea edi, [ebp - 0x24]
call fcn.0046cee5
lea esi, [ebx + 0xa8]
call fcn.00444784
mov edi, dword [ebp - 0x14]
dec edi
js 0x46a83e
mov eax, edi
lea ecx, [ebp - 0x18]
call fcn.0044888c
mov ebx, eax
call fcn.0045b3f0
dec edi
jns 0x46a827
mov ebx, dword [ebp + 8]
xor eax, eax
cmp dword [ebx + 0xa0], eax
jne 0x46a851
cmp dword [ebx + 0xac], eax
jne 0x46a851
inc eax
lea esi, [ebp - 0x18]
mov byte [ebx + 0xd0], al
call fcn.00444784
lea esi, [ebp - 0x24]
call fcn.00444784
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46ae14
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [edi + 0x5c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00425ecf
mov eax, dword [edi + 0x44]
xor edx, edx
inc edx
test dl, al
jne 0x46ae65
shr eax, 3
movzx ecx, al
and al, dl
and ecx, edx
movzx eax, al
add ecx, ecx
or ecx, edx
neg eax
sbb eax, eax
and eax, 7
push ecx
push eax
mov eax, edi
call fcn.0046b50c
lea ecx, [edi + 0x6c]
call fcn.0046cfe9
mov esi, eax
lea eax, [ebp - 8]
add esi, 0x18
push eax
jmp 0x46aead
shr eax, 6
test dl, al
je 0x46aec9
lea esi, [ebp - 8]
mov ecx, edi
call fcn.0046c876
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.004434e9
mov ecx, esi
call fcn.00402907
lea eax, [ebp - 4]
call fcn.0045c2d0
push 6
mov eax, edi
call fcn.0046b550
lea ecx, [edi + 0x90]
call fcn.0046d00a
lea ecx, [ebp - 8]
push ecx
mov esi, eax
call fcn.0045c6d0
mov eax, dword [eax]
pop ecx
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
call fcn.004434e9
lea ecx, [ebp - 8]
call fcn.00402907
lea eax, [ebp - 4]
push eax
call fcn.0045cae0
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 4]
call fcn.00402907
xor eax, eax
pop esi
leave
ret
Function at 0x46baad
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x44]
sub esp, 0x10
test al, 1
je 0x46bac5
shr eax, 6
test al, 1
je 0x46bb9f
mov eax, dword [edi + 0x70]
and dword [ebp - 8], 0
mov dword [ebp - 0x10], eax
test eax, eax
jle 0x46bb9f
push ebx
push esi
mov eax, dword [ebp - 8]
lea ecx, [edi + 0x6c]
call fcn.0046cfe9
mov esi, eax
cmp byte [esi + 0x1c], 0
je 0x46bb8e
mov eax, dword [esi]
cmp eax, 1
je 0x46bb1d
cmp eax, 3
je 0x46bb1d
cmp eax, 7
je 0x46bb1d
cmp eax, 8
je 0x46bb1d
cmp eax, 0x64
jb 0x46bb38
mov eax, dword [edi + 0x84]
cmp eax, 2
je 0x46bb8e
cmp eax, 5
jne 0x46bb38
jmp 0x46bb8e
mov eax, dword [edi + 0x84]
cmp eax, 4
je 0x46bb38
cmp eax, 2
je 0x46bb8e
cmp eax, 1
je 0x46bb8e
test byte [esi + 8], 1
jne 0x46bb8e
mov eax, dword [esi + 4]
mov ecx, edi
call fcn.0046c8ee
mov ebx, eax
push ebx
lea eax, [ebp - 4]
push eax
call fcn.00425ecf
mov esi, dword [esi + 0x18]
push dword [esi - 0xc]
lea eax, [ebp - 4]
push esi
call fcn.004434e9
lea esi, [ebp - 4]
call fcn.00411f01
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0xc]
push ebx
push eax
call fcn.0045c6d0
pop ecx
push eax
call fcn.0045cf40
pop ecx
pop ecx
lea ecx, [ebp - 0xc]
call fcn.00402907
mov ecx, esi
call fcn.00402907
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jl 0x46bad9
pop esi
pop ebx
leave
ret
Function at 0x46bba1
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, 0x400
push ebx
mov esi, eax
call fcn.004ab72b
mov edi, eax
xor edx, edx
pop ecx
mov dword [esp + 0xc], edi
cmp edi, edx
jne 0x46bbd0
push edx
call fcn.004af6b2
pop ecx
push 3
pop eax
jmp 0x46bd5e
push ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x20]
inc dword [esp + 0x14]
add dword [esp + 0x18], 0xa
add eax, ebx
cmp dword [esp + 0x14], 1
mov dword [esp + 0x20], eax
jle 0x46bbff
sub eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x78]
push 2
push edx
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x46bd3c
mov eax, dword [esi + 0x78]
push 0
lea ecx, [esp + 0x20]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46bd3c
cmp dword [esp + 0x1c], ebx
jne 0x46bd3c
xor eax, eax
jmp 0x46bc47
mov edi, dword [esp + 0x10]
xor ecx, ecx
add edi, eax
mov dl, byte [edi]
cmp dl, byte [ecx + str.ADVINSTSFX]
jne 0x46bc5c
inc ecx
inc edi
cmp ecx, 0xa
jl 0x46bc4b
cmp ecx, 0xa
jne 0x46bc6c
lea ecx, [eax + ebp - 0x40]
mov dword [esp + 0x24], ecx
add eax, 0xa
inc eax
cmp eax, 0x3f6
jb 0x46bc43
mov edi, dword [esp + 0x24]
xor ebp, ebp
cmp edi, ebp
jne 0x46bc89
mov edi, dword [esp + 0x10]
xor edx, edx
jmp 0x46bbe1
mov eax, dword [esi + 0x78]
push ebp
push ebp
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x46bcbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.0046c8b5
push dword [esp + 0x10]
jmp 0x46bd54
mov eax, dword [esi + 0x78]
push ebp
lea ecx, [esp + 0x20]
push ecx
push 0x4c
lea ecx, [esi + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46bd14
cmp dword [esp + 0x1c], ebp
je 0x46bd14
xor eax, eax
movzx ecx, byte [esi + eax + 0x48]
movsx edx, byte [eax + str.ADVINSTSFX]
cmp ecx, edx
jne 0x46bd10
inc eax
cmp eax, 0xa
jl 0x46bcdd
cmp dword [esi + 0x14], 0x64
jne 0x46bd10
sub edi, dword [esi + 0x18]
push dword [esp + 0x10]
mov dword [esi + 0x8c], edi
call fcn.004af6b2
pop ecx
xor eax, eax
jmp 0x46bd5d
push 5
jmp 0x46bd2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.0046c8b5
push 2
pop esi
push dword [esp + 0x10]
call fcn.004af6b2
pop ecx
mov eax, esi
jmp 0x46bd5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.0046c8b5
push edi
call fcn.004af6b2
pop ecx
push 2
pop eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
Function at 0x46bd65
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
push edi
cmp dword [esi + 0x10], ebx
jne 0x46bd7a
xor eax, eax
pop edi
pop ebx
leave
ret
mov ecx, dword [esi + 0x8c]
add ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x78]
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x46bdb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.0046c8b5
push 2
pop eax
jmp 0x46bd76
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004441b6
mov byte [ebp - 0x10], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [esi + 0x10], ebx
jbe 0x46be84
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x78]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x2c]
push ecx
push eax
call edi
test eax, eax
je 0x46be8d
cmp dword [ebp - 0xc], ebx
je 0x46be8d
cmp dword [ebp - 4], ebx
je 0x46be17
push dword [ebp - 4]
call fcn.004af6b2
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0046cec2
test al, al
je 0x46be88
mov eax, dword [esi + 0x78]
push ebx
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x18]
add ecx, ecx
push ecx
push dword [ebp - 4]
push eax
call edi
test eax, eax
je 0x46be8d
cmp dword [ebp - 0xc], ebx
je 0x46be8d
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
xor eax, eax
mov word [edx + ecx*2], ax
lea eax, [ebp - 0x2c]
lea ebx, [esi + 0x6c]
push eax
call fcn.0046cf4f
mov eax, dword [ebp - 8]
mov ecx, ebx
call fcn.0046cfe9
push dword [ebp - 4]
add eax, 0x18
push eax
call fcn.004046c1
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp eax, dword [esi + 0x10]
jb 0x46bde4
xor edi, edi
jmp 0x46bea7
push 3
pop edi
jmp 0x46bea7
push 2
pop edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esi + 0x54]
push ecx
push 0x103
push esi
mov ebx, eax
call fcn.0046c8b5
push dword [ebp - 4]
call fcn.004af6b2
pop ecx
lea ecx, [ebp - 0x14]
call fcn.00402907
mov eax, edi
jmp 0x46bd76
Function at 0x46bebf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
cmp dword [edi + 0x94], esi
jle 0x46bed8
xor eax, eax
jmp 0x46c02d
mov ecx, dword [edi + 0x8c]
add ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x78]
push esi
push esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x46bf12
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x54]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.0046c8b5
push 2
pop eax
jmp 0x46c02d
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 0x46c022
mov eax, dword [edi + 0x78]
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 0x46c008
cmp dword [ebp - 8], esi
je 0x46c008
lea eax, [ebp - 0x1c]
push eax
call fcn.004441b6
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], esi
je 0x46bf6f
push dword [ebp - 4]
call fcn.004af6b2
pop ecx
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
inc eax
push ecx
call fcn.0046cec2
test al, al
je 0x46bfdb
mov eax, dword [edi + 0x78]
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 0x46bfe7
cmp dword [ebp - 8], esi
je 0x46bfe7
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.004046c1
lea esi, [edi + 0x90]
lea ebx, [ebp - 0x1c]
call fcn.0047f12a
mov ecx, ebx
call fcn.00402907
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
xor esi, esi
cmp eax, dword [edi + 8]
jb 0x46bf27
jmp 0x46c022
lea ecx, [ebp - 0x1c]
call fcn.00402907
push 3
jmp 0x46c021
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x54]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.0046c8b5
lea ecx, [ebp - 0x1c]
call fcn.00402907
jmp 0x46c01f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [edi + 0x54]
push ecx
push 0x103
push edi
mov ebx, eax
call fcn.0046c8b5
push 2
pop esi
push dword [ebp - 4]
call fcn.004af6b2
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46d72b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.004441b6
movzx ebx, word [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0
push 0x4e9568
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.0044863c
push esi
lea esi, [ebp - 4]
call fcn.00411f01
push eax
push 2
push ebx
call edi
push dword [ebp - 4]
push dword [ebp + 0xc]
push 0x4f43c8
push dword [ebp + 8]
call fcn.004492b5
add esp, 0x10
mov ecx, esi
call fcn.00402907
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x46db7f
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 0x46dc06
push esi
call fcn.004ab72b
mov edi, eax
pop ecx
test edi, edi
jne 0x46dbbe
push 8
pop esi
push edi
call fcn.004af6b2
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 0x46dc06
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x4f2254
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x46dc0f
cmp dword [ebp - 0x10], 0
je 0x46dc0f
mov eax, dword [ebp - 8]
test ebx, ebx
je 0x46dbf8
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x46dc0f
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
jmp 0x46dc0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
jmp 0x46dbb1