joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43631e
Capabilities:
Resolve dns

Disassembly:
push 0x58
mov eax, 0x5060f8
call fcn.004da051
mov eax, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ebx
test ebx, ebx
jne 0x436340
xor al, al
jmp 0x43649f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x436355
and dword [ebp - 0x54], 0
jmp 0x43636d
lea edi, [eax + eax]
mov eax, edi
call fcn.004d98f0
mov esi, esp
push 3
push edi
push ebx
call fcn.0042f79e
mov dword [ebp - 0x54], eax
push dword [ebp - 0x54]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x43640d
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00404466
mov ecx, dword [ebp - 0x4c]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.0043824e
mov edi, eax
call fcn.0043583d
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040476f
mov ebx, dword [esi + 0xc]
cmp dword [ebx], 0
je 0x43640d
and dword [ebp - 0x58], 0
push dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
call fcn.00404466
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 4], 1
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0043824e
mov esi, eax
lea edi, [ebp - 0x5c]
call fcn.0043896f
push eax
push esi
lea esi, [ebp - 0x64]
call fcn.00435d9a
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040476f
add ebx, 4
cmp dword [ebx], 0
jne 0x4363bc
xor edi, edi
cmp dword [0x550334], edi
je 0x43646e
push dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
call fcn.00404466
mov esi, dword [ebp - 0x54]
mov dword [ebp - 4], 2
cmp esi, edi
jne 0x436435
mov esi, 0x52c7e3
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
push eax
call fcn.0043824e
push dword [eax + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___query_host__s___ip_count__d_
call fcn.00427dfb
or dword [ebp - 4], 0xffffffff
add esp, 0x10
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040476f
push dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
call fcn.00404466
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 3
call fcn.0043824e
mov esi, dword [eax + 8]
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040476f
cmp esi, edi
setne al
lea esp, [ebp - 0x74]
call fcn.004da0d4
ret 4
Function at 0x4374f6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [0x550334], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
je 0x437539
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___download:_start_pos__I64d___will_download__I64d___downloaed__I64d_
call fcn.00427dfb
add esp, 0x20
mov eax, dword [ebp + 0x10]
or eax, dword [ebp + 0x14]
jne 0x43754f
mov byte [esi + 0x112], 1
mov al, 1
jmp 0x437620
push dword [ebp + 0x14]
mov dword [esi + 0x88], ebx
push dword [ebp + 0x10]
mov dword [esi + 0x8c], edi
call fcn.00437eb7
xor edi, edi
cmp dword [esi + 0x84], edi
jl 0x4375a0
jg 0x43757a
cmp dword [esi + 0x80], edi
jbe 0x4375a0
mov ebx, dword [esi + 0x80]
mov edi, dword [esi + 0x84]
mov eax, esi
call fcn.00437efb
cmp edx, edi
jl 0x43759e
jg 0x437597
cmp eax, ebx
jbe 0x43759e
push edi
push ebx
call fcn.00437eb7
xor edi, edi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.00437e3a
lea eax, [esp + 0xc]
push eax
push edi
push esi
push 0x4373a7
push 0x800000
push edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x74], eax
cmp eax, edi
je 0x4375fd
cmp eax, 0xffffffff
je 0x4375fd
cmp dword [0x550334], edi
je 0x437548
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___create_download_thread_success.
call fcn.00427dfb
pop ecx
pop ecx
jmp 0x437548
cmp dword [0x550334], edi
je 0x43761e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___create_download_thread_failed_
call fcn.00427dfb
pop ecx
pop ecx
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x437c41
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, eax
xor eax, eax
push edi
cmp dword [ebp + 8], eax
je 0x437cb5
cmp dword [ebp + 0xc], eax
jl 0x437cb5
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x437cb5
mov eax, dword [ebp + 0xc]
cdq
mov dword [ebp - 0x10], eax
mov eax, esi
mov dword [ebp - 0xc], edx
call fcn.00437e67
mov edi, eax
add edi, dword [ebp - 0x10]
mov ebx, edx
adc ebx, dword [ebp - 0xc]
push ebx
push edi
call fcn.00437e3a
mov eax, dword [esi + 0x68]
test eax, eax
je 0x437caf
push dword [esi + 0x6c]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
push edi
push dword [esi + 8]
call eax
add esp, 0x18
mov eax, edi
mov edx, ebx
jmp 0x437cba
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43b6a8
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
xor edi, edi
call esi
test ax, ax
jns 0x43b6be
push 8
pop edi
push 1
call esi
test ax, ax
jns 0x43b6ca
or edi, 1
push 2
call esi
test ax, ax
jns 0x43b6d6
or edi, 2
push 0x10
call esi
test ax, ax
jns 0x43b6e2
or edi, 4
push 0x12
call esi
test ax, ax
jns 0x43b6ee
or edi, 0x20
mov eax, edi
pop edi
pop esi
ret
Function at 0x43f6ea
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi + 0xac]
mov ebx, dword [ebp + 8]
cmp eax, ecx
je 0x43f716
cmp ebx, dword [esi + 0x10c]
je 0x43f716
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esi + 0x10c]
cmp ebx, eax
je 0x43f7ed
push edi
test eax, eax
je 0x43f775
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], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x10c]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
xor edi, edi
push edi
push edi
push edi
push str.killfocus
push dword [esi + 0x10c]
mov ecx, esi
call fcn.0043f64a
mov dword [esi + 0x10c], edi
test ebx, ebx
je 0x43f7ec
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, esi
jne 0x43f7ec
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x100]
test al, al
je 0x43f7ec
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10c]
test al, al
je 0x43f7ec
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [esi + 0x10c], ebx
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x10c]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
xor eax, eax
push eax
push eax
push eax
push 0x50ab40
push dword [esi + 0x10c]
mov ecx, esi
call fcn.0043f64a
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43f997
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x4ac]
xor ebx, ebx
call fcn.00442dfd
test eax, eax
jle 0x43f9ec
push ebx
lea ecx, [esi + 0x4ac]
mov byte [ebp - 1], 0
call fcn.0043ab33
mov edx, dword [eax]
lea ecx, [ebp - 1]
push ecx
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [edx]
cmp byte [ebp - 1], 0
jne 0x43fa50
lea ecx, [esi + 0x4ac]
inc ebx
call fcn.00442dfd
cmp ebx, eax
jl 0x43f9b3
mov eax, dword [ebp + 8]
sub eax, 0x100
je 0x43fab5
sub eax, 4
je 0x43fa54
dec eax
dec eax
jne 0x43faac
push dword [ebp + 0xc]
mov word [ebp + 8], ax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.004da4c2
pop ecx
mov ecx, dword [esi + 0x108]
push reloc.WS2_32.dll_select
lea edx, [ebp + 8]
push edx
mov word [ebp + 8], ax
mov eax, dword [ecx]
push 0x43d11d
call dword [eax + 0x134]
mov esi, eax
test esi, esi
je 0x43faac
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x128]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov al, 1
jmp 0x43faae
cmp dword [esi + 0x10c], 0
je 0x43faac
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
mov eax, dword [esi + 0x120]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x124]
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x14], eax
call fcn.0043b6a8
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x10c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x140]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x43faac
cmp dword [esi + 0x10c], 0
je 0x43fb64
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x43fb17
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x43fb17
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
push 0x50ab10
call dword [eax + 0xc]
push eax
call fcn.004d6bcd
pop ecx
pop ecx
test eax, eax
je 0x43fb17
mov ecx, dword [esi + 0x10c]
call fcn.0046ea0c
test al, al
jne 0x43faac
cmp dword [esi + 0x10c], 0
je 0x43fb64
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x43fb64
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x10c]
test al, al
je 0x43fb64
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
push str.WkeWebkitUI
call dword [eax + 0xc]
push eax
call fcn.004d6bcd
pop ecx
pop ecx
test eax, eax
jne 0x43faac
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setns al
movzx eax, al
push eax
mov ecx, esi
call fcn.0043f8b7
jmp 0x43fa50
Function at 0x444e01
Capabilities:
Terminate process

Disassembly:
push 0x364
mov eax, 0x4ffd91
call fcn.004da051
mov esi, ecx
call fcn.00454e40
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call edi
push eax
push str._INFO___d___OnCreate_1
push 3
push dword [0x54eec8]
call fcn.00454824
add esp, 0x10
push 0xfffffffffffffff0
mov ecx, esi
call fcn.00442dfd
push eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xff3fffff
or eax, 0x6000000
push eax
push 0xfffffffffffffff0
mov ecx, esi
call fcn.00442dfd
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi]
mov ecx, esi
lea ebx, [esi + 0x30]
call dword [eax + 0x30]
push eax
push dword [esi + 4]
mov ecx, ebx
call fcn.0043f5b6
lea eax, [esi + 0x24]
push eax
mov ecx, ebx
call fcn.0043c168
lea ecx, [ebp - 0x36c]
call fcn.00472082
mov eax, dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x118]
push ecx
mov ecx, esi
call dword [eax + 0x28]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 1
call fcn.0043ac95
test al, al
jne 0x444f1d
call edi
push eax
push str._INFO___d___OnCreate_2
push 3
push dword [0x54eec8]
call fcn.00454824
mov eax, dword [esi]
add esp, 0x10
lea ecx, [ebp - 0x94]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0043ab14
push eax
call fcn.004d8a4b
pop ecx
lea ecx, [ebp - 0x94]
movzx edi, ax
mov byte [ebp - 4], 1
call fcn.0043ab6a
push 0
lea eax, [esi + 0x28]
push ebx
push eax
lea ecx, [ebp - 0x118]
call fcn.0043ab14
push eax
push edi
lea ecx, [ebp - 0x36c]
call fcn.00473043
mov edi, eax
jmp 0x444f7e
call edi
push eax
push str._INFO___d___OnCreate_3
push 3
push dword [0x54eec8]
call fcn.00454824
mov eax, dword [esi]
add esp, 0x10
lea ecx, [ebp - 0x19c]
push ecx
mov ecx, esi
lea edi, [esi + 0x28]
call dword [eax + 0x2c]
push 0
push ebx
push edi
push 0
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0043ab14
push ecx
mov ecx, esp
mov dword [ecx], eax
lea ecx, [ebp - 0x36c]
mov dword [ebp - 0x370], esp
call fcn.00473043
lea ecx, [ebp - 0x19c]
mov edi, eax
mov byte [ebp - 4], 1
call fcn.0043ab6a
test edi, edi
jne 0x444fe7
push 0xffffffffffffffff
push 0x50b00c
lea ecx, [ebp - 0x94]
call fcn.0043af89
mov eax, dword [esi]
lea ecx, [ebp - 0x220]
push ecx
mov ecx, esi
mov byte [ebp - 4], 4
call dword [eax + 0x2c]
push eax
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 5
call fcn.0043ad11
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 4
call fcn.0043ab6a
push 0x10
push str.Duilib
lea ecx, [ebp - 0x94]
call fcn.0043ab14
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
mov ecx, ebx
call fcn.00442391
lea eax, [esi + 0x20]
push eax
mov ecx, ebx
call fcn.0043c118
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 0
call fcn.0043ab6a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x36c]
call fcn.004715e8
xor eax, eax
call fcn.004da0d4
ret 0x10
Function at 0x44ee2c
Capabilities:
Log keystrokes via polling

Disassembly:
sub ecx, 0x6c0
jmp fcn.0044a065

Function at 0x44f1d6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x18], bl
je 0x44f262
cmp dword [esi + 0x10], ebx
je 0x44f262
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004d98f0
mov dword [ebp - 8], esp
cmp esp, ebx
je 0x44f262
push edi
push dword [ebp - 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push dword [ebp - 8]
add ecx, 0x1cc
call fcn.0043aced
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push str.textchanged
push ecx
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043f64a
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, eax
call fcn.0043bbf8
test al, al
je 0x44f262
mov ecx, dword [esi + 0x10]
call fcn.00446ca7
xor eax, eax
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5e0b
leave
ret 0x10
Function at 0x454651
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x50574f
call fcn.004d9fe8
mov esi, ecx
lea eax, [esi + 0x10]
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], bl
call fcn.004282c9
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push ebx
push ebx
call fcn.004d8e98
add esp, 0x18
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x4546a2
cmp byte [ebp - 0x10], bl
je 0x45469e
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor al, al
jmp 0x4546bf
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.004283cb
cmp byte [ebp - 0x10], bl
je 0x4546bd
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
call fcn.004da0c0
ret 8

Function at 0x454e40
Capabilities:
Get common file path

Disassembly:
push 0x244
mov eax, 0x500be6
call fcn.004da051
lea eax, [ebp - 0x218]
push eax
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp + eax*2 - 0x21a], 0x5c
je 0x454e7e
push 0x50ab08
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.00404466
mov esi, str.wsduilib.log
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.004d97a1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.00411fe5
test byte [0x54ef5c], 1
mov esi, 0x54eee8
jne 0x454f05
or dword [0x54ef5c], 1
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x250]
push eax
mov byte [ebp - 4], 1
call fcn.004549f8
pop ecx
pop ecx
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004546c7
push ebx
push 1
lea ecx, [ebp - 0x250]
call fcn.00402476
push 0x5099bf
call fcn.004d8329
pop ecx
mov byte [ebp - 4], bl
mov ecx, esi
mov dword [0x54eec8], esi
call fcn.00454e07
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.0040476f
xor eax, eax
call fcn.004da0d4
ret
Function at 0x45a66f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x45a694
cmp eax, esi
jge 0x45a68c
mov eax, edi
call fcn.0045a0c3
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
mov esi, dword [edi + 8]
xor ecx, ecx
test esi, esi
jle 0x45a6c1
mov eax, dword [edi + 0xc]
push ebx
mov dl, byte [edi + 0xc]
sub esi, 8
mov byte [ebp + ecx - 4], dl
shr eax, 8
mov ebx, esi
inc ecx
mov dword [edi + 0xc], eax
test ebx, ebx
jg 0x45a6a1
mov dword [edi + 8], ebx
pop ebx
cmp ecx, 4
jge 0x45a6dd
mov esi, dword [edi + 4]
mov eax, dword [edi]
cmp eax, esi
jb 0x45a6ce
xor dl, dl
jmp 0x45a6d3
mov dl, byte [eax]
inc eax
mov dword [edi], eax
mov byte [ebp + ecx - 4], dl
inc ecx
cmp ecx, 4
jl 0x45a6c4
movzx esi, byte [ebp - 3]
movzx eax, byte [ebp - 4]
movzx ecx, byte [ebp - 2]
shl esi, 8
add esi, eax
movzx eax, byte [ebp - 1]
shl eax, 8
add eax, ecx
mov ecx, esi
xor ecx, 0xffff
cmp eax, ecx
je 0x45a710
push str.zlib_corrupt
call fcn.00455218
pop ecx
jmp 0x45a74c
mov eax, dword [edi]
add eax, esi
cmp eax, dword [edi + 4]
jbe 0x45a720
push str.read_past_buffer
jmp 0x45a708
mov eax, dword [edi + 0x10]
lea ecx, [eax + esi]
cmp ecx, dword [edi + 0x18]
jbe 0x45a736
push esi
call fcn.0045a1a0
pop ecx
test eax, eax
je 0x45a74c
push esi
push dword [edi]
push dword [edi + 0x10]
call fcn.004d9440
add dword [edi], esi
add dword [edi + 0x10], esi
xor eax, eax
add esp, 0xc
inc eax
pop edi
pop esi
leave
ret
Function at 0x469a20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x469a2e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x469ae9
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510748]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510748]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510748]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510748]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510748]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510748]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510748]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x510748]
add edx, 8
sub edi, 8
dec esi
jne 0x469a4c
pop ebx
test edi, edi
je 0x469b02
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x510748]
inc edx
dec edi
jne 0x469aed
pop edi
not eax
pop esi
pop ebp
ret

Function at 0x469b08
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
movsx edx, byte [ebp + 0xc]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x510748]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x510748]
pop esi
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x469fcf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x46a003
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x469ffe
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x46a02b
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x46a014
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.004d9440
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret
Function at 0x46b03f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x54b3f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x46b073
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46b073
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx ecx, word [esi]
test cx, cx
je 0x46b11d
mov eax, esi
mov edx, esi
cmp cx, 0x2f
je 0x46b08f
cmp cx, 0x5c
jne 0x46b091
mov eax, edx
add edx, 2
movzx ecx, word [edx]
test cx, cx
jne 0x46b083
cmp eax, esi
je 0x46b0d1
sub eax, esi
push edi
sar eax, 1
lea edi, [eax + eax]
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004d9440
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push ebx
call fcn.0046b03f
add esp, 0x14
pop edi
xor eax, eax
mov word [ebp - 0x20c], ax
test ebx, ebx
je 0x46b0ed
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004d97ed
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004d97bc
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46b11d
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5e0b
leave
ret

Function at 0x46c6ba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x46c765
cmp dword [esi + 4], 0xffffffff
jne 0x46c765
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.004d97a1
movzx eax, word [esi + eax*2 + 0x242]
pop ecx
cmp eax, 0x5c
je 0x46c70c
cmp eax, 0x2f
je 0x46c70c
push 0x50ab08
push edi
call fcn.004d97bc
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x46c72e
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x46c72e
mov eax, 0x2000000
jmp 0x46c76a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00469df4
add esp, 0x10
test eax, eax
jne 0x46c74c
mov eax, dword [ebp + 0x10]
jmp 0x46c76a
push eax
call fcn.0046c18f
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x46c76a
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x46ed5f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x69c], ebx
je 0x46edc7
cmp dword [ebp + 8], 0x100
jne 0x46edb6
cmp word [ebp + 0xc], 0xd
jne 0x46edb6
cmp byte [esi + 0x6a2], bl
je 0x46ed9d
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x46edb6
cmp byte [esi + 0x6a3], bl
jne 0x46edb6
mov ecx, dword [esi + 0x44]
cmp ecx, ebx
je 0x46edb2
push ebx
push ebx
push ebx
push str.return
push esi
call fcn.0043f64a
xor eax, eax
jmp 0x46edca
mov eax, dword [esi + 0x69c]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop esi
pop ebx
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop esi
pop ebx
pop ebp
ret 0x10