joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450f50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511c50
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5524b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xffffffffffffffff
push 0
push 0x556dd8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00408ea0
push 1
push 0
push 0x51f8c0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00404b40
test eax, eax
js 0x451025
cmp eax, dword [ebp - 0x18]
jae 0x451025
push eax
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403570
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00402620
add esp, 8
lea esi, [edi + 0x198]
mov ecx, esi
push eax
call fcn.00417170
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x45100e
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00408870
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x451039
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004092a0
jmp 0x451039
push 0
lea esi, [edi + 0x198]
push 0x53deac
mov ecx, esi
call fcn.004079e0
cmp dword [esi + 0x14], 8
lea eax, [esi + 0x10]
jb 0x451044
mov esi, dword [esi]
push 5
push 0x51f8c4
push dword [eax]
push esi
call fcn.00415720
add esp, 0x10
test eax, eax
je 0x451081
mov eax, dword [edi + 0x100]
push 0
push 0
push 0
push 0x450850
lea esi, [edi + eax*4]
inc eax
push 0xa
push 0
mov dword [edi + 0x100], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x451096
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004092a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4bd0
mov esp, ebp
pop ebp
ret
Function at 0x451ea0
Capabilities:
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5524b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
je 0x451fd5
push edi
call fcn.00451750
add esp, 4
cmp dword [edi + 0xa0], 0
jne 0x451fd5
cmp dword [edi + 0x10], 0
je 0x451fd5
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004ab2f0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [edi + 0x88], 0
je 0x451f23
cmp dword [edi + 0x8c], 8
lea eax, [edi + 0x78]
jb 0x451f36
mov eax, dword [eax]
jmp 0x451f36
cmp dword [edi + 0x14], 8
jb 0x451f2d
mov eax, dword [edi]
jmp 0x451f2f
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.004034c0
push eax
lea ecx, [edi + 0x90]
call fcn.00417170
lea ecx, [ebp - 0x228]
call fcn.00408940
cmp byte [0x552159], 0
je 0x451fb5
mov eax, dword [ebx + 0x100]
push esi
push 0
push 0
push edi
push fcn.004510c0
lea esi, [ebx + eax*4]
inc eax
push 0xa
push 0
mov dword [ebx + 0x100], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
mov eax, 1
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4bd0
mov esp, ebp
pop ebp
ret 4
push edi
call fcn.004510c0
add esp, 4
mov eax, 1
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4bd0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.004a4bd0
mov esp, ebp
pop ebp
ret 4
Function at 0x453aa0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511f50
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x5524b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [ebp - 0x14]
push esi
push dword [esi + 4]
push dword [esi]
call fcn.00453720
mov eax, dword [esi]
lea ecx, [ebp - 0x10]
add esp, 0x10
mov dword [esi + 4], eax
call fcn.004032e0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004032d0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0xf003f
push 0
push str.SoftwarePhotoViewerReport
push reloc.WS2_32.dll_accept
call esi
test eax, eax
je 0x453b43
push 0
lea ecx, [ebp - 0x10]
call fcn.004032d0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwarePhotoViewerReport
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x453bdb
lea ecx, [ebp - 0x10]
call fcn.004032d0
push eax
push 0xf003f
push 0
push str.SoftwarePhotoViewerReport
push reloc.WS2_32.dll_accept
call esi
test eax, eax
jne 0x453bdb
lea ecx, [ebp - 0x14]
call fcn.004032e0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004032d0
push eax
push 0xf003f
push 0
push 0x51f910
lea ecx, [ebp - 0x10]
call fcn.00403280
push eax
call esi
test eax, eax
jne 0x453ba7
push str.Kunbang
lea ecx, [ebp - 0x10]
call fcn.00403280
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push 0
lea ecx, [ebp - 0x14]
call fcn.004032d0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x51f910
lea ecx, [ebp - 0x10]
call fcn.00403280
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x14]
call fcn.004095e0
lea ecx, [ebp - 0x10]
call fcn.004095e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x455450
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512296
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5524b4]
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
mov esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0040f990
test al, al
jne 0x455492
xor al, al
jmp 0x4555f5
push 4
push str.city
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00409450
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0040f730
mov ebx, eax
cmp esi, ebx
je 0x455507
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x4554e2
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.004092a0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x4554fa
mov eax, dword [esi]
jmp 0x4554fc
mov eax, esi
push ebx
mov ecx, esi
mov byte [eax], 0
call fcn.00408980
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x45551c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004092a0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x45554a
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004092a0
cmp dword [esi + 0x10], 0
je 0x45548b
xorps xmm0, xmm0
lea ecx, [ebp - 0x28]
push str.time
movlpd qword [ebp - 0x48], xmm0
call fcn.00409570
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call fcn.0040f880
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x455594
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004092a0
mov edx, dword [ebp - 0x50]
mov eax, edx
mov ecx, dword [ebp - 0x54]
sub eax, ecx
cmp eax, 8
jne 0x4555e9
cmp ecx, edx
je 0x4555b0
movq xmm0, qword [ecx]
movq qword [ebp - 0x48], xmm0
push 0
call fcn.004bdb5a
xor edx, edx
add esp, 4
sub eax, dword [ebp - 0x48]
mov ecx, eax
sbb edx, dword [ebp - 0x44]
call fcn.004a5000
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movd xmm0, dword [ebp + 0xc]
divss xmm1, dword [0x51f9c8]
cvtdq2ps xmm0, xmm0
comiss xmm1, xmm0
ja 0x4555e9
mov bl, 1
jmp 0x4555eb
xor bl, bl
lea ecx, [ebp - 0x54]
call fcn.0040fc80
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.004a4bd0
mov esp, ebp
pop ebp
ret 8
Function at 0x4579d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x512783
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5524b4]
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
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
xor ebx, ebx
push eax
mov dword [ebp - 0x78], ebx
call fcn.00457d30
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x457a52
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.00457bf0
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
mov ebx, 1
push eax
mov dword [ebp - 0x78], ebx
call fcn.00410000
add esp, 8
mov byte [ebp - 0x71], bl
test al, al
jne 0x457a56
mov byte [ebp - 0x71], 0
mov dword [ebp - 4], 0
test bl, 1
je 0x457a7d
mov eax, dword [ebp - 0x44]
and ebx, 0xfffffffe
mov dword [ebp - 0x78], ebx
cmp eax, 0x10
jb 0x457a7d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004092a0
cmp byte [ebp - 0x71], 0
je 0x457a9e
push esi
mov ecx, edi
call fcn.00457cc0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x457bc7
inc ecx
push ecx
jmp 0x457bbc
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00411950
add esp, 8
test al, al
je 0x457ae5
lea eax, [ebp - 0x58]
mov ecx, edi
push eax
call fcn.00457bf0
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
or ebx, 4
push eax
mov dword [ebp - 0x78], ebx
call fcn.00410000
add esp, 8
test al, al
je 0x457ae5
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.00457cc0
or ebx, 8
jmp 0x457b0c
push 0
push 0x53deb4
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00409450
lea eax, [ebp - 0x40]
or ebx, 0x10
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push eax
mov byte [esi], 0
call fcn.00408980
or ebx, 2
test bl, 0x10
je 0x457b57
mov eax, dword [ebp - 0x2c]
and ebx, 0xffffffef
cmp eax, 0x10
jb 0x457b45
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004092a0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
test bl, 8
je 0x457b86
mov eax, dword [ebp - 0x5c]
and ebx, 0xfffffff7
cmp eax, 0x10
jb 0x457b74
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004092a0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
test bl, 4
je 0x457bb2
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x457ba0
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004092a0
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x457bc7
inc eax
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004092a0
mov eax, esi
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.004a4bd0
mov esp, ebp
pop ebp
ret 4
Function at 0x45b008
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 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x45b02b
or esi, 1
push 1
call edi
test ax, ax
jns 0x45b037
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x45b043
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x45b04f
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x45db5f
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 + 0x29c]
call fcn.00466675
mov edi, dword [ebp + 8]
test eax, eax
jle 0x45dbb5
push ebx
lea ecx, [esi + 0x29c]
mov byte [ebp + 0xb], 0
call fcn.0045822d
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 0x45dc15
lea ecx, [esi + 0x29c]
inc ebx
call fcn.00466675
cmp ebx, eax
jl 0x45db7e
sub edi, 0x100
je 0x45dc7b
sub edi, 4
je 0x45dc19
dec edi
sub edi, 1
jne 0x45dc70
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp + 8], eax
call fcn.004b3ebd
pop ecx
mov ecx, dword [esi + 0x1e8]
lea edx, [ebp + 8]
push reloc.WS2_32.dll_select
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x45f59c
call dword [eax + 0x128]
mov esi, eax
test esi, esi
je 0x45dc70
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x11c]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x45dc72
cmp dword [esi + 0x1ec], 0
je 0x45dc70
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 + 0x1fc]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x200]
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.0045b008
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x1ec]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x45dc70
mov ecx, dword [esi + 0x1ec]
test ecx, ecx
je 0x45dcd4
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x45dcd4
mov ecx, dword [esi + 0x1ec]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x45dcd4
mov ecx, dword [esi + 0x1ec]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004aa6a4
pop ecx
pop ecx
test eax, eax
je 0x45dcd4
mov ecx, dword [esi + 0x1ec]
call fcn.0048228b
test al, al
jne 0x45dc70
mov ecx, dword [esi + 0x1ec]
test ecx, ecx
je 0x45dd1c
mov eax, dword [ecx]
call dword [eax + 0xf4]
test al, al
je 0x45dd1c
mov ecx, dword [esi + 0x1ec]
mov eax, dword [ecx]
call dword [eax + 0x100]
test al, al
je 0x45dd1c
mov ecx, dword [esi + 0x1ec]
push str.WkeWebkitUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.004aa6a4
pop ecx
pop ecx
test eax, eax
jne 0x45dc70
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.0045edbc
jmp 0x45dc15
Function at 0x45eaa7
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 0x45ead3
cmp esi, dword [ebx + 0x1ec]
je 0x45ead3
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebx + 0x1ec]
cmp esi, eax
je 0x45ebaa
push edi
test eax, eax
je 0x45eb32
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 + 0x1ec]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x1ec]
call fcn.0045e65a
mov dword [ebx + 0x1ec], edi
test esi, esi
je 0x45eba9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, ebx
jne 0x45eba9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf4]
test al, al
je 0x45eba9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x100]
test al, al
je 0x45eba9
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x1ec], 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 + 0x1ec]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x134]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x1ec]
call fcn.0045e65a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4668fe
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 0x466930
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 0x46a5dc
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5524b4]
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 0x46a610
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46a610
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x46a6c2
push esi
mov esi, ebx
mov ecx, ebx
cmp ax, 0x2f
je 0x46a62d
cmp ax, 0x5c
jne 0x46a62f
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x46a621
cmp esi, ebx
je 0x46a675
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.004aad70
add esp, 0xc
cmp esi, 0x208
jae 0x46a6d2
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.0046a5dc
pop ecx
pop ecx
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x46a692
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004c13e3
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004c1372
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x46a6c2
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.004a4bd0
mov esp, ebp
pop ebp
ret
call fcn.004a489f
int3

Function at 0x46acf8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x46ada4
cmp dword [esi + 4], 0xffffffff
jne 0x46ada4
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.004c1405
pop ecx
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x46ad4b
cmp eax, 0x2f
je 0x46ad4b
push 0x53f780
push edi
call fcn.004c1372
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x46ad6d
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x46ad6d
mov eax, 0x2000000
jmp 0x46ada9
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0046d422
add esp, 0x10
test eax, eax
jne 0x46ad8b
mov eax, dword [ebp - 4]
jmp 0x46ada9
push eax
call fcn.0046daf2
pop ecx
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x46ada9
mov eax, 0x1000000
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46b255
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

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

Function at 0x46d521
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x46d555
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46d550
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x46d57c
mov edx, dword [edi + 0x1c]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x18]
jbe 0x46d565
mov esi, dword [edi + 0x18]
sub esi, edx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004aad70
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

Function at 0x46d694
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x46d6a2
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x46d761
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x522eb0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x522eb0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x522eb0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x522eb0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x522eb0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x522eb0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x522eb0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x522eb0]
sub edi, 1
jne 0x46d6ba
pop edi
test esi, esi
je 0x46d77d
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x522eb0]
inc edx
sub esi, 1
jne 0x46d765
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x47e409
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 0x47e42d
cmp dword [esi + 8], edi
jge 0x47e425
push esi
call fcn.00479d66
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 0x47e456
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 0x47e439
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x47e470
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x47e461
xor dl, dl
jmp 0x47e466
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x47e458
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 0x47e4a5
push str.zlib_corrupt
call fcn.00479c8f
add esp, 4
jmp 0x47e4e5
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x47e4b5
push str.read_past_buffer
jmp 0x47e49b
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x47e4cf
push edi
push ecx
push esi
call fcn.00480fd2
add esp, 0xc
test eax, eax
je 0x47e4e5
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004aad70
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 0x4840f5
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 0x48415f
cmp dword [ebp + 8], 0x100
jne 0x48414e
cmp word [ebp + 0xc], 0xd
jne 0x48414e
cmp byte [esi + 0x6a2], 0
je 0x484135
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x48414e
cmp byte [esi + 0x6a3], 0
jne 0x48414e
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x48414a
push edi
push edi
push edi
push str.return
push esi
call fcn.0045e65a
xor eax, eax
jmp 0x484162
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