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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ecx
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
call fcn.00406e54
xor eax, eax
push ebp
push 0x54413a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00406d70
cmp dword [ebp - 8], 0
jne 0x543fa7
lea edx, [ebp - 8]
xor eax, eax
call fcn.00404988
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00407b54
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jbe 0x54410f
mov eax, dword [ebp - 0xc]
call fcn.004045a8
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x544108
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00407b54
push eax
call sub.version.dll_GetFileVersionInfoW
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x544148
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueW
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
shr eax, 0x10
movzx eax, ax
call fcn.00421780
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
call fcn.00407d68
mov eax, dword [ebp + 8]
mov eax, dword [ebp + 8]
push dword [eax]
push 0x544158
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 8]
call fcn.00421780
push dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.00407e48
cmp byte [ebp - 1], 0
je 0x544092
mov eax, dword [ebp + 8]
push dword [eax]
push 0x544158
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0xc]
shr eax, 0x10
movzx eax, ax
call fcn.00421780
push dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov edx, 3
call fcn.00407e48
cmp byte [ebp - 2], 0
je 0x5440d2
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
movzx eax, word [eax + 0xc]
call fcn.00421780
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0x11
lea edx, [ebp - 0x34]
xor ecx, ecx
mov eax, 0x544168
call fcn.004230e0
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
call fcn.00407d68
mov eax, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x1c]
and eax, dword [edx + 0x1c]
test al, 1
je 0x5440f2
mov eax, dword [ebp + 8]
mov edx, 0x54417c
call fcn.00407d68
mov eax, dword [ebp + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54410f
mov eax, dword [ebp - 0x14]
call fcn.004045c4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x544141
lea eax, [ebp - 0x38]
call fcn.00406d70
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.00406dd0
lea eax, [ebp - 8]
call fcn.00406d70
ret
Function at 0x5443e8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov byte [0x703455], 0
push 0x5444d4
call sub.kernel32.dll_GetModuleHandleW_2
mov dword [ebp - 4], eax
push 0x5444f0
mov eax, dword [ebp - 4]
push eax
call fcn.0040f748
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x54448b
lea eax, [ebp - 0x34]
push eax
call dword [ebp - 8]
push 0x544518
mov eax, dword [ebp - 4]
push eax
call fcn.0040f748
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x544494
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call dword [ebp - 0xc]
test eax, eax
je 0x544494
cmp dword [ebp - 0x10], 0
je 0x544494
call fcn.005443d4
test al, al
je 0x544494
push 0x544538
mov eax, dword [ebp - 4]
push eax
call fcn.0040f748
test eax, eax
je 0x544494
push 0x54456c
push 0x54458c
call sub.kernel32.dll_GetModuleHandleW_2
push eax
call fcn.0040f748
test eax, eax
je 0x544494
mov byte [0x703455], 1
jmp 0x544494
lea eax, [ebp - 0x34]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov ax, word [ebp - 0x34]
sub ax, 1
jb 0x5444ac
sub ax, 5
je 0x5444b5
sub ax, 3
je 0x5444be
jmp 0x5444c7
mov byte [0x6f7208], 1
jmp 0x5444ce
mov byte [0x6f7208], 3
jmp 0x5444ce
mov byte [0x6f7208], 2
jmp 0x5444ce
mov byte [0x6f7208], 0
mov esp, ebp
pop ebp
ret

Function at 0x54a5f8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x54a69c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.00407ce8
push 0
mov eax, dword [ebp - 0x10]
call fcn.00407b54
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407b54
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00407ce8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00407b54
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407b54
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x54a686
lea eax, [ebp - 0x10]
call fcn.0054e46c
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00407150
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54a6a3
lea eax, [ebp - 0x10]
call fcn.00406d70
ret
Function at 0x54a6e4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x54a6fe
xor edx, edx
mov dword [eax], edx
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00407ce8
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00407b54
push eax
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne byte [ebp - 0xa]
cmp byte [ebp - 0xa], 0
jne 0x54a756
mov eax, dword [ebp - 8]
call fcn.00406d70
jmp 0x54a76f
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00407ce8
cmp byte [ebp - 9], 0
je 0x54a76f
mov eax, dword [ebp - 8]
call fcn.0054a5f8
mov al, byte [ebp - 0xa]
mov esp, ebp
pop ebp
ret

Function at 0x54a778
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406d70
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x54a7c2
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00407ce8
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00407b54
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetCurrentDirectoryW
mov eax, dword [ebp - 4]
call fcn.0054e46c
pop ecx
pop ecx
pop ebp
ret

Function at 0x54af20
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
push 0x54af80
call sub.kernel32.dll_GetModuleHandleW_2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x54af6f
push 0x54af9c
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040f748
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x54af64
mov eax, dword [ebp - 4]
push eax
call dword [ebp - 0x10]
mov byte [ebp - 5], 1
jmp 0x54af78
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
jmp 0x54af78
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x54afe8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x54b1c8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.0054f64c
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x14]
mov dword [0x6f8404], eax
mov eax, dword [ebp - 0xc]
mov dword [0x6f8408], eax
mov eax, dword [ebp - 0x24]
mov dword [0x6f840c], eax
mov eax, dword [0x6fde84]
cmp dword [eax], 2
sete byte [0x6f7be9]
push 0x54b1d4
call sub.kernel32.dll_GetModuleHandleW_2
lea edx, [ebp - 4]
call fcn.00551258
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x6f7be9], 0
jne 0x54b077
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.00551910
test al, al
je 0x54b077
mov eax, dword [ebp - 0x4c]
mov dword [0x703978], eax
jmp 0x54b07e
xor eax, eax
mov dword [0x703978], eax
call fcn.0054acb4
and eax, 0x7f
cmp eax, 0x12
ja case.0x54b08f.0
jmp dword [eax*4 + 0x54b096]
mov byte [0x6f7be4], 1
jmp case.0x54b08f.0
mov byte [0x6f7be5], 1
jmp case.0x54b08f.0
mov byte [0x6f7be6], 1
jmp case.0x54b08f.0
mov byte [0x6f7be7], 1
jmp case.0x54b08f.0
mov byte [0x6f7be8], 1
jmp case.0x54b08f.0
mov byte [0x6f7bea], 1
mov byte [0x6f7beb], 1
jmp case.0x54b08f.0
mov byte [0x6f7bea], 1
mov byte [0x6f7bec], 1
jmp case.0x54b08f.0
mov byte [0x6f7bea], 1
mov byte [0x6f7bec], 1
mov byte [0x6f7bed], 1
jmp case.0x54b08f.0
mov byte [0x6f7bee], 1
jmp case.0x54b08f.0
mov byte [0x6f7bef], 1
jmp case.0x54b08f.0
mov byte [0x6f7bf0], 1
jmp case.0x54b08f.0
mov byte [0x6f7bf1], 1
jmp case.0x54b08f.0
mov byte [0x6f7bf2], 1
jmp case.0x54b08f.0
mov byte [0x6f7bf3], 1
jmp case.0x54b08f.0
mov byte [0x6f7bf4], 1
jmp case.0x54b08f.0
mov byte [0x6f7bf5], 1
jmp case.0x54b08f.0
mov byte [0x6f7bf6], 1
jmp case.0x54b08f.0
mov byte [0x6f7bf7], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54b1cf
lea eax, [ebp - 4]
call fcn.00406d70
ret

Function at 0x54de14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x54de7f
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 0x14]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x18]
lea edx, [ebp - 0x14]
mov ecx, 7
call fcn.00407c10
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.004219b8
mov word [ebp - 6], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54de86
lea eax, [ebp - 0x18]
call fcn.00406d70
ret
Function at 0x54f678
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
cmp dword [ebp - 0xc], 0
jbe 0x54f73c
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x54f73c
xor eax, eax
push ebp
push 0x54f735
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.0040476c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp - 0x14]
sub eax, 0x10
je 0x54f6fa
sub eax, 0x10
je 0x54f6fa
sub eax, 0x20
je 0x54f6fa
sub eax, 0x40
jne 0x54f70d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54f73c
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_VirtualProtect
ret
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
sete byte [ebp - 0xd]
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret 4
Function at 0x550e3c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
test dl, dl
je 0x550e4e
add esp, 0xfffffff0
call fcn.004056d4
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00405098
movzx edx, word [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.00421dd4
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0xffffffff
jne 0x550e81
call fcn.0042a870
mov ax, word [ebp + 8]
and ax, 0xf
cmp ax, 2
jne 0x550e9f
mov dword [ebp - 0x10], 8
mov dword [ebp - 0x14], 1
jmp 0x550ead
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x14], 4
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingW
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
jne 0x550ef3
mov eax, dword [ebp - 4]
call fcn.00550fdc
mov ecx, dword [0x6fd544]
mov dl, 1
mov eax, dword [0x550cc4]
call fcn.005465d0
call fcn.00406448
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x550f31
mov eax, dword [ebp - 4]
call fcn.00550fdc
mov ecx, dword [0x6fdbbc]
mov dl, 1
mov eax, dword [0x550d7c]
call fcn.005465d0
call fcn.00406448
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x550f70
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 4]
call fcn.00550fdc
mov ecx, dword [0x6fd930]
mov dl, 1
mov eax, dword [0x550d7c]
call fcn.005465d0
call fcn.00406448
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0044f140
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x550f96
call fcn.0040572c
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x551218
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x55124a
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetFileAttributesW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x55123f
test byte [ebp - 0xc], 0x10
je 0x551243
xor eax, eax
jmp 0x551245
mov al, 1
mov byte [ebp - 5], al
jmp 0x55124e
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x551910
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5519d3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x5519bd
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00407ce8
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00407b54
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x5519bd
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x5519e4
mov eax, dword [ebp - 0x1c]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x5519bd
cmp dword [ebp - 0x14], 0x34
jne 0x5519bd
mov byte [ebp - 9], 1
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5519da
lea eax, [ebp - 0x1c]
call fcn.00406d70
ret

Function at 0x551a54
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
test dl, dl
je 0x551a66
add esp, 0xfffffff0
call fcn.004056d4
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00551218
test al, al
jne 0x551aa2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0x11
lea eax, [ebp - 0x1c]
push eax
push 0
mov ecx, dword [0x6fd220]
mov dl, 1
mov eax, dword [0x54fe14]
call fcn.00428830
call fcn.00406448
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407b54
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x551ad9
mov ecx, dword [0x6fd4ac]
mov dl, 1
mov eax, dword [0x54fe14]
call fcn.00428760
call fcn.00406448
mov eax, dword [ebp - 4]
add eax, 4
xor ecx, ecx
mov edx, dword [ebp - 0x14]
call fcn.00407870
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004077ec
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407b54
push eax
call sub.version.dll_GetFileVersionInfoW
call fcn.0042a914
mov eax, dword [ebp - 4]
call fcn.00552494
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x551b30
call fcn.0040572c
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x56186c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x561997
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
push 0x5619a4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindResourceW
test eax, eax
setne al
mov edx, dword [ebp - 4]
mov byte [edx + 4], al
mov eax, dword [ebp - 4]
cmp byte [eax + 4], 0
je 0x56191f
push 0x561810
mov eax, dword [ebp - 4]
lea ecx, [eax + 0x14]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
call fcn.0042a5a4
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x5618fa
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.00551258
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00551154
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
add eax, 0xc
mov ecx, 0x5619c8
call fcn.00407dc0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1d], 0
je 0x56191f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov edx, dword [eax]
call dword [edx + 0xa0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [eax]
call dword [edx + 0xa0]
push 0xa
push 0x5619d4
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FindResourceW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x56197c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x56197c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_SizeofResource
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_LockResource
mov edx, dword [ebp - 4]
lea ecx, [edx + 0x18]
pop edx
call fcn.00408a70
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.0054e46c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56199e
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00406dd0
ret

Function at 0x56260c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x56266a
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x56266a
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x56266a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0xf8
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x562665
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x56266a
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret
Function at 0x562674
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x40
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x5626d2
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
jne 0x5626d2
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
je 0x5626d2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x108
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x5626cd
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x5626d2
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x56f7a8
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
sub dword [ebp - 8], 6
mov byte [ebp - 0xd], 0
jmp 0x56f8e2
push 6
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_IsBadReadPtr
test eax, eax
jne 0x56f8f2
mov eax, dword [ebp - 8]
cmp byte [eax], 0xc2
jne 0x56f81d
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
jne 0x56f7fe
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0x90
jne 0x56f7fe
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0x90
je 0x56f8f2
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
jne 0x56f81d
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0xcc
jne 0x56f81d
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0xcc
je 0x56f8f2
mov eax, dword [ebp - 8]
cmp byte [eax], 0xc3
jne 0x56f863
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0x90
jne 0x56f844
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0x90
jne 0x56f844
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
je 0x56f8f2
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0xcc
jne 0x56f863
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0xcc
jne 0x56f863
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
je 0x56f8f2
mov eax, dword [ebp - 8]
cmp byte [eax], 0xe9
jne 0x56f8a1
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0x90
jne 0x56f886
mov eax, dword [ebp - 8]
cmp byte [eax + 6], 0x90
jne 0x56f886
mov eax, dword [ebp - 8]
cmp byte [eax + 7], 0x90
je 0x56f8f2
mov eax, dword [ebp - 8]
cmp byte [eax + 5], 0xcc
jne 0x56f8a1
mov eax, dword [ebp - 8]
cmp byte [eax + 6], 0xcc
jne 0x56f8a1
mov eax, dword [ebp - 8]
cmp byte [eax + 7], 0xcc
je 0x56f8f2
mov eax, dword [ebp - 8]
cmp byte [eax], 0xeb
jne 0x56f8df
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0x90
jne 0x56f8c4
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x90
jne 0x56f8c4
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0x90
je 0x56f8f2
mov eax, dword [ebp - 8]
cmp byte [eax + 2], 0xcc
jne 0x56f8df
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0xcc
jne 0x56f8df
mov eax, dword [ebp - 8]
cmp byte [eax + 4], 0xcc
je 0x56f8f2
dec dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
ja 0x56f7c4
mov byte [ebp - 0xd], 1
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret