joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415cc0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2d
mov dword [esp + 4], str._buffer_overflow_detected_:_terminated_n
mov dword [esp], 2
call sub.msvcrt.dll__write
mov dword [esp], 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
sub esp, 4
test eax, eax
je 0x415cf9
mov ecx, 8
int 0x29
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 4], 0xc0000409
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x415d20
Capabilities:
Terminate process

Disassembly:
sub esp, 0x1c
mov dword [esp + 8], 0x2c
mov dword [esp + 4], str._stack_smashing_detected_:_terminated_n
mov dword [esp], 2
call sub.msvcrt.dll__write
mov dword [esp], 0x17
call sub.KERNEL32.dll_IsProcessorFeaturePresent
sub esp, 4
test eax, eax
je 0x415d59
mov ecx, 2
int 0x29
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 4], 0xc0000409
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x422620
Capabilities:
Print debug messages

Disassembly:
push edi
pxor xmm0, xmm0
lea edi, [esp + 8]
and esp, 0xfffffff0
push dword [edi - 4]
push ebp
mov ebp, esp
push edi
push ebx
lea ebx, [ebp - 0x41]
sub esp, 0x50
movups xmmword [ebp - 0x21], xmm0
mov eax, dword [0x51a10c]
mov dword [ebp - 0xc], eax
xor eax, eax
movups xmmword [ebp - 0x41], xmm0
movups xmmword [ebp - 0x31], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 8], str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x35
mov dword [esp], ebx
call fcn.004263a0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
lea esi, cs:[esi]
lea esi, [esi]

Function at 0x422a10
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x51ab24], 1
je 0x422ab0
push edi
mov eax, 0x51ab24
push esi
push ebx
sub esp, 0x10
call fcn.00422410
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.00421c70
mov edi, dword [0x51ab24]
test edi, edi
jne 0x422a80
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4cc230], eax
cmp eax, 0xffffffff
je 0x4c5f85
mov dword [0x51ab24], 1
mov dword [esp], esi
call fcn.00421fa0
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.004226a0
cmp edi, 1
je 0x422a62
mov dword [esp], 2
call dword [0x4cc21c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x51ab24
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x422a62
ret
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
mov eax, dword [0x14]
ud2

Function at 0x422bf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00422a10
mov eax, dword [0x4cc230]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x422c18
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.00422ac0
Function at 0x422f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x422f28
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x423020
add esp, 0x14
pop ebx
pop esi
ret 0xc
cmp eax, 1
je 0x422ff0
cmp eax, 3
jne 0x422f19
mov eax, dword [0x4cc230]
cmp eax, 0xffffffff
je 0x422f19
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x422f19
test byte [eax + 0x20], 0x30
je 0x423058
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x422f6b
call fcn.00422c20
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x422f9d
mov dword [esp], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x422f8f
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.00422140
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.00422300
cmp eax, 1
je 0x423126
mov eax, dword [ebx + 0xb0]
mov dword [ebx + 0x38], 0xffffffff
test eax, eax
je 0x42311a
mov eax, dword [0x4cc230]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
jmp 0x422f19
mov eax, dword [0x51aafc]
test eax, eax
je 0x42303f
mov dword [esp + 4], 0x422380
mov dword [esp], 1
call eax
sub esp, 8
mov dword [0x51ab00], eax
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov eax, dword [0x51ab00]
test eax, eax
je 0x422f19
mov edx, dword [0x51aaf8]
test edx, edx
je 0x42303f
mov dword [esp], eax
call edx
sub esp, 4
mov dword [0x51ab00], 0
add esp, 0x14
pop ebx
pop esi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x4230cc
test eax, eax
je 0x423072
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x42308f
call fcn.00422c20
test byte [ebx + 0x24], 4
je 0x42310a
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x422f9d
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], eax
call fcn.00422140
lea eax, [ebx + 0x38]
jmp 0x422fab
test eax, eax
je 0x42310a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0x1c]
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call fcn.00422140
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.00422300
cmp eax, 1
je 0x423126
mov dword [ebx + 0x38], 0xffffffff
jmp 0x422f19
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call fcn.00422140
lea eax, [ebx + 0x38]
jmp 0x4230f1
mov eax, ebx
call fcn.00422850
jmp 0x422fd1
call fcn.00422620
lea esi, cs:[esi]
Function at 0x423400
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [0x51a10c]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov eax, dword [ebx]
test esi, esi
je 0x423540
cmp eax, 1
je 0x42345e
mov eax, ebx
call fcn.00422410
lea edi, [eax + 4]
mov dword [esp + 0x1c], eax
mov dword [esp], edi
call fcn.00421c70
mov ebp, dword [ebx]
test ebp, ebp
je 0x423480
cmp ebp, 1
jne 0x423510
mov dword [esp], edi
call fcn.00421fa0
mov eax, dword [esp + 0x1c]
call fcn.004226a0
xor eax, eax
mov edx, dword [esp + 0x2c]
sub edx, dword [0x51a10c]
jne 0x42358a
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0x422760
mov dword [esp + 0x24], eax
call fcn.00422a10
mov eax, dword [0x4cc230]
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x423578
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
lock or dword [esp], 0
call fcn.00422a10
mov eax, dword [0x4cc230]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x423560
lea ecx, [esp + 0x20]
mov dword [eax + 0xc], ecx
lock or dword [esp], 0
call esi
call fcn.00422a10
mov eax, dword [0x4cc230]
mov dword [esp], eax
call ebp
sub esp, 4
test eax, eax
je 0x423550
mov edx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov dword [ebx], 1
jmp 0x42344d
mov dword [esp], 2
call dword [0x4cc21c]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], str._once__p_is__ld_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x42344d
mov eax, 0x16
jmp 0x423460
call fcn.00422ac0
test eax, eax
jne 0x4234fa
jmp 0x4c5faf
call fcn.00422ac0
test eax, eax
jne 0x4234d6
jmp 0x4c5fa4
call fcn.00422ac0
test eax, eax
jne 0x4234b0
jmp 0x4c5f9d
call fcn.00415d20
nop
mov eax, dword [pe_dos_header]
ud2
lea eax, [esp + 0x20]
mov dword [0], eax
ud2
mov eax, dword [esp + 0x28]
mov dword [0], eax
ud2

Function at 0x4237e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00422a10
mov eax, dword [0x4cc230]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x423858
lea ebp, [ebx + 0x38]
xor edi, edi
mov dword [esp], ebp
call fcn.00422310
mov eax, dword [ebx + 0x28]
cmp dword [esp + 0x30], eax
jae 0x423834
mov eax, dword [ebx + 0x30]
mov edx, dword [esp + 0x30]
cmp byte [eax + edx], 0
je 0x423834
mov eax, dword [ebx + 0x2c]
mov edi, dword [eax + edx*4]
mov dword [esp], ebp
call fcn.00422360
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00422ac0
mov ebx, eax
jmp 0x42380b
Function at 0x423870
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov esi, dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
call fcn.00422a10
mov eax, dword [0x4cc230]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x423988
lea edi, [ebx + 0x38]
mov dword [esp], edi
call fcn.00422310
mov edx, dword [ebx + 0x2c]
cmp esi, dword [ebx + 0x28]
jb 0x423954
lea ebp, [esi + 1]
mov dword [esp], edx
lea eax, [ebp*4]
mov dword [esp + 4], eax
call sub.msvcrt.dll_realloc
test eax, eax
je 0x423994
mov dword [esp + 0x1c], eax
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call sub.msvcrt.dll_realloc
mov edx, dword [esp + 0x1c]
test eax, eax
mov dword [esp + 0x18], eax
je 0x423994
mov ecx, dword [ebx + 0x28]
mov eax, ebp
mov dword [esp + 4], 0
mov dword [esp + 0x1c], edx
sub eax, ecx
lea ecx, [edx + ecx*4]
shl eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x28]
mov edx, dword [esp + 0x18]
mov ecx, ebp
mov dword [esp + 4], 0
sub ecx, eax
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x44]
mov dword [edx + esi*4], eax
mov eax, dword [ebx + 0x30]
mov byte [eax + esi], 1
mov dword [esp], edi
call fcn.00422360
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00422ac0
mov ebx, eax
jmp 0x4238a5
mov dword [esp], edi
call fcn.00422360
mov eax, 0xc
jmp 0x42397c

Function at 0x423a30
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00422a10
mov eax, dword [0x4cc230]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x423a58
mov eax, dword [eax + 0x18]
add esp, 0x1c
ret
call fcn.00422ac0
test eax, eax
jne 0x423a4d
add esp, 0x1c
ret

Function at 0x423ac0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00422a10
mov eax, dword [0x4cc230]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x423ae8
add eax, 0xc
add esp, 0x1c
ret
call fcn.00422ac0
test eax, eax
jne 0x423add
jmp 0x423ae0
Function at 0x423b20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call fcn.00422bf0
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x423b42
call fcn.00422c20
test byte [ebx + 0x20], 0x30
jne 0x423b5c
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x4cc230]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x423b9d
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x423bdd
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x423b92
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
jne 0x423ba6
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.004229f0
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x4cc230]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
jmp 0x423b9d
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x423bf1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x423bbe

Function at 0x423c00
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x51ab2c]
test eax, eax
jne 0x423c10
xor eax, eax
ret
sub esp, 0x1c
call fcn.00422a10
mov eax, dword [0x4cc230]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x423c50
mov edx, dword [eax + 0x10]
test edx, edx
jle 0x423c40
xor eax, eax
add esp, 0x1c
ret
test byte [eax + 0x20], 3
je 0x423c34
mov eax, dword [eax + 0x24]
and eax, 1
jmp 0x423c36
call fcn.00422ac0
test eax, eax
je 0x423c34
jmp 0x423c2d

Function at 0x423c60
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x1c
call fcn.00422a10
mov eax, dword [0x4cc230]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x423ca0
mov edx, dword [esp + 0x20]
test edx, edx
jle 0x423c90
lock add dword [eax + 0x10], 1
add esp, 0x1c
ret
lock sub dword [eax + 0x10], 1
add esp, 0x1c
ret
call fcn.00422ac0
test eax, eax
jne 0x423c7d
add esp, 0x1c
ret
Function at 0x423db0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call fcn.00422a10
mov eax, dword [0x4cc230]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x423e20
test byte [ebx + 0x20], 0xc
jne 0x423de0
mov eax, dword [0x51ab2c]
test eax, eax
jne 0x423df0
add esp, 0x14
pop ebx
pop esi
ret
lea esi, [ebx + 0x1c]
mov dword [esp], esi
call fcn.00421c70
movzx eax, byte [ebx + 0x20]
test al, 3
je 0x423e12
mov edx, dword [ebx + 0x24]
test dl, 1
je 0x423e12
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x423e31
mov dword [esp], esi
call fcn.00421fa0
add esp, 0x14
pop ebx
pop esi
ret
call fcn.00422ac0
mov ebx, eax
test eax, eax
jne 0x423dd1
add esp, 0x14
pop ebx
pop esi
ret
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [ebx + 0x24], edx
mov byte [ebx + 0x20], al
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x423e51
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push eax
mov dword [esp], esi
call fcn.00421fa0
call fcn.00423cb0
nop
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x20]
test eax, eax
je 0x423ed0
mov dword [esp], eax
call fcn.00421910
xor ecx, ecx
mov ebx, edx
mov edx, 0xffffffff
cmp edx, eax
sbb ecx, ebx
cmovae edx, eax
mov ebx, edx
call fcn.00422a10
mov eax, dword [0x4cc230]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x423f20
test ebx, ebx
je 0x423eea
call fcn.00423db0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x423f10
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00421a20
call fcn.00423db0
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
call fcn.00422a10
mov eax, dword [0x4cc230]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x423f30
call fcn.00423db0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
call fcn.00423db0
add esp, 0x14
xor eax, eax
pop ebx
pop esi
ret
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
jmp 0x423ebf
call fcn.00422ac0
mov esi, eax
jmp 0x423ea3
call fcn.00422ac0
jmp 0x423eea

Function at 0x4871d0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x2c
mov esi, dword [sym.imp.msvcrt.dll__read]
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov ecx, ebx
call fcn.00486fd0
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], eax
call esi
mov edx, eax
cmp eax, 0xffffffff
je 0x487210
add esp, 0x2c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [esp + 0x1c], eax
call dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [esp + 0x1c]
cmp dword [eax], 4
je 0x4871e7
add esp, 0x2c
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x4be5d0
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
call fcn.004be370
mov edx, dword [eax]
add dword [eax + 4], 1
test edx, edx
je 0x4c2ea4
mov ecx, dword [edx + 0x30]
mov ebx, dword [edx + 0x34]
mov esi, 1
add ecx, 0xbcd4d500
mov edi, ecx
adc ebx, 0xb8b1aabc
xor ecx, ecx
cmp esi, edi
sbb ecx, ebx
jae 0x4be627
xor ecx, ecx
mov dword [eax], ecx
lea ebx, [edx + 0x30]
mov dword [esp], ebx
call fcn.00412d90
mov dword [esp], ebx
call fcn.004be140
jmp 0x4c2ea4
neg dword [edx + 0x14]
jmp 0x4be60f
Function at 0x405de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405df9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405e34
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405e30
lea ebx, [ebx]
cmp esi, eax
jae 0x405e34
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405e20
cmp esi, eax
jb 0x405e3a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40f682
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40f6bb
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.0040f61d
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040e24b
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x411376
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 0x4113b9
call fcn.0041cecc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4113b9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4113d4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00410f2d
test ebx, ebx
mov esi, eax
je 0x4113d2
test edi, edi
je 0x4113d2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x415a47
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0041cecc
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x415a72
xor eax, eax
jmp 0x415b16
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x415a6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415a6b
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040b183
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x415ac7
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x415ab6
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0041488e
push edi
mov ebx, eax
call fcn.0040b1ae
test ebx, ebx
pop ecx
je 0x415b09
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00414f2d
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00414fdf
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x41676a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4522e5
call fcn.0043f173
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41678f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4167db
call fcn.0041a712
push eax
lea ecx, [ebp - 0x10]
call fcn.00403ac0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041600c
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004038a0
mov eax, esi
call fcn.0043f24b
ret 8
Function at 0x41c351
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x451c38
call fcn.0043f1a6
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0041cecc
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41c39c
call fcn.0041cecc
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41c3ad
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41c3ba
or eax, 0xffffffff
jmp 0x41c516
mov ecx, esi
call fcn.0041be98
mov dword [ebp - 0x14], eax
call fcn.0040e3fa
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41c438
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41c438
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41c438
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.0040cd03
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41c438
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41c438
mov ecx, ebx
call fcn.0041626d
test eax, eax
je 0x41c438
push 0
mov ecx, ebx
call fcn.00416288
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.004100b2
push dword [ebp - 0x14]
call fcn.0040e352
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041c159
xor edi, edi
cmp eax, edi
je 0x41c495
test byte [esi + 0x3c], 0x10
je 0x41c47f
push 4
pop edi
mov ecx, esi
call fcn.00416107
test ax, 0x100
je 0x41c475
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040dec3
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41c495
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041645b
or dword [ebp - 4], 0xffffffff
jmp 0x41c4c0
cmp dword [ebp - 0x28], edi
je 0x41c4ce
push 1
mov ecx, ebx
call fcn.00416288
cmp dword [ebp - 0x2c], edi
je 0x41c4de
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41c4f7
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x41c4f7
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041bed2
cmp dword [esi + 0x58], edi
je 0x41c513
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.0043f24b
ret