joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100317cf
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x10031814
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0x63a8
push 0x792b
push 0x61d4
push 1
push 0x12dc
push dword [ebp - 0xc]
push 0x16cd
call fcn.10031889
add esp, 0x20
jmp 0x10031885
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x1003187d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1003185e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1003187b
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x24]
call fcn.1001f296
mov dword [eax], 0xb168f92
jmp 0x10031853
jmp 0x10031885
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov esp, ebp
pop ebp
ret

Function at 0x1003d855
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1003d8b3
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x1003d888
push 0x1811
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1003d8ae
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x1003d8ae
push 0x1574
push 0x1070
call dword [sym.imp.USER32.dll_GetWindow]
jmp 0x1003d94e
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x1003d903
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x1003d901
push 0x1593
push 0
push 1
push 0x4202
call fcn.1003dc3b
add esp, 0x10
jmp 0x1003d94e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1003d931
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jge 0x1003d94e
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x38]
call fcn.1001f296
mov dword [eax], 0x89f2
jmp 0x1003d926
mov esp, ebp
pop ebp
ret
Function at 0x1003d977
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1003daae
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x1003d9c2
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
jmp 0x1003daac
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
push 0
push 0x5b84
push 0x2dd5
call fcn.10041267
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x38]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x1003daac
mov dword [ebp - 0x34], 0xf5540d7f
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x30], 0xfffffffe
mov dword [ebp - 0x2c], 0xc130268d
push 0
push 0x6af
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x1b79
lea eax, [ebp - 0x38]
push eax
call fcn.10040274
add esp, 0x1c
push 4
push 0x1000
push dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [eax + 0xc]
push ecx
push 0x56a1
push 0x6ded
call fcn.1001e80c
pop ecx
pop ecx
call eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xa74
push 0xf0d
push 0x43b1
push 0x50c3
push 0
lea eax, [ebp - 0x10]
push eax
push 0x556f
call fcn.1003a885
add esp, 0x24
push dword [ebp - 8]
push 0
mov eax, dword [ebp - 0xc]
push dword [eax]
call fcn.1001ecb7
add esp, 0xc
jmp 0x1003db10
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x1003dae4
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x1003dae2
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
jmp 0x1003db10
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1003db10
push 0
push 0x1c2b
push 0x3e13
push 0x2e58
push 0x5f96
push 0
call fcn.1003e0d5
add esp, 0x18
mov esp, ebp
pop ebp
ret
Function at 0x1003db38
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1003dbc3
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1003db76
push 0x1e02
push 0
push 0x189e
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1003dbc1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1003dba4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1003dbc1
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x20]
call fcn.1001f296
mov dword [eax], 0xfffffff8
jmp 0x1003db99
jmp 0x1003dc37
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x1003dbec
push 0x4c4
call dword [sym.imp.USER32.dll_GetParent]
jmp 0x1003dc37
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1003dc1a
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 3
jge 0x1003dc37
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x38]
call fcn.1001f296
mov dword [eax], 0x66a756a3
jmp 0x1003dc0f
mov esp, ebp
pop ebp
ret
Function at 0x1004588d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10070f53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x54
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100459fb
lea eax, [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x100459e5
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x100458ff
push 0
push 0x7f7d
push 0x2358
call fcn.10048810
add esp, 0xc
mov dword [ebp - 0x24], 0x7952
mov dword [ebp - 0x3c], 0x10008dc0
cmp dword [ebp - 0x24], 0x7a3f
jle 0x100459a7
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [ebp - 0x20], 0
jmp 0x1004592f
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x5521
jge 0x100459a7
and dword [ebp - 0x18], 0
jmp 0x10045945
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x3baf
jge 0x100459a5
and dword [ebp - 0x1c], 0
jmp 0x1004595b
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x434b
jge 0x100459a3
mov eax, dword [ebp - 0x18]
cdq
idiv dword [ebp - 0x1c]
or edx, dword [ebp - 0x20]
mov eax, edx
cdq
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x64]
call fcn.1000aa9e
pop ecx
pop ecx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
call fcn.1001edec
push eax
call fcn.10058a1f
pop ecx
lea ecx, [ebp - 0x64]
call fcn.1001ede2
jmp 0x10045954
jmp 0x1004593e
jmp 0x10045928
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 0x7722
jge 0x100459bd
push dword [ebp - 0x3c]
call fcn.10058a1f
pop ecx
jmp 0x100459d9
or dword [ebp - 4], 0xffffffff
jmp 0x100459e3
jmp 0x100459f9
mov byte [ebp - 0x11], 0
movzx eax, byte [ebp - 0x11]
test eax, eax
je 0x100459f9
push 0
call dword [sym.imp.USER32.dll_GetKeyboardState]
jmp 0x10045a2b
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x40]
push 0x43e5
push dword [ebp - 0x44]
push 0
push 0x4567
push 0x17db
push 0x7d35
call fcn.100378de
add esp, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006bb95
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10076740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1005e1f8
mov dword [ebp - 0x14], eax
cmp dword [0x10619d5c], esi
jne 0x1006bc88
push 0x800
push esi
push 0x100075b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1006bc15
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1006bd68
push esi
push esi
push 0x100075b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1006bd68
push 0x100075c8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1006bd68
push eax
call ebx
push 0x100075d4
push edi
mov dword [0x10619d5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100075e4
push edi
mov dword [0x10619d60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x100075f8
push edi
mov dword [0x10619d64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10619d6c], eax
test eax, eax
je 0x1006bc85
push 0x10007614
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10619d68], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1006bcad
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1006bca0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1006bcc2
push 4
pop eax
jmp 0x1006bd6a
cmp dword [ebp - 0x14], esi
je 0x1006bcc2
push dword [0x10619d5c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1006bca7
mov eax, dword [0x10619d68]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1006bd20
cmp dword [0x10619d6c], edi
je 0x1006bd20
push eax
call ebx
push dword [0x10619d6c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1006bd20
test eax, eax
je 0x1006bd20
call ecx
test eax, eax
je 0x1006bd15
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1006bd15
test byte [ebp - 8], 1
jne 0x1006bd20
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1006bd50
mov eax, dword [0x10619d60]
cmp eax, edi
je 0x1006bd4d
push eax
call ebx
test eax, eax
je 0x1006bd4d
call eax
mov esi, eax
test esi, esi
je 0x1006bd4d
mov eax, dword [0x10619d64]
cmp eax, edi
je 0x1006bd4d
push eax
call ebx
test eax, eax
je 0x1006bd4d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10619d5c]
call ebx
test eax, eax
je 0x1006bd68
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1006bd6a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005b55e
mov esp, ebp
pop ebp
ret
Function at 0x401994
Capabilities:
Read file on windows
Read from mailslot

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], 0
cmp dword [esi + 0x50], 0xffffffff
je 0x401af7
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4019e9
push eax
call fcn.00401e00
test eax, eax
jne 0x4019e9
call fcn.00414a5b
test eax, eax
je 0x4019d9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov ecx, eax
call fcn.004010c0
pop edi
pop esi
pop ebx
add esp, 0x10
ret
xor eax, eax
mov ecx, eax
call fcn.004010c0
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov edx, dword [esi + 0x50]
mov ebx, dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
lea eax, [esp + 0x18]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push edx
call ebx
test eax, eax
je 0x401a72
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x401a72
cmp eax, 0x23c
ja 0x401a72
mov edx, dword [esi + 0x50]
lea ecx, [esp + 0x14]
push 0
push ecx
push eax
push 0x42d8d0
push edx
call edi
test eax, eax
je 0x401a72
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jne 0x401a72
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x42d8d0
mov ecx, esi
call fcn.00401b00
test eax, eax
je 0x401af7
mov ecx, dword [esi + 0x50]
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x10]
push edx
push eax
push 0
push ecx
call ebx
test eax, eax
jne 0x401a0d
mov eax, dword [esi + 0x60]
test eax, eax
jbe 0x401a9e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x60]
cmp eax, ecx
jb 0x401a8d
sub eax, ecx
cmp eax, 0x64
jb 0x401a9e
mov dword [esi + 0x60], 0
mov dword [esp + 0x10], 1
jmp 0x401aa6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401af7
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x401acc
call fcn.00414a5b
test eax, eax
je 0x401abf
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x401ac1
xor eax, eax
lea ecx, [esi + 0x54]
push ecx
mov ecx, eax
call fcn.004011e0
call fcn.00414a5b
test eax, eax
je 0x401ade
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x401ae0
xor eax, eax
mov eax, dword [eax + 0x1c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
mov ecx, esi
call fcn.00418dcd
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x40fc00
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.00404750
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40fccb
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 0x40fccb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40fc7e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40fc89
or bh, 8
and edi, 0x8000000
je 0x40fca4
mov eax, dword [0x43137c]
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 0x40fccb
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 0x4100a0
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 0x4100cb
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 0x4100ef
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 0x41010a
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 0x412183
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4121bb
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.00415564
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0041553c
jmp 0x4121c7
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x413c14
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 0x413c56
call fcn.0041f2c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x413c56
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x413c4d
xor eax, eax
jmp 0x413c5e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00413c64
pop edi
pop esi
pop ebx
ret 4

Function at 0x4171ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0041f2c9
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4171ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.00417212
pop edi
pop esi
pop ebx
ret 8
Function at 0x417504
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x421a50
call fcn.004037a8
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0041f2c9
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x417543
call fcn.0041f2c9
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x417551
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41755f
or eax, 0xffffffff
jmp 0x417647
mov ecx, esi
call fcn.0041747a
mov dword [ebp - 0x14], eax
call fcn.00411cd3
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x417596
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x417596
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00411c87
push dword [ebp - 0x14]
call fcn.004117b9
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00417212
cmp eax, edi
je 0x417609
test byte [esi + 0x24], 0x10
je 0x4175d7
push 4
mov ecx, esi
pop ebx
call fcn.00414348
test ah, 1
je 0x4175cf
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.00413d66
cmp dword [esi + 0x1c], edi
je 0x417609
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041442e
jmp 0x417609
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41761d
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x417636
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x417636
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.004174b4
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x41fdc8
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 0x41fdf6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41fe14
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041fd2e
jmp 0x41fe14
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41fe14
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041fd2e
test edi, edi
mov eax, edi
jne 0x41fdfe
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8