joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4999b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d55ac
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004c4df9
mov dword [esi], method.CTreeCtrl.virtual_0
lea edi, [esi + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], fcn.00457cd0
call fcn.0049c670
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.0049c670
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 2
call fcn.0049c670
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.0049c670
mov dword [edi], 0x4f5564
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 4
call fcn.004c1ef2
mov dword [esi + 0xd8], 0
mov dword [esi + 0xd4], 0x4f34c0
mov eax, dword [0x51b8b8]
mov dword [esi + 0xdc], eax
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 7
call fcn.0049c670
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 8
call fcn.004c1ef2
mov ecx, dword [esp + 0x10]
mov dword [esi], method.CTreeCtrl.virtual_0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x499ab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d5634
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], method.CTreeCtrl.virtual_0
lea ecx, [esi + 0xf4]
mov dword [esp + 0x18], 5
call fcn.004c1f1b
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x4f5560
call fcn.0049c870
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 3
call fcn.004c3791
lea ecx, [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x18], 6
call fcn.004ca7ea
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 1
call fcn.004c1f1b
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 9
mov dword [ecx], 0x4f5560
call fcn.0049c870
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x4f5560
call fcn.0049c870
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x4f5560
call fcn.0049c870
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x4f5560
call fcn.0049c870
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004c1a89
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x49b3f0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x49b493
test eax, eax
jbe 0x49b493
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x49b493
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x49b43e
xor esi, esi
jmp 0x49b444
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x49b46f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004363a0
add esi, eax
push esi
mov ebx, esi
call fcn.004363a0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x49b450
pop ebp
test edi, edi
pop edi
jne 0x49b493
test ebx, ebx
je 0x49b493
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004ac230
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x49b5f0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x49b70d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x49b70d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004c524b
mov esi, eax
test esi, esi
je 0x49b70d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x49b70d
mov ecx, esi
call fcn.0049b580
cmp edi, eax
jge 0x49b70d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x49b693
mov dword [esp + 0x34], 1
jmp 0x49b6ee
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x49b70d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00498590
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4a0040
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d5887
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [0x51b8b8]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
push str.FontName
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.004c37ff
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 2
call fcn.004d13e4
lea ecx, [esp + 0x14]
mov edi, eax
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, esi
call fcn.004a2889
mov esi, eax
test esi, esi
je 0x4a00e9
mov edx, dword [esi]
lea eax, [esp + 0x14]
push eax
push edi
push esi
call dword [edx + 0x114]
cmp word [esp + 0x14], 8
jne 0x4a00d8
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0xc]
call fcn.004c3941
mov edx, dword [esi]
push esi
call dword [edx + 8]
jmp 0x4a00f2
lea ecx, [esp + 8]
call fcn.004c371c
mov edx, dword [esi]
push esi
call dword [edx + 8]
jmp 0x4a00f2
lea ecx, [esp + 8]
call fcn.004c371c
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, dword [esp + 0x34]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004c3506
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.004c3791
lea ecx, [esp + 8]
mov byte [esp + 0x2c], 0
call fcn.004c3791
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4

Function at 0x4a0220
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d58a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
push str.FontName
lea ecx, [esp + 0x10]
call fcn.004c37ff
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0
call fcn.004d13e4
mov edi, eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x10]
call fcn.004c391a
lea ecx, [esp + 0xc]
mov word [esp + 0x10], 8
call fcn.004d13e4
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.004a2889
mov esi, eax
test esi, esi
je 0x4a02c3
lea edx, [esp + 0xa]
mov ecx, dword [esi]
push edx
mov edx, dword [esp + 0x14]
sub esp, 0x10
mov eax, esp
push 0
push edi
mov dword [eax], edx
mov edx, dword [esp + 0x30]
push esi
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xc], edx
call dword [ecx + pe_nt_image_headers32]
mov eax, dword [esi]
push esi
call dword [eax + 8]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004c3791
mov ecx, dword [esp + 0x20]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x24
ret 4
Function at 0x4a0300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d58a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [0x51b8b8]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], ebx
sub eax, ebx
je 0x4a0348
dec eax
je 0x4a0341
dec eax
jne 0x4a0356
push str.BackColor
jmp 0x4a034d
push str.ForeColor
jmp 0x4a034d
push str.FontSize
lea ecx, [esp + 0x10]
call fcn.004c391a
lea ecx, [esp + 0xc]
call fcn.004d13e4
lea ecx, [esp + 0x10]
mov edi, eax
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, esi
call fcn.004a2889
mov esi, eax
cmp esi, ebx
je 0x4a039a
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push edi
push esi
call dword [edx + 0x114]
cmp word [esp + 0x10], 3
jne 0x4a0394
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi]
push esi
call dword [ecx + 8]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004c3791
mov ecx, dword [esp + 0x20]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x4a412a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x4a4168
call fcn.004ce78e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x4a4168
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4a417f
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x4a417f
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x4bccc2
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x51d67c]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004b1f73
mov dword [ebp - 0x14], eax
cmp dword [0x53ca04], edi
jne 0x4bcdb3
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4bcd40
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x4bce93
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4bce93
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4bce93
push eax
call ebx
push 0x4ff05c
push esi
mov dword [0x53ca04], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push 0x4ff06c
push esi
mov dword [0x53ca08], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x53ca0c], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x53ca14], eax
test eax, eax
je 0x4bcdb0
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x53ca10], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x4bcdd8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4bcdcb
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4bcded
push 4
pop eax
jmp 0x4bce95
cmp dword [ebp - 0x14], edi
je 0x4bcded
push dword [0x53ca04]
call dword [sym.imp.KERNEL32.DLL_DecodePointer]
push 3
jmp 0x4bcdd2
mov eax, dword [0x53ca10]
mov ebx, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, esi
je 0x4bce4b
cmp dword [0x53ca14], esi
je 0x4bce4b
push eax
call ebx
push dword [0x53ca14]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4bce4b
test eax, eax
je 0x4bce4b
call ecx
test eax, eax
je 0x4bce40
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 0x4bce40
test byte [ebp - 8], 1
jne 0x4bce4b
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4bce7b
mov eax, dword [0x53ca08]
cmp eax, esi
je 0x4bce78
push eax
call ebx
test eax, eax
je 0x4bce78
call eax
mov edi, eax
test edi, edi
je 0x4bce78
mov eax, dword [0x53ca0c]
cmp eax, esi
je 0x4bce78
push eax
call ebx
test eax, eax
je 0x4bce78
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x53ca04]
call ebx
test eax, eax
je 0x4bce93
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4bce95
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b5ccc
leave
ret
Function at 0x4c45d7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004ce78e
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4c4608
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004c461b
pop edi
pop esi
pop ebx
ret 8

Function at 0x4c5bef
Capabilities:
Get graphical window text

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

Function at 0x4c74df
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 0x4c7521
call fcn.004ce78e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x4c7521
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x4c7518
xor eax, eax
jmp 0x4c7529
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c752f
pop edi
pop esi
pop ebx
ret 4
Function at 0x401a29
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401a68
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401a68
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401a68
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401a68
cmp dword [ecx + 0x74], 0xe
jbe 0x401a68
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4100c3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x410160
push ebx
push esi
call fcn.0041008c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040ec31
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41010d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41015f
push edi
push eax
call fcn.0040b4a0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41012d
call fcn.0040aac0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41015e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040ec31
add esp, 0x20
test eax, eax
jne 0x41014c
push edi
call fcn.0040aac0
jmp 0x410154
push ebx
call fcn.0040aac0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x410163
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x410174
pop esi
ret
push ebx
push edi
push esi
call fcn.0041008c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040b4a0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41019c
push ebx
push esi
push edi
call fcn.00402e30
add esp, 0xc
push 0
call fcn.0040aac0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4108f3
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041040f

Function at 0x413d3b
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x413d55
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x413d6c
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x413dc4
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0040d0b4
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x413dc4
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x413dc4
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x413dc4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x413dbe
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x413dc0
xor bl, bl
mov al, bl
jmp 0x413dc6
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x418530
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41855d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41855d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x116d2832
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x34383524
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x4014c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x4014e6
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40157a
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x401535
cmp eax, 0x40
je 0x401535
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
mov eax, dword [ebp - 0x24]
cmp eax, 4
je 0x4014d9
cmp eax, 0x40
je 0x4014d9
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
jmp 0x4014d9
mov dword [esp + 8], 0x34
mov dword [esp + 4], 0x403058
mov dword [esp], str.VirtualQuery__addr__b__sizeof_b__
call sym.__assert
lea esi, [esi]
lea edi, [edi]
Function at 0x100118c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [0x1045b8f0]
push ebx
push esi
xor ebx, ebx
push ebx
push eax
push ecx
push edi
push str.Esr_New__x___x___x___in_
push 0xc9
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push 2
push edx
call fcn.10062060
push 0x678
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 0x2c
test esi, esi
jne 0x10011932
push eax
push eax
push eax
mov ebx, 0x59db
push ebx
push str.Esr_New__out_of_memory___ret_d
push 0xce
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push eax
mov eax, dword [0x1045b8f0]
push eax
call fcn.10062060
add esp, 0x28
jmp 0x100119f8
push 0x670
push 0
push esi
call sub.MSVCR100.dll_memset
push edi
push 0x10373534
lea ecx, [esi + 0x250]
push 0x200
push ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], 1
call fcn.1005f880
push edi
push str._stemp_
lea edx, [esi + 0x450]
push 0x200
push edx
call fcn.1005f880
mov eax, dword [ebp + 8]
mov dword [esi + 0x650], eax
xor eax, eax
mov dword [esi + 0x654], eax
add esp, 0x2c
mov dword [esi + 0x658], eax
mov dword [esi + 0x65c], eax
push eax
mov dword [esi + 0x660], eax
mov dword [esi + 0x664], eax
push eax
mov dword [esi + 0x668], eax
push eax
mov dword [esi + 0x66c], 0x10017ef0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x1045a9cc], eax
test eax, eax
jne 0x10011a14
mov ecx, dword [0x1045b8f0]
push eax
push eax
push eax
push eax
push str.Esr_New__alloc_rsltBufferLock_error_
push 0xdd
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push eax
push ecx
mov ebx, 0x59db
call fcn.10062060
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 0x2c
xor esi, esi
mov eax, dword [0x1045a9cc]
test eax, eax
je 0x10011a41
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1045a9cc], 0
jmp 0x10011a41
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xc00
push 0
push 0x1045a9d0
call sub.MSVCR100.dll_memset
mov edx, dword [0x1045a9cc]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10011a4a
mov dword [eax], ebx
mov eax, dword [0x1045b8f0]
push 0
push 0
push ebx
push esi
push str.Esr_New__x___d___out_
push 0xf5
push str......._source_appmsc_lualuac_aitalk_aitalk.c
push 1
push 2
push eax
call fcn.10062060
add esp, 0x28
mov eax, esi
pop esi
pop ebx
pop ebp
ret