joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a06b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10026154], 0
mov byte [0x10026158], 0
mov edi, dword [0x10026148]
add edi, 0xfffffade
mov dword [0x1002614c], edi
mov dword [0x10026150], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x10026150]
add eax, 1
mov dword [0x10026150], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1001a0b8
xor eax, eax
mov ecx, dword [0x1002614c]
add ecx, 0xffffeabb
mov dword [0x10026148], ecx
mov dword [0x10026150], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1002615c], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x10026154]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x1002615c], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x10026154], edx
mov dword [0x10026148], 0x203
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x10026158], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov dword [0x10026148], 0x2364
mov cl, byte [0x10026158]
mov esi, dword [0x10026154]
mov byte [ebx + esi], cl
mov esi, dword [0x10026148]
add esi, 0x1ab4
mov dword [0x1002614c], esi
mov esi, dword [0x10026150]
add esi, 1
mov dword [0x10026150], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1001a0ff
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1001a3d7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x10026148], 0xa46
mov dword [0x10026150], 0
mov dword [0x10026154], 0
mov dword [0x10026160], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1001a535
jmp 0x1001a453
mov eax, dword [0x10026150]
mov ecx, dword [0x10026154]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov edi, eax
add edi, 1
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x10026150], edx
mov ecx, dword [ebp - 0x20]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10026154], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10026158], cl
mov dword [0x1002614c], 0x111a
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x10026158]
mov edx, dword [0x10026154]
mov byte [ebx + edx], cl
mov dword [0x10026148], 0x126d
mov edx, dword [0x10026150]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10026154]
movzx ecx, byte [ebx + ecx]
add ecx, edx
mov dword [0x10026148], 0xffffebc4
and ecx, 0xff
mov dword [0x10026160], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x30]
mov ch, byte [edx + esi]
mov edx, dword [0x1002614c]
add edx, 0x4c1
mov dword [0x10026148], edx
xor ch, cl
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], ch
mov edx, dword [ebp - 0x10]
cmp edi, edx
mov dword [ebp - 0x2c], edi
jne 0x1001a43c
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1001a53d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.10019c57
lea ecx, [0x100193af]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x48], edx
mov dword [esp + 0x40], 0x150c00
mov edx, dword [0x10026134]
mov dword [esp + 0x20], edx
mov edx, dword [0x10026138]
mov dword [esp + 0x7c], edx
mov edx, dword [0x1002613c]
mov dword [esp + 0x44], edx
mov edx, dword [0x10026140]
mov dword [esp + 0x64], edx
mov edx, dword [0x10026144]
mov dword [esp + 0x4c], edx
mov dword [0x10026148], 0x526
mov dword [0x1002614c], 0x4cf
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1001a5df
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0xc], ecx
je 0x1001a602
jmp 0x1001a5ee
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0x10], eax
je 0x1001a5c9
mov eax, dword [esp + 0x10]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1001a5df
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov dword [0x10026148], 0x23a7
mov ecx, dword [esp + 0xc]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x24], edx
call fcn.10019b15
xor ecx, ecx
cmp eax, 0
mov dword [esp + 8], ecx
jne 0x1001a65f
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.10019258
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x41ab9e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x41abad
pop dword [ebp - 0x48]
mov eax, 0x86fa26a1
add eax, 0x7947850c
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x4fbc7
push 0
mov eax, 0x761d1671
add eax, 0x8a279c4b
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x70c9696a
sub ecx, 0x70c9220c
mov edi, eax
mov ebx, 0x53781a26
sub ebx, 0x532f9c26
add ebx, dword [ebp - 0x48]
mov esi, 0x3c6a3ce6
add esi, 0xf8acc811
xor dword [ebp - 0x30], esi
mov edx, dword [ebx]
xor dword [ebp - 0xc], edx
xor edx, esi
xor dword [ebp - 0x3c], 0xddcd199
mov dword [edi], edx
mov dword [ebp - 0x1c], 0xd5e2f675
add edi, 4
add ebx, 0x666dee8a
sub ebx, 0x666dee86
loop 0x41ac0c
add eax, 0xa5f6c879
add eax, 0x5a0a47d2
mov ebx, eax
add eax, 0x792bb93
sub eax, 0x792bb8e
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x43fcae
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46b5d8
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x43fcf1
push str.SystemFunction040
push dword [0x46b5d8]
call edi
push str.SystemFunction041
push dword [0x46b5d8]
mov dword [0x46b5e0], eax
call edi
mov dword [0x46b5e4], eax
jmp 0x43fcf6
mov eax, dword [0x46b5e4]
cmp dword [0x46b5e0], 0
je 0x43fd07
test eax, eax
jne 0x43fdae
push 0x46b5dc
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x43fdb8
push str.CryptProtectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e0], 0
mov dword [0x46b5e8], eax
jne 0x43fd6c
test eax, eax
jne 0x43fd6c
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fd56
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fd5d
mov esi, 0x80004005
push esi
push 0x28
push str.cryputil.cpp
call fcn.00403821
jmp 0x43fdb8
push str.CryptUnprotectMemory
push dword [0x46b5dc]
call edi
cmp dword [0x46b5e4], 0
mov dword [0x46b5ec], eax
jne 0x43fdae
test eax, eax
jne 0x43fdae
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x43fda2
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x43fda9
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x43fd60
mov dword [0x46b5f0], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x41dbc8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc48
xor eax, eax
mov dword [ebp - 0x3b8], eax
mov dword [ebp - 0x3b4], eax
mov dword [ebp - 0x3b0], eax
mov dword [ebp - 0x3a0], eax
mov dword [ebp - 0x3a8], eax
mov dword [ebp - 0x3ac], eax
mov dword [ebp - 0x3a4], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41dd6d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x3a4]
xor eax, eax
call fcn.004029a0
mov eax, dword [ebp - 0x3a4]
lea edx, [ebp - 0x3a0]
call fcn.00408148
push dword [ebp - 0x3a0]
lea edx, [ebp - 0x3ac]
xor eax, eax
call fcn.004029a0
mov eax, dword [ebp - 0x3ac]
lea edx, [ebp - 0x3a8]
call fcn.00408210
push dword [ebp - 0x3a8]
push 0x41dd80
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b0c
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00402d44
lea eax, [ebp - 0x1d0]
call fcn.00402ad4
lea eax, [ebp - 0x1d0]
call fcn.00402ee8
lea eax, [ebp - 0x3b0]
call fcn.0041ca9c
lea eax, [ebp - 0x3b0]
mov edx, 0x41dd90
call fcn.00404a54
mov edx, dword [ebp - 0x3b0]
lea eax, [ebp - 0x39c]
call fcn.00402d44
lea eax, [ebp - 0x39c]
call fcn.00402ad4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x39c]
call fcn.00404d90
call fcn.00403558
lea eax, [ebp - 0x39c]
call fcn.00402ee8
push 0
lea eax, [ebp - 0x3b4]
call fcn.0041ca9c
lea eax, [ebp - 0x3b4]
mov edx, 0x41dd90
call fcn.00404a54
mov eax, dword [ebp - 0x3b4]
call fcn.00404c44
push eax
call sub.kernel32.dll_WinExec
push 0x5dc
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x3b8]
call fcn.0041ca9c
lea eax, [ebp - 0x3b8]
mov edx, 0x41dd90
call fcn.00404a54
mov eax, dword [ebp - 0x3b8]
call fcn.004080e0
mov eax, dword [ebp - 4]
call fcn.004080e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dd74
lea eax, [ebp - 0x3b8]
mov edx, 7
call fcn.004047b8
lea eax, [ebp - 4]
call fcn.00404794
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428004]
jne 0x40100a
repz ret
jmp fcn.004013a0

Function at 0x40485b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403be3
and dword [ebp - 0x14], 0
cmp dword [0x42a930], 0
mov dword [ebp - 0x18], eax
jne 0x40490e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4049b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4049b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42a930], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42a934], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42a938], eax
call edi
push eax
call esi
mov dword [0x42a940], eax
test eax, eax
je 0x40490e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42a93c], eax
mov eax, dword [0x42a93c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404967
cmp dword [0x42a940], ecx
je 0x404967
push eax
call esi
push dword [0x42a940]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404967
test ebx, ebx
je 0x404967
call edi
test eax, eax
je 0x40495e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40495e
test byte [ebp - 8], 1
jne 0x404967
or dword [ebp + 0x10], 0x200000
jmp 0x40499a
mov eax, dword [0x42a934]
cmp eax, dword [ebp - 0x18]
je 0x40499a
push eax
call esi
test eax, eax
je 0x40499a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40499a
mov eax, dword [0x42a938]
cmp eax, dword [ebp - 0x18]
je 0x40499a
push eax
call esi
test eax, eax
je 0x40499a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42a930]
call esi
test eax, eax
je 0x4049b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4049b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x40768d
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xa]
stosd dword es:[edi], eax
mov ax, word [ecx]
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 8], ax
mov word [ebp - 0x80c], ax
lea eax, [ebp - 0x80a]
push eax
call fcn.0041de40
add esp, 0xc
mov esi, 0x400
push esi
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4076f9
xor al, al
jmp 0x407737
lea eax, [ebp - 0x80c]
push esi
push eax
call fcn.00419522
lea eax, [ebp - 0x80c]
push 0x404390
push eax
call fcn.0041953e
add esp, 0x10
test eax, eax
jne 0x407735
lea eax, [ebp - 0x80c]
push 0x4043a4
push eax
call fcn.0041953e
pop ecx
pop ecx
test eax, eax
je 0x4076f5
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004191d5
leave
ret

Function at 0x407a0a
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, 0x4046b0
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
mov dword [ebp - 0x38], eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 6
mov dword [ebx], eax
pop ecx
xor eax, eax
xor esi, esi
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
mov dword [ebp - 0x40], esi
call edi
mov dword [ebp - 0x3c], eax
or eax, 1
push eax
call edi
mov eax, dword [ebx]
dec eax
dec eax
je 0x407a71
dec eax
je 0x407acb
sub eax, 3
jne 0x407a99
mov dword [ebx], 3
jmp 0x407acb
mov eax, dword [ebp - 0x38]
mov ax, word [eax]
push esi
push esi
push 3
push esi
push 3
mov word [ebp - 0x10], ax
push SysReAllocString
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x407a9d
mov dword [ebx], esi
jmp 0x407acb
push esi
lea ecx, [ebp - 0x40]
push ecx
push 0x18
lea ecx, [ebp - 0x34]
push ecx
push esi
push esi
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x407ac0
cmp dword [ebp - 0x2c], 0xb
je 0x407acb
push dword [ebp - 0x38]
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3c]
call edi
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004191d5
leave
ret 4
Function at 0x40a003
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x100a4
call fcn.00420fc0
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 7
mov esi, ecx
pop ecx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10090], ebx
lea edi, [ebp - 0x1008c]
push 0x48
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10070]
push ebx
push eax
call fcn.0041de40
add esp, 0xc
xor eax, eax
push 7
mov byte [ebp - 0x24], bl
pop ecx
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10094], eax
cmp eax, ebx
jne 0x40a06f
mov dword [ebp - 0x10094], 0x403a30
mov eax, fcn.004064d8
test eax, eax
je 0x40a099
mov eax, dword [esi + 0x10]
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [ebp - 0x10094]
push 3
call fcn.004064d8
mov ebx, eax
test ebx, ebx
jne 0x40a20c
lea eax, [ebp - 0x10090]
push eax
call fcn.00423bd0
mov eax, dword [esi + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [esi]
call fcn.00409b6a
mov ebx, eax
xor edi, edi
cmp ebx, edi
jl 0x40a20c
mov eax, fcn.004064d8
test eax, eax
je 0x40a0e4
push edi
push edi
push edi
push dword [ebp - 0x10094]
push 4
call fcn.004064d8
mov ebx, eax
cmp ebx, edi
jne 0x40a20c
xor ebx, ebx
mov dword [ebp - 0x1009c], ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
sub ecx, edi
sbb eax, dword [ebp - 0x1009c]
cmp eax, ebx
jb 0x40a110
ja 0x40a10b
cmp ecx, 0x10000
jbe 0x40a110
mov ecx, 0x10000
push ebx
lea eax, [ebp - 0x100a4]
push eax
push ecx
lea eax, [ebp - 0x10028]
push eax
push dword [esi]
mov dword [ebp - 0x100a4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a198
push dword [ebp - 0x100a4]
lea eax, [ebp - 0x10028]
push eax
lea eax, [ebp - 0x10090]
push eax
call 0x424740
add edi, dword [ebp - 0x100a4]
push ebx
adc dword [ebp - 0x1009c], ebx
push dword [ebp - 0x1009c]
mov dword [ebp - 0x100a0], edi
push edi
push dword [ebp - 0x10094]
push 4
call fcn.004064d8
mov ebx, eax
test ebx, ebx
jne 0x40a20c
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x1009c]
cmp ecx, dword [eax + 0x14]
ja 0x40a1bb
jb 0x40a191
cmp edi, dword [eax + 0x10]
jae 0x40a1bb
xor ebx, ebx
jmp 0x40a0ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x40a1b2
and ebx, 0xffff
or ebx, 0x80070000
test ebx, ebx
js 0x40a20c
mov ebx, 0x80004005
jmp 0x40a20c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10090]
push eax
call 0x424850
mov esi, dword [esi + 0x10]
push 0x20
add esi, 0x18
pop ecx
lea edi, [ebp - 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40a1e2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a1b4
mov eax, fcn.004064d8
test eax, eax
je 0x40a20c
push 0
push dword [ebp - 0x1009c]
push dword [ebp - 0x100a0]
push dword [ebp - 0x10094]
push 5
call fcn.004064d8
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004191d5
leave
ret
Function at 0x40ab0c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x42a050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x30], esi
push dword [eax + 0xc]
push dword [eax + 8]
push dword [ebx]
call fcn.00409b6a
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x40ac51
push esi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ab86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, esi
jle 0x40ab71
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], esi
jl 0x40ac51
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40ac51
cmp dword [ebp - 0x30], 0x24
je 0x40ab98
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40ac51
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, esi
jne 0x40abbe
mov dword [ebp - 0x2c], 0x8007000e
jmp 0x40ac51
push 9
pop ecx
lea esi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push 0x24
xor edi, edi
pop esi
mov dword [ebp - 0x30], edi
push edi
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
sub eax, esi
push eax
mov eax, dword [ebp - 0x34]
add eax, esi
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40ac01
add esi, dword [ebp - 0x30]
cmp dword [ebp - 0x30], edi
jne 0x40abce
cmp esi, dword [ebp - 0x10]
je 0x40ac29
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40ac32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40ac1b
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40ac32
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40ac32
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x34], edi
je 0x40ac51
push dword [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x40ac51
call fcn.00409a29
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
pop edi
xor ecx, ebp
pop esi
call fcn.004191d5
leave
ret

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

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40e4a7
mov dword [ecx*4 + 0x42d300], eax
inc ecx
cmp ecx, 0x100
jb 0x40e4a2
pop esi
ret
Function at 0x4164c7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jb 0x416619
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x416505
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41650a
inc edi
cmp edi, dword [ebp - 8]
jb 0x4164fc
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x4165f9
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x41658c
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x416536
cmp cl, 0xff
jne 0x4165bb
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x4165cc
movzx esi, byte [edx + 0x404eb0]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x41657c
cmp bl, 0xff
jne 0x4165c9
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x416554
dec ecx
shl edx, cl
and edx, 7
je 0x416523
movzx ecx, byte [edx + 0x404eb0]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x404ea8], 0
mov cl, byte [ebx + 4]
je 0x4165b8
test cl, cl
je 0x4165b8
cmp cl, 0xff
jne 0x416523
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4164f7
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4164f7
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret 0xc

Function at 0x4191d5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a050]
jne 0x4191df
repz ret
jmp fcn.0041ad54