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

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x50affb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x50b035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.0050ae00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x50afc5
mov edi, 0x5258b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x50b035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0050ae00
add edi, 4
add esp, 0xc
cmp edi, 0x5258c0
jb 0x50b000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x50b070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00511082
mov esi, eax
add esp, 8
test esi, esi
je 0x50b107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x50b102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00510946
add esp, 8
test eax, eax
je 0x50b0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x50b0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00510946
add esp, 8
test eax, eax
jne 0x50b0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x50b102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x50bf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x5209fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x50c002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0050fdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x50c002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.005076e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0051020b
push 0x10
call fcn.005101d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x50bfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.004fc1c0
jmp 0x50bfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0050bb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x50bff0
mov ecx, edi
call fcn.004fc2c0
push edi
call fcn.005101c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x50c021
inc ebx
cmp ebx, 0x20
jb 0x50bf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x50d250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x521808
push 0x511288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x50d329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x50d329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.005101d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x50d329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x50d329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x50d32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0050d351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50dd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x50dd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x50dd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x50dd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x50dd94
push eax
push esi
call fcn.0051020b
add esp, 8
pop esi
ret 0x10

Function at 0x50dda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x50de22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x50de15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x526320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0050fdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x50ddda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x50de30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x50dec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x50deb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x526320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0050fdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x50deab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x50de6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x50e000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x50e131
push esi
call fcn.00511145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00500080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x50e131
push 0
push ebp
call fcn.005003a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00500260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x50e08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005002f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x50e121
push 0x526918
push edi
call fcn.0050f3f0
push eax
push ebx
push esi
call fcn.0050df60
push 0x5268f8
push edi
call fcn.0050f3f0
push eax
push ebx
push esi
call fcn.0050df60
push 0x5268d8
push edi
call fcn.0050f3f0
push eax
push ebx
push esi
call fcn.0050df60
push 0x5268c0
push edi
call fcn.0050f3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0050df60
push 0x5268a0
push edi
call fcn.0050f3f0
push eax
push ebx
push esi
call fcn.0050df60
push 0x526888
push edi
call fcn.0050f3f0
push eax
push ebx
push esi
call fcn.0050df60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x50f1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0050f140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0050f140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0050f140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0050f140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x50fbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x50fc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x52187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50fc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x50fc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x405030
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x40
push ebx
mov ebx, ecx
push ebp
push esi
mov ecx, dword [ebx + 0x20]
lea eax, [esp + 0x1c]
push edi
push eax
push ecx
mov dword [esp + 0x18], 0x41740c
mov dword [esp + 0x1c], 0x417400
mov dword [esp + 0x20], 0x4173f8
mov dword [esp + 0x24], 0x4173ec
call dword [sym.imp.USER32.dll_GetClientRect]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
xor esi, esi
lea edi, [esp + 0x10]
mov ecx, dword [ebx + 0x20]
mov edx, dword [edi]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0xd
push eax
push esi
push 0x101b
push ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x4c], edx
mov dword [esp + 0x54], esi
call ebp
inc esi
add edi, 4
cmp esi, 4
jl 0x405074
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret

Function at 0x405960
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
sub esp, 0x1a0
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x44], 1
je 0x405a89
lea eax, [esp + 0x18]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x4059a0
push 0
push 0
push 0x41757c
call sub.MFC42.DLL_AfxMessageBox
pop edi
pop esi
add esp, 0x1a0
ret 4
mov ax, word [esp + 0x18]
cmp al, 1
jne 0x405a76
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x405a76
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x40], eax
jne 0x4059da
push 0
push 0
push 0x417554
jmp 0x405a7f
mov edx, dword [esp + 0x1ac]
push edx
call sub.WSOCK32.dll_inet_addr
push 0x3ec
mov edi, eax
mov word [esp + 0xc], 2
call sub.WSOCK32.dll_htons
mov ecx, dword [esi + 0x40]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push ecx
mov dword [esp + 0x18], edi
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x405a23
push 0
push 0
push 0x4174b0
jmp 0x405a44
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x40]
push 0x21
push 0x7ec
push eax
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
test eax, eax
je 0x405a64
push 0
push 0
push 0x417460
call sub.MFC42.DLL_AfxMessageBox
mov edx, dword [esi + 0x40]
mov ecx, esi
push edx
call fcn.00405ff0
call fcn.00410886
pop edi
pop esi
add esp, 0x1a0
ret 4
mov dword [esi + 0x44], 1
pop edi
pop esi
add esp, 0x1a0
ret 4
push 0
push 0
push 0x417418
call sub.MFC42.DLL_AfxMessageBox
call fcn.00410886
pop edi
pop esi
add esp, 0x1a0
ret 4

Function at 0x405f80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
mov eax, esi
push edi
mov edi, dword [esp + 0x14]
and eax, 0xffff
push 0
push eax
push edi
push ebx
call sub.WSOCK32.dll_send
mov ecx, eax
and ecx, 0xffff
cmp ecx, 0xffffffff
je 0x405fd5
sub esi, eax
add edi, ecx
test si, si
jbe 0x405fe0
mov ecx, esi
push 0
and ecx, 0xffff
push ecx
push edi
push ebx
call sub.WSOCK32.dll_send
mov ecx, eax
and ecx, 0xffff
cmp ecx, 0xffffffff
jne 0x405fad
call sub.WSOCK32.dll_WSAGetLastError
pop edi
pop esi
pop ebx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x40a2a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4119f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CClientDC::CClientDC
xor ebp, ebp
lea ecx, [esp + 8]
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 0xd8]
mov byte [esp + 0x30], 1
add ecx, 0xd9c
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CDC::SelectObject_2
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xdc]
cmp eax, ebp
jle 0x40a429
push edi
push ebx
mov ebx, 0x64
mov ecx, dword [esi + 0xd8]
mov eax, dword [ecx + ebp*4 + 0xd2c]
test eax, eax
je 0x40a415
mov edi, dword [esp + 0x40]
mov edx, dword [esi + 0xec]
lea edi, [edi + edi*2]
shl edi, 2
mov eax, dword [edi + edx + 8]
fld dword [eax + ebp*4]
fcomp qword [0x414910]
fnstsw ax
test ah, 0x40
jne 0x40a415
push ebp
call fcn.0040e4c0
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CDC::SetTextColor
mov ecx, dword [esi + 0xec]
sub esp, 8
lea eax, [esp + 0x18]
mov edx, dword [edi + ecx + 8]
fld dword [edx + ebp*4]
fstp qword [esp]
push str._.1f
push eax
call sub.MFC42.DLL_CString::Format
lea eax, [ebp + 1]
add esp, 0x10
cdq
xor eax, edx
sub eax, edx
and eax, 1
xor eax, edx
sub eax, edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
jne 0x40a3a9
push 0xf
jmp 0x40a3ab
push 0
mov edx, dword [esp + 0x28]
push ebx
lea ecx, [esp + 0x2c]
call dword [edx + 0x64]
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x140]
test ecx, ecx
je 0x40a415
mov eax, dword [esi + 0xec]
add eax, edi
movsx ecx, byte [eax + 1]
movsx edx, byte [eax]
push ecx
push edx
movsx ecx, byte [eax + 4]
movsx edx, byte [eax + 3]
movsx eax, word [eax + 6]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push str._d__d__d___d:_d
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x1c
lea edx, [esp + 0x10]
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 0x40]
call fcn.004064f0
mov eax, dword [esi + 0xdc]
inc ebp
add ebx, 0x1e
cmp ebp, eax
jl 0x40a319
pop ebx
pop edi
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CDC::SelectObject_2
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call fcn.0040fe02
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0xffffffff
call fcn.004102fa
mov ecx, dword [esp + 0x28]
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x2c
ret 0xc
Function at 0x40a470
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x411a10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ecx + 0x20]
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0x40]
push 7
mov ecx, esi
call sub.MFC42.DLL_CDC::SetROP2
push 0xff00ff
push 3
push 0
lea ecx, [esp + 0x1c]
mov edi, eax
call sub.MFC42.DLL_CPen::CPen
lea edx, [esp + 0x10]
mov ecx, esi
push edx
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_CDC::SelectObject
mov ebp, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x38]
push eax
push ebp
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x24]
mov ecx, esi
push edx
push ebp
call sub.MFC42.DLL_CDC::LineTo
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject
push edi
mov ecx, esi
call sub.MFC42.DLL_CDC::SetROP2
mov dword [esp + 0x10], 0x413990
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret 0xc
Function at 0x40d4c0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x411fba
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x20]
push edi
mov ecx, dword [esi + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov ecx, esi
xor edi, edi
lea ebx, [eax - 0x35]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
add eax, 0x69
lea ecx, [esi + 0x2e8]
push eax
push esi
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov edx, esp
mov dword [edx], edi
mov dword [edx + 4], ebx
mov dword [edx + 8], ebp
mov dword [edx + 0xc], eax
call fcn.0040f3d0
mov ebp, 0x32
mov ebx, 2
mov edi, 0x1c
mov ecx, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0xb4
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
inc eax
lea ecx, [esp + 0x14]
push eax
push esi
push ecx
push 0x58800000
push 0x417cc8
lea ecx, [esi + 0xda4]
call sub.MFC42.DLL_CButton::Create
mov ecx, esi
mov dword [esp + 0x14], 0xb6
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x2a8
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
add eax, ebx
lea edx, [esp + 0x14]
push eax
push esi
push edx
push 0x58800000
push 0x417cc8
lea ecx, [esi + 0xde4]
call sub.MFC42.DLL_CButton::Create
mov ecx, esi
mov dword [esp + 0x14], 0x2a9
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x300
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
add eax, 0xb
lea ecx, [esi + 0xe24]
push eax
lea eax, [esp + 0x18]
push esi
push eax
push 0x50800000
push 0x417b9c
call sub.MFC42.DLL_CButton::Create
push 0xf0
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x3c], 0
je 0x40d618
mov ecx, eax
call fcn.004096e0
jmp 0x40d61a
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov edi, dword [eax]
add ecx, 0xffffffd3
mov dword [esp + 0x1c], ecx
add edx, 0xffffffad
push 0
mov ecx, esi
mov dword [esp + 0x40], 0xffffffff
mov dword [esi + 0xea4], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], 0x1e
mov dword [esp + 0x24], edx
call sub.MFC42.DLL_CWnd::GetDlgCtrlID
add eax, 5
mov ecx, dword [esi + 0xea4]
push eax
lea eax, [esp + 0x1c]
push esi
push eax
push 0x50800000
push 0
push 0
call dword [edi + 0x5c]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret
Function at 0x410670
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415390
push 0x410820
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x41814c], 0xffffffff
mov dword [0x418150], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x418140]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x41813c]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x418148], ecx
call fcn.00410870
mov eax, dword [0x417cc0]
test eax, eax
jne 0x410701
push 0x410860
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.00410840
push 0x417018
push 0x417014
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x418138]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x418134]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x417010
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x41080f
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x410775
cmp al, 0x22
jne 0x410767
cmp byte [esi], 0x22
jne 0x41077e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x41078e
cmp al, 0x20
ja 0x41078e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x41077e
mov dword [ebp - 0x30], 0
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4107af
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4107b4
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x4107f4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x41077e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x41080f