joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048df
Capabilities:
Get common file path

Disassembly:
mov eax, 0x45f39b
call fcn.0043c280
sub esp, 0x260
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
mov esi, 0x104
pop ebx
cmp dword [ebp + 0xc], ebx
jne 0x40498a
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40498a
push str.GetSystemWindowsDirectoryW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x4764c4], eax
je 0x40498a
lea ecx, [ebp - 0x26c]
push esi
push ecx
call eax
test eax, eax
je 0x40498a
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x26c]
mov edi, 0x4675b8
mov esi, 0x4675b0
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.00401779
push 0x4764a4
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.00404b40
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401cec
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x404a05
lea eax, [ebp - 0x26c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4049b2
lea ecx, [ebp - 0x30]
call fcn.0040475d
lea eax, [ebp - 0x30]
push 0x46a320
push eax
call fcn.0043c99a
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x26c]
mov edi, 0x4675b8
mov esi, 0x4675b0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.00401779
push 0x4764a4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.00404b40
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401cec
and byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x3c]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406e39
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, ecx
mov eax, dword [esi]
movzx ecx, word [eax + 0x48]
cmp ecx, dword [ebp + 8]
jne 0x406e57
mov ax, word [eax + 0x4e]
cmp ax, 0xffff
jne 0x406e98
lea eax, [ebp - 0x48]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x406e92
lea eax, [ebp - 0x48]
push eax
call fcn.0043d14e
pop ecx
lea ecx, [ebp - 0x20]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x406e9d
mov eax, dword [esi]
mov cx, word [ebp - 0x20]
mov word [eax + 0x4e], cx
mov eax, dword [esi]
mov ax, word [eax + 0x4e]
pop esi
leave
ret 4
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x406e92
xor ax, ax
jmp 0x406e98
Function at 0x4120ab
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, ecx
push edi
and byte [esi + 0xc], 0
and byte [esi + 0xd], 0
lea edi, [esi + 0x4a]
push edi
call fcn.0041214f
test al, al
je 0x4120d1
mov ax, word [edi]
mov byte [esi + 0xc], 1
mov word [esi + 0x48], ax
jmp 0x41214a
mov ax, word [esp + 0xc]
test ax, ax
jne 0x4120ed
cmp dword [esi + 0x44], 4
jne 0x4120ed
mov ecx, esi
lea edi, [esi + 0x48]
call fcn.00412236
jmp 0x4120f0
lea edi, [esi + 0x48]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041214f
test al, al
je 0x412105
mov byte [esi + 0xd], 1
jmp 0x41214a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041214f
test al, al
jne 0x41214a
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041214f
test al, al
jne 0x41214a
call fcn.0042e6c2
push edi
mov ecx, esi
mov word [edi], ax
call fcn.0041214f
test al, al
jne 0x41214a
mov ax, word [esi + 0x4c]
mov word [edi], ax
pop edi
pop esi
ret 4

Function at 0x413bde
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x413c23
mov eax, dword [ebp + 8]
test eax, eax
je 0x413bf8
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413c5d
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413ad9
lea eax, [ebp - 0x4c]
push 0x46c670
push eax
call fcn.0043c99a
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413c5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x413c5d
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00413a12
lea eax, [ebp - 0x48]
push 0x46c538
push eax
call fcn.0043c99a
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x413f57
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4610e8
call fcn.0043c280
sub esp, 0x28
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x34]
lea esi, [edi + 4]
push eax
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.00403a0c
mov eax, dword [eax + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
jne 0x413f8f
mov eax, 0x467588
push eax
push ebx
push str.AllUsers
push str.Startup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
je 0x413fb2
cmp byte [edi + 0x258], bl
sete al
cmp al, bl
jne 0x413fbe
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
cmp byte [eax + 0x1b], bl
je 0x413fc0
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
pop edi
neg bl
sbb ebx, ebx
pop esi
and ebx, 0x80042002
mov dword fs:[0], ecx
mov eax, ebx
pop ebx
leave
ret
Function at 0x4175e2
Capabilities:
Get disk information

Disassembly:
mov eax, 0x461804
call fcn.0043c280
sub esp, 0x50
push esi
mov esi, ecx
lea eax, [ebp - 0x5c]
push edi
lea ecx, [esi + 4]
push eax
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0040358c
and dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
push 0
push ecx
mov ecx, eax
call fcn.0040215f
mov eax, dword [eax + 8]
test eax, eax
jne 0x417616
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.0040125c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.0040125c
cmp edi, 2
je 0x417662
cmp edi, 5
je 0x417662
cmp edi, 3
je 0x41765e
cmp edi, 4
je 0x41765e
cmp edi, 6
je 0x41765e
mov ecx, esi
call fcn.0041743e
dec ax
neg ax
sbb eax, eax
neg eax
jmp 0x417664
xor al, al
jmp 0x417664
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4191ff
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov eax, 0x461c00
call fcn.0043c280
sub esp, 0x4c
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov esi, dword [edi + 0xa8]
cmp esi, eax
je 0x41930a
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x419248
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
push edi
push str..debug
call fcn.0041935a
pop ecx
test eax, eax
pop ecx
je 0x419274
cmp dword [eax + 0xc], esi
jne 0x419274
mov ecx, dword [eax + 0x14]
mov edx, dword [edi + 0xac]
mov dword [ebp + 0xc], edx
mov edi, ecx
lea eax, [ecx + ebx]
mov dword [ebp + 0x10], edx
jmp 0x4192c7
push edi
push str..rdata
call fcn.0041935a
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41929a
push edi
push str..text
call fcn.0041935a
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x41930a
mov edi, dword [edi + 0xac]
push 0x1c
mov dword [ebp + 0x10], edi
mov eax, edi
xor edx, edx
pop edi
div edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x41930a
sub esi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + esi]
mov edi, ecx
lea eax, [ecx + ebx]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 0x18]
jbe 0x419315
cmp dword [ebp + 8], 0
je 0x419315
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [ebp - 0x3c]
xor edx, edx
mov esi, eax
mov eax, edi
div dword [ebp - 0x3c]
imul esi, dword [ebp - 0x3c]
add edx, dword [ebp + 0x10]
push edx
push esi
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x41930e
xor eax, eax
jmp 0x41934b
mov dword [ebp - 0x10], eax
sub eax, esi
add eax, edi
mov edx, dword [ebp + 0xc]
test edx, edx
jbe 0x419334
add eax, 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esi, ecx
cmp esi, dword [ebp + 0x14]
jbe 0x41932e
add dword [ebp - 0x14], ecx
add eax, 0x1c
dec edx
jne 0x41931f
cmp dword [ebp - 0x10], 0
je 0x419348
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x419348
push dword [ebp - 0x10]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x419612
Capabilities:
Create directory

Disassembly:
mov eax, 0x461c38
call fcn.0043c280
sub esp, 0x3c
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0041a5e3
mov ecx, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004196d2
mov eax, dword [eax + 0x10]
cmp eax, ebx
jne 0x419649
xor esi, esi
jmp 0x419652
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.0041a47b
push 0x5c
inc esi
pop edi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.0041ab37
cmp dword [0x468000], eax
je 0x4196b5
lea esi, [eax + 1]
push ebx
push esi
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x467ff0
mov dword [ebp - 0x18], 0x467fe8
call fcn.0041a257
push ebx
mov dword [ebp - 0x2c], vtable.zpath.0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x2c]
call fcn.0041a47b
mov dword [ebp - 0x10], edi
jmp 0x419661
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0041a668
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x41b6ab
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41b6bf
push 1
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41b6f3
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0043890e
test al, al
jne 0x41b726
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413ad9
lea eax, [ebp - 0x4c]
push 0x46c670
push eax
call fcn.0043c99a
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b726
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413799
lea eax, [ebp - 0x48]
push 0x46c538
push eax
call fcn.0043c99a
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x41b72e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41b742
push 0x26
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41b776
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0043890e
test al, al
jne 0x41b7a9
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413ad9
lea eax, [ebp - 0x4c]
push 0x46c670
push eax
call fcn.0043c99a
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b7a9
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413799
lea eax, [ebp - 0x48]
push 0x46c538
push eax
call fcn.0043c99a
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x41b7b1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41b7c5
push 6
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41b7f9
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0043890e
test al, al
jne 0x41b82c
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413ad9
lea eax, [ebp - 0x4c]
push 0x46c670
push eax
call fcn.0043c99a
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b82c
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413799
lea eax, [ebp - 0x48]
push 0x46c538
push eax
call fcn.0043c99a
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x4200d5
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x4627a8
call fcn.0043c280
sub esp, 0x14
push esi
mov esi, ecx
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0xd]
push 0
push eax
mov dword [esi], 0x467594
mov dword [esi + 0x20], 0x46758c
call fcn.00401c77
lea eax, [ebp - 0x20]
push 0x105
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401822
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.00401e7b
push dword [eax]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401aab
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x42013f
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040125c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x28

Function at 0x420163
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x42017f
mov eax, dword [esi + 8]
test eax, eax
jne 0x420178
mov eax, 0x467588
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, esi
call fcn.0040125c
pop esi
ret
Function at 0x424706
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x462f17
call fcn.0043c280
sub esp, 0x23c
push esi
push edi
xor esi, esi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x246]
mov word [ebp - 0x248], si
mov dword [ebp - 0x14], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10], esi
test byte [ebp + 0xf], 0x80
push 1
mov eax, 0x20019
pop edi
mov dword [ebp - 4], edi
je 0x424752
and byte [ebp + 0xf], 0x7f
mov eax, 0x20119
lea ecx, [ebp - 0x10]
push ecx
push eax
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x424799
cmp dword [ebp + 0xc], edi
mov dword [ebp - 0x18], 0x208
mov eax, str.CommonFilesDir
je 0x424782
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x248]
push ecx
push esi
push esi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
lea eax, [ebp - 0x248]
mov ebx, 0x468114
mov edi, 0x46810c
test eax, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x20], edi
lea eax, [ebp - 0x248]
jne 0x4247bf
mov eax, 0x47e390
lea ecx, [ebp + 0xf]
push esi
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00401779
push 0x4764a4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.00424828
mov esi, dword [ebp + 8]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.00401cec
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0040125c
cmp dword [ebp - 0x10], 0
pop ebx
je 0x424818
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x424818
push dword [ebp - 0x10]
call eax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x424e5b
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x250
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0xc], 0
je 0x424ed2
mov eax, dword [esi + 8]
mov ebx, 0x4675fc
test eax, eax
jne 0x424e7a
mov eax, ebx
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x424ed2
mov eax, dword [esi + 8]
mov ecx, ebx
test eax, eax
je 0x424e98
mov ecx, eax
mov eax, dword [esi + 8]
push edi
test eax, eax
mov edi, ebx
je 0x424ea4
mov edi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [esi + 8]
pop edi
test esi, esi
jne 0x424ebf
mov esi, ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x424ed2
push ebp
call eax
pop esi
pop ebp
pop ebx
add esp, 0x250
ret
Function at 0x425233
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
mov dword [ebx], esi
mov dword [eax], esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x4252cc
push edi
call fcn.0043da25
push edi
push esi
push eax
mov dword [ebp + 0xc], eax
call fcn.0043d1f0
add esp, 0x10
push dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4252c3
lea eax, [ebp - 0x3c]
push 0x34
mov dword [ebp + 8], eax
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.0043d1f0
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp + 8]
push eax
push 0x4764a4
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4252c3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
push dword [ebp + 0xc]
call fcn.0043d93c
pop ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 0xc
Function at 0x42786c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov eax, dword [eax]
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x42799c
cmp byte [ebp + 0xc], bl
jne 0x427920
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 1]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x42799c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 0xc]
test eax, eax
je 0x427992
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.0043c620
mov eax, esp
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
mov word [eax], bx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push dword [ebp + 8]
call fcn.0043c64f
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.0042841e
push dword [ebp + 0xc]
jmp 0x427981
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [esi + 3]
push eax
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x42799c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ebx
push ecx
mov eax, dword [eax]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42798f
mov esi, dword [ebp + 0xc]
mov dword [ebp + 0xc], esi
cmp word [esi], 0xfeff
jne 0x42796b
lea eax, [esi + 2]
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
call fcn.0043c64f
pop ecx
mov ecx, dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0042841e
push esi
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, 1
jmp 0x42799e
push dword [ebp + 0xc]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42825f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov byte [ebp - 1], bl
je 0x4282ce
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x408]
push 0x400
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jb 0x4282b1
movzx eax, byte [ebp - 0x408]
cmp eax, 0xffffffff
jne 0x4282b1
movzx eax, byte [ebp - 0x407]
cmp eax, 0xfffffffe
jne 0x4282b1
mov byte [ebp - 1], 1
jmp 0x4282ce
xor eax, eax
cmp dword [ebp - 8], ebx
jbe 0x4282ce
cmp byte [ebp - 1], bl
jne 0x4282ce
cmp byte [ebp + eax - 0x408], bl
sete byte [ebp - 1]
inc eax
cmp eax, dword [ebp - 8]
jb 0x4282b8
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x429f77
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esp + 8], 0
je 0x429f93
mov ecx, esi
call fcn.00429f97
pop esi
ret 4

Function at 0x42ab9c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x463625
call fcn.0043c280
sub esp, 0x30
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov ebx, 0x467594
and dword [esi], 0
mov dword [esi + 4], eax
lea ecx, [esi + 8]
lea eax, [ebp - 0xd]
mov edi, 0x46758c
push 0
push eax
mov dword [ebp - 0x14], esi
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401c77
and dword [ebp - 4], 0
lea ecx, [esi + 0x30]
lea eax, [ebp - 0xe]
push 0
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401c77
lea ecx, [esi + 0x58]
lea eax, [ebp - 0xd]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401c77
lea ecx, [esi + 0x80]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 0x20], edi
call fcn.00401c77
lea ecx, [esi + 0xa8]
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 3
mov dword [ecx], ebx
xor ebx, ebx
push ebx
push eax
mov dword [ecx + 0x20], edi
call fcn.00401c77
mov eax, dword [ebp + 8]
and byte [esi + 0xd8], bl
mov byte [ebp - 4], 4
lea edi, [eax + 4]
lea eax, [ebp - 0x3c]
push eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.004064c1
mov eax, dword [eax + 0xc]
lea ecx, [ebp - 0x3c]
mov dword [ebp + 8], eax
call fcn.0040125c
cmp dword [ebp + 8], ebx
setne al
mov byte [esi + 0xd9], al
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe0], ebx
push esi
lea ecx, [esi + 0xe4]
mov byte [ebp - 4], 6
call fcn.0042acd6
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 7
call dword [eax + 0x2c]
mov al, byte [eax + 0x16]
lea ecx, [esi + 0x154]
push eax
push esi
call fcn.0042ae0b
push esi
lea ecx, [esi + 0x1c4]
mov byte [ebp - 4], 8
call fcn.0042ae84
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x230], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x42b6cb
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42b6e6
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret