joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f189d
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x4f18f0
push esi
push dword [ebp + 8]
call fcn.004f1a90
mov edi, eax
test edi, edi
jne 0x4f18c0
mov eax, dword [ebp + 0x10]
jmp 0x4f1902
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4f18bb
mov eax, dword [ebp - 8]
jmp 0x4f1902
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4f460b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4f4650
call fcn.004fd921
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4f4650
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4f466c
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004ee0f8
mov ebx, eax
test edi, edi
je 0x4f466a
test esi, esi
je 0x4f466a
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4f4dbd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4f4e7b
cmp dword [esi + 0x20], 0
je 0x4f4e7b
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4f4e7b
cmp dword [ebp + 8], 0
je 0x4f4e7b
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.004fd921
push 0x58e508
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4f4e4c
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4f4e7b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.00509408
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x4f4e6c
test edi, edi
je 0x4f4e6c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x4f4e77
mov ecx, esi
call fcn.004f4b9c
mov eax, ebx
jmp 0x4f4e7d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f92cf
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x585f0a
call fcn.0051a9a0
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4f92f5
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4f9354
call fcn.004f9bf8
push eax
lea ecx, [ebp - 0x10]
call fcn.00426f90
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.0051a87c
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0052b75b
push eax
call fcn.00437920
add esp, 0x14
test esi, esi
je 0x4f9347
push esi
call fcn.0052ba01
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00426ff0
mov eax, ebx
call fcn.0051a969
ret 8

Function at 0x4fafd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
mov eax, ecx
push edi
mov edi, esi
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], esi
je 0x4fb01a
call fcn.004fd921
push 0xf0
push dword [ebp + 0xc]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4fb017
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4fb068
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov eax, dword [ebp - 4]
xor ebx, ebx
inc ebx
test esi, esi
je 0x4fb046
mov ecx, dword [eax]
push dword [ebp + 0x10]
push esi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call fcn.0051a87c
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
test edi, edi
je 0x4fb046
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x4fb066
mov eax, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [eax + 0xa0]
mov ecx, esi
call fcn.0051a87c
mov ecx, edi
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51fb7c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop esp
xor esp, dword [esi - 0x75]
inc edi
push es
cmp ax, bx
jbe 0x51fba2
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x51fb9c
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x51fb8d
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.0051f948
in al, dx
aas
push esp
push ss
lea eax, [ebp - 0x58]
push eax
call fcn.0051f958
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.0051f90d
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x51fc36
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.0051f948
cmpsd dword [esi], dword es:[edi]
and cl, ch
int3
Function at 0x51fe58
Capabilities:
Inspect section memory permissions

Disassembly:
adc byte [eax], al
add bh, bh
jne 0x51fe65
invalid
or al, 0x53
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x520141
test bh, dl
add al, byte [eax]
add bh, bh
mov ch, 0x4c
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.0051f8b9
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x51feb8
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.0051f8b9
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x51fe85
call fcn.0051f948
push ss
jne 0x51fe53
insd dword es:[edi], dx
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x520137
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x51feed
cmp dword [eax + 0xc], ebx
je 0x51ff90
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0051f948
xor eax, 0x390df433
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
call fcn.0051f948
and dword [eax], edx
jae 0x51ffaa
invalid
invalid
invalid
add byte [eax], al

Function at 0x51fe63
Capabilities:
Inspect section memory permissions

Disassembly:
adc byte [eax], al
add bh, bh
jne 0x51fe65
invalid
or al, 0x53
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x520141
test bh, dl
add al, byte [eax]
add bh, bh
mov ch, 0x4c
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
call fcn.0051f8b9
add esp, 0xc
cmp word [edi + 6], bx
mov dword [ebp + 0xc], ebx
jbe 0x51feb8
movzx eax, word [ebp + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [eax + eax*4]
push dword [ecx + eax*8 + 0x10]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
add ecx, dword [ebp + 0x10]
add eax, esi
push ecx
push eax
call fcn.0051f8b9
add esp, 0xc
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [edi + 6]
jb 0x51fe85
call fcn.0051f948
push ss
jne 0x51fe53
insd dword es:[edi], dx
mov edi, dword [esi + 0x3c]
add edi, esi
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x520137
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x51feed
cmp dword [eax + 0xc], ebx
je 0x51ff90
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0051f948
xor eax, 0x390df433
pop ebp
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
call fcn.0051f948
and dword [eax], edx
jae 0x51ffaa
invalid
invalid
invalid
add byte [eax], al

Function at 0x52003d
Capabilities:
Inspect section memory permissions

Disassembly:
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x52009b
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
Function at 0x520070
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x52001f
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp fcn.0052003d
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
xchg esp, eax
invalid
or byte [ecx], al
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x520082
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x52008b
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x520095
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x520077
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x520001
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x5200e8
dec eax
je 0x5200df
sub eax, 3
je fcn.005200d6
mov dword [ebp - 4], 0x40
jmp 0x520105
mov dword [ebp - 4], 0x20
jmp 0x5200eb
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x520137
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x5200b7
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0051f948
mov edx, eax
mov eax, dword [0x1475ff5a]
push 1
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x520143
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x536626
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005362e6

Function at 0x5398f5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00539774

Function at 0x53d230
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x18]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x53d257
push eax
push 0x1000
push 1
push dword [esi + 0x28]
call fcn.0057773c
add esp, 0x10
jmp 0x53d26a
mov eax, dword [esi + 0x20]
push 0x1000
push dword [esi + 0x28]
push dword [esi + 0x24]
call eax
add esp, 0xc
mov ecx, eax
test ecx, ecx
jne 0x53d2b0
cmp byte [esi + 0x2c], al
je 0x53d288
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x2a
mov eax, dword [edi]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [edi]
push 0xffffffffffffffff
push edi
mov dword [eax + 0x14], 0x78
mov eax, dword [edi]
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x28]
add esp, 8
mov ecx, 2
mov byte [eax], 0xff
mov eax, dword [esi + 0x28]
mov byte [eax + 1], 0xd9
mov eax, dword [esi + 0x28]
mov dword [esi], eax
mov al, 1
pop edi
mov dword [esi + 4], ecx
mov byte [esi + 0x2c], 0
pop esi
pop ebp
ret
Function at 0x53d440
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x53d472
push esi
call fcn.00540d90
add esp, 4
cmp byte [esi + 0x40], 0
je 0x53d46b
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
push edi
cmp eax, 0xcb
jne 0x53d4fe
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x53d4e8
nop dword [eax]
mov eax, dword [esi + 8]
test eax, eax
je 0x53d49f
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x190]
push esi
mov eax, dword [eax]
call eax
add esp, 4
test eax, eax
je 0x53d4e2
cmp eax, 2
je 0x53d4e8
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x53d490
cmp eax, 3
je 0x53d4c7
cmp eax, 1
jne 0x53d490
inc dword [ecx + 4]
mov edx, dword [esi + 8]
mov edi, dword [edx + 8]
cmp dword [ecx + 4], edi
jl 0x53d490
mov eax, dword [esi + 0x11c]
add eax, edi
mov dword [edx + 8], eax
jmp 0x53d490
pop edi
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0053d530
add esp, 4
pop edi
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x53d520
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esi]
mov eax, dword [eax]
call eax
add esp, 4
push esi
call fcn.0053d530
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x53d530
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x14], 0xcc
je 0x53d55e
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax]
call eax
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x180]
cmp byte [eax + 8], 0
je 0x53d5e2
lea ebx, [esi + 0x78]
nop dword [eax]
mov eax, dword [ebx]
cmp eax, dword [esi + 0x60]
jae 0x53d5b6
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x53d595
mov dword [ecx + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x60]
push esi
mov dword [ecx + 8], eax
mov eax, dword [esi + 8]
mov eax, dword [eax]
call eax
add esp, 4
mov eax, dword [esi + 0x184]
mov edi, dword [ebx]
push 0
push ebx
mov eax, dword [eax + 4]
push 0
push esi
call eax
mov eax, dword [ebx]
add esp, 0x10
cmp eax, edi
je 0x53d5f9
cmp eax, dword [esi + 0x60]
jb 0x53d577
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi + 0x180]
push esi
mov eax, dword [eax]
call eax
mov dword [ebx], 0
add esp, 8
mov eax, dword [esi + 0x180]
cmp byte [eax + 8], 0
jne 0x53d570
xor eax, eax
cmp byte [esi + 0x41], al
pop edi
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret
Function at 0x54b580
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x4c], 1
mov ebx, dword [esi + 0x1a8]
mov dword [ebp - 0x14], ebx
jne 0x54b5a6
mov eax, 0x1fe
mov byte [ebx + 0x1c], 1
jmp 0x54b5ab
xor eax, eax
mov byte [ebx + 0x1c], al
push dword [esi + 0x64]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], eax
add eax, 0x100
push eax
push 1
mov eax, dword [ecx + 8]
push esi
call eax
mov dword [ebx + 0x18], eax
xor edi, edi
mov eax, dword [ebx + 0x14]
add esp, 0x10
cmp dword [esi + 0x64], edi
jle 0x54b693
mov ecx, dword [ebx + edi*4 + 0x20]
cdq
idiv ecx
cmp dword [ebp - 4], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
je 0x54b5f3
mov eax, dword [ebx + 0x18]
add dword [eax + edi*4], 0xff
mov eax, dword [ebx + 0x18]
xor ebx, ebx
mov eax, dword [eax + edi*4]
mov dword [ebp - 8], eax
lea eax, [ecx - 1]
push eax
push ebx
push edi
push esi
call fcn.0054b920
add esp, 0x10
mov edx, eax
xor esi, esi
cmp esi, edx
jle 0x54b62e
mov eax, dword [ebp - 0x10]
inc ebx
dec eax
push eax
push ebx
push edi
push dword [ebp + 8]
call fcn.0054b920
mov edx, eax
add esp, 0x10
cmp esi, edx
jg 0x54b615
mov ecx, dword [ebp - 0xc]
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov eax, dword [ebp - 8]
mov byte [esi + eax], cl
inc esi
cmp esi, 0xff
jle 0x54b611
cmp dword [ebp - 4], 0
je 0x54b680
mov ebx, eax
mov ecx, 1
lea edx, [ebx - 1]
nop dword [eax]
movzx eax, byte [ebx]
lea edx, [edx - 1]
mov byte [edx + 1], al
movzx eax, byte [ebx + 0xff]
mov byte [ebx + ecx + 0xff], al
inc ecx
cmp ecx, 0xff
jle 0x54b660
mov esi, dword [ebp + 8]
inc edi
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
cmp edi, dword [esi + 0x64]
jl 0x54b5d6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x552c40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5f0524]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.0057791d
add esp, 8
cmp eax, 0xffffffff
jne 0x552c77
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0xa
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.0057773c
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.005533e0
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00577978
xor ecx, ecx
add esp, 0x20
cmp eax, 0xffffffff
cmove esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
pop edi
call fcn.0051a19b
mov esp, ebp
pop ebp
ret
Function at 0x552f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0xc], 0
push ebx
push esi
je 0x552feb
mov esi, dword [ebp + 8]
push 2
mov eax, dword [esi + 0xc]
not eax
and eax, 1
shl eax, 7
add eax, 0xffffff80
push eax
push dword [esi]
call fcn.00577c88
add esp, 0xc
cmp eax, 0xffffffff
je 0x552ff3
push dword [esi]
call fcn.00578281
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x552ff3
push dword [esi]
push 1
push 0x80
push dword [ebp + 0xc]
call fcn.0052b540
add esp, 0x10
cmp eax, 1
jne 0x552ff3
push dword [esi]
call fcn.005353ac
add esp, 4
cmp eax, 0xffffffff
je 0x552ff3
test byte [esi + 0xc], 1
jne 0x552feb
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x80
call fcn.00552470
add esp, 8
cmp eax, 0xffffffff
je 0x552ff3
or dword [esi + 0xc], 1
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x553000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x553020
mov eax, dword [esi + 0x14]
cmp eax, 1
jne 0x553037
test byte [esi + 0xc], al
je 0x553042
push ebx
push edi
push esi
call fcn.005526f0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x553088
pop edi
pop esi
or eax, eax
pop ebx
pop ebp
ret
cmp eax, 2
jne 0x553020
test byte [esi + 0xc], 1
je 0x553020
mov eax, dword [esi + 0x18]
cmp dword [eax + 8], ebx
jne 0x553020
push 0
push dword [eax + 4]
push dword [esi]
call fcn.00577c88
add esp, 0xc
cmp eax, 0xffffffff
je 0x553080
push dword [esi]
push 1
push ebx
push edi
call fcn.0052b540
add esp, 0x10
cmp eax, 1
jne 0x553080
push dword [esi]
call fcn.005353ac
add esp, 4
cmp eax, 0xffffffff
jne 0x553088
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x5566c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
or eax, 0xffffffff
push esi
mov esi, dword [ebp + 0xc]
cmp esi, 8
jb 0x556787
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
sub edi, 1
jne 0x5566e0
pop edi
dec esi
cmp esi, 6
ja case.default.0x556791
jmp dword [esi*4 + 0x556824]
movzx ecx, byte [edx]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
inc edx
movzx ecx, byte [edx]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
inc edx
movzx ecx, byte [edx]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
inc edx
movzx ecx, byte [edx]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
inc edx
movzx ecx, byte [edx]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
inc edx
movzx ecx, byte [edx]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
inc edx
movzx ecx, byte [edx]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x59aee0]
not eax
pop esi
pop ebp
ret

Function at 0x557510
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 4]
mov edx, dword [esi + 8]
cmp edx, dword [esi + 4]
jl 0x557562
mov eax, dword [esi + 0xc]
mov dword [edi + 4], eax
test eax, eax
je 0x557536
mov dword [eax + 0x10], 0
jmp 0x557543
mov dword [edi], 0
mov dword [edi + 4], 0
push dword [esi]
call fcn.0051f847
push esi
call fcn.0051f847
mov esi, dword [edi + 4]
add esp, 8
test esi, esi
je 0x557575
mov edx, dword [esi + 8]
cmp edx, dword [esi + 4]
jge 0x557523
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
movzx eax, byte [eax + edx]
dec dword [edi + 0x2c]
inc dword [ecx + 8]
pop edi
pop esi
pop ebp
ret
push str.Fatal_error__tried_to_read_past_mp_buffer_n
push 2
call fcn.005321d2
add esp, 4
push eax
call fcn.0053be20
add esp, 8
push 1
call fcn.0052f00c
int3