joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4096f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0x43407e
push 0
push str.SoftwareMultiTouchGlobalSettings
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x409746
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x43407e
call fcn.00406d20
push 0
push 0x41c
call fcn.00409820
xor al, al
pop esi
add esp, 0x14
ret
cmp dword [esp + 8], 1
push 4
jne 0x40979e
mov ecx, dword [esp + 8]
mov edx, dword [edi + 0xa4]
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.Language
push ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x409818
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x43407e
call fcn.00406d20
push 0
push 0x41d
call fcn.00409820
xor al, al
pop esi
add esp, 0x14
ret
call fcn.0040cf49
mov ecx, dword [esp + 8]
add esp, 4
lea edx, [esp + 0xc]
push edx
mov esi, eax
push esi
lea eax, [esp + 0x18]
push eax
push 0
push str.Language
push ecx
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409806
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x43407e
call fcn.00406d20
push 0
push 0x41e
call fcn.00409820
push esi
call fcn.0040cf44
add esp, 4
xor al, al
pop esi
add esp, 0x14
ret
movzx edx, byte [esi]
push esi
mov dword [edi + 0xa4], edx
call fcn.0040cf44
add esp, 4
mov al, 1
pop esi
add esp, 0x14
ret

Function at 0x40a7c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x43bb60]
xor eax, esp
mov dword [esp + 0x94], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40a8eb
mov eax, dword [esp + 0x10]
sub eax, 1
je 0x40a8cc
sub eax, 1
jne 0x40a8eb
mov eax, dword [esp + 4]
cmp eax, 6
jne 0x40a858
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x40a835
mov dword [esi + 0x730], 6
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041ac00
add esp, 0x98
ret
test eax, eax
jne 0x40a8ad
mov dword [esi + 0x730], 5
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041ac00
add esp, 0x98
ret
cmp eax, 5
jne 0x40a8ad
mov eax, dword [esp + 8]
cmp eax, 2
jne 0x40a885
mov dword [esi + 0x730], 4
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041ac00
add esp, 0x98
ret
cmp eax, 1
je 0x40a8eb
test eax, eax
jne 0x40a8ad
mov dword [esi + 0x730], 2
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041ac00
add esp, 0x98
ret
mov dword [esi + 0x730], 1
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041ac00
add esp, 0x98
ret
mov dword [esi + 0x730], 0
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041ac00
add esp, 0x98
ret
mov ecx, dword [esp + 0x94]
xor ecx, esp
mov dword [esi + 0x730], 3
call fcn.0041ac00
add esp, 0x98
ret
Function at 0x40a910
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0x43407e
push 0
push str.SoftwareMultiTouchCalibration
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40a96a
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x43407e
call fcn.00406d20
push 0x41a
push 0x41c
push edi
call fcn.0040ca00
xor al, al
pop esi
add esp, 0x14
ret
cmp dword [esp + 8], 1
push 4
jne 0x40a9c4
mov eax, dword [esp + 8]
lea edx, [esp + 0x10]
push edx
push 4
push 0
push str.CalibrationAlgorithm
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40aa45
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.CalibrationAlgorithm
call fcn.00406d20
push 0x41a
push 0x41d
push edi
call fcn.0040ca00
xor al, al
pop esi
add esp, 0x14
ret
call fcn.0040cf49
add esp, 4
lea ecx, [esp + 0xc]
push ecx
mov esi, eax
mov eax, dword [esp + 8]
push esi
lea edx, [esp + 0x18]
push edx
push 0
push str.CalibrationAlgorithm
push eax
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40aa30
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.CalibrationAlgorithm
call fcn.00406d20
push 0x41a
push 0x41e
push edi
call fcn.0040ca00
push esi
call fcn.0040cf44
add esp, 4
xor al, al
pop esi
add esp, 0x14
ret
cmp byte [esi], 0
push esi
sete cl
mov byte [edi + 0x72c], cl
call fcn.0040cf44
add esp, 4
mov al, 1
pop esi
add esp, 0x14
ret
Function at 0x40aa50
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x14
push esi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0xf003f
push 0
push 0x43407e
push 0
push str.SoftwareMultiTouchMultiTouchManager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40aaaa
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x43407e
call fcn.00406d20
push 0x41a
push 0x41c
push edi
call fcn.0040ca00
xor al, al
pop esi
add esp, 0x14
ret
cmp dword [esp + 8], 1
push 4
jne 0x40ab06
mov ecx, dword [esp + 8]
mov edx, dword [edi + 0x728]
lea eax, [esp + 0x10]
push eax
push 4
push 0
push str.Orientation
push ecx
mov dword [esp + 0x24], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40ab84
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Orientation
call fcn.00406d20
push 0x41a
push 0x41d
push edi
call fcn.0040ca00
xor al, al
pop esi
add esp, 0x14
ret
call fcn.0040cf49
mov ecx, dword [esp + 8]
add esp, 4
lea edx, [esp + 0xc]
push edx
mov esi, eax
push esi
lea eax, [esp + 0x18]
push eax
push 0
push str.Orientation
push ecx
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40ab72
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.Orientation
call fcn.00406d20
push 0x41a
push 0x41e
push edi
call fcn.0040ca00
push esi
call fcn.0040cf44
add esp, 4
xor al, al
pop esi
add esp, 0x14
ret
movzx edx, byte [esi]
push esi
mov dword [edi + 0x728], edx
call fcn.0040cf44
add esp, 4
mov al, 1
pop esi
add esp, 0x14
ret
Function at 0x40ab90
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push eax
push 0xf003f
push 0
push str.Control_PanelMouse
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40abe8
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x43407e
call fcn.00406d20
mov ecx, dword [esp + 0x28]
push 0x41a
push 0x427
push ecx
call fcn.0040ca00
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push 4
call fcn.0040cf49
push 4
mov edi, eax
call fcn.0040cf49
push 5
mov esi, eax
call fcn.0040cf49
mov ecx, dword [esp + 0x24]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push esi
mov ebp, eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.DoubleClickHeight
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 4
call ebx
test eax, eax
je 0x40ac7f
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.DoubleClickHeight
call fcn.00406d20
mov edx, dword [esp + 0x28]
push 0x41a
push 0x41e
push edx
call fcn.0040ca00
push edi
call fcn.0040cf44
push esi
call fcn.0040cf44
push ebp
call fcn.0040cf44
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push edi
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.DoubleClickWidth
push edx
mov dword [esp + 0x28], 4
call ebx
test eax, eax
je 0x40acc6
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.DoubleClickWidth
call fcn.00406d20
mov eax, dword [esp + 0x28]
push 0x41a
push 0x41e
push eax
jmp 0x40ac59
push edi
call fcn.0041bd96
push esi
mov ebx, eax
call fcn.0041bd96
add esp, 8
cmp ebx, 8
jg 0x40adbf
cmp eax, 8
jg 0x40adbf
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
mov byte [esi], 0x32
mov byte [esi + 1], 0x34
mov byte [esi + 2], 0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push 0
push str.DoubleClickHeight
push edx
mov dword [esp + 0x28], 4
call ebx
test eax, eax
je 0x40ad41
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.DoubleClickHeight
call fcn.00406d20
mov eax, dword [esp + 0x28]
push 0x41a
push 0x428
push eax
jmp 0x40ac59
push 4
mov byte [edi], 0x32
mov byte [edi + 1], 0x34
mov byte [edi + 2], 0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push edi
push ecx
push 0
push str.DoubleClickWidth
push edx
mov dword [esp + 0x28], 4
call ebx
test eax, eax
je 0x40ad7c
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.DoubleClickWidth
jmp 0x40ad28
push 4
mov al, 0x30
mov byte [ebp], 0x36
mov byte [ebp + 1], al
mov byte [ebp + 2], al
mov byte [ebp + 3], 0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ebp
push ecx
push 0
push str.DoubleClickSpeed
push edx
mov dword [esp + 0x28], 4
call ebx
test eax, eax
je 0x40adbf
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.DoubleClickSpeed
jmp 0x40ad28
push edi
call fcn.0040cf44
push esi
call fcn.0040cf44
push ebp
call fcn.0040cf44
add esp, 0xc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret 4
Function at 0x40c120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0040c200
xor edi, edi
cmp eax, edi
mov dword [esi + 0x7e8], eax
jle 0x40c1eb
xor ebx, ebx
cmp eax, edi
jle 0x40c1d6
add esi, 0x6c0
mov eax, dword [ebp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x18]
push edx
push 0x409b40
push 0
push 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi - 0x28], eax
mov eax, dword [edi + 0x43fdf0]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x18]
push edx
push 0x409cc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
mov eax, dword [edi + 0x43fd28]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
add ebx, 1
add esi, 4
add edi, 0x14
cmp ebx, dword [ecx + 0x7e8]
jl 0x40c155
mov esi, ecx
mov dword [esi + 0x7c4], 1
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [esi + 0x7c4], edi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c690
Capabilities:
Write file on windows

Disassembly:
xor eax, eax
lea ecx, [esi + 0x684]
cmp word [ecx - 0x14], 0
jne 0x40c6a5
cmp word [ecx], 0x10
je 0x40c6b2
add eax, 1
add ecx, 2
cmp eax, 0xa
jl 0x40c698
jmp 0x40c6b8
mov dword [esi + 0x7ec], eax
or ecx, 0xffffffff
mov dword [esi + 0x6e8], ecx
lea eax, [esi + 0x6e8]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
cmp dword [esi + 0x7c4], 0
mov cl, 0x55
mov byte [eax], 6
mov byte [esi + 0x6e9], cl
mov byte [esi + 0x6ea], cl
mov byte [esi + 0x6eb], 0xff
je 0x40c73d
mov ecx, dword [esi + 0x7ec]
mov edx, dword [ecx*4 + 0x43fea8]
cmp edx, 0xffffffff
je 0x40c73d
test edx, edx
je 0x40c73d
lea ecx, [ecx + ecx*4]
lea ecx, [ecx*4 + 0x43fd18]
push ecx
push 0
push 0x10
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c733
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x40c733
test eax, eax
jne 0x40c73d
mov dword [esi + 0x7c4], 2
ret

Function at 0x412033
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41206c
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040dd55
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040dc72
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x413b87
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x413bca
call fcn.004144cd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413bca
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x413be5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041373e
test ebx, ebx
mov esi, eax
je 0x413be3
test edi, edi
je 0x413be3
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4191a5
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 0x4191d3
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4191f1
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041910f
jmp 0x4191f1
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4191f1
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041910f
test edi, edi
mov eax, edi
jne 0x4191db
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43ef68]
test ecx, ecx
je 0x4192b4
jmp 0x4191a4
ret 8

Function at 0x41ac00
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43bb60]
jne 0x41ac0a
repz ret
jmp fcn.0041f464
Function at 0x427c0a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041f5cb
xor ebx, ebx
cmp dword [0x43fc18], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x427cdf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x427c4a
xor eax, eax
jmp 0x427da3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x432da4
push edi
call esi
cmp eax, ebx
je 0x427c43
push eax
call fcn.0041f568
mov dword [esp], 0x432d94
push edi
mov dword [0x43fc18], eax
call esi
push eax
call fcn.0041f568
mov dword [esp], 0x432d80
push edi
mov dword [0x43fc1c], eax
call esi
push eax
call fcn.0041f568
mov dword [0x43fc20], eax
lea eax, [ebp - 8]
push eax
call fcn.0041ea88
test eax, eax
pop ecx
pop ecx
je 0x427cad
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00421787
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x427cdf
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041f568
cmp eax, ebx
pop ecx
mov dword [0x43fc28], eax
je 0x427cdf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041f568
pop ecx
mov dword [0x43fc24], eax
mov eax, dword [0x43fc24]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x427d58
cmp dword [0x43fc28], esi
je 0x427d58
push eax
call fcn.0041f5d4
pop ecx
call eax
cmp eax, ebx
je 0x427d25
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x43fc28]
call fcn.0041f5d4
pop ecx
call eax
test eax, eax
je 0x427d25
test byte [ebp - 0x18], 1
jne 0x427d58
lea eax, [ebp - 0xc]
push eax
call fcn.0041eabf
test eax, eax
pop ecx
je 0x427d40
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00421787
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x427d4f
or dword [ebp + 0x10], 0x200000
jmp 0x427d89
or dword [ebp + 0x10], 0x40000
jmp 0x427d89
mov eax, dword [0x43fc1c]
cmp eax, esi
je 0x427d89
push eax
call fcn.0041f5d4
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x427d89
mov eax, dword [0x43fc20]
cmp eax, esi
je 0x427d89
push dword [ebp - 4]
push eax
call fcn.0041f5d4
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x43fc18]
call fcn.0041f5d4
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42daaa
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x43bb60]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042da3f
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041cdf0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42daf9
cmp dword [ebp - 0x1c], 5
jb 0x42db11
jmp 0x42db0d
cmp dword [ebp - 0x10], 1
jne 0x42db11
cmp dword [ebp - 0x1c], 4
ja 0x42db0d
jne 0x42db11
cmp dword [ebp - 0x18], 0
jbe 0x42db11
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x433ecc
call fcn.0042d913
test eax, eax
jge 0x42db32
mov byte [0x43ffdc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041ac00
add ebp, 0x78
leave
ret
Function at 0x3841060
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5a6da4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x55d3c4]
push esi
mov esi, ecx
mov dword [0x10d352c], 0
mov dword [ebp - 0xc], esi
call ebx
sub eax, dword [0x10d3394]
add esi, 0xf8
add dword [0x10d352c], eax
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
cmp cx, word [eax + 6]
jae 0x38412a4
push edi
nop word [eax + eax]
mov esi, dword [esi + 0x24]
test esi, 0x2000000
jne 0x38412b4
mov edi, esi
mov dword [0x10d352c], 0
and edi, 0x4000000
call ebx
mov eax, esi
mov dword [0x10d352c], 0
and eax, 0x40000000
test esi, 0x20000000
je 0x3841190
test eax, eax
je 0x384114a
call ebx
test esi, esi
jns 0x3841116
mov esi, 0x280
mov eax, 0x80
jmp 0x3841120
mov esi, 0x220
mov eax, 0x20
test edi, edi
mov dword [0x10d352c], 0
cmove esi, eax
call ebx
mov edx, dword [0x10d352c]
sub edx, dword [0x10d3394]
add edx, eax
mov dword [0x10d352c], edx
jmp 0x3841203
call ebx
mov edx, eax
mov eax, dword [0x10d352c]
sub eax, dword [0x10d3394]
add edx, eax
test esi, esi
jns 0x3841179
test edi, edi
mov dword [0x10d352c], edx
mov esi, 0x280
mov eax, 0x80
cmove esi, eax
jmp 0x3841203
test edi, edi
mov dword [0x10d352c], edx
mov esi, 0x210
mov eax, 0x10
cmove esi, eax
jmp 0x3841203
test eax, eax
je 0x38411d6
call ebx
sub eax, dword [0x10d3394]
add dword [0x10d352c], eax
test esi, esi
jns 0x38411b2
mov esi, 0x204
mov eax, 4
jmp 0x38411fe
mov dword [0x10d352c], 0
call ebx
sub eax, dword [0x10d3394]
mov esi, 0x202
add dword [0x10d352c], eax
mov eax, 2
jmp 0x38411fe
call ebx
sub eax, dword [0x10d3394]
add dword [0x10d352c], eax
test esi, esi
jns 0x38411f4
mov esi, 0x208
mov eax, 8
jmp 0x38411fe
mov esi, 0x201
mov eax, 1
test edi, edi
cmove esi, eax
mov eax, dword [ebp - 0x14]
mov edi, esi
or edi, 0x200
mov eax, dword [eax + 0x24]
and eax, 0x4000000
cmove edi, esi
mov esi, dword [ebp - 0x14]
cmp dword [esi + 0x10], 0
jne 0x3841284
mov dword [0x10d352c], 0
call ebx
sub eax, dword [0x10d3394]
add dword [0x10d352c], eax
mov eax, dword [esi + 0x24]
test al, 0x40
je 0x3841249
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
jmp 0x3841253
test al, al
mov eax, dword [ebp - 0xc]
jns 0x3841287
mov eax, dword [eax + 0x24]
test eax, eax
je 0x3841284
mov dword [0x10d352c], 0
call ebx
sub eax, dword [0x10d3394]
add dword [0x10d352c], eax
lea eax, [ebp - 8]
push eax
push edi
push dword [esi + 0x10]
push dword [esi + 8]
call dword [0x55d3e4]
test eax, eax
je 0x38412a3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + 6]
inc ecx
add esi, 0x28
mov dword [ebp - 0x10], ecx
cmp ecx, eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0xc]
jl 0x38410c0
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0397382f
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x14]
jmp 0x384128a
Function at 0x401320
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x4046cc], 0
je 0x401334
jmp 0x4013e5
cmp dword [0x404354], 0
jne 0x401368
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x20
push eax
mov eax, dword [ebp + 8]
push eax
call sub.cgraph.dll_agwrite
add esp, 8
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR90.dll_fflush]
add esp, 4
jmp 0x4013e5
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004013f0
add esp, 8
mov dword [ebp - 4], eax
push 0x404044
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4013c8
mov ecx, dword [ebp - 4]
push ecx
push str.Could_not_open__s_for_writing_n
call dword [sym.imp.MSVCR90.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR90.dll_fprintf]
add esp, 0xc
push str.bcomps
call dword [sym.imp.MSVCR90.dll_perror]
add esp, 4
push 1
call dword [sym.imp.MSVCR90.dll_exit]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.cgraph.dll_agwrite
add esp, 8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x401be0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [str.Usage:_bcomps___stvx_____o_out_template____files__n___o___output_file_template_n___s___dont_print_components_n___t___emit_block_cutpoint_tree_n___v___verbose_n___x___external_n_______print_usage_nIf_no_files_are_specified__stdin_is_used_n]
push eax
push 0x4041a4
call dword [sym.imp.MSVCR90.dll_printf]
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_exit]
pop ebp
ret
Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219