joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x504eb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, dword [esp + 0x54]
xor ebx, ebx
mov esi, ecx
cmp edi, ebx
mov dword [esp + 0xc], ebx
je 0x442cc2
mov al, byte [esp + 0x50]
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x20], al
call fcn.00441560
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], ebx
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x30], edi
call fcn.00442ea0
lea edx, [esp + 0x2c]
lea eax, [esp + 0xc]
push edx
push eax
lea ecx, [esi + 4]
mov byte [esp + 0x50], 1
call fcn.00443330
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004439f0
mov esi, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], bl
call fcn.00441560
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x4c], 0xffffffff
call fcn.00441560
mov cl, byte [esi + 0x10]
lea eax, [esi + 0x10]
mov esi, dword [esp + 0x50]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x512398]
mov ecx, esi
push edx
push ebx
push eax
call fcn.00443000
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 8
mov al, byte [esp + 0x50]
push ebp
mov ebp, dword [esp + 0x54]
mov edi, 0x54ae58
or ecx, 0xffffffff
push 1
mov byte [ebp], al
xor eax, eax
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, ebp
push esi
mov dword [esp + 0x5c], esi
call fcn.004415b0
test al, al
je 0x442d1d
mov edi, dword [ebp + 4]
mov ecx, esi
mov edx, ecx
mov esi, 0x54ae58
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 4]
mov dword [ebp + 8], eax
mov byte [eax + ecx], bl
mov ecx, dword [esp + 0x44]
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 8
Function at 0x445400
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x505257
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x54ae58
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.004e13a7
xor esi, esi
mov dword [esp + 0x64], 1
mov si, word [0x54b8bc]
call fcn.004f65e5
mov eax, dword [eax + 0xc]
push str.BINHELP
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call fcn.004f65e5
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
call fcn.004f65e5
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
lea esi, [edi + 0x50]
push ebp
push eax
mov ecx, esi
call fcn.00448140
mov al, byte [esp + 0x70]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], al
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov cl, byte [esp + 0x70]
push ebx
mov byte [esp + 0x3c], cl
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 2
call fcn.00441560
mov edx, dword [esp + 0x70]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 3
mov dword [esp + 0x4c], edx
call fcn.00442ea0
lea ecx, [esp + 0x48]
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x6c], 4
call fcn.004459e0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00445c20
mov esi, dword [esp + 0x20]
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x68], 3
call fcn.00441560
push 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0x68], 2
call fcn.00441560
lea eax, [esi + 0x10]
mov edx, dword [0x512398]
lea ecx, [esp + 0x28]
push edx
push ebx
push eax
call fcn.00443000
mov esi, dword [esp + 0x6c]
mov al, byte [esp + 0x28]
lea edx, [esp + 0x28]
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [0x512398]
push ecx
push ebx
push edx
mov ecx, esi
call fcn.00443000
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x445584
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x44557b
cmp al, 0xff
je 0x44557b
dec al
mov byte [ecx], al
jmp 0x445584
push ecx
call fcn.004e1a33
add esp, 4
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x64], bl
call fcn.004e1339
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 8
Function at 0x4461a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x505314
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
mov edi, dword [esp + 0x14c]
xor ebx, ebx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x144], ebx
call fcn.004e13a7
lea ecx, [esp + 0xc]
push 4
push ecx
mov ecx, eax
mov byte [esp + 0x148], 1
call fcn.004db1fb
mov eax, dword [eax]
push 0x53a1ec
push eax
call fcn.004b2247
add esp, 8
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.004e1339
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], bl
call fcn.004e1339
cmp esi, ebx
je 0x4462f0
push 5
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edx, eax
cmp edx, 0x20
jge 0x44630c
cmp edx, 0x1f
jne 0x44627f
push ebx
lea ecx, [esp + 0x18]
call fcn.0044a1a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], 2
call fcn.004e0cb8
lea ecx, [esp + 0x70]
mov byte [esp + 0x140], 3
call fcn.00446470
lea ecx, [esp + 0x14]
mov byte [esp + 0x140], bl
call fcn.004e07fe
jmp 0x44630c
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x14]
push ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push 0xff
push eax
push 0x400
push edx
push ebx
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [0x54514c]
mov dword [esp + 0xc], ecx
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push 0x6f00
push eax
mov byte [esp + 0x14c], 4
call fcn.004db795
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ebx
push ebx
push ecx
call fcn.004ecd04
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], bl
call fcn.004e1339
jmp 0x44630c
mov edx, dword [esp + 0x154]
mov eax, dword [esp + 0x150]
mov ecx, dword [esp + 0x148]
push edx
push eax
call fcn.004e741d
lea ecx, [esp + 0x158]
mov dword [esp + 0x140], 0xffffffff
call fcn.004e1339
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret

Function at 0x446e40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x505448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x446ef4
mov eax, dword [0x54514c]
push esi
mov dword [esp + 8], eax
push 0x410
push 0x410
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004e1769
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.004e17b8
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.004e1715
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x446edb
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x446edb
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
mov dword [edi + 0xc4], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004e1339
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x447180
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x824
test eax, eax
je 0x4471a5
mov eax, dword [esp + 0x828]
push eax
call fcn.004472a0
add esp, 4
add esp, 0x824
ret
lea ecx, [esp + 4]
push edi
push ecx
push str..htm
push SysReAllocStringLen
call fcn.00446f10
add esp, 0xc
test eax, eax
jne 0x44726a
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 8]
lea ecx, [esp + 8]
push eax
push ecx
push SysReAllocStringLen
call fcn.00446f10
add esp, 0xc
test eax, eax
jne 0x447293
push esi
lea edx, [esp + 0xc]
push str.__1_
push edx
call fcn.004b25d7
mov esi, eax
add esp, 8
test esi, esi
jne 0x447238
lea eax, [esp + 0xc]
push 0x53923c
push eax
call fcn.004b1650
mov esi, eax
add esp, 8
test esi, esi
jne 0x447238
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xb]
jmp 0x44723b
mov byte [esi], 0
push 0x538b94
push esi
call edi
mov edx, dword [esp + 0x830]
push edx
push esi
call edi
mov eax, dword [esp + 0x834]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
pop edi
add esp, 0x824
ret
mov edx, dword [esp + 0x830]
mov eax, dword [esp + 0x82c]
push edx
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
add esp, 0x824
ret
mov eax, dword [esp + 4]
pop edi
add esp, 0x824
ret

Function at 0x4472a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x505498
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x18]
push esi
push edi
push eax
lea ecx, [esp + 0x24]
call fcn.004e13a7
push str.mailto:
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.004e13a7
mov byte [esp + 0x18], 1
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [esp + 8]
push 0x40
mov edi, eax
mov esi, dword [ecx - 8]
lea ecx, [esp + 0x24]
call fcn.004e185a
cmp eax, 0xffffffff
je 0x447366
push ebx
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x2c]
call fcn.004db277
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
push ecx
push eax
call fcn.004b1df0
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004e1339
test bl, bl
pop ebx
je 0x447366
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.004e1568
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 2
call fcn.004e1472
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], 1
call fcn.004e1339
mov edx, dword [esp + 0x20]
push 5
push 0x54ae58
push 0
push edx
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 8]
mov esi, eax
mov byte [esp + 0x18], 0
call fcn.004e1339
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.004e1339
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x453140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x505de8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x38]
push esi
push edi
push ebx
mov edi, ecx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x4531e0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x453205
mov ebp, 0x512c80
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x38], ebx
call fcn.00453480
mov byte [esp + 0x38], al
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0x10], ebp
je 0x4531da
cmp byte [esp + 0x1c], bl
je 0x4531da
push eax
call fcn.004b16d0
add esp, 4
mov al, byte [esp + 0x38]
jmp 0x453207
lea edx, [edi + 0x44]
mov edi, str.Unable_to_load_resource_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor al, al
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x472d50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x472d5b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x472e5e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x513050]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x513050]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x513050]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x513050]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x513050]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x513050]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x513050]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x513050]
xor eax, edx
inc ecx
dec edi
jne 0x472d76
pop edi
test esi, esi
je 0x472e80
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x513050]
xor eax, edx
inc ecx
dec esi
jne 0x472e62
pop esi
pop ebx
not eax
ret
Function at 0x4742b0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 8
cmp eax, 3
push ebx
push esi
jne 0x474319
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov cx, word [eax + 0x118]
test cx, cx
jne 0x4742db
test byte [eax + 0x230], 1
jne 0x4742f8
movzx si, byte [edx]
cmp si, cx
jbe 0x4742f8
push str.Invalid_background_palette_index
push eax
call fcn.0046b1e0
add esp, 8
pop esi
pop ebx
add esp, 8
ret
mov cl, byte [edx]
push 1
mov byte [esp + 0xc], cl
lea edx, [esp + 0xc]
push edx
push str.bKGD
push eax
call fcn.00472f10
add esp, 0x10
pop esi
pop ebx
add esp, 8
ret
test al, 2
je 0x474391
mov esi, dword [esp + 0x18]
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 2]
push eax
push ecx
call fcn.00472ef0
xor edx, edx
lea eax, [esp + 0x12]
mov dx, word [esi + 4]
push edx
push eax
call fcn.00472ef0
xor ecx, ecx
lea edx, [esp + 0x1c]
mov cx, word [esi + 6]
push ecx
push edx
call fcn.00472ef0
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x127], 8
jne 0x47438a
mov cl, byte [esp + 0xc]
mov bl, byte [esp + 0xa]
mov dl, byte [esp + 8]
or cl, bl
or cl, dl
je 0x47438a
push str.Ignoring_attempt_to_write_16_bit_bKGD_chunk_when_bit_depth_is_8
push eax
call fcn.0046b1e0
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push 6
jmp 0x474300
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
xor eax, eax
mov edx, 1
mov ax, word [ecx + 8]
mov cl, byte [esi + 0x127]
shl edx, cl
cmp eax, edx
jl 0x4743c4
push str.Ignoring_attempt_to_write_bKGD_chunk_out_of_range_for_bit_depth
push esi
call fcn.0046b1e0
add esp, 8
pop esi
pop ebx
add esp, 8
ret
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00472ef0
lea ecx, [esp + 0x10]
push 2
push ecx
push str.bKGD
push esi
call fcn.00472f10
add esp, 0x18
pop esi
pop ebx
add esp, 8
ret
Function at 0x47cbc6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
cmp ebx, edi
je 0x47cc1d
push ebx
call fcn.004b17b9
mov esi, eax
pop ecx
cmp esi, edi
mov dword [ebp - 8], esi
je 0x47cc1d
push esi
push ebx
push edi
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x47cc16
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x538710
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x47cc2b
push esi
call fcn.004b16d0
pop ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.0047cb70
mov eax, dword [ebp + 8]
jmp 0x47cc70
mov eax, dword [ebp - 4]
lea edi, [ebp - 0x18]
push dword [ebp - 8]
movzx esi, word [eax + 0x14]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
movzx ebx, word [eax + 0x10]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
shr ecx, 0x10
shr edx, 0x10
stosw word es:[edi], ax
mov word [ebp - 0x18], dx
mov word [ebp - 0x16], bx
mov word [ebp - 0x14], cx
mov word [ebp - 0x12], si
call fcn.004b16d0
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x18]
mov edi, eax
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x499a3f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x308
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
je 0x499ab3
lea eax, [ebp - 0x108]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x499ad7
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.004b1c7e
lea eax, [ebp - 0x308]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004b4eb0
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.004b0d10
add esp, 0x24
test eax, eax
jne 0x499ad7
cmp dword [ebp + 0xc], ebx
jne 0x499ab7
mov al, 1
jmp 0x499b1b
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
je 0x499ad7
push edi
call fcn.004b17b9
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x499adb
xor al, al
jmp 0x499b1b
push esi
push edi
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x499b12
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x538710
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x499b12
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp dword [eax + 0x10], ecx
sbb bl, bl
inc bl
push esi
call fcn.004b16d0
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x499b90
Capabilities:
Check os version

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 1
je 0x499bc9
cmp eax, 2
je 0x499bc9
cmp eax, 3
je 0x499bbe
cmp eax, 4
je 0x499bb7
cmp eax, 5
je 0x499bb0
xor al, al
ret
call fcn.0049881f
jmp 0x499bc3
call fcn.00498665
jmp 0x499bc3
call fcn.00498729
test eax, eax
setne al
ret
mov al, 1
ret
Function at 0x49ec1a
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x49ec27
mov al, 1
pop edi
ret
cmp edi, 2
jae 0x49ec30
xor al, al
pop edi
ret
cmp byte [esp + 0x10], 0
push esi
je 0x49ec41
mov esi, dword [esp + 0xc]
mov ax, word [esi]
jmp 0x49ec5c
push 0
call fcn.004b4dc3
push eax
call fcn.004b384b
pop ecx
pop ecx
call fcn.004b3858
mov esi, dword [esp + 0xc]
mov word [esi], ax
inc esi
movzx eax, ax
inc esi
dec edi
push eax
dec edi
call fcn.004b384b
test edi, edi
pop ecx
je 0x49ec79
call fcn.004b3858
xor byte [esi], al
inc esi
dec edi
jne 0x49ec6e
pop esi
mov al, 1
pop edi
ret
Function at 0x4bc0e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x549330
cmp edx, dword [eax]
je 0x4bc102
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x4bc0f3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x549330]
jne 0x4bc230
mov eax, dword [0x54e0d4]
cmp eax, 1
je 0x4bc20a
test eax, eax
jne 0x4bc133
cmp dword [0x5467d4], 1
je 0x4bc20a
cmp edx, 0xfc
je 0x4bc230
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bc16a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004b4ea0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004b42d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bc1ad
lea eax, [ebp - 0x1a4]
push eax
call fcn.004b42d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x51cdb8
push edi
call fcn.004b1230
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004b4ea0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004b4eb0
lea eax, [ebp - 0xa0]
push 0x538c20
push eax
call fcn.004b4eb0
push dword [esi + 0x549334]
lea eax, [ebp - 0xa0]
push eax
call fcn.004b4eb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c353d
add esp, 0x2c
pop edi
jmp 0x4bc230
lea eax, [ebp + 8]
lea esi, [esi + 0x549334]
push 0
push eax
push dword [esi]
call fcn.004b42d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4d9b00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004b0de0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4d9bcb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4d9bcb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4d9b7e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4d9b89
or bh, 8
and edi, 0x8000000
je 0x4d9ba4
mov eax, dword [0x54fe9c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4d9bcb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret