joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c4b84
Capabilities:
Get disk information

Disassembly:
push ebx
push esi
push edi
push ecx
mov dword [esp], eax
xor ebx, ebx
cmp dword [esp], 0
je 0x4c4be9
mov eax, dword [esp]
call fcn.004c4dbc
test al, al
je 0x4c4be9
mov eax, dword [esp]
call fcn.004c4c44
mov esi, eax
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
dec esi
mov eax, dword [esp]
movzx eax, word [eax + esi*2]
mov edx, eax
mov ecx, eax
add ecx, 0xffffff9f
sub cx, 0x1a
jae 0x4c4bcc
mov edx, eax
and dx, 0xffdf
mov eax, edx
cmp ax, 0x41
jb 0x4c4be9
cmp ax, 0x5a
ja 0x4c4be9
sub al, 0x41
mov ecx, eax
shr edi, cl
and edi, 1
cmp edi, 1
sete bl
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4c6c94
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4c6e4f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004093c0
mov eax, dword [ebp - 4]
call fcn.004c66c8
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4c6ce6
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040a394
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004c741c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4c6dc5
xor eax, eax
push ebp
push 0x4c6dbe
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004c6884
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004c6e60
test al, al
je 0x4c6d9c
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00409120
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4c6d9c
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00409f10
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004c67e4
test al, al
je 0x4c6d96
mov eax, dword [ebp - 8]
call fcn.00409f10
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00409f78
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004c6c94
dec ebx
cmp ebx, 0xffffffff
jne 0x4c6d45
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c6dc5
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004c6884
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x750df4], 0
je 0x4c6e05
mov eax, dword [ebp - 4]
call fcn.00409f10
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004c6870
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004c67e4
mov ebx, eax
Function at 0x4c7078
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x4c7130
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.004c6e60
test al, al
je 0x4c7112
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409120
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x4c7112
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00409f10
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.00409f10
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.00409f78
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x4c70cb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7137
lea eax, [ebp - 0x2c]
call fcn.00408f98
lea eax, [ebp - 4]
call fcn.00408f98
ret

Function at 0x4c731c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004c66e0
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00409f10
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004c67e4
test al, al
jne 0x4c7384
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x749bfc]
mov dl, 1
mov eax, dword [0x4c4f38]
call fcn.0042782c
call fcn.0040869c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c7390
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00409f10
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004c67e4
test al, al
jne 0x4c73f1
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x74a05c]
mov dl, 1
mov eax, dword [0x4c4f38]
call fcn.0042782c
call fcn.0040869c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004c6710
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4cfe5c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4cfe62
ret
Function at 0x4eb73c
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x6a1aa8
test edx, edx
jne 0x4eb75b
xor eax, eax
jmp 0x4eb879
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x4eb778
push esi
push edx
push eax
call fcn.004eb880
add esp, 0xc
jmp 0x4eb879
push esi
push edx
push eax
call fcn.004ebb40
add esp, 0xc
jmp 0x4eb879
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4f9db0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x750fe0], 0
je 0x4f9ef1
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x749cf8]
mov edx, dword [edx]
xor al, byte [edx + 0xd4]
je 0x4f9ef1
mov eax, dword [0x750fe4]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x750fe0]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4f9ec0
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x750fe0]
call fcn.004933a0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4f9eb8
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x221], 0
je 0x4f9eb8
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x7c]
test al, al
je 0x4f9eb8
mov eax, dword [ebp - 0x14]
call fcn.005059f4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4f9eb8
push ebp
call fcn.004f9d6c
pop ecx
test al, al
jne 0x4f9eb8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb8
call fcn.004075bc
test al, al
je 0x4f9eb8
mov byte [ebp - 9], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 9]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffb9
call fcn.004075bc
cmp byte [ebp - 9], 0
je 0x4f9eb8
lea edx, [ebp - 8]
lea eax, [ebp - 0x28]
call fcn.00410b2c
test al, al
je 0x4f9eb8
mov edx, dword [ebp - 0x14]
mov eax, dword [0x750fe4]
call fcn.004f94d4
inc edi
dec ebx
jne 0x4f9e15
mov eax, dword [0x750fe4]
cmp dword [eax + 8], 0
jle 0x4f9ed8
mov eax, dword [0x750fe4]
call fcn.004f9588
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4f9ef1
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004f9bd4
pop ecx
test al, al
jne 0x4f9ef1
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5026e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00410d00
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.004fc444
test ebx, ebx
jne 0x50273b
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00502510
mov ebx, eax
test ebx, ebx
je 0x502831
cmp esi, ebx
je 0x502764
mov eax, dword [esp]
sub eax, dword [ebx + 0x4c]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x50]
mov dword [esp + 0x118], eax
jmp 0x502779
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x5027b1
add eax, 0xffffff5f
sub eax, 2
jb 0x5027c9
dec eax
sub eax, 2
jb 0x5027dd
dec eax
sub eax, 2
jb 0x5027d3
jmp 0x5027e7
add eax, 0xfffffdff
sub eax, 2
jb 0x5027c9
dec eax
sub eax, 2
jb 0x5027dd
dec eax
sub eax, 2
jb 0x5027d3
jmp 0x5027e7
mov byte [esp + 0x120], 0
jmp 0x5027ef
mov byte [esp + 0x120], 2
jmp 0x5027ef
mov byte [esp + 0x120], 1
jmp 0x5027ef
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.005ffe54
mov esi, eax
call fcn.004f8eb4
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.004fde68
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x502833
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x510f10
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.00408f98
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
mov ebx, eax
test ebx, ebx
je 0x510f62
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
push ebx
call sub.user32.dll_GetKeyNameTextW
test eax, eax
je 0x510f5b
mov eax, esi
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00409fcc
jmp 0x510f62
mov eax, esi
call fcn.00408f98
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x515318
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x515477
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [0x6a41c8], 0
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x4c515c]
call fcn.004c6738
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x51544d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.004c6820
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00409fcc
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x515490
call fcn.0040a17c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004c6aac
test al, al
je 0x515437
lea ecx, [ebp - 4]
mov edx, 0x515504
mov eax, dword [ebp - 0xc]
call fcn.004c71f0
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00429f00
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x515437
xor edx, edx
push ebp
push 0x515430
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x51551c
mov eax, dword [ebp - 8]
push eax
call fcn.004124ec
test eax, eax
je 0x515419
mov ebx, eax
call ebx
mov ebx, eax
test ebx, ebx
je 0x515419
call fcn.005152a4
test eax, eax
je 0x515409
mov eax, dword [ebx + 0x4c]
jmp 0x51540c
mov eax, dword [ebx + 0x28]
and eax, 1
cmp eax, 1
sete byte [0x6a41c8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515437
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_2
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515454
mov eax, dword [ebp - 0xc]
call fcn.004072c4
ret

Function at 0x515580
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x5155c7
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5155aa
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5155bb
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x5155c7
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x51c2b4
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00408f98
push esp
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, 0x80000000
sete al
test al, al
je 0x51c325
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListW
test eax, eax
je 0x51c325
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00409fcc
cmp dword [ebx], 0
je 0x51c325
mov eax, dword [ebx]
test eax, eax
je 0x51c30f
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x51c325
mov eax, ebx
mov edx, 0x51c33c
call fcn.0040a124
add esp, 0x210
pop esi
pop ebx
ret
Function at 0x51c930
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
push ebp
xor ebx, ebx
mov edx, 0x20
call fcn.004215fc
mov ebp, eax
cmp ebp, 0xffffffff
je 0x51c9dd
push 0
push 0
push 0
push 2
push 0
push ebp
call sub.kernel32.dll_CreateFileMappingW
mov esi, eax
test esi, esi
jne 0x51c969
push ebp
call sub.kernel32.dll_CloseHandle_1
jmp 0x51c9dd
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
test edi, edi
jne 0x51c98b
push esi
call sub.kernel32.dll_CloseHandle_1
push ebp
call sub.kernel32.dll_CloseHandle_1
jmp 0x51c9dd
push edi
call sub.IMAGEHLP.DLL_ImageNtHeader
test eax, eax
jne 0x51c9a9
push edi
call sub.kernel32.dll_UnmapViewOfFile
push esi
call sub.kernel32.dll_CloseHandle_1
push ebp
call sub.kernel32.dll_CloseHandle_1
jmp 0x51c9dd
movzx eax, word [eax + 4]
sub ax, 0x14c
je 0x51c9c1
sub ax, 0xb4
je 0x51c9c5
sub ax, 0x8464
je 0x51c9c9
jmp 0x51c9cb
mov bl, 1
jmp 0x51c9cb
mov bl, 2
jmp 0x51c9cb
mov bl, 2
push edi
call sub.kernel32.dll_UnmapViewOfFile
push esi
call sub.kernel32.dll_CloseHandle_1
push ebp
call sub.kernel32.dll_CloseHandle_1
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x51cb0c
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x51cc5c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.00408f98
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [0x7510a4], 0
je 0x51cb5d
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call dword [0x7510a4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x51cbda
cmp edi, 1
jne 0x51cbda
mov eax, 0x26
and eax, esi
cmp eax, 0x26
jne 0x51cba1
push 0x104
lea eax, [ebp - 0x216]
push eax
push 0x51cc6c
call sub.kernel32.dll_ExpandEnvironmentStringsW
lea eax, [ebp - 4]
lea edx, [ebp - 0x216]
mov ecx, 0x105
call fcn.00409fcc
mov bl, 1
jmp 0x51cc05
mov eax, 0x2b
and eax, esi
cmp eax, 0x2b
jne 0x51cc05
push 0x104
lea eax, [ebp - 0x216]
push eax
push 0x51cc8c
call sub.kernel32.dll_ExpandEnvironmentStringsW
lea eax, [ebp - 4]
lea edx, [ebp - 0x216]
mov ecx, 0x105
call fcn.00409fcc
mov bl, 1
jmp 0x51cc05
cmp dword [ebp - 0xc], 0
jne 0x51cc05
dec edi
jne 0x51cc05
mov eax, 0x26
and eax, esi
cmp eax, 0x26
je 0x51cbfb
mov eax, 0x2b
and eax, esi
cmp eax, 0x2b
jne 0x51cc05
lea eax, [ebp - 4]
call fcn.00408f98
mov bl, 1
test bl, bl
jne 0x51cc33
lea eax, [ebp - 0x216]
push eax
push 0
push 0
push esi
push 0
call sub.SHFolder.dll_SHGetFolderPathW
test eax, eax
jne 0x51cc33
lea eax, [ebp - 4]
lea edx, [ebp - 0x216]
mov ecx, 0x105
call fcn.00409fcc
lea eax, [ebp - 4]
call fcn.00527630
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00409378
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51cc63
lea eax, [ebp - 4]
call fcn.00408f98
ret
Function at 0x51ccb8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x51cee2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x48]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.00409f10
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x51cec4

Function at 0x51d29c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov edi, eax
xor eax, eax
push ebp
push 0x51d3c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00408f98
lea eax, [ebp - 0x1c]
push eax
mov eax, edi
call fcn.00409f10
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jle 0x51d3a6
mov eax, ebx
call fcn.00405564
mov esi, eax
push esi
push ebx
mov eax, dword [ebp - 0x1c]
push eax
mov eax, edi
call fcn.00409f10
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x51d39f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x51d3d0
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x51d39f
lea eax, [ebp - 4]
push eax
mov ebx, dword [ebp - 0x18]
movzx eax, word [ebx]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
movzx eax, word [ebx + 2]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
lea edx, [ebp - 0x30]
mov ecx, 1
mov eax, 0x51d410
call fcn.00422e88
push 0x51d430
push dword [ebp - 4]
push 0x51d460
mov eax, dword [ebp - 0xc]
push dword [eax*4 + 0x6a42bc]
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040a204
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.00409f10
push eax
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x51d39f
cmp dword [ebp - 0x20], 0
jbe 0x51d39f
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
call fcn.00409f78
mov eax, esi
call fcn.00405580
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51d3c8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00408ff8
ret
Function at 0x51dcc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00408f98
mov dl, 1
mov eax, dword [0x51cf38]
call fcn.004c6738
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x51dd75
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000001
mov eax, dword [ebp - 8]
call fcn.004c6820
mov edx, 0x51dd94
mov eax, dword [ebp - 8]
call fcn.004c6aac
test al, al
je 0x51dd5f
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x51dde4
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.004c74b4
push 0x105
lea eax, [ebp - 0x212]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00409f10
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
jbe 0x51dd57
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x212]
mov ecx, 0x105
call fcn.00409fcc
mov eax, dword [ebp - 8]
call fcn.004c67f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51dd7c
mov eax, dword [ebp - 8]
call fcn.004072c4
ret

Function at 0x51e420
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x51e4c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00409f10
push eax
mov eax, dword [0x751b6c]
push eax
call fcn.004124ec
mov dword [edi], eax
cmp dword [edi], 0
jne 0x51e47d
lea eax, [ebp - 4]
mov ecx, esi
mov edx, 0x51e4e8
call fcn.0040a17c
mov eax, dword [ebp - 4]
call fcn.00409f10
push eax
mov eax, dword [0x751b6c]
push eax
call fcn.004124ec
mov dword [edi], eax
cmp dword [edi], 0
jne 0x51e4ac
test bl, bl
je 0x51e48b
call fcn.00525da0
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 0x51e508
call fcn.0040a17c
mov eax, dword [ebp - 8]
call fcn.00409f10
push eax
call sub.kernel32.dll_OutputDebugStringW
xor ebx, ebx
jmp 0x51e4ae
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51e4d0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00408ff8
ret
Function at 0x5310bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push ecx
mov ebx, edx
mov esi, eax
cmp dword [esi + 0x18], 0
je 0x5310d0
mov eax, esi
call fcn.0053118c
mov eax, dword [esi + 4]
mov dword [esi + 0x18], eax
test bl, bl
je 0x5310f2
mov eax, dword [esi + 4]
cmp word [eax], 0x25ff
jne 0x5310f2
add dword [esi + 0x18], 2
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x18], eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0x18]
jno 0x5310ff
call fcn.004071b4
sub eax, 5
jno 0x531109
call fcn.004071b4
mov byte [esi + 0xc], 0xe9
mov edx, 0xff
and edx, eax
mov byte [esi + 0xd], dl
mov edx, eax
shr edx, 8
and edx, 0xff
mov byte [esi + 0xe], dl
mov edx, eax
shr edx, 0x10
and edx, 0xff
mov byte [esi + 0xf], dl
shr eax, 0x18
and eax, 0xff
mov byte [esi + 0x10], al
mov eax, dword [esi + 0x18]
movzx eax, byte [eax]
mov byte [esi + 0x11], al
mov eax, dword [esi + 0x18]
movzx eax, byte [eax + 1]
mov byte [esi + 0x12], al
mov eax, dword [esi + 0x18]
movzx eax, byte [eax + 2]
mov byte [esi + 0x13], al
mov eax, dword [esi + 0x18]
movzx eax, byte [eax + 3]
mov byte [esi + 0x14], al
mov eax, dword [esi + 0x18]
movzx eax, byte [eax + 4]
mov byte [esi + 0x15], al
push esp
push 0x40
push 5
mov eax, dword [esi + 0x18]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x531186
call fcn.0042983c
pop edx
pop esi
pop ebx
ret