joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402c10
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push ebp
push eax
push 0x200
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ecx
call ebx
mov al, byte [esp + eax + 0xf]
cmp al, 0x5c
je 0x402c57
cmp al, 0x2f
je 0x402c57
lea eax, [esp + 0x10]
push 0x4068b4
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
jmp 0x402c5d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
push str.UNINST32.EXE
push eax
call esi
lea eax, [esp + 0x10]
mov ebp, dword [esp + 0x414]
push eax
push ebp
call fcn.00402b50
add esp, 8
test eax, eax
jne 0x402ccf
lea eax, [esp + 0x10]
push 0x4060e8
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
lea ecx, [esp + 0x10]
push ecx
call ebx
mov al, byte [esp + eax + 0xf]
cmp al, 0x5c
je 0x402cb3
cmp al, 0x2f
je 0x402cb3
lea eax, [esp + 0x10]
push 0x4068b4
push eax
call esi
lea eax, [esp + 0x10]
push str.UNINST32.EXE
push eax
call esi
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.00402b50
add esp, 8
jmp 0x402cd5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
cmp eax, 1
sbb eax, eax
neg eax
test eax, eax
jne 0x402d08
lea eax, [esp + 0x210]
push 0x200
mov ecx, dword [esp + 0x41c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
jmp 0x402d1a
mov eax, dword [esp + 0x418]
lea ecx, [esp + 0x210]
push eax
push ecx
call edi
lea eax, [esp + 0x10]
push 0x406954
push eax
call esi
lea eax, [esp + 0x210]
lea ecx, [esp + 0x10]
push eax
push ecx
call esi
lea ecx, [esp + 0x10]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret
Function at 0x403280
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x404264
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x406a0c], eax
xor eax, eax
mov al, byte [0x406a0d]
mov dword [0x406a18], eax
mov eax, dword [0x406a0c]
shr dword [0x406a0c], 0x10
and eax, 0xff
mov dword [0x406a14], eax
shl eax, 8
add eax, dword [0x406a18]
mov dword [0x406a10], eax
call fcn.00404220
test eax, eax
jne 0x4032f4
push 0x1c
call fcn.00403420
add esp, 4
mov dword [ebp - 4], 0
call fcn.00404040
call fcn.00404030
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x408270], eax
call fcn.00403be0
mov dword [0x4069ec], eax
test eax, eax
je 0x403327
cmp dword [0x408270], 0
jne 0x403331
push 0xffffffffffffffff
call fcn.00403480
add esp, 4
call fcn.00403960
call fcn.00403870
call fcn.00403450
mov esi, dword [0x408270]
mov al, byte [esi]
cmp al, 0x22
je 0x403358
cmp al, 0x20
jbe 0x403385
inc esi
cmp byte [esi], 0x20
ja 0x403350
jmp 0x403385
inc esi
cmp byte [esi], 0x22
je 0x403384
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x40337f
xor eax, eax
mov al, bl
push eax
call fcn.00403810
add esp, 4
test eax, eax
je 0x403379
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x403361
cmp byte [esi], 0x22
jne 0x403385
inc esi
cmp byte [esi], 0
je 0x403395
cmp byte [esi], 0x20
ja 0x403395
inc esi
cmp byte [esi], 0
jne 0x40338a
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4033b9
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.00403480
jmp 0x4033fa
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4034c0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x406a48], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x4034de
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x406a44], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x406a40], bl
jne 0x403538
cmp dword [0x408268], 0
je 0x403526
mov edi, dword [0x408264]
sub edi, 4
cmp edi, dword [0x408268]
jb 0x403526
mov eax, dword [edi]
test eax, eax
je 0x40351b
call eax
sub edi, 4
cmp edi, dword [0x408268]
jae 0x403513
push 0x406014
push 0x406010
call fcn.00403570
add esp, 8
push 0x40601c
push 0x406018
call fcn.00403570
add esp, 8
test ebx, ebx
jne 0x40355f
mov dword [0x406a48], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x403be0
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x406af0], ebx
jne 0x403c2f
call esi
cmp eax, ebx
mov edi, eax
je 0x403c0d
mov dword [0x406af0], 1
jmp 0x403c2f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x403c25
mov dword [0x406af0], 2
jmp 0x403c2f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x406af0], 1
jne 0x403cde
test edi, edi
jne 0x403c52
call esi
mov edi, eax
test edi, edi
jne 0x403c52
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x403c6c
add esi, 2
cmp word [esi], 0
jne 0x403c5a
add esi, 2
cmp word [esi], 0
jne 0x403c5a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x403ccd
push ebp
call fcn.004045d0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x403ccd
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403cbc
push ebx
call fcn.00404580
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x406af0], 2
jne 0x403d62
test ebx, ebx
jne 0x403d01
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x403d01
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x403d16
inc ebp
cmp byte [ebp], 0
jne 0x403d08
inc ebp
cmp byte [ebp], 0
jne 0x403d08
sub ebp, ebx
inc ebp
push ebp
call fcn.004045d0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x403d3b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x404380
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x406d20
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x4043a7
add eax, 8
inc ecx
cmp eax, 0x406db0
jb 0x404398
cmp dword [ecx*8 + 0x406d20], edx
lea ebx, [ecx*8]
jne 0x40456b
cmp dword [0x4069f8], 1
je 0x404527
cmp dword [0x4069f8], 0
jne 0x4043de
cmp dword [0x4069fc], 1
je 0x404527
cmp edx, 0xfc
je 0x40456b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x40441b
mov esi, 0x4052e4
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40445f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4052e0
push ebp
call fcn.00404e80
add esp, 0xc
mov esi, 0x4052c4
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4052c0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x406d24]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push 0x405298
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00404de0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x408160], 0
je 0x40453d
mov eax, dword [0x408160]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x404547
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x406d24]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x401460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dfe5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CMemDC.0
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x4014f0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x4014b7
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x4014e1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4014f6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x4014f6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], vtable.CGdiObject.0
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], vtable.CObject.0
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CDC::CDC
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4115e0
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4e1c3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CCannotPlayResolveStatue.0
mov eax, dword [0x53a360]
mov ecx, 0x53a360
mov dword [esp + 0x2c], 7
mov dword [esp + 0x14], ecx
call dword [eax + 4]
mov eax, dword [0x534064]
mov bl, 8
test eax, eax
mov byte [esp + 0x2c], bl
jne 0x4116b6
mov eax, dword [0x534060]
test eax, eax
jne 0x4116b6
push 0x24
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov byte [esp + 0x2c], 9
je 0x41165d
mov ecx, eax
call fcn.0040b730
jmp 0x41165f
xor eax, eax
mov ecx, dword [0x538d98]
mov ebp, dword [0x5265c0]
mov byte [esp + 0x2c], bl
xor edi, edi
lea ebx, [ecx - 1]
mov dword [0x534060], eax
test ebx, ebx
jl 0x411698
lea edx, [esp + 0x1c]
push edi
push edx
mov ecx, 0x538d90
call fcn.00407c20
cmp ebp, dword [esp + 0x20]
jge 0x411698
inc edi
cmp edi, ebx
jle 0x41167d
push 1
mov eax, 0x40b380
push ebp
push eax
push edi
mov ecx, 0x538d90
call fcn.00407c40
mov dword [0x534064], 1
mov eax, dword [0x53a360]
mov ebx, dword [0x534060]
mov ecx, 0x53a360
mov byte [esp + 0x2c], 7
call dword [eax + 8]
lea edi, [esi + 0x108]
mov ecx, ebx
push edi
call fcn.0040f240
mov eax, dword [esi + 0x264]
test eax, eax
je 0x4116fc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x264]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ebp, [esi + 0x17c]
mov dword [esp + 0x18], ebp
lea ebx, [ebp + 0xe0]
mov dword [esp + 0x14], ebx
mov dword [ebx], vtable.CGdiObject.0
mov ecx, ebx
mov byte [esp + 0x2c], 0xd
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [ebp + 0xa0]
mov dword [ebx], vtable.CObject.0
mov byte [esp + 0x2c], 0xb
call sub.MFC42.DLL_CAnimateCtrl::CAnimateCtrl
lea ecx, [ebp + 0x60]
mov byte [esp + 0x2c], 0xa
call sub.MFC42.DLL_CStatic::CStatic
mov ecx, ebp
mov byte [esp + 0x2c], 6
call sub.MFC42.DLL_CDialog::CDialog
lea ecx, [esi + 0x120]
mov byte [esp + 0x2c], 5
call fcn.004dd154
mov eax, dword [edi + 4]
push eax
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_operatordelete
xor eax, eax
add esp, 4
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
lea edi, [esi + 0x100]
mov dword [esp + 0x18], edi
mov dword [edi], vtable.CGdiObject.0
mov ecx, edi
mov byte [esp + 0x2c], 0xe
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esi + 0xf8]
mov dword [edi], vtable.CObject.0
mov byte [esp + 0x2c], 2
call fcn.004dd15a
lea ecx, [esi + 0xa0]
mov byte [esp + 0x2c], 1
call fcn.0040a960
lea ecx, [esi + 0x60]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CStatic::CStatic
mov ecx, esi
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CDialog::CDialog
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x412e80
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e1e32
push eax
mov dword fs:[0], esp
sub esp, 0x20
xor eax, eax
push esi
mov esi, dword [esp + 0x34]
cmp esi, eax
je 0x412eff
mov ecx, dword [esp + 0x38]
cmp ecx, eax
je 0x412eff
mov dl, byte [esp + 0x34]
mov dword [esp + 8], eax
mov byte [esp + 4], dl
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dl, byte [esp + 0x34]
mov dword [esp + 0x2c], eax
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
add ecx, 0x30
add esi, 0x30
push ecx
push esi
mov byte [esp + 0x34], 1
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x24]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x414c30
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x29c]
cmp eax, 1
jne 0x414c79
mov eax, dword [esi + 0x38c]
lea edi, [esi + 0x38c]
test eax, eax
jne 0x414c67
push edi
push 0x526410
call fcn.004184b0
mov ecx, eax
call fcn.0043f470
mov eax, dword [edi]
test eax, eax
je 0x414cb6
mov ecx, dword [eax]
push 0x5257bc
push str.DAILY.BKBNOPLAYBTNSUCC2
push eax
call dword [ecx + 0x24]
jmp 0x414cb6
cmp eax, 2
jne 0x414cb6
mov eax, dword [esi + 0x38c]
lea edi, [esi + 0x38c]
test eax, eax
jne 0x414ca6
push edi
push 0x526410
call fcn.004184b0
mov ecx, eax
call fcn.0043f470
mov eax, dword [edi]
test eax, eax
je 0x414cb6
mov edx, dword [eax]
push 0x5257bc
push str.DAILY.BKBBADPLAYBTNSUCC2
push eax
call dword [edx + 0x24]
mov ecx, esi
call fcn.00414d10
test eax, eax
je 0x414cec
push 0
push 0
push esi
push 0x413010
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
lea ecx, [esi + 0x184]
mov dword [esi + 0x388], eax
add esp, 0x18
mov eax, dword [ecx]
call dword [eax + 0xc0]
pop edi
pop esi
ret
Function at 0x418be0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x30c
mov dl, byte [0x533fe0]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x219]
mov byte [esp + 0x218], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x328]
lea ecx, [esp + 0x114]
push 0x104
push ecx
push 0
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x114]
push 0x527bd4
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [esp + 0x324]
xor ebx, ebx
test eax, eax
jle 0x418d1a
mov eax, dword [esp + 0x320]
lea esi, [eax + 4]
mov ecx, dword [esi - 4]
lea edx, [esp + 0x114]
push ecx
push edx
push 0x527bcc
lea eax, [esp + 0x1c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x418d5f
cmp dword [esi], 0
je 0x418d07
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x218]
lea edx, [esp + 0x218]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [esp + 0x14]
push edx
push eax
mov ecx, ebp
call fcn.00418d90
mov eax, dword [esi]
lea ecx, [esp + 0x218]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jl 0x418d39
mov eax, dword [esp + 0x324]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x418c8a
mov ecx, dword [esp + 0x328]
pop edi
pop esi
pop ebp
mov dword [ecx], 0
mov eax, 1
pop ebx
add esp, 0x30c
ret 0xc
mov eax, dword [esp + 0x320]
lea edx, [ebx + ebx*2]
pop edi
pop esi
mov ecx, dword [eax + edx*4 + 8]
mov edx, dword [esp + 0x320]
pop ebp
xor eax, eax
mov dword [edx], ecx
pop ebx
add esp, 0x30c
ret 0xc
mov ecx, dword [esp + 0x320]
lea eax, [ebx + ebx*2]
pop edi
pop esi
mov edx, dword [ecx + eax*4 + 8]
mov eax, dword [esp + 0x320]
pop ebp
pop ebx
mov dword [eax], edx
xor eax, eax
add esp, 0x30c
ret 0xc
Function at 0x418d90
Capabilities:
Get file version info

Disassembly:
mov eax, 0x200c
call fcn.004dd860
mov al, byte [0x533fe0]
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x15]
mov esi, dword [esp + 0x201c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
stosb byte es:[edi], al
je 0x418dc3
mov byte [esi], 0
mov edi, dword [esp + 0x2018]
lea ecx, [esp + 0xc]
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
je 0x418e75
cmp eax, 0x1fff
ja 0x418e75
lea edx, [esp + 0x14]
push edx
push eax
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x418e75
lea eax, [esp + 0x10]
lea ecx, [esp + 8]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x5268d0
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x418e75
mov edx, dword [esp + 0x2020]
push ebx
mov ecx, edx
xor eax, eax
mov ebx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov cx, word [eax + 0xc]
push ecx
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
push ecx
xor ecx, ecx
mov cx, word [eax + 8]
mov eax, dword [eax + 8]
shr eax, 0x10
push ecx
push eax
dec edx
push 0x5265d8
push edx
push esi
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x1c
mov eax, 1
pop ebx
pop edi
pop esi
add esp, 0x200c
ret 0xc
pop edi
xor eax, eax
pop esi
add esp, 0x200c
ret 0xc
Function at 0x41a820
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0xc0
push esi
push edi
mov ecx, 9
xor eax, eax
lea edi, [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
rep stosd dword es:[edi], eax
mov ecx, 0x27
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x9c
push eax
call esi
test eax, eax
jne 0x41a875
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x94
push ecx
call esi
test eax, eax
jne 0x41a875
pop edi
pop esi
add esp, 0xc0
ret
mov edx, dword [esp + 0xcc]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0xd0]
push str.GetNativeSystemInfo
mov dword [edx], eax
mov edx, dword [esp + 0x38]
push str.kernel32.dll
mov dword [ecx], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41a8b3
lea ecx, [esp + 8]
push ecx
call eax
jmp 0x41a8be
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x3c]
sub eax, 2
je 0x41a8d2
pop edi
xor eax, eax
pop esi
add esp, 0xc0
ret
mov ax, word [esp + 8]
cmp ax, 6
jne 0x41a8eb
pop edi
mov eax, 2
pop esi
add esp, 0xc0
ret
xor ecx, ecx
cmp ax, 9
sete cl
pop edi
mov eax, ecx
pop esi
add esp, 0xc0
ret