joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40beb9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x878
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ebx, [esi + 0x6c8]
push 0x41752c
mov edi, ebx
mov dword [ebp - 8], ebx
call fcn.00405ad1
mov edi, dword [esi + 0x69c]
push esi
call fcn.0040bd11
mov eax, ebx
call fcn.00405b12
test eax, eax
jle 0x40c017
mov ebx, dword [sym.imp.USER32.dll_FindWindowW]
xor esi, esi
push esi
push str.NirSoft_IPNetInfo
call ebx
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x40bfa9
mov edi, dword [ebp + 8]
add edi, 0x6dc
cmp word [edi], si
je 0x40c017
push 0x7fe
lea eax, [ebp - 0x872]
push esi
push eax
mov word [ebp - 0x874], si
call sub.msvcrt.dll_memset
push edi
push str.__s___nodlgstart
lea eax, [ebp - 0x874]
push 0x3ff
push eax
call sub.msvcrt.dll__snwprintf
push 0x40
lea eax, [ebp - 0x70]
push esi
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
add esp, 0x28
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x874]
push eax
push esi
mov dword [ebp - 0x74], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push esi
push str.NirSoft_IPNetInfo
call ebx
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x40c017
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push esi
push 0x500
push dword [ebp - 0xc]
call ebx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x1388
call fcn.00405b12
mov esi, eax
lea edi, [esi + 0xa]
lea eax, [ebp - 0x18]
call fcn.00405f47
mov eax, dword [ebp - 8]
inc esi
push esi
push dword [ebp - 0x18]
call fcn.00405ac5
push eax
call fcn.00405688
mov eax, dword [ebp - 8]
add esp, 0xc
push dword [ebp - 0x18]
call fcn.00405b12
push eax
push 0x501
push dword [ebp - 0xc]
call ebx
lea esi, [ebp - 0x18]
call fcn.00405f60
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40c2dc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x698]
sub esp, 0x18
push ebx
xor ebx, ebx
cmp dword [eax + 0x1c], ebx
push esi
je 0x40c3e7
mov eax, dword [edi + 0x69c]
push 4
call fcn.0040a02a
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
mov esi, dword [edi + 0x69c]
cmp dword [esi + 0x3c], ebx
mov dword [ebp - 4], ebx
jle 0x40c3dd
push dword [ebp - 4]
call fcn.004083ee
cmp dword [eax + 0x70], 0
mov dword [ebp - 8], eax
jne 0x40c3c8
mov edx, dword [eax + 0x54]
mov eax, dword [eax + 0x50]
xor ecx, ecx
or ecx, eax
xor esi, esi
or edx, esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
xor ebx, ebx
or eax, esi
mov esi, dword [ebp - 0xc]
or ecx, ebx
push ebx
sub esi, eax
push 0x989680
sbb edx, ecx
push edx
push esi
call fcn.00415ec0
test edx, edx
jl 0x40c3c8
jg 0x40c371
cmp eax, 3
jb 0x40c3c8
mov eax, dword [ebp - 8]
mov esi, 0x41c3c8
mov dword [eax + 0x70], 1
call fcn.0040ad26
mov esi, dword [edi + 0x69c]
call fcn.004088ff
push 0
push dword [0x41c5d4]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
test eax, eax
jne 0x40c3b4
mov ebx, dword [edi + 0x69c]
push eax
push dword [0x41c5d4]
call fcn.004094a5
push dword [ebp - 8]
mov ebx, dword [edi + 0x69c]
push dword [0x41c5d4]
call fcn.004094a5
inc dword [ebp - 4]
mov esi, dword [edi + 0x69c]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x3c]
jl 0x40c31e
mov eax, 0x41c3c8
call fcn.0040ad6d
pop esi
pop ebx
leave
ret

Function at 0x40d8c9
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push dword [esp + 0x10]
xor esi, esi
call fcn.00404aa6
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x40d91b
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, dword [esp + 0x10]
mov edi, eax
add esi, 8
mov eax, esi
call fcn.00405f47
mov esi, dword [esi]
push edi
push esi
push ebx
call fcn.00405387
add esp, 0xc
mov esi, eax
test esi, esi
pop edi
je 0x40d914
mov eax, dword [esp + 0xc]
call fcn.0040d89e
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x40de4b
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
push dword [ebp + 8]
mov ebx, eax
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov word [ebp - 0x10], 2
call sub.WS2_32.dll_htons
test ebx, ebx
mov word [ebp - 0xe], ax
je 0x40deb2
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [esi + 4]
call sub.WS2_32.dll_connect
test eax, eax
jne 0x40de96
xor ebx, ebx
inc ebx
jmp 0x40deae
call fcn.0040dec6
mov ebx, eax
test ebx, ebx
jne 0x40deae
mov edi, dword [esi]
call sub.WS2_32.dll_WSAGetLastError
push eax
mov ecx, esi
call dword [edi + 0x18]
mov eax, ebx
jmp 0x40dec0
mov eax, dword [esi]
push 0xffff
mov ecx, esi
call dword [eax + 0x18]
xor eax, eax
pop edi
pop ebx
leave
ret 4
Function at 0x40e12b
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
mov eax, esi
call fcn.0040e0f4
test eax, eax
jne 0x40e154
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x40e1cc
push ebx
push edi
call fcn.0040e0d4
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
xor ebx, ebx
test eax, eax
je 0x40e180
push str.LookupPrivilegeValueW
push dword [esi]
call edi
cmp eax, ebx
je 0x40e180
lea ecx, [ebp - 0x14]
push ecx
push str.SeDebugPrivilege
push ebx
call eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 2
mov dword [ebp - 8], eax
call fcn.0040e0d4
test eax, eax
je 0x40e1b7
push str.AdjustTokenPrivileges
push dword [esi]
call edi
cmp eax, ebx
je 0x40e1b7
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push dword [ebp - 8]
call eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret

Function at 0x40e24b
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push str.DevicePhysicalMemory
lea eax, [ebp - 8]
push eax
call dword [esi + 4]
and dword [ebp - 0x1c], 0
lea eax, [ebp - 8]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x14], 0x40
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push 4
lea edi, [esi + 0x10]
push edi
call dword [esi + 8]
test eax, eax
jne 0x40e2ba
mov ecx, esi
call fcn.0040e2bf
test eax, eax
jne 0x40e2a0
mov eax, esi
call fcn.0040e31f
push 0x1000
push eax
push 0
push 4
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
jmp 0x40e2bc
xor eax, eax
pop edi
leave
ret

Function at 0x40e31f
Capabilities:
Read file via mapping

Disassembly:
push esi
push edi
push 0xa0000
xor edi, edi
push edi
push edi
push 4
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push 0x67
pop edx
lea ecx, [eax + 0xc00]
mov esi, 0x1000
cmp dword [ecx], edx
je 0x40e354
add edx, esi
inc edi
add ecx, esi
cmp edx, 0xa0067
jb 0x40e343
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, edi
pop edi
shl eax, 0xc
pop esi
ret

Function at 0x40e363
Capabilities:
Read file via mapping

Disassembly:
mov ecx, dword [edi + 0x14]
push esi
mov esi, eax
shr eax, 0x16
mov eax, dword [ecx + eax*4]
test al, 1
jne 0x40e377
xor eax, eax
pop esi
ret
test al, al
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
js 0x40e3bd
push 0x1000
and eax, 0xfffff000
push eax
push 0
push 4
push dword [edi + 0x10]
call ebp
shr esi, 0xc
and esi, 0x3ff
mov ebx, dword [eax + esi*4]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
test bl, 1
jne 0x40e3b3
xor eax, eax
jmp 0x40e3d9
and ebx, 0xfffff000
mov esi, ebx
jmp 0x40e3ca
and esi, 0x3ff000
and eax, 0xfffff000
add esi, eax
push 0x1000
push esi
push 0
push 4
push dword [edi + 0x10]
call ebp
pop ebp
pop ebx
pop esi
ret
Function at 0x40e44e
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea ecx, [eax + 4]
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ecx
cmp eax, ecx
jmp 0x40e4cb
mov eax, dword [ebp - 8]
push 0x1000
and eax, 0xfffff000
push eax
mov eax, dword [ebp + 8]
push 0
push 4
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x40e4d0
mov eax, dword [ebp - 8]
push 4
and eax, 0xfff
mov ecx, 0x1000
pop edx
sub edx, ebx
sub ecx, eax
cmp edx, ecx
mov dword [ebp - 4], edx
jb 0x40e4a4
mov dword [ebp - 4], ecx
push dword [ebp - 4]
add eax, edi
push eax
mov eax, dword [ebp + 0xc]
add eax, ebx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
add ebx, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
jb 0x40e462
pop edi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x40f0e6
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
jne 0x40f158
push str.iphlpapi.dll
call fcn.0040582b
cmp eax, ebx
pop ecx
mov dword [esi], eax
je 0x40f158
push str.GetTcpTable
push eax
call edi
push str.GetUdpTable
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.SetTcpEntry
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.AllocateAndGetTcpExTableFromStack
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.AllocateAndGetUdpExTableFromStack
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.GetExtendedTcpTable
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetExtendedUdpTable
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
cmp dword [esi + 4], ebx
jne 0x40f1be
push str.ntdll.dll
mov dword [esi + 8], ebx
call fcn.0040582b
cmp eax, ebx
pop ecx
mov dword [esi + 4], eax
je 0x40f1be
push str.NtQuerySystemInformation
push eax
call edi
push str.RtlInitUnicodeString
push dword [esi + 4]
mov dword [esi + 0x38], eax
call edi
push str.ZwOpenSection
push dword [esi + 4]
mov dword [esi + 0x3c], eax
call edi
push str.ZwOpenFile
push dword [esi + 4]
mov dword [esi + 0x40], eax
call edi
cmp dword [esi + 0x38], ebx
mov dword [esi + 0x44], eax
je 0x40f1be
cmp dword [esi + 0x3c], ebx
je 0x40f1be
cmp dword [esi + 0x40], ebx
je 0x40f1be
cmp eax, ebx
je 0x40f1be
mov dword [esi + 8], 1
pop edi
pop ebx
ret
Function at 0x40fade
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x678
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [edi + 0x28]
call fcn.00403c6d
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp - 8], eax
lea eax, [ebp - 0x468]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x46c], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x40fc63
lea eax, [ebp - 0x240]
call fcn.0040f5bf
mov eax, dword [ebp - 0x464]
mov ecx, dword [ebp - 0x454]
mov esi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
push ebx
push 0x410
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x30], ecx
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x40fb93
call fcn.00404eb7
cmp dword [eax + 4], 5
jbe 0x40fc54
push dword [ebp - 0x240]
push ebx
push 0x1000
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40fc54
push 0x208
lea eax, [ebp - 0x676]
push ebx
push eax
mov word [ebp - 0x678], bx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x678]
push eax
push dword [ebp - 4]
mov eax, edi
call fcn.0040fdda
cmp word [ebp - 0x678], bx
jne 0x40fc1c
cmp dword [0x420700], ebx
mov dword [ebp - 0xc], 0x104
jne 0x40fc02
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp eax, ebx
je 0x40fc02
push str.QueryFullProcessImageNameW
push eax
mov dword [0x420700], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x420704], eax
mov eax, dword [0x420704]
cmp eax, ebx
je 0x40fc1c
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x678]
push ecx
push ebx
push dword [ebp - 4]
call eax
lea esi, [ebp - 0x678]
lea edi, [ebp - 0x23c]
call fcn.0040f71a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 4]
call fcn.0040fa65
add esp, 0x14
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x240]
push eax
lea eax, [edi + 0x28]
call fcn.0040fe59
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 8]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x40fb35
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40fe02
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x40fe58
push edi
push str.psapi.dll
call fcn.0040582b
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp], str.GetModuleBaseNameW
push eax
mov dword [esi], eax
call edi
push str.EnumProcessModules
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.GetModuleFileNameExW
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.EnumProcesses
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.GetModuleInformation
push dword [esi]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0xc], eax
pop edi
ret
Function at 0x410969
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.00415e80
cmp dword [ebp + 8], 0
je 0x4109ce
test esi, esi
je 0x4109bc
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x4109bc
and word [ebp - 0x20000], 0
push esi
push 0x419d18
lea eax, [ebp - 0x20000]
push 0xfffe
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20000]
push eax
jmp 0x4109c0
push dword [ebp + 0x1c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
leave
ret
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
leave
ret

Function at 0x4109e6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.00415e80
push esi
push edi
xor eax, eax
cmp dword [ebp + 8], eax
push 0x4000
push eax
mov word [ebp - 0x4004], ax
lea eax, [ebp - 0x4002]
mov edi, ecx
push eax
je 0x410a45
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.004053f6
add esp, 0x18
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
mov esi, eax
jmp 0x410a86
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x41752c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
push dword [ebp + 0x14]
xor ecx, ecx
cmp ecx, eax
sbb esi, esi
push edi
lea edi, [ebp - 0x4004]
neg esi
call fcn.0040547f
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x410a8c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x410aaa
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0041091c
add esp, 0x10
pop ebp
ret
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
mov dword [esi], eax
pop ebp
ret
Function at 0x411250
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x10], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 4], eax
jbe 0x4113e2
push ebx
mov eax, edi
call fcn.004075aa
push dword [ebp - 4]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
push ebx
push dword [ebp - 4]
push esi
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x417d30
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4112d3
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov ecx, dword [eax + 0x14]
mov dword [edi + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0x24]
mov dword [edi + 0x10], ecx
mov eax, dword [eax + 0x28]
mov dword [edi + 0x14], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x411322
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str._4.4X_4.4X
lea eax, [ebp - 0x38]
push 0x14
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
push 0x41752c
lea eax, [ebp - 0x38]
push eax
push ebx
lea esi, [ebp - 0x238]
call fcn.004111c1
test eax, eax
jne 0x411332
lea eax, [ebp - 0x38]
push str.040904E4
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push 0x419ec8
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x18]
push ebx
call fcn.004111c1
push 0x419ee0
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x218]
push ebx
call fcn.004111c1
push 0x419f00
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x418]
push ebx
call fcn.004111c1
push 0x419f18
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x618]
push ebx
call fcn.004111c1
push 0x419f38
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x818]
push ebx
call fcn.004111c1
push 0x419f50
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xa18]
push ebx
call fcn.004111c1
push 0x419f6c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xc18]
push ebx
call fcn.004111c1
push str.OriginalFileName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xe18]
push ebx
call fcn.004111c1
xor esi, esi
push ebx
inc esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
mov eax, esi
pop esi
leave
ret 4
Function at 0x411560
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
je 0x41156a
or eax, 0xffffffff
ret
cmp dword [esi + 4], 0
jne 0x4115b3
call sub.msvcrt.dll__errno
and dword [eax], 0
push dword [esi + 0x40]
push 0x4000
push 1
push dword [esi + 0x44]
call sub.msvcrt.dll_fread
add esp, 0x10
test eax, eax
mov dword [esi + 4], eax
jne 0x4115ae
push dword [esi + 0x40]
mov dword [esi + 0x3c], 1
call sub.msvcrt.dll_ferror
test eax, eax
pop ecx
je 0x411566
or dword [esi + 0x38], 0xffffffff
jmp 0x411566
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
dec dword [esi + 4]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
ret

Function at 0x4115c1
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push edi
mov edi, dword [esi + 4]
inc ebx
cmp edi, 2
jae 0x411631
test edi, edi
je 0x4115de
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov al, byte [eax]
mov byte [ecx], al
call sub.msvcrt.dll__errno
and dword [eax], 0
push dword [esi + 0x40]
mov ecx, edi
mov eax, 0x4000
sar eax, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push ebx
push eax
call sub.msvcrt.dll_fread
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x411619
push dword [esi + 0x40]
call sub.msvcrt.dll_ferror
test eax, eax
pop ecx
je 0x411619
or dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov eax, dword [esi + 4]
cmp eax, 2
mov ecx, dword [esi + 0x44]
mov dword [esi], ecx
jae 0x411631
mov dword [esi + 0x58], eax
jmp 0x4116ea
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x4116e7
cmp byte [eax + 1], 0x8b
jne 0x4116e7
add dword [esi + 4], 0xfffffffe
add eax, 2
mov dword [esi], eax
call fcn.00411560
mov edi, eax
call fcn.00411560
cmp edi, 8
mov ebx, eax
jne 0x4116de
test bl, 0xe0
jne 0x4116de
push 6
pop edi
call fcn.00411560
dec edi
jne 0x41166a
test bl, 4
je 0x411699
call fcn.00411560
mov edi, eax
call fcn.00411560
shl eax, 8
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x411699
call fcn.00411560
cmp eax, 0xffffffff
jne 0x411688
test bl, 8
je 0x4116ac
call fcn.00411560
test eax, eax
je 0x4116ac
cmp eax, 0xffffffff
jne 0x41169e
test bl, 0x10
je 0x4116bf
call fcn.00411560
test eax, eax
je 0x4116bf
cmp eax, 0xffffffff
jne 0x4116b1
test bl, 2
je 0x4116cf
push 2
pop edi
call fcn.00411560
dec edi
jne 0x4116c7
mov eax, dword [esi + 0x3c]
neg eax
sbb eax, eax
and eax, 0xfffffffd
mov dword [esi + 0x38], eax
jmp 0x4116ea
mov dword [esi + 0x38], 0xfffffffd
jmp 0x4116ea
mov dword [esi + 0x58], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x411a08
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x41c04c]
test eax, eax
je 0x411b08
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [0x41c04c], 0
xor eax, eax
movzx edx, byte [eax + 0x4193a8]
push 0x1f
pop ecx
sub ecx, edx
xor edx, edx
inc edx
shl edx, cl
or esi, edx
inc eax
cmp eax, 0xe
jb 0x411a28
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x411a52
shr eax, 1
xor eax, esi
jmp 0x411a54
shr eax, 1
dec edx
jne 0x411a48
mov dword [ecx*4 + 0x41cdd8], eax
inc ecx
cmp ecx, 0x100
jl 0x411a43
mov edi, 0x41ddd8
mov ecx, 0xff00
mov eax, dword [edi - 0x1000]
mov esi, eax
and esi, ecx
mov ebx, eax
shl ebx, 0x10
add esi, ebx
mov edx, eax
shr edx, 8
shl esi, 8
mov ebx, edx
and ebx, ecx
add esi, ebx
mov ebx, eax
shr ebx, 0x18
add esi, ebx
mov dword [edi], esi
lea esi, [edi + 0x400]
mov dword [esp + 0x10], 3
and eax, 0xff
mov eax, dword [eax*4 + 0x41cdd8]
xor eax, edx
mov ebx, eax
and ebx, ecx
mov ebp, eax
shl ebp, 0x10
add ebx, ebp
mov edx, eax
shr edx, 8
shl ebx, 8
mov ebp, edx
and ebp, ecx
add ebx, ebp
mov ebp, eax
shr ebp, 0x18
add ebx, ebp
mov dword [esi - 0x1000], eax
mov dword [esi], ebx
add esi, 0x400
dec dword [esp + 0x10]
jne 0x411aa7
add edi, 4
cmp edi, 0x41e1d8
jl 0x411a71
pop edi
pop esi
pop ebp
mov dword [0x41c048], 0
pop ebx
pop ecx
ret
mov eax, dword [0x41c048]
test eax, eax
jne 0x411b08
pop ecx
ret