joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49ed00
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x810
push esi
push edi
push 0x800
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], edx
push 0
push eax
mov esi, ecx
call fcn.004b7c10
add esp, 0xc
lea eax, [esp + 0x14]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x49ee83
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x8004
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x49ee83
mov edx, dword [ebp + 8]
test edx, edx
je 0x49ed9b
cmp dword [edx], 0
je 0x49ed9b
xor ecx, ecx
mov eax, edx
cmp edx, 0x505adc
jne 0x49ed87
lea eax, [ecx*2 + 0x4fce72]
jmp 0x49ed89
mov eax, dword [eax]
mov ax, word [eax]
mov word [esp + ecx*2 + 0x18], ax
inc ecx
cmp dword [edx + ecx*4], 0
lea eax, [edx + ecx*4]
jne 0x49ed76
lea ecx, [esp + 0x18]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49eda2
sub ecx, edx
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x49ee83
xor eax, eax
lea edi, [esp + 0x18]
mov ecx, 0x200
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x80
jne 0x49eded
mov eax, 0x660e
jmp 0x49edfd
xor eax, eax
cmp ecx, 0xc0
setne al
add eax, 0x660f
lea edx, [esp + 0x10]
shl ecx, 0x10
push edx
push ecx
push dword [esp + 0x14]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x49ee83
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x49ee83
cmp byte [ebp + 0xc], 0
je 0x49ee4d
mov eax, dword [esp + 8]
add eax, 0x10
push eax
lea eax, [esp + 0xc]
push eax
push esi
push 0
push 1
push 0
push dword [esp + 0x28]
call dword [0x507ad4]
jmp 0x49ee63
lea eax, [esp + 8]
push eax
push esi
push 0
push 1
push 0
push dword [esp + 0x24]
call dword [0x507ad0]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x49f130
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
push ebx
mov ebx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
cmp edx, eax
jb 0x49f28a
cmp edx, ecx
jb 0x49f28a
push 4
xor edi, edi
lea esi, [esp + 0x24]
test ecx, ecx
lea edx, [ebx + 0x14]
push esi
cmovne eax, ecx
mov dword [esp + 0x18], edx
push eax
push edx
call dword [sym.imp.SHLWAPI.dll_HashData]
cmp dword [ebx], 0x4034b50
mov esi, dword [esp + 0x18]
jne 0x49f28a
mov eax, dword [esp + 0x20]
cmp eax, dword [ebx + 4]
jne 0x49f28a
mov ebx, dword [ebx + 0xc]
push ebx
call fcn.004bb7a0
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x49f28a
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
test eax, eax
je 0x49f293
push eax
call fcn.004bb7a0
add esp, 4
mov esi, eax
push dword [esp + 0x14]
push dword [esp + 0x14]
push esi
call fcn.004b9800
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, esi
push 0x100
push edi
push dword [ebp + 0xc]
call fcn.0049ed00
add esp, 0xc
push dword [esp + 0x24]
call fcn.004bb7a0
add esp, 4
mov edi, eax
lea eax, [esp + 0x14]
push 0
push 0
push eax
push edi
push 1
push 0
push esi
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
push esi
call fcn.004bb7ab
mov eax, dword [esp + 0x20]
add esp, 4
cmp ebx, eax
jne 0x49f251
mov ecx, dword [esp + 0x18]
push ebx
push edi
push dword [ecx]
call fcn.004b9800
add esp, 0xc
push edi
call fcn.004bb7ab
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 9
push 0
push eax
mov edx, edi
lea ecx, [esp + 0x20]
call fcn.00421050
add esp, 0x10
test eax, eax
je 0x49f2e9
mov ecx, dword [esp + 0x10]
call fcn.00420ff0
mov ecx, dword [esp + 0x18]
push dword [ecx]
call fcn.004bb7ab
add esp, 4
push edi
call fcn.004bb7ab
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
cmp ebx, eax
jne 0x49f2b2
push ebx
push dword [esp + 0x14]
push ecx
call fcn.004b9800
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push 0
push 9
push 0
push eax
call fcn.00421050
add esp, 0x10
test eax, eax
je 0x49f2ed
mov ecx, dword [esp + 0x10]
call fcn.00420ff0
push dword [esi]
call fcn.004bb7ab
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], eax
lea eax, [esp + 0x28]
push 1
push eax
mov dword [esp + 0x60], ebx
mov dword [esp + 0x58], ebx
call fcn.00420d30
add esp, 8
test eax, eax
je 0x49f345
push dword [esi]
call fcn.004bb7ab
mov ecx, dword [esp + 0x14]
add esp, 4
call fcn.00420ff0
test edi, edi
je 0x49f28a
push edi
call fcn.004bb7ab
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x10]
call fcn.00420ff0
test edi, edi
je 0x49f35b
push edi
call fcn.004bb7ab
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49fc10
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x50a780
push esi
mov esi, edx
call fcn.00406430
test eax, eax
jne 0x49fc41
push 0x4da3cc
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x509c28
call fcn.00447960
pop esi
pop ebx
add esp, 8
ret
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx + esi]
lea esi, [ebx + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
ja 0x49fcc9
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x49fcc9
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x49fcc9
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x49fcc9
xor eax, eax
test edi, edi
sete al
add eax, edi
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x49fd7d
test edi, edi
je 0x49fcb3
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x49fd18
push edi
push ebx
push eax
call fcn.004b9800
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, esi
push ebp
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [esp + 0x14]
lea esi, [ebx + 4]
cmp esi, eax
jbe 0x49fc57
cmp dword [0x50a798], 0
je 0x49fd0b
cmp dword [0x50a788], 0
je 0x49fcf1
push dword [0x50a780]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x50a788], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x50a798], 0
mov dword [0x50a780], 0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x50a798], 0
je 0x49fd61
cmp dword [0x50a788], 0
je 0x49fd47
push dword [0x50a780]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x50a788], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x50a798], 0
mov dword [0x50a780], 0
push 0x4da3cc
push 0x4da8c4
mov ecx, 0x509c28
call fcn.00447960
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x50a798], 0
je 0x49fdbf
cmp dword [0x50a788], 0
je 0x49fda5
push dword [0x50a780]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x50a788], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x50a798], 0
mov dword [0x50a780], 0
push 0x4da3cc
push 0x4ee268
mov ecx, 0x509c28
call fcn.00447960
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x4a0a70
Capabilities:
Log keystrokes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, ecx
push esi
push edi
mov edi, edx
movzx eax, word [edi]
cmp eax, 0x41
je 0x4a0a89
cmp eax, 0x61
jne 0x4a0af1
cmp word [edi + 2], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jne 0x4a0af9
cmp word [ecx], 0
jne 0x4a0af9
cmp word [eax], 0
jne 0x4a0af9
cmp word [ebp], 0
jne 0x4a0af9
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4a0af1
cmp byte [ebx + 0xea], 0
jne 0x4a0ad6
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a0af1
mov ecx, esi
call fcn.004a1ca0
test al, al
jne 0x4a0af1
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4a0aea
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
test dl, dl
jne 0x4a0b23
cmp word [edi], 0
jne 0x4a0b23
cmp word [ecx], 0
jne 0x4a0b23
cmp word [eax], 0
jne 0x4a0b23
cmp word [ebp], 0
jne 0x4a0b23
mov ecx, ebx
call fcn.004a1280
jmp 0x4a0b3d
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0
push edx
push ebp
push eax
push ecx
mov edx, edi
mov ecx, ebx
call fcn.004a10e0
add esp, 0x1c
test eax, eax
jne 0x4a0b46
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov ecx, eax
pop ebx
jmp fcn.004a0be0
Function at 0x4a0be0
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4a0d58
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push esi
call ebp
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, dword [0x50939c]
je 0x4a0c19
mov ecx, esi
call fcn.004a1c20
test al, al
jne 0x4a0d58
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4a0c35
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
cmp esi, ebx
jne 0x4a0c43
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp byte [0x507b52], 0
jne 0x4a0c5d
mov edx, ebx
mov ecx, esi
call fcn.004a0b60
test eax, eax
jne 0x4a0d5a
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
test ebx, ebx
je 0x4a0cbe
push 0
push ebx
call ebp
mov ebp, eax
mov dword [esp + 0x14], ebp
test ebp, ebp
je 0x4a0cc6
cmp dword [0x50939c], ebp
je 0x4a0ca3
mov ecx, ebx
call fcn.004a1c20
test al, al
jne 0x4a0ca3
push 1
push ebp
push dword [0x50939c]
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x12]
test edi, edi
je 0x4a0cc6
cmp ebp, edi
je 0x4a0cc6
push 1
push edi
push ebp
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
setne byte [esp + 0x13]
jmp 0x4a0cc6
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
xor edi, edi
nop dword [eax + eax]
mov edx, ebx
mov ecx, esi
call fcn.004a0b60
mov ebp, eax
test ebp, ebp
jne 0x4a0d17
inc edi
cmp edi, 5
jl 0x4a0cd0
push 0xffc3d44d
push eax
push eax
push eax
mov dl, 0x12
lea ecx, [eax + 2]
call fcn.00419970
push 0xffc3d44d
push ebp
push ebp
push ebp
mov dl, 0x12
lea ecx, [ebp + 2]
call fcn.00419970
add esp, 0x20
mov edx, ebx
mov ecx, esi
call fcn.004a0b60
mov ebp, eax
cmp byte [esp + 0x12], 0
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
je 0x4a0d33
push 0
push edi
push dword [0x50939c]
call ebx
cmp byte [esp + 0x13], 0
je 0x4a0d43
push 0
push dword [esp + 0x1c]
push edi
call ebx
test ebp, ebp
je 0x4a0d58
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0xc
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x4a0e70
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
cmp byte [esp + 8], 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x4a0ece
lea eax, [esp + 0xc]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x4a0edb
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x4a0edb
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4a0edb
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a0edb
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x4a0f43
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword fs:[0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x18], eax
nop
cmp dword [0x50939c], ebx
jne 0x4a0f19
mov edx, 1
mov ecx, 0x8000012f
call fcn.004019f0
jmp 0x4a0f1d
push 0xa
call ebp
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a0f3b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x18]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jg 0x4a0f00
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
Function at 0x4a10e0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c6c
call fcn.004d2340
mov eax, edx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], eax
movzx eax, word [eax]
push edi
mov edi, ecx
cmp eax, 0x41
je 0x4a1111
cmp eax, 0x61
jne 0x4a1174
mov ecx, dword [esp + 0xc]
cmp word [ecx + 2], 0
jne 0x4a1174
cmp word [ebx], 0
jne 0x4a1174
cmp word [edx], 0
jne 0x4a1174
cmp word [esi], 0
jne 0x4a1174
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4a115b
cmp byte [edi + 0xea], 0
jne 0x4a115b
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4a1159
mov ecx, esi
call fcn.004a1ca0
test al, al
je 0x4a115b
xor esi, esi
cmp byte [ebp + 0x18], 0
je 0x4a116b
test esi, esi
je 0x4a116b
mov dword [edi + 0xc4], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x4a1196
cmp word [ebx], ax
jne 0x4a1196
cmp word [edx], ax
jne 0x4a1196
cmp word [esi], ax
jne 0x4a1196
mov ecx, edi
call fcn.004a1280
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.00449490
push esi
push edx
push ebx
push dword [esp + 0x18]
push edi
call fcn.004a1e20
test eax, eax
je 0x4a1249
test byte [esp + 0x10], 2
mov al, byte [ebp + 0x14]
mov byte [esp + 0x183d], al
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x184c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1850], eax
je 0x4a1252
mov eax, dword [esp + 0x102c]
cmp eax, 0xffff
je 0x4a1221
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a1249
push dword [esp + 0x102c]
mov ecx, edi
call fcn.004a1d10
test al, al
jne 0x4a121a
push 0xfffffffffffffff0
push dword [esp + 0x1030]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x4a1249
mov eax, dword [esp + 0x102c]
cmp dword [esp + 0x1864], eax
je 0x4a123a
lea ecx, [esp + 0x10]
mov dword [esp + 0x1864], eax
call fcn.004a22e0
push 0
lea ecx, [esp + 0x14]
call fcn.004a23c0
test eax, eax
jne 0x4a1262
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push 0x4a1300
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp + 0x18], 0
mov eax, dword [esp + 0x1844]
je 0x4a124b
test eax, eax
je 0x4a124b
mov dword [edi + 0xc4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a22e0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1854]
test ecx, ecx
je 0x4a23b9
mov eax, dword [esi]
test eax, eax
je 0x4a23b9
push edi
test al, 1
jne 0x4a230d
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x4a2327
push 0x7fff
lea edi, [esi + 0x1860]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4a2327
mov word [edi], ax
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test al, 4
je 0x4a2344
lea eax, [esi + 0x185c]
push eax
push dword [esi + 0x1854]
call edi
mov eax, dword [esi]
test al, 0x20
je 0x4a237f
lea eax, [esp + 8]
push eax
push dword [esi + 0x1854]
call edi
test eax, eax
je 0x4a237f
movzx eax, byte [esi + 0x182c]
lea edx, [esi + 0x11a60]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0046e020
add esp, 8
test eax, eax
jne 0x4a237f
mov word [esi + 0x11a60], ax
mov eax, dword [esi]
pop edi
test al, 8
je 0x4a23a0
push 0x101
lea eax, [esi + 0x1185e]
push eax
push dword [esi + 0x1854]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [esi]
test eax, 0x100
je 0x4a23b9
push dword [esi + 0x1854]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esi + 0x1858], eax
pop esi
pop ecx
ret

Function at 0x4a2c00
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c68
call fcn.004d2340
mov edx, dword [ecx + 8]
test edx, edx
je 0x4a2c9b
lea ecx, [esp]
call fcn.00449490
mov al, byte [ebp + 8]
mov byte [esp + 0x1848], al
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x184c], eax
mov eax, ecx
push eax
push 0x4a3340
mov dword [esp + 0x184c], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x1834], 0
je 0x4a2c9b
mov eax, dword [0x50499c]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4a2c9b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x50939c], eax
je 0x4a2c88
mov eax, dword [0x50499c]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x50499c]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.004019f0
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4a2f40
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c70
call fcn.004d2340
push ebx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x4a30cd
push 0
call fcn.004a30e0
test eax, eax
jne 0x4a2f71
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x50499c]
mov ebx, eax
mov ecx, esi
push ebx
call fcn.004a3180
mov edx, dword [0x509394]
xor ecx, ecx
test eax, eax
cmovne edx, ecx
lea ecx, [esp + 0x10]
mov dword [0x509394], edx
call fcn.00449490
cmp byte [ebp + 8], 0
je 0x4a2fb5
mov byte [esp + 0x183d], 0
test edx, edx
je 0x4a2fbd
mov byte [esp + 0x183d], 1
mov eax, dword [0x509390]
mov dword [esp + 0x184c], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x1854], eax
lea eax, [esp + 0x10]
push eax
push 0x4a3210
mov dword [esp + 0x1858], edx
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x1844]
test eax, eax
je 0x4a30a0
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0x4a1ba0
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4a3032
mov ecx, dword [esp + 0x1844]
call fcn.004a2860
mov dword [esp + 0x1844], esi
jmp 0x4a3039
mov esi, dword [esp + 0x1844]
mov ecx, esi
call fcn.004a0be0
mov ecx, dword [esp + 0x1844]
call fcn.004a2860
mov eax, dword [0x50499c]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4a30cd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x50939c], eax
je 0x4a3080
mov eax, dword [0x50499c]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x50499c]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.004019f0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x509394]
test eax, eax
je 0x4a30cd
cmp eax, 1
mov dword [0x509394], 0
setg al
test al, al
je 0x4a30cd
mov ecx, ebx
call fcn.004a2860
push 0
mov ecx, esi
call fcn.004a2f40
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4cac99
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cab18
Function at 0x1000455c
Capabilities:
Send data
Send data on socket

Disassembly:
push 4
mov eax, 0x10007b59
call fcn.1000770a
push 0x10
call fcn.1000669b
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov ecx, eax
call fcn.10002459
mov esi, eax
push 0xa8
mov ecx, esi
call fcn.10002481
push 1
call fcn.10002481
call fcn.100024cd
mov ecx, esi
call fcn.100064c7
mov ecx, dword [esi + 0xc]
push 0
movzx eax, word [ecx]
add eax, 2
push eax
push ecx
push dword [0x1000b574]
call dword [sym.imp.WS2_32.dll_send]
push dword [esi + 0xc]
call fcn.100067b1
push 0x10
push esi
call fcn.100066cb
add esp, 0xc
call fcn.100076e7
ret 8

Function at 0x100045d2
Capabilities:
Send data
Send data on socket

Disassembly:
push 4
mov eax, 0x10007b59
call fcn.1000770a
push 0x10
call fcn.1000669b
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov ecx, eax
call fcn.10002459
mov esi, eax
push 0x6e
mov ecx, esi
call fcn.10002481
movzx ecx, word [0x1000b510]
push ecx
mov ecx, esi
call fcn.100024a5
movzx ecx, word [0x1000b514]
push ecx
mov ecx, esi
call fcn.100024a5
movzx eax, word [0x1000b558]
push eax
call fcn.100024a5
movzx eax, word [0x1000b554]
push eax
call fcn.100024a5
call fcn.100024cd
mov ecx, esi
call fcn.100064c7
mov ecx, dword [esi + 0xc]
push 0
movzx eax, word [ecx]
add eax, 2
push eax
push ecx
push dword [0x1000b574]
call dword [sym.imp.WS2_32.dll_send]
push dword [esi + 0xc]
call fcn.100067b1
push 0x10
push esi
call fcn.100066cb
add esp, 0xc
call fcn.100076e7
ret
Function at 0x1000537c
Capabilities:
Read file on windows

Disassembly:
push 0x6c
mov eax, 0x10007c6a
call fcn.1000773d
mov edi, ecx
mov ecx, 0xa3
mov dword [edi], vtable.Sprites.0
sub esp, 0xc
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x1c]
xor ebx, ebx
mov dword [ebp - 0x18], 0x31
lea eax, [ecx - 0xa]
mov byte [edi + 8], bl
mov ecx, esp
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x10]
push ecx
push eax
push edx
mov dword [ebp - 0x14], 0x93
mov dword [ebp - 0x44], 0x84
mov dword [ebp - 0x40], 0x30
mov dword [ebp - 0x38], 0x92
mov dword [ebp - 0x30], 0x91
mov dword [ebp - 0x2c], 0x5e
mov dword [ebp - 0x24], 0xa0
mov dword [ebp - 0x20], 0xa2
call fcn.10004f68
lea ecx, [ebp - 0x74]
call fcn.10005b0f
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 0xf
jbe 0x10005411
mov eax, dword [eax]
push eax
sub esp, 0xc
lea eax, [ebp - 0x1c]
mov ecx, esp
lea edx, [ebp - 0x44]
push ecx
push eax
push edx
call fcn.10004f68
lea ecx, [ebp - 0x5c]
call fcn.10005b0f
add esp, 0xc
cmp dword [eax + 0x14], 0xf
jbe 0x10005438
mov eax, dword [eax]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
pop ecx
pop ecx
lea ecx, [ebp - 0x5c]
mov esi, eax
call fcn.10001557
lea ecx, [ebp - 0x74]
call fcn.10001557
test esi, esi
je 0x100054ad
push 2
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
mov ebx, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_rewind]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 0x18
mov dword [edi + 4], eax
test eax, eax
je 0x100054a5
push esi
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, ebx
jne 0x100054a5
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
and dword [edi + 0xc], 0
mov byte [edi + 8], 1
jmp 0x100054ac
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
pop ecx
mov eax, edi
call fcn.100076fb
ret

Function at 0x10005c8e
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0x40
push dword [ebp + 8]
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [ebp + 8], 2
jne 0x10005cb4
mov word [esi], bx
jmp 0x10005cbc
cmp dword [ebp + 8], 1
jne 0x10005cbc
mov byte [esi], bl
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
pop ebx
leave
ret