joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d008
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x58
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x44d01b
xor eax, eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x44d04f
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0045c62f
test al, al
jne 0x44d07e
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.00437406
push 0x4cedd8
lea eax, [ebp - 0x58]
push eax
call fcn.00466f9a
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44d07e
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.0043731b
push 0x4cedc8
lea eax, [ebp - 0x54]
jmp 0x44d049
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x44d811
Capabilities:
Get common file path

Disassembly:
push 0x84
mov eax, 0x4ab121
call fcn.00466ef9
mov eax, dword [ebp + 8]
and dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], eax
push 1
lea eax, [ebp - 0x45]
push eax
lea ecx, [ebp - 0x44]
call fcn.0044a32b
and dword [ebp - 4], 0
mov esi, 0x104
lea eax, [ebp - 0x58]
push esi
lea ecx, [ebp - 0x44]
push eax
call fcn.0044d7f6
cmp dword [ebp + 0xc], 1
jne 0x44d8b7
mov ecx, dword [eax]
mov byte [ebp - 4], 1
mov byte [eax + 4], 1
call fcn.00407e29
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x58]
inc bl
mov byte [ebp - 4], 0
call fcn.0040aa24
test bl, bl
je 0x44d89b
lea ecx, [ebp - 0x78]
call fcn.00435bce
push 0x4d1e9c
lea eax, [ebp - 0x78]
push eax
call fcn.00466f9a
push 1
lea eax, [ebp - 0x45]
push eax
push str.sysnative
lea ecx, [ebp - 0x90]
call fcn.0040921c
mov byte [ebp - 4], 2
jmp 0x44d908
cmp dword [ebp + 0xc], 2
jne 0x44d928
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.00407e29
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x58]
inc bl
mov byte [ebp - 4], 0
call fcn.0040aa24
test bl, bl
jne 0x44d885
push 1
lea eax, [ebp - 0x45]
push eax
push str.syswow64
lea ecx, [ebp - 0x90]
call fcn.0040921c
mov byte [ebp - 4], 4
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0x44]
call fcn.00422ed4
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call fcn.004016c0
jmp 0x44d95d
mov ecx, dword [eax]
mov byte [ebp - 4], 5
mov byte [eax + 4], 1
call fcn.00407e29
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x58]
inc bl
mov byte [ebp - 4], 0
call fcn.0040aa24
test bl, bl
jne 0x44d885
push 1
push 0x4b2194
lea ecx, [ebp - 0x44]
call fcn.0044a353
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.0044af35
lea ecx, [ebp - 0x44]
call fcn.004016c0
mov eax, dword [ebp - 0x4c]
call fcn.00466f7c
ret
Function at 0x44f1bc
Capabilities:
Check if file exists

Disassembly:
push 0xd4
mov eax, 0x4ab556
call fcn.00466ef9
and dword [ebp - 4], 0
mov bl, 0x10
test byte [ebp + 0x3c], bl
je 0x44f214
lea ecx, [ebp + 8]
call fcn.0043d4b6
test al, al
je 0x44f214
push dword [ebp + 0x3c]
lea eax, [ebp + 8]
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 1
push eax
call fcn.0040914f
call fcn.0044dccb
add esp, 0x38
mov bl, al
lea ecx, [ebp + 8]
call fcn.004016c0
mov al, bl
jmp 0x44f376
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 1
lea eax, [ebp + 8]
push eax
call fcn.0040914f
call fcn.00449a99
add esp, 0x34
cmp eax, 0xffffffff
je 0x44f253
test byte [ebp + 0x3c], 4
je 0x44f241
test bl, al
je 0x44f24b
test byte [ebp + 0x3c], 8
je 0x44f24f
test bl, al
je 0x44f24f
mov bl, 1
jmp 0x44f205
xor bl, bl
jmp 0x44f205
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
cmp edi, 2
je 0x44f36c
cmp edi, 3
je 0x44f36c
cmp edi, 5
jne 0x44f32d
lea ecx, [ebp - 0xa4]
call fcn.00449345
or dword [ebp - 0xa8], 0xffffffff
lea eax, [ebp - 0xa4]
push eax
sub esp, 0x34
mov ecx, esp
mov dword [ebp - 0xac], esp
push 1
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.0040914f
call fcn.0044e631
add esp, 0x38
push eax
lea ecx, [ebp - 0xa8]
call fcn.004204e9
cmp dword [ebp - 0xa8], 0xffffffff
je 0x44f30a
test byte [ebp + 0x3c], 4
je 0x44f2d6
test byte [ebp - 0xa4], bl
je 0x44f2e4
test byte [ebp + 0x3c], 8
je 0x44f2e8
test byte [ebp - 0xa4], bl
je 0x44f2e8
mov bl, 1
jmp 0x44f2ea
xor bl, bl
lea ecx, [ebp - 0xa8]
call fcn.0041fcc9
lea ecx, [ebp - 0x44]
call fcn.004016c0
lea ecx, [ebp - 0x78]
call fcn.004016c0
jmp 0x44f205
call esi
lea ecx, [ebp - 0xa8]
mov edi, eax
call fcn.0041fcc9
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.004016c0
lea ecx, [ebp - 0x78]
call fcn.004016c0
test byte [ebp + 0x3c], 0x20
je 0x44f24f
push 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xe0]
call fcn.004372cd
push 1
push edi
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.004373a8
push 0x4cedc8
lea eax, [ebp - 0x64]
push eax
call fcn.00466f9a
lea ecx, [ebp + 8]
call fcn.004016c0
xor al, al
call fcn.00466f7c
ret
Function at 0x454624
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x1c], 8
jb 0x45462f
mov ecx, dword [ecx + 8]
jmp 0x454632
add ecx, 8
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x454c14
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x454c2a
mov dword [ebp + 0xc], 4
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x454c5f
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.0043731b
push 0x4cedc8
lea eax, [ebp - 0x54]
push eax
call fcn.00466f9a
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x454c67
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
cmp dword [ebp + 0xc], 0xffffffff
push esi
mov esi, ecx
jne 0x454c7d
mov dword [ebp + 0xc], 1
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x454cb2
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.0043731b
push 0x4cedc8
lea eax, [ebp - 0x54]
push eax
call fcn.00466f9a
mov eax, dword [ebp + 0xc]
pop esi
leave
ret 8

Function at 0x454cba
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x58
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x454cce
push 4
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x454d02
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.0045c62f
test al, al
jne 0x454d31
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x58]
call fcn.00437406
push 0x4cedd8
lea eax, [ebp - 0x58]
push eax
call fcn.00466f9a
push 0
lea ecx, [ebp + 8]
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x454d31
push 1
add esi, 0xc
push esi
lea ecx, [ebp - 0x54]
call fcn.0043731b
push 0x4cedc8
lea eax, [ebp - 0x54]
jmp 0x454cfc
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x454ecd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x138
lea ebp, [esp - 4]
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x138], eax
push 0xc
mov eax, 0x4ac643
call fcn.00466e90
mov esi, dword [ebp + 0x144]
xor ebx, ebx
push 0x103
lea eax, [ebp + 0x35]
push ebx
mov dword [ebp - 0x18], ebx
push eax
mov byte [ebp + 0x34], bl
call fcn.00468220
add esp, 0xc
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x454f9c
cmp dword [ebp + 0x148], 1
mov dword [ebp - 0x18], 0x104
mov eax, str.CommonFilesDir
je 0x454f49
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp + 0x34]
push ecx
push ebx
push ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp]
mov dword [ebp], 0x4b4e7c
mov dword [ebp + 0x2c], 0x4b4e74
call fcn.0041c841
push 0x4b2194
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0044a3a8
lea ecx, [ebp]
call fcn.00454de5
push 1
lea eax, [ebp]
jmp 0x454fce
push ebx
lea eax, [ebp - 0xd]
push eax
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp]
mov dword [ebp], 0x4b4e7c
mov dword [ebp + 0x2c], 0x4b4e74
call fcn.0041c841
push 1
push 0x4b2194
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0044a3a8
push eax
mov ecx, esi
call fcn.00437291
lea ecx, [ebp]
call fcn.004016c0
lea ecx, [ebp - 0x14]
call fcn.00447661
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x138]
xor ecx, ebp
call fcn.00466e81
add ebp, 0x13c
leave
ret
Function at 0x45b59a
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push 8
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45b617
call esi
cmp eax, 0x3f0
jne 0x45b5fd
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x45b610
push 1
push dword [ebp - 0x10]
call fcn.0045b579
pop ecx
pop ecx
jmp 0x45b642
cmp eax, ebx
jne 0x45b617
push ebx
jmp 0x45b604
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x45b636
call esi
cmp eax, 0x7a
je 0x45b650
push ebx
push dword [ebp - 0x10]
call fcn.0045b579
pop ecx
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00466e81
leave
ret
push dword [ebp - 0x18]
call fcn.00468137
pop ecx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x45b686
push ebx
push dword [ebp - 0x10]
call fcn.0045b579
pop ecx
pop ecx
push esi
mov bl, al
call fcn.004666eb
pop ecx
mov al, bl
jmp 0x45b641
lea eax, [ebp - 0x20]
push eax
xor eax, eax
cmp byte [ebp + 8], bl
push ebx
push ebx
sete al
push ebx
push ebx
push ebx
push ebx
dec eax
and eax, 0xfffffffd
add eax, 0x223
push eax
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x45b66e
xor edi, edi
mov byte [ebp - 0x1c], bl
cmp dword [esi], ebx
jbe 0x45b6f3
lea eax, [esi + 4]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x45b6e0
add dword [ebp - 0x14], 8
inc edi
cmp edi, dword [esi]
jb 0x45b6c3
jmp 0x45b6f3
cmp byte [ebp + 0xc], bl
je 0x45b6ef
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0x1c], bl
jne 0x45b6f3
mov byte [ebp - 0x1c], 1
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x1c]
jmp 0x45b66f
Function at 0x45b7ee
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x74]
cmp eax, 0x7530
jbe 0x45b826
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x5c], eax
xor eax, eax
mov dword [esi + 0x64], ecx
mov ecx, dword [esi + 0x6c]
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x6c], eax
call edi
mov dword [esi + 0x74], eax
mov ecx, dword [esi + 0x64]
test ecx, ecx
jne 0x45b832
mov eax, dword [esi + 0x5c]
jmp 0x45b879
push ebx
push ebp
push 0xa
xor eax, eax
pop edi
xor ebp, ebp
test eax, eax
jne 0x45b877
or eax, 0xffffffff
xor edx, edx
div edi
mov ebx, dword [esi + 0x5c]
cmp ebx, eax
jbe 0x45b857
shr ebx, 1
shr ecx, 1
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x64], ecx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
imul eax, edi
xor edx, edx
div ecx
xor edx, edx
imul eax, eax, 0x3e8
div edi
imul edi, edi, 0xa
inc ebp
cmp ebp, 3
jb 0x45b83b
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x45c8b2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x7b8]
sub esp, 0x838
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp + 0x7b4], eax
mov eax, dword [ebp + 0x7cc]
push ebx
mov ebx, dword [ebp + 0x7c8]
push esi
push edi
mov edi, dword [ebp + 0x7c0]
mov esi, ecx
mov dword [ebp - 0x80], eax
call fcn.0041400d
cmp eax, 1
jne 0x45c967
and dword [ebp - 0x74], 0
lea eax, [ebp - 0x74]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x45c95f
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0
push str.ProxyEnable
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45c936
and dword [ebp - 0x7c], 0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push str.AutoConfigURL
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x824
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45c95f
mov byte [ebp - 0x70], 0
lea ecx, [ebp - 0x74]
call fcn.00447661
push dword [ebp + 0x7d0]
push dword [ebp - 0x80]
push ebx
push dword [ebp + 0x7c4]
push edi
call fcn.0045b965
add esp, 0x14
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 4], eax
mov al, cl
mov ecx, dword [ebp + 0x7b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466e81
add ebp, 0x7b8
leave
ret 0x14

Function at 0x45e5f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
je 0x45e611
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi], eax
lea edi, [esi + 0x70]
push edi
push ebx
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.0045d7f6
add esp, 0x18
test eax, eax
jne 0x45e639
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x78], eax
xor al, al
jmp 0x45e6ca
push dword [edi]
call fcn.00468137
pop ecx
lea ecx, [esi + 0x6c]
push eax
call fcn.004474fd
push ebx
call fcn.004666eb
mov eax, dword [esi + 0x6c]
push edi
push eax
push ebx
push ebx
push 2
push dword [esi + 0x10]
call fcn.0045d7f6
add esp, 0x1c
test eax, eax
je 0x45e629
push ebx
lea eax, [ebp - 4]
push eax
push 4
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
push edi
push dword [edi]
push dword [esi + 0x6c]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test byte [ebp + 0x10], 1
jne 0x45e6b0
mov eax, dword [esi + 0xc]
push ebx
push dword [ebp + 8]
push 1
push 1
push 0x10001
push eax
call fcn.0045da46
add esp, 0x18
test eax, eax
je 0x45e629
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x45e6c8
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi]
mov dword [esi], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x45f9b2
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov ebx, ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
test eax, eax
jne 0x45f9d5
xor al, al
jmp 0x45fa71
push eax
call fcn.00445b80
pop ecx
push eax
push dword [ebp - 4]
mov dword [ebx + 0x40], eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x45f9ce
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4b2194
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45f9ce
push esi
mov esi, dword [ebp - 0xc]
push edi
push 0xd
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea edi, [ebx + 4]
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45fa6d
mov esi, dword [ebp - 4]
shr esi, 2
xor ecx, ecx
push 4
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebx + 0x3c], esi
neg ecx
or ecx, eax
push ecx
call fcn.00445b80
mov dword [ebx + 0x38], eax
xor eax, eax
pop ecx
cmp dword [ebx + 0x3c], eax
jbe 0x45fa6d
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx + 0x38]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x45fa5b
pop edi
mov al, 1
pop esi
pop ebx
leave
ret 4

Function at 0x4630a1
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x4630d3
xor eax, eax
jmp 0x46316d
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00445b80
pop ecx
push 0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 4]
jne 0x46315e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi + 0x3c]
call fcn.004625ff
lea ecx, [esi + 0x24]
call fcn.00461aae
push 0x4c1c72
mov ecx, esi
call fcn.00408ad8
mov byte [ebx + edi], 0
mov ecx, esi
mov dword [esi + 0x54], ebx
call fcn.004608c2
push eax
push 0
mov ecx, esi
call fcn.00460a36
test eax, eax
je 0x46315e
call fcn.004608c2
push eax
push 9
mov ecx, esi
call fcn.00460a36
test eax, eax
je 0x46315e
push esi
call fcn.00463028
test eax, eax
jne 0x463162
xor eax, eax
jmp 0x46316c
push ebx
call fcn.004667ea
xor eax, eax
pop ecx
inc eax
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x464b20
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4ae0c8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4db020]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [esp + 0x2c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [esp + 0x40], 2
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x464c08
push 0
push 0
push 0
push 2
push 0
push esi
mov dword [esp + 0x44], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x464bfc
push 0
push 0
push 0
push 4
push ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x464c0c
mov ecx, dword [esp + 0x30]
push ecx
push 0
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push edi
mov ecx, ebp
call fcn.004648b0
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x464bd4
push edi
call eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x464be4
push ebx
call edi
push esi
call edi
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 8
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x464c08
push esi
call eax
xor al, al
jmp 0x464be6
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x464c1c
push ebx
call edi
push esi
call edi
xor al, al
jmp 0x464be6

Function at 0x466e81
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4db020]
jne 0x466e8b
repz ret
jmp fcn.0047127c
Function at 0x485d86
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0046f836
and dword [ebp - 4], 0
cmp dword [0x4e1544], 0
mov ebx, eax
jne 0x485e37
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x485ee8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x485ee8
push eax
call fcn.0046f7c4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4e1544], eax
call esi
push eax
call fcn.0046f7c4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4e1548], eax
call esi
push eax
call fcn.0046f7c4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4e154c], eax
call esi
push eax
call fcn.0046f7c4
pop ecx
mov dword [0x4e1554], eax
test eax, eax
je 0x485e37
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046f7c4
pop ecx
mov dword [0x4e1550], eax
mov eax, dword [0x4e1550]
cmp eax, ebx
je 0x485e8f
cmp dword [0x4e1554], ebx
je 0x485e8f
push eax
call fcn.0046f83f
push dword [0x4e1554]
mov esi, eax
call fcn.0046f83f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x485e8f
test edi, edi
je 0x485e8f
call esi
test eax, eax
je 0x485e86
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x485e86
test byte [ebp - 0xc], 1
jne 0x485e8f
or dword [ebp + 0x10], 0x200000
jmp 0x485ec8
mov eax, dword [0x4e1548]
cmp eax, ebx
je 0x485ec8
push eax
call fcn.0046f83f
pop ecx
test eax, eax
je 0x485ec8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x485ec8
mov eax, dword [0x4e154c]
cmp eax, ebx
je 0x485ec8
push eax
call fcn.0046f83f
pop ecx
test eax, eax
je 0x485ec8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e1544]
call fcn.0046f83f
pop ecx
test eax, eax
je 0x485ee8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x485eea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49e8a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae426
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4db020]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
lea ecx, [ebp - 0x5d]
call fcn.004017e0
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401890
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x94]
push ecx
call fcn.0049e5d0
mov dword [ebp - 0x98], eax
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp - 0x98]
call fcn.004018f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [ebp - 0x50]
call fcn.00401fd0
lea ecx, [ebp - 0x94]
call fcn.00401640
movzx edx, byte [0x4e166d]
test edx, edx
jne 0x49e9d3
xor eax, eax
mov word [ebp - 0x54], ax
mov dword [ebp - 0x58], 0
push 0
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.00402010
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 0x58]
push ecx
push 2
lea edx, [ebp - 0x54]
push edx
lea ecx, [ebp - 0x50]
call fcn.00402010
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49e99d
cmp dword [ebp - 0x58], 2
jne 0x49e99d
movzx eax, word [ebp - 0x54]
xor ecx, ecx
cmp eax, 0xfeff
sete cl
mov byte [0x4e166d], cl
movzx edx, byte [0x4e166d]
test edx, edx
jne 0x49e9cc
mov eax, 0xfeff
mov word [ebp - 0x5c], ax
push 0
lea ecx, [ebp - 0x10]
push ecx
push 2
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x50]
call fcn.00402010
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [0x4e166d], 1
push 2
push 0
push 0
lea ecx, [ebp - 0x50]
call fcn.00402010
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x44]
call fcn.004017a0
shl eax, 1
push eax
lea ecx, [ebp - 0x48]
call fcn.004018f0
push eax
lea ecx, [ebp - 0x50]
call fcn.00402010
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x50]
call fcn.00401ff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401640
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00466e81
mov esp, ebp
pop ebp
ret 4