joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100059b0
Capabilities:
Create process on windows
Delete file
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x18], eax
push 0x100
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x100059e4
xor al, al
jmp 0x10005b82
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x220]
push eax
push str.:fl_r_ndel__s_r_nif_exist__s_goto_fl_r_ndel___0_r_n
lea ecx, [ebp - 0x670]
push ecx
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x120]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str._______
lea eax, [ebp - 0x120]
push eax
call sub.msvcrt.dll_strcat
add esp, 8
push 3
lea ecx, [ebp - 0x120]
push ecx
call sub.msvcrt.dll_strlen
add esp, 4
lea edx, [ebp + eax - 0x120]
push edx
call fcn.10005d60
add esp, 8
push str..cmd
lea eax, [ebp - 0x120]
push eax
call sub.msvcrt.dll_strcat
add esp, 8
push 0
push 0x20
push 2
push 0
push 0
push 0x10000000
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x26c], eax
cmp dword [ebp - 0x26c], 0xffffffff
jne 0x10005a94
xor al, al
jmp 0x10005b82
push 0
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x670]
push eax
call sub.msvcrt.dll_strlen
add esp, 4
push eax
lea ecx, [ebp - 0x670]
push ecx
mov edx, dword [ebp - 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10005ae3
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x10005b82
mov edx, dword [ebp - 0x26c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x44
push 0
lea eax, [ebp - 0x268]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x10]
push ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x268], 0x44
xor edx, edx
mov word [ebp - 0x238], dx
mov dword [ebp - 0x23c], 1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x268]
push ecx
push 0
push 0
push 0x8000040
push 0
push 0
push 0
lea edx, [ebp - 0x120]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 0x270], eax
cmp dword [ebp - 0x270], 0
je 0x10005b80
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x10005b82
xor al, al
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1000415e
mov esp, ebp
pop ebp
ret
Function at 0x10005b90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 1
jne 0x10005c1a
cmp dword [ebp - 0x9c], 4
jne 0x10005c13
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0xa4], ecx
cmp dword [ebp - 0xa4], 0
je 0x10005bf5
cmp dword [ebp - 0xa4], 0xa
je 0x10005bff
cmp dword [ebp - 0xa4], 0x5a
je 0x10005c09
jmp 0x10005c13
mov eax, 0x5f
jmp 0x10005cbe
mov eax, 0x62
jmp 0x10005cbe
mov eax, 0x4d45
jmp 0x10005cbe
xor eax, eax
jmp 0x10005cbe
cmp dword [ebp - 0x90], 2
jne 0x10005cbc
cmp dword [ebp - 0x9c], 3
jne 0x10005c3a
mov eax, 0x4e54
jmp 0x10005cbe
cmp dword [ebp - 0x9c], 5
jne 0x10005c81
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0xa8], edx
cmp dword [ebp - 0xa8], 0
je 0x10005c6c
cmp dword [ebp - 0xa8], 1
je 0x10005c73
cmp dword [ebp - 0xa8], 2
je 0x10005c7a
jmp 0x10005c81
mov eax, 0x7d0
jmp 0x10005cbe
mov eax, 0x5850
jmp 0x10005cbe
mov eax, 0x7d3
jmp 0x10005cbe
cmp dword [ebp - 0x9c], 6
jne 0x10005cb8
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
je 0x10005caa
cmp dword [ebp - 0xac], 1
je 0x10005cb1
jmp 0x10005cb8
mov eax, 0x56495354
jmp 0x10005cbe
mov eax, 0x7d8
jmp 0x10005cbe
xor eax, eax
jmp 0x10005cbe
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000415e
mov esp, ebp
pop ebp
ret

Function at 0x10005cd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 1
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 0
lea edx, [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 8]
push eax
push 1
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10005d23
xor eax, eax
jmp 0x10005d4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10005d3e
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10005d4d
cmp dword [ebp - 0x18], 0xffffffff
jne 0x10005d4a
xor eax, eax
jmp 0x10005d4d
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x10005e40
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
je 0x10005e56
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x10005e5a
xor eax, eax
jmp 0x10005ea9
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10005e8c
mov eax, dword [ebp - 4]
movsx ecx, word [eax + 0xa]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 8]
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x10005e99
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x10005ea6
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40120e
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
and dword [ebp - 4], 0
mov edi, 0x105
lea eax, [ebp - 0x120]
push edi
push eax
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x228]
push edi
push eax
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x120]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x228]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test edi, edi
mov ebx, eax
je 0x40132f
test ebx, ebx
je 0x40132f
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push edi
call esi
pop ecx
mov dword [ebp + 8], eax
push ebx
call esi
cmp dword [ebp + 8], 0
pop ecx
mov dword [ebp + 0xc], eax
je 0x401315
test eax, eax
je 0x401311
push dword [ebp + 8]
lea eax, [ebp - 0x120]
push edi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401311
push dword [ebp + 0xc]
lea eax, [ebp - 0x228]
push ebx
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401311
lea eax, [ebp - 0x10]
mov esi, 0x403118
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 8]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401311
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401311
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 8]
jne 0x401311
mov eax, dword [eax + 0xc]
cmp eax, dword [ecx + 0xc]
jne 0x401311
mov dword [ebp - 4], 1
cmp dword [ebp + 8], 0
mov esi, dword [sym.imp.MSVCRT.dll_free]
je 0x401323
push dword [ebp + 8]
call esi
pop ecx
cmp dword [ebp + 0xc], 0
je 0x40132f
push dword [ebp + 0xc]
call esi
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401740
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020f8
push 0x401940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x4032c8], 0xffffffff
mov dword [0x4032cc], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4032c0]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x4032bc]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x4032d0], ecx
call fcn.00401930
mov eax, dword [0x4032a4]
test eax, eax
jne 0x4017d1
push 0x401920
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00401900
push 0x40300c
push 0x403008
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x4032b8]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x4032b4]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x403004
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4018df
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x401845
cmp al, 0x22
jne 0x401837
cmp byte [esi], 0x22
jne 0x40184e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40185e
cmp al, 0x20
ja 0x40185e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40184e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40187f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401884
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4018c4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40184e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4018df
Function at 0x4011c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011ed
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40120e
cmp esi, eax
jae 0x4011e7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401200
cmp esi, eax
jae 0x4011e7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403100
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4762db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x14], esi
call fcn.00405fa0
test al, al
jne 0x403144
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
lea ecx, [ebp - 0x2c]
call fcn.0046a7cd
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0x1c]
push esi
push 0x3021
push edi
lea ecx, [ebp - 0x2c]
call fcn.0046aa65
test eax, eax
jne 0x4031c8
push 0x18
call fcn.00468cd5
mov edi, eax
add esp, 4
mov dword [ebp + 0x10], edi
test edi, edi
mov ebx, 1
mov byte [ebp - 4], bl
je 0x4031ae
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp + 0x1c]
push ecx
call fcn.004050d0
add esp, 8
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov eax, dword [eax]
push edx
push ecx
push eax
mov ecx, edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], ebx
call fcn.00403030
jmp 0x4031b0
xor eax, eax
push 0x48e254
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 4], 3
mov dword [ebp - 0x18], eax
call fcn.00449f2c
lea ecx, [ebp - 0x2c]
call fcn.0046a6c5
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x18]
push ecx
push eax
mov eax, dword [ebp + 0x14]
push esi
push edx
mov edx, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push edx
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00402c40
mov bl, al
test bl, bl
mov dword [ebp - 4], 0
je 0x40321e
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40321e
push 0xffffffffffffffff
call fcn.00404130
add esp, 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0046a80c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, bl
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x403460
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
sub esp, 0x230
mov eax, dword [0x49afa0]
push ebx
push ebp
push esi
mov dword [esp + 0x238], eax
push edi
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea ecx, [esp + 0x10]
push ecx
call ebx
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add edi, ecx
adc esi, eax
rdtsc
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
lea esp, [esp]
lea ecx, [esp + 0x10]
push ecx
call ebx
mov edx, dword [esp + 0x14]
cmp edx, esi
jl 0x4034c0
jg 0x4034d9
mov eax, dword [esp + 0x10]
cmp eax, edi
jbe 0x4034c0
rdtsc
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
xor ecx, ecx
mov dword [0x49c560], ecx
mov dword [0x49c564], ecx
mov dword [0x49c568], ecx
mov byte [0x49c56c], cl
mov eax, 0
cpuid
mov byte [0x49c560], bl
mov byte [0x49c561], bh
ror ebx, 0x10
mov byte [0x49c562], bl
mov byte [0x49c563], bh
mov byte [0x49c564], dl
mov byte [0x49c565], dh
ror edx, 0x10
mov byte [0x49c566], dl
mov byte [0x49c567], dh
mov byte [0x49c568], cl
mov byte [0x49c569], ch
ror ecx, 0x10
mov byte [0x49c56a], cl
mov byte [0x49c56b], ch
mov eax, 1
cpuid
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], eax
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x38]
lea edx, [esp + 0x3c]
push str._CPU_Information__n_n
shr esi, 4
push edx
mov byte [0x49c56c], 0
shr ebx, 8
and esi, 0xf
and ebp, 0xf
call fcn.0044a00f
lea eax, [esp + 0x44]
add esp, 8
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4035a0
sub eax, edi
mov edi, dword [esp + 0x244]
mov edx, dword [edi]
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call dword [edx + 0x38]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
sub ecx, edx
mov edx, dword [esp + 0x24]
push 0
push 0xf4240
sbb edx, eax
push edx
push ecx
call fcn.0044a070
push eax
push ebp
push esi
push ebx
push 0x49c560
lea eax, [esp + 0x50]
push str.CPU_ID___s___family___d___model___d___stepping___d______d_MHz_n_n_n
push eax
call fcn.0044a00f
lea eax, [esp + 0x58]
add esp, 0x1c
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403601
mov edx, dword [edi]
sub eax, ecx
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
call fcn.004497f7
add esp, 0x230
ret 4
Function at 0x403630
Capabilities:
Check os version
Get memory capacity

Disassembly:
sub esp, 0x2b8
mov eax, dword [0x49afa0]
push esi
mov dword [esp + 0x2b8], eax
push edi
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edi, dword [esp + 0x10]
lea edx, [esp + 0xbc]
push str._Operating_System_Information__n_n
push edx
call fcn.0044a00f
lea eax, [esp + 0xc4]
add esp, 8
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403690
mov esi, dword [esp + 0x2c4]
sub eax, edx
mov edx, dword [esi]
push eax
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
push edx
lea eax, [esp + 0xc4]
push str._tVersion___d._d_n
push eax
call fcn.0044a00f
lea eax, [esp + 0xcc]
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4036e0
sub eax, edx
mov edx, dword [esi]
push eax
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0xc4]
push str._tBuild___d___s__n
push eax
call fcn.0044a00f
lea eax, [esp + 0xcc]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403722
sub eax, edx
mov edx, dword [esi]
push eax
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call dword [edx + 0x38]
shr edi, 0xa
push edi
lea ecx, [esp + 0xc0]
push str._tMemory___dKB_n
push ecx
call fcn.0044a00f
lea eax, [esp + 0xc8]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403760
sub eax, edx
mov edx, dword [esi]
push eax
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov eax, dword [esp + 0x2c]
cmp eax, 5
jne 0x4037bc
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x40379c
push str._tWindows_2000.._n_n_n
lea ecx, [esp + 0xc0]
push ecx
jmp 0x40382f
cmp eax, 1
jne 0x4037a8
push str._tWindows_xp.._n_n_n
jmp 0x403827
cmp eax, 2
jne 0x403813
push str._tWindows_2003.._n_n_n
lea eax, [esp + 0xc0]
push eax
jmp 0x40382f
cmp eax, 4
jne 0x4037f8
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x4037d0
push str._tWindows_95.._n_n_n
jmp 0x403827
cmp eax, 0xa
jne 0x4037e4
push str._tWindows_98.._n_n_n
lea eax, [esp + 0xc0]
push eax
jmp 0x40382f
cmp eax, 0x5a
jne 0x403822
push str._tWindows_Me.._n_n_n
lea ecx, [esp + 0xc0]
push ecx
jmp 0x40382f
cmp eax, 3
jne 0x403822
cmp dword [esp + 0x30], 0x33
jne 0x403813
push str._tWindows_NT_3.51.._n_n_n
lea eax, [esp + 0xc0]
push eax
jmp 0x40382f
push str._t.._n_n_n
lea ecx, [esp + 0xc0]
push ecx
jmp 0x40382f
push str._t.._n_n_n
lea edx, [esp + 0xc0]
push edx
call fcn.0044a00f
lea eax, [esp + 0xc4]
add esp, 8
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403841
sub eax, edx
mov edx, dword [esi]
push eax
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [esp + 0x2bc]
pop edi
pop esi
call fcn.004497f7
add esp, 0x2b8
ret 4
Function at 0x404d10
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0xc], eax
ja 0x404d4c
jb 0x404d40
cmp eax, ebx
jae 0x404d4c
mov eax, ebx
mov edx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x28]
push 0
push eax
push edx
push ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 8], eax
jne 0x404d73
call fcn.004013c0
pop edi
pop esi
pop ebx
add esp, 8
ret 0x18
test ebx, ebx
mov edx, dword [esp + 0x20]
jne 0x404d86
mov ecx, dword [esp + 0xc]
sub ecx, edx
mov dword [esi + 4], ecx
jmp 0x404d89
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x24]
push 0
mov dword [esi + 0x14], edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push ecx
push eax
mov dword [esi + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
mov dword [esi], eax
jne 0x404dd9
call fcn.004013c0
mov edi, eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov dword [esi + 8], 0
pop esi
pop ebx
add esp, 8
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x18

Function at 0x404f60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4764d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00404260
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004041e0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404ff2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4053c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x476570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x58], ebp
call fcn.0046a7cd
lea ecx, [esp + 0x1c]
mov byte [esp + 0x58], 1
call fcn.0046989e
mov edi, vtable.CFileException.0
mov dword [esp + 0x1c], edi
call fcn.0046990a
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0xffffffff
call fcn.004026a0
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x1c]
push eax
push 0x20
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x64], 3
call fcn.0046aa65
test eax, eax
jne 0x405459
push 0xffffffffffffffff
call fcn.00404130
add esp, 4
mov edx, dword [esp + 0x10]
push 4
push 2
push ebp
push ebp
push ebp
push edx
lea ecx, [esp + 0x48]
call fcn.00404d10
test eax, eax
jge 0x40547c
push 0xffffffffffffffff
call fcn.00404130
add esp, 4
mov esi, dword [esp + 0x30]
or edx, 0xffffffff
cmp word [esi], 0x5a4d
mov byte [esp + 0x58], 1
je 0x405500
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x1c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054ae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], 0
call fcn.0046a80c
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x4054d0
call fcn.004013c0
mov edi, eax
mov eax, dword [esp + 0x38]
cmp eax, ebp
je 0x4054ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4054ec
cmp edi, ebp
jl 0x4054ec
call fcn.004013c0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 8]
add eax, esi
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esp + 0x1c], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405528
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xc]
mov byte [esp + 0x58], 0
call fcn.0046a80c
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
jne 0x40554a
call fcn.004013c0
mov edi, eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x405566
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x405566
test edi, edi
jl 0x405566
call fcn.004013c0
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
add esp, 0x50
ret