joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d6d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x4000
push 0
push eax
call fcn.004bd240
add esp, 0xc
push ebx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
jmp 0x4d6d70
movq mm0, qword [ebx + ecx*8]
mov eax, dword [esi + ecx*8]
inc ecx
movzx edx, al
movq mm1, mm0
pxor mm1, qword [edi + edx*8]
movq qword [edi + edx*8], mm1
movzx edx, ah
movq mm1, mm0
pxor mm1, qword [edi + edx*8 + 0x800]
movq qword [edi + edx*8 + 0x800], mm1
shr eax, 0x10
movzx edx, al
movq mm1, mm0
pxor mm1, qword [edi + edx*8 + 0x1000]
movq qword [edi + edx*8 + 0x1000], mm1
movzx edx, ah
movq mm1, mm0
pxor mm1, qword [edi + edx*8 + 0x1800]
movq qword [edi + edx*8 + 0x1800], mm1
mov eax, dword [esi + ecx*8 - 4]
movzx edx, al
movq mm1, mm0
pxor mm1, qword [edi + edx*8 + 0x2000]
movq qword [edi + edx*8 + 0x2000], mm1
movzx edx, ah
shr eax, 0x10
cmp ecx, dword [ebp + 0x14]
movq mm1, mm0
pxor mm1, qword [edi + edx*8 + 0x2800]
movq qword [edi + edx*8 + 0x2800], mm1
movzx edx, al
movq mm1, mm0
pxor mm1, qword [edi + edx*8 + 0x3000]
movq qword [edi + edx*8 + 0x3000], mm1
movzx edx, ah
pxor mm0, qword [edi + edx*8 + 0x3800]
movq qword [edi + edx*8 + 0x3800], mm0
jne 0x4d6d70
emms
pop ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4d6e40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push ebx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
jmp 0x4d6e60
movq mm0, qword [ebx + ecx*8]
mov eax, dword [esi + ecx*8]
inc ecx
movzx edx, al
movq mm1, qword [edi + edx*8]
movzx edx, ah
pxor mm1, qword [edi + edx*8 + 0x800]
shr eax, 0x10
movzx edx, al
pxor mm1, qword [edi + edx*8 + 0x1000]
movzx edx, ah
pxor mm1, qword [edi + edx*8 + 0x1800]
mov eax, dword [esi + ecx*8 - 4]
movzx edx, al
pxor mm1, qword [edi + edx*8 + 0x2000]
movzx edx, ah
shr eax, 0x10
cmp ecx, dword [ebp + 0x14]
pxor mm1, qword [edi + edx*8 + 0x2800]
movzx edx, al
pxor mm1, qword [edi + edx*8 + 0x3000]
movzx edx, ah
pxor mm1, qword [edi + edx*8 + 0x3800]
pxor mm1, mm0
movq qword [ebx + ecx*8 - 8], mm1
jne 0x4d6e60
pop ebx
emms
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4d7bd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4018
call fcn.004bdf20
mov eax, dword [0x5be9a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x4018], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4014], ecx
lea edi, [ebp - 0x400c]
mov dword [ebp - 0x4010], 8
xor ecx, ecx
xor edx, edx
xor esi, esi
test cl, 1
je 0x4d7c1c
mov edx, dword [eax]
mov esi, dword [eax + 4]
test cl, 2
je 0x4d7c27
xor edx, dword [eax + 8]
xor esi, dword [eax + 0xc]
test cl, 4
je 0x4d7c32
xor edx, dword [eax + 0x10]
xor esi, dword [eax + 0x14]
test cl, 8
je 0x4d7c3d
xor edx, dword [eax + 0x18]
xor esi, dword [eax + 0x1c]
test cl, 0x10
je 0x4d7c48
xor edx, dword [eax + 0x20]
xor esi, dword [eax + 0x24]
test cl, 0x20
je 0x4d7c53
xor edx, dword [eax + 0x28]
xor esi, dword [eax + 0x2c]
test cl, 0x40
je 0x4d7c5e
xor edx, dword [eax + 0x30]
xor esi, dword [eax + 0x34]
test cl, cl
jns 0x4d7c68
xor edx, dword [eax + 0x38]
xor esi, dword [eax + 0x3c]
mov dword [edi + ecx*8], edx
mov dword [edi + ecx*8 + 4], esi
inc ecx
cmp ecx, 0x100
jb 0x4d7c0e
add eax, 0x40
add edi, 0x800
dec dword [ebp - 0x4010]
jne 0x4d7c0c
lea edx, [ebp - 0x400c]
mov dword [ebp - 0x4010], edx
push ebx
mov edi, dword [ebp - 0x4010]
mov esi, dword [ebp - 0x4018]
mov ebx, dword [ebp - 0x4014]
xor ecx, ecx
lea ebx, [ebx]
movq mm0, qword [ebx + ecx*8]
mov eax, dword [esi + ecx*8]
inc ecx
movzx edx, al
movq mm1, qword [edi + edx*8]
movzx edx, ah
pxor mm1, qword [edi + edx*8 + 0x800]
shr eax, 0x10
movzx edx, al
pxor mm1, qword [edi + edx*8 + 0x1000]
movzx edx, ah
pxor mm1, qword [edi + edx*8 + 0x1800]
mov eax, dword [esi + ecx*8 - 4]
movzx edx, al
pxor mm1, qword [edi + edx*8 + 0x2000]
movzx edx, ah
shr eax, 0x10
cmp ecx, dword [ebp + 0x10]
pxor mm1, qword [edi + edx*8 + 0x2800]
movzx edx, al
pxor mm1, qword [edi + edx*8 + 0x3000]
movzx edx, ah
pxor mm1, qword [edi + edx*8 + 0x3800]
pxor mm1, mm0
movq qword [ebx + ecx*8 - 8], mm1
jne 0x4d7cb0
pop ebx
emms
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc40c
mov esp, ebp
pop ebp
ret
Function at 0x4d7f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [eax + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 0x24]
mov dword [ebp - 8], ecx
xor ecx, ecx
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], ecx
test edi, edi
je 0x4d7fa1
mov edi, eax
mov dword [ebp - 4], edi
jmp 0x4d7f53
mov edi, dword [ebp - 4]
mov edx, dword [edi]
mov edi, dword [edi + 4]
mov dword [ebp - 0x14], edx
xor edx, edx
xor esi, esi
xor eax, eax
test edi, edi
je 0x4d7f87
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + eax*4]
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + ecx*8]
xor edx, ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + ecx*8 + 4]
inc eax
xor esi, ecx
cmp eax, edi
jb 0x4d7f65
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 4], 0x10
mov dword [ebx + ecx*8], edx
mov dword [ebx + ecx*8 + 4], esi
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebp - 0xc]
jb 0x4d7f50
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 8], 0
je 0x4d801a
xor ecx, ecx
test edi, edi
je 0x4d801a
mov edx, eax
mov dword [ebp - 0x10], eax
mov esi, dword [edx]
mov eax, dword [edx + 4]
lea eax, [esi + eax*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + ecx*8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + ecx*8 + 4]
mov dword [ebp - 0x14], eax
xor eax, eax
lea esi, [eax + 1]
cmp dword [ebp - 8], eax
jbe 0x4d8002
mov edi, dword [ebp - 0x1c]
mov edx, eax
shr edx, 5
test dword [edi + edx*4], esi
je 0x4d7ff4
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax*8]
xor dword [ebp - 0x18], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax*8 + 4]
xor dword [ebp - 0x14], edx
inc eax
rol esi, 1
cmp eax, dword [ebp - 8]
jb 0x4d7fd4
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov dword [ebx + ecx*8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + ecx*8 + 4], eax
inc ecx
add edx, 0x10
mov dword [ebp - 0x10], edx
cmp ecx, edi
jb 0x4d7fb2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d8030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x24]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [eax + 0xc]
lea eax, [edi*8]
push eax
push 0
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
call fcn.004bd240
xor eax, eax
add esp, 0xc
mov dword [ebp - 0xc], eax
test edi, edi
je 0x4d80b3
mov edx, dword [ebp - 0x10]
add edx, 4
nop
mov ecx, dword [ebx + eax*8]
mov edi, dword [edx - 4]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebx + eax*8 + 4]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
cmp dword [edx], ecx
jbe 0x4d80a4
mov eax, dword [edi + ecx*4]
mov ebx, dword [ebp - 0x18]
xor dword [esi + eax*8], ebx
mov ebx, dword [ebp - 0x14]
xor dword [esi + eax*8 + 4], ebx
lea eax, [esi + eax*8]
inc ecx
cmp ecx, dword [edx]
jb 0x4d8086
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
inc eax
add edx, 0x10
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 8]
jb 0x4d8070
mov edi, dword [ebp - 8]
cmp dword [ebp - 4], 0
je 0x4d8121
xor edx, edx
test edi, edi
je 0x4d8121
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [eax + ecx*4]
mov eax, dword [ebx + edx*8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebx + edx*8 + 4]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], ecx
lea ecx, [eax + 1]
cmp dword [ebp - 4], eax
jbe 0x4d8112
mov edi, dword [ebp - 0xc]
lea ebx, [ebx]
mov ebx, eax
shr ebx, 5
test dword [edi + ebx*4], ecx
je 0x4d8107
mov ebx, dword [ebp - 0x18]
xor dword [esi + eax*8], ebx
mov ebx, dword [ebp - 0x14]
xor dword [esi + eax*8 + 4], ebx
inc eax
rol ecx, 1
cmp eax, dword [ebp - 4]
jb 0x4d80f0
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
inc edx
add eax, 0x10
mov dword [ebp - 0x10], eax
cmp edx, dword [ebp - 8]
jb 0x4d80c5
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e0160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5be9a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x14]
push esi
push edi
mov edi, dword [eax + 0x24]
mov eax, dword [eax]
push ecx
lea edx, [ebp - 0x104]
push 0x5c0944
push edx
mov dword [ebp - 0x108], eax
call fcn.004b70c5
lea eax, [ebp - 0x104]
push 0x5c094c
push eax
call fcn.004b80e6
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4e01cb
push 0x5c0950
push ebx
call fcn.00410350
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
push esi
push 1
lea ecx, [ebp - 0x108]
push 4
push ecx
call fcn.004b9a51
xor ebx, ebx
add esp, 0x10
cmp dword [ebp - 0x108], ebx
jbe 0x4e022c
lea esp, [esp]
movzx edx, word [edi]
push esi
push 1
lea eax, [ebp - 0x10c]
push 4
push eax
mov dword [ebp - 0x10c], edx
call fcn.004b9a51
mov ecx, dword [ebp - 0x10c]
mov edx, dword [edi + 8]
push esi
push ecx
push 4
push edx
call fcn.004b9a51
inc ebx
add esp, 0x20
add edi, 0xc
cmp ebx, dword [ebp - 0x108]
jb 0x4e01f0
push esi
call fcn.004b8276
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc40c
mov esp, ebp
pop ebp
ret
Function at 0x4e45d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [esi + 4]
sub edi, eax
lea ecx, [ebx + 1]
cmp edi, ecx
jb 0x4e45f4
mov edx, dword [esi + 8]
mov ecx, dword [edx + eax*4]
lea edx, [ecx + ebx + 1]
cmp edx, edi
jbe 0x4e4637
mov ecx, dword [esi + 8]
lea edx, [edi*4]
push edx
lea eax, [ecx + eax*4]
push eax
push ecx
call fcn.004bcb30
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [esi + 8]
mov edx, 0x4e20
sub edx, edi
push edx
lea eax, [edi*4]
add ecx, eax
push 4
push ecx
call fcn.004b98dd
add esp, 0x1c
add eax, edi
mov dword [esi + 4], eax
mov dword [esi], 0
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov edi, dword [edx + eax*4]
lea eax, [edx + eax*4]
lea ecx, [edi + ebx]
cmp ecx, 0x3e8
jbe 0x4e4661
push str.error:_column_too_large__corrupt_file__n
call fcn.004b7f6d
add esp, 4
push 0xffffffffffffffff
call fcn.004b856d
mov edx, dword [ebp + 0x10]
add ecx, ecx
add ecx, ecx
push ecx
add eax, 4
mov dword [edx], edi
mov edx, dword [ebp + 0x14]
push eax
push edx
call fcn.004bd390
mov eax, dword [esi]
add esp, 0xc
add eax, edi
lea eax, [eax + ebx + 1]
pop edi
mov dword [esi], eax
pop ebx
pop ebp
ret
Function at 0x4e4ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5be9a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
push esi
push edi
push eax
mov edi, ecx
lea ecx, [ebp - 0x104]
push 0x5c118c
push ecx
call fcn.004b70c5
lea edx, [ebp - 0x104]
push 0x5c1194
push edx
call fcn.004b80e6
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x4e4f3f
push str.error:_cant_open_cycle_file_n
push ebx
call fcn.00410350
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
push esi
push 1
lea eax, [ebp + 0xc]
push 4
push eax
call fcn.004b9a51
xor ebx, ebx
add esp, 0x10
cmp dword [ebp + 0xc], ebx
jbe 0x4e4f98
add edi, 0xc
lea ebx, [ebx]
mov ecx, dword [edi - 4]
push esi
push 1
lea edx, [ebp - 0x108]
push 4
push edx
mov dword [ebp - 0x108], ecx
call fcn.004b9a51
mov eax, dword [ebp - 0x108]
mov ecx, dword [edi]
push esi
push eax
push 4
push ecx
call fcn.004b9a51
inc ebx
add esp, 0x20
add edi, 0x10
cmp ebx, dword [ebp + 0xc]
jb 0x4e4f60
push esi
call fcn.004b8276
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc40c
mov esp, ebp
pop ebp
ret

Function at 0x4e4fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5be9a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push ebx
mov edi, ecx
call fcn.004e4ee0
mov ecx, dword [ebx + 0x14]
push ecx
lea edx, [ebp - 0x104]
push 0x5c11b8
push edx
call fcn.004b70c5
lea eax, [ebp - 0x104]
push 0x5c11c0
push eax
call fcn.004b80e6
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x4e5029
push str.error:_cant_open_matrix_file_n
push ebx
call fcn.00410350
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
push esi
push 1
lea ecx, [ebp + 0xc]
push 4
push ecx
call fcn.004b9a51
push esi
push 1
lea edx, [ebp + 0x10]
push 4
push edx
call fcn.004b9a51
push esi
push 1
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004b9a51
mov eax, dword [ebp + 0x10]
add eax, 0x1f
shr eax, 5
add esp, 0x30
cmp dword [ebp + 0x14], 0
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], 0
jbe 0x4e50ba
add edi, 4
jmp 0x4e5086
mov eax, dword [ebp - 0x10c]
mov ebx, dword [edi]
push esi
push 1
push 4
push edi
add ebx, eax
call fcn.004b9a51
mov ecx, dword [edi - 4]
push esi
push ebx
push 4
push ecx
call fcn.004b9a51
mov eax, dword [ebp - 0x108]
inc eax
add esp, 0x20
add edi, 0x10
mov dword [ebp - 0x108], eax
cmp eax, dword [ebp + 0x14]
jb 0x4e5080
push esi
call fcn.004b8276
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc40c
mov esp, ebp
pop ebp
ret
Function at 0x4e9a40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5be9a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, eax
and ebx, 4
push edi
je 0x4e9a66
mov edi, 0x5c1624
jmp 0x4e9a86
mov ecx, eax
and ecx, 1
je 0x4e9a78
test al, 2
je 0x4e9a78
mov edi, 0x5c1628
jmp 0x4e9a86
mov edi, 0x5c162c
test ecx, ecx
jne 0x4e9a86
mov edi, 0x5c1630
mov eax, dword [esi + 8]
push eax
lea ecx, [ebp - 0x10c]
push str._s.gz
push ecx
mov word [esi + 4], 0
call fcn.004b70c5
add esp, 0xc
lea edx, [ebp - 0x13c]
push edx
lea eax, [ebp - 0x10c]
push eax
call fcn.004b9be8
add esp, 8
test eax, eax
mov eax, dword [esi + 8]
jne 0x4e9b2d
lea ecx, [ebp - 0x13c]
push ecx
push eax
call fcn.004b9be8
add esp, 8
test eax, eax
jne 0x4e9af4
mov eax, dword [esi + 8]
lea edx, [ebp - 0x10c]
push edx
push eax
push str.error:_both__s_and__s_exist._Remove_the_wrong_one_and_restart_n
call fcn.004b7f6d
add esp, 0xc
push 0xffffffffffffffff
call fcn.004b856d
lea ecx, [ebp - 0x10c]
push edi
push ecx
mov byte [esi + 4], 1
call fcn.0044f1f0
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x4e9bdd
lea edx, [ebp - 0x10c]
push edx
push str.error:_cannot_open__s_n
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
test ebx, ebx
je 0x4e9bb5
push 0x5c169c
push eax
call fcn.004b80e6
mov edi, eax
add esp, 8
test edi, edi
je 0x4e9b8b
push edi
push 3
lea ecx, [ebp - 0x140]
push 1
push ecx
call fcn.004b98dd
add esp, 0x10
test eax, eax
je 0x4e9b82
cmp eax, 3
jne 0x4e9b7e
mov eax, dword [ebp - 0x140]
cmp al, 0x1f
jne 0x4e9b7e
cmp ah, 0x8b
jne 0x4e9b7e
cmp byte [ebp - 0x13e], 8
je 0x4e9b82
mov byte [esi + 5], 1
push edi
call fcn.004b8276
add esp, 4
cmp byte [esi + 5], 0
je 0x4e9ba1
mov edx, dword [esi + 8]
push 0x5c16a0
push edx
call fcn.004b80e6
jmp 0x4e9bbc
mov eax, dword [esi + 8]
push 0x5c16a4
push eax
call fcn.0044f1f0
mov byte [esi + 4], 1
jmp 0x4e9bbc
push edi
push eax
call fcn.0044f1f0
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x4e9bdd
mov eax, dword [esi + 8]
push eax
push 0x5c16a8
call fcn.004b7f6d
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x10], 0
mov byte [ecx], 0
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop ebx
call fcn.004bc40c
mov esp, ebp
pop ebp
ret
Function at 0x509ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5be9a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
push esi
mov esi, dword [edi]
push eax
lea ecx, [ebp - 0x104]
push str._s.d
push ecx
call fcn.004b70c5
lea edx, [ebp - 0x104]
push 0x5c48c8
push edx
call fcn.004b80e6
add esp, 0x14
mov dword [ebp - 0x108], eax
test eax, eax
jne 0x509d42
push str.error:_reldump_cant_open_out_file_n
push ebx
call fcn.00410350
add esp, 8
push 0xffffffffffffffff
call fcn.004b856d
xor ebx, ebx
cmp dword [edi + 4], ebx
jbe 0x509d72
lea esp, [esp]
push eax
push 4
push 1
push esi
call fcn.004b9a51
movzx eax, byte [esi + 4]
inc ebx
add esp, 0x10
lea esi, [esi + eax*4 + 8]
mov eax, dword [ebp - 0x108]
cmp ebx, dword [edi + 4]
jb 0x509d50
push eax
call fcn.004b8276
mov ecx, dword [ebp - 4]
add esp, 4
pop esi
xor ecx, ebp
pop ebx
call fcn.004bc40c
mov esp, ebp
pop ebp
ret
Function at 0xfef370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xfef38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x1018074
push ecx
mov edi, eax
call fcn.01003198
mov esi, eax
add esp, 8
test esi, esi
jne 0xfef3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0100302e
push esi
call fcn.01002fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xff2850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xff28ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x101d720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xff28ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.010031e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xff28ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x101d720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xff292a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.01004082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xff2957
mov word [eax], si
add eax, 2
push eax
call fcn.01004030
add esp, 4
jmp 0xff2959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xff28ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xff28b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xff2ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xff3080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xff30c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x1018458
push ecx
call fcn.010031e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.010031e1
add esp, 0x10
jmp 0xff30d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0100320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.01002dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00ff3050
mov eax, dword [0x101d728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xff313b
push esi
call fcn.00ff2fb0
add esp, 4
mov dword [0x101d728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xff314c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00ff2ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xff6440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xff64b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xff648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xff6471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xff647e
add edx, ecx
cmp ebx, edx
jb 0xff648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xff6467
xor ecx, ecx
jmp 0xff64a2
test eax, eax
jne 0xff6492
xor ecx, ecx
jmp 0xff64a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00ff63c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xff68f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xff6921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xff6946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xff696e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xff6993
push ecx
push esi
call fcn.00ff64c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret