joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407e4a
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00410040
and word [ebp - 0x2004], 0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x415e50
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x4114d0
push dword [ebp + 8]
mov esi, 0x416060
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x407eb1
cmp dword [ebp + 0x10], 0
jne 0x407eb1
xor eax, eax
jmp 0x407ebf
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
pop edi
pop esi
leave
ret

Function at 0x40826a
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00405ea7
test eax, eax
pop ecx
je 0x4082f1
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x415e50
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x416060
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x4125a4
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x4160e8
mov dword [0x4160e4], eax
call fcn.00407db2
push 0x3f
push str.TranslatorName
mov esi, 0x416168
call fcn.00407db2
push 0xff
push str.TranslatorURL
mov esi, 0x4161e8
call fcn.00407db2
add esp, 0x18
pop edi
pop esi
ret

Function at 0x409352
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00410040
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x2003]
push ebx
push eax
mov byte [ebp - 0x2004], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2004]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret
Function at 0x40a149
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4cc
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, eax
xor ebx, ebx
cmp dword [esi + 0x2a4], ebx
push edi
je 0x40a218
cmp dword [esi + 0x2ac], ebx
je 0x40a1da
push 0x2b0
lea eax, [esp + 0x230]
push ebx
push eax
mov dword [esp + 0x234], ebx
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x2e]
push ebx
push eax
mov word [esp + 0x34], bx
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x230]
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [esi + 0x298], eax
push eax
jmp 0x40a209
call fcn.00406a49
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
lea edi, [esi + 0x298]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push 1
push 0x1003
push dword [esi + 0x290]
call ebp
cmp dword [esi + 0x2a8], ebx
je 0x40a25d
call fcn.00406a49
push 0x60
pop ecx
shl eax, 5
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
lea edi, [esi + 0x29c]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push ebx
push 0x1003
push dword [esi + 0x290]
call ebp
call fcn.00406a49
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
mov edi, eax
push edi
push edi
call dword [sym.imp.COMCTL32.dll_ImageList_Create]
push ebx
mov dword [esi + 0x294], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x1000
push edi
push edi
push ebx
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0x1000
push edi
push edi
push ebx
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push ebx
push dword [esi + 0x294]
mov dword [esp + 0x1c], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
push eax
push dword [esp + 0x14]
mov dword [esp + 0x20], eax
push dword [esi + 0x294]
call edi
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x294]
call edi
push dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [esp + 0x14]
call edi
mov eax, dword [esi + 0x294]
mov esi, dword [esi + 0x290]
push eax
push ebx
push 0x1208
push esi
call fcn.00404116
pop ecx
push eax
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4cc
ret
Function at 0x40b4b2
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov esi, eax
lea eax, [ebp - 0x410]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x40b4e4
push edi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
and word [ebp - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push 0
push 0x4129e0
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
push 1
push 1
push 2
lea eax, [ebp - 0x208]
push eax
mov edi, esi
call fcn.0040a3dc
push eax
call fcn.0040b467
test eax, eax
je 0x40b569
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40b544
lea eax, [ebp - 0x208]
push eax
call fcn.00405b10
pop ecx
jmp 0x40b54a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40b55c
push dword [esi + 0x208]
mov ecx, eax
call fcn.004059d0
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
pop edi
pop esi
leave
ret

Function at 0x40c787
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00410040
push ebx
push esi
mov esi, 0x1fff
xor ebx, ebx
push esi
lea eax, [ebp - 0x1fff]
push ebx
push eax
mov byte [ebp - 0x2000], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push esi
lea eax, [ebp - 0x2000]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push ebx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x2000]
push eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x2000]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
pop ebx
leave
ret 8
Function at 0x40ca06
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00405957
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0xc], eax
je 0x40caf3
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
mov eax, 0x800000
cmp ebx, eax
jb 0x40ca40
mov ebx, eax
lea edi, [ebx + 4]
lea esi, [ebp - 8]
call fcn.00407211
mov edi, dword [ebp - 8]
push ebx
push edi
push dword [ebp + 0xc]
call fcn.0040663f
add esp, 0xc
mov byte [edi + ebx], 0
mov byte [edi + ebx + 1], 0
mov byte [edi + ebx + 2], 0
cmp byte [edi], 0xff
jne 0x40ca79
cmp byte [edi + 1], 0xfe
jne 0x40ca79
add edi, 2
jmp 0x40ca7f
cmp byte [edi + 1], 0
jne 0x40ca93
mov eax, dword [ebp + 8]
push edi
mov edi, dword [eax + 0x69c]
add edi, 0x18
call fcn.00406c78
jmp 0x40cae8
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x69c]
lea edx, [ebx + 1]
add eax, 0x18
call fcn.00406c1d
mov eax, dword [esi + 0x69c]
add eax, 0x18
call fcn.00406c6c
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esi + 0x69c]
push ebx
add eax, 0x18
call fcn.00406c6c
push eax
push 0xffffffffffffffff
push edi
push ecx
push ecx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esi + 0x69c]
add eax, 0x18
call fcn.00406c6c
and word [eax + ebx*2], 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop ebx
lea esi, [ebp - 8]
call fcn.004071fc
pop esi
leave
ret 8

Function at 0x40cb00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00405957
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0xc], eax
je 0x40cbec
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
mov eax, 0x800000
cmp ebx, eax
jb 0x40cb3b
mov ebx, eax
lea edi, [ebx + 4]
lea esi, [ebp - 8]
call fcn.00407211
mov edi, dword [ebp - 8]
push ebx
push edi
push dword [ebp + 0xc]
call fcn.0040663f
add esp, 0xc
mov byte [edi + ebx], 0
mov byte [edi + ebx + 1], 0
mov byte [edi + ebx + 2], 0
cmp byte [edi], 0xff
jne 0x40cb74
cmp byte [edi + 1], 0xfe
jne 0x40cb74
add edi, 2
jmp 0x40cb7a
cmp byte [edi + 1], 0
jne 0x40cb8e
mov eax, dword [ebp + 8]
push edi
mov edi, dword [eax + 0x69c]
add edi, 0x18
call fcn.00406c78
jmp 0x40cbe3
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x69c]
lea edx, [ebx + 1]
add eax, 0x18
call fcn.00406c1d
mov eax, dword [esi + 0x69c]
add eax, 0x18
call fcn.00406c6c
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esi + 0x69c]
push ebx
add eax, 0x18
call fcn.00406c6c
push eax
push 0xffffffffffffffff
push edi
push ecx
push ecx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esi + 0x69c]
add eax, 0x18
call fcn.00406c6c
and word [eax + ebx*2], 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea esi, [ebp - 8]
call fcn.004071fc
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40cbfb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00405957
cmp eax, 0xffffffff
pop ecx
mov dword [ebp + 0xc], eax
je 0x40ccfa
mov eax, dword [ebp + 8]
push ebx
push edi
call fcn.0040b752
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
mov eax, 0x800000
cmp ebx, eax
jb 0x40cc3f
mov ebx, eax
lea edi, [ebx + 4]
lea esi, [ebp - 8]
call fcn.00407211
mov edi, dword [ebp - 8]
push ebx
push edi
push dword [ebp + 0xc]
call fcn.0040663f
add esp, 0xc
mov byte [edi + ebx], 0
mov byte [edi + ebx + 1], 0
mov byte [edi + ebx + 2], 0
cmp byte [edi], 0xff
jne 0x40cc78
cmp byte [edi + 1], 0xfe
jne 0x40cc78
add edi, 2
jmp 0x40cc7e
cmp byte [edi + 1], 0
jne 0x40cc92
mov eax, dword [ebp + 8]
push edi
mov edi, dword [eax + 0x69c]
add edi, 0x18
call fcn.00406c78
jmp 0x40cce7
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x69c]
lea edx, [ebx + 1]
add eax, 0x18
call fcn.00406c1d
mov eax, dword [esi + 0x69c]
add eax, 0x18
call fcn.00406c6c
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esi + 0x69c]
push ebx
add eax, 0x18
call fcn.00406c6c
push eax
push 0xffffffffffffffff
push edi
push ecx
push ecx
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esi + 0x69c]
add eax, 0x18
call fcn.00406c6c
and word [eax + ebx*2], 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp + 8]
call fcn.0040b77d
pop edi
pop ebx
lea esi, [ebp - 8]
call fcn.004071fc
pop esi
leave
ret 8

Function at 0x40e013
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp dword [0x4163fc], edi
mov esi, 0x7d0
jne 0x40e059
call fcn.0040df69
xor ecx, ecx
push 0xc
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esp], 0x5dc0
push edi
push eax
mov dword [0x4163fc], eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edx, dword [0x4163fc]
xor eax, eax
mov ecx, edx
cmp dword [ecx], edi
je 0x40e072
inc eax
add ecx, 0xc
cmp eax, esi
jl 0x40e063
or eax, 0xffffffff
cmp eax, edi
jl 0x40e0b2
mov esi, eax
lea ecx, [ebp - 4]
imul esi, esi, 0xc
push ecx
push 4
push eax
push 0x40dfa3
push edi
push edi
add esi, edx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
je 0x40e0b2
mov ecx, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [ecx + 4]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
xor eax, eax
inc eax
jmp 0x40e0b4
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40e114
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 0x40e17b
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 0x40e15f
xor ebx, ebx
inc ebx
jmp 0x40e177
call fcn.0040e18f
mov ebx, eax
test ebx, ebx
jne 0x40e177
mov edi, dword [esi]
call sub.WS2_32.dll_WSAGetLastError
push eax
mov ecx, esi
call dword [edi + 0x18]
mov eax, ebx
jmp 0x40e189
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 0x40eea5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.00410040
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 0x40ef04
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.0040667d
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 0x40ef45
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x4114d0
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.00406706
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40ef4b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40ef69
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040ee58
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 0x40f81e
Capabilities:
Act as tcp client
Check for time delay via gettickcount
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 6
push 1
push 2
call sub.WS2_32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40f900
push dword [ebp + 0xc]
xor eax, eax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 2
mov dword [ebp - 0x14], eax
call sub.WS2_32.dll_htons
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
push 0x10
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov edi, eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push ebx
call sub.WS2_32.dll_connect
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x40f8f5
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push 1
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
mov dword [ebp - 8], eax
call esi
and dword [ebp - 0x44], 0
mov esi, eax
push 0xa
pop ecx
sub esi, edi
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
push 0
push ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
push ebx
call sub.WS2_32.dll_closesocket
cmp dword [ebp - 8], 0
jne 0x40f8ee
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x40f905
mov ecx, dword [ebp + 0x14]
mov dword [ecx], esi
jmp 0x40f905
mov eax, 0x274c
jmp 0x40f905
test eax, eax
jne 0x40f905
mov ecx, dword [ebp + 0x14]
and dword [ecx], eax
jmp 0x40f905
call sub.WS2_32.dll_WSAGetLastError
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fb0c
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 0x40fc9e
push ebx
mov eax, edi
call fcn.00407789
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 0x412448
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40fb8f
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 0x40fbde
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 0x4114d0
lea eax, [ebp - 0x38]
push eax
push ebx
lea esi, [ebp - 0x238]
call fcn.0040fa7d
test eax, eax
jne 0x40fbee
lea eax, [ebp - 0x38]
push str.040904E4
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push 0x41332c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x18]
push ebx
call fcn.0040fa7d
push 0x413344
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x218]
push ebx
call fcn.0040fa7d
push 0x413364
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x418]
push ebx
call fcn.0040fa7d
push 0x41337c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x618]
push ebx
call fcn.0040fa7d
push 0x41339c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x818]
push ebx
call fcn.0040fa7d
push 0x4133b4
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xa18]
push ebx
call fcn.0040fa7d
push 0x4133d0
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xc18]
push ebx
call fcn.0040fa7d
push str.OriginalFileName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xe18]
push ebx
call fcn.0040fa7d
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 0x40fd7a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x411480
call fcn.0040ff88
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40fdb5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fdb5
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40fdcd
cmp eax, 0x20b
je 0x40fdba
mov dword [ebp - 0x1c], edi
jmp 0x40fde1
cmp dword [ecx + 0x84], 0xe
jbe 0x40fdb5
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40fddb
cmp dword [ecx + 0x74], 0xe
jbe 0x40fdb5
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x4169ac], 0xffffffff
or dword [0x4169b0], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41559c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x415598]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4169a8], eax
call fcn.00401dcc
cmp dword [section..data], edi
jne 0x40fe3e
push fcn.00401dcc
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040ff76
push 0x41145c
push 0x411458
call sub.msvcrt.dll__initterm
mov eax, dword [0x415594]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x415590]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x411454
push 0x41142c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40fea4
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40ff5e
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x40fef2
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40fec0
cmp ax, 0x22
jne 0x40fead
cmp word [esi], 0x22
jne 0x40fecb
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40fed9
cmp ax, 0x20
jbe 0x40fec6
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x40feff
movzx eax, word [ebp - 0x48]
jmp 0x40ff02
cmp word [esi], 0x20
jbe 0x40fecb
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x40fef2
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x40ff23
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40ff58
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040ffc1
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x10683fac
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2cdf07ed
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
popal
nop
nop
nop
nop
nop
jmp 0x401219