joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404424
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x40ab08]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x40446e
call esi
mov edi, eax
cmp edi, ebx
je 0x404454
mov dword [0x40ab08], 1
jmp 0x404473
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x404469
push 2
pop eax
mov dword [0x40ab08], eax
jmp 0x40446e
mov eax, dword [0x40ab08]
cmp eax, 1
jne 0x4044eb
cmp edi, ebx
jne 0x40447f
call esi
mov edi, eax
cmp edi, ebx
je 0x4044f4
cmp word [edi], bx
mov eax, edi
je 0x404494
inc eax
inc eax
cmp word [eax], bx
jne 0x404486
inc eax
inc eax
cmp word [eax], bx
jne 0x404486
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x4044e2
call fcn.00404ccc
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4044e2
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x4044df
push dword [ebp - 4]
call fcn.00404c91
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x404543
cmp eax, 2
je 0x4044f8
cmp eax, ebx
je 0x4044f8
xor eax, eax
jmp 0x404545
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4044f4
cmp byte [esi], bl
je 0x404515
inc eax
cmp byte [eax], bl
jne 0x40450b
inc eax
cmp byte [eax], bl
jne 0x40450b
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.00404ccc
cmp eax, ebx
je 0x40453c
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404d48
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404dd0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404dac
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x40a67c]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x404db0
xor eax, eax
jmp 0x404dbd
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4051cd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40ab30], ebx
push esi
push edi
jne 0x40524d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405288
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40ab30], eax
je 0x405288
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40ab34], eax
call esi
cmp dword [0x40a67c], 2
mov dword [0x40ab38], eax
jne 0x40524d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40ab40], eax
je 0x40524d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40ab3c], eax
mov eax, dword [0x40ab3c]
test eax, eax
je 0x405292
call eax
test eax, eax
je 0x405279
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40ab40]
test eax, eax
je 0x405279
test byte [ebp - 8], 1
jne 0x405292
cmp dword [0x40a688], 4
jb 0x40528c
or byte [ebp + 0x12], 0x20
jmp 0x4052b1
xor eax, eax
jmp 0x4052c1
or byte [ebp + 0x12], 4
jmp 0x4052b1
mov eax, dword [0x40ab34]
test eax, eax
je 0x4052b1
call eax
mov ebx, eax
test ebx, ebx
je 0x4052b1
mov eax, dword [0x40ab38]
test eax, eax
je 0x4052b1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40ab30]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d34
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x405d62
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x405d69
cmp ebx, dword [eax + 4]
jae 0x405d69
xor eax, eax
jmp 0x405f59
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x405d7a
xor eax, eax
inc eax
jmp 0x405f58
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x405d90
cmp ecx, edx
jae 0x405ed5
cmp dword [eax + 4], 0
je 0x405d99
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x405d81
cmp dword [ebp + 8], 0
je 0x405dbb
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x405ed5
cmp eax, esi
jae 0x405ed5
mov eax, dword [0x40ab48]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x405de0
cmp dword [esi*4 + 0x40ab50], edi
je 0x405ed9
inc esi
cmp esi, eax
jl 0x405dce
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405f55
cmp dword [ebp - 8], 0x1000000
jne 0x405f55
test byte [ebp - 0xc], 0xcc
je 0x405e5e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x405f55
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405f55
cmp word [eax + 0x18], 0x10b
jne 0x405f55
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x405f55
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x405e5e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x405e5e
test byte [ecx + 0x27], 0x80
jne 0x405ed5
push 1
push 0x40ab90
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x405d72
mov ecx, dword [0x40ab48]
test ecx, ecx
mov edx, ecx
jle 0x405e92
lea eax, [ecx*4 + 0x40ab4c]
cmp dword [eax], edi
je 0x405e92
dec edx
sub eax, 4
test edx, edx
jg 0x405e86
test edx, edx
jne 0x405ec3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x405e9f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x405eb7
lea eax, [edx*4 + 0x40ab50]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x405ea5
cmp ecx, 0x10
jge 0x405ec3
inc ecx
mov dword [0x40ab48], ecx
push 0
push 0x40ab90
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x405d72
xor eax, eax
jmp 0x405f58
test esi, esi
jle 0x405d72
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40ab90
call ebx
test eax, eax
jne 0x405d72
cmp dword [esi*4 + 0x40ab50], edi
je 0x405f2f
mov eax, dword [0x40ab48]
lea esi, [eax - 1]
test esi, esi
jl 0x405f1d
cmp dword [esi*4 + 0x40ab50], edi
je 0x405f19
dec esi
jns 0x405f0d
test esi, esi
jge 0x405f2d
cmp eax, 0x10
jge 0x405f28
inc eax
mov dword [0x40ab48], eax
lea esi, [eax - 1]
jmp 0x405f2f
je 0x405f47
xor ecx, ecx
test esi, esi
jl 0x405f47
lea eax, [ecx*4 + 0x40ab50]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x405f35
push 0
push 0x40ab90
call ebx
jmp 0x405d72
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406074
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x40abc0]
push ebx
push esi
push edi
jae 0x4061f9
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40abe0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x14], ebx
je 0x4061f9
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x4060c8
xor eax, eax
jmp 0x40620d
test al, 0x20
je 0x4060d9
push 2
push edi
push edi
push ecx
call fcn.00406770
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x406195
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x4061cd
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
cmp ecx, dword [ebp + 0x10]
jae 0x40612f
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x406120
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x14]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x406105
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40616f
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x406178
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4060f9
jmp 0x40617a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x4061f4
cmp dword [ebp + 8], edi
je 0x4061cd
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x4061c2
mov dword [0x40a674], eax
jmp 0x406200
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4061b7
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x40617a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x40617a
push dword [ebp + 8]
call fcn.0040670c
pop ecx
jmp 0x40620a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4061e2
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x4060c1
mov dword [0x40a670], 0x1c
mov dword [0x40a674], edi
jmp 0x40620a
sub eax, dword [ebp - 0x10]
jmp 0x40620d
and dword [0x40a674], 0
mov dword [0x40a670], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d7e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], 0
jmp 0x40d805
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
jae 0x40d878
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
movzx edx, byte [ebp - 8]
xor ecx, edx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 8]
shr eax, 8
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x40d83a
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 8
jge 0x40d86d
mov edx, dword [ebp - 0x10]
and edx, 1
neg edx
sbb edx, edx
neg edx
mov byte [ebp - 0x15], dl
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [ebp - 0x10], eax
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x40d86b
mov edx, dword [ebp - 0x10]
xor edx, 0xedb88320
mov dword [ebp - 0x10], edx
jmp 0x40d831
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x40d7fc
mov eax, dword [ebp - 8]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x404b40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4164fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CSocket::CSocket
xor edi, edi
lea ecx, [esi + 0x20]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
push 0xa
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CStringList::CStringList
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x58]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString
push 0x46ad80
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
mov dword [esi], 0x41a474
mov dword [esi + 0x2c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x24], edi
call fcn.004154e4
mov ecx, dword [esp + 0xc]
or eax, 0xffffffff
mov dword [esi + 0x1c], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x404b56
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4164fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CSocket::CSocket
xor edi, edi
lea ecx, [esi + 0x20]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString
push 0xa
lea ecx, [esi + 0x34]
mov byte [esp + 0x18], 2
call sub.MFC42.DLL_CStringList::CStringList
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x58]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x5c]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString
push 0x46ad80
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
mov dword [esi], 0x41a474
mov dword [esi + 0x2c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x24], edi
call fcn.004154e4
mov ecx, dword [esp + 0xc]
or eax, 0xffffffff
mov dword [esi + 0x1c], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], eax
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405160
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x405182
pop edi
mov eax, 1
pop esi
add esp, 0x110
ret
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x1c]
push edi
push ecx
push edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 1
call sub.WSOCK32.dll_select
xor edx, edx
test eax, eax
setg dl
mov eax, edx
cmp eax, edi
je 0x405213
mov ecx, dword [esi + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call sub.WSOCK32.dll___WSAFDIsSet
cmp eax, edi
je 0x405213
mov ecx, dword [esi + 4]
mov dl, byte [0x46ad80]
push 2
lea eax, [esp + 0xf]
push 1
push eax
push ecx
mov byte [esp + 0x1b], dl
call sub.WSOCK32.dll_recv
mov esi, eax
cmp esi, edi
jg 0x405213
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2744
je 0x40520e
cmp eax, 0x2745
je 0x40520e
cmp eax, 0x2746
je 0x40520e
cmp eax, 0x2726
je 0x40520e
cmp esi, edi
jne 0x405213
mov edi, 1
mov eax, edi
pop edi
pop esi
add esp, 0x110
ret
Function at 0x406cd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4168ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call sub.MFC42.DLL_CAsyncSocket::CAsyncSocket
xor ebx, ebx
lea ecx, [esi + 8]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CFile::CFile
lea edi, [esi + 0x30]
mov byte [esp + 0x18], 1
mov ecx, edi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov dword [esi + 0x38], ecx
push 0x46ad80
mov ecx, edi
mov byte [esp + 0x1c], 2
mov dword [esi], 0x41a59c
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], ebx
call fcn.004154e4
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4097e0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416b80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
inc eax
inc ebx
sub ebx, 2
dec eax
inc ebx
push str.VirtualAlloc
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x24], edx
mov si, word [eax + 0x14]
lea esi, [esi + eax + 0x18]
mov dword [ebp - 0x18], esi
mov eax, dword [ecx]
xor ecx, ecx
mov cx, word [eax + 6]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jge 0x40993a
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4098a0
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x409922
mov ecx, dword [esi + 0xc]
push 4
push 0x1000
add ecx, edx
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x409922
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
push 4
push 0x1000
add ecx, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
inc eax
inc ebx
sub ebx, 2
dec eax
inc ebx
lea edx, [ebp - 0x20]
push 0x41d160
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x55
call sub.MSVCRT.dll__CxxThrowException
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov eax, ecx
add esi, edi
mov edi, dword [ebp - 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x409912
and ecx, 3
rep movsb byte es:[edi], byte [esi]
ret
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
inc ecx
add esi, 0x28
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x409848
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b490
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x416e09
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call dword [sym.imp.MSVCP60.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_void_]
mov ebx, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
lea ecx, [esp + 0x10]
mov dword [esi + 0x34], eax
call ebx
mov eax, dword [sym.imp.MSVCP60.dll_class_std::locale::_Locimp__std::locale::_Locimp::_Global]
lea ecx, [esp + 0xc]
mov edi, dword [eax]
call ebx
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x40b4df
inc eax
mov dword [edi + 4], eax
mov edi, dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
lea ecx, [esp + 0xc]
call edi
lea ecx, [esp + 0x10]
call edi
lea ecx, [esi + 4]
lea edx, [esi + 0x14]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x18]
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ecx
lea eax, [esi + 8]
lea edx, [esi + 0x24]
lea ecx, [esi + 0x28]
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], ecx
mov dword [eax], 0
mov edx, dword [esi + 0x20]
mov dword [edx], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov ecx, dword [esi + 0xc]
mov dword [ecx], 0
mov edx, dword [esi + 0x1c]
mov dword [edx], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0
mov dword [esi], 0x41adc8
call dword [sym.imp.MSVCP60.dll_protected:_void___thiscall_std::strstreambuf::_Init_int__char___char___int_]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x40c660
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x41708c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CStringArray::CStringArray
lea edi, [esi + 0x2c]
mov byte [esp + 0x18], 1
mov ecx, edi
call sub.MFC42.DLL_CString::CString
lea ebx, [esi + 0x30]
push 0
mov ecx, ebx
mov byte [esp + 0x1c], 2
call fcn.0041591c
mov dword [ebx], 0x41a9bc
add ebx, 8
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
mov byte [esp + 0x1c], 3
mov dword [esi], 0x41af88
call fcn.0040ee30
add esp, 4
mov ecx, edi
push str.security.dat
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40c720
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4170c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x41af88
lea edi, [esi + 0x30]
mov dword [esp + 0x14], 2
lea eax, [edi + 8]
mov dword [edi], 0x41a9bc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
call sub.MFC42.DLL_CSyncObject::CSyncObject
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 1
call fcn.004154de
lea ecx, [esi + 0x18]
mov byte [esp + 0x14], 0
call fcn.00415a5a
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00415a5a
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40e7a0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x417465
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x234]
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x230], 1
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [esp + 8], eax
je 0x40e88b
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
add esp, 4
mov esi, eax
push esi
push ecx
push edx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40e87e
lea eax, [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40e87e
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [eax]
mov cx, word [eax]
shr edx, 0x10
push edx
push ecx
lea edx, [esp + 0x28]
push str.StringFileInfo_04x_04xPrivateBuild
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40e87e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 8
test esi, esi
je 0x40e88b
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esp + 0x230]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x228], 0
call fcn.004154de
mov ecx, dword [esp + 0x220]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x224
ret 8