joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431e80
Capabilities:
Terminate thread

Disassembly:
push esi
xor esi, esi
mov byte [0x4db6cd], 1
cmp dword [0x4db6a0], esi
jle 0x431eb5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
lea esp, [esp]
push 0
push dword [esi*4 + 0x4db5d0]
call edi
inc esi
cmp esi, dword [0x4db6a0]
jl 0x431ea0
pop edi
mov al, 1
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3738
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d77ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push ecx
mov dword [ebp - 4], 0
mov esi, esp
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00425f20
add eax, 0x10
mov dword [esi], eax
call fcn.00433e30
mov esi, eax
add esp, 4
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x433700
push 0
sub ecx, edx
push ecx
push esi
push edi
call dword [sym.imp.WS2_32.dll_send]
push esi
cmp eax, 0xffffffff
jne 0x43372d
call fcn.00494b53
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
xor esi, esi
jmp 0x43373a
call fcn.00494b53
add esp, 4
mov esi, 1
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43375e
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
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

Function at 0x4337b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x433829
push dword [ebp + 8]
mov eax, 2
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
je 0x433822
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.004985a0
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x43382c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or esi, 0xffffffff
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x433849
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00493864
mov esp, ebp
pop ebp
ret 8
Function at 0x4338c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [0x4db698], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4338e8
test al, 0x10
jne 0x4338e8
push 0x4c1e34
jmp 0x4338ed
push 0x4c1e3c
push esi
call fcn.00495e19
add esp, 8
mov dword [0x4db698], eax
inc dword [0x4db69c]
pop esi
pop ebp
ret 4

Function at 0x433910
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3770
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 0
push 0
mov dword [ebp - 4], 1
xor bl, bl
push str.RookIE_1.0
mov dword [ebp - 0x414], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x433a35
push 0
push 0x4000000
push 0
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov edi, eax
test edi, edi
je 0x433a29
push ecx
mov ecx, dword [ebp + 0xc]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00425f20
add eax, 0x10
mov dword [esi], eax
call fcn.00433e30
push 0x4c164c
push eax
mov dword [ebp - 0x418], eax
call fcn.00496d22
mov esi, eax
add esp, 0xc
test esi, esi
je 0x433a14
cmp dword [ebp - 0x414], 0
jbe 0x433a09
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x414]
push eax
push 0x3ff
lea eax, [ebp - 0x410]
push eax
push edi
call ebx
push esi
push dword [ebp - 0x414]
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.0049645f
add esp, 0x10
cmp dword [ebp - 0x414], 0
ja 0x4339d2
push esi
call fcn.004968d5
add esp, 4
mov bl, 1
push dword [ebp - 0x418]
call fcn.00494b53
add esp, 4
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x41c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x433a58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x433a79
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret
Function at 0x433aa0
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b37b0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4d77ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], ecx
push 0
push 0
push 0
push 1
push str.GetContent
mov dword [ebp - 4], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
push 0
test esi, esi
jne 0x433aff
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x433bb9
push 0
push 0
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov ebx, eax
test ebx, ebx
jne 0x433b28
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
xor bl, bl
jmp 0x433bb9
push edi
call fcn.00492db5
push dword [ebp - 0x10]
mov edi, eax
mov dword [ebp - 0x14], 0
push 0
push edi
call fcn.0049c630
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push edi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
jne 0x433b71
call esi
push ebx
call esi
push edi
call fcn.00494b53
add esp, 4
xor bl, bl
jmp 0x433bb9
call esi
push ebx
call esi
mov edx, edi
lea ecx, [ebp - 0x10]
call fcn.00433e00
mov ecx, dword [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00425a50
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x433bae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push edi
call fcn.00494b53
add esp, 4
mov bl, 1
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x433bdd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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 0x43f890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4225
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d77ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x78]
mov word [esi], 0x101
xorps xmm0, xmm0
mov dword [esi + 4], 0
lea eax, [ecx + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
xor edx, edx
mov dword [esi + 0x10], 5
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 5
mov dword [esi + 0x1c], 1
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0x10
mov dword [esi + 0x2c], 0x19
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], 0x3c
mov dword [esi + 0x3c], 0x16
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
movsd qword [esi + 0x50], xmm0
mov dword [esi + 0x58], 2
mov dword [esi + 0x5c], 2
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0xff000000
mov dword [ecx], eax
mov word [eax], dx
mov dword [ebp - 4], edx
mov dword [esi + 0xfc], edx
mov dword [esi + 0x100], edx
mov dword [esi + 0x104], 4
mov dword [esi + 0x108], edx
mov dword [esi + 0x10c], edx
mov dword [esi + 0x110], edx
mov dword [esi + 0x114], 4
mov dword [esi + 0x118], edx
mov dword [esi + 0x11c], edx
mov dword [esi + 0x120], edx
mov dword [esi + 0x124], 0x84
mov dword [esi + 0x128], edx
mov dword [esi + 0x12c], edx
push 0xffffffffffffffff
push str.Legend
mov byte [ebp - 4], 3
call fcn.0048cce0
mov edx, dword [esi + 0x18]
cmp dword [esi + 0x10], edx
mov ecx, dword [esi + 0x14]
cmovg edx, dword [esi + 0x10]
cmp dword [esi + 0xc], ecx
push dword [esi + 0x1c]
cmovl ecx, dword [esi + 0xc]
push edx
push ecx
mov ecx, esi
mov dword [esi + 0x68], 5
mov dword [esi + 0x6c], 5
mov dword [esi + 0x70], 5
mov dword [esi + 0x74], 5
call fcn.0043fa30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x444330
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
test ax, ax
mov ecx, 8
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x444355
or esi, 1
push 1
call edi
test ax, ax
jns 0x444361
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x44436d
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x444379
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret

Function at 0x444620
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x98], eax
push esi
push edi
mov dword [ebx + 0x10], eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004447d0
mov ecx, dword [ebx + 0x10]
mov eax, 0x400000a0
mov edi, 0x40000080
cmp byte [ecx + 0x7ed], 0
cmovne edi, eax
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov esi, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa8]
push ecx
mov ecx, dword [ebp - 0x9c]
sub ecx, esi
push ecx
mov ecx, dword [ebp - 0xa0]
sub ecx, edx
push ecx
push esi
push edx
push 0
push edi
push 0
push dword [eax]
mov ecx, ebx
call fcn.004635b0
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push dword [ecx + 0x658]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00476250
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push dword [eax]
push 0x30
push dword [ebx + 4]
call esi
mov eax, dword [ebx + 0x10]
push 0
push dword [eax + 0x7e8]
push 0xc5
push dword [ebx + 4]
call esi
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0x7ed], 0
je 0x4446f6
movzx eax, word [eax + 0x7f0]
push 0
push eax
push 0xcc
push dword [ebx + 4]
call esi
mov ecx, dword [ebx + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x28]
push dword [eax]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x90]
cmp eax, ecx
je 0x444729
push eax
call fcn.00493921
add esp, 4
push 0
push 0
push 0xb9
push dword [ebx + 4]
call esi
push 0
push 3
push 0xd3
push dword [ebx + 4]
call esi
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0xcc]
call eax
xor ecx, ecx
cmp al, 1
sete cl
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [ebx + 0x10]
xor ecx, ecx
push 0
cmp byte [eax + 0x7ec], 1
sete cl
push ecx
push 0xcf
push dword [ebx + 4]
call esi
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [ebp - 0x98]
mov ecx, dword [ecx + 0xca4]
or ecx, eax
push ecx
push 0xfffffffffffffff0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov byte [ebx + 0x18], 1
xor ecx, ebp
pop ebx
call fcn.00493864
mov esp, ebp
pop ebp
ret 4
Function at 0x444f20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4d77ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x10], 0
je 0x444f8a
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004a67d0
mov ebx, esp
test ebx, ebx
je 0x444f8a
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push 0xffffffffffffffff
add ecx, 0x368
push ebx
call fcn.0048cce0
mov ecx, dword [esi + 0x10]
push 0
push 0
push 0
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.00475960
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00493864
mov esp, ebp
pop ebp
ret

Function at 0x4472d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b46ae
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4d77ac]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.00447580
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
lea ecx, [edi + 0x24]
push eax
push 0
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00447580
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x4473f8
test dl, 0x10
jne 0x4473f8
mov eax, 1
jmp 0x4473fa
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.00447490
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x45a360
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x684], 0
je 0x45a3d0
cmp dword [ebp + 8], 0x100
jne 0x45a3c0
cmp word [ebp + 0xc], 0xd
jne 0x45a3c0
cmp byte [esi + 0x68a], 0
je 0x45a39e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x45a3c0
cmp byte [esi + 0x68b], 0
jne 0x45a3c0
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x45a3b9
push 0
push 0
push 0
push str.return
push esi
call fcn.00475960
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x684]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x467a20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
mov edx, ecx
mov byte [edx + 0x2bd], al
test al, al
jne 0x467a51
mov ecx, dword [edx + 0x164]
test ecx, ecx
je 0x467a51
cmp dword [ecx + 0x428], edx
jne 0x467a51
mov dword [ebp + 8], 0
pop ebp
jmp fcn.00474ea0
pop ebp
ret 4

Function at 0x46d8f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [ebp + 8]
mov edx, eax
push ebx
push esi
shr edx, 0x10
mov esi, ecx
push edi
test edx, edx
je 0x46d941
cmp word [eax], 0x3c
jne 0x46d927
push eax
call fcn.00477eb0
test al, al
jne 0x46d9da
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push ecx
push eax
call fcn.00478020
test al, al
jne 0x46d9da
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [0x4dc104]
test ecx, ecx
mov ebx, dword [ebp + 0xc]
cmove ecx, dword [0x4dc108]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x46d91c
mov eax, dword [0x4dc104]
test eax, eax
push edi
cmove eax, dword [0x4dc108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x46d992
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x140], eax
mov eax, dword [0x4dc104]
test eax, eax
push ecx
cmove eax, dword [0x4dc108]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, esi
call fcn.00477f60
test al, al
je 0x46d91c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov dword [esi + 0x144], ebx
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0046da10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4723d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x530], edi
jle 0x47241f
jmp 0x4723f0
mov eax, dword [esi + 0x52c]
lea edx, [ebp + 0xb]
mov byte [ebp + 0xb], 0
push edx
push dword [ebp + 0x10]
mov ecx, dword [eax + edi*4]
push dword [ebp + 0xc]
push ebx
mov eax, dword [ecx]
call dword [eax]
cmp byte [ebp + 0xb], 0
jne 0x47256e
inc edi
cmp edi, dword [esi + 0x530]
jl 0x4723f0
sub ebx, 0x100
je 0x4724f7
sub ebx, 4
je 0x47248b
sub ebx, 2
jne 0x4724ec
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.00495b10
mov ecx, dword [esi + 0x424]
lea edx, [ebp + 8]
add esp, 4
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x8000000a
push edx
push 0x4767f0
call dword [eax + 0x118]
mov esi, eax
test esi, esi
je 0x4724ec
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esi + 0x428], 0
je 0x4724ec
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
movq qword [ebp - 0xc], xmm0
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x438]
movdqu xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x43c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.00444330
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x428]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x4724ec
mov ecx, dword [esi + 0x428]
test ecx, ecx
je 0x472555
mov eax, dword [ecx]
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x472555
mov ecx, dword [esi + 0x428]
mov eax, dword [ecx]
mov eax, dword [eax + 0xcc]
call eax
test al, al
je 0x472555
mov ecx, dword [esi + 0x428]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.00495401
add esp, 8
test eax, eax
je 0x472555
mov eax, dword [esi + 0x428]
cmp byte [eax + 0x689], 0
jne 0x4724ec
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.004753e0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x474ea0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x474ecb
cmp esi, dword [edi + 0x428]
je 0x474ecb
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x428]
cmp esi, eax
je 0x474fd0
test eax, eax
je 0x474f3f
xorps xmm0, xmm0
mov dword [esp + 0x24], 0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 8], 0x14
movq qword [esp + 0x1c], xmm0
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x428]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
push 0
push 0
push 0
push str.killfocus
push dword [edi + 0x428]
mov ecx, edi
call fcn.00475960
mov dword [edi + 0x428], 0
test esi, esi
je 0x474fd0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x474fd0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc0]
call eax
test al, al
je 0x474fd0
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xcc]
call eax
test al, al
je 0x474fd0
xorps xmm0, xmm0
mov dword [edi + 0x428], esi
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x24], 0
movq qword [esp + 0x1c], xmm0
mov dword [esp + 8], 0x15
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x428]
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x124]
push 0
push 0
push 0
push str.setfocus
push dword [edi + 0x428]
mov ecx, edi
call fcn.00475960
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x487040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x487063
cmp eax, edi
jge 0x48705b
call fcn.00486880
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov ecx, dword [esi + 8]
xor edi, edi
test ecx, ecx
jle 0x487088
mov edx, dword [esi + 0xc]
nop
mov al, byte [esi + 0xc]
sub ecx, 8
mov byte [ebp + edi - 4], al
inc edi
shr edx, 8
mov dword [esi + 0xc], edx
test ecx, ecx
jg 0x487070
mov dword [esi + 8], ecx
cmp dword [esi + 8], 0
je 0x4870a5
push 0x8af
push str.UiLibUtils_stb_image.c
push str.a__num_bits__0
call fcn.00497b3a
add esp, 0xc
cmp edi, 4
jge 0x4870cc
mov edx, dword [esi + 4]
lea ecx, [ecx]
mov eax, dword [esi]
cmp eax, edx
jb 0x4870ba
xor eax, eax
jmp 0x4870c2
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
mov byte [ebp + edi - 4], al
inc edi
cmp edi, 4
jl 0x4870b0
mov eax, dword [ebp - 4]
movzx ecx, byte [ebp - 1]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp - 2]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x487104
mov dword [0x4e1f30], str.zlib_corrupt
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x48711f
pop edi
mov dword [0x4e1f30], 0x4cb59c
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x487136
mov edx, edi
mov ecx, esi
call fcn.004868e0
test eax, eax
je 0x4870fc
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004985a0
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret