joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005077
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1000a2a0
call fcn.100097d0
sub esp, 0x408
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 0x14]
mov dword [ebp + 0x14], ebx
push 0xf003f
lea ecx, [ebp + 0x14]
push dword [ebp + 0xc]
mov byte [ebp - 4], 2
push dword [ebp + 8]
call fcn.10007a46
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10005112
push 0x401
lea eax, [ebp - 0x414]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
mov dword [ebp - 0x10], ebx
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x10005105
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov edi, eax
cmp dword [ebp + 0x14], ebx
je 0x1000511f
push dword [ebp + 0x14]
call esi
mov dword [ebp + 0x14], ebx
cmp dword [ebp + 0x14], ebx
je 0x1000511f
push dword [ebp + 0x14]
call esi
mov dword [ebp + 0x14], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x1000723d
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebp, eax
call esi
sub eax, ebp
cmp eax, dword [esp + 0x28]
jae 0x1000729c
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
xor ebx, ebx
push 1
push ebx
push ebx
lea eax, [esp + 0x1c]
push ebx
push eax
call edi
test eax, eax
je 0x10007288
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x10007260
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, ebp
cmp eax, dword [esp + 0x30]
jb 0x10007260
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x100072d0
Capabilities:
Get file version info

Disassembly:
mov eax, 0x1000a7d0
call fcn.100097d0
sub esp, 0x618
push esi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x624]
xor esi, esi
push 0x400
push eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x624]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x100073d4
push edi
push eax
call sub.MFC42.DLL_operatornew
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x624]
push dword [ebp - 0x14]
push dword [ebp - 0x20]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x100073cc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x100073cc
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
movzx eax, word [eax]
shr ecx, 0x10
push ecx
push eax
lea eax, [ebp - 0x224]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x224]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x100073cc
push dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
call fcn.10009330
push 0x1000eb5c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find_2
push eax
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Mid
push dword [eax]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov esi, eax
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
push edi
call sub.MFC42.DLL_operatordelete
pop ecx
pop edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x1000745f
Capabilities:
Create http request

Disassembly:
mov eax, 0x1000a7e7
call fcn.100097d0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea edi, [esi + 4]
mov ecx, edi
call sub.MFC42.DLL_CString::CString_1
xor ebx, ebx
mov dword [esi], 0x1000b760
push ebx
push ebx
push ebx
push 1
push str.MyWeb
mov dword [ebp - 4], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0x1000ec38
mov ecx, edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
call fcn.10009330
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x10007504
Capabilities:
Create thread
Read data from internet
Receive data

Disassembly:
mov eax, 0x1000a81b
call fcn.100097d0
sub esp, 0x81c
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x18], ebx
push 1
lea ecx, [ebp - 0x10]
pop edi
push 0x1000ec38
mov dword [ebp - 4], edi
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp + 0xc]
lea ecx, [esi + 4]
push eax
mov byte [ebp - 4], 2
call fcn.100094f8
lea eax, [ebp - 0x28]
push eax
push ebx
push esi
push 0x1000769f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x3a98
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10007587
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x18], edi
jmp 0x10007674
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x100075a9
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], ebx
je 0x100075b1
push dword [esi + 0xc]
jmp 0x1000765f
cmp dword [esi + 0xc], ebx
mov dword [ebp - 0x1c], ebx
je 0x1000765c
mov edi, 0x400
lea eax, [ebp - 0x428]
push edi
push ebx
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x828]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
mov dword [ebp - 0x24], 0x64
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x428]
push 0x3ff
push eax
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetReadFile]
push dword [ebp - 0x14]
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea eax, [ebp - 0x828]
lea ecx, [ebp - 0x10]
push eax
call fcn.10009576
mov eax, dword [ebp - 0x14]
push edi
add dword [ebp - 0x1c], eax
lea eax, [ebp - 0x428]
push ebx
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x828]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
cmp dword [ebp - 0x14], ebx
jne 0x100075e8
dec dword [ebp - 0x24]
jne 0x100075e8
push 1
pop edi
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x100088a9
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1000a9ec
call fcn.100097d0
sub esp, 0x18
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esp
cmp dword [esi + 4], edi
mov dword [ebp - 0x14], edi
jne 0x100088cf
xor eax, eax
jmp 0x100089a7
cmp dword [esi + 8], 0xffffffff
jae 0x1000896a
push 0x3e8
mov ecx, esi
push dword [esi + 0x10]
call fcn.10008a81
cmp eax, edi
mov dword [ebp - 4], edi
jne 0x10008999
cmp dword [esi + 4], edi
je 0x1000898c
xor ebx, ebx
test edi, edi
jne 0x1000892e
cmp ebx, 3
jge 0x1000898c
push 0xa
mov ecx, esi
call fcn.10008ae1
push 0x3f7ec
push edi
push edi
push 0xf001f
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
inc ebx
jmp 0x100088fe
mov eax, dword [edi + 4]
test eax, eax
mov dword [ebp - 0x18], eax
jbe 0x1000896f
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
push ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, esp
mov dword [ebp - 0x24], esp
mov dword [eax], ecx
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100033b3
cmp dword [ebp - 0x20], 0xa
jle 0x10008985
call ebx
jmp 0x10008975
push 1
pop eax
jmp 0x100089a7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 4], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 8], eax
mov dword [ebp - 0x14], 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0
jmp 0x1000899e
push 0x5b4
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x10008a81
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 0x1000aa04
call fcn.100097d0
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
call esi
and dword [ebp - 4], 0
mov ebx, eax
call esi
sub eax, ebx
cmp eax, dword [ebp + 0xc]
jae 0x10008acb
push 1
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10008ad0
push 0xa
mov ecx, edi
call fcn.10008ae1
jmp 0x10008aa2
mov eax, 0x102
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8

Function at 0x10008ae1
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebp, eax
call edi
sub eax, ebp
cmp eax, dword [esp + 0x28]
jae 0x10008b40
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
xor ebx, ebx
push 1
push ebx
push ebx
lea eax, [esp + 0x1c]
push ebx
push eax
call esi
test eax, eax
je 0x10008b2c
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x10008b04
push 2
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebp
cmp eax, dword [esp + 0x30]
jb 0x10008b04
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x1c
ret 4
Function at 0x10008ccb
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor eax, eax
mov edi, ecx
cmp dword [ebp + 8], eax
mov dword [ebp - 8], edi
je 0x10008d66
cmp dword [ebp + 0xc], eax
je 0x10008d66
push ebx
mov esi, 0x200
push 0x201
mov ebx, esi
call sub.MFC42.DLL_operatornew
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
test eax, eax
pop ecx
jne 0x10008d09
mov eax, 0x1000ec38
push dword [edi + 4]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push dword [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
inc eax
cmp eax, esi
jb 0x10008d60
push dword [ebp - 4]
add ebx, esi
call sub.MFC42.DLL_operatordelete
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_operatornew
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
pop ecx
test eax, eax
pop ecx
jne 0x10008d48
mov eax, 0x1000ec38
mov ecx, dword [ebp - 8]
push dword [ecx + 4]
push ebx
push dword [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
inc eax
cmp eax, ebx
jae 0x10008d24
mov eax, dword [ebp - 4]
pop ebx
jmp 0x10008d99
cmp dword [ebp + 0x10], eax
jne 0x10008d7a
push 1
call sub.MFC42.DLL_operatornew
mov esi, eax
pop ecx
and byte [esi], 0
jmp 0x10008d97
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
inc eax
push eax
call sub.MFC42.DLL_operatornew
push dword [ebp + 0x10]
mov esi, eax
push esi
call sub.MSVCRT.dll_strcpy
add esp, 0x10
mov eax, esi
pop edi
pop esi
leave
ret 0xc
Function at 0x402547
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
movzx ecx, ax
mov ebx, eax
shr ebx, 0x10
mov eax, 1
test esi, esi
je 0x40265d
test edi, edi
je 0x402656
mov edx, edi
cmp edi, 0x15b0
jbe 0x402582
mov edx, 0x15b0
sub edi, edx
cmp edx, 0xf
jle 0x40261b
movzx eax, byte [esi]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 1]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 2]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 3]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 4]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 5]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 6]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 7]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 8]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 9]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 0xa]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 0xb]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 0xc]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 0xd]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 0xe]
add ecx, eax
add ebx, ecx
movzx eax, byte [esi + 0xf]
add ecx, eax
add ebx, ecx
add esi, 0x10
sub edx, 0x10
cmp edx, 0xf
jg 0x40258d
test edx, edx
je 0x40262a
movzx eax, byte [esi]
add ecx, eax
inc esi
add ebx, ecx
dec edx
jne 0x40261f
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xfff1
sub ecx, edx
mov eax, 0x80078071
mul ebx
shr edx, 0xf
imul edx, edx, 0xfff1
sub ebx, edx
test edi, edi
jne 0x402573
mov eax, ebx
shl eax, 0x10
or eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403784
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, esi
add eax, dword [esi + 0x3c]
mov edi, esi
add edi, dword [eax + 0x78]
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004028f6
test eax, eax
jne 0x4037f3
mov ebx, 0
cmp ebx, dword [edi + 0x18]
jae 0x403810
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004028f6
test eax, eax
je 0x40380a
lea eax, [ebx + ebx]
add eax, dword [edi + 0x24]
movzx eax, word [eax + esi]
shl eax, 2
add eax, dword [edi + 0x1c]
add esi, dword [eax + esi]
mov eax, esi
jmp 0x403815
inc ebx
cmp ebx, dword [edi + 0x18]
jb 0x4037d0
mov eax, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4043ed
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0xc]
mov ebx, dword [esi]
cmp ebx, esi
je 0x40444c
test edi, edi
jne 0x40442d
mov dword [esp], ebx
call fcn.004039b3
test eax, eax
je 0x40442d
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x10], ebx
jmp 0x40444c
cmp edi, 1
jne 0x404446
mov dword [esp], ebx
call fcn.00402a17
test eax, eax
je 0x404446
mov ebx, dword [ebx + 0x18]
mov dword [ebp - 0x10], ebx
jmp 0x40444c
mov ebx, dword [ebx]
cmp ebx, esi
jne 0x404415
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x404bf7
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax + 0x48]
mov dword [esp + 4], 0x40a237
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.00404ad5
cmp word [ebx], 0
je 0x404c81
cld
mov dword [ebp - 0x44], ebx
movzx eax, word [ebx]
add ebx, 2
test ax, ax
jne 0x404c41
mov esi, dword [ebp - 0x44]
lea edi, [ebp - 0x38]
mov ecx, 0x10
repe cmpsb byte [esi], byte es:[edi]
seta dl
setb al
cmp dl, al
jne 0x404c7b
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 1
mov eax, dword [ebp - 0x44]
add eax, 0x10
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
jmp 0x404cb4
cmp word [ebx], 0
jne 0x404c3e
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x30]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ecx + 0x18]
cmp eax, dword [edx + 8]
jne 0x404ca0
mov eax, dword [ecx + 0x28]
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], eax
jmp 0x404cb4
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx]
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x3c]
cmp ecx, eax
jne 0x404c81
mov eax, 0
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4053c0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b3bb
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.004618aa
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x405442
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045be35
mov eax, dword [eax]
push 0x486b90
push eax
call fcn.0044e97a
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461b35
test bl, bl
je 0x405442
push 0x486b90
lea ecx, [esp + 0xc]
call fcn.00461f11
push 0x486b9c
lea ecx, [esp + 0xc]
call fcn.00461f11
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 0x40547e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461b35
jmp 0x405549
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 0x405502
lea edx, [esp + 0x7c]
push 0x486b98
push edx
call fcn.0044e97a
add esp, 8
test eax, eax
je 0x405502
lea eax, [esp + 0x7c]
push 0x486b94
push eax
call fcn.0044e97a
add esp, 8
test eax, eax
je 0x405502
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 0x405492
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.00461b35
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 0x405d70
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 0x405dd2
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 0x405de0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46b43b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48df80]
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 0x405f18
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x405e46
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461b35
xor eax, eax
jmp 0x405f8f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00461cbe
push esi
lea ecx, [esp + 0xc]
call fcn.00461f4d
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 0x405f6d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00405d70
test eax, eax
jne 0x405f6d
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 SysReAllocStringLen
mov ecx, edi
call fcn.00405d70
test eax, eax
jne 0x405f6d
lea eax, [esp + 0x14]
push 0x486bb4
push eax
call fcn.0044eeb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x405f4c
lea ecx, [esp + 0x14]
push 0x486bb0
push ecx
call fcn.0044ee30
mov esi, eax
add esp, 8
test esi, esi
jne 0x405f4c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x405f4f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00461c6e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x405e5e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461b35
xor eax, eax
jmp 0x405f8f
mov byte [esi], 0
push 0x486bac
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.00461b35
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
Function at 0x41c3d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46c5c8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00416cd0
test eax, eax
je 0x41c4d8
lea ecx, [esp + 0xc]
call fcn.00401060
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.00416cd0
mov ecx, eax
call fcn.00420b80
test eax, eax
je 0x41c4bf
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x41c4bf
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41c4bf
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
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 + 0x10]
call fcn.00401290
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x41c4a1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41c4bf
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x49e7e0]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x472148
call fcn.00401290
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10