joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e41b
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp byte [0x43c9de], 0
mov eax, dword [ebp + 0xc]
mov dword [0x43c9e0], eax
mov eax, dword [ebp + 0x10]
mov dword [0x43c9e4], eax
mov eax, dword [ebp + 0x14]
mov dword [0x43c9d8], eax
je 0x40e44b
xor eax, eax
inc eax
jmp 0x40e474
cmp byte [0x43c9df], 0
je 0x40e459
push 2
pop eax
jmp 0x40e474
push dword [ebp + 8]
push 0x40db86
push dword [0x43c9f8]
push str.REPLACEFILEDLG
push dword [0x42e764]
call esi
dec eax
je 0x40e4c6
dec eax
je 0x40e4d8
dec eax
je 0x40e4bf
dec eax
jne 0x40e4a3
push dword [ebp + 8]
push 0x40d13a
push dword [0x43c9f8]
push str.RENAMEDLG
push dword [0x42e764]
call esi
test eax, eax
je 0x40e425
mov al, 0x52
jmp 0x40e4d3
dec eax
je 0x40e4b4
dec eax
mov al, 0x4e
jne 0x40e4d3
mov byte [0x43c9df], 1
jmp 0x40e4d3
mov byte [0x43c9ea], 1
mov al, 0x43
jmp 0x40e4d3
mov byte [0x43c9de], 1
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
pop esi
pop ebp
ret 0x10
mov al, 0x4e
jmp 0x40e4d3
Function at 0x410199
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x41036f
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret 4
Function at 0x410e12
Capabilities:
Create thread

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov esi, ecx
push 0x20
pop ecx
mov dword [esi], eax
cmp eax, ecx
jbe 0x410e27
mov dword [esi], ecx
xor edi, edi
xor ebx, ebx
inc edi
cmp dword [esi], ebx
jne 0x410e32
mov dword [esi], edi
cmp dword [esi], ecx
jbe 0x410e38
mov dword [esi], ecx
push ebx
push ecx
push ebx
push ebx
mov byte [esi + 0x190], bl
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push ebx
push edi
push edi
push ebx
mov dword [esi + 0x194], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x198], eax
lea eax, [esi + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp dword [esi + 0x194], ebx
je 0x410e7b
cmp dword [esi + 0x198], ebx
jne 0x410e96
push str._nThread_pool_initialization_failed.
mov edi, 0x42e76c
push edi
call fcn.004063f5
pop ecx
pop ecx
push 2
mov ecx, edi
call fcn.004064b1
mov dword [esp + 0x14], ebx
cmp dword [esi], ebx
jbe 0x410f0b
push ebp
lea ebp, [esi + 4]
lea eax, [esp + 0x10]
push eax
push ebx
push esi
push 0x410dcb
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, ebx
jne 0x410ee7
push str.CreateThread_failed
push 0x42e76c
call fcn.004063f5
pop ecx
pop ecx
mov ecx, 0x42e76c
call fcn.00401000
push 2
mov ecx, 0x42e76c
call fcn.004064b1
mov dword [ebp], edi
mov eax, dword [0x44a73c]
cmp eax, ebx
je 0x410efb
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add ebp, 4
cmp eax, dword [esi]
jb 0x410ea2
pop ebp
pop edi
mov dword [esi + 0x188], ebx
mov dword [esi + 0x18c], ebx
mov dword [esi + 0x84], ebx
mov eax, esi
pop esi
pop ebx
pop ecx
ret 4
Function at 0x417153
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x425e26
call fcn.00419bd4
push ecx
push ebx
push esi
mov esi, ecx
push 1
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esi
call fcn.004096b7
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
lea ecx, [esi + 0x4b38]
call fcn.00411bde
lea ecx, [esi + 0x98d0]
call fcn.004125cf
lea ecx, [esi + 0xe678]
mov byte [ebp - 4], 5
call fcn.0040a865
push 1
lea ecx, [esi + 0xe6b0]
mov byte [ebp - 4], 6
call fcn.004096b7
lea eax, [esi + 0xe6c0]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe6d0]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe6e0]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xa
mov dword [esi], eax
mov dword [esi + 0x4b34], ebx
mov byte [esi + 0x4c38], bl
mov byte [esi + 0x4c48], bl
mov byte [esi + 0x4c49], bl
mov byte [esi + 0x4c4a], bl
mov dword [esi + 0x1c], 1
call fcn.00410f26
push ebx
mov ecx, esi
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xe6f4], ebx
mov dword [esi + 0xe6f8], ebx
call fcn.004152a3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x418c63
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x418c95
cmp dword [ebp - 4], edi
jne 0x418cd6
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x418cd6
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x418c82
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x418c82
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x418d2c
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x4270e8
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x418d23
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x418d1a
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x4194ea
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.00419483
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x419551
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0xc], edi
jne 0x4195d3
cmp dword [ebp + 0xc], edi
je 0x4195f6
cmp dword [esi + 0x14], edi
jne 0x4195f6
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x4195f6
push eax
mov ecx, esi
call fcn.0041915e
mov esi, eax
cmp esi, edi
je 0x4195f6
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.00419bf3
pop ecx
jmp 0x4195f6
cmp eax, edi
je 0x4195e9
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x4195f6
mov ecx, esi
call fcn.00418e68
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x4195fd
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x4270d8
push 1
xor ebx, ebx
push ebx
push 0x427188
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4196ce
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x427178
push eax
call dword [ecx]
test eax, eax
jl 0x4196c5
cmp byte [ebp + 8], bl
je 0x419650
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x41966d
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x41967f
push 0x426554
jmp 0x419682
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x419697
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x4196a8
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x4196bc
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x4196e8
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x41de9b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b2a0]
jne 0x41dea5
repz ret
jmp fcn.00422aab
Function at 0x424355
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041df1c
and dword [ebp - 4], 0
cmp dword [0x44b370], 0
mov ebx, eax
jne 0x424406
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4244b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4244b7
push eax
call fcn.0041deaa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44b370], eax
call esi
push eax
call fcn.0041deaa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44b374], eax
call esi
push eax
call fcn.0041deaa
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44b378], eax
call esi
push eax
call fcn.0041deaa
pop ecx
mov dword [0x44b380], eax
test eax, eax
je 0x424406
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041deaa
pop ecx
mov dword [0x44b37c], eax
mov eax, dword [0x44b37c]
cmp eax, ebx
je 0x42445e
cmp dword [0x44b380], ebx
je 0x42445e
push eax
call fcn.0041df25
push dword [0x44b380]
mov esi, eax
call fcn.0041df25
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42445e
test edi, edi
je 0x42445e
call esi
test eax, eax
je 0x424455
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424455
test byte [ebp - 0xc], 1
jne 0x42445e
or dword [ebp + 0x10], 0x200000
jmp 0x424497
mov eax, dword [0x44b374]
cmp eax, ebx
je 0x424497
push eax
call fcn.0041df25
pop ecx
test eax, eax
je 0x424497
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x424497
mov eax, dword [0x44b378]
cmp eax, ebx
je 0x424497
push eax
call fcn.0041df25
pop ecx
test eax, eax
je 0x424497
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44b370]
call fcn.0041df25
pop ecx
test eax, eax
je 0x4244b7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4244b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401fe0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x100
lea eax, [esp]
push edi
push 0x100
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
pop edi
test ecx, ecx
jle 0x402022
mov al, 0x5c
cmp byte [esp + ecx], al
je 0x40201d
dec ecx
test ecx, ecx
jg 0x402010
jmp 0x402022
mov byte [esp + ecx], 0
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
xor eax, eax
add esp, 0x100
ret

Function at 0x4030a0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ecx
push esi
push edi
push 0
push 0
push 0
push 0
push 0x43a908
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
mov edi, eax
mov eax, dword [esp + 0x14]
push 0x4000000
push 0
push 0
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x40310a
mov edx, dword [esp + 0x18]
lea ecx, [esp + 8]
push ebx
mov ebx, dword [esp + 0x18]
push ecx
push edx
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [esp + 0xc]
push edi
mov byte [eax + ebx], 0
call esi
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
xor eax, eax
pop esi
pop ecx
ret

Function at 0x403a00
Capabilities:
Copy file

Disassembly:
sub esp, 0x200
mov eax, dword [0x445d5c]
push edi
push eax
lea ecx, [esp + 0x108]
push str.serverlist._d
push ecx
call fcn.004124ef
mov eax, dword [0x43aa20]
mov edx, dword [str.serverlist.bin]
mov ecx, dword [0x43aa24]
mov dword [esp + 0x14], eax
mov al, byte [0x43aa2a]
mov dword [esp + 0x10], edx
mov dx, word [0x43aa28]
mov dword [esp + 0x18], ecx
mov byte [esp + 0x1e], al
mov ecx, 0x3c
xor eax, eax
lea edi, [esp + 0x1f]
mov word [esp + 0x1c], dx
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
push 0
lea edx, [esp + 0x108]
push ecx
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
add esp, 0x200
ret

Function at 0x404440
Capabilities:
Create directory

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push edi
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
mov dword [esp + 0x30], ecx
jle 0x4044a1
push esi
cmp byte [ebx + ebp], 0x2f
jne 0x40449b
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x10]
mov esi, ebp
rep stosd dword es:[edi], eax
mov ecx, ebx
lea edi, [esp + 0x10]
mov eax, ecx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x34]
inc ebx
cmp ebx, ecx
jl 0x404461
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x406080
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40608f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x43ac7c]
test eax, eax
je 0x40609d
call fcn.00406020
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x40619f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x446698]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x446698]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x446698]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x446698]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x446698]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x446698]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x446698]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x446698]
xor eax, ecx
inc esi
dec edi
jne 0x4060b7
pop edi
test edx, edx
je 0x4061c1
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x446698]
xor eax, ecx
inc esi
dec edx
jne 0x4061a3
pop ebx
pop esi
not eax
ret 0xc
Function at 0x420e10
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.004124c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x420edb
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 0x420edb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x420e8e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x420e99
or bh, 8
and edi, 0x8000000
je 0x420eb4
mov eax, dword [0x44a2bc]
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 0x420edb
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 0x4212b0
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 0x4212db
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 0x4212ff
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 0x42131a
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