joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bf315
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4bf42d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4bf42d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004ec1be
mov esi, eax
test esi, esi
je 0x4bf42d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4bf42d
mov ecx, esi
call fcn.004bf2a0
cmp edi, eax
jge 0x4bf42d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4bf3b3
mov dword [esp + 0x34], 1
jmp 0x4bf40e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4bf42d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004bdab0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4c3290
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1c0
push edi
lea eax, [esp + 0x34]
push eax
push 0x202
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4c3383
mov ax, word [esp + 0x34]
cmp al, 2
jne 0x4c337d
cmp ah, al
jne 0x4c337d
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x2c
lea ecx, [esp + 0x10]
push 0
push ecx
mov esi, eax
call fcn.004dba60
add esp, 0xc
push 0x7f00
push 0
mov dword [esp + 0x10], 0x30
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 0x4c30c0
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_LoadCursorA]
lea edx, [esp + 8]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], 8
mov dword [esp + 0x34], str.WSAAsyncWnd
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
jne 0x4c3335
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push SysReAllocString
push 0x520219
push str.WSAAsyncWnd
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test eax, eax
mov dword [edi + 4], eax
pop esi
je 0x4c3383
push edi
push str.THIS
push eax
call dword [sym.imp.USER32.dll_SetPropA]
mov eax, 1
pop edi
add esp, 0x1c0
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
pop edi
add esp, 0x1c0
ret
Function at 0x4c3390
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push 4
lea eax, [esp + 8]
push eax
push 8
push 0xffff
push esi
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
xor eax, eax
push eax
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0xc
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push 0xc
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
push 0x98000004
push esi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x1388
mov dword [esp + 0x34], 0x3e8
call dword [sym.imp.WS2_32.dll_WSAIoctl]
pop esi
add esp, 0x1c
ret 4
Function at 0x4d6750
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4d6799
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4d6c10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4fa220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004d67c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004d6840
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004d6840
lea ecx, [esi + 0xc]
call fcn.004ea71c
lea ecx, [esi + 0x10]
call fcn.004ea71c
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004d7dd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004d7dd0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004d7dd0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004ea791
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004ea791
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4d7fc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4d8026
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4d8026
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4d8007
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4ecb62
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ecb9a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004eabec
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004eabc4
jmp 0x4ecba6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ee254
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 0x4ee296
call fcn.004f3e0c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ee296
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ee28d
xor eax, eax
jmp 0x4ee29e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ee2a4
pop edi
pop esi
pop ebx
ret 4

Function at 0x4f433c
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 0x4f436a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f4388
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f42a2
jmp 0x4f4388
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f4388
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f42a2
test edi, edi
mov eax, edi
jne 0x4f4372
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x50b9bb
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0050bb6b
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x50bab9
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x50ba5c
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x50ba9f
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x50ba73
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x50ba8e
test al, 0x40
je 0x50ba85
mov ecx, dword [edi + 0x20]
jmp 0x50ba8c
test al, 0x80
je 0x50ba9f
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x50ba9f
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x50ba2b
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x402bd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4117d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [edi + 0x70]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x24], edx
mov edx, dword [edi + 0x20]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 8]
add eax, 0xffffffa2
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x28], eax
add eax, 0x3c
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
push 0
mov esi, eax
mov eax, dword [esp + 0x28]
push 0x808080
push 1
push ecx
push eax
push edx
push eax
sub esp, 0x10
mov ebx, esp
push esi
mov dword [ebx], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
call fcn.00401620
add esp, 0x30
lea ecx, [esp + 0x24]
push 0
push 0
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::Draw3dRect
mov edx, dword [esi]
lea eax, [edi + 0xf8]
push eax
mov ecx, esi
call dword [edx + 0x30]
mov edx, dword [esi]
push 0xffffff
mov ecx, esi
call dword [edx + 0x38]
push 1
mov ecx, esi
call sub.MFC42.DLL_CDC::SetBkMode
mov ecx, dword [0x4277b0]
call fcn.00405860
mov ebx, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ebx
fild qword [esp + 0x10]
fmul qword [edi + 0x260]
call sub.MSVCRT.dll__ftol
mov ecx, eax
mov eax, ebx
xor edx, edx
mov ebp, 0x1770
div ebp
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov eax, 0x57619f1
push edx
mul ebx
shr edx, 7
push edx
mov eax, ecx
xor edx, edx
mov ebx, ebp
div ebx
mov eax, 0x51eb851f
mul edx
shr edx, 5
mov eax, 0x57619f1
push edx
mul ecx
shr edx, 7
push edx
lea eax, [esp + 0x44]
push str._d:_02d__d:_02d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
lea ecx, [esp + 0x10]
call fcn.004110ac
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x20]
sub eax, ebx
mov ebx, dword [esp + 0x28]
sub eax, ebx
mov ebp, dword [esi]
cdq
sub eax, edx
mov dword [esp + 0x5c], 0
mov ecx, eax
mov eax, dword [esp + 0x2c]
sar ecx, 1
add ecx, ebx
mov ebx, dword [esp + 0x1c]
sub eax, ebx
mov ebx, dword [esp + 0x24]
sub eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x18]
sar eax, 1
add eax, ebx
mov ebx, dword [edx - 8]
push ebx
push edx
push ecx
push eax
mov ecx, esi
call dword [ebp + 0x64]
lea ecx, [esp + 0x18]
mov dword [esp + 0x5c], 0xffffffff
call fcn.004110ac
mov edx, dword [esi + 4]
mov eax, dword [edi + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x54]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x4045c0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push edi
push 0x418adc
push 0x418fec
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40464f
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov edi, eax
push 0
lea eax, [edi - 4]
push eax
push esi
call ebx
push esi
push 1
lea ecx, [esp + 0x30]
push 4
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esp + 0x38]
add esp, 0x2c
test eax, eax
pop ebx
jbe 0x404645
cmp eax, 0x61a80
jae 0x404645
cmp eax, edi
jae 0x404645
push esi
mov dword [0x4191ec], eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ecx
ret 4
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x4059e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, ecx
push ebp
push edi
lea eax, [ebx + 0x38]
push 0x418adc
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x405ab8
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x14bd8]
push esi
push 0
lea esi, [eax + eax*2]
shl esi, 4
mov edx, dword [ecx + esi + 0xc]
push edx
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [ebx + 0x14bd8]
mov ebx, dword [esp + 0x28]
mov esi, dword [eax + esi + 5]
mov dword [ebx], esi
add esi, 2
push esi
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x405a98
mov ebx, dword [ebx]
mov esi, ebp
cmp ebx, 0x7530
jbe 0x405a81
push edi
push 1
push 0x7530
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
je 0x405a81
sub ebx, 0x7530
add esi, 0x7530
cmp ebx, 0x7530
ja 0x405a57
push edi
push 1
push ebx
push esi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov esi, 1
test eax, eax
jne 0x405a9c
mov esi, dword [esp + 0x10]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test esi, esi
pop esi
jne 0x405ac1
test ebp, ebp
je 0x405ab8
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov eax, ebp
pop edi
pop ebp
pop ebx
pop ecx
ret 8

Function at 0x4089a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x411bba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov byte [esi + 4], al
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov cl, byte [esp + 0xb]
mov dword [esp + 0x18], edi
mov byte [esi + 0x14], cl
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dl, byte [esp + 0xb]
mov dword [esi + 0x28], edi
mov byte [esi + 0x24], dl
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov al, byte [esp + 0xb]
mov dword [esi + 0x3c], edi
mov byte [esi + 0x38], al
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
lea ecx, [esi + 0x484c]
mov byte [esp + 0x18], 3
call fcn.00409c10
lea ecx, [esi + 0x60b8]
mov byte [esp + 0x18], 4
call fcn.00409c10
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x7924], edi
mov dword [esi + 0x7970], edi
mov dword [esi], 0x412b74
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x408a70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x411c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x412b74
mov dword [esp + 0x14], 5
call fcn.00408b30
lea ecx, [esi + 0x60b8]
mov byte [esp + 0x14], 4
call fcn.00409cc0
lea ecx, [esi + 0x484c]
mov byte [esp + 0x14], 3
call fcn.00409cc0
mov eax, dword [esi + 0x3c]
push eax
mov dword [esp + 0xc], eax
call sub.MFC42.DLL_operatordelete
xor edi, edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x28]
push eax
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov eax, dword [esi + 0x18]
push eax
mov dword [esp + 0x14], eax
call sub.MFC42.DLL_operatordelete
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x1c]
add esp, 0x10
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40cc80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46813b
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.0045ce3b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40cd02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045ad8a
mov eax, dword [eax]
push 0x573210
push eax
call fcn.0044da54
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045d0c6
test bl, bl
je 0x40cd02
push 0x573210
lea ecx, [esp + 0xc]
call fcn.0045d456
push 0x576d70
lea ecx, [esp + 0xc]
call fcn.0045d456
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 0x40cd3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045d0c6
jmp 0x40ce09
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 0x40cdc2
lea edx, [esp + 0x7c]
push 0x576d6c
push edx
call fcn.0044da54
add esp, 8
test eax, eax
je 0x40cdc2
lea eax, [esp + 0x7c]
push 0x576d68
push eax
call fcn.0044da54
add esp, 8
test eax, eax
je 0x40cdc2
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 0x40cd52
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.0045d0c6
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 0x40d600
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 0x40d662
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 0x40d670
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4681bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x57d2a0]
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 0x40d7a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40d6d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045d0c6
xor eax, eax
jmp 0x40d81f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045d203
push esi
lea ecx, [esp + 0xc]
call fcn.0045d492
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x576da8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40d7fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040d600
test eax, eax
jne 0x40d7fd
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 closesocket
mov ecx, edi
call fcn.0040d600
test eax, eax
jne 0x40d7fd
lea eax, [esp + 0x14]
push 0x576d84
push eax
call fcn.0044ea90
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d7dc
lea ecx, [esp + 0x14]
push 0x576d80
push ecx
call fcn.0044ea10
mov esi, eax
add esp, 8
test esi, esi
jne 0x40d7dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40d7df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045d1b3
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40d6ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045d0c6
xor eax, eax
jmp 0x40d81f
mov byte [esi], 0
push 0x576d7c
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.0045d0c6
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