joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a5dd
Capabilities:
Get common file path
Get file system object information

Disassembly:
sub esp, 0x4c8
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
mov ebp, dword [sym.imp.COMCTL32.dll_ImageList_Create]
push esi
push edi
mov esi, eax
xor edi, edi
cmp dword [esi + 0x2ac], edi
je 0x40a6c0
cmp dword [esi + 0x2b4], edi
je 0x40a683
push 0x2b0
lea eax, [esp + 0x22c]
push edi
push eax
mov dword [esp + 0x230], edi
call sub.msvcrt.dll_memset
push 0x208
lea eax, [esp + 0x2a]
push edi
push eax
mov word [esp + 0x30], di
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x104
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
push 0x4001
push 0x2b4
lea eax, [esp + 0x22c]
push eax
push edi
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push eax
push 1
push 0x1003
push dword [esi + 0x298]
mov dword [esi + 0x2a0], eax
call ebx
jmp 0x40a6c0
call fcn.004067d6
push 0x60
pop ecx
shl eax, 4
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call ebp
push 4
lea edi, [esi + 0x2a0]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push 1
push 0x1003
push dword [esi + 0x298]
call ebx
xor edi, edi
cmp dword [esi + 0x2b0], edi
je 0x40a703
call fcn.004067d6
push 0x60
pop ecx
shl eax, 5
xor edx, edx
div ecx
push 1
push 1
push 0x19
push eax
push eax
call ebp
push 4
lea edi, [esi + 0x2a4]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push 0
push 0x1003
push dword [esi + 0x298]
call ebx
call fcn.004067d6
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 ebp
mov ebp, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push 0
mov dword [esi + 0x29c], eax
call ebp
push 0x1000
push edi
push edi
push 0
push 0x85
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push 0
mov dword [esp + 0x14], eax
call ebp
push 0x1000
push edi
push edi
push 0
push 0x86
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push 0
push dword [esi + 0x29c]
mov ebp, 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 + 0x1c], eax
push dword [esi + 0x29c]
call edi
push dword [esp + 0x14]
push ebp
push dword [esi + 0x29c]
call edi
push dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push ebp
call edi
mov eax, dword [esi + 0x29c]
mov esi, dword [esi + 0x298]
push eax
push 0
push 0x1208
push esi
call fcn.00403633
pop ecx
push eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c8
ret
Function at 0x40abef
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, eax
call fcn.0040ab3a
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x40ac0b
mov eax, esi
call fcn.0040ac8b
mov dword [ebp - 4], ebx
mov ecx, dword [esi + 0x10]
xor edi, edi
cmp ecx, ebx
jle 0x40ac26
mov eax, dword [esi + 0x14]
cmp dword [eax], ebx
je 0x40ac29
inc edi
add eax, 0x24
cmp edi, ecx
jl 0x40ac1a
or edi, 0xffffffff
cmp edi, ebx
jge 0x40ac47
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xa
jl 0x40ac0e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
imul edi, edi, 0x24
add edi, dword [esi + 0x14]
lea eax, [ebp - 4]
push eax
push 4
push edi
push 0x40ab73
push ebx
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, ebx
je 0x40ac3e
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp + 8]
push eax
mov dword [edi + 0x20], esi
mov dword [edi], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ebx
mov dword [edi + 0x18], ebx
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
xor eax, eax
inc eax
jmp 0x40ac40

Function at 0x40af99
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and word [ebp - 0x20c], 0
push ebx
push esi
push edi
push 0x208
mov edi, eax
lea eax, [ebp - 0x20a]
push 0
push eax
call sub.msvcrt.dll_memset
lea esi, [ebp - 0x20c]
call fcn.00405ad0
mov eax, esi
push eax
call sub.msvcrt.dll_wcslen
mov esi, 0x414b68
push esi
mov ebx, eax
call sub.msvcrt.dll_wcslen
add eax, ebx
add esp, 0x14
cmp eax, 0x104
jge 0x40affe
lea eax, [ebp + ebx*2 - 0x20c]
push esi
push eax
call sub.msvcrt.dll_wcscat
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.00405a8f
test eax, eax
pop ecx
je 0x40b023
lea eax, [ebp - 0x20c]
push eax
mov eax, edi
call fcn.0040b070
mov esi, eax
test esi, esi
jne 0x40b069
push 0x414b7c
push 0x6d
push 0
mov dword [edi], 1
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x40b052
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x40b052
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
jmp 0x40b054
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
mov dword [edi + 4], eax
mov esi, ecx
test esi, esi
je 0x40b069
call fcn.0040ae31
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40b070
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push dword [ebp + 8]
mov esi, eax
call fcn.00405603
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x40b0d7
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
test edi, edi
jbe 0x40b0cf
call fcn.0040ad29
lea eax, [edi + 1]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push edi
push eax
push ebx
mov dword [esi + 4], eax
call fcn.0040623d
mov eax, dword [esi + 4]
mov byte [edi + eax], 0
add esp, 0x10
mov edi, esi
call fcn.0040ae31
xor eax, eax
inc eax
mov dword [esi + 0x10], eax
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4
Function at 0x40ccaa
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push edi
lea eax, [ebp - 0x410]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x40ccd9
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 0x414cfc
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov eax, dword [esi + 0x6ac]
push 1
push 1
push 2
lea ecx, [ebp - 0x208]
push ecx
push esi
call fcn.0040c9bf
test eax, eax
pop edi
je 0x40cd5e
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40cd39
lea eax, [ebp - 0x208]
push eax
call fcn.00405824
pop ecx
jmp 0x40cd3f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40cd51
push dword [esi + 0x208]
mov ecx, eax
call fcn.0040567c
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
leave
ret
Function at 0x40d2bc
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa50
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
cmp dword [edi + 0x278], ebx
jne 0x40d4c5
push 0x208
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x210]
add esp, 0xc
push eax
call fcn.00405abe
pop ecx
lea eax, [ebp - 0x210]
push 0x2e
push eax
call sub.msvcrt.dll_wcsrchr
cmp eax, ebx
pop ecx
pop ecx
je 0x40d318
mov word [eax], bx
lea eax, [ebp - 0x210]
push str..cfg
push eax
call sub.msvcrt.dll_wcscat
mov esi, dword [edi + 0x748]
pop ecx
pop ecx
push str._cfg
call fcn.00406e24
cmp eax, ebx
jl 0x40d424
mov esi, 0x104
push esi
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [eax + 1]
mov eax, dword [edi + 0x748]
call fcn.00406e14
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x210]
push 0x5c
push eax
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
jne 0x40d424
push 0x208
lea eax, [ebp - 0x41e]
push ebx
push eax
mov word [ebp - 0x420], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x208
lea eax, [ebp - 0x62e]
push ebx
push eax
mov word [ebp - 0x630], bx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
lea eax, [ebp - 0x420]
push eax
call sub.msvcrt.dll_wcslen
mov ebx, eax
pop ecx
lea eax, [ebp - 0x210]
push eax
call sub.msvcrt.dll_wcslen
lea eax, [ebx + eax + 1]
cmp eax, esi
pop ecx
jae 0x40d406
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x630]
call fcn.00405c27
pop ecx
pop ecx
xor ebx, ebx
jmp 0x40d40f
xor ebx, ebx
mov word [ebp - 0x630], bx
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push str.General
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp + 8]
lea esi, [ebp - 0xa50]
mov dword [ebp - 0xa50], 0x415274
mov word [ebp - 0xa48], bx
mov word [ebp - 0x83e], bx
call fcn.0041123f
mov eax, dword [edi + 0x74c]
call fcn.004020cc
cmp dword [edi + 0x728], ebx
jne 0x40d48e
mov eax, dword [edi + 0x74c]
cmp dword [eax + 0x1b84], ebx
je 0x40d481
mov dword [edi + 0x240], 1
lea esi, [ebp - 0xa50]
mov eax, edi
call fcn.00401aa0
mov edi, dword [edi + 0x6ac]
lea ebx, [ebp - 0xa50]
call fcn.00408a91
cmp dword [ebp + 8], 0
jne 0x40d4c5
lea eax, [ebp - 0x83e]
push str.CustomMenu
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
mov eax, ebx
push eax
mov ecx, 0x417334
call fcn.00403ba5
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40f8d0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
cmp dword [0x418298], edi
mov esi, 0x7d0
jne 0x40f916
call fcn.0040f826
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 [0x418298], eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edx, dword [0x418298]
xor eax, eax
mov ecx, edx
cmp dword [ecx], edi
je 0x40f92f
inc eax
add ecx, 0xc
cmp eax, esi
jl 0x40f920
or eax, 0xffffffff
cmp eax, edi
jl 0x40f96f
mov esi, eax
lea ecx, [ebp - 4]
imul esi, esi, 0xc
push ecx
push 4
push eax
push 0x40f860
push edi
push edi
add esi, edx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
je 0x40f96f
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 0x40f971
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x40f9d1
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 0x40fa38
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 0x40fa1c
xor ebx, ebx
inc ebx
jmp 0x40fa34
call fcn.0040fa4c
mov ebx, eax
test ebx, ebx
jne 0x40fa34
mov edi, dword [esi]
call sub.WS2_32.dll_WSAGetLastError
push eax
mov ecx, esi
call dword [edi + 0x18]
mov eax, ebx
jmp 0x40fa46
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 0x40ff6c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x3c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], 1
mov dword [esi + 0x34], edi
je 0x410010
call fcn.00405c17
test eax, eax
jne 0x410010
lea eax, [ebp - 0x50]
call fcn.00407500
mov ebx, eax
call fcn.0040757e
xor eax, eax
cmp dword [ebp - 0x28], edi
mov dword [ebp - 0x24], 0x414b64
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0x40
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
jle 0x410000
lea ecx, [ebp - 0x34]
call fcn.00403395
mov eax, dword [eax]
cmp eax, edi
je 0x40fff4
mov ebx, dword [eax + 0x200]
lea esi, [ebp - 0x24]
call fcn.0040ab3a
cmp dword [ebp - 0x1c], edi
je 0x40fff1
push ebx
call dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
inc eax
cmp eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
jl 0x40ffcc
lea eax, [ebp - 0x24]
call fcn.0040ab18
lea eax, [ebp - 0x50]
call fcn.0040752c
lea eax, [ebp - 0xc]
push eax
push edi
push esi
push 0x40febc
push edi
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x410e41
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.00412050
cmp dword [ebp + 8], 0
je 0x410ea6
test esi, esi
je 0x410e94
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x410e94
and word [ebp - 0x20000], 0
push esi
push 0x415268
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 0x410e98
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 0x410ebe
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.00412050
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 0x410f1d
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.0040627c
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 0x410f5e
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x4134d0
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.00406305
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x410f64
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x410f82
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00410df4
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 0x410fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410fe9
mov ecx, dword [ebp - 4]
cmp ecx, 2
jb 0x410fe5
shr ecx, 1
and word [esi + ecx*2], ax
leave
ret
and word [esi], 0
leave
ret
Function at 0x411b00
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 0x411c92
push ebx
mov eax, edi
call fcn.00407a47
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 0x4142c0
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x411b83
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 0x411bd2
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 0x4134d0
lea eax, [ebp - 0x38]
push eax
push ebx
lea esi, [ebp - 0x238]
call fcn.00411a71
test eax, eax
jne 0x411be2
lea eax, [ebp - 0x38]
push str.040904E4
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push 0x415644
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x18]
push ebx
call fcn.00411a71
push 0x41565c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x218]
push ebx
call fcn.00411a71
push 0x41567c
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x418]
push ebx
call fcn.00411a71
push 0x415694
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x618]
push ebx
call fcn.00411a71
push 0x4156b4
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x818]
push ebx
call fcn.00411a71
push 0x4156cc
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xa18]
push ebx
call fcn.00411a71
push 0x4156e8
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xc18]
push ebx
call fcn.00411a71
push str.OriginalFileName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xe18]
push ebx
call fcn.00411a71
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 0x411d98
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x413468
call fcn.00411fa8
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x411dd3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x411dd3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x411deb
cmp eax, 0x20b
je 0x411dd8
mov dword [ebp - 0x1c], edi
jmp 0x411dff
cmp dword [ecx + 0x84], 0xe
jbe 0x411dd3
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x411df9
cmp dword [ecx + 0x74], 0xe
jbe 0x411dd3
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 [0x4189c8], 0xffffffff
or dword [0x4189cc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41739c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x417398]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4189c4], eax
call fcn.004094c3
cmp dword [section..data], edi
jne 0x411e5c
push fcn.004094c3
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00411f94
push 0x413460
push 0x41345c
call sub.msvcrt.dll__initterm
mov eax, dword [0x417394]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x417390]
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 0x413458
push 0x413424
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x411ec2
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x411f7c
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x411f10
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x411ede
cmp ax, 0x22
jne 0x411ecb
cmp word [esi], 0x22
jne 0x411ee9
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x411ef7
cmp ax, 0x20
jbe 0x411ee4
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x411f1d
movzx eax, word [ebp - 0x48]
jmp 0x411f20
cmp word [esi], 0x20
jbe 0x411ee9
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x411f10
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 0x411f41
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x411f76
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00411fe1
ret
Function at 0x401000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x48]
mov edx, dword [ebp - 4]
cld
Function at 0x48bc32
Capabilities:
Encode data using xor

Disassembly:
fimul dword [ebx]
aad 0x44
out dx, eax
pop ebp
jne 0x48bc7e
leave
pop eax
xchg ecx, eax
cdq
leave
sar dword [esi], cl
cmp byte [ecx + 0x7f], ch
arpl word [ecx + 0x75], sp
in eax, dx
pop ebx
and al, 0xa8
push esp
add eax, 0xd5a5399f
push ebp
sub dword [ecx], ecx
fadd qword [ebp + 0x6139218f]
bound eax, qword [esi + 0x18]
hlt
mov ah, 0x7d
loopne 0x48bc91
out 7, eax
jnp 0x48bce0
out dx, eax
mov ebx, 0xf2e75b16
xchg edx, eax
dec ebp
inc edi
inc ecx
insd dword es:[edi], dx
lea esi, [ebp - 0x12]
invalid
mov edi, 0x17a0af79
outsd dx, dword [esi]
mov bl, 0xbf

Function at 0x4bb771
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c33c8
cmp edx, dword [eax]
je 0x4bb793
add eax, 8
inc ecx
cmp eax, 0x4c3458
jl 0x4bb784
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c33c8]
jne 0x4bb8c1
mov eax, dword [0x4c8df0]
cmp eax, 1
je 0x4bb89b
test eax, eax
jne 0x4bb7c4
cmp dword [0x4c32f4], 1
je 0x4bb89b
cmp edx, 0xfc
je 0x4bb8c1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb7fb
lea eax, [ebp - 0x1a4]
push 0x4c09b8
push eax
call fcn.004bc150
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc5e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb83e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc5e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c09b4
push edi
call fcn.004be4b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0998
push eax
call fcn.004bc150
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bc160
lea eax, [ebp - 0xa0]
push 0x4c0994
push eax
call fcn.004bc160
push dword [esi + 0x4c33cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bc160
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c096c
push eax
call fcn.004be424
add esp, 0x2c
pop edi
jmp 0x4bb8c1
lea eax, [ebp + 8]
lea esi, [esi + 0x4c33cc]
push 0
push eax
push dword [esi]
call fcn.004bc5e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret