joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461df0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49ca83
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0048e202
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0049397b
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00494ed3
test eax, eax
je 0x461f0c
mov ecx, dword [esp + 0x3c]
call fcn.004939a8
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x461ed0
push edi
mov ecx, esi
call fcn.00490f65
mov ecx, esi
call fcn.00462070
cmp dword [esp + 0x38], 1
jne 0x461f05
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004910cf
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x464920
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x464953
push esi
call fcn.00467a20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x46494c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4649d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4649c2
mov eax, dword [esi + 8]
test eax, eax
je 0x464977
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4649be
cmp eax, 2
je 0x4649c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46496a
cmp eax, 3
je 0x46499d
cmp eax, 1
jne 0x46496a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x46496a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46496a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00464a00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4649e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00464a00
add esp, 4
pop esi
ret
Function at 0x471de0
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 0x471e29
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 0x4722a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49d1d0
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.00471e50
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00471ed0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00471ed0
lea ecx, [esi + 0xc]
call fcn.0048cb69
lea ecx, [esi + 0x10]
call fcn.0048cb69
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00473460
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00473460
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00473460
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0048cbde
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048cbde
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x473650
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 0x4736b6
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 0x4736b6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x473697
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x48eff8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48f030
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.0048d085
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048d05d
jmp 0x48f03c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4906ee
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 0x490730
call fcn.00496494
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x490730
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x490727
xor eax, eax
jmp 0x490738
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049073e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4969c4
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 0x4969f2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x496a10
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049692a
jmp 0x496a10
mov eax, dword [esi + 0x14]
test eax, eax
je 0x496a10
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049692a
test edi, edi
mov eax, edi
jne 0x4969fa
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4016d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 3
push 0x4646e4
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x401738
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Left]
mov edx, dword [ebp - 4]
add edx, 1
push edx
push 0x4646e8
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Find_1]
mov dword [ebp - 4], eax
push 0
lea ecx, [ebp - 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x4016ec
mov esp, ebp
pop ebp
ret 4
Function at 0x401940
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45aacd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
cmp dword [eax + 8], 0
jne 0x40198a
mov byte [ebp - 0x21], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov al, byte [ebp - 0x21]
jmp 0x401ac9
lea ecx, [ebp - 0x1c]
call fcn.0045890c
mov byte [ebp - 4], 1
push 0
push 0x9011
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC71.DLL_CFile::Open
test eax, eax
jne 0x4019e6
push str._file.Open_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x22], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC71.DLL_CFile::CFile
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov al, byte [ebp - 0x22]
jmp 0x401ac9
lea ecx, [ebp - 0x1c]
call fcn.00401d30
cmp dword [ebp + 0xc], 0
jle 0x401a9e
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx + 4]
jbe 0x401a0e
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
jmp 0x401a14
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
push edx
push 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
push ecx
call sub.MSVCR71.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x20]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.00401740
movzx eax, al
test eax, eax
jne 0x401a7d
push str._PendingReceive_dwReceLen__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x1c]
call sub.MFC71.DLL_CFile::Close
mov byte [ebp - 0x23], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC71.DLL_CFile::CFile
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov al, byte [ebp - 0x23]
jmp 0x401ac9
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 8]
push eax
lea ecx, [ebp - 0x1c]
call sub.MFC71.DLL_CFile::Write
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebp - 0x20]
mov dword [ebp + 0xc], ecx
jmp 0x4019ee
lea ecx, [ebp - 0x1c]
call sub.MFC71.DLL_CFile::Close
mov byte [ebp - 0x24], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call sub.MFC71.DLL_CFile::CFile
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov al, byte [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4020d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ac17
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov dword [ebp - 4], 0
push str.ProviderSQLOLEDB.1_Integrated_SecuritySSPI_Persist_Security_InfoFalse_Data_Source127.0.0.1_Initial_CatalogNetDetective
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x148
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.004021f0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x402161
push str.OPEN_NetDetective_ERROR__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x18]
jmp 0x4021dd
push str.ProviderSQLOLEDB.1_Integrated_SecuritySSPI_Persist_Security_InfoFalse_Data_Source127.0.0.1_Initial_CatalogNDHistoryLogBak
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
add eax, 0x14c
push eax
mov ecx, dword [ebp - 0x28]
call fcn.004021f0
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4021c3
push str.OPEN_NDHistoryLogBak_ERROR__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x20]
jmp 0x4021dd
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4021f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ac53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x44], ecx
mov dword [ebp - 4], 0
push 0x464a2d
lea eax, [ebp + 0xc]
push eax
call fcn.00435fb0
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x402253
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x18]
jmp 0x40243f
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x44]
call fcn.00402490
mov byte [ebp - 4], 1
push 0x17
push 0
push 0x46b884
mov ecx, dword [ebp + 8]
call fcn.00436170
test eax, eax
jge 0x402297
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x1c]
jmp 0x40243f
mov ecx, dword [ebp + 8]
call fcn.004360e0
mov dword [ebp - 0x48], eax
push 3
mov ecx, dword [ebp - 0x48]
call fcn.00438c10
mov ecx, dword [ebp + 8]
call fcn.004360e0
mov dword [ebp - 0x4c], eax
push 0x3c
mov ecx, dword [ebp - 0x4c]
call fcn.004389f0
push 0xffffffffffffffff
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x464a2e
call fcn.00437f80
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x464a2f
call fcn.00437f80
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.00437f80
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x64], edx
mov byte [ebp - 4], 4
mov ecx, dword [ebp + 8]
call fcn.004360e0
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
call fcn.00438b60
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jge 0x402369
push str.CDb:OpenDatabase___error__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x2c]
jmp 0x40243f
jmp 0x402407
mov dword [ebp - 4], 0
jmp 0x402425
mov dword [ebp - 0x40], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4025a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ac90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp - 0x3c]
add ecx, 0x148
call fcn.00436110
mov byte [ebp - 0x3d], al
movzx eax, byte [ebp - 0x3d]
test eax, eax
je 0x4025ee
xor al, al
jmp 0x40277a
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00437f80
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
add ecx, 0x148
call fcn.004360e0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x4c]
call fcn.00438a70
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00437350
lea ecx, [ebp - 0x1c]
call fcn.00438ed0
jmp 0x402739
mov dword [ebp - 4], 0xffffffff
jmp 0x402747
push 0x464ab8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.00435e50
add esp, 0xc
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x38]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402790
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45acaa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp - 0x38]
add ecx, 0x148
call fcn.00436110
mov byte [ebp - 0x39], al
movzx eax, byte [ebp - 0x39]
test eax, eax
je 0x4027de
xor al, al
jmp 0x40292a
push 0x81
push 0
mov ecx, dword [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00437f80
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x38]
add ecx, 0x148
call fcn.004360e0
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x48]
call fcn.00438a70
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x1c]
call fcn.00438ed0
jmp 0x4028e2
mov dword [ebp - 4], 0xffffffff
jmp 0x4028f0
jmp 0x4028f7
push 0x464ad4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.00435e50
add esp, 0xc
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x34]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x47c9f0]
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], ecx
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov eax, dword [0x464838]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
jne 0x40626a
jmp 0x4062de
lea ecx, [ebp - 0x38]
call fcn.00406370
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x50]
push eax
call fcn.00435540
mov ecx, eax
call fcn.00435a50
fstp qword [ebp - 0x30]
lea ecx, [ebp - 0x38]
call fcn.00406310
fstp qword [ebp - 0x28]
push 0x14
mov ecx, dword [ebp - 0x54]
add ecx, 0x9c
push ecx
lea edx, [ebp - 0x20]
push edx
call sub.MSVCR71.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
push 0x30
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
call fcn.00458cfb
mov esp, ebp
pop ebp
ret 8

Function at 0x4066e0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xfffffffe
and eax, 0xfffffffd
and eax, 0xfffffffb
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40edd0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bfd6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00435da0
add esp, 0xc
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x100]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xe0]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x50
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0x70
push edx
mov eax, dword [ebp + 0x10]
add eax, 0x40
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x30
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0xa8
push edx
mov eax, dword [ebp + 0x10]
add eax, 0x88
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x84
push ecx
mov edx, dword [ebp + 0x10]
add edx, 0xc0
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x10]
add ecx, 0xe4
push ecx
push str.INSERT_INTO_tPictureLog_sPolicyID__sUserID__sUserName__sIDCode_sIDNo__sCardOutNum__sComputerIP__sComputerMac__n_t_t_t_t___sComputerNo__sComputerName__iPictureType__dtPictureTime__lPictureSize_sFilePathName_bHasSent_bHasSent1__n_t_t_t_t___VALUES__.20s___.30s___.30s___.3s__.18s___.20s___.15s___.12s___.20s___.20s___d__GetDate_____d__.255s_0_0_
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format]
add esp, 0x3c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.00402790
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc