joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dc670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61d5d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 0
mov edx, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
mov edi, edx
xor al, al
push edx
rep stosb byte es:[edi], al
call fcn.005b3848
add esp, 4
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.004dcea0
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x4dcfe0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x62606b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
call fcn.004dd160
xor eax, eax
mov dword [esp + 0x14], 1
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esp + 0x14], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4dd280
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, ecx
call fcn.004dd450
lea eax, [esi + 0x60]
mov dword [eax + 0x48], 0x10
mov byte [eax + 0x41], 1
mov dword [eax + 0x4c], eax
mov eax, dword [esi + 0xac]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, esi
pop esi
ret
Function at 0x4de4e0
Capabilities:
Encrypt data using twofish

Disassembly:
mov ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, eax
shl ecx, 8
or eax, ecx
mov ecx, dword [esp + 4]
sub ecx, 2
je 0x4de59c
sub ecx, 1
je 0x4de554
sub ecx, 1
jne 0x4de627
mov edx, eax
shr edx, 0x18
movzx ecx, byte [edx + 0x67a670]
mov edx, eax
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x67a570]
shl ecx, 8
xor ecx, edx
mov edx, eax
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x67a570]
shl ecx, 8
movzx eax, al
xor ecx, edx
movzx edx, byte [eax + 0x67a670]
shl ecx, 8
xor ecx, edx
xor ecx, dword [esi + 0x18]
mov eax, ecx
mov ecx, eax
shr ecx, 0x18
movzx edx, byte [ecx + 0x67a570]
mov ecx, eax
shr ecx, 0x10
movzx ecx, cl
movzx ecx, byte [ecx + 0x67a570]
shl edx, 8
xor edx, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x67a670]
shl edx, 8
movzx eax, al
xor edx, ecx
movzx ecx, byte [eax + 0x67a670]
shl edx, 8
xor edx, ecx
xor edx, dword [esi + 0x10]
mov eax, edx
mov edx, eax
shr edx, 0x18
movzx ecx, byte [edx + 0x67a670]
mov edx, eax
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x67a570]
shl ecx, 8
xor ecx, edx
mov edx, eax
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x67a670]
movzx eax, al
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0x67a570]
shl ecx, 8
xor ecx, edx
xor ecx, dword [esi + 8]
mov edx, ecx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [edx + 0x67a670]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + 0x67a670]
shl eax, 8
xor eax, edx
mov edx, ecx
shr edx, 8
movzx edx, dl
movzx edx, byte [edx + 0x67a570]
shl eax, 8
xor eax, edx
movzx ecx, cl
movzx edx, byte [ecx + 0x67a570]
shl eax, 8
xor eax, edx
xor eax, dword [esi]
ret
Function at 0x4df4a0
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [edx]
push esi
mov esi, dword [edx + 4]
push edi
mov edi, dword [ecx + 0x2c]
xor edx, edx
bswap eax
bswap esi
test edi, edi
je 0x4df507
mov ecx, dword [ecx + 0x28]
push ebx
push ebp
lea ecx, [ecx]
mov ebx, esi
shr ebx, 5
mov ebp, esi
shl ebp, 4
xor ebx, ebp
add ebx, esi
mov ebp, edx
and ebp, 3
mov ebp, dword [ecx + ebp*4]
add ebp, edx
xor ebx, ebp
add eax, ebx
mov ebx, eax
shr ebx, 5
mov ebp, eax
shl ebp, 4
xor ebx, ebp
sub edx, 0x61c88647
mov ebp, edx
shr ebp, 0xb
and ebp, 3
mov ebp, dword [ecx + ebp*4]
add ebx, eax
add ebp, edx
xor ebx, ebp
add esi, ebx
cmp edx, edi
jne 0x4df4c0
pop ebp
pop ebx
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4df513
mov edx, dword [ecx]
jmp 0x4df515
xor edx, edx
bswap eax
xor eax, edx
mov edx, dword [esp + 0x14]
mov dword [edx], eax
test ecx, ecx
je 0x4df538
lea eax, [ecx + 4]
test eax, eax
je 0x4df538
mov eax, dword [eax]
bswap esi
xor esi, eax
pop edi
mov dword [edx + 4], esi
pop esi
ret 0xc
bswap esi
xor eax, eax
xor esi, eax
pop edi
mov dword [edx + 4], esi
pop esi
ret 0xc
Function at 0x4e1950
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6272f0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6e163c]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push 1
mov dword [esp + 0x20], eax
mov dword [esp + 8], eax
push 0x6e7048
lea eax, [esp + 0xc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x10], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x7c]
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], vtable.CryptoPP::ArraySink.1.0
mov dword [esp + 0x20], vtable.CryptoPP::ArraySink.0
call edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.005b8641
mov esp, ebp
pop ebp
ret 8

Function at 0x4e1a30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x627320
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6e163c]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ecx]
xor edx, edx
push 1
push 0x6e7048
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
push eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x34], eax
push edx
mov edx, dword [esi + 0x80]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], vtable.CryptoPP::ArraySink.1.0
mov dword [esp + 0x30], vtable.CryptoPP::ArraySink.0
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.005b8641
mov esp, ebp
pop ebp
ret 8
Function at 0x4e6c31
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
xor ecx, ecx
inc ecx
cmp dword [esi + ecx*4], eax
jne 0x4e6c4b
inc ecx
cmp ecx, 0x10
jl 0x4e6c40
cmp ecx, 0x10
jne 0x4e6cc0
movzx edx, byte [esi + 2]
movzx ecx, byte [esi + 1]
movzx eax, al
lea esi, [edx + edx]
add eax, eax
movzx dx, byte [eax + 0x719350]
movzx ax, byte [eax + 0x719351]
add ecx, ecx
movzx bx, byte [ecx + 0x719150]
movzx cx, byte [ecx + 0x719151]
shl dx, 6
or dx, bx
movzx bx, byte [esi + 0x719350]
shl ax, 6
or ax, cx
movzx cx, byte [esi + 0x719351]
shl dx, 5
or dx, bx
shl ax, 5
or ax, cx
mov dword [ebp - 8], 0xaaaaaaaa
movzx edx, dx
movzx ebx, ax
jmp 0x4e6d51
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
call fcn.004e667a
mov eax, dword [ebp - 4]
add esp, 0xc
cmp ax, word [ebp - 0xc]
je 0x4e6cf5
push dword [ebp - 0xc]
lea ecx, [ebp - 0x24]
call fcn.004e6567
push esi
lea ecx, [ebp - 0x24]
call fcn.004e6597
pop ecx
pop ecx
mov dword [ebp - 8], eax
jmp 0x4e6cf9
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
mov edx, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
mov dword [ebp - 0x14], edx
call fcn.004e6920
mov ebx, dword [ebp - 0xc]
pop ecx
pop ecx
test eax, eax
je 0x4e6d4e
mov eax, dword [ebp - 4]
cmp ax, bx
je 0x4e6d4a
push ebx
lea ecx, [ebp - 0x24]
call fcn.004e6567
push esi
lea ecx, [ebp - 0x24]
call fcn.004e6597
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x14]
je 0x4e6d4e
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 1
jl 0x4e6cfd
jmp 0x4e6d4e
and dword [ebp - 8], 0
mov edx, dword [ebp - 4]
cmp dx, bx
jae 0x4e6d6f
movzx eax, bx
movzx eax, ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
movzx ebx, dx
mov edx, dword [ebp - 4]
xor eax, 0x55555555
jmp 0x4e6d72
mov eax, dword [ebp - 8]
mov ecx, eax
shr ecx, 8
mov byte [edi + 5], cl
mov ecx, eax
mov byte [edi + 2], bl
shr ebx, 8
mov byte [edi], dl
shr edx, 8
shr ecx, 0x10
mov byte [edi + 4], al
shr eax, 0x18
pop esi
mov byte [edi + 3], bl
mov byte [edi + 1], dl
mov byte [edi + 6], cl
mov byte [edi + 7], al
pop ebx
leave
ret
Function at 0x4f582b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
cmp dword [ebx + 0x60], eax
jne 0x4f584b
mov ecx, dword [ebx + 0x4080]
add ecx, dword [ebx + 0x7c]
je 0x4f584e
xor eax, eax
inc eax
mov esi, ebx
mov dword [ebx + 0x8534], eax
call fcn.004e8d50
test eax, eax
je 0x4f5867
or eax, 0xffffffff
jmp 0x4f59c5
mov esi, dword [ebx + 0x8598]
push edi
mov edi, dword [ebx + 0x74]
call fcn.004e948c
mov eax, dword [ebx + 0x85c0]
xor esi, esi
cmp eax, esi
jbe 0x4f59c2
shl eax, 2
push eax
call fcn.005b3680
pop ecx
mov dword [ebx + 0x87ec], eax
cmp eax, esi
je 0x4f59c9
mov ecx, dword [ebx + 0x85c0]
shl ecx, 2
push ecx
push esi
push eax
call fcn.005b57c0
add esp, 0xc
mov dword [ebp + 8], esi
cmp dword [ebx + 0x85c0], esi
jbe 0x4f59c2
mov eax, dword [ebx + 0x85e4]
imul eax, dword [ebx + 0x64]
imul eax, dword [ebx + 0x85e0]
cmp eax, 0x4000000
jb 0x4f5982
lea eax, [ebp - 0x410]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor esi, esi
cmp eax, esi
je 0x4f59c9
cmp eax, edi
jae 0x4f59c9
lea eax, [ebp - 0x208]
push eax
push esi
push 0x68d2f4
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4f59c9
lea edx, [ebp - 0x208]
lea eax, [ebp - 0x207]
cmp word [ebp + esi*2 - 0x208], 0
je 0x4f5955
mov cl, byte [eax - 1]
test cl, cl
je 0x4f5945
mov byte [edx], cl
inc edx
mov cl, byte [eax]
test cl, cl
je 0x4f594e
mov byte [edx], cl
inc edx
inc esi
inc eax
inc eax
cmp esi, edi
jb 0x4f5930
mov byte [ebp + esi - 0x208], 0
mov esi, dword [ebp + 8]
push 0x68d2fc
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebx + 0x87ec]
shl esi, 2
add eax, esi
push eax
call fcn.004e889a
add esp, 0xc
jmp 0x4f5995
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x87ec]
shl esi, 2
add eax, esi
call fcn.004e8ab8
test eax, eax
jne 0x4f59c9
mov eax, dword [ebx + 0x87ec]
mov ecx, dword [ebx + 0x85bc]
mov edi, dword [eax + esi]
mov esi, dword [ecx + esi]
call fcn.004e948c
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebx + 0x85c0]
jb 0x4f58c1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
or eax, 0xffffffff
jmp 0x4f59c4
Function at 0x503fc0
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x255]
push 0x683d48
push esi
call fcn.005b347f
add esp, 8
test eax, eax
je 0x503fea
push eax
call fcn.005b3054
add esp, 4
pop edi
mov al, 1
pop esi
ret
cmp byte [edi + 0x364], 0
je 0x503ff8
pop edi
xor al, al
pop esi
ret
push 0x63a9c8
push esi
call fcn.005b347f
mov esi, eax
add esp, 8
test esi, esi
je 0x503ff3
push esi
push 1
push 4
push str.EPKD
call fcn.005b7cae
push esi
push 1
push 4
push 0x63a9b0
call fcn.005b7cae
push esi
push 1
push 4
add edi, 0x150
push edi
call fcn.005b7cae
push esi
call fcn.005b3054
add esp, 0x34
pop edi
mov al, 1
pop esi
ret
Function at 0x504250
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x60b4f6
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x6e163c]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov ebx, ecx
lea ecx, [esp + 0x30]
call fcn.0050b100
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edi, [ebx + 0x255]
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x190], 0
call fcn.0050b4d0
test eax, eax
jne 0x5042ed
add ebx, 0x155
push ebx
push str.EncryptIndex:_Cannot_open_pack_index_file___s
call fcn.0050c7b0
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x180], 0xffffffff
call fcn.0050b450
xor al, al
jmp 0x504449
lea ecx, [esp + 0x30]
call fcn.0050b370
push eax
call fcn.005b1f5c
add esp, 4
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.0050b370
mov ecx, dword [esp + 0x18]
push eax
push ecx
push esi
call fcn.005b5280
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.0050b650
mov ebp, dword [0x6f0840]
push 0x6d7004
lea ecx, [esp + 0x34]
mov byte [esp + 0x184], 1
call fcn.0050b370
push eax
push esi
lea edx, [esp + 0x28]
push edx
mov ecx, ebp
call fcn.0050bd50
test al, al
jne 0x504387
add ebx, 0x155
push ebx
push str.EncryptIndex:_Cannot_encrypt___s
call fcn.0050c7b0
add esp, 8
test esi, esi
je 0x504371
push esi
call fcn.005b293b
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], 0
call fcn.0050c110
jmp 0x5042d2
lea ecx, [esp + 0x30]
call fcn.0050b3b0
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call ebp
test eax, eax
je 0x504396
push 0x63a9c8
push edi
call fcn.005b347f
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x5043bf
add ebx, 0x155
push ebx
push str.EncryptIndex:_Cannot_open_file_for_writing___s
jmp 0x50435c
mov eax, dword [esp + 0x1c]
push ebp
push 1
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], eax
call fcn.0050b550
mov ecx, dword [esp + 0x1c]
push eax
push ecx
call fcn.005b7cae
add esp, 0x10
cmp eax, 1
je 0x50440c
push edi
push str.Encryptindex:_Cannot_write_to_file___s
call fcn.0050c7b0
add esp, 8
test esi, esi
je 0x504401
push esi
call fcn.005b293b
add esp, 4
push ebp
call fcn.005b3054
jmp 0x50436e
push ebp
call fcn.005b3054
push esi
mov byte [ebx + 0x154], 1
call fcn.005b293b
add esp, 8
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], 0
call fcn.0050c110
lea ecx, [esp + 0x30]
mov dword [esp + 0x180], 0xffffffff
call fcn.0050b450
mov al, 1
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.005b8641
add esp, 0x170
ret

Function at 0x5044a0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
call fcn.00504240
test al, al
je 0x5044f1
cmp dword [esi], 0
jne 0x5044cf
cmp dword [esi + 0x1c], 0x10
jb 0x5044bc
mov eax, dword [esi + 8]
jmp 0x5044bf
lea eax, [esi + 8]
push 0x63ac60
push eax
call fcn.005b347f
add esp, 8
mov dword [esi], eax
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 8]
push eax
push 1
push ecx
push esi
call fcn.005b7cae
push esi
push 0x63ac5c
call fcn.005b8ece
add esp, 0x18
pop esi
ret 8
Function at 0x508750
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
jb 0x50875f
mov edx, dword [eax + 4]
jmp 0x508762
lea edx, [eax + 4]
push esi
mov esi, dword [eax + 0x14]
add esi, edx
xor eax, eax
cmp edx, esi
jae 0x508781
push edi
nop
movzx edi, byte [edx]
imul eax, eax, 0x1000193
inc edx
xor eax, edi
cmp edx, esi
jb 0x508770
pop edi
xor edx, edx
div dword [ecx + 4]
pop esi
mov eax, edx
ret 4
Function at 0x509140
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, ecx
mov ecx, dword [ebx + 4]
add ecx, 4
cmp dword [ecx + 0x18], 0x10
push edi
jb 0x50915a
mov eax, dword [ecx + 4]
jmp 0x50915d
lea eax, [ecx + 4]
mov ecx, dword [ecx + 0x14]
add ecx, eax
xor edi, edi
cmp eax, ecx
jae 0x509180
jmp 0x509170
movzx edx, byte [eax]
imul edi, edi, 0x1000193
inc eax
xor edi, edx
cmp eax, ecx
jb 0x509170
cmp dword [esi], 0
je 0x509193
mov eax, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.005090f0
jmp 0x5091c3
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, esi
call fcn.005048d0
cmp dword [esi + 4], eax
lea ecx, [esi + 4]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
jb 0x5091b1
mov eax, ecx
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, esi
call fcn.005046a0
mov ecx, esi
call fcn.005086a0
mov eax, edi
xor edx, edx
div dword [esi + 4]
mov eax, dword [esi]
pop edi
lea ecx, [eax + edx*4]
mov edx, dword [ebx + 4]
mov dword [ebx + 4], 0
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [esp + 0xc]
mov dword [ecx], edx
inc dword [esi + 0x10]
mov dword [esi + 0x18], ecx
pop esi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop ebx
ret 0xc

Function at 0x509200
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push 0xffffffffffffffff
push 0x60bc78
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esp + 0x34]
cmp dword [ebx + 0x18], 0x10
jb 0x509238
mov eax, dword [ebx + 4]
jmp 0x50923b
lea eax, [ebx + 4]
mov ecx, dword [ebx + 0x14]
add ecx, eax
xor ebp, ebp
cmp eax, ecx
jae 0x509256
movzx edx, byte [eax]
imul ebp, ebp, 0x1000193
inc eax
xor ebp, edx
cmp eax, ecx
jb 0x509246
xor edx, edx
mov eax, ebp
div dword [esi + 4]
mov eax, dword [esi]
push ebx
mov ecx, esi
lea edi, [eax + edx*4]
push edi
call fcn.00508830
mov ecx, eax
xor eax, eax
cmp ecx, eax
je 0x509280
mov eax, dword [esp + 0x30]
mov dword [eax + 4], ecx
mov byte [eax + 8], 0
jmp 0x5092f3
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], eax
call fcn.005089b0
mov ecx, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
push ecx
lea edx, [ebx + 4]
push edx
push 0
call fcn.00508a20
mov eax, dword [esi + 0x10]
add esp, 0xc
inc eax
push eax
mov ecx, esi
mov byte [esp + 0x21], 1
call fcn.005090f0
test al, al
je 0x5092d7
mov eax, ebp
xor edx, edx
div dword [esi + 4]
mov ecx, dword [esi]
lea edi, [ecx + edx*4]
mov edx, dword [edi]
mov dword [ebx], edx
mov dword [edi], ebx
inc dword [esi + 0x10]
cmp edi, dword [esi + 0x18]
jae 0x5092e8
mov dword [esi + 0x18], edi
mov eax, dword [esp + 0x30]
mov dword [eax + 4], ebx
mov byte [eax + 8], 1
mov dword [eax], edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
Function at 0x509a60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60be08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0xc], ebx
cmp esi, ebx
je 0x509a98
lea eax, [esi + 4]
jmp 0x509a9a
xor eax, eax
push eax
call fcn.0050ca90
add esp, 4
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.004103e1
mov dword [esp + 0x38], ebx
cmp eax, ebx
je 0x509abc
add eax, 4
jmp 0x509abe
xor eax, eax
mov esi, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00403c48
cmp dword [esp + 0x2c], 0x10
mov dword [esp + 0x10], vtable.CFilename.0
jb 0x509af6
mov ecx, dword [esp + 0x18]
push ecx
call fcn.005b2946
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x509d60
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push 0xffffffffffffffff
push 0x60be78
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6e163c]
xor eax, esp
mov dword [esp + 0x34], eax
push ebp
push esi
push edi
mov eax, dword [0x6e163c]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
mov esi, ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ecx
test eax, eax
je 0x509db0
add eax, 4
jmp 0x509db2
xor eax, eax
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
call fcn.00403c48
mov dword [esp + 0x24], vtable.CFilename.0
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x54], 0
call fcn.0050ca90
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
add esp, 4
cmp edi, 0x10
jae 0x509e03
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
lea edx, [ecx + eax]
xor ecx, ecx
cmp eax, edx
jae 0x509e24
movzx ebp, byte [eax]
imul ecx, ecx, 0x1000193
inc eax
xor ecx, ebp
cmp eax, edx
jb 0x509e10
mov ebp, dword [esp + 0x10]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x20]
mov dword [esp + 0x14], ecx
push eax
lea ecx, [esi + 0x20]
call fcn.005099f0
mov esi, dword [eax + 4]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
test esi, esi
je 0x509e5e
mov eax, dword [esi + 0x34]
sub eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
test eax, eax
jg 0x509e7c
mov dword [ebp], 0
mov dword [esp + 0x24], vtable.CFilename.0
cmp edi, 0x10
jb 0x509e78
mov edx, dword [esp + 0x2c]
push edx
call fcn.005b2946
add esp, 4
xor al, al
jmp 0x509eaf
mov eax, dword [esi + 0x34]
sub eax, dword [esi + 0x30]
jne 0x509e8d
call fcn.005b331a
mov edi, dword [esp + 0x40]
mov ecx, dword [esi + 0x30]
mov dword [ebp], ecx
mov dword [esp + 0x24], vtable.CFilename.0
cmp edi, 0x10
jb 0x509ead
mov edx, dword [esp + 0x2c]
push edx
call fcn.005b2946
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.005b8641
add esp, 0x44
ret 0xc
Function at 0x50b250
Capabilities:
Get system information on windows
Print debug messages
Read file via mapping

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x24
push esi
mov esi, ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x130], ecx
test eax, eax
jne 0x50b26e
mov eax, dword [esi + 0x114]
mov edx, eax
add edx, ecx
mov dword [esi + 0x134], eax
cmp edx, dword [esi + 0x114]
jbe 0x50b289
xor eax, eax
pop esi
add esp, 0x24
ret 0xc
push ebx
push ebp
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esi + 0x130]
mov edi, dword [esp + 0x2c]
mov eax, ecx
xor edx, edx
div edi
push 0
imul eax, edi
mov ebx, eax
mov eax, dword [esi + 0x134]
mov edi, ecx
add ecx, eax
push ecx
mov ecx, dword [esi + 0x110]
push 0
push 2
push 0
push ecx
lea ebp, [eax + edx]
sub edi, ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x12c], eax
test eax, eax
jne 0x50b2f2
push str.CMappedFile::Map__m_hFM_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x24
ret 0xc
push ebp
push ebx
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x50b329
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CMappedFile::Map__m_lpMapData__lu
call fcn.0050c7b0
add esp, 8
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x24
ret 0xc
mov edx, dword [esp + 0x38]
add eax, edi
mov dword [esi + 0x13c], eax
mov dword [edx], eax
mov eax, dword [esi + 0x13c]
mov ecx, dword [esi + 0x134]
push eax
push ecx
mov ecx, esi
mov dword [esi + 0x128], 0
call fcn.0050b150
mov eax, dword [esi + 0x134]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x24
ret 0xc

Function at 0x50c5b0
Capabilities:
Get file size

Disassembly:
push ebp
push esi
push edi
mov esi, ecx
call fcn.0050c590
mov ebp, dword [esp + 0x10]
push 0x104
lea eax, [esi + 8]
push ebp
push eax
call fcn.005b5840
mov edi, dword [esp + 0x20]
add esp, 0xc
mov eax, 1
cmp edi, 2
jne 0x50c5e8
mov ecx, 0xc0000000
lea eax, [edi + 1]
jmp 0x50c5ed
mov ecx, SysReAllocString
xor edx, edx
cmp edi, 1
setne dl
push 0
push 0x80
add edx, 3
push edx
push 0
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x110], eax
cmp eax, 0xffffffff
je 0x50c633
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], edi
pop edi
mov dword [esi + 0x114], eax
pop esi
mov eax, 1
pop ebp
ret 8
pop edi
mov dword [esi + 0x110], 0
pop esi
xor eax, eax
pop ebp
ret 8