joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4511b1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x48691a
call fcn.0046b217
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4511d6
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x451222
call fcn.00452867
push eax
lea ecx, [ebp - 0x10]
call fcn.004025f0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00450a04
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402330
mov eax, esi
call fcn.0046b2ef
ret 8

Function at 0x455a27
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x1f4]
sub esp, 0x274
mov eax, dword [0x4bc7b8]
xor eax, ebp
mov dword [ebp + 0x1f0], eax
cmp dword [ebp + 0x200], 0x800
mov eax, dword [ebp + 0x1fc]
push esi
mov dword [ebp - 0x40], eax
mov esi, ecx
lea eax, [ebp + 0x1e8]
jne 0x455ac5
push 0x48ec44
push 4
push eax
call fcn.00467e2b
push eax
call fcn.004027d0
add esp, 0x10
push ebx
push edi
call fcn.00469d8c
mov edi, dword [eax]
call fcn.00469d8c
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp + 0x1e8]
push eax
push dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.004680b4
add esp, 0x18
mov dword [ebp - 0x40], eax
call fcn.00469d8c
cmp dword [eax], ebx
je 0x455adc
call fcn.00469d8c
push dword [eax]
call fcn.0044ac42
pop ecx
jmp 0x455ae3
push 4
push eax
push 3
push dword [ebp + 0x200]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x455a76
jmp 0x455b55
call fcn.00469d8c
mov dword [eax], edi
cmp dword [ebp - 0x40], 0xffffffff
je 0x455b51
cmp dword [ebp - 0x40], esi
jae 0x455b51
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.0046adc0
add esp, 0xc
push 0x48e494
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x455b43
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x455b43
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x455b43
push ebx
push ebx
push esi
jmp 0x455b49
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x455b53
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x1f0]
xor ecx, ebp
pop esi
call fcn.004677d8
add ebp, 0x1f4
leave
ret
Function at 0x4572e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x45732b
call fcn.00454a66
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45732b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x45736e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x457357
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x457357
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x45736b
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4677d8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bc7b8]
jne 0x4677e2
repz ret
jmp fcn.0046fb5d
Function at 0x46850e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x46854b
cmp dword [ebp + 0x14], edi
je 0x46854b
cmp ecx, edi
jne 0x468552
call fcn.00469d8c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004677a4
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x468566
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x468587
cmp ebx, 0xffffffff
je 0x468576
push ebx
push edi
push ecx
call fcn.0046adc0
add esp, 0xc
cmp esi, edi
je 0x468533
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x468533
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4685a3
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4685aa
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x46869b
test word [esi + 0xc], 0x10c
je 0x4685fe
mov eax, dword [esi + 4]
test eax, eax
je 0x4685fe
jl 0x4686fc
cmp ebx, eax
mov edi, ebx
jb 0x4685cf
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4686a3
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00467474
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x468693
cmp ebx, dword [ebp - 0xc]
jb 0x46866b
cmp dword [ebp - 0xc], 0
je 0x468628
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x46861d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x468624
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x468633
mov eax, SysReAllocString
cmp ebx, eax
ja 0x468633
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4686cf
push eax
push dword [ebp - 8]
push esi
call fcn.00475005
pop ecx
push eax
call fcn.00474f08
add esp, 0xc
test eax, eax
je 0x46870e
cmp eax, 0xffffffff
je 0x4686fc
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x468693
push esi
call fcn.00474827
cmp eax, 0xffffffff
pop ecx
je 0x468700
cmp dword [ebp - 4], 0
je 0x4686cf
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4685b2
mov eax, dword [ebp + 0x14]
jmp 0x46854d
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4686ba
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0046adc0
add esp, 0xc
call fcn.00469d8c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x468543
cmp dword [ebp + 0xc], 0xffffffff
je 0x4686e5
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0046adc0
add esp, 0xc
call fcn.00469d8c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x468543
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x46854d
or dword [esi + 0xc], 0x10
jmp 0x468700
Function at 0x469206
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x469233
call fcn.00469d9f
mov dword [eax], esi
call fcn.00469d8c
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004677a4
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x46920f
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x469262
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00469db2
pop ecx
call fcn.00469d8c
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x469289
test al, 1
je 0x469289
test byte [esp + 0xc], 2
je 0x469289
call fcn.00469d9f
mov dword [eax], 5
call fcn.00469d8c
mov dword [eax], 0xd
jmp 0x469259
xor eax, eax
pop esi
ret
Function at 0x46e456
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4bc7e0]
je 0x46e471
inc edi
cmp edi, 0x17
jb 0x46e462
cmp edi, 0x17
jae 0x46e5f1
push ebp
push 3
call fcn.0047b67f
cmp eax, 1
pop ecx
je 0x46e5bd
push 3
call fcn.0047b67f
test eax, eax
pop ecx
jne 0x46e4a5
cmp dword [0x4bc5ec], 1
je 0x46e5bd
cmp ebx, 0xfc
je 0x46e5f0
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4c2690
push ebp
call fcn.00467dc6
add esp, 0xc
test eax, eax
je 0x46e4db
push esi
push esi
push esi
push esi
push esi
call fcn.004676a8
add esp, 0x14
push 0x104
mov esi, 0x4c26a9
push esi
push 0
mov byte [0x4c27ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46e51f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00467dc6
add esp, 0xc
test eax, eax
je 0x46e51f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004676a8
add esp, 0x14
push esi
call fcn.0046d4d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x46e564
push esi
call fcn.0046d4d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4c29a4
push 0x490bbc
sub ecx, eax
push ecx
push eax
call fcn.0046a4dc
add esp, 0x14
test eax, eax
je 0x46e564
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004676a8
add esp, 0x14
jmp 0x46e566
xor esi, esi
push 0x490bb8
push ebx
push ebp
call fcn.0046a30e
add esp, 0xc
test eax, eax
je 0x46e586
push esi
push esi
push esi
push esi
push esi
call fcn.004676a8
add esp, 0x14
push dword [edi*8 + 0x4bc7e4]
push ebx
push ebp
call fcn.0046a30e
add esp, 0xc
test eax, eax
je 0x46e5a8
push esi
push esi
push esi
push esi
push esi
call fcn.004676a8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0047b4c2
add esp, 0xc
jmp 0x46e5f0
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x46e5f0
cmp ebp, 0xffffffff
je 0x46e5f0
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4bc7e4]
push dword [esi]
call fcn.0046d4d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x47b4c2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046f01a
xor ebx, ebx
cmp dword [0x4c3198], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x47b598
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x47b678
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x47b678
push eax
call fcn.0046efac
mov dword [esp], 0x490fd4
push edi
mov dword [0x4c3198], eax
call esi
push eax
call fcn.0046efac
mov dword [esp], 0x490fc0
push edi
mov dword [0x4c319c], eax
call esi
push eax
call fcn.0046efac
mov dword [0x4c31a0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046d1cb
test eax, eax
pop ecx
pop ecx
je 0x47b566
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004676a8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x47b598
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0046efac
cmp eax, ebx
pop ecx
mov dword [0x4c31a8], eax
je 0x47b598
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046efac
pop ecx
mov dword [0x4c31a4], eax
mov eax, dword [0x4c31a4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x47b61d
cmp dword [0x4c31a8], ecx
je 0x47b61d
push eax
call fcn.0046f023
push dword [0x4c31a8]
mov esi, eax
call fcn.0046f023
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x47b61d
cmp edi, ebx
je 0x47b61d
call esi
cmp eax, ebx
je 0x47b5ea
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47b5ea
test byte [ebp - 0x18], 1
jne 0x47b61d
lea eax, [ebp - 0x10]
push eax
call fcn.0046d202
test eax, eax
pop ecx
je 0x47b605
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004676a8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x47b614
or dword [ebp + 0x10], 0x200000
jmp 0x47b658
or dword [ebp + 0x10], 0x40000
jmp 0x47b658
mov eax, dword [0x4c319c]
cmp eax, dword [ebp - 8]
je 0x47b658
push eax
call fcn.0046f023
cmp eax, ebx
pop ecx
je 0x47b658
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x47b658
mov eax, dword [0x4c31a0]
cmp eax, dword [ebp - 8]
je 0x47b658
push eax
call fcn.0046f023
cmp eax, ebx
pop ecx
je 0x47b658
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c3198]
call fcn.0046f023
cmp eax, ebx
pop ecx
je 0x47b678
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x47b67a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x485b2e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4bc7b8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00485ac3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0046adc0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x485b7d
cmp dword [ebp - 0x1c], 5
jb 0x485b95
jmp 0x485b91
cmp dword [ebp - 0x10], 1
jne 0x485b95
cmp dword [ebp - 0x1c], 4
ja 0x485b91
jne 0x485b95
cmp dword [ebp - 0x18], 0
jbe 0x485b95
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4932d4
call fcn.004859b4
test eax, eax
jge 0x485bb6
mov byte [0x4c51c8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004677d8
add ebp, 0x78
leave
ret
Function at 0x401180
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x40d180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x20]
push 0
push 0x400
push 0x400
mov edi, dword [esi]
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::GetBufferSetLength
push eax
mov ecx, esi
call dword [edi + 0x14]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edi, dword [esp + 0x24]
test edi, edi
je 0x4011f7
push 0x414050
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 8]
mov ecx, dword [esi + 8]
push eax
push ecx
lea edx, [esp + 0x14]
push str.OLE_Exception_Code__x._n_n_s
push edx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_CString::Format
mov eax, dword [esi + 8]
add esp, 0x10
cmp eax, 0x80010005
pop edi
pop esi
je 0x40123c
mov eax, dword [esp + 4]
push 0
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox
jmp 0x401247
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 4]
mov byte [esp + 0x10], 0
call fcn.0040c286
lea ecx, [esp]
mov dword [esp + 0x10], 0xffffffff
call fcn.0040c286
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40a1b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
sub esp, 0x10c
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40a22c
mov eax, dword [esp + 4]
test eax, eax
je 0x40a22c
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x128]
push ecx
push esi
push edx
push eax
mov dword [esp + 0x20], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a221
mov ecx, dword [esp + 0x114]
lea eax, [esp + 0x10]
push eax
call fcn.0040c292
mov esi, 1
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0x10

Function at 0x40a240
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x40e1df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x10], 1
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40a29c
mov al, byte [esi + eax]
lea ecx, [esp + 0x1c]
xor al, 9
push eax
push esi
call sub.MFC42.DLL_CString::SetAt
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, dword [eax - 8]
jl 0x40a282
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 4], 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x10], 0
call fcn.0040c286
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x40a2e0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x40e215
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push esi
push edi
push str.0.0.0
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_2
mov edi, dword [esp + 0x134]
mov dword [esp + 0x128], 1
test edi, edi
jne 0x40a33c
lea eax, [esp + 0x1c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x40a35d
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
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]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x40a3d8
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
lea eax, [esp + 0x1c]
push edi
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40a3cf
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x414ea4
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [esp + 0x10]
xor edx, edx
mov ecx, dword [eax + 0xc]
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
push edx
shr eax, 0x10
push eax
lea ecx, [esp + 0x14]
push str._d._d._d
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esp + 0x130]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], 1
lea ecx, [esp + 8]
mov byte [esp + 0x128], 0
call fcn.0040c286
mov ecx, dword [esp + 0x120]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x124
ret 8
Function at 0x40bc50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40e4b7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x30]
push esi
mov dword [esp + 0x1c], 0
lea edx, [eax*8]
sub edx, eax
mov eax, dword [ecx + 0x68]
mov ecx, dword [eax + edx*4 + 0xc]
lea esi, [eax + edx*4]
neg ecx
sbb ecx, ecx
mov dword [esp + 8], ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 8]
mov dword [esp + 0x28], 1
test eax, eax
je 0x40bd80
push ebx
mov bl, 5
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x38]
lea eax, [esp + 8]
push edx
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CMapStringToString::GetNextAssoc
lea edx, [esp + 8]
push 0x415cbc
lea eax, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x38]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_operator
push 0x4145f4
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x34], bl
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 6
call fcn.0040c42a
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], bl
call fcn.0040c286
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 4
call fcn.0040c286
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 3
call fcn.0040c286
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 2
call fcn.0040c286
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 1
call fcn.0040c286
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40bcb0
pop ebx
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.0040c286
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x416153
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x416192
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416192
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416192
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x416192
cmp dword [ecx + 0x74], 0xe
jbe 0x416192
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x428560
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42858d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42858d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a