joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b464
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 + 0x2b4], edi
je 0x40b547
cmp dword [esi + 0x2bc], edi
je 0x40b50a
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 + 0x2a0]
mov dword [esi + 0x2a8], eax
call ebx
jmp 0x40b547
call fcn.00405d3f
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 3
lea edi, [esi + 0x2a8]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push 1
push 0x1003
push dword [esi + 0x2a0]
call ebx
xor edi, edi
cmp dword [esi + 0x2b8], edi
je 0x40b58a
call fcn.00405d3f
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 3
lea edi, [esi + 0x2ac]
push eax
mov dword [edi], eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetImageCount]
push dword [edi]
push 0
push 0x1003
push dword [esi + 0x2a0]
call ebx
call fcn.00405d3f
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 + 0x2a4], 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 + 0x2a4]
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 + 0x2a4]
call edi
push dword [esp + 0x14]
push ebp
push dword [esi + 0x2a4]
call edi
push dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push ebp
call edi
mov eax, dword [esi + 0x2a4]
mov esi, dword [esi + 0x2a0]
push eax
push 0
push 0x1208
push esi
call fcn.004040ee
pop ecx
push eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c8
ret

Function at 0x40c10a
Capabilities:
Get geographical location

Disassembly:
push esi
push edi
lea edi, [eax + 0x694]
mov ecx, dword [edi]
cmp dword [ecx + 0x18], 0
lea esi, [eax + 0x6a8]
je 0x40c13c
push dword [eax + 0x6c0]
call fcn.004101f1
mov eax, dword [edi]
cmp dword [eax + 0x18], 0
je 0x40c141
pop edi
mov eax, esi
pop esi
jmp fcn.00410198
call fcn.0041026d
pop edi
pop esi
ret
Function at 0x40cabf
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 0x40caee
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 0x4176b4
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
mov eax, dword [esi + 0x698]
push 1
push 1
push 2
lea ecx, [ebp - 0x208]
push ecx
push esi
call fcn.0040c99f
test eax, eax
pop edi
je 0x40cb73
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40cb4e
lea eax, [ebp - 0x208]
push eax
call fcn.0040517a
pop ecx
jmp 0x40cb54
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x40cb66
push dword [esi + 0x208]
mov ecx, eax
call fcn.00404fd2
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
leave
ret

Function at 0x40cbb8
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x47c
push esi
push edi
push 1
push dword [ebp + 8]
call fcn.0040cdeb
mov edi, 0x208
xor esi, esi
push edi
lea eax, [ebp - 0x47a]
push esi
push eax
mov word [ebp - 0x47c], si
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x26a]
push esi
push eax
mov word [ebp - 0x26c], si
call sub.msvcrt.dll_memset
push 0x40
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], esi
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x47c]
push eax
call fcn.004053cb
add esp, 0x28
lea eax, [ebp - 0x26c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x26c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x47c]
push eax
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
pop edi
pop esi
leave
ret 4

Function at 0x40d13a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [edi + 0x694]
sub esp, 0x800
push esi
lea esi, [eax + 0x78]
xor eax, eax
cmp word [esi], ax
jne 0x40d15b
push 0x416494
jmp 0x40d19a
push 0x7fe
push eax
mov word [ebp - 0x800], ax
lea eax, [ebp - 0x7fe]
push eax
call sub.msvcrt.dll_memset
push esi
push 0x416494
push str._s______s
lea eax, [ebp - 0x800]
push 0x3ff
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x20
lea eax, [ebp - 0x800]
push eax
push dword [edi + 0x208]
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop esi
leave
ret
Function at 0x40e5d7
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push dword [esp + 0x10]
xor esi, esi
call fcn.00404f59
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
je 0x40e629
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.004064b3
mov esi, dword [esi]
push edi
push esi
push ebx
call fcn.00405951
add esp, 0xc
mov esi, eax
test esi, esi
pop edi
je 0x40e622
mov eax, dword [esp + 0xc]
call fcn.0040e5ac
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x40eae0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.0040ea16
test eax, eax
jl 0x40eb30
mov esi, eax
lea ecx, [ebp - 4]
imul esi, esi, 0x18
add esi, dword [0x41eb88]
push ecx
push 4
push eax
push 0x40ea70
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
je 0x40eb30
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 0x40eb32
xor eax, eax
pop esi
leave
ret 8

Function at 0x40eba7
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040ea16
test eax, eax
jl 0x40ec05
mov esi, eax
lea ecx, [ebp - 4]
imul esi, esi, 0x18
add esi, dword [0x41eb88]
push ecx
push 4
push eax
push 0x40eb37
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
je 0x40ec05
mov eax, dword [ebp + 8]
mov dword [esi], edi
mov eax, dword [eax + 4]
push 0x10
push dword [ebp + 0xc]
mov dword [esi + 4], eax
add esi, 8
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
xor eax, eax
inc eax
jmp 0x40ec07
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x40ec67
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 0x40ecce
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 0x40ecb2
xor ebx, ebx
inc ebx
jmp 0x40ecca
call fcn.0040ece2
mov ebx, eax
test ebx, ebx
jne 0x40ecca
mov edi, dword [esi]
call sub.WS2_32.dll_WSAGetLastError
push eax
mov ecx, esi
call dword [edi + 0x18]
mov eax, ebx
jmp 0x40ecdc
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 0x40fac7
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20000
call fcn.00415020
cmp dword [ebp + 8], 0
je 0x40fb2c
test esi, esi
je 0x40fb1a
push 0x22
push esi
call sub.msvcrt.dll_wcschr
test eax, eax
pop ecx
pop ecx
je 0x40fb1a
and word [ebp - 0x20000], 0
push esi
push str.__s_
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 0x40fb1e
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 0x40fb44
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4004
call fcn.00415020
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 0x40fba3
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x4004]
push eax
push dword [edi]
push dword [ebp + 0x14]
call fcn.00405990
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 0x40fbe4
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x4004]
push 0x2000
push eax
push 0x4164c8
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.00405a19
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x40fbea
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0x18]
je 0x40fc08
push dword [esi]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040fa7a
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 0x4103f8
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 0x41058a
push ebx
mov eax, edi
call fcn.0040864a
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 0x416a88
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41047b
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 0x4104ca
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 0x4164c8
lea eax, [ebp - 0x38]
push eax
push ebx
lea esi, [ebp - 0x238]
call fcn.00410369
test eax, eax
jne 0x4104da
lea eax, [ebp - 0x38]
push str.040904E4
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
push 0x418c10
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x18]
push ebx
call fcn.00410369
push 0x418c28
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x218]
push ebx
call fcn.00410369
push 0x418c48
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x418]
push ebx
call fcn.00410369
push 0x418c60
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x618]
push ebx
call fcn.00410369
push 0x418c80
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0x818]
push ebx
call fcn.00410369
push 0x418c98
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xa18]
push ebx
call fcn.00410369
push 0x418cb4
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xc18]
push ebx
call fcn.00410369
push str.OriginalFileName
lea eax, [ebp - 0x38]
push eax
lea esi, [edi + 0xe18]
push ebx
call fcn.00410369
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 0x410708
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
je 0x410712
or eax, 0xffffffff
ret
cmp dword [esi + 4], 0
jne 0x41075b
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 0x410756
push dword [esi + 0x40]
mov dword [esi + 0x3c], 1
call sub.msvcrt.dll_ferror
test eax, eax
pop ecx
je 0x41070e
or dword [esi + 0x38], 0xffffffff
jmp 0x41070e
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 0x410769
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 0x4107d9
test edi, edi
je 0x410786
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 0x4107c1
push dword [esi + 0x40]
call sub.msvcrt.dll_ferror
test eax, eax
pop ecx
je 0x4107c1
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 0x4107d9
mov dword [esi + 0x58], eax
jmp 0x410892
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x41088f
cmp byte [eax + 1], 0x8b
jne 0x41088f
add dword [esi + 4], 0xfffffffe
add eax, 2
mov dword [esi], eax
call fcn.00410708
mov edi, eax
call fcn.00410708
cmp edi, 8
mov ebx, eax
jne 0x410886
test bl, 0xe0
jne 0x410886
push 6
pop edi
call fcn.00410708
dec edi
jne 0x410812
test bl, 4
je 0x410841
call fcn.00410708
mov edi, eax
call fcn.00410708
shl eax, 8
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x410841
call fcn.00410708
cmp eax, 0xffffffff
jne 0x410830
test bl, 8
je 0x410854
call fcn.00410708
test eax, eax
je 0x410854
cmp eax, 0xffffffff
jne 0x410846
test bl, 0x10
je 0x410867
call fcn.00410708
test eax, eax
je 0x410867
cmp eax, 0xffffffff
jne 0x410859
test bl, 2
je 0x410877
push 2
pop edi
call fcn.00410708
dec edi
jne 0x41086f
mov eax, dword [esi + 0x3c]
neg eax
sbb eax, eax
and eax, 0xfffffffd
mov dword [esi + 0x38], eax
jmp 0x410892
mov dword [esi + 0x38], 0xfffffffd
jmp 0x410892
mov dword [esi + 0x58], ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4121dd
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x41226a
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x41222a
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x41224c
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x412329
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x412292
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x41229d
xor eax, eax
jmp 0x4122ea
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x4122bb
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
push edx
call fcn.00413226
pop ecx
jmp 0x4122ce
cmp ecx, 2
jne 0x4122d4
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00412c07
add esp, 0xc
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
push dword [ebp - 4]
push dword [edi]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x412315
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x412329
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x4121e8
pop edi
pop ebx
leave
ret
Function at 0x412afc
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [0x41b048]
test eax, eax
je 0x412bfc
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [0x41b048], 0
xor eax, eax
movzx edx, byte [eax + 0x418370]
push 0x1f
pop ecx
sub ecx, edx
xor edx, edx
inc edx
shl edx, cl
or esi, edx
inc eax
cmp eax, 0xe
jb 0x412b1c
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x412b46
shr eax, 1
xor eax, esi
jmp 0x412b48
shr eax, 1
dec edx
jne 0x412b3c
mov dword [ecx*4 + 0x41c430], eax
inc ecx
cmp ecx, 0x100
jl 0x412b37
mov edi, 0x41d430
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 + 0x41c430]
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 0x412b9b
add edi, 4
cmp edi, 0x41d830
jl 0x412b65
pop edi
pop esi
pop ebp
mov dword [0x41b044], 0
pop ebx
pop ecx
ret
mov eax, dword [0x41b044]
test eax, eax
jne 0x412bfc
pop ecx
ret
Function at 0x414d3c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x416470
call fcn.00414f4c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x414d77
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414d77
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x414d8f
cmp eax, 0x20b
je 0x414d7c
mov dword [ebp - 0x1c], edi
jmp 0x414da3
cmp dword [ecx + 0x84], 0xe
jbe 0x414d77
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x414d9d
cmp dword [ecx + 0x74], 0xe
jbe 0x414d77
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 [0x41f4e0], 0xffffffff
or dword [0x41f4e4], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x41b41c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x41b418]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41f4dc], eax
call fcn.00401c1b
cmp dword [section..data], edi
jne 0x414e00
push fcn.00401c1b
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.00414f38
push 0x416440
push 0x41643c
call sub.msvcrt.dll__initterm
mov eax, dword [0x41b414]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x41b410]
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 0x416438
push 0x4163f8
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x414e66
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x414f20
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x414eb4
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x414e82
cmp ax, 0x22
jne 0x414e6f
cmp word [esi], 0x22
jne 0x414e8d
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x414e9b
cmp ax, 0x20
jbe 0x414e88
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x414ec1
movzx eax, word [ebp - 0x48]
jmp 0x414ec4
cmp word [esi], 0x20
jbe 0x414e8d
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x414eb4
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 0x414ee5
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x414f1a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00414f85
ret