joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9390
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5441b4]
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 ebx, 1
test byte [0x547f78], bl
jne 0x450e80
or dword [0x547f78], ebx
call fcn.0044b060
push 0x4f1090
call fcn.004b809e
add esp, 4
push 0xffffffffffffffff
xor edi, edi
push edi
xor eax, eax
push 0x547fd4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], ax
call fcn.00406e90
mov dword [ebp - 4], edi
cmp dword [ebp - 0x1c], edi
jne 0x450eb3
cmp dword [ebp - 0x18], 8
jmp 0x450f55
lea esi, [ebp - 0x48]
call fcn.00403c60
push edi
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.004064e0
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x450ee1
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x450eec
lea eax, [ebp - 0x2c]
push ebx
push edi
push edi
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test byte [0x548404], bl
jne 0x450f3b
or dword [0x548404], ebx
push 0x4f10d0
mov dword [0x5483e8], edi
mov dword [0x5483ec], edi
mov dword [0x5483f0], edi
mov dword [0x5483f4], edi
mov dword [0x5483f8], edi
mov dword [0x548400], edi
call fcn.004b809e
add esp, 4
mov eax, dword [0x5483e8]
push edi
push edi
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push edi
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0x18], esi
jb 0x450f63
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b6106
add esp, 4
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.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x455690
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x455708
lea ecx, [ebp - 0x10]
push ecx
push 0x5145bc
push esi
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x18]
push esi
push esi
push 0x10
lea edx, [ebp - 0x14]
push edx
push esi
push eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x18]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b6111
mov esp, ebp
pop ebp
ret

Function at 0x455720
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5455b4]
push esi
mov esi, 8
push edi
cmp dword [0x5455c8], esi
jae 0x45573d
mov eax, 0x5455b4
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
test eax, eax
je 0x4557e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4557ec
mov ecx, dword [0x5455d0]
cmp dword [0x5455e4], esi
jae 0x455774
mov ecx, 0x5455d0
mov eax, dword [0x5455ec]
cmp dword [0x545600], esi
jae 0x455786
mov eax, 0x5455ec
push ecx
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x4557ae
push 0
push 0xf120
push 0x112
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x547e58]
test eax, eax
je 0x4557e4
cmp dword [eax + 8], 2
mov edi, eax
jl 0x4557e4
push str.Main.cpp
push 2
push ecx
mov eax, esp
mov dword [ebp - 4], esp
push eax
mov ecx, 0x5145e0
mov esi, 0x253
call fcn.0042d450
push edi
mov ecx, esi
call fcn.0042b0b0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x459390
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [esi + 0x2c], 0
push ebx
push edi
je 0x459548
lea edi, [esi + 0x1c]
mov ebx, 8
mov dword [ebp - 0x10], edi
cmp dword [edi + 0x14], ebx
jb 0x4593b6
mov eax, dword [edi]
jmp 0x4593b8
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x459548
cmp dword [edi + 0x14], ebx
jb 0x4593d0
mov eax, dword [edi]
jmp 0x4593d2
mov eax, edi
push eax
mov ecx, esi
call fcn.00459550
mov ebx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x70]
mov edi, dword [esi + 0x60]
sub edi, dword [esi + 0x5c]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, ecx
mov dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
jns 0x45941e
fadd dword [0x516210]
fdivr qword [0x516288]
xor edi, edi
mov dword [ebp - 8], edi
fstp dword [ebp - 0xc]
cmp ecx, edi
jbe 0x4594a3
mov dword [ebp - 4], edi
add ebx, dword [ebp - 4]
cmp dword [ebx + 0x14], 8
jb 0x45943e
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, dword [esi + 0x54]
test ebx, ebx
je 0x45947c
lea edx, [edi + 1]
mov dword [ebp - 8], edx
fild dword [ebp - 8]
test edx, edx
jns 0x45945f
fadd dword [0x516210]
fmul dword [ebp - 0xc]
fadd qword [0x516280]
call fcn.004bf050
push eax
push 0
push 0x4c9
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x70]
add dword [ebp - 4], 0x1c
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x459433
mov dword [ebp - 8], edi
mov ebx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
xor edi, edi
add ecx, edx
je 0x459536
mov dword [ebp - 4], edi
add ebx, dword [ebp - 4]
cmp dword [ebx + 0x14], 8
jb 0x4594d0
mov ebx, dword [ebx]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, dword [esi + 0x54]
test ebx, ebx
je 0x459512
mov eax, dword [ebp - 8]
lea ecx, [edi + eax + 1]
mov dword [ebp - 0x14], ecx
fild dword [ebp - 0x14]
test ecx, ecx
jns 0x4594f5
fadd dword [0x516210]
fmul dword [ebp - 0xc]
fadd qword [0x516280]
call fcn.004bf050
push eax
push 0
push 0x4c9
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
add dword [ebp - 4], 0x1c
sub ecx, ebx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x4594c5
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x14], 8
jb 0x459541
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f04d8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
test byte [0x547f74], 1
jne 0x45b172
or dword [0x547f74], 1
call fcn.00441d90
push 0x4f1080
call fcn.004b809e
add esp, 4
push 0xffffffffffffffff
push 0
push 0x547ec4
lea ecx, [edi + 0x24]
call fcn.00406e90
cmp dword [edi + 0x38], 8
mov ecx, dword [edi + 0x34]
jb 0x45b191
mov eax, dword [edi + 0x24]
jmp 0x45b194
lea eax, [edi + 0x24]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x45b1ab
push 1
mov eax, 0x50b670
lea ecx, [edi + 0x24]
call fcn.004065e0
push 0
push 0
push edi
push fcn.0045cc10
push 0
push 0
call fcn.004b902f
add esp, 0x18
mov dword [edi + 0x80], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x45c520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9138
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
test byte [0x547f74], 1
jne 0x45c582
or dword [0x547f74], 1
call fcn.00441d90
push 0x4f1080
call fcn.004b809e
add esp, 4
push 0xffffffffffffffff
push 0
push 0x547ec4
lea ecx, [edi + 0x24]
call fcn.00406e90
cmp dword [edi + 0x38], 8
mov ecx, dword [edi + 0x34]
jb 0x45c5a1
mov eax, dword [edi + 0x24]
jmp 0x45c5a4
lea eax, [edi + 0x24]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x45c5bb
push 1
mov eax, 0x50b670
lea ecx, [edi + 0x24]
call fcn.004065e0
mov ecx, dword [edi + 0x7c]
push 0
push 0
push ecx
push 0x45cba0
push 0
push 0
call fcn.004b902f
add esp, 0x18
mov dword [edi + 0x84], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret

Function at 0x45c600
Capabilities:
Check os version
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efb10
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x198]
push 0
push eax
mov dword [ebp - 0x19c], 0x11c
call fcn.004be120
add esp, 0xc
lea ecx, [ebp - 0x19c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45c6c9
cmp dword [ebp - 0x198], 6
jb 0x45c6c9
lea esi, [ebp - 0x64]
call fcn.0040e010
push eax
mov eax, str.cef_3729_157_v2.7z
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004044b0
add esp, 4
lea esi, [ebx + 0x5c]
mov edi, eax
mov byte [ebp - 4], 1
call fcn.00406400
mov esi, 8
cmp dword [ebp - 0x18], esi
jb 0x45c6ab
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b6106
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x50], esi
jb 0x45c732
mov ecx, dword [ebp - 0x64]
jmp 0x45c729
lea esi, [ebp - 0x80]
call fcn.0040e010
push eax
mov eax, str.cef2623.7z
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 2
call fcn.004044b0
add esp, 4
lea esi, [ebx + 0x5c]
mov edi, eax
mov byte [ebp - 4], 3
call fcn.00406400
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x45c70d
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b6106
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x6c], esi
jb 0x45c732
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004b6106
add esp, 4
push 0
push 0
push ebx
push 0x45cbf0
push 0
push 0
call fcn.004b902f
xor edx, edx
add esp, 0x18
test eax, eax
mov dword [ebx + 0x78], eax
setne al
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.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x45da70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eba00
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x45daa5
mov eax, dword [esi]
jmp 0x45daa7
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45db56
lea eax, [ebp - 0x2c]
push eax
mov ecx, esi
call fcn.00463200
add esp, 4
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x45dad3
mov eax, dword [eax]
lea ecx, [ebp - 0x30]
push ecx
mov esi, eax
call fcn.00411780
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 0x10
jb 0x45daf4
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b6106
add esp, 4
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jb 0x45db10
mov eax, dword [ebx]
jmp 0x45db12
mov eax, ebx
test eax, eax
je 0x45db72
mov ecx, dword [ebp - 0x30]
cmp dword [ecx - 0xc], 0
jl 0x45db37
push eax
push ecx
call fcn.004b886f
add esp, 8
test eax, eax
je 0x45db72
mov ecx, dword [ebp - 0x30]
sub eax, ecx
cmp eax, 1
jge 0x45db77
lea eax, [ecx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45db56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x30]
jmp 0x45db37
mov esi, dword [ebx + 0x10]
mov edx, dword [ecx - 0xc]
add esi, eax
cmp esi, edx
jne 0x45db37
dec eax
js 0x45dbb7
cmp eax, edx
jg 0x45dbb7
cmp byte [eax + ecx], 0x40
jne 0x45db37
lea eax, [ecx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45dbb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x45db58
push 0x80070057
call fcn.00406a50
int3
Function at 0x463650
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e904c
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 1
test byte [0x5482a8], bl
jne 0x4636ad
or dword [0x5482a8], ebx
mov dword [ebp - 4], 0
call fcn.0045ad50
push 0x4f10c0
call fcn.004b809e
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
mov edx, 0x5482b0
call fcn.0045ad20
push ebx
mov eax, 0x50b670
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004065e0
lea esi, [ebp - 0x48]
call fcn.00403c60
push 0
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004064e0
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], esi
jb 0x4636fd
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x463708
lea eax, [ebp - 0x2c]
push ebx
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test byte [0x5482a8], bl
jne 0x46373f
or dword [0x5482a8], ebx
mov byte [ebp - 4], 3
call fcn.0045ad50
push 0x4f10c0
call fcn.004b809e
add esp, 4
mov ecx, dword [0x54832c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [ebp - 0x18], esi
jb 0x46376b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b6106
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret

Function at 0x466940
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8f5e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5441b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, 1
test byte [0x5482a8], bl
jne 0x46699d
or dword [0x5482a8], ebx
mov dword [ebp - 4], 0
call fcn.0045ad50
push 0x4f10c0
call fcn.004b809e
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
mov edx, 0x5482b0
call fcn.0045ad20
push ebx
mov eax, 0x50b670
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004065e0
lea esi, [ebp - 0x48]
call fcn.00403c60
push 0
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004064e0
mov esi, 8
mov byte [ebp - 4], bl
cmp dword [ebp - 0x34], esi
jb 0x4669ed
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b6106
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x4669f8
lea eax, [ebp - 0x2c]
push ebx
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [edi]
mov eax, dword [edx + 0x44]
mov ecx, edi
call eax
cmp dword [ebp - 0x18], esi
jb 0x466a25
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b6106
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b6111
mov esp, ebp
pop ebp
ret
Function at 0x4686a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x4686ff
mov dword [edi], 0
jmp 0x4686c0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x4686cf
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x468707
test ecx, ecx
je 0x4686ff
test esi, esi
jne 0x4686c0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x468720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x46877f
mov dword [edi], 0
jmp 0x468740
mov eax, 0x400000
cmp esi, 0x400000
ja 0x46874f
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x468787
test ecx, ecx
je 0x46877f
test esi, esi
jne 0x468740
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468d70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edx, edx
jmp 0x468d80
mov eax, edx
and eax, 1
dec eax
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x549600], ecx
inc edx
cmp edx, 0x100
jb 0x468d80
cmp edx, 0x800
jae 0x468e59
lea ebx, [ebx]
mov eax, dword [edx*4 + 0x549200]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x549600]
inc edx
mov dword [edx*4 + 0x5495fc], eax
cmp edx, 0x800
jb 0x468e30
lea esi, [ebp - 0x24]
mov dword [0x547de0], 0x46b860
call fcn.0046b990
test eax, eax
je 0x468f16
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, eax
shr eax, 4
shr esi, 8
and eax, 0xf00f
and esi, 0xff00f
xor edi, edi
mov dword [ebp - 4], eax
mov ecx, 0x5454a8
xor edx, edx
mov eax, dword [ecx - 8]
cmp eax, dword [ebp - 0x20]
jne 0x468eac
mov eax, dword [ebp - 0x1c]
cmp dword [ecx - 4], eax
jne 0x468eac
cmp dword [ecx], ebx
je 0x468ee4
add edx, 0xc
inc edi
add ecx, 0xc
cmp edx, 0x24
jb 0x468e98
or ecx, 0xffffffff
sub ecx, 0
je 0x468efc
dec ecx
je 0x468ee8
dec ecx
jne 0x468f16
cmp esi, 6
jb 0x468f16
jne 0x468f0c
cmp dword [ebp - 4], 0xf
jb 0x468f16
mov dword [0x547de0], 0x46b910
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
jmp 0x468ebb
cmp esi, 5
jb 0x468f16
jne 0x468f0c
mov eax, dword [ebp - 4]
cmp eax, 6
jb 0x468f16
cmp eax, 0xa
jmp 0x468f0a
cmp esi, 6
jb 0x468f16
jne 0x468f0c
cmp dword [ebp - 4], 0x100c
je 0x468f16
mov dword [0x547de0], 0x46b910
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46d110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
and esi, 7
mov dword [ebp - 4], 0
cmp eax, 5
jae 0x46d132
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
lea edx, [edx + eax - 4]
push ebx
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
add edi, eax
cmp edi, edx
jae 0x46d160
mov cl, byte [edi]
and cl, 0xfe
cmp cl, 0xe8
je 0x46d160
inc edi
cmp edi, edx
jb 0x46d151
mov ebx, edi
sub ebx, eax
mov eax, ebx
sub eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
cmp edi, edx
jae 0x46d267
cmp eax, 3
jbe 0x46d197
xor esi, esi
mov al, byte [edi + 4]
mov dword [ebp - 8], ebx
test al, al
je 0x46d1d4
cmp al, 0xff
je 0x46d1d4
and esi, 3
add esi, esi
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x46d145
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x46d17b
movzx eax, byte [esi + 0x50d2c8]
mov ecx, edi
sub ecx, eax
cmp byte [esi + 0x50d2c0], 0
mov al, byte [ecx + 4]
je 0x46d1c0
test al, al
je 0x46d1c0
cmp al, 0xff
jne 0x46d17b
and esi, 3
add esi, esi
mov dword [ebp - 8], ebx
or esi, 1
inc ebx
mov dword [ebp - 4], ebx
jmp 0x46d145
movzx ecx, byte [edi + 2]
movzx edx, al
movzx eax, byte [edi + 3]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
sub edx, ebx
lea eax, [edx - 5]
test esi, esi
je 0x46d237
movzx edx, byte [esi + 0x50d2c8]
add edx, edx
add edx, edx
add edx, edx
mov ecx, 0x18
sub ecx, edx
mov ebx, eax
shr ebx, cl
mov cl, bl
test cl, cl
je 0x46d21e
cmp cl, 0xff
jne 0x46d234
mov ebx, dword [ebp - 4]
mov ecx, 0x20
sub ecx, edx
mov edx, 1
shl edx, cl
dec edx
xor edx, eax
jmp 0x46d1f2
mov ebx, dword [ebp - 4]
mov ecx, eax
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
add ebx, 5
mov byte [edi + 3], dl
mov edx, dword [ebp - 0xc]
mov byte [edi + 2], cl
mov byte [edi + 1], al
mov dword [ebp - 4], ebx
jmp 0x46d145
cmp eax, 3
jbe 0x46d27c
mov edx, dword [ebp + 0xc]
pop edi
xor esi, esi
mov eax, ebx
pop ebx
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [eax - 1]
shl esi, cl
pop edi
mov eax, ebx
pop ebx
and esi, 7
mov dword [edx], esi
pop esi
mov esp, ebp
pop ebp
ret