joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46f988
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46f99f
add esp, 0xfffffff0
call fcn.0040349c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00420894
mov eax, dword [0x4772a0]
cmp word [eax + 2], 0
jne 0x46f9c7
mov eax, dword [0x4772a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00471108
mov eax, dword [0x477370]
cmp word [eax + 2], 0
jne 0x46f9e1
mov eax, dword [0x477370]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00471300
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415c54]
call fcn.00403108
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415c54]
call fcn.00403108
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x422df8]
call fcn.0042a314
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46fb68
mov eax, dword [0x4771bc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a6e4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4718a0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4771bc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c434
test eax, eax
je 0x46fad6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408710
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c45c
test eax, eax
je 0x46faea
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404138
mov eax, dword [0x477090]
cmp byte [eax], 0
jne 0x46fb1e
mov eax, ebx
call fcn.0046fc90
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00471a7c
mov eax, ebx
call fcn.00472440
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46fb5e
call fcn.004034f4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ff10
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x478bec]
cmp dword [eax + 0x30], 0
je 0x46ffba
cmp dword [ebx + 0x94], 0
jne 0x46ffb4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46fea0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46ffb4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46ff7a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46ffb4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004184a4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46ff89
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x470b1c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x470b51
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403fb8
jmp 0x470b5e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f1c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x471c58
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x471c99
mov eax, esi
call fcn.00457d00
test al, al
je 0x471c99
mov eax, dword [ebx + 0x84]
call fcn.004579fc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x471c99
push 0
mov eax, dword [ebx + 0x84]
call fcn.004579fc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4729e4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
xor eax, eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
xor eax, eax
push ebp
push 0x472c04
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
mov dl, 1
mov eax, dword [0x415c54]
call fcn.00403108
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [ebp - 0x114]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00402b4c
push 0
push 0
push 0
push 0
call sub.user32.dll_FindWindowExA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x472be0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetWindow
test eax, eax
jne 0x472bc4
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x472bc4
push 0xff
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetWindowTextA
test eax, eax
jle 0x472bc4
lea edx, [ebp - 0x118]
lea eax, [ebp - 0x114]
call fcn.004088c0
mov eax, dword [ebp - 0x118]
mov edx, 0x472c1c
call fcn.00407ee4
test eax, eax
je 0x472bc4
lea edx, [ebp - 0x11c]
lea eax, [ebp - 0x114]
call fcn.004088c0
mov eax, dword [ebp - 0x11c]
mov edx, 0x472c34
call fcn.00407ee4
test eax, eax
je 0x472bc4
mov edx, dword [0x472850]
mov eax, 0x14
call fcn.00404c9c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0xc], edx
lea eax, [ebp - 0x114]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00402b4c
push 0xff
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetWindowTextA
lea edx, [ebp - 0x120]
lea eax, [ebp - 0x114]
call fcn.004088c0
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0xc]
add eax, 8
call fcn.00403f1c
lea eax, [ebp - 0x114]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00402b4c
push pe_nt_image_headers32
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetClassNameA
lea edx, [ebp - 0x124]
lea eax, [ebp - 0x114]
call fcn.004088c0
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 0xc]
add eax, 4
call fcn.00403f1c
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00418348
push 0
push 0
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_FindWindowExA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x472a5d
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472c0b
lea eax, [ebp - 0x124]
mov edx, 4
call fcn.00403eec
ret
Function at 0x4030f0
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4155cb
push eax
mov al, byte [0x41d7f0]
mov dword fs:[0], esp
sub esp, 0x108
test al, al
jne 0x4031c9
push esi
push edi
push 1
lea eax, [esp + 0x10]
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.00410f51
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 0x104
push edx
push eax
mov dword [esp + 0x124], 0
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xc]
call fcn.00411020
push str.Naiky_
lea ecx, [esp + 0xc]
call fcn.004111be
mov edi, dword [esp + 8]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x118], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x41d7f0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
call fcn.00410ee3
pop edi
mov eax, 0x41d7f0
pop esi
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
mov ecx, dword [esp + 0x108]
mov eax, 0x41d7f0
mov dword fs:[0], ecx
add esp, 0x114
ret

Function at 0x403260
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
call fcn.004031f0
test al, al
je 0x4032c0
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0x14
ret
Function at 0x4039d0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x415688
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
push esi
call edi
test eax, eax
jne 0x403ab2
push esi
lea ecx, [esp + 0x28]
call fcn.00410f51
mov eax, dword [0x41c908]
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esp + 0x1c], 1
push esi
push 0x41c474
lea ecx, [esp + 0x2c]
call fcn.0040c24c
mov esi, eax
cmp esi, 0xffffffff
je 0x403a80
lea ecx, [esp + 0x10]
push esi
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040c1c6
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 2
call fcn.00410fd0
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 1
call fcn.00410ee3
mov edx, dword [esp + 0xc]
push edx
call edi
test eax, eax
jne 0x403a7d
push eax
mov eax, dword [esp + 0x10]
push eax
call ebp
test eax, eax
je 0x403a93
inc esi
jmp 0x403a24
mov ecx, dword [esp + 0x24]
push ecx
call edi
test eax, eax
jne 0x403a93
mov edx, dword [esp + 0x24]
push eax
push edx
call ebp
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.00410ee3
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.00410ee3
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x403b30
Capabilities:
Check if file exists

Disassembly:
mov al, byte [0x41d8f4]
sub esp, 0x104
test al, al
jne 0x403ba1
mov eax, dword [str.a:cfinfo.sys]
mov ecx, dword [0x41c4e4]
mov edx, dword [0x41c4e8]
mov dword [esp], eax
mov ax, word [0x41c4ec]
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
mov word [esp + 0x18], ax
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x1a]
mov dword [esp + 0x14], edx
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov bl, 0x64
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
mov byte [esp + 0xc], bl
push ecx
call esi
test eax, eax
jne 0x403b97
inc bl
cmp bl, 0x7a
jle 0x403b81
mov al, bl
pop edi
pop esi
mov byte [0x41d8f4], al
pop ebx
add esp, 0x104
ret

Function at 0x4048c1
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4048ec
test byte [esp + 8], 0x80
je 0x4048db
and al, 0xfe
jmp 0x4048dd
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4048fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00406b99
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x408bb1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41d1e8
cmp edx, dword [eax]
je 0x408bd3
add eax, 8
inc ecx
cmp eax, 0x41d278
jl 0x408bc4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41d1e8]
jne 0x408d01
mov eax, dword [0x41f8d8]
cmp eax, 1
je 0x408cdb
test eax, eax
jne 0x408c04
cmp dword [0x41caa4], 1
je 0x408cdb
cmp edx, 0xfc
je 0x408d01
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408c3b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409940
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409a30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408c7e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409a30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x417f48
push edi
call fcn.0040aec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409940
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409950
lea eax, [ebp - 0xa0]
push 0x417f28
push eax
call fcn.00409950
push dword [esi + 0x41d1ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409950
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ae37
add esp, 0x2c
pop edi
jmp 0x408d01
lea eax, [ebp + 8]
lea esi, [esi + 0x41d1ec]
push 0
push eax
push dword [esi]
call fcn.00409a30
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

Function at 0x40f6ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x40f6f0
call fcn.00414090
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40f6f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40f6e7
xor eax, eax
jmp 0x40f6f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040f6fe
pop edi
pop esi
pop ebx
ret 4

Function at 0x414ac6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x414af4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x414b12
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00414a2c
jmp 0x414b12
mov eax, dword [esi + 0x14]
test eax, eax
je 0x414b12
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00414a2c
test edi, edi
mov eax, edi
jne 0x414afc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x409915
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x4099c6
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x40d938
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x40d95a
mov eax, 0xfffffffd
jmp 0x40da37
mov ebx, dword [0x520558]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x40da05
mov ebx, dword [0x520558]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x40d9a9
mov ebx, dword [0x520558]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x40d9a9
mov eax, 1
jmp 0x40d9ab
xor eax, eax
test eax, eax
je 0x40d9d7
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x40d9c0
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x520558]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x40da2d
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x40da37
mov esp, ebp
pop ebp
ret 4

Function at 0x40e536
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.00409915
test eax, eax
je 0x40e579
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x40e579
cmp word [eax], 0x5a4d
jne 0x40e579
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x40e579
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.004099ff
mov eax, dword [ebp + 8]
jmp 0x40e592
mov esp, ebp
pop ebp
ret 4

Function at 0x412e8f
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
and eax, 1
leave
ret
Function at 0x436250
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x499bbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048e4a3
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4362d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048c3ba
mov eax, dword [eax]
push 0x50e248
push eax
call fcn.0047e874
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048e72e
test bl, bl
je 0x4362d2
push 0x50e248
lea ecx, [esp + 0xc]
call fcn.0048eabe
push 0x511dc4
lea ecx, [esp + 0xc]
call fcn.0048eabe
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x43630e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048e72e
jmp 0x4363d9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x436392
lea edx, [esp + 0x7c]
push 0x511dc0
push edx
call fcn.0047e874
add esp, 8
test eax, eax
je 0x436392
lea eax, [esp + 0x7c]
push 0x511dbc
push eax
call fcn.0047e874
add esp, 8
test eax, eax
je 0x436392
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x436322
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0048e72e
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x436bd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x436c32
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x436c40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x499c3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x51c5b0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x436d78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x436ca6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048e72e
xor eax, eax
jmp 0x436def
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0048e86b
push esi
lea ecx, [esp + 0xc]
call fcn.0048eafa
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x436dcd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push bind
call fcn.00436bd0
test eax, eax
jne 0x436dcd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push bind
mov ecx, edi
call fcn.00436bd0
test eax, eax
jne 0x436dcd
lea eax, [esp + 0x14]
push 0x511dd8
push eax
call fcn.0047f9c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x436dac
lea ecx, [esp + 0x14]
push 0x511dd4
push ecx
call fcn.0047f940
mov esi, eax
add esp, 8
test esi, esi
jne 0x436dac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x436daf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048e81b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x436cbe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048e72e
xor eax, eax
jmp 0x436def
mov byte [esi], 0
push 0x511dd0
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0048e72e
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4