joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], 0
mov eax, 1
imul ecx, eax, 3
mov byte [ebp + ecx - 0x18], 0x4c
mov edx, 1
imul eax, edx, 0xc
mov byte [ebp + eax - 0x18], 0
mov ecx, 1
imul edx, ecx, 7
mov byte [ebp + edx - 0x18], 0x45
mov eax, 1
shl eax, 3
mov byte [ebp + eax - 0x18], 0x72
mov ecx, 1
shl ecx, 0
mov byte [ebp + ecx - 0x18], 0x65
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0x18], 0x73
mov ecx, 1
imul edx, ecx, 9
mov byte [ebp + edx - 0x18], 0x72
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x18], 0x72
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x18], 0x47
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0x18], 0x74
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x18], 0x74
mov ecx, 1
shl ecx, 2
mov byte [ebp + ecx - 0x18], 0x61
mov edx, 1
imul eax, edx, 0xa
mov byte [ebp + eax - 0x18], 0x6f
lea ecx, [ebp - 0x18]
push ecx
call fcn.004047f0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405de4
call dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x405df0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0xc], 0
call fcn.00404710
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x405f64
mov eax, 1
imul ecx, eax, 0xd
mov byte [ebp + ecx - 0x24], 0x77
mov edx, 1
imul eax, edx, 9
mov byte [ebp + eax - 0x24], 0x69
mov ecx, 1
imul edx, ecx, 0xa
mov byte [ebp + edx - 0x24], 0x6e
mov eax, 1
imul ecx, eax, 3
mov byte [ebp + ecx - 0x24], 0x69
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0x24], 0x74
mov ecx, 1
shl ecx, 4
mov byte [ebp + ecx - 0x24], 0x73
mov edx, 1
imul eax, edx, 0xc
mov byte [ebp + eax - 0x24], 0x6f
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x24], 0x52
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x24], 0x67
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0x24], 0x65
mov eax, 1
imul ecx, eax, 0xf
mov byte [ebp + ecx - 0x24], 0x65
mov edx, 1
shl edx, 2
mov byte [ebp + edx - 0x24], 0x73
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x24], 0x65
mov ecx, 1
imul edx, ecx, 0x16
mov byte [ebp + edx - 0x24], 0
mov eax, 1
imul ecx, eax, 7
mov byte [ebp + ecx - 0x24], 0x72
mov edx, 1
imul eax, edx, 0x13
mov byte [ebp + eax - 0x24], 0x67
mov ecx, 1
imul edx, ecx, 0x14
mov byte [ebp + edx - 0x24], 0x65
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x24], 0x64
mov edx, 1
imul eax, edx, 0x15
mov byte [ebp + eax - 0x24], 0x57
mov ecx, 1
shl ecx, 3
mov byte [ebp + ecx - 0x24], 0x57
mov edx, 1
imul eax, edx, 0x11
mov byte [ebp + eax - 0x24], 0x73
mov ecx, 1
imul edx, ecx, 0x12
mov byte [ebp + edx - 0x24], 0x61
mov eax, 1
imul ecx, eax, 0xe
mov byte [ebp + ecx - 0x24], 0x4d
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x405f5a
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x405f70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
call fcn.00404710
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40607a
mov eax, 1
imul ecx, eax, 7
mov byte [ebp + ecx - 0x1c], 0x6f
mov edx, 1
imul eax, edx, 0xb
mov byte [ebp + eax - 0x1c], 0x73
mov ecx, 1
shl ecx, 3
mov byte [ebp + ecx - 0x1c], 0x77
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0x1c], 0x6e
mov ecx, 1
imul edx, ecx, 0xc
mov byte [ebp + edx - 0x1c], 0
mov eax, 1
imul ecx, eax, 3
mov byte [ebp + ecx - 0x1c], 0x57
mov edx, 1
shl edx, 2
mov byte [ebp + edx - 0x1c], 0x69
mov eax, 1
imul ecx, eax, 0xa
mov byte [ebp + ecx - 0x1c], 0x6f
mov edx, 1
imul eax, edx, 0
mov byte [ebp + eax - 0x1c], 0x53
mov ecx, 1
imul edx, ecx, 9
mov byte [ebp + edx - 0x1c], 0x50
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x1c], 0x65
mov ecx, 1
shl ecx, 1
mov byte [ebp + ecx - 0x1c], 0x74
mov edx, 1
imul eax, edx, 6
mov byte [ebp + eax - 0x1c], 0x64
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406070
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x406090
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x1c], 0x47
mov edx, 1
imul eax, edx, 0xe
mov byte [ebp + eax - 0x1c], 0x61
mov ecx, 1
imul edx, ecx, 0x11
mov byte [ebp + edx - 0x1c], 0x57
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x1c], 0x65
mov ecx, 1
imul edx, ecx, 5
mov byte [ebp + edx - 0x1c], 0x64
mov eax, 1
shl eax, 3
mov byte [ebp + eax - 0x1c], 0x65
mov ecx, 1
imul edx, ecx, 0xa
mov byte [ebp + edx - 0x1c], 0x69
mov eax, 1
imul ecx, eax, 3
mov byte [ebp + ecx - 0x1c], 0x4d
mov edx, 1
imul eax, edx, 0xd
mov byte [ebp + eax - 0x1c], 0x4e
mov ecx, 1
imul edx, ecx, 0xf
mov byte [ebp + edx - 0x1c], 0x6d
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x1c], 0x6c
mov edx, 1
imul eax, edx, 9
mov byte [ebp + eax - 0x1c], 0x46
mov ecx, 1
imul edx, ecx, 7
mov byte [ebp + edx - 0x1c], 0x6c
mov eax, 1
imul ecx, eax, 6
mov byte [ebp + ecx - 0x1c], 0x75
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 0x1c], 0x74
mov eax, 1
imul ecx, eax, 0xc
mov byte [ebp + ecx - 0x1c], 0x65
mov edx, 1
shl edx, 2
mov byte [ebp + edx - 0x1c], 0x6f
mov eax, 1
imul ecx, eax, 0x12
mov byte [ebp + ecx - 0x1c], 0
mov edx, 1
shl edx, 4
mov byte [ebp + edx - 0x1c], 0x65
lea eax, [ebp - 0x1c]
push eax
call fcn.004047f0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4061be
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x406250
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 1
imul ecx, eax, 0xa
mov byte [ebp + ecx - 0x10], 0x73
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0x10], 0x63
mov ecx, 1
imul edx, ecx, 3
mov byte [ebp + edx - 0x10], 0x74
mov eax, 1
shl eax, 2
mov byte [ebp + eax - 0x10], 0x50
mov ecx, 1
imul edx, ecx, 6
mov byte [ebp + edx - 0x10], 0x6f
mov eax, 1
imul ecx, eax, 0
mov byte [ebp + ecx - 0x10], 0x45
mov edx, 1
imul eax, edx, 0xb
mov byte [ebp + eax - 0x10], 0
mov ecx, 1
imul edx, ecx, 9
mov byte [ebp + edx - 0x10], 0x73
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x10], 0x78
mov ecx, 1
imul edx, ecx, 5
mov byte [ebp + edx - 0x10], 0x72
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0x10], 0x69
mov ecx, 1
shl ecx, 3
mov byte [ebp + ecx - 0x10], 0x65
lea edx, [ebp - 0x10]
push edx
call fcn.004047f0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406311
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x406320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0
call fcn.00404710
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406430
mov eax, 1
imul ecx, eax, 9
mov byte [ebp + ecx - 0x1c], 0x54
mov edx, 1
imul eax, edx, 3
mov byte [ebp + eax - 0x1c], 0x57
mov ecx, 1
imul edx, ecx, 0xe
mov byte [ebp + edx - 0x1c], 0
mov eax, 1
imul ecx, eax, 0xb
mov byte [ebp + ecx - 0x1c], 0x78
mov edx, 1
shl edx, 2
mov byte [ebp + edx - 0x1c], 0x69
mov eax, 1
imul ecx, eax, 0xc
mov byte [ebp + ecx - 0x1c], 0x74
mov edx, 1
imul eax, edx, 7
mov byte [ebp + eax - 0x1c], 0x6f
mov ecx, 1
shl ecx, 3
mov byte [ebp + ecx - 0x1c], 0x77
mov edx, 1
shl edx, 1
mov byte [ebp + edx - 0x1c], 0x74
mov eax, 1
imul ecx, eax, 0xa
mov byte [ebp + ecx - 0x1c], 0x65
mov edx, 1
imul eax, edx, 5
mov byte [ebp + eax - 0x1c], 0x6e
mov ecx, 1
imul edx, ecx, 0xd
mov byte [ebp + edx - 0x1c], 0x57
mov eax, 1
shl eax, 0
mov byte [ebp + eax - 0x1c], 0x65
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x1c], 0x53
mov eax, 1
imul ecx, eax, 6
mov byte [ebp + ecx - 0x1c], 0x64
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406426
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x407f67
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0041d0c8
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x407f9e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00407fbf
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4181a3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4181e8
call fcn.0041d0c8
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4181e8
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x418204
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041fc37
mov ebx, eax
test edi, edi
je 0x418202
test esi, esi
je 0x418202
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48807b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041c7f4
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4880b7
call fcn.0048829a
mov dword [esi + 0xc], 1
jmp 0x4880bc
call fcn.0048829a
cmp dword [esi], 0
je 0x488105
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4880df
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0041825b
jmp 0x4880f0
push 0xff
mov ecx, esi
call fcn.0040a2da
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0040b0c5
jmp 0x488129
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x488129
push dword [esi]
push dword [ebp - 4]
call fcn.0041d2cb
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4881ef
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0048829a
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x488237
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041825b
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0040b0c5
jmp 0x488242
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041d2cb
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4aded9
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x545830
call fcn.00527bca
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00409c17
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x54eca8
call fcn.00409e2b
cmp eax, 0xffffffff
jne 0x4adf8d
push 0
push 0x5513b8
lea ecx, [ebp - 0x4d0]
call fcn.00409e2b
cmp eax, 0xffffffff
jne 0x4adf8d
push 0
push 0x54ec24
lea ecx, [ebp - 0x4d0]
call fcn.00409e2b
cmp eax, 0xffffffff
jne 0x4adf8d
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00409c17
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4adf69
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.004088c1
jmp 0x4adfbc
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.0040a711
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.004088c1
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4adfb3
mov ebx, dword [ebp - 0x4cc]
jmp 0x4adfbc
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.004088c1
mov eax, ebx
call fcn.00527b79
ret

Function at 0x524f60
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x14
push 0x598458
call fcn.00527c70
call fcn.0052c7b1
movzx esi, ax
push 2
call fcn.0052c5ad
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x524e17
xor ebx, ebx
jmp 0x524e4a
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x524e13
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x524e13
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x524e4a
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.0052bdab
test eax, eax
jne 0x524e5e
push 0x1c
call fcn.00524f39
pop ecx
call fcn.0052bd18
test eax, eax
jne 0x524e6f
push 0x10
call fcn.00524f39
pop ecx
call fcn.0052c696
and dword [ebp - 4], 0
call fcn.0052bdc0
test eax, eax
jns 0x524e89
push 0x1b
call fcn.00524f39
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x5aa83c], eax
call fcn.0052c6d6
mov dword [0x5a8788], eax
call fcn.0052c074
test eax, eax
jns 0x524eaf
push 8
call fcn.00528930
pop ecx
call fcn.0052c2b1
test eax, eax
jns 0x524ec0
push 9
call fcn.00528930
pop ecx
push 1
call fcn.0052896a
pop ecx
test eax, eax
je 0x524ed3
push eax
call fcn.00528930
pop ecx
call fcn.0052cb2f
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x524ef5
push esi
call fcn.00528bd3
call fcn.0052895b
jmp 0x524f2a
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00527cb5
ret
call fcn.006e0000
jmp 0x524de9
Function at 0x53797c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x59e068]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0052c802
mov dword [ebp - 0x14], eax
cmp dword [0x5a96d4], esi
jne 0x537a6f
push 0x800
push esi
push 0x57b5f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5379fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x537b4f
push esi
push esi
push 0x57b5f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x537b4f
push 0x57b608
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x537b4f
push eax
call ebx
push 0x57b614
push edi
mov dword [0x5a96d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x57b624
push edi
mov dword [0x5a96d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5a96dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a96e4], eax
test eax, eax
je 0x537a6c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5a96e0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x537a94
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x537a87
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x537aa9
push 4
pop eax
jmp 0x537b51
cmp dword [ebp - 0x14], esi
je 0x537aa9
push dword [0x5a96d4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x537a8e
mov eax, dword [0x5a96e0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x537b07
cmp dword [0x5a96e4], edi
je 0x537b07
push eax
call ebx
push dword [0x5a96e4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x537b07
test eax, eax
je 0x537b07
call ecx
test eax, eax
je 0x537afc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x537afc
test byte [ebp - 8], 1
jne 0x537b07
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x537b37
mov eax, dword [0x5a96d8]
cmp eax, edi
je 0x537b34
push eax
call ebx
test eax, eax
je 0x537b34
call eax
mov esi, eax
test esi, esi
je 0x537b34
mov eax, dword [0x5a96dc]
cmp eax, edi
je 0x537b34
push eax
call ebx
test eax, eax
je 0x537b34
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5a96d4]
call ebx
test eax, eax
je 0x537b4f
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x537b51
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00527b0b
mov esp, ebp
pop ebp
ret
Function at 0x406d50
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov eax, dword [eax]
push edi
push 0x40b740
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x406d74
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov esi, dword [esp + 0x18]
push 0
push 0x3f
push 1
push 0
mov ecx, esi
call sub.MFC42.DLL_CAsyncSocket::Create
test eax, eax
jne 0x406d91
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov al, byte [esp + 0x38]
test al, al
je 0x406db5
mov edx, dword [esi + 4]
lea ecx, [esp + 0x38]
push 4
push ecx
push 1
push 6
push edx
mov dword [esp + 0x4c], 1
call sub.WSOCK32.dll_setsockopt
mov ebx, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov eax, dword [esp + 0x24]
push ebx
mov ecx, esi
mov eax, dword [eax]
push eax
call sub.MFC42.DLL_CAsyncSocket::Connect
test eax, eax
jne 0x406de6
push 0xa
call ebp
inc edi
cmp edi, 3
jl 0x406dc1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
cmp edi, 3
jl 0x406df3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esi]
push 0
lea eax, [esp + 0x20]
push 1
push eax
mov ecx, esi
call dword [edx + 0x20]
cmp eax, 1
je 0x406e10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x34]
mov edx, dword [esi]
push 0
lea eax, [esp + 0x14]
push 2
push eax
mov ecx, esi
mov dword [esp + 0x1c], edi
call dword [edx + 0x20]
cmp eax, 2
je 0x406e35
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
test edi, edi
jle 0x406e59
mov ebx, dword [esp + 0x30]
mov edx, dword [esi]
push 0
push edi
push ebx
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
je 0x406e81
cmp eax, 0xffffffff
je 0x406e81
sub edi, eax
add ebx, eax
test edi, edi
jg 0x406e3d
mov eax, dword [esp + 0x20]
test eax, eax
je 0x406e89
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x406e70
mov dword [esi + 0x14], 1
mov edx, dword [esi]
push 0
push 1
push eax
mov ecx, esi
call dword [edx + 0x1c]
cmp eax, 1
je 0x406e89
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x406ea0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x104
mov eax, dword [0x40b814]
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
xor esi, esi
push 0x40b740
push eax
mov dword [esp + 0x10], esi
call edi
add esp, 8
test eax, eax
je 0x406ee6
mov esi, dword [esp + 0x110]
push 0x40b814
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
mov ebp, dword [esp + 0x11c]
lea eax, [esp + 0x14]
push 0xff
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
jne 0x406f4c
lea ecx, [esp + 0x14]
push ecx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x406f4c
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call sub.WSOCK32.dll_inet_ntoa
push eax
mov ecx, 0x40b814
call fcn.00407f1e
mov ecx, 0x40b814
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [0x40b814]
push 0x40b740
push eax
call edi
add esp, 8
test eax, eax
jne 0x406f5a
test ebp, ebp
je 0x406f5a
push 0x64
call ebx
inc esi
cmp esi, 0x14
jl 0x406ef5
mov esi, dword [esp + 0x118]
push 0x40b814
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
pop ebp
pop ebx
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret
Function at 0x4071a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x80
xor eax, eax
lea ebx, [esi + 0x10]
mov edx, 2
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x208]
xor ecx, ecx
mov dword [eax - 8], ecx
mov dword [eax], ecx
mov dword [eax + 8], ecx
add eax, 4
dec edx
jne 0x4071c0
add ebx, 0x218
xor eax, eax
xor edx, edx
xor edi, edi
mov dword [ebx], eax
push str.CamCore.dll
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edi
mov dword [esi], 0x409940
mov dword [esi + 4], ecx
mov dword [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ExitDevice
push eax
mov dword [esi + 8], eax
call edi
mov dword [esi + 0x238], eax
mov eax, dword [esi + 8]
push str.InitDevice
push eax
call edi
mov ecx, dword [esi + 8]
push str.DeviceCount
push ecx
mov dword [esi + 0x23c], eax
call edi
mov edx, dword [esi + 8]
push str.DeviceName
push edx
mov dword [esi + 0x240], eax
call edi
mov dword [esi + 0x244], eax
mov eax, dword [esi + 8]
push str.RecvMemSize
push eax
call edi
mov ecx, dword [esi + 8]
push str.GetRawData
push ecx
mov dword [esi + 0x248], eax
call edi
mov edx, dword [esi + 8]
push str.DecodeRaw2Image
push edx
mov dword [esi + 0x24c], eax
call edi
mov dword [esi + 0x250], eax
mov eax, dword [esi + 8]
push str.ResumeDevice
push eax
call edi
mov ecx, dword [esi + 8]
push str.SetAutoExposure
push ecx
mov dword [esi + 0x254], eax
call edi
mov edx, dword [esi + 8]
push str.SetDefaultConfiguration
push edx
mov dword [esi + 0x258], eax
call edi
mov dword [esi + 0x25c], eax
mov eax, dword [esi + 8]
push str.SetExposure
push eax
call edi
mov ecx, dword [esi + 8]
push str.SetRoi
push ecx
mov dword [esi + 0x260], eax
call edi
mov edx, dword [esi + 8]
push str.SetRoiState
push edx
mov dword [esi + 0x264], eax
call edi
mov dword [esi + 0x268], eax
mov eax, dword [esi + 8]
push str.SetContrast
push eax
call edi
mov ecx, dword [esi + 8]
push str.LoadConfiguration
push ecx
mov dword [esi + 0x26c], eax
call edi
mov edx, dword [esi + 8]
push str.SaveConfiguration
push edx
mov dword [esi + 0x270], eax
call edi
mov dword [esi + 0x274], eax
mov eax, esi
pop edi
pop esi
pop ebx
ret