joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457b78
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x457b81
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x457d9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404d20
mov eax, esi
call fcn.00404d20
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.004051fc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x457d81
mov eax, dword [ebp - 4]
call fcn.00402b48
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x457d7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, ebx
call fcn.004051fc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x457d61
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x457dac
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x457cab
push 0x457dd0
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
mov edx, 4
call fcn.0040b990
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.0040b990
push dword [ebp - 0x24]
push 0x457dec
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004050bc
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004051fc
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x457cab
cmp dword [ebp - 0xc], 1
jbe 0x457cab
mov ebx, dword [ebp - 0x18]
mov eax, ebx
call fcn.0040c97c
mov ecx, eax
mov eax, edi
mov edx, ebx
call fcn.00404e10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x457e00
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x457d61
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
call fcn.004081ec
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov di, word [eax + 8]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
call fcn.004081ec
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0x18]
mov ax, word [eax + 0xc]
mov word [ebp - 0x10], ax
lea edx, [ebp - 0x28]
movzx eax, bx
call fcn.0040b87c
push dword [ebp - 0x28]
push 0x457e0c
lea edx, [ebp - 0x2c]
movzx eax, di
call fcn.0040b87c
push dword [ebp - 0x2c]
push 0x457e0c
lea edx, [ebp - 0x30]
movzx eax, word [ebp - 0xe]
call fcn.0040b87c
push dword [ebp - 0x30]
push 0x457e0c
lea edx, [ebp - 0x34]
movzx eax, word [ebp - 0x10]
call fcn.0040b87c
push dword [ebp - 0x34]
mov eax, esi
mov edx, 7
call fcn.004050bc
mov eax, dword [esi]
mov edx, 0x457e18
call fcn.00405148
jne 0x457d61
mov eax, esi
call fcn.00404d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457d81
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.00402b78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457da3
lea eax, [ebp - 0x34]
mov edx, 7
call fcn.00404d44
ret
Function at 0x457fe4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x458046
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004051fc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45801c
and ebx, 0xfffffffe
push ebx
push edi
call sub.kernel32.dll_SetFileAttributesA
mov edx, edi
lea eax, [ebp - 4]
call fcn.00404f18
mov eax, dword [ebp - 4]
call fcn.0040c00c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45804d
lea eax, [ebp - 4]
call fcn.00404d20
ret

Function at 0x458c58
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
mov byte [ebp - 0x15], 0
mov eax, dword [0x4dd598]
mov edx, dword [eax]
call dword [edx + 8]
push 0x458d6c
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x28], eax
push 0x458d78
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
xor eax, eax
push ebp
push 0x458d5f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x458d88
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 4], eax
push 0x458da0
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
push 0x458db8
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x24], eax
push 0x458dc8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 8], eax
push 0x458de4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0xc], eax
push 0x458df4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
push 0x458e04
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x1c], eax
push 0x458e14
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x20], eax
call fcn.00454a74
test al, al
je 0x458d1f
push ebp
call fcn.00458bf8
pop ecx
jmp 0x458d26
push ebp
call fcn.00458abc
pop ecx
mov edx, 0x4583e4
mov eax, dword [0x4dd598]
call fcn.0041f06c
cmp byte [ebp - 0x15], 0
jne 0x458d42
push ebp
call fcn.004584a0
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458d66
cmp dword [ebp - 0x28], 0
je 0x458d5e
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
Function at 0x45a0d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x45a24f
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
lea edx, [ebp - 5]
mov ecx, 1
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
cmp word [esi + 0x19], 0x1f6
jb 0x45a12f
cmp byte [ebp - 5], 0x80
jb 0x45a12f
and byte [ebp - 5], 0x7f
mov byte [ebp - 6], 1
xor edx, edx
mov dl, byte [ebp - 5]
mov eax, ebx
call fcn.004030e0
xor ecx, ecx
mov cl, byte [ebp - 5]
lea edx, [ebx + 1]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
cmp word [esi + 0x19], 0x1f4
jb 0x45a222
cmp byte [esi + 0x3b], 0
je 0x45a192
mov eax, dword [0x4e39ac]
mov edx, dword [esi + 0x37]
call fcn.00405148
je 0x45a181
mov eax, dword [esi + 0x37]
call fcn.0043d5a4
mov eax, 0x4e39ac
mov edx, dword [esi + 0x37]
call fcn.00404d74
xor ecx, ecx
mov cl, byte [ebx]
lea edx, [ebx + 1]
lea eax, [ebx + 1]
call fcn.0043d644
jmp 0x45a1cb
cmp byte [ebx], 0
je 0x45a1cb
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.00404f84
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.0043d9ac
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x45a268
call fcn.00405048
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, 0xff
call fcn.00404fd8
cmp byte [ebp - 6], 0
je 0x45a234
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.00404f84
push dword [ebp - 0x1c]
push 0x45a274
lea ecx, [ebp - 0x120]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0045a0d0
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x20]
call fcn.00404f84
push dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004050bc
mov edx, dword [ebp - 0x18]
mov eax, ebx
mov ecx, 0xff
call fcn.00404fd8
jmp 0x45a234
xor edx, edx
mov dl, byte [ebx]
test edx, edx
jle 0x45a234
lea eax, [ebx + 1]
xor byte [eax], 0x62
inc eax
dec edx
jne 0x45a22d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a256
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.00404d44
ret

Function at 0x45ff88
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov ebp, edx
mov edi, eax
push 0
push 0
push 0xe
push ebp
push edi
call sub.user32.dll_GetDlgItem
push eax
call sub.user32.dll_SendMessageA
mov esi, eax
inc esi
mov eax, ebx
mov edx, esi
call fcn.00405388
mov eax, ebx
call fcn.00405254
push eax
push esi
push 0xd
push ebp
push edi
call sub.user32.dll_GetDlgItem
push eax
call sub.user32.dll_SendMessageA
mov eax, dword [ebx]
call fcn.00404ffc
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.0040529c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x460f00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov al, byte [ebp - 0xe5]
and al, 0x80
cmp al, 0x80
sete al
mov esp, ebp
pop ebp
ret
Function at 0x467ba4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, eax
cmp byte [0x4dd5d8], 0
jne 0x467bf1
xor esi, esi
mov edx, 0x4e4084
mov eax, esi
mov ebx, 8
test al, 1
je 0x467bd7
shr eax, 1
xor eax, 0xedb88320
jmp 0x467bd9
shr eax, 1
dec ebx
jne 0x467bca
mov dword [edx], eax
inc esi
add edx, 4
cmp esi, 0x100
jne 0x467bc3
mov byte [0x4dd5d8], 1
mov eax, dword [esp + 4]
dec eax
test eax, eax
jl 0x467c1e
inc eax
xor esi, esi
mov edx, dword [esp]
movzx edx, byte [edx + esi]
xor edx, edi
and edx, 0xff
mov edx, dword [edx*4 + 0x4e4084]
shr edi, 8
xor edx, edi
mov edi, edx
inc esi
dec eax
jne 0x467bfd
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x46ad08
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x46ad11
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004051ec
mov eax, dword [ebp - 8]
call fcn.004051ec
mov eax, dword [ebp - 0xc]
call fcn.004051ec
xor eax, eax
push ebp
push 0x46af3c
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 8]
call fcn.00429cec
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 8]
call fcn.00404db8
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0xc]
call fcn.00429cec
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0xc]
call fcn.00404db8
lea eax, [ebp - 0x14]
push eax
xor ecx, ecx
mov edx, 0x46af54
mov eax, 0x80000000
call fcn.0042a830
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x14]
call fcn.00429cec
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x14]
call fcn.00404db8
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x44
call fcn.00403614
lea eax, [ebp - 0x74]
xor ecx, ecx
mov edx, 0x10
call fcn.00403614
mov dword [ebp - 0x64], 0x44
mov dword [ebp - 0x38], 1
mov word [ebp - 0x34], 3
lea eax, [ebp - 0x1c]
mov ecx, dword [0x4e3778]
mov edx, 0x46af78
call fcn.00405048
push 0x46af88
push dword [ebp - 4]
push 0x46af98
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 8]
call fcn.0046ac24
push dword [ebp - 0x84]
push 0x46afac
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00405048
mov eax, dword [ebp - 0x8c]
lea edx, [ebp - 0x88]
call fcn.0046ac24
push dword [ebp - 0x88]
lea eax, [ebp - 0x10]
mov edx, 6
call fcn.004050bc
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, 0x46afbc
mov eax, dword [ebp - 0x14]
call fcn.0042a5ec
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x64]
push eax
push 0
push 0
push 0x4000020
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
call fcn.004051fc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x46aef4
xor ebx, ebx
mov eax, dword [ebp - 0x74]
mov esi, eax
push 0x2710
push eax
call sub.user32.dll_WaitForInputIdle
push 0x7d0
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 0x6c]
call fcn.004570fc
test eax, eax
je 0x46aec3
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
call sub.user32.dll_SetWindowPos
push 0xffffffffffffffff
push esi
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
je 0x46aee0
lea eax, [ebp - 0x20]
push eax
push esi
call sub.kernel32.dll_GetExitCodeProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x46af11
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x90]
call fcn.0040f6b0
mov edx, dword [ebp - 0x90]
mov al, 4
call fcn.00456ce0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46af43
lea eax, [ebp - 0x90]
mov edx, 7
call fcn.00404d44
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.00404d44
ret
Function at 0x46c1c4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x46c1cc
push ebx
push esi
mov esi, 0x4e36ac
xor eax, eax
push ebp
push 0x46c44b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov byte [0x4e3954], 1
mov eax, dword [0x4e39b0]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x4e39b4]
mov edx, dword [eax]
call dword [edx + 0x44]
call fcn.00456e1c
call fcn.0046aac0
xor eax, eax
push ebp
push 0x46c41c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4e4054]
call fcn.0045bc88
xor eax, eax
push ebp
push 0x46c3f7
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0045bd54
xor eax, eax
push ebp
push 0x46c3c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x46c272
mov al, 1
call fcn.0046c104
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x46c272
push ebp
call fcn.0046b388
pop ecx
and bl, al
mov eax, dword [esi]
cmp byte [eax + 0x30d], 0
je 0x46c2ae
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x46c293
mov eax, dword [esi]
cmp byte [eax + 0x2ee], 0
je 0x46c29a
xor eax, eax
call fcn.0046c104
mov eax, dword [esi]
cmp byte [eax + 0x30d], 0
je 0x46c2ae
push ebp
call fcn.0046bfb8
pop ecx
and bl, al
test bl, bl
jne 0x46c2c7
mov eax, dword [esi]
test byte [eax + 0x331], 0x10
je 0x46c2c7
mov eax, dword [0x4e3778]
call fcn.00457380
mov eax, dword [esi]
test byte [eax + 0x2f1], 2
je 0x46c34a
cmp byte [ebp - 0xd], 0
jne 0x46c34a
test bl, bl
je 0x46c314
push 0x242040
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, dword [esi]
call fcn.0042b524
mov eax, dword [ebp - 0x14]
call fcn.004051fc
push eax
lea ecx, [ebp - 0x18]
mov dl, 0x90
mov eax, dword [esi]
call fcn.0042b524
mov eax, dword [ebp - 0x18]
call fcn.004051fc
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x46c34a
push 0x242010
lea ecx, [ebp - 0x1c]
xor edx, edx
mov eax, dword [esi]
call fcn.0042b524
mov eax, dword [ebp - 0x1c]
call fcn.004051fc
push eax
lea ecx, [ebp - 0x20]
mov dl, 0x91
mov eax, dword [esi]
call fcn.0042b524
mov eax, dword [ebp - 0x20]
call fcn.004051fc
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [esi]
test byte [eax + 0x331], 0x20
je 0x46c39b
test bl, bl
jne 0x46c39b
lea eax, [ebp - 0x24]
call fcn.0046b17c
mov eax, dword [ebp - 0x24]
call fcn.004051fc
push eax
lea eax, [ebp - 0x28]
call fcn.0045ba24
mov eax, dword [ebp - 0x28]
call fcn.004051fc
push eax
call sub.kernel32.dll_MoveFileA
lea eax, [ebp - 0x30]
call fcn.0046b17c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040c140
mov eax, dword [ebp - 0x2c]
call fcn.0046b204
lea eax, [ebp - 0x34]
call fcn.0045ba24
mov eax, dword [ebp - 0x34]
call fcn.00457fe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c3d0
lea eax, [ebp - 0x38]
call fcn.0045bbd0
mov eax, dword [ebp - 0x38]
call fcn.00457fe4
ret
Function at 0x46ddfc
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
push 0x46dea0
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
test ebx, ebx
je 0x46de65
push 0x46deb0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46de65
mov dword [ebp - 0x44], 0x40
lea eax, [ebp - 0x44]
push eax
call dword [ebp - 4]
test eax, eax
je 0x46de65
mov eax, dword [ebp - 0x3c]
mov dword [edi], eax
mov eax, dword [ebp - 0x38]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 4], eax
jmp 0x46de97
mov dword [ebp - 0x64], 0x20
lea eax, [ebp - 0x64]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
fild qword [ebp - 0x6c]
fistp qword [edi]
wait
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
xor eax, eax
mov dword [ebp - 0x68], eax
fild qword [ebp - 0x6c]
fistp qword [esi]
wait
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ec0c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46ed6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404d20
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.004051fc
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x46ed4f
mov eax, dword [ebp - 4]
call fcn.00402b48
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x46ed48
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46ed2f
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x46ed78
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46ed2f
push 0x46ed9c
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov edx, 4
call fcn.0040b990
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.0040b990
push dword [ebp - 0x20]
push 0x46edb8
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.004050bc
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
call fcn.004051fc
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46ed2f
cmp dword [ebp - 0xc], 1
jbe 0x46ed2f
mov ebx, dword [ebp - 0x14]
mov eax, ebx
call fcn.0040c97c
mov ecx, eax
mov eax, esi
mov edx, ebx
call fcn.00404e10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ed4f
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00402b78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ed71
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404d44
ret
Function at 0x46ee00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004051ec
xor eax, eax
push ebp
push 0x46eed8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404d20
cmp dword [ebp - 4], 0
je 0x46ee50
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x46ee50
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040529c
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004051fc
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46eec2
mov eax, ebx
mov edx, 0x400
call fcn.00405388
mov eax, dword [ebx]
call fcn.00404ffc
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
call fcn.004051fc
push eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x46eeb2
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.00405388
jmp 0x46eeb9
mov eax, ebx
call fcn.00404d20
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46eedf
lea eax, [ebp - 4]
call fcn.00404d20
ret

Function at 0x46eee8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004051ec
mov eax, dword [ebp - 8]
call fcn.004051ec
xor eax, eax
push ebp
push 0x46efbe
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x46ef3a
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x46ef3a
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040529c
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004051fc
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46efa3
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004051fc
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46ef9a
cmp dword [ebp - 0x14], 4
jne 0x46ef9a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46efc5
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d44
ret
Function at 0x46f854
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46f9fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404d20
lea eax, [ebp - 8]
push eax
push 8
call fcn.004534bc
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x46f9e2
xor eax, eax
push ebp
push 0x46f9db
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
mov eax, dword [ebp - 0xc]
call fcn.00402b48
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x46f9bd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x46f9a7
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
dec edi
test edi, edi
jl 0x46f9a7
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x10]
add edx, 4
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [ebp - 0x14], ecx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x10]
add edx, 4
mov eax, dword [edx + eax*4 + 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeNameA
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00405388
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.004051fc
push eax
lea eax, [ebp - 0x18]
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeNameA
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
call fcn.00405388
push dword [esi]
lea ecx, [ebp - 0x20]
mov edx, 0x1f
mov eax, dword [ebp - 0x1c]
call fcn.0046f814
push dword [ebp - 0x20]
push ebp
lea eax, [ebp - 0x24]
call fcn.0046f7c0
pop ecx
push dword [ebp - 0x24]
push 0x46fa14
mov eax, esi
mov edx, 4
call fcn.004050bc
inc ebx
dec edi
jne 0x46f902
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f9c4
mov eax, dword [ebp - 0x10]
call fcn.00402b78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46fa04
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404d44
ret