joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c3c4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
xor edx, edx
mov dword [ebp - 0x2c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45c55b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x457428]
call fcn.0045c100
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x45c53e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov ecx, 2
mov eax, dword [ebp - 0x10]
call fcn.0045c178
test al, al
je 0x45c528
cmp word [ebp - 4], 0x5a4d
jne 0x45c528
push 0
push 0x3c
mov eax, dword [ebp - 0x10]
call fcn.00424608
lea edx, [ebp - 8]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.0045c178
test al, al
je 0x45c528
cmp dword [ebp - 8], 0
je 0x45c528
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.00424608
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, dword [ebp - 0x10]
call fcn.0045c178
test al, al
je 0x45c528
cmp dword [ebp - 0xc], 0x4550
jne 0x45c528
lea edx, [ebp - 0x28]
mov ecx, 0x14
mov eax, dword [ebp - 0x10]
call fcn.0045c178
test al, al
je 0x45c524
test byte [ebp - 0x15], 0x20
je 0x45c524
push 2
push 0
lea edx, [ebp - 0x2c]
mov eax, ebx
call fcn.00457d38
mov eax, dword [ebp - 0x2c]
call fcn.00405324
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x45c51d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x45c56c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x45c502
push 0xa
push 0x45c578
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FindResourceA
test eax, eax
je 0x45c502
mov byte [ebp - 1], 2
jmp 0x45c506
mov byte [ebp - 1], 3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c528
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c545
mov eax, dword [ebp - 0x10]
call fcn.00403f38
ret
Function at 0x45c794
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x45c79d
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 0x45c9c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404e48
mov eax, esi
call fcn.00404e48
test ebx, ebx
je 0x45c9a5
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.00405324
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x45c9a5
mov eax, dword [ebp - 4]
call fcn.0040b9fc
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x45c99e
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.00405324
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x45c985
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x45c9d0
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45c8cf
push 0x45c9f4
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
mov edx, 4
call fcn.0040c240
push dword [ebp - 0x20]
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.0040c240
push dword [ebp - 0x24]
push 0x45ca10
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004051e4
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.00405324
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45c8cf
cmp dword [ebp - 0xc], 1
jbe 0x45c8cf
mov ebx, dword [ebp - 0x18]
mov eax, ebx
call fcn.0040d024
mov ecx, eax
mov eax, edi
mov edx, ebx
call fcn.00404f38
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x45ca24
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45c985
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
call fcn.004085e4
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.004085e4
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.0040c12c
push dword [ebp - 0x28]
push 0x45ca30
lea edx, [ebp - 0x2c]
movzx eax, di
call fcn.0040c12c
push dword [ebp - 0x2c]
push 0x45ca30
lea edx, [ebp - 0x30]
movzx eax, word [ebp - 0xe]
call fcn.0040c12c
push dword [ebp - 0x30]
push 0x45ca30
lea edx, [ebp - 0x34]
movzx eax, word [ebp - 0x10]
call fcn.0040c12c
push dword [ebp - 0x34]
mov eax, esi
mov edx, 7
call fcn.004051e4
mov eax, dword [esi]
mov edx, 0x45ca3c
call fcn.00405270
jne 0x45c985
mov eax, esi
call fcn.00404e48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c9a5
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.00402c04
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45c9c7
lea eax, [ebp - 0x34]
mov edx, 7
call fcn.00404e6c
ret
Function at 0x45cc10
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 0x45cc72
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00405324
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45cc48
and ebx, 0xfffffffe
push ebx
push edi
call sub.kernel32.dll_SetFileAttributesA
mov edx, edi
lea eax, [ebp - 4]
call fcn.00405040
mov eax, dword [ebp - 4]
call fcn.0040c94c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45cc79
lea eax, [ebp - 4]
call fcn.00404e48
ret

Function at 0x45d8f0
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 [0x574138]
call fcn.0047cf50
xor eax, eax
push ebp
push 0x45da2e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x574138]
mov edx, dword [eax]
call dword [edx + 8]
push 0x45da3c
call sub.kernel32.dll_LoadLibraryA
mov dword [ebp - 0x28], eax
push 0x45da48
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
xor eax, eax
push ebp
push 0x45da0f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x45da58
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 4], eax
push 0x45da70
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
push 0x45da88
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x24], eax
push 0x45da98
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 8], eax
push 0x45dab4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0xc], eax
push 0x45dac4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
push 0x45dad4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x1c], eax
push 0x45dae4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x20], eax
call fcn.00459440
test al, al
je 0x45d9cf
push ebp
call fcn.0045d890
pop ecx
jmp 0x45d9d6
push ebp
call fcn.0045d754
pop ecx
mov edx, 0x45d04c
mov eax, dword [0x574138]
call fcn.00421fd0
cmp byte [ebp - 0x15], 0
jne 0x45d9f2
push ebp
call fcn.0045d108
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45da16
cmp dword [ebp - 0x28], 0
je 0x45da0e
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
Function at 0x45eeb4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x45f06a
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 0x45ef16
cmp byte [ebp - 5], 0x80
jb 0x45ef16
and byte [ebp - 5], 0x7f
mov byte [ebp - 6], 1
xor edx, edx
mov dl, byte [ebp - 5]
mov eax, ebx
call fcn.00403180
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 0x45f03d
cmp byte [esi + 0x3b], 0
je 0x45ef79
mov eax, dword [0x57d9b8]
mov edx, dword [esi + 0x37]
call fcn.00405270
je 0x45ef68
mov eax, dword [esi + 0x37]
call fcn.004419b8
mov eax, 0x57d9b8
mov edx, dword [esi + 0x37]
call fcn.00404e9c
xor ecx, ecx
mov cl, byte [ebx]
lea edx, [ebx + 1]
lea eax, [ebx + 1]
call fcn.00441a58
jmp 0x45efcb
cmp byte [ebx], 0
je 0x45efcb
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004050ac
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00441ebc
mov edx, dword [ebp - 0xc]
mov eax, ebx
mov ecx, 0xff
call fcn.00405100
lea eax, [ebp - 0x18]
mov edx, ebx
call fcn.004050ac
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x45f080
call fcn.00405170
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, 0xff
call fcn.00405100
cmp byte [ebp - 6], 0
je 0x45f04f
lea eax, [ebp - 0x1c]
mov edx, ebx
call fcn.004050ac
lea eax, [ebp - 0x1c]
mov edx, 0x45f08c
call fcn.0040512c
mov edx, dword [ebp - 0x1c]
mov eax, ebx
mov ecx, 0xff
call fcn.00405100
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.004050ac
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x124]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0045eeb4
lea edx, [ebp - 0x124]
lea eax, [ebp - 0x24]
call fcn.004050ac
mov edx, dword [ebp - 0x24]
pop eax
call fcn.0040512c
mov edx, dword [ebp - 0x20]
mov eax, ebx
mov ecx, 0xff
call fcn.00405100
jmp 0x45f04f
xor edx, edx
mov dl, byte [ebx]
test edx, edx
jle 0x45f04f
lea eax, [ebx + 1]
xor byte [eax], 0x62
inc eax
dec edx
jne 0x45f048
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f071
lea eax, [ebp - 0x24]
mov edx, 7
call fcn.00404e6c
ret

Function at 0x4652e4
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.004054b0
mov eax, ebx
call fcn.0040537c
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.00405124
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.004053c4
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x466334
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 0x46d058
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 [0x57417c], 0
jne 0x46d0a5
xor esi, esi
mov edx, 0x57e094
mov eax, esi
mov ebx, 8
test al, 1
je 0x46d08b
shr eax, 1
xor eax, 0xedb88320
jmp 0x46d08d
shr eax, 1
dec ebx
jne 0x46d07e
mov dword [edx], eax
inc esi
add edx, 4
cmp esi, 0x100
jne 0x46d077
mov byte [0x57417c], 1
mov eax, dword [esp + 4]
dec eax
test eax, eax
jl 0x46d0d2
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 + 0x57e094]
shr edi, 8
xor edx, edi
mov edi, edx
inc esi
dec eax
jne 0x46d0b1
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x47181c
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x471824
push ebx
push esi
mov esi, 0x57d6b8
xor eax, eax
push ebp
push 0x471aa3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov byte [0x57d960], 1
mov eax, dword [0x57d9bc]
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x57d9c0]
mov edx, dword [eax]
call dword [edx + 0x44]
call fcn.0045b9e4
call fcn.004700fc
xor eax, eax
push ebp
push 0x471a74
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x57e060]
call fcn.00460ec0
xor eax, eax
push ebp
push 0x471a4f
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00460f8c
xor eax, eax
push ebp
push 0x471a21
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x4718ca
mov al, 1
call fcn.0047175c
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x4718ca
push ebp
call fcn.004709d8
pop ecx
and bl, al
mov eax, dword [esi]
cmp byte [eax + 0x30d], 0
je 0x471906
mov eax, dword [esi]
cmp byte [eax + 0x30c], 0
je 0x4718eb
mov eax, dword [esi]
cmp byte [eax + 0x2ee], 0
je 0x4718f2
xor eax, eax
call fcn.0047175c
mov eax, dword [esi]
cmp byte [eax + 0x30d], 0
je 0x471906
push ebp
call fcn.00471610
pop ecx
and bl, al
test bl, bl
jne 0x47191f
mov eax, dword [esi]
test byte [eax + 0x331], 0x10
je 0x47191f
mov eax, dword [0x57d784]
call fcn.0045bf48
mov eax, dword [esi]
test byte [eax + 0x2f1], 2
je 0x4719a2
cmp byte [ebp - 0xd], 0
jne 0x4719a2
test bl, bl
je 0x47196c
push 0x242040
lea ecx, [ebp - 0x14]
xor edx, edx
mov eax, dword [esi]
call fcn.0042effc
mov eax, dword [ebp - 0x14]
call fcn.00405324
push eax
lea ecx, [ebp - 0x18]
mov dl, 0x90
mov eax, dword [esi]
call fcn.0042effc
mov eax, dword [ebp - 0x18]
call fcn.00405324
push eax
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x4719a2
push 0x242010
lea ecx, [ebp - 0x1c]
xor edx, edx
mov eax, dword [esi]
call fcn.0042effc
mov eax, dword [ebp - 0x1c]
call fcn.00405324
push eax
lea ecx, [ebp - 0x20]
mov dl, 0x91
mov eax, dword [esi]
call fcn.0042effc
mov eax, dword [ebp - 0x20]
call fcn.00405324
push eax
push 0
call sub.user32.dll_MessageBoxA_1
mov eax, dword [esi]
test byte [eax + 0x331], 0x20
je 0x4719f3
test bl, bl
jne 0x4719f3
lea eax, [ebp - 0x24]
call fcn.004707cc
mov eax, dword [ebp - 0x24]
call fcn.00405324
push eax
lea eax, [ebp - 0x28]
call fcn.00460c5c
mov eax, dword [ebp - 0x28]
call fcn.00405324
push eax
call sub.kernel32.dll_MoveFileA
lea eax, [ebp - 0x30]
call fcn.004707cc
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0040ca80
mov eax, dword [ebp - 0x2c]
call fcn.00470854
lea eax, [ebp - 0x34]
call fcn.00460c5c
mov eax, dword [ebp - 0x34]
call fcn.0045cc10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x471a28
lea eax, [ebp - 0x38]
call fcn.00460e08
mov eax, dword [ebp - 0x38]
call fcn.0045cc10
ret
Function at 0x473488
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 0x47352c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
test ebx, ebx
je 0x4734f1
push 0x47353c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4734f1
mov dword [ebp - 0x44], 0x40
lea eax, [ebp - 0x44]
push eax
call dword [ebp - 4]
test eax, eax
je 0x4734f1
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 0x473523
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 0x4742a4
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 0x474402
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404e48
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.00405324
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x4743e7
mov eax, dword [ebp - 4]
call fcn.0040b9fc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4743e0
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 0x4743c7
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x474410
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4743c7
push 0x474434
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov edx, 4
call fcn.0040c240
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.0040c240
push dword [ebp - 0x20]
push 0x474450
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.004051e4
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.00405324
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4743c7
cmp dword [ebp - 0xc], 1
jbe 0x4743c7
mov ebx, dword [ebp - 0x14]
mov eax, ebx
call fcn.0040d024
mov ecx, eax
mov eax, esi
mov edx, ebx
call fcn.00404f38
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4743e7
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.00402c04
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474409
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404e6c
ret
Function at 0x474498
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.00405314
xor eax, eax
push ebp
push 0x474570
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404e48
cmp dword [ebp - 4], 0
je 0x4744e8
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x4744e8
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004053c4
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00405324
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47455a
mov eax, ebx
mov edx, 0x400
call fcn.004054b0
mov eax, dword [ebx]
call fcn.00405124
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.00405324
push eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x47454a
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.004054b0
jmp 0x474551
mov eax, ebx
call fcn.00404e48
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 0x474577
lea eax, [ebp - 4]
call fcn.00404e48
ret

Function at 0x474580
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.00405314
mov eax, dword [ebp - 8]
call fcn.00405314
xor eax, eax
push ebp
push 0x474656
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x4745d2
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x4745d2
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004053c4
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.00405324
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x47463b
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405324
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x474632
cmp dword [ebp - 0x14], 4
jne 0x474632
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 0x47465d
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404e6c
ret
Function at 0x474ef4
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 0x47509d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404e48
lea eax, [ebp - 8]
push eax
push 8
call fcn.00457e88
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x475082
xor eax, eax
push ebp
push 0x47507b
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.0040b9fc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x47505d
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 0x475047
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
dec edi
test edi, edi
jl 0x475047
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.004054b0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00405324
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.004054b0
push dword [esi]
lea ecx, [ebp - 0x20]
mov edx, 0x1f
mov eax, dword [ebp - 0x1c]
call fcn.00474eb4
push dword [ebp - 0x20]
push ebp
lea eax, [ebp - 0x24]
call fcn.00474e58
pop ecx
push dword [ebp - 0x24]
push 0x4750b4
mov eax, esi
mov edx, 4
call fcn.004051e4
inc ebx
dec edi
jne 0x474fa2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475064
mov eax, dword [ebp - 0x10]
call fcn.00402c04
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4750a4
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404e6c
ret