joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40475a
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 5
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [ebp - 0x30], edi
cmp edi, ebx
jne 0x4047ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4047a1
xor ecx, ecx
cmp eax, 0x429
setne cl
lea eax, [ecx + 0xfe]
jmp 0x404886
mov eax, 0xfd
jmp 0x404886
push esi
push 4
push str.MozillaMaintenance
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x404812
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
sub eax, 5
je 0x40480b
dec eax
je 0x404804
sub eax, 0x75
je 0x4047fa
sub eax, 0x3a9
je 0x4047f0
mov eax, 0xef
jmp 0x404885
mov eax, 0xee
jmp 0x404885
mov eax, 0xed
jmp 0x404885
mov eax, 0xec
jmp 0x404885
mov eax, 0xeb
jmp 0x404885
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
mov dword [ebp - 0x24], 0xcf
pop edi
lea eax, [ebp - 0x34]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x404894
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7c
jbe 0x4048ad
cmp eax, 0x41c
je 0x40489a
cmp eax, 0x424
jbe 0x404869
cmp eax, 0x426
jbe 0x40489a
mov dword [ebp - 0x24], 0xde
cmp eax, 0x45b
je 0x404870
mov dword [ebp - 0x24], 0xdf
push dword [ebp - 0x2c]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [ebp - 0x24]
call esi
push dword [ebp - 0x30]
call esi
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00404ed1
leave
ret
cmp dword [ebp - 0x24], 1
je 0x404870
push edi
add ebx, edi
call esi
cmp ebx, 0x7530
jb 0x404822
jmp 0x404870
je 0x4048e5
sub eax, 5
je 0x4048dc
dec eax
je 0x4048d3
sub eax, 0x51
je 0x4048ca
sub eax, 0x23
jne 0x404869
mov dword [ebp - 0x24], 0xdb
jmp 0x404870
mov dword [ebp - 0x24], 0xdc
jmp 0x404870
mov dword [ebp - 0x24], 0xd9
jmp 0x404870
mov dword [ebp - 0x24], 0xda
jmp 0x404870
mov dword [ebp - 0x24], 0xdd
jmp 0x404870
Function at 0x4048ee
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b8]
sub esp, 0x238
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp + 0x1b4], eax
and dword [ebp - 0x7c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404931
call ebx
jmp 0x40497f
lea eax, [ebp - 0x78]
push eax
push edi
mov dword [ebp - 0x78], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x404954
call ebx
push edi
mov dword [ebp - 0x80], eax
call esi
mov eax, dword [ebp - 0x80]
jmp 0x40497f
lea eax, [ebp - 0x54]
push eax
push 0x4159cc
call fcn.004124bd
pop ecx
pop ecx
test eax, eax
je 0x4049b7
lea eax, [ebp - 0x78]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404954
push edi
call esi
mov eax, 0x490
cmp eax, 0x490
je 0x4049bc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x7c]
cmp dword [ebp - 0x7c], 0x1e
jb 0x40491c
mov eax, 0x102
mov ecx, dword [ebp + 0x1b4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404ed1
add ebp, 0x1b8
leave
ret
push edi
call esi
jmp 0x404986
xor eax, eax
jmp 0x40499f

Function at 0x4049c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004056c0
push edi
call fcn.0040550b
mov ecx, 0x104
add esp, 0x10
cmp eax, ecx
jbe 0x404a04
xor eax, eax
jmp 0x404a3c
push ecx
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.00404ee0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
sub eax, 3
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404ed1
leave
ret
Function at 0x404b6e
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
xor esi, esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call edi
test eax, eax
jne 0x404bb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x404ba7
xor eax, eax
jmp 0x404c4d
push 8
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
call edi
test eax, eax
je 0x404ba0
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x404ba0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x404ba0
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 4
pop eax
push esi
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call edi
test eax, eax
je 0x404ba0
push dword [ebx]
call fcn.004057d2
push dword [ebx]
mov ecx, dword [ebp + 0x10]
push esi
push eax
mov dword [ecx], eax
call fcn.004056c0
mov eax, dword [ebp + 0x10]
add esp, 0x10
push esi
push ebx
push dword [eax]
push 2
push dword [ebp - 4]
call edi
test eax, eax
je 0x404ba0
cmp dword [ebp - 4], esi
je 0x404c3b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], esi
je 0x404c4a
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x404ed1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a0a0]
jne 0x404edb
repz ret
jmp fcn.0040946a
Function at 0x40ea0c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00408d3f
and dword [ebp - 0x14], 0
cmp dword [0x41bd2c], 0
mov dword [ebp - 0x18], eax
jne 0x40eabf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40eb67
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40eb67
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41bd2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41bd30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41bd34], eax
call edi
push eax
call esi
mov dword [0x41bd3c], eax
test eax, eax
je 0x40eabf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41bd38], eax
mov eax, dword [0x41bd38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40eb18
cmp dword [0x41bd3c], ecx
je 0x40eb18
push eax
call esi
push dword [0x41bd3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40eb18
test ebx, ebx
je 0x40eb18
call edi
test eax, eax
je 0x40eb0f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40eb0f
test byte [ebp - 8], 1
jne 0x40eb18
or dword [ebp + 0x10], 0x200000
jmp 0x40eb4b
mov eax, dword [0x41bd30]
cmp eax, dword [ebp - 0x18]
je 0x40eb4b
push eax
call esi
test eax, eax
je 0x40eb4b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40eb4b
mov eax, dword [0x41bd34]
cmp eax, dword [ebp - 0x18]
je 0x40eb4b
push eax
call esi
test eax, eax
je 0x40eb4b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41bd2c]
call esi
test eax, eax
je 0x40eb67
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40eb69
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404ed1
leave
ret
Function at 0x10106b50
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1025faa0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x102f8be4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x10106b99
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
cmp dword [0x102f254c], 0
jne 0x10106bb0
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
test esi, esi
je 0x10106bfd
mov eax, dword [esi]
test eax, eax
je 0x10106b82
cmp dword [esi + 4], 0
je 0x10106b82
push eax
call fcn.10235190
add esp, 4
push dword [esi + 4]
call fcn.10235190
mov eax, dword [esi + 0xc]
add esp, 4
test eax, eax
je 0x10106bee
push eax
call fcn.10235190
add esp, 4
mov eax, dword [esi + 8]
test eax, eax
je 0x10106c35
push eax
call fcn.10235190
jmp 0x10106c32
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
call fcn.10235190
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
call fcn.10235190
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
call fcn.10235190
add esp, 4
push dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
call fcn.10235190
add esp, 4
push 8
call fcn.10235190
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x10106c70
push dword [ebp + 0x18]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10235190
mov dword [edi], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [edi], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x101a1930
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102615ee
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x102f8be4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
mov ecx, esi
mov dword [ebp - 4], 0
call sym.AIDE.dll_public:_void___thiscall_AIDE::PaletteInfo::constructor_void_
mov ecx, dword [edi + 0x14]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
call fcn.101a3000
mov dword [esi], eax
lea ecx, [edi + 0x28]
mov dword [esi + 4], 3
mov dword [esi + 8], 0
mov dword [ecx], 8
mov dword [edi + 0x30], 8
mov dword [edi + 0x2c], 8
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 8
mov ecx, dword [edi + 0x14]
call fcn.101a2fe0
mov dword [esi + 0x14], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1021a3d0
Capabilities:
Terminate process

Disassembly:
cmp dword [str._AdobeIP0000539_], 0
jne 0x1021a3e1
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
jmp 0x1025d420
movss xmm5, dword [0x102d91f4]
movss xmm4, dword [0x102d91fc]
movss xmm6, dword [0x102d91f0]
movss xmm7, dword [0x102d91e8]
movss xmm3, dword [0x102926c8]
push esi
xor esi, esi
nop dword [eax + eax]
movd xmm0, esi
mov eax, esi
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
sub esp, 8
addsd xmm0, qword [eax*8 + 0x102e4250]
cvtpd2ps xmm2, xmm0
movaps xmm0, xmm4
movaps xmm1, xmm2
mulss xmm1, xmm5
subss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10235190
movaps xmm0, xmm2
mov ecx, eax
mulss xmm0, xmm6
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10235190
movaps xmm0, xmm2
shl eax, 0x10
mulss xmm0, xmm7
add ecx, eax
mov dword [esi*4 + 0x10306650], ecx
mulss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10235190
movaps xmm0, xmm2
mov edx, eax
mulss xmm0, dword [0x102d91f8]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10235190
movaps xmm0, xmm2
shl eax, 0x10
mulss xmm0, dword [0x102d91e0]
add eax, edx
mov dword [esi*4 + 0x10306e50], eax
mulss xmm0, xmm3
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10235190
movaps xmm0, xmm2
mov ecx, eax
mulss xmm0, dword [0x102d91ec]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10235190
movaps xmm0, xmm2
shl eax, 0x10
mulss xmm0, dword [0x102d91e4]
add eax, ecx
mov dword [esi*4 + 0x10306a50], eax
mulss xmm0, xmm3
subss xmm0, xmm4
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10235190
movaps xmm0, xmm2
mov dword [esi*4 + 0x10307250], eax
mulss xmm0, dword [0x102d9204]
mov dword [esi*4 + 0x10307a50], edx
mov dword [esi*4 + 0x10307650], ecx
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10235190
movaps xmm0, xmm2
mov dword [esi*4 + 0x10307e50], eax
mulss xmm0, dword [0x102d9208]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10235190
movaps xmm0, xmm2
mov dword [esi*4 + 0x10308250], eax
mulss xmm0, dword [0x102d920c]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.10235190
mov dword [esi*4 + 0x10308650], eax
mulss xmm2, dword [0x102d9200]
cvtps2pd xmm0, xmm2
movsd qword [esp], xmm0
call fcn.10235190
mov dword [esi*4 + 0x10308a50], eax
add esp, 8
inc esi
cmp esi, 0x100
jb 0x1025d450
pop esi
ret
Function at 0x4034f0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41af88
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
push edi
mov edi, dword [esp + 0x38]
mov esi, ecx
test edi, edi
je 0x403718
mov eax, dword [esp + 0x3c]
push ebx
mov dword [esi + 0x8c], eax
push eax
lea eax, [esp + 0x10]
push str.OID_lu
push eax
mov dword [esi + 0x90], edi
call fcn.00404d09
add esp, 0xc
lea ebx, [esi + 0x94]
mov ecx, ebx
push 0x64
push 0x64
call fcn.004129ef
push eax
push 0
lea ecx, [esp + 0x18]
push str.Host
push ecx
push edi
call fcn.004025b0
add esp, 0x18
mov ecx, ebx
push 0xffffffffffffffff
call fcn.00412a3e
lea ebx, [esi + 0x98]
push 0x64
push 0x64
mov ecx, ebx
call fcn.004129ef
push eax
push 0
lea edx, [esp + 0x18]
push str.Description
push edx
push edi
call fcn.004025b0
add esp, 0x18
mov ecx, ebx
push 0xffffffffffffffff
call fcn.00412a3e
lea ebx, [esi + 0x9c]
push 0x64
push 0x64
mov ecx, ebx
call fcn.004129ef
push eax
push 0
lea eax, [esp + 0x18]
push str.Port
push eax
push edi
call fcn.004025b0
add esp, 0x18
mov ecx, ebx
push 0xffffffffffffffff
call fcn.00412a3e
lea ebx, [esi + 0xa0]
push 0x64
push 0x64
mov ecx, ebx
call fcn.004129ef
push eax
push 0
lea ecx, [esp + 0x18]
push str.SSHUser
push ecx
push edi
call fcn.004025b0
add esp, 0x18
mov ecx, ebx
push 0xffffffffffffffff
call fcn.00412a3e
lea ebx, [esi + 0xa4]
push 0x64
push 0x64
mov ecx, ebx
call fcn.004129ef
push eax
push 0
lea edx, [esp + 0x18]
push str.SSHPassword
push edx
push edi
call fcn.004025b0
add esp, 0x18
mov ecx, ebx
push 0xffffffffffffffff
call fcn.00412a3e
lea ebx, [esi + 0xa8]
push 0x64
push 0x64
mov ecx, ebx
call fcn.004129ef
push eax
push 0
lea eax, [esp + 0x18]
push str.SSHName
push eax
push edi
call fcn.004025b0
add esp, 0x18
mov ecx, ebx
push 0xffffffffffffffff
call fcn.00412a3e
lea ebx, [esi + 0xac]
push 0x64
push 0x64
mov ecx, ebx
call fcn.004129ef
push eax
push 0
lea ecx, [esp + 0x18]
push str.SSHPort
push ecx
push edi
call fcn.004025b0
add esp, 0x18
mov ecx, ebx
push 0xffffffffffffffff
call fcn.00412a3e
push 0x4221d8
lea ecx, [esp + 0x40]
call fcn.00412949
push 0x64
push 0x64
lea ecx, [esp + 0x44]
mov dword [esp + 0x3c], 0
call fcn.004129ef
push eax
push 0
lea edx, [esp + 0x18]
push str.UseSSL
push edx
push edi
call fcn.004025b0
mov eax, dword [esp + 0x54]
push 0x4221cc
push eax
call fcn.00404c5a
add esp, 0x20
test eax, eax
pop ebx
jne 0x4036e5
mov dword [esi + 0xb0], 1
jmp 0x4036ef
mov dword [esi + 0xb0], 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.0041291f
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x90], 0
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret 8
Function at 0x410a70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00405c10
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x410b3b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x410b3b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x410aee
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x410af9
or bh, 8
and edi, 0x8000000
je 0x410b14
mov eax, dword [0x4291bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x410b3b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410f10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x410f3b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x410f5f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x410f7a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4142cb
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x414303
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.00412a66
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00412a3e
jmp 0x41430f
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41584d
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 0x41588f
call fcn.00419980
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41588f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x415886
xor eax, eax
jmp 0x415897
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041589d
pop edi
pop esi
pop ebx
ret 4

Function at 0x41a133
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 0x41a161
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41a17f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041a099
jmp 0x41a17f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a17f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041a099
test edi, edi
mov eax, edi
jne 0x41a169
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x100190d9
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], edx
jmp 0x100190f0
mov eax, dword [ebp + 8]
movzx edx, byte [eax]