joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44dab8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x4a22d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 8
xor eax, eax
mov dword [ebp - 0x28], ebx
cmp dword [esi + 0x14], 8
lea edi, [ebp - 0x24]
pop ecx
mov dword [ebp - 0x2c], ebx
rep stosd dword es:[edi], eax
jb 0x44daed
mov eax, dword [esi]
jmp 0x44daef
mov eax, esi
lea ecx, [ebp - 0x28]
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x44db55
call fcn.00409a00
cmp eax, 1
jg 0x44db3e
xor ebx, ebx
inc ebx
call sub.KERNEL32.dll_GetLastError
push eax
push ebx
push 0x3e
push str.c:_b_build_slavewin_build_srcchromeinstallerutildelete_after_reboot_helper.cc
lea ecx, [ebp - 0xe4]
call fcn.0040a260
push str._does_not_exist.
add eax, 0x10
push esi
push eax
call fcn.0042eb9f
pop ecx
pop ecx
push eax
call fcn.00408be0
pop ecx
pop ecx
test bl, 1
je 0x44db4e
lea ecx, [ebp - 0xe4]
call fcn.0040a2c0
xor al, al
jmp 0x44dc26
push esi
call fcn.0040d610
pop ecx
push 4
pop ecx
push 5
test al, al
pop edx
cmove ecx, edx
cmp dword [esi + 0x14], 8
jb 0x44db71
mov eax, dword [esi]
jmp 0x44db73
mov eax, esi
push ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x44dbd4
call fcn.00409a00
cmp eax, 2
jg 0x44dbcc
push 2
pop ebx
call sub.KERNEL32.dll_GetLastError
push eax
push ebx
push 0x49
push str.c:_b_build_slavewin_build_srcchromeinstallerutildelete_after_reboot_helper.cc
lea ecx, [ebp - 0xe4]
call fcn.0040a260
push str._for_deletion.
push esi
add eax, 0x10
push str.Could_not_schedule
push eax
call fcn.00408be0
pop ecx
pop ecx
push eax
call fcn.0042eb9f
pop ecx
pop ecx
push eax
call fcn.00408be0
pop ecx
pop ecx
test bl, 2
jmp 0x44db41
push 0x53
mov edi, str.c:_b_build_slavewin_build_srcchromeinstallerutildelete_after_reboot_helper.cc
push edi
call fcn.00409a10
pop ecx
pop ecx
cmp eax, 1
jl 0x44dc14
push 4
pop ebx
push 0xffffffffffffffff
push 0x5d
push edi
lea ecx, [ebp - 0xdc]
call fcn.00409a70
push esi
add eax, 8
push str.Scheduled_for_deletion:
push eax
call fcn.00408be0
pop ecx
pop ecx
push eax
call fcn.0042eb9f
pop ecx
pop ecx
test bl, 4
je 0x44dc24
lea ecx, [ebp - 0xdc]
call fcn.00409ac0
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret

Function at 0x44f700
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x10]
add edx, edx
cmp dword [eax + 0x14], 8
jb 0x44f713
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x14], 8
jb 0x44f71e
mov ecx, dword [ecx]
push edx
push eax
push 1
push 0
push ecx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
pop ebp
ret
Function at 0x44fb9e
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4a4348]
sub esp, 0x28
push edi
mov edi, ecx
test eax, eax
jne 0x44fbb7
xor al, al
jmp 0x44fce9
push ebx
push str.ShowHTMLDialog
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x44fbd1
xor al, al
jmp 0x44fce8
push esi
push 8
xor esi, esi
lea eax, [edi + 4]
pop ecx
mov dword [ebp - 4], esi
cmp dword [eax + 0x14], ecx
jb 0x44fbe4
mov eax, dword [eax]
push 1
lea ecx, [ebp - 4]
push ecx
push eax
push esi
call sub.urlmon.dll_CreateURLMonikerEx
cmp dword [ebp - 4], esi
jne 0x44fbfd
xor al, al
jmp 0x44fce7
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x44fc3d
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ecx
mov ecx, esi
call dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x44fcf0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov ecx, dword [0x4a434c]
test eax, eax
mov dword [0x4a4344], eax
cmovne ecx, esi
mov dword [0x4a434c], ecx
lea eax, [edi + 0x1c]
cmp dword [eax + 0x14], 8
jb 0x44fc48
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.004246f0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
push 0
call ebx
mov ecx, dword [ebp - 4]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
push 3
pop eax
cmp word [ebp - 0x18], ax
jne 0x44fc8b
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
jmp 0x44fcb2
push 8
pop eax
cmp word [ebp - 0x18], ax
jne 0x44fcb2
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x10]
mov dword [eax], 6
call dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
push dword [ebp - 0x10]
lea ecx, [edi + 0x34]
call fcn.004085c0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [0x4a4344]
test eax, eax
je 0x44fcda
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
and dword [0x4a434c], 0
and dword [0x4a4344], 0
lea ecx, [ebp - 0x28]
call fcn.004246e0
test esi, esi
setns al
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x459d44
Capabilities:
Access firewall rule properties via inetfwrule

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a22d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x24], eax
mov esi, ecx
mov eax, dword [ebp + 0x14]
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
movzx eax, ax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
push 0x494ac0
push 0x17
push ecx
mov dword [ebp - 0x2c], ecx
push 0x495d5c
mov dword [ebp - 0x20], ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x459daa
and dword [edi], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x459ef0
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
jmp 0x459ef0
cmp dword [ebx + 0x14], 8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
jb 0x459db8
mov ebx, dword [ebx]
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00425220
mov edx, dword [ebp - 0x30]
push dword [eax]
mov ecx, dword [edx]
push edx
call dword [ecx + 0x20]
lea ecx, [ebp - 0x2c]
call fcn.00425240
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
cmp dword [eax + 0x14], 8
jb 0x459de2
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x24]
call fcn.00425220
mov ecx, dword [ebx]
push dword [eax]
push ebx
call dword [ecx + 0x28]
lea ecx, [ebp - 0x24]
call fcn.00425240
mov ebx, dword [ebp - 0x20]
lea eax, [esi + 0x18]
cmp dword [eax + 0x14], 8
jb 0x459e09
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x24]
call fcn.00425220
mov ecx, dword [ebx]
push dword [eax]
push ebx
call dword [ecx + 0x30]
lea ecx, [ebp - 0x24]
call fcn.00425240
mov eax, dword [ebp - 0x20]
push 0x11
push eax
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x20]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x70]
mov eax, dword [ebp - 0x20]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x20]
movzx eax, ax
push eax
lea eax, [ebp - 0x1c]
push 0x494ab8
push eax
call fcn.00410900
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x459e69
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.00425220
mov ecx, dword [ebx]
push dword [eax]
push ebx
call dword [ecx + 0x48]
lea ecx, [ebp - 0x28]
call fcn.00425240
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00408120
cmp dword [esi + 0x14], 8
mov ebx, dword [ebp - 0x20]
jb 0x459e99
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x28]
call fcn.00425220
mov ecx, dword [ebx]
push dword [eax]
push ebx
call dword [ecx + 0x90]
lea ecx, [ebp - 0x28]
call fcn.00425240
mov eax, dword [ebp - 0x20]
push SysReAllocString
push eax
mov ecx, dword [eax]
call dword [ecx + 0x98]
mov eax, dword [ebp - 0x20]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
test eax, eax
je 0x459ef0
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x459ef0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45adbd
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push 0x494b9c
push 1
push ebx
mov dword [ebp - 0xc], ebx
push 0x49c26c
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x45ae56
push esi
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push 0x494bac
mov dword [ebp - 4], ebx
call fcn.00425220
mov ecx, dword [esi]
lea edx, [ebp - 4]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [eax]
push esi
call dword [ecx + 0xc]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00425240
test esi, esi
pop esi
js 0x45ae49
cmp byte [ebp + 8], bl
je 0x45ae38
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x45ae49
mov ecx, dword [ebp + 0xc]
mov eax, ebx
mov edx, dword [ebp - 4]
mov bl, 1
mov dword [ebp - 4], eax
mov dword [ecx], edx
jmp 0x45ae4c
mov eax, dword [ebp - 4]
test eax, eax
je 0x45ae56
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x45ae63
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f8f1
Capabilities:
Check mutex on windows

Disassembly:
push esi
xor eax, eax
mov esi, ecx
push 0x495578
push eax
push eax
mov byte [esi], al
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x45f923
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
inc al
mov byte [esi], al
mov eax, esi
pop esi
ret

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

Disassembly:
xor edx, edx
push esi
push 8
mov ecx, edx
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor ecx, eax
dec esi
jne 0x469804
mov dword [edx*4 + 0x4a68c0], ecx
inc edx
cmp edx, 0x100
jb 0x4697ff
mov esi, 0x800
jmp 0x46984b
mov ecx, dword [edx*4 + 0x4a64c0]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x4a68c0]
mov dword [edx*4 + 0x4a68c0], ecx
inc edx
cmp edx, esi
jb 0x46982f
mov dword [0x4a44a0], 0x46a355
call fcn.0046a1d2
mov ecx, dword [0x4a44a0]
test eax, eax
mov edx, 0x46a3f2
cmove ecx, edx
mov dword [0x4a44a0], ecx
pop esi
ret
Function at 0x46a6b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0xc
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x46a6d1
xor eax, eax
jmp 0x46a818
add dword [ebp + 0x10], 5
lea ecx, [eax - 4]
mov edx, dword [ebp + 8]
push ebx
or ebx, 0xffffffff
add ecx, edx
mov dword [ebp + 0xc], ecx
add edx, edi
mov dword [ebp - 4], edx
cmp edx, ecx
jae 0x46a6fd
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x46a6fa
inc edx
cmp edx, ecx
jb 0x46a6ed
mov dword [ebp - 4], edx
mov edi, edx
sub edi, dword [ebp + 8]
cmp edx, ecx
jae 0x46a7fc
mov ecx, edi
sub ecx, ebx
cmp ecx, 3
jbe 0x46a753
xor esi, esi
mov al, byte [edx + 4]
mov ebx, edi
mov dword [ebp - 0xc], ebx
test al, al
je 0x46a725
cmp al, 0xff
jne 0x46a77c
movzx ecx, al
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
mov edx, dword [ebp + 0x10]
shl ecx, 8
or ecx, eax
cmp dword [ebp + 0x18], 0
je 0x46a790
lea ebx, [ecx + edi]
add ebx, edx
jmp 0x46a796
dec ecx
shl esi, cl
and esi, 7
je 0x46a715
movzx eax, byte [esi + 0x495c98]
mov ecx, edx
sub ecx, eax
cmp byte [esi + 0x495c90], 0
mov al, byte [ecx + 4]
je 0x46a77a
test al, al
je 0x46a77a
cmp al, 0xff
jne 0x46a715
mov ebx, edi
and esi, 3
add esi, esi
or esi, 1
inc edi
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
jmp 0x46a6e4
mov ebx, ecx
sub ebx, edi
sub ebx, edx
test esi, esi
je 0x46a7d0
movzx eax, byte [esi + 0x495c98]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 8], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x46a7b8
cmp al, 0xff
jne 0x46a7d0
xor eax, eax
push 0x20
pop ecx
sub ecx, dword [ebp - 8]
inc eax
shl eax, cl
mov ecx, eax
mov dword [ebp - 8], eax
dec ecx
xor ecx, ebx
jmp 0x46a746
mov edx, dword [ebp - 4]
mov eax, ebx
shr eax, 0x18
and al, 1
dec al
not al
mov byte [edx + 1], bl
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0xc]
shr eax, 8
add edi, 5
mov byte [edx + 2], al
jmp 0x46a785
mov edx, edi
xor eax, eax
sub edx, ebx
pop ebx
lea ecx, [edx - 1]
shl esi, cl
and esi, 7
cmp edx, 3
cmova esi, eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46c74d
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0x70
push 0
push esi
call fcn.0046eac0
add esp, 0xc
mov dword [esi], 0x6a09e667
xor eax, eax
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
inc eax
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
pop esi
pop ebp
ret
Function at 0x46c873
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x4a22d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
and dword [ebp - 0x5c], 0
push ebx
push edi
push 0
mov dword [ebp - 0x60], eax
or edi, 0xffffffff
mov eax, dword [ebp + 0xc]
mov ebx, edi
push 0x8000
push eax
mov dword [ebp - 0x64], ecx
call fcn.00474d85
add esp, 0xc
mov dword [ebp - 0x58], eax
test eax, eax
jns 0x46c8bc
push 6
pop eax
jmp 0x46c99d
push esi
lea ecx, [ebp - 0x54]
push ecx
push eax
call fcn.0046cb2c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x46c972
push eax
push 0x8000
push dword [ebp - 0x60]
call fcn.00474d85
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x46c8f2
push 6
pop esi
jmp 0x46c972
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.00474a0f
pop ecx
pop ecx
test eax, eax
jne 0x46c8ea
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x20], eax
je 0x46c90e
push 8
jmp 0x46c8ec
push eax
call fcn.00473ecc
mov esi, eax
mov dword [ebp - 0x5c], esi
pop ecx
test esi, esi
jne 0x46c921
inc esi
jmp 0x46c972
push dword [ebp - 0x4c]
push esi
push edi
call fcn.0047ea48
add esp, 0xc
cmp eax, dword [ebp - 0x4c]
jne 0x46c8ea
push dword [ebp - 0x4c]
push esi
call fcn.0046c9ad
pop ecx
pop ecx
cmp eax, dword [ebp - 0x48]
je 0x46c947
push 4
jmp 0x46c8ec
push 0
push 0x8301
push dword [ebp - 0x64]
call fcn.00474d85
mov ebx, eax
add esp, 0xc
test ebx, ebx
js 0x46c8ea
push ebx
push esi
push dword [ebp - 0x58]
lea eax, [ebp - 0x54]
push eax
call fcn.0046c9c4
add esp, 0x10
mov esi, eax
push dword [ebp - 0x5c]
call fcn.0046ea54
push dword [ebp - 0x58]
call fcn.00471f4a
pop ecx
pop ecx
test edi, edi
js 0x46c98f
push edi
call fcn.00471f4a
pop ecx
test ebx, ebx
js 0x46c99a
push ebx
call fcn.00471f4a
pop ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
Function at 0x46c9c4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebx + 0x14]
add edi, dword [ebx + 0x18]
mov eax, dword [ebx + 8]
add eax, dword [ebp + 0x10]
add edi, dword [ebx + 0x1c]
push edi
mov dword [ebp - 8], eax
call fcn.00473ecc
pop ecx
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x46c9f7
inc eax
jmp 0x46cb26
push esi
xor esi, esi
test edi, edi
je 0x46ca35
mov edx, SysReAllocString
mov eax, edi
cmp edi, edx
cmovg eax, edx
push eax
push ecx
push dword [ebp + 0xc]
call fcn.0047ea48
add esp, 0xc
test eax, eax
js 0x46ca2e
sub edi, eax
test eax, eax
jne 0x46ca29
test edi, edi
jne 0x46cb17
mov ecx, dword [ebp - 4]
jmp 0x46c9fa
push 6
jmp 0x46cb19
mov eax, dword [ebx + 0x14]
mov edi, ecx
add eax, ecx
mov ecx, dword [ebx + 0x18]
add ecx, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x1c]
mov ebx, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [edi + 4]
mov dword [edi], eax
call dword [sym.imp.WS2_32.dll_ntohl]
push dword [edi + 8]
mov dword [edi + 4], eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, dword [edi]
mov ecx, dword [ebp + 0x10]
mov dword [edi + 8], eax
lea eax, [edx + ecx]
cmp eax, dword [ebp - 8]
ja 0x46cb17
lea eax, [edx + ebx]
cmp eax, dword [ebp - 0x10]
ja 0x46cb17
mov dword [ebp - 0xc], esi
test edx, edx
je 0x46caaf
mov edx, ebx
sub ecx, ebx
mov al, byte [ecx + edx]
add byte [edx], al
inc esi
inc edx
cmp esi, dword [edi]
jb 0x46caa2
xor esi, esi
mov eax, dword [edi]
push eax
push ebx
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
call fcn.00470e03
mov ecx, dword [ebp - 0xc]
add esp, 0xc
cmp eax, ecx
jne 0x46cb13
add dword [ebp + 0x10], ecx
add ebx, ecx
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 8]
add eax, ecx
cmp eax, dword [ebp - 0x14]
ja 0x46cb17
mov eax, dword [edi + 4]
push eax
push ecx
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
call fcn.00470e03
mov ecx, dword [ebp - 0xc]
add esp, 0xc
cmp eax, ecx
jne 0x46cb13
add dword [ebp + 8], ecx
mov ecx, dword [ebp + 0x10]
add ecx, dword [edi + 8]
mov dword [ebp + 0x10], ecx
cmp ecx, dword [ebp - 8]
ja 0x46cb17
add edi, 0xc
cmp edi, dword [ebp - 0x18]
jb 0x46ca58
jmp 0x46cb1a
push 7
jmp 0x46cb19
push 8
pop esi
push dword [ebp - 4]
call fcn.0046ea54
pop ecx
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46cb2c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4a22d0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
push 0x20
push edi
push dword [ebp + 8]
call fcn.0047ea48
add esp, 0xc
cmp eax, 0x20
je 0x46cb57
push 6
jmp 0x46cbce
push esi
push dword [edi + 8]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
push dword [edi + 0xc]
mov dword [edi + 8], eax
call esi
push dword [edi + 0x10]
mov dword [edi + 0xc], eax
call esi
push dword [edi + 0x14]
mov dword [edi + 0x10], eax
call esi
push dword [edi + 0x18]
mov dword [edi + 0x14], eax
call esi
push dword [edi + 0x1c]
mov dword [edi + 0x18], eax
call esi
mov dword [edi + 0x1c], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call fcn.00474a0f
pop ecx
pop ecx
pop esi
test eax, eax
jne 0x46cb53
cmp dword [edi], 0x4944424d
jne 0x46cbcc
cmp dword [edi + 4], 0x30314646
jne 0x46cbcc
mov ecx, dword [edi + 0x14]
add ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x1c]
add eax, 0x20
add eax, ecx
sub eax, dword [ebp - 0x20]
neg eax
sbb eax, eax
and eax, 8
jmp 0x46cbcf
push 8
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
Function at 0x485608
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a22d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0047625a
mov dword [ebp - 0x14], eax
cmp dword [0x4a5610], esi
jne 0x4856fb
push 0x800
push esi
push 0x49ac54
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x485688
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4857db
push esi
push esi
push 0x49ac54
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4857db
push 0x49ac6c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4857db
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4a5610], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4a5614], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4a5618], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a5620], eax
test eax, eax
je 0x4856f8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4a561c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x485720
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x485713
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x485735
push 4
pop eax
jmp 0x4857dd
cmp dword [ebp - 0x14], esi
je 0x485735
push dword [0x4a5610]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x48571a
mov eax, dword [0x4a561c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x485793
cmp dword [0x4a5620], edi
je 0x485793
push eax
call ebx
push dword [0x4a5620]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x485793
test eax, eax
je 0x485793
call ecx
test eax, eax
je 0x485788
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x485788
test byte [ebp - 8], 1
jne 0x485793
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4857c3
mov eax, dword [0x4a5614]
cmp eax, edi
je 0x4857c0
push eax
call ebx
test eax, eax
je 0x4857c0
call eax
mov esi, eax
test esi, esi
je 0x4857c0
mov eax, dword [0x4a5618]
cmp eax, edi
je 0x4857c0
push eax
call ebx
test eax, eax
je 0x4857c0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4a5610]
call ebx
test eax, eax
je 0x4857db
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4857dd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e2b4
mov esp, ebp
pop ebp
ret
Function at 0x401360
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x14]
push 0x404244
push edx
call esi
mov ebx, dword [sym.imp.MSVCRT.dll_srand]
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 0xc
mov edi, 0xa
call ebp
push eax
call ebx
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x1a
idiv ecx
lea eax, [esp + 0x14]
add edx, 0x61
push edx
lea edx, [esp + 0x18]
push edx
push str._s_c
push eax
call esi
add esp, 0x14
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
dec edi
jne 0x4013a5
lea ecx, [esp + 0x10]
push str..exe
push ecx
lea edx, [esp + 0x18]
push str._s_s
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret