joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4939b9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5363f4
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x590700]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x590700]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0xa0]
lea edi, [eax + 8]
mov esi, dword [esp + 0x9c]
xor bh, bh
mov ebp, dword [esp + 0xa4]
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
xor eax, eax
push 7
mov dword [esp + 0x98], edx
pop ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], edx
mov word [esp + 0x3c], ax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov word [esp + 0x24], ax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], edx
mov word [esp + 0x54], ax
push esi
lea ecx, [esp + 0x70]
mov byte [esp + 0x98], 3
call fcn.00450db2
lea eax, [esp + 0x54]
mov byte [esp + 0x94], 4
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.00492d54
xor esi, esi
mov byte [esp + 0x94], 3
push esi
push 1
lea ecx, [esp + 0x74]
mov bl, al
call fcn.004510e8
test bl, bl
je 0x493b4c
lea edx, [esp + 0x24]
lea ecx, [esp + 0x6c]
call fcn.004820e3
mov ecx, dword [esp + 0x18]
push eax
call fcn.0044d9c5
push esi
push 1
lea ecx, [esp + 0x74]
call fcn.0044ea67
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call fcn.004950b6
mov ecx, ebx
mov esi, dword [eax]
lea eax, [esp + 0x24]
push eax
mov esi, dword [esi]
mov dword [esp + 0x1c], esi
call fcn.004950b6
jmp 0x493b40
cmp dword [ebp + 0x10], 0
je 0x493b0c
push 0x572860
call fcn.0044ea21
pop ecx
push eax
push 0x572860
mov ecx, ebp
call fcn.0044e538
push dword [esi + 0x10]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov esi, eax
push esi
call fcn.0044ea21
pop ecx
push eax
push esi
mov ecx, ebp
call fcn.0044e538
lea ecx, [esp + 0x18]
call fcn.0044dddf
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.004950b6
mov esi, dword [esp + 0x18]
cmp dword [eax], esi
jne 0x493aee
xor esi, esi
cmp dword [ebp + 0x10], esi
setne bh
push esi
push 1
lea ecx, [esp + 0x5c]
call fcn.004510e8
push esi
push 1
lea ecx, [esp + 0x2c]
call fcn.004510e8
push esi
push 1
lea ecx, [esp + 0x44]
call fcn.004510e8
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bh
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.00503ade
add esp, 0x84
ret 0xc
Function at 0x494170
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp dword [0x59735c], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, ecx
je 0x4941b8
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call edi
push eax
push str._INFO___d___download:_start_pos__I64d___will_download__I64d___downloaed__I64d_
push 3
push dword [0x59735c]
call fcn.00481614
add esp, 0x28
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
jne 0x4941ce
mov byte [esi + 0xfb], 1
mov al, 1
jmp 0x4942b7
push dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov ecx, esi
push dword [ebp + 0x10]
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], ebx
call fcn.00494caf
cmp dword [esi + 0x84], 0
jl 0x49422e
jg 0x4941fe
cmp dword [esi + 0x80], 0
jbe 0x49422e
mov eax, dword [esi + 0x84]
mov ecx, esi
mov ebx, dword [esi + 0x80]
mov dword [esp + 0x10], eax
call fcn.00494cf5
mov ecx, eax
mov eax, dword [esp + 0x10]
cmp edx, eax
jl 0x49422e
jg 0x494225
cmp ecx, ebx
jbe 0x49422e
push eax
push ebx
mov ecx, esi
call fcn.00494caf
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [esi + 0xd0], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0xd4], eax
lea eax, [esp + 0x14]
push eax
push ecx
push esi
push 0x494013
push 0x800000
push ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x70], eax
test eax, eax
je 0x494294
cmp eax, 0xffffffff
je 0x494294
cmp dword [0x59735c], 0
je 0x4941c7
call edi
push eax
push str._INFO___d___create_download_thread_success.
push 3
push dword [0x59735c]
call fcn.00481614
add esp, 0x10
jmp 0x4941c7
cmp dword [0x59735c], 0
je 0x4942b5
call edi
push eax
push str._ERROR___d___create_download_thread_failed_
push 1
push dword [0x59735c]
call fcn.00481614
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x49491e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x49498a
mov edi, dword [ebp + 0xc]
test edi, edi
js 0x49498a
and dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push 0
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x49498a
mov ebx, dword [esi + 0xd4]
mov eax, edi
mov edi, dword [esi + 0xd0]
mov ecx, dword [esi + 0x64]
cdq
add edi, eax
mov dword [esi + 0xd0], edi
adc ebx, edx
mov dword [esi + 0xd4], ebx
test ecx, ecx
je 0x494984
push dword [esi + 0x68]
push edx
push eax
push ebx
push edi
push dword [esi + 8]
call ecx
add esp, 0x18
mov eax, edi
mov edx, ebx
jmp 0x49498f
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x499045
Capabilities:
Terminate process

Disassembly:
push 0x364
mov eax, 0x536bae
call fcn.00508cc4
mov edi, ecx
call fcn.004c7ad9
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
push eax
push str._INFO___d___OnCreate_1
push 3
push dword [0x595c04]
call fcn.004c7d93
add esp, 0x10
mov ecx, edi
push 0xfffffffffffffff0
call fcn.004d020e
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
mov ecx, edi
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
call fcn.004d020e
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [edi]
lea ebx, [edi + 0x30]
mov ecx, edi
call dword [eax + 0x30]
push eax
push dword [edi + 4]
mov ecx, ebx
call fcn.0049b781
lea eax, [edi + 0x24]
mov ecx, ebx
push eax
call fcn.0049ac70
lea ecx, [ebp - 0x36c]
call fcn.004c8e28
mov eax, dword [edi]
lea ecx, [ebp - 0x118]
and dword [ebp - 4], 0
push ecx
mov ecx, edi
call dword [eax + 0x28]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.00498322
test al, al
jne 0x499161
call esi
push eax
push str._INFO___d___OnCreate_2
push 3
push dword [0x595c04]
call fcn.004c7d93
mov eax, dword [edi]
lea ecx, [ebp - 0x94]
add esp, 0x10
push ecx
mov ecx, edi
call dword [eax + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0049816d
push eax
call fcn.0050750f
pop ecx
lea ecx, [ebp - 0x94]
movzx esi, ax
mov byte [ebp - 4], 1
call fcn.00497b76
push 0
lea eax, [edi + 0x28]
push ebx
push eax
lea ecx, [ebp - 0x118]
call fcn.0049816d
push eax
push esi
lea ecx, [ebp - 0x36c]
call fcn.004c9e4e
mov esi, eax
jmp 0x4991bc
call esi
push eax
push str._INFO___d___OnCreate_3
push 3
push dword [0x595c04]
call fcn.004c7d93
mov eax, dword [edi]
lea ecx, [ebp - 0x19c]
add esp, 0x10
lea esi, [edi + 0x28]
push ecx
mov ecx, edi
call dword [eax + 0x2c]
push 0
push ebx
push esi
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0049816d
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x36c]
call fcn.004c9e4e
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
mov esi, eax
call fcn.00497b76
test esi, esi
jne 0x499225
push 0xffffffffffffffff
push 0x53bb7c
lea ecx, [ebp - 0x94]
call fcn.00497a73
mov eax, dword [edi]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.00497cab
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.00497b76
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.0049816d
push eax
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov ecx, ebx
call fcn.0049ad06
lea eax, [edi + 0x20]
mov ecx, ebx
push eax
call fcn.0049abb6
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.00497b76
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x36c]
call fcn.004c7fb9
xor eax, eax
call fcn.00508c73
ret 0x10
Function at 0x49baa0
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
push 8
pop ecx
test ax, ax
push 1
cmovs esi, ecx
call edi
test ax, ax
jns 0x49bac3
or esi, 1
push 2
call edi
test ax, ax
jns 0x49bacf
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x49badb
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x49bae7
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x49ee8b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x4a8]
call fcn.004d020e
mov edi, dword [ebp + 8]
test eax, eax
jle 0x49eee1
push ebx
lea ecx, [esi + 0x4a8]
mov byte [ebp + 0xb], 0
call fcn.00497c5b
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x49ef3f
lea ecx, [esi + 0x4a8]
inc ebx
call fcn.004d020e
cmp ebx, eax
jl 0x49eeaa
sub edi, 0x100
je 0x49efa5
sub edi, 4
je 0x49ef43
dec edi
dec edi
jne 0x49ef9a
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.00509333
pop ecx
mov ecx, dword [esi + 0x104]
lea edx, [ebp + 8]
push reloc.WS2_32.dll_select
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x4a07ae
call dword [eax + 0x134]
mov esi, eax
test esi, esi
je 0x49ef9a
mov edx, dword [esi]
mov ecx, esi
call dword [edx + pe_nt_image_headers32]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x49ef9c
cmp dword [esi + 0x108], 0
je 0x49ef9a
xor eax, eax
lea edi, [ebp - 0x1c]
push 7
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x11c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x120]
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.0049baa0
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x49ef9a
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x49effe
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x49effe
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x49effe
mov ecx, dword [esi + 0x108]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.00504aee
pop ecx
pop ecx
test eax, eax
je 0x49effe
mov ecx, dword [esi + 0x108]
call fcn.004b7115
test al, al
jne 0x49ef9a
mov ecx, dword [esi + 0x108]
test ecx, ecx
je 0x49f046
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x49f046
mov ecx, dword [esi + 0x108]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x49f046
mov ecx, dword [esi + 0x108]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.00504aee
pop ecx
pop ecx
test eax, eax
jne 0x49ef9a
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.004a004b
jmp 0x49ef3f
Function at 0x49fcd6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [ebx + 0xa8]
mov esi, dword [ebp + 8]
cmp eax, ecx
je 0x49fd02
cmp esi, dword [ebx + 0x108]
je 0x49fd02
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x108]
cmp esi, eax
je 0x49fdd9
push edi
test eax, eax
je 0x49fd61
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x17
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x108]
call fcn.0049f923
mov dword [ebx + 0x108], edi
test esi, esi
je 0x49fdd8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x49fdd8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x49fdd8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10c]
test al, al
je 0x49fdd8
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x108], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x108]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x140]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x108]
call fcn.0049f923
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a1187
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4a11b9
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x4b283b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x4b285f
cmp dword [esi + 8], edi
jge 0x4b2857
push esi
call fcn.004add90
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4b2885
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4b286b
mov dword [esi + 8], edx
jmp 0x4b289a
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x4b2890
xor dl, dl
jmp 0x4b2895
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x4b2885
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4b28d2
push str.zlib_corrupt
call fcn.004adcb3
pop ecx
jmp 0x4b2912
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4b28e2
push str.read_past_buffer
jmp 0x4b28ca
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4b28fc
push edi
push ecx
push esi
call fcn.004b5b8e
add esp, 0xc
test eax, eax
je 0x4b2912
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00508000
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x4b8dbf
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x69c], edi
je 0x4b8e29
cmp dword [ebp + 8], 0x100
jne 0x4b8e18
cmp word [ebp + 0xc], 0xd
jne 0x4b8e18
cmp byte [esi + 0x6a2], 0
je 0x4b8dff
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4b8e18
cmp byte [esi + 0x6a3], 0
jne 0x4b8e18
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4b8e14
push edi
push edi
push edi
push str.return
push esi
call fcn.0049f923
xor eax, eax
jmp 0x4b8e2c
mov eax, dword [esi + 0x69c]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x4b9fdc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x590700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0x214], esi
push edi
test cx, cx
je 0x4ba030
add esi, 0x28
cmp word [eax], 0x3c
mov ecx, esi
jne 0x4ba026
push eax
call fcn.004c81db
test al, al
jne 0x4ba08d
xor eax, eax
jmp 0x4ba0b7
push 0
push eax
call fcn.004c8226
jmp 0x4ba01b
push edx
push eax
call fcn.0049b6ef
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4ba01f
push edi
call fcn.0049b6ef
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4ba060
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4ba01f
push 0
push edi
add esi, 0x28
call fcn.0049b6ef
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov ecx, esi
call fcn.004c8521
test al, al
je 0x4ba01f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.004c8132
sub esp, 0x20c
mov esi, eax
mov edi, esp
mov ecx, 0x83
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x214]
call fcn.004b9cf0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00503ade
mov esp, ebp
pop ebp
ret 8
Function at 0x4bdd26
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.004bda5f
Function at 0x4c50b6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x590700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4c513e
cmp dword [esi + 0x10], 0
je 0x4c513e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00509160
mov ebx, esp
test ebx, ebx
je 0x4c513e
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1cc
call fcn.00497c0e
mov ecx, dword [esi + 0x10]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push 0x53d438
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049f923
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0049b97f
test al, al
je 0x4c513e
mov ecx, dword [esi + 0x10]
call fcn.004a2131
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00503ade
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4c7609
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x538253
call fcn.00508c91
mov esi, ecx
lea eax, [esi + 0xc]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], bl
call fcn.004819d8
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push ebx
push ebx
call fcn.005067d6
add esp, 0x18
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4c7653
lea eax, [ebp + 0xc]
mov ecx, esi
push eax
call fcn.00481a71
mov bl, 1
cmp byte [ebp - 0x10], 0
je 0x4c7664
mov ecx, dword [ebp - 0x14]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, bl
call fcn.00508c5f
ret 8

Function at 0x4c7ad9
Capabilities:
Get common file path

Disassembly:
push 0x23c
mov eax, 0x5383ab
call fcn.00508cc4
lea eax, [ebp - 0x218]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
je 0x4c7b17
push 0x53bde8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
mov dword [ebp - 0x21c], 7
xor ebx, ebx
mov word [ebp - 0x230], ax
mov dword [ebp - 0x220], ebx
cmp word [ebp - 0x218], ax
je 0x4c7b48
lea eax, [ebp - 0x218]
push eax
call fcn.005088a6
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00450d21
mov esi, 0x54093c
mov dword [ebp - 4], ebx
push esi
call fcn.005088a6
pop ecx
push eax
push esi
lea ecx, [ebp - 0x230]
call fcn.0045437e
mov eax, dword [0x595c90]
mov esi, 0x595c28
test al, 1
jne 0x4c7bcf
or eax, 1
mov dword [0x595c90], eax
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004c7ed5
pop ecx
pop ecx
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004c766e
push ebx
push 1
lea ecx, [ebp - 0x248]
call fcn.0044ea67
push 0x53a977
call fcn.00504ad9
pop ecx
mov byte [ebp - 4], bl
mov ecx, esi
mov dword [0x595c04], esi
call fcn.004c7e40
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.004510e8
xor eax, eax
call fcn.00508c73
ret
Function at 0x4ca6b5
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x590700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4ca6e9
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ca6e9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4ca79b
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x4ca706
cmp ax, 0x5c
jne 0x4ca708
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4ca6fa
cmp esi, ebx
je 0x4ca74e
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.00508000
add esp, 0xc
cmp esi, 0x208
jae 0x4ca7ab
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.004ca6b5
pop ecx
pop ecx
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x4ca76b
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0050879a
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0050876b
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4ca79b
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00503ade
mov esp, ebp
pop ebp
ret
call fcn.00505d93
int3

Function at 0x4cadd1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4cae7d
cmp dword [esi + 4], 0xffffffff
jne 0x4cae7d
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.005088a6
pop ecx
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x4cae24
cmp eax, 0x2f
je 0x4cae24
push 0x53bde8
push edi
call fcn.0050876b
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x4cae46
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4cae46
mov eax, 0x2000000
jmp 0x4cae82
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004cd4f5
add esp, 0x10
test eax, eax
jne 0x4cae64
mov eax, dword [ebp - 4]
jmp 0x4cae82
push eax
call fcn.004cdbc7
pop ecx
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x4cae82
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc