joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a37b
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x478
push esi
push edi
push 1
push dword [ebp + 8]
call fcn.00409c70
mov edi, 0x208
xor esi, esi
push edi
lea eax, [esp + 0x276]
push esi
push eax
mov word [esp + 0x27c], si
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
lea eax, [esp + 0x66]
push esi
push eax
mov word [esp + 0x6c], si
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x40
lea eax, [esp + 0x20]
push esi
push eax
mov dword [esp + 0x24], esi
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [esp + 0x14], esi
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x27c]
add esp, 0xc
push eax
call fcn.00404701
pop ecx
lea eax, [esp + 0x60]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x68]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [esp + 0x294]
push eax
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40a4a0
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa70
push ebx
push esi
push edi
xor edi, edi
push 0x7fe
mov esi, eax
lea eax, [ebp - 0xa6e]
push edi
push eax
mov word [ebp - 0xa70], di
call sub.msvcrt.dll_memset
mov eax, dword [0x40f534]
mov dword [ebp - 8], eax
mov eax, dword [0x40f538]
add esp, 0xc
mov ebx, 0x28b
mov dword [ebp - 4], eax
call fcn.004059c7
inc ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], str..cfg
call fcn.004059c7
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push 2
push eax
lea ebx, [ebp - 0xa70]
mov dword [ebp - 0xc], 0x40f548
call fcn.00405015
push 0x208
lea eax, [ebp - 0x26e]
push edi
push eax
mov word [ebp - 0x270], di
call sub.msvcrt.dll_memset
add esp, 0x14
push 0xb
pop ebx
call fcn.004059c7
mov ecx, dword [esi + 0x208]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x60], ecx
lea eax, [ebp - 8]
lea ecx, [ebp - 0xa70]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x58], ecx
lea eax, [ebp - 0x64]
lea ecx, [ebp - 0x270]
push eax
mov dword [ebp - 0x64], 0x4c
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], 0x104
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], 0x81804
call dword [sym.imp.comdlg32.dll_GetOpenFileNameW]
test eax, eax
je 0x40a4e0
push dword [ebp - 0x48]
lea eax, [ebp - 0x270]
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
lea eax, [ebp - 0x270]
push eax
push edi
push esi
call fcn.0040a28d
call fcn.00408a9f
mov eax, dword [esi + 0x694]
call fcn.00407145
mov eax, dword [esi + 0x694]
call fcn.00406928
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a59c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa24
push ebx
push edi
xor edi, edi
push 0x7fe
lea eax, [ebp - 0xa22]
push edi
push eax
mov word [ebp - 0xa24], di
call sub.msvcrt.dll_memset
mov eax, dword [0x40f534]
mov dword [ebp - 8], eax
mov eax, dword [0x40f538]
add esp, 0xc
mov ebx, 0x28b
mov dword [ebp - 4], eax
call fcn.004059c7
inc ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], str..cfg
call fcn.004059c7
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push 2
push eax
lea ebx, [ebp - 0xa24]
mov dword [ebp - 0xc], 0x40f548
call fcn.00405015
push 0x208
lea eax, [ebp - 0x222]
push edi
push eax
mov word [ebp - 0x224], di
call sub.msvcrt.dll_memset
add esp, 0x14
push 0xa
pop ebx
call fcn.004059c7
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [esi + 0x208]
push eax
lea eax, [ebp - 0xa24]
push eax
xor ebx, ebx
lea edi, [ebp - 0x224]
call fcn.00404e78
add esp, 0xc
test eax, eax
pop edi
pop ebx
je 0x40a5b9
lea eax, [ebp - 0x224]
push eax
push 1
push esi
call fcn.0040a28d
mov eax, dword [esi + 0x694]
call fcn.00406928
leave
ret

Function at 0x40acbc
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
push esi
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40acad
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebx + 0x694]
call fcn.00406ff7
test eax, eax
je 0x40acad
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x10]
mov eax, 0x412350
call fcn.0040551d
mov edi, eax
xor esi, esi
cmp word [edi], si
je 0x40acaf
push edi
call fcn.004046d2
test eax, eax
pop ecx
je 0x40acaf
lea eax, [esp + 0x30]
mov dword [esp + 0x18], 0x40f9e0
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
call fcn.004053dd
push edi
call fcn.00405425
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0x1c]
call fcn.0040cdb2
push dword [esp + 0x14]
mov eax, esi
push dword [esp + 0x14]
push dword [ebx + 0x208]
call fcn.0040cc9f
lea esi, [esp + 0x30]
call fcn.004053ff
lea ecx, [esp + 0x18]
call fcn.0040cb46
jmp 0x40acec
xor esi, esi
push esi
push dword [ebx + 0x270]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
mov eax, dword [ebx + 0x694]
push esi
call fcn.00406e7a
mov esi, ebx
call fcn.00408a9f
push 0
push dword [ebx + 0x208]
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push 2
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40acdb
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
push esi
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x40acad
lea eax, [esp + 0xc]
push eax
mov eax, dword [ebx + 0x694]
call fcn.00406ff7
test eax, eax
je 0x40acad
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x10]
mov eax, 0x412350
call fcn.0040551d
mov edi, eax
xor esi, esi
cmp word [edi], si
je 0x40acaf
push edi
call fcn.004046d2
test eax, eax
pop ecx
je 0x40acaf
lea eax, [esp + 0x30]
mov dword [esp + 0x18], 0x40f9e0
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
call fcn.004053dd
push edi
call fcn.00405425
lea eax, [esp + 0x30]
push eax
lea esi, [esp + 0x1c]
call fcn.0040cdb2
push dword [esp + 0x14]
mov eax, esi
push dword [esp + 0x14]
push dword [ebx + 0x208]
call fcn.0040cc9f
lea esi, [esp + 0x30]
call fcn.004053ff
lea ecx, [esp + 0x18]
call fcn.0040cb46
jmp 0x40acec
xor esi, esi
push esi
push dword [ebx + 0x270]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
mov eax, dword [ebx + 0x694]
push esi
call fcn.00406e7a
mov esi, ebx
call fcn.00408a9f
push 0
push dword [ebx + 0x208]
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push 2
push edi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b7f3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x75c
call fcn.00402d1c
test eax, eax
jne 0x40b729
inc eax
jmp 0x40b8e2
push ebx
push esi
push edi
call fcn.0040ca68
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor ebx, ebx
push ebx
push 0x40ca4d
push ebx
mov dword [0x412b40], 0x11223344
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
lea eax, [ebp - 0x34]
call fcn.004053dd
lea eax, [ebp - 0x75c]
push eax
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call fcn.0040b418
push dword [ebp + 0x10]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x54], eax
call fcn.0040563a
mov esi, dword [ebp - 0x54]
push str._savelangfile
call fcn.004057be
test eax, eax
jl 0x40b7b7
mov dword [0x412f04], 0x4123a4
call fcn.0040659e
jmp 0x40b8ba
call fcn.004063fc
mov esi, dword [ebp - 0x54]
push str._deleteregkey
call fcn.004057be
test eax, eax
jge 0x40b8ba
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x30], 1
jle 0x40b7ed
lea edi, [ebp - 0x75c]
call fcn.0040b64e
test eax, eax
jne 0x40b8ba
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea edi, [ebp - 0x75c]
call fcn.0040b39c
cmp dword [ebp - 0x510], 3
jne 0x40b80c
push 3
jmp 0x40b80e
push 5
push dword [ebp - 0x554]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x554]
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x67
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push ebx
push ebx
mov dword [ebp - 0x53c], eax
push ebx
lea eax, [ebp - 0x50]
push eax
call esi
test eax, eax
je 0x40b8b4
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageW]
mov eax, dword [0x412b4c]
cmp eax, ebx
je 0x40b869
lea ecx, [ebp - 0x50]
push ecx
push eax
call edi
test eax, eax
jne 0x40b8a7
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x53c]
push dword [ebp - 0x554]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40b8a7
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x554]
call edi
test eax, eax
jne 0x40b8a7
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x50]
push eax
call esi
test eax, eax
jne 0x40b855
call dword [sym.imp.ole32.dll_CoUninitialize]
lea edi, [ebp - 0x75c]
call fcn.0040b56a
lea esi, [ebp - 0x34]
call fcn.004053ff
lea esi, [ebp - 0x14]
call fcn.004037aa
lea esi, [ebp - 0x34]
call fcn.004053ff
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x40ccd8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 8]
push eax
xor ebx, ebx
lea esi, [ebp - 4]
mov eax, edi
mov dword [ebp - 8], ebx
call fcn.0040cb8c
test eax, eax
je 0x40cdab
cmp dword [edi + 0xc], ebx
jne 0x40ccd3
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
mov esi, dword [eax]
push 4
push 0x2710
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_GetMenuItemCount]
push eax
push dword [edi + 0xc]
push dword [ebp - 4]
call dword [esi + 0xc]
cmp dword [ebp - 8], 1
mov esi, dword [sym.imp.USER32.dll_SetWindowLongW]
jle 0x40cd28
push 0x40cc17
push 0xfffffffffffffffc
push dword [ebp + 8]
call esi
cmp dword [ebp - 8], 2
mov dword [0x412b44], eax
mov eax, dword [ebp - 4]
jne 0x40cd21
mov dword [0x4132a0], eax
jmp 0x40cd2e
mov dword [0x4132a4], eax
jmp 0x40cd2e
mov dword [0x412b44], ebx
push ebx
push dword [ebp + 8]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x100
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov ebx, eax
mov eax, dword [0x412b44]
test eax, eax
je 0x40cd5a
push eax
push 0xfffffffffffffffc
push dword [ebp + 8]
call esi
lea eax, [ebx - 1]
cmp eax, 0x270f
ja 0x40cd92
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
dec ebx
movzx eax, bx
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
mov dword [ebp - 0x2c], 0x24
mov dword [ebp - 0x14], 1
call dword [ecx + 0x10]
xor ebx, ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [0x4132a0], 0
and dword [0x4132a4], 0
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40d114
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push edi
mov edi, 0x1fc
xor ebx, ebx
push edi
lea eax, [ebp - 0x202]
push ebx
push eax
mov word [ebp - 0x204], bx
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x402]
push ebx
push eax
mov word [ebp - 0x404], bx
call sub.msvcrt.dll_memset
add esp, 0x18
cmp dword [esi + 4], 0xffffffff
mov dword [ebp - 4], 1
jne 0x40d094
cmp dword [esi + 8], ebx
jg 0x40d094
mov dword [ebp - 4], ebx
cmp dword [ebp - 4], ebx
mov edi, dword [ebp + 8]
mov word [edi], bx
je 0x40d127
push str._font
push edi
call sub.msvcrt.dll_wcscpy
mov eax, dword [esi + 8]
cmp eax, ebx
pop ecx
pop ecx
jle 0x40d0de
push eax
push str._size__d_
lea eax, [ebp - 0x204]
push 0xff
push eax
call sub.msvcrt.dll__snwprintf
lea eax, [ebp - 0x204]
push eax
push edi
call sub.msvcrt.dll_wcscat
add esp, 0x18
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x40d11a
lea ecx, [ebp - 0x404]
push ecx
push eax
call fcn.0040cf70
push eax
push str._color__s_
lea eax, [ebp - 0x204]
push 0xff
push eax
call sub.msvcrt.dll__snwprintf
lea eax, [ebp - 0x204]
push eax
push edi
call sub.msvcrt.dll_wcscat
add esp, 0x20
push 0x40fa90
push edi
call sub.msvcrt.dll_wcscat
pop ecx
pop ecx
cmp dword [esi + 0xc], ebx
je 0x40d139
push 0x40fa94
push edi
call sub.msvcrt.dll_wcscat
pop ecx
pop ecx
push dword [ebp + 0xc]
push edi
call sub.msvcrt.dll_wcscat
cmp dword [esi + 0xc], ebx
pop ecx
pop ecx
je 0x40d156
push 0x40fa9c
push edi
call sub.msvcrt.dll_wcscat
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
je 0x40d168
push str.__font_
push edi
call sub.msvcrt.dll_wcscat
pop ecx
pop ecx
mov eax, edi
pop edi
pop ebx
leave
ret

Function at 0x40d191
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
cmp dword [eax + 0x10], 0
je 0x40d1c2
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x80]
push 0x40e4b4
push eax
mov dword [ebp - 0x98], 0x98
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x8c], 4
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
lea eax, [ebp - 0x98]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
leave
ret

Function at 0x40d237
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
cmp dword [esi + 0x10], 0
mov eax, dword [esi + 4]
mov dword [ebp - 0x98], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x9c], 0x98
mov dword [ebp - 0x90], 2
mov dword [ebp - 0x88], eax
je 0x40d213
lea eax, [ebp - 0x9c]
push eax
push 1
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
jmp 0x40d23c
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x9c]
push eax
push 0
mov dword [ebp - 0x90], 3
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov dword [esi + 0x10], 1
leave
ret 4
Function at 0x40d5f0
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push 0x70
push 0x40e440
call fcn.0040d800
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40d62b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d62b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d643
cmp eax, 0x20b
je 0x40d630
mov dword [ebp - 0x1c], edi
jmp 0x40d657
cmp dword [ecx + 0x84], 0xe
jbe 0x40d62b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40d651
cmp dword [ecx + 0x74], 0xe
jbe 0x40d62b
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 [0x413780], 0xffffffff
or dword [0x413784], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4123bc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4123b8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41377c], eax
call fcn.00401adf
cmp dword [section..data], edi
jne 0x40d6b4
push fcn.00401adf
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040d7ec
push 0x40e410
push 0x40e40c
call sub.msvcrt.dll__initterm
mov eax, dword [0x4123b4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x4123b0]
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 0x40e408
push 0x40e3e4
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40d71a
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40d7d4
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x40d768
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40d736
cmp ax, 0x22
jne 0x40d723
cmp word [esi], 0x22
jne 0x40d741
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40d74f
cmp ax, 0x20
jbe 0x40d73c
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x40d775
movzx eax, word [ebp - 0x48]
jmp 0x40d778
cmp word [esi], 0x20
jbe 0x40d741
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x40d768
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 0x40d799
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40d7ce
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040d839
ret
Function at 0x40d697
Capabilities:
Create process on windows

Disassembly:
push 0x70
push 0x40e440
call fcn.0040d800
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40d62b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d62b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d643
cmp eax, 0x20b
je 0x40d630
mov dword [ebp - 0x1c], edi
jmp 0x40d657
cmp dword [ecx + 0x84], 0xe
jbe 0x40d62b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40d651
cmp dword [ecx + 0x74], 0xe
jbe 0x40d62b
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 [0x413780], 0xffffffff
or dword [0x413784], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4123bc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4123b8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41377c], eax
call fcn.00401adf
cmp dword [section..data], edi
jne 0x40d6b4
push fcn.00401adf
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040d7ec
push 0x40e410
push 0x40e40c
call sub.msvcrt.dll__initterm
mov eax, dword [0x4123b4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x4123b0]
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 0x40e408
push 0x40e3e4
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40d71a
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40d7d4
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x40d768
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40d736
cmp ax, 0x22
jne 0x40d723
cmp word [esi], 0x22
jne 0x40d741
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40d74f
cmp ax, 0x20
jbe 0x40d73c
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x40d775
movzx eax, word [ebp - 0x48]
jmp 0x40d778
cmp word [esi], 0x20
jbe 0x40d741
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x40d768
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 0x40d799
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40d7ce
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040d839
ret
Function at 0x40d72a
Capabilities:
Get file system object information

Disassembly:
push 0x70
push 0x40e440
call fcn.0040d800
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40d62b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d62b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40d643
cmp eax, 0x20b
je 0x40d630
mov dword [ebp - 0x1c], edi
jmp 0x40d657
cmp dword [ecx + 0x84], 0xe
jbe 0x40d62b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40d651
cmp dword [ecx + 0x74], 0xe
jbe 0x40d62b
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 [0x413780], 0xffffffff
or dword [0x413784], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x4123bc]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x4123b8]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x41377c], eax
call fcn.00401adf
cmp dword [section..data], edi
jne 0x40d6b4
push fcn.00401adf
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040d7ec
push 0x40e410
push 0x40e40c
call sub.msvcrt.dll__initterm
mov eax, dword [0x4123b4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x4123b0]
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 0x40e408
push 0x40e3e4
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40d71a
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x40d7d4
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x40d768
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40d736
cmp ax, 0x22
jne 0x40d723
cmp word [esi], 0x22
jne 0x40d741
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40d74f
cmp ax, 0x20
jbe 0x40d73c
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x40d775
movzx eax, word [ebp - 0x48]
jmp 0x40d778
cmp word [esi], 0x20
jbe 0x40d741
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x40d768
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 0x40d799
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40d7ce
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040d839
ret