joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52aa80
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62e8ed
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6d5db8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
cmp dword [ebp + 0xc], 0
jne 0x52ac07
lea ecx, [ebp - 0x1c]
call fcn.00422710
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
lea ecx, [ebp - 0x1c]
call fcn.005d2ee7
lea ecx, [ebp - 0x1c]
call fcn.00522f50
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], 0
jmp 0x52aafd
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jge 0x52ab1a
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00522f70
cmp eax, dword [ebp + 8]
jne 0x52ab18
jmp 0x52ab1a
jmp 0x52aaf4
lea ecx, [ebp - 0x1c]
call fcn.005d2f10
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
jl 0x52ab48
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041cb10
mov eax, dword [ebp - 0x20]
jmp 0x52ac09
cmp dword [ebp + 8], 0xf030
jne 0x52ab5e
mov ecx, dword [ebp - 0x28]
call fcn.0052a770
jmp 0x52abec
cmp dword [ebp + 8], 0xf020
jne 0x52ab71
mov ecx, dword [ebp - 0x28]
call fcn.0052a7f0
jmp 0x52abec
cmp dword [ebp + 8], 0xf120
jne 0x52ab90
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0xe8], 1
jne 0x52ab90
mov ecx, dword [ebp - 0x28]
call fcn.0052a830
jmp 0x52abec
cmp dword [ebp + 8], 0xf120
jne 0x52abd2
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0xe8], 2
jne 0x52abd2
push 9
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xec]
mov dword [ecx + 0xe8], eax
push 0
mov ecx, dword [ebp - 0x28]
call fcn.00528e40
jmp 0x52abec
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x112
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041cb10
mov eax, dword [ebp - 0x24]
jmp 0x52ac09
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x52b810
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
and ecx, 0xff
movzx edx, cl
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
and eax, 0xffff
movzx ecx, ax
shr ecx, 8
movzx edx, cl
mov dword [ebp - 8], edx
cmp dword [ebp - 4], 0x80000000
jae 0x52b877
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx ecx, ax
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 5
jne 0x52b86e
mov dword [ebp - 0x10], 2
jmp 0x52b875
mov dword [ebp - 0x10], 1
jmp 0x52b8a5
cmp dword [ebp - 0x14], 4
jae 0x52b897
mov edx, dword [ebp - 4]
shr edx, 0x10
movzx eax, dx
and eax, 0xffff7fff
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 3
jmp 0x52b8a5
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x52b9b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62e9a3
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6d5db8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.005d6892
mov byte [ebp - 4], 1
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401580
mov byte [ebp - 4], 2
push 0x67782c
push 1
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00457130
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
push edx
call fcn.0043c020
add esp, 8
mov byte [ebp - 0x2d], al
lea ecx, [ebp - 0x34]
call fcn.00401620
movzx eax, byte [ebp - 0x2d]
test eax, eax
je 0x52ba3a
push 0x677830
lea ecx, [ebp - 0x14]
call fcn.0047d320
push 0x677834
lea ecx, [ebp - 0x14]
call fcn.0047d320
push 0
lea ecx, [ebp - 0x14]
call fcn.00587e90
push eax
lea ecx, [ebp - 0x2c]
call fcn.005d691e
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x52bb29
lea ecx, [ebp - 0x2c]
call fcn.005d6696
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x2c]
call fcn.005d6859
test eax, eax
jne 0x52bab2
lea ecx, [ebp - 0x2c]
call fcn.0052bb80
test eax, eax
jne 0x52bab2
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.005d6abd
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
call fcn.00587e90
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x38]
call fcn.00401620
jmp 0x52bb24
lea ecx, [ebp - 0x2c]
call fcn.0052bb80
test eax, eax
je 0x52bb24
lea ecx, [ebp - 0x2c]
call fcn.005d6859
test eax, eax
jne 0x52bb24
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x2c]
call fcn.005d6abd
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0040bb70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.00401620
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
lea edx, [ebp - 0x14]
push edx
call fcn.00401580
mov dword [ebp - 0x54], eax
call fcn.0052b9b0
add esp, 4
lea ecx, [ebp - 0x14]
call fcn.00587e90
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x52ba5d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401620
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.005d68b6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401620
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x53be60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 0
je 0x53be78
cmp dword [ebp + 0xc], 0
je 0x53be78
cmp dword [ebp + 0x10], 0
jne 0x53be7f
xor al, al
jmp 0x53bf6e
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x53bebd
xor al, al
jmp 0x53bf6e
mov eax, dword [ebp + 0x14]
push eax
call fcn.005e8616
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x53bed9
xor al, al
jmp 0x53bf6e
mov dword [ebp - 8], 0
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.005e5330
add esp, 0xc
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x53bf4f
cmp dword [ebp - 8], 0
je 0x53bf4f
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0053bf80
add esp, 8
movzx eax, al
test eax, eax
je 0x53bf4f
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call fcn.005e5330
add esp, 0xc
jmp 0x53bef2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.005e8148
add esp, 4
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
setne al
mov esp, ebp
pop ebp
ret
Function at 0x544370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6305f8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x3c], 0
je 0x5443b0
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x5443bc
mov al, 1
jmp 0x54455f
mov dword [ebp - 0x10], 8
call fcn.004f45f0
push eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
call fcn.004f45f0
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004f45d0
add esp, 8
movzx eax, al
test eax, eax
je 0x5443ff
xor al, al
jmp 0x54455f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004e1f40
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.00543fc0
mov ecx, eax
call fcn.00543ff0
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.004ef2c0
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00543fc0
mov ecx, eax
call fcn.00543ff0
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x3c]
call fcn.00544990
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x54447a
cmp dword [ebp - 0x6c], 1
je 0x544481
cmp dword [ebp - 0x6c], 3
je 0x54451b
jmp 0x544533
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.00543fc0
mov ecx, eax
call fcn.00543ff0
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x5444e4
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.00543fc0
mov ecx, eax
call fcn.00543ff0
push eax
call fcn.005e96c4
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x5444e4
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00404ac0
mov al, byte [ebp - 0x61]
jmp 0x54455f
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x544507
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00404ac0
mov al, byte [ebp - 0x62]
jmp 0x54455f
cmp dword [ebp - 0x38], 0
jne 0x544519
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004e5cf0
jmp 0x54454b
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00404ac0
mov al, byte [ebp - 0x63]
jmp 0x54455f
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00404ac0
mov al, byte [ebp - 0x64]
jmp 0x54455f
jmp 0x544412
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret
Function at 0x545290
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6307e1
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x6d5db8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov dword [eax], vtable.CXmlLogManager.0
mov dword [ebp - 4], 6
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x1c0], 0
je 0x54532e
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x1c4], 0
push 0xbb8
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c0]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x545311
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x1c0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x1c0], 0
mov ecx, dword [ebp - 0x14]
call fcn.00549de0
mov ecx, dword [ebp - 0x14]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
add ecx, 0x100
call fcn.0053faf0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x14]
add ecx, 0x48
call fcn.0053faf0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
add ecx, 0x38
call fcn.0054b510
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
call fcn.0054b510
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
add ecx, 0x24
call fcn.00401620
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x20
call fcn.00401620
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0x1c
call fcn.00401620
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x5453d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x630814
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6d5db8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
push str.User.ini
lea ecx, [ebp - 0x18]
call fcn.004015a0
mov dword [ebp - 4], 0
call fcn.0041b910
add eax, 4
push eax
lea ecx, [ebp - 0x14]
call fcn.00401580
mov byte [ebp - 4], 1
push 0x6797cc
call fcn.0041b910
add eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00404260
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x1c
call fcn.0040bb70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401620
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x1b8], 0xffffffff
mov ecx, dword [ebp - 0x24]
mov dword [ecx + 0x1bc], 0xffffffff
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x1c8], 0
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x1cc], 0
mov ecx, dword [ebp - 0x24]
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x1c4], 1
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
push 0x545510
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x24]
mov dword [edx + 0x1c0], eax
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401620
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401620
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x56c8d0
Capabilities:
Capture webcam image

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
push 0
push 0x419
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esp, ebp
pop ebp
ret 4
Function at 0x5711e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x634e31
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x6d5db8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x30], ecx
lea edx, [ebp + 0x14]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0040bb70
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.0040bb70
lea ecx, [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0040bb70
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x3c], eax
mov ecx, dword [ebp - 0x10]
call fcn.005702c0
mov ecx, dword [ebp - 0x10]
call fcn.00570b70
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00401620
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00401620
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00401620
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x573340
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6350c4
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 0x28], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00503da0
lea ecx, [ebp - 0x20]
call fcn.00404aa0
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
push eax
push 0x67bda0
lea ecx, [ebp - 0x20]
push ecx
call fcn.00405010
add esp, 0xc
lea ecx, [ebp + 0x10]
call fcn.00587e90
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.00587e90
push eax
lea ecx, [ebp + 0xc]
call fcn.00587e90
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x57345b
mov edx, dword [ebp + 8]
push edx
push 0x67bdb0
lea eax, [ebp - 0x20]
push eax
call fcn.00405010
add esp, 0xc
lea ecx, [ebp + 0x10]
call fcn.00587e90
push eax
push 0x40
lea ecx, [ebp - 0x6c]
push ecx
push 0x67bb93
lea ecx, [ebp - 0x20]
call fcn.00587e90
push eax
lea ecx, [ebp + 0xc]
call fcn.00587e90
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
mov ecx, esp
mov dword [ebp - 0x70], esp
lea edx, [ebp - 0x6c]
push edx
call fcn.004015a0
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x84]
call fcn.00572210
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x10], eax
jmp 0x57346b
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.00422580
push 0xffff
mov ecx, dword [ebp - 0x84]
mov edx, dword [ecx + 0x30]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0x50000000
push 0x67bba6
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x134]
call eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00401620
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401620
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401620
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401620
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret 0x10
Function at 0x58e8d0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1e4
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1e4], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x1dc], 0
jne 0x58e979
lea eax, [ebp - 0x1d8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1dc], 0
lea ecx, [ebp + 0x8c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1dc], eax
cmp dword [ebp - 0x1dc], 0
jne 0x58e949
mov dword [ebp + 0x1d4], 0x64
xor eax, eax
jmp 0x58ea53
mov edx, dword [ebp - 0x1dc]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x1e0], edx
mov eax, dword [ebp - 0x1e0]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp + 0x8c]
push ecx
call fcn.005e5450
add esp, 8
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp + 0x14c]
push ecx
lea edx, [ebp + 0x10c]
push edx
mov ax, word [ebp + 0x1e4]
push eax
lea ecx, [ebp + 0x8c]
push ecx
call dword [sym.imp.dhnetsdk.dll_Ordinal_5_3]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x58ea41
movzx edx, byte [ebp - 0x14]
mov eax, dword [ebp + 0x5d0]
mov dword [eax + 0x320], edx
movzx ecx, byte [ebp - 0x13]
mov edx, dword [ebp + 0x5d0]
mov dword [edx + 0x324], ecx
movzx eax, byte [ebp - 0x10]
mov ecx, dword [ebp + 0x5d0]
mov dword [ecx + 0x318], eax
mov edx, dword [ebp + 0x5d0]
mov dword [edx + 0x334], 1
mov eax, dword [ebp + 0x5d0]
mov dword [eax + 0x338], 0
mov ecx, dword [ebp + 0x5d0]
mov dword [ecx + 0x330], 0
mov edx, dword [ebp + 0x5d0]
mov dword [edx + 0x328], 1
mov eax, dword [ebp + 0x5d0]
mov dword [eax + 0x32c], 1
mov ecx, dword [ebp + 0x5d0]
mov dword [ecx + 0x31c], 1
mov edx, dword [ebp + 0x5d0]
mov eax, dword [ebp - 8]
mov dword [edx + 0x1cc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret 0x5cc
Function at 0x591dc0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1fc], ecx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x1dc], 0
jne 0x591e69
lea eax, [ebp - 0x1f0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1f4], 0
lea ecx, [ebp + 0x8c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1f4], eax
cmp dword [ebp - 0x1f4], 0
jne 0x591e39
mov dword [ebp + 0x1d4], 0x64
xor eax, eax
jmp 0x591f8c
mov edx, dword [ebp - 0x1f4]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x1f8], edx
mov eax, dword [ebp - 0x1f8]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea ecx, [ebp + 0x8c]
push ecx
call fcn.005e5450
add esp, 8
push 0x50
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.005e5330
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp + 0x14c]
push ecx
lea edx, [ebp + 0x10c]
push edx
mov ax, word [ebp + 0x1e4]
push eax
lea ecx, [ebp + 0x8c]
push ecx
call dword [sym.imp.HCNetSDK.dll_NET_DVR_Login_V30]
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jge 0x591eb7
call dword [sym.imp.HCNetSDK.dll_NET_DVR_GetLastError]
mov dword [ebp - 8], eax
jmp 0x591f77
movzx edx, byte [ebp - 0x28]
mov eax, dword [ebp + 0x5d0]
mov dword [eax + 0x320], edx
movzx ecx, byte [ebp - 0x27]
mov edx, dword [ebp + 0x5d0]
mov dword [edx + 0x324], ecx
movzx eax, byte [ebp - 0x24]
movzx ecx, byte [ebp - 0x21]
add eax, ecx
mov edx, dword [ebp + 0x5d0]
mov dword [edx + 0x318], eax
movzx eax, byte [ebp - 0x22]
mov ecx, dword [ebp + 0x5d0]
mov dword [ecx + 0x334], eax
mov edx, dword [ebp + 0x5d0]
mov dword [edx + 0x338], 0
mov eax, dword [ebp + 0x5d0]
mov dword [eax + 0x330], 0
mov ecx, dword [ebp + 0x5d0]
mov dword [ecx + 0x328], 1
mov edx, dword [ebp + 0x5d0]
mov dword [edx + 0x32c], 1
mov eax, dword [ebp + 0x5d0]
mov dword [eax + 0x31c], 1
mov ecx, dword [ebp + 0x5d0]
mov dword [ecx + 0x33c], 0
push 0x40
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 0x5d0]
add eax, 0x2d8
push eax
call fcn.005e5550
add esp, 0xc
mov ecx, dword [ebp + 0x5d0]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x1cc], edx
mov eax, dword [ebp - 0x5c]
add eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret 0x5cc
Function at 0x594120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 0x40], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jle 0x594234
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xb4]
push edx
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov ecx, dword [ebp + 8]
sub ecx, 1
push ecx
call dword [sym.imp.HCNetSDK.dll_NET_DVR_PlayBackByName]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x594234
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x24]
call fcn.004468f0
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x50
call fcn.005a9590
mov ecx, dword [ebp + 0x20]
push ecx
push 0x594430
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.HCNetSDK.dll_NET_DVR_SetPlayDataCallBack_V40]
test eax, eax
setne al
mov byte [ebp - 0x11], al
push 0x10
call fcn.005c4745
add esp, 4
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x18]
mov dword [ecx], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
push 0x594240
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x594224
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.005c4775
add esp, 4
xor eax, eax
jmp 0x59423a
push 0
push 0
push 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.HCNetSDK.dll_NET_DVR_PlayBackControl]
mov eax, dword [ebp - 8]
add eax, 1
mov esp, ebp
pop ebp
ret 0x1c