joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418fd9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x492e58]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419019
cmp byte [ebx], 0xa
jne 0x419019
or byte [eax + edi + 0x28], 4
jmp 0x41901e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41911c
mov al, byte [edx]
cmp al, 0x1a
je 0x4190fe
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41904d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x419072
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41907c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41902f
jmp 0x41911c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4190f9
cmp dword [ebp - 0xc], 0
je 0x4190f9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x492e58]
test byte [eax + edi + 0x28], 0x48
je 0x4190d3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4190be
mov byte [esi], dl
jmp 0x4190cf
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x492e58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41911c
cmp byte [ebp - 1], 0xa
jne 0x4190e2
cmp esi, ebx
jne 0x4190e2
mov byte [esi], 0xa
jmp 0x41911b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041307a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41911c
mov byte [esi], 0xd
jmp 0x41911b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x492e58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419118
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41911c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419125
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x492e58]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419168
cmp word [esi], dx
jne 0x419168
or byte [edi + eax + 0x28], 4
jmp 0x41916d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4192c0
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4192a0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4191af
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4191e5
cmp eax, edx
jae 0x4191f1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419187
jmp 0x4192c0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41929c
cmp dword [ebp - 0x14], 0
je 0x41929c
mov eax, dword [ebx*4 + 0x492e58]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x419274
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41923d
mov word [esi], cx
jmp 0x419270
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x492e58]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x492e58]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x492e58]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4192c0
pop ebx
cmp word [ebp - 4], bx
jne 0x419285
cmp esi, dword [ebp + 0xc]
jne 0x419285
mov word [esi], bx
jmp 0x4192bd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041307a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4192c0
push 0xd
jmp 0x4192b9
mov ecx, dword [ebx*4 + 0x492e58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4192b7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4192c0
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x1693700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0169378f
jae 0x169370e
xor ecx, ecx
call fcn.0169378f
jae 0x169373d
xor eax, eax
call fcn.0169378f
jae 0x169374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0169378f
adc al, al
jae 0x169372f
jne 0x1693779
stosb byte es:[edi], al
jmp 0x1693711
call fcn.0169379b
sub ecx, ebx
jne 0x1693756
call fcn.01693799
jmp 0x1693775
lodsb al, byte [esi]
shr eax, 1
je 0x1693783
adc ecx, ecx
jmp 0x1693772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.01693799
cmp eax, 0x7d00
jae 0x1693772
cmp ah, 5
jae 0x1693773
cmp eax, 0x7f
ja 0x1693774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1693711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x4081e0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
mov edi, edx
call fcn.004082c0
mov ebx, eax
test ebx, ebx
jne 0x408200
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 4], eax
test edi, edi
je 0x408234
mov eax, dword [ebp + 0xc]
sub eax, esi
mov dword [ebp + 0xc], eax
add eax, esi
mov cl, byte [esi]
xor edx, edx
rol cl, 4
div dword [ebp - 4]
mov eax, dword [ebp + 0xc]
xor cl, byte [edx + ebx]
not cl
mov byte [esi], cl
inc esi
sub edi, 1
jne 0x408218
push ebx
call fcn.004a104b
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408250
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edx
mov esi, ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push 4
push edi
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x4082b2
push ebx
push edi
push edi
push edi
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4082aa
mov edx, dword [ebp - 8]
mov ecx, ebx
push edi
push dword [ebp - 4]
call fcn.004081e0
add esp, 8
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4082c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0x7863513
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
call fcn.004a1050
mov esi, eax
add esp, 4
test esi, esi
je 0x408308
xor edx, edx
test ebx, ebx
je 0x408308
sub edi, esi
mov eax, edx
lea ecx, [edx + esi]
and eax, 3
inc edx
mov al, byte [ebp + eax - 4]
xor al, byte [edi + ecx]
mov byte [ecx], al
cmp edx, ebx
jb 0x4082f0
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408410
Capabilities:
Check if file exists
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7930
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 8
lea ecx, [ebp - 0x40]
call fcn.00404910
mov dword [ebp - 4], 0
lea eax, [ebp - 0x120]
push 0x400
push eax
lea ecx, [ebp - 0x40]
call fcn.004035c0
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403420
push 0x400
push dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
sete bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.00403cd0
test bl, bl
jne 0x40862a
cmp dword [ebp - 0x28], 8
lea eax, [ebp - 0x3c]
cmovae eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40862a
push ecx
push 0
lea eax, [ebp - 0x100]
push eax
lea ecx, [ebp - 0x40]
call fcn.00408730
mov byte [ebp - 4], 4
sub esp, 8
lea ecx, [ebp - 0xd0]
call fcn.00404910
mov byte [ebp - 4], 5
xor eax, eax
push 0x44
push eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x164]
push eax
mov dword [ebp - 0x114], 0
call fcn.004a3000
xor eax, eax
mov dword [ebp - 0x164], 0x44
push eax
mov word [ebp - 0x134], ax
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x138], 1
call fcn.0040a070
add esp, 0x14
mov byte [ebp - 4], 6
lea eax, [ebp - 0x101]
push 0
push eax
push str.cmd.exe
lea ecx, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x4e7908
mov dword [ebp - 0x78], 0x4e793c
call fcn.00404190
mov byte [ebp - 4], 8
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x70]
call fcn.00408950
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa0]
call fcn.00404c20
cmp dword [ebp - 0x28], 8
lea ecx, [ebp - 0x3c]
lea eax, [ebp - 0x6c]
cmovae ecx, dword [ebp - 0x3c]
cmp dword [ebp - 0x58], 8
push ecx
cmovae eax, dword [ebp - 0x6c]
push eax
lea eax, [ebp - 0xd0]
push str.__s___c_del___s_
push eax
call fcn.004086a0
add esp, 0x10
lea ecx, [ebp - 0xd0]
call fcn.00403420
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x164]
push ecx
push 0
push 0
push 0x40
push 0
push 0
push 0
push dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4085fe
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00404c20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xd0]
call fcn.00404850
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.00404850
jmp 0x40862c
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00404850
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a103a
mov esp, ebp
pop ebp
ret
Function at 0x40a070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b80c1
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x70]
sub esp, 8
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x78], 0
call fcn.004091f0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x70]
mov eax, dword [ebp + 0xc]
push 0x104
cmp eax, 1
jne 0x40a1f0
lea eax, [ebp - 0x84]
push eax
call fcn.00409470
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403f10
push 0x104
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
sete bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00409a90
test bl, bl
je 0x40a129
lea ecx, [ebp - 0x2c]
call fcn.00409b70
push 0x5270e4
lea eax, [ebp - 0x2c]
push eax
call fcn.004a315a
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4e7908
push eax
push str.sysnative
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e793c
call fcn.00404190
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push 0x5c
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x8c], esp
mov dword [ebp - 0x90], ecx
push 0
push eax
mov dword [ecx], 0x4e7908
mov dword [ecx + 0x28], 0x4e793c
call fcn.00406fd0
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
call fcn.004092d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00404c20
push 0x4e7a30
lea ecx, [ebp - 0x70]
call fcn.00409f30
push 0
push eax
mov ecx, esi
mov dword [esi], 0x4e7908
mov dword [esi + 0x28], 0x4e793c
call fcn.00406fd0
mov byte [ebp - 4], 1
mov dword [ebp - 0x78], 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.00404c20
mov eax, esi
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.004a103a
mov esp, ebp
pop ebp
ret
cmp eax, 2
lea eax, [ebp - 0x84]
push eax
jne 0x40a26f
call fcn.00409470
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403f10
push 0x104
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
sete bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00409a90
test bl, bl
jne 0x40a113
push 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x40], 0x4e7908
push eax
push str.syswow64
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e793c
call fcn.00404190
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.004093f0
jmp 0x40a189
call fcn.00409470
mov byte [ebp - 4], 0xc
mov ecx, dword [eax]
mov byte [eax + 4], 1
call fcn.00403f10
push 0x104
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
sete bl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.00409a90
test bl, bl
je 0x40a195
jmp 0x40a113
Function at 0x40fd50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9c20
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
mov eax, dword [ebp + 8]
je 0x40fdeb
test eax, eax
je 0x40fd93
mov dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fe4e
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x44], 0x4e7908
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0x4e793c
call fcn.00406fd0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x44]
push 1
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040f660
push 0x527194
lea eax, [ebp - 0x9c]
push eax
call fcn.004a315a
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40fe4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x40fe4e
push 0
lea ecx, [esi + 0xc]
mov dword [ebp - 0x44], 0x4e7908
push ecx
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], 0x4e793c
call fcn.00406fd0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x44]
push 1
push ebx
push eax
lea ecx, [ebp - 0x9c]
call fcn.0040f420
push 0x527208
lea eax, [ebp - 0x9c]
push eax
call fcn.004a315a
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a103a
mov esp, ebp
pop ebp
ret 4

Function at 0x410cf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9ff0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0xc], 0xffffffff
lea eax, [ebp - 0x98]
mov ecx, dword [esi + 4]
mov edx, 1
cmovne edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x98], 0
test ecx, ecx
je 0x410d9b
push eax
push edx
push edi
call fcn.0049af61
test al, al
jne 0x410df1
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e7908
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e793c
call fcn.00406fd0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x94]
call fcn.0040f660
push 0x527194
lea eax, [ebp - 0x94]
push eax
call fcn.004a315a
push 0
push eax
push edx
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410df1
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e7908
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e793c
call fcn.00406fd0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x90]
call fcn.0040f340
push 0x527208
lea eax, [ebp - 0x90]
push eax
call fcn.004a315a
mov eax, dword [ebp - 0x98]
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.004a103a
mov esp, ebp
pop ebp
ret 8
Function at 0x410e20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba040
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x52a0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 0xc], 0xffffffff
lea eax, [ebp - 0x9c]
mov ecx, dword [esi + 4]
mov edx, 1
cmovne edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x9c], 0
test ecx, ecx
je 0x410ecb
push eax
push edx
push edi
call fcn.0049af61
test al, al
jne 0x410f21
push 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e7908
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e793c
call fcn.00406fd0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x98]
call fcn.0040f660
push 0x527194
lea eax, [ebp - 0x98]
push eax
call fcn.004a315a
push 0
push eax
push edx
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x410f21
push eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x40], 0x4e7908
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], 0x4e793c
call fcn.00406fd0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x40]
push 1
push eax
lea ecx, [ebp - 0x98]
call fcn.0040f340
push 0x527208
lea eax, [ebp - 0x98]
push eax
call fcn.004a315a
mov eax, dword [ebp - 0x9c]
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.004a103a
mov esp, ebp
pop ebp
ret 8

Function at 0x4118c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba2f2
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x52a0b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov byte [ebp - 4], 1
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov byte [ebp - 4], 2
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov byte [ebp - 4], 3
lea eax, [ecx + 0x30]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 5
lea eax, [ecx + 0x34]
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov byte [ebp - 4], 7
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov byte [ebp - 4], 8
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0
mov byte [ebp - 4], 9
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x58], 0
mov byte [ebp - 4], 0xa
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0
mov byte [ebp - 4], 0xb
mov dword [ecx + 0x68], 0
mov byte [ebp - 4], 0xc
mov dword [ecx + 0x6c], 0
mov byte [ebp - 4], 0xd
mov dword [ecx + 0x70], 0
mov byte [ebp - 4], 0xe
mov dword [ecx + 0x74], 0
mov byte [ebp - 4], 0xf
mov dword [ecx + 0x78], 0
mov byte [ebp - 4], 0x10
mov dword [ecx + 0x7c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x412840
Capabilities:
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4128e9
push 0x400
call fcn.004a1050
add esp, 4
mov dword [esi], eax
xor edx, edx
lea ecx, [ecx]
mov eax, edx
shr eax, 1
test dl, 1
je 0x41286e
xor eax, 0xedb88320
test al, 1
je 0x41287b
shr eax, 1
xor eax, 0xedb88320
jmp 0x41287d
shr eax, 1
test al, 1
je 0x41288a
shr eax, 1
xor eax, 0xedb88320
jmp 0x41288c
shr eax, 1
test al, 1
je 0x412899
shr eax, 1
xor eax, 0xedb88320
jmp 0x41289b
shr eax, 1
test al, 1
je 0x4128a8
shr eax, 1
xor eax, 0xedb88320
jmp 0x4128aa
shr eax, 1
test al, 1
je 0x4128b7
shr eax, 1
xor eax, 0xedb88320
jmp 0x4128b9
shr eax, 1
test al, 1
je 0x4128c6
shr eax, 1
xor eax, 0xedb88320
jmp 0x4128c8
shr eax, 1
test al, 1
je 0x4128d5
shr eax, 1
xor eax, 0xedb88320
jmp 0x4128d7
shr eax, 1
mov ecx, dword [esi]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, 0xff
jle 0x412860
pop esi
ret

Function at 0x4128f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov eax, ecx
push edi
mov dword [ebp - 4], eax
call fcn.00412840
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x14]
lea ebx, [esi*2 + 2]
cmp ebx, dword [edi + 0x20]
jae 0x412919
cmp dword [edi + 0x1c], 0
jne 0x412936
push dword [edi + 0x1c]
call fcn.004a104b
and ebx, 0xffffffc0
lea eax, [ebx + 0x40]
push eax
mov dword [edi + 0x20], eax
call fcn.004a1050
add esp, 8
mov dword [edi + 0x1c], eax
push 3
push dword [edi + 0x20]
mov ecx, edi
push dword [edi + 0x1c]
call fcn.00408320
mov ecx, dword [edi + 0x1c]
or ebx, 0xffffffff
mov edi, dword [ebp - 4]
test esi, esi
je 0x41296a
mov edx, dword [edi]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edx + eax*4]
sub esi, 1
jne 0x412954
mov eax, dword [edi]
test eax, eax
je 0x412979
push eax
call fcn.004a104b
add esp, 4
not ebx
mov dword [edi], 0
mov dword [ebp + 8], ebx
movzx eax, bl
rol eax, 3
xor al, 0x74
mov dword [ebp - 4], ebx
mov byte [ebp + 8], al
movzx eax, byte [ebp + 9]
ror eax, 5
xor al, 0x74
mov byte [ebp + 9], al
movzx eax, byte [ebp + 0xa]
rol eax, 7
xor al, 0x74
mov byte [ebp + 0xa], al
movzx eax, byte [ebp + 0xb]
ror eax, 3
xor al, 0x74
mov byte [ebp + 0xb], al
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp + 8]
push eax
call fcn.004a6cc9
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4