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

Disassembly:
push 0xffffffffffffffff
push 0x71ce33
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.004c8cd0
xor eax, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x4c9100
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x71cdf8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x1c]
mov eax, dword [edi]
mov dword [esi], eax
push 0xffffffffffffffff
lea ecx, [esi + 4]
lea eax, [edi + 4]
push 0
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x14], 0
push eax
mov word [ecx + 4], 0
call fcn.00401ebc
mov dword [esp + 0x14], 0
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x20], ecx
mov edx, dword [edi + 0x24]
mov dword [esi + 0x24], edx
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov edx, dword [edi + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov ecx, dword [edi + 0x3c]
mov dword [esi + 0x3c], ecx
mov edx, dword [edi + 0x40]
mov dword [esi + 0x40], edx
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov ecx, dword [edi + 0x48]
mov dword [esi + 0x48], ecx
mov edx, dword [edi + 0x4c]
mov dword [esi + 0x4c], edx
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov ecx, dword [edi + 0x58]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x5c]
mov dword [esi + 0x5c], edx
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov ecx, dword [edi + 0x64]
mov dword [esi + 0x64], ecx
mov edx, dword [edi + 0x68]
mov dword [esi + 0x68], edx
mov eax, dword [edi + 0x6c]
add edi, 0x70
push edi
lea ecx, [esi + 0x70]
push ecx
mov dword [esi + 0x6c], eax
call fcn.004c91f0
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x4cf2b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x726fd8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push esi
call fcn.004c8cd0
xor eax, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x4d5010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x71ccd8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
push edi
push esi
call fcn.004d50a0
xor edx, edx
mov dword [esp + 0x14], edx
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x1c], ecx
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
lea eax, [edi + 0x30]
push edx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edx
push eax
mov byte [ecx + 4], dl
call fcn.0040a0c9
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4
Function at 0x4db3e1
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x724263
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x20]
push edi
call fcn.00509856
lea eax, [ebx + 0x18]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x24], 0
call fcn.0040d4f7
and dword [esp + 0x30], 0
mov esi, dword [ebx + 0xc]
add ebx, 8
cmp esi, dword [ebx + 8]
jbe 0x4db444
call fcn.0054b876
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
jbe 0x4db459
call fcn.0054b876
cmp dword [esp + 0x14], 0
je 0x4db466
cmp dword [esp + 0x14], ebx
je 0x4db46b
call fcn.0054b876
cmp dword [esp + 0x18], esi
je 0x4db4e9
lea esi, [esp + 0x14]
call fcn.004b0a79
mov edi, dword [ebp + 0xc]
push 5
pop ecx
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x4db4c1
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 0x10]
jne 0x4db4c1
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [ebp + 0x14]
jne 0x4db4c1
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp + 0x18]
cmp ecx, dword [edx]
jne 0x4db4c1
mov ax, word [eax + 0x24]
cmp ax, word [ebp + 0x1c]
jne 0x4db4c1
lea esi, [esp + 0x14]
call fcn.004b0a79
add eax, 0x28
push eax
mov eax, dword [ebp + 0x20]
call fcn.004b7a16
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4db4ce
call fcn.0054b876
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 8]
jb 0x4db4dc
call fcn.0054b876
add dword [esp + 0x18], 0x30
mov edi, dword [ebp + 0x20]
jmp 0x4db44c
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x4db4f4
xor eax, eax
jmp 0x4db4fc
mov eax, dword [edi + 8]
sub eax, ecx
sar eax, 2
test eax, eax
setne bl
or dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0x1c]
call fcn.0040d1d9
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4f5cd1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x736508
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x820ac4]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, ecx
cmp dword [ebx + 0x34], 0
mov dword [esp + 0x18], esi
je 0x4f5dac
sub esp, 0x20
mov eax, esp
mov dword [esp + 0x30], esp
sub esp, 0x20
mov dword [esp + 0x50], esp
mov edi, esp
sub esp, 0x10
mov dword [esp + 0x60], esp
mov ecx, esp
push esi
push ecx
mov dword [esp + 0x68], eax
call fcn.00504b60
xor eax, eax
push eax
mov eax, 0x4fbd2d
push eax
push dword [ebx + 0x34]
call fcn.004fa3db
mov eax, dword [esp + 0x6c]
add esp, 0x1c
mov edi, eax
call fcn.004fa492
lea eax, [ebx + 0x21]
push 0
push eax
call fcn.0045d776
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x24], eax
sub esp, 0x20
mov eax, esp
mov dword [esp + 0x30], esp
sub esp, 0x10
mov ecx, fcn.004fb5bc
mov dword [esp + 0x4c], ecx
xor edx, edx
mov dword [esp + 0x50], edx
mov edi, esp
lea esi, [esp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call fcn.004fa507
push 0
lea eax, [ebx + 0x21]
push eax
call fcn.0045d776
mov esi, dword [esp + 0x18]
push str.file_finished:
lea ecx, [esp + 0x58]
call fcn.0040a68d
and dword [esp + 0x80], 0
push dword [esi + 4]
mov edi, esi
lea esi, [esp + 0x14]
call fcn.0042dad8
mov edi, dword [esp + 0x18]
push dword [edi + 8]
lea esi, [esp + 0x34]
call fcn.0042dad8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4f5dee
cmp eax, dword [esp + 0x30]
je 0x4f5df3
call fcn.0054b876
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x34]
je 0x4f5e9a
push dword [edi + 4]
lea esi, [esp + 0x20]
call fcn.0042dad8
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4f5e1b
cmp edi, dword [esp + 0x1c]
je 0x4f5e20
call fcn.0054b876
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x20]
je 0x4f5e38
push 0x7c4398
lea ecx, [esp + 0x58]
call fcn.0040bc4e
lea esi, [esp + 0x10]
call fcn.004b0a79
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044e84a
pop ecx
pop ecx
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x8c], 1
call fcn.0040bd07
push 0
push 1
lea ecx, [esp + 0x40]
mov byte [esp + 0x88], 0
call fcn.00407277
test edi, edi
jne 0x4f5e82
call fcn.0054b876
mov eax, dword [esp + 0x14]
cmp eax, dword [edi + 8]
jb 0x4f5e90
call fcn.0054b876
add dword [esp + 0x14], 4
jmp 0x4f5dd0
sub esp, 0x1c
lea eax, [esp + 0x70]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.0040a6e7
push ebx
call fcn.004f98de
or dword [esp + 0x80], 0xffffffff
push 0
push 1
lea ecx, [esp + 0x5c]
call fcn.00407277
mov eax, dword [ebx]
push 4
mov ecx, ebx
call dword [eax + 0x24]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0054ae61
mov esp, ebp
pop ebp
ret 4
Function at 0x4fc020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x7333a9
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x820ac4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x78], eax
mov eax, dword [ebx + 0x28]
mov eax, dword [eax + 0x28]
mov edi, dword [eax + 0x14]
push dword [edi + 0x3c]
add edi, 0x38
lea esi, [esp + 0x18]
mov dword [esp + 0x14], edi
call fcn.0042dad8
jmp 0x4fc0f8
lea esi, [esp + 0x14]
call fcn.004b0a79
mov eax, dword [eax]
cmp dword [eax + 0x108], 0xffffffff
je 0x4fc0d4
lea esi, [eax + 0x20]
mov edx, dword [esi]
mov ecx, dword [esi + 4]
mov edi, edx
or edi, ecx
je 0x4fc0d4
mov edi, dword [eax + 0x14]
cmp edi, ecx
ja 0x4fc0d4
jb 0x4fc0b0
mov ecx, dword [eax + 0x10]
cmp ecx, edx
jae 0x4fc0d4
lea edi, [eax + 0x80]
push edi
call fcn.0041c874
test al, al
jne 0x4fc0d4
push esi
lea esi, [esp + 0x54]
call fcn.004c7e80
push eax
lea esi, [esp + 0x28]
call fcn.004c86c0
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4fc0e1
call fcn.0054b876
mov eax, dword [esp + 0x18]
cmp eax, dword [esi + 8]
jb 0x4fc0ef
call fcn.0054b876
add dword [esp + 0x18], 4
mov edi, dword [esp + 0x10]
push dword [edi + 8]
lea esi, [esp + 0x20]
call fcn.0042dad8
mov edi, esi
lea esi, [esp + 0x14]
call fcn.0044de3a
test al, al
jne 0x4fc07e
lea ecx, [esp + 0x24]
call fcn.004c8770
test eax, eax
jne 0x4fc144
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.mirror_querying_skipped_because_no_file.
call fcn.0040a68d
push dword [ebx + 0x28]
call fcn.004f9910
jmp 0x4fc1cc
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.0044e84a
push eax
lea eax, [esp + 0x40]
push str.mirror_querying...
push eax
mov byte [esp + 0x8c], 1
call fcn.00424625
push ecx
push ecx
mov ecx, esp
mov byte [esp + 0x94], 2
mov dword [esp + 0x2c], esp
push str._files.
push eax
push ecx
call fcn.0040bba8
add esp, 0xc
push dword [ebx + 0x28]
call fcn.004f9910
push 0
push 1
lea ecx, [esp + 0x3c]
call fcn.00407277
push 0
push 1
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], 0
call fcn.00407277
mov eax, dword [ebx + 4]
call fcn.00498af0
push dword [ebx + 4]
lea ecx, [esp + 0x28]
call fcn.004d1bd0
lea esi, [esp + 0x24]
call fcn.00487f20
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x50d8e9
Capabilities:
Get file size

Disassembly:
push 0x5c
mov eax, 0x72682a
call fcn.0054dcb7
mov edi, ecx
mov dword [ebp - 0x1c], edi
lea eax, [edi + 0xd0]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
xor ebx, ebx
push eax
mov byte [ebp - 0x2c], bl
call fcn.0040d4f7
push edi
mov dword [ebp - 4], ebx
call fcn.0050df0b
lea eax, [ebp - 0x4c]
push eax
push edi
call fcn.0050d053
sub esp, 0x1c
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
push ecx
call fcn.00452842
call fcn.00455d35
add esp, 0x1c
cmp edx, dword [edi + 0x24]
jb 0x50d951
ja 0x50d94b
cmp eax, dword [edi + 0x20]
jbe 0x50d951
mov byte [ebp - 0x15], 1
jmp 0x50d954
mov byte [ebp - 0x15], bl
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401f4f
cmp byte [ebp - 0x15], bl
je 0x50da00
lea eax, [ebp - 0x68]
push eax
push edi
mov byte [ebp - 4], 2
call fcn.0050d053
push ebx
lea esi, [edi + 0xc4]
push ebx
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00477d9b
push ebx
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00401f4f
push dword [edi + 0x24]
push dword [edi + 0x20]
call fcn.00477f35
lea eax, [ebp - 0x20]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
jne 0x50d9c5
lea esi, [ebp - 0x24]
call fcn.00477fc3
mov ecx, eax
mov eax, edx
jmp 0x50d9ca
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x78], ecx
mov dword [edi + 0x7c], eax
mov dword [ebp - 4], ebx
jmp 0x50d9fa
push edi
call fcn.0050df0b
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x30]
call fcn.0040d1d9
call fcn.0054dd5c
ret
Function at 0x50db24
Capabilities:
Get file size

Disassembly:
push 0xc0
mov eax, 0x723ea0
call fcn.0054dcb7
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x18], esi
mov eax, dword [0x8b684c]
cmp byte [eax + 0x40], 0
jne 0x50db79
lea eax, [ebp - 0x78]
push eax
push edi
call fcn.0050d053
sub esp, 0x1c
mov dword [ebp - 4], esi
mov ecx, esp
mov dword [ebp - 0x1c], esp
xor ebx, ebx
push eax
inc ebx
push ecx
mov dword [ebp - 0x18], ebx
call fcn.00452842
call fcn.00455690
add esp, 0x1c
test al, al
jne 0x50db7c
mov byte [ebp - 0x11], bl
jmp 0x50db80
xor ebx, ebx
inc ebx
mov byte [ebp - 0x11], 0
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x18], bl
je 0x50db97
and dword [ebp - 0x18], 0xfffffffe
push esi
push ebx
lea ecx, [ebp - 0x78]
call fcn.00401f4f
cmp byte [ebp - 0x11], 0
je 0x50dbf7
push esi
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x28], 0xf
call fcn.0040720e
lea eax, [ebp - 0xb0]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.0050d053
sub esp, 0x1c
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push ecx
call fcn.00452842
lea ecx, [ebp - 0x40]
call fcn.00455b80
add esp, 0x20
push esi
push ebx
lea ecx, [ebp - 0xb0]
call fcn.00401f4f
or dword [ebp - 4], 0xffffffff
push esi
push ebx
lea ecx, [ebp - 0x40]
call fcn.00407277
lea eax, [ebp - 0x5c]
push eax
push edi
call fcn.0050d053
sub esp, 0x1c
mov dword [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push ecx
call fcn.00452842
call fcn.00455690
add esp, 0x1c
test al, al
push esi
sete byte [ebp - 0x11]
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp - 0x5c]
call fcn.00401f4f
cmp byte [ebp - 0x11], 0
jne 0x50dd04
mov dword [ebp - 4], 4
mov eax, dword [0x8b684c]
cmp byte [eax + 0x28], 0
jne 0x50dc77
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.0050d053
push ebx
lea esi, [edi + 0xc4]
push ebx
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.00477d9b
lea ecx, [ebp - 0x94]
jmp 0x50dc9e
lea eax, [ebp - 0xcc]
push eax
push edi
call fcn.0050d053
push 0
lea esi, [edi + 0xc4]
push ebx
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00477d9b
lea ecx, [ebp - 0xcc]
push 0
push ebx
mov byte [ebp - 4], 4
call fcn.00401f4f
lea eax, [ebp - 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
cmp ecx, 0xffffffff
mov dword [ebp - 0x20], ecx
jne 0x50dcce
lea esi, [ebp - 0x20]
call fcn.00477fc3
mov ecx, eax
mov eax, edx
jmp 0x50dcd1
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x78], ecx
mov dword [edi + 0x7c], eax
mov al, bl
jmp 0x50dd06
xor al, al
call fcn.0054dd5c
ret 4
Function at 0x50dd0e
Capabilities:
Get file size

Disassembly:
push 0x90
mov eax, 0x723e38
call fcn.0054dcb7
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x20]
xor ebx, ebx
or eax, dword [edi + 0x24]
jne 0x50dd84
push ebx
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
call fcn.0040720e
lea eax, [ebp - 0x80]
push eax
push edi
mov dword [ebp - 4], ebx
lea esi, [ebp - 0x48]
call fcn.0050d053
sub esp, 0x1c
mov ecx, esp
mov dword [ebp + 8], esp
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.00452842
mov ecx, esi
call fcn.00455b80
add esp, 0x20
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.00401f4f
push ebx
push 1
mov ecx, esi
call fcn.00407277
mov al, 1
jmp 0x50de8a
mov dword [ebp - 4], 2
mov eax, dword [0x8b684c]
cmp byte [eax + 0x28], bl
jne 0x50ddb9
lea eax, [ebp - 0x64]
push eax
push edi
call fcn.0050d053
push 1
lea ecx, [edi + 0xc4]
push ebx
mov byte [ebp - 4], 3
mov dword [ebp - 0x18], ecx
call fcn.00477d9b
lea ecx, [ebp - 0x64]
jmp 0x50dde0
lea eax, [ebp - 0x9c]
push eax
push edi
call fcn.0050d053
push ebx
lea ecx, [edi + 0xc4]
push ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x18], ecx
call fcn.00477d9b
lea ecx, [ebp - 0x9c]
push ebx
push 1
mov byte [ebp - 4], 2
call fcn.00401f4f
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x24], eax
jne 0x50de11
lea esi, [ebp - 0x24]
call fcn.00477fc3
mov ecx, eax
mov eax, edx
jmp 0x50de16
mov ecx, eax
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x18]
mov dword [edi + 0x78], ecx
mov dword [edi + 0x7c], eax
mov dword [ebp - 4], 6
push dword [edi + 0x24]
push dword [edi + 0x20]
call fcn.00477f35
jmp 0x50dd7d
call fcn.0054dd5c
ret 4
Function at 0x52968c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, ecx
je 0x52970a
movzx eax, byte [ebx + 0x118]
push esi
mov esi, dword [ebx + 0x114]
mov dword [ebp - 4], eax
movzx eax, byte [ebx + 0x119]
push edi
mov edi, dword [ebp + 8]
cmp dword [ebp + 0xc], edi
mov dword [ebp - 8], eax
jne 0x5296d7
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00529764
xor byte [edi], al
pop ecx
inc edi
dec dword [ebp + 0x10]
pop ecx
jne 0x5296be
jmp 0x5296f6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00529764
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
xor al, byte [ecx]
mov byte [edi], al
inc edi
inc dword [ebp + 0xc]
dec dword [ebp + 0x10]
jne 0x5296d7
mov al, byte [ebp - 4]
mov byte [ebx + 0x118], al
mov al, byte [ebp - 8]
pop edi
mov byte [ebx + 0x119], al
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, 0xff
mov ebx, esi
and bl, 3
neg bl
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x53707e
test edi, edi
jbe 0x53707e
movzx ebx, byte [esi]
mov ecx, eax
and ecx, edx
xor ecx, ebx
shr eax, 8
xor eax, dword [ecx*4 + 0x7af320]
inc esi
dec edi
jmp 0x537055
cmp edi, 4
jb 0x5370e2
mov ecx, edi
shr ecx, 2
xor eax, dword [esi]
sub edi, 4
mov ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x7af320]
add esi, 4
mov ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x7af320]
mov ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x7af320]
mov ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x7af320]
dec ecx
jne 0x537088
jmp 0x5370e2
movzx ebx, byte [esi]
mov ecx, eax
and ecx, edx
xor ecx, ebx
shr eax, 8
xor eax, dword [ecx*4 + 0x7af320]
dec edi
inc esi
test edi, edi
jne 0x5370cd
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx + 4], eax
pop ebx
leave
ret 8

Function at 0x53b9d3
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x53b9f4
mov edx, dword [esp + 8]
sub ecx, eax
sub edx, eax
push edi
mov edi, dword [ecx + eax]
xor edi, dword [eax]
mov dword [edx + eax], edi
add eax, 4
dec esi
jne 0x53b9e5
pop edi
pop esi
ret

Function at 0x53b9f6
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, eax
or ebx, ecx
or ebx, edx
test bl, 3
push esi
jne 0x53ba1b
shr edx, 2
je 0x53ba2c
sub ecx, eax
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x53ba0e
jmp 0x53ba2c
test edx, edx
jbe 0x53ba2c
sub ecx, eax
mov esi, edx
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x53ba23
pop esi
pop ebx
ret
Function at 0x53ba2f
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, esi
or ebx, edx
or ebx, eax
or ebx, ecx
test bl, 3
jne 0x53ba56
shr ecx, 2
push ecx
push esi
mov ecx, edx
call fcn.0053b9d3
pop ecx
pop ecx
jmp 0x53ba6e
test ecx, ecx
jbe 0x53ba6e
push edi
sub edx, eax
sub esi, eax
mov edi, ecx
mov cl, byte [edx + eax]
xor cl, byte [eax]
mov byte [esi + eax], cl
inc eax
dec edi
jne 0x53ba61
pop edi
pop esi
pop ebx
ret
Function at 0x54ae61
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x820ac4]
jne 0x54ae6b
repz ret
jmp fcn.0054f988

Function at 0x5506e6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x820c88]
je 0x550701
inc edi
cmp edi, 0x17
jb 0x5506f2
cmp edi, 0x17
jae 0x550881
push ebp
push 3
call fcn.0055efe4
cmp eax, 1
pop ecx
je 0x55084d
push 3
call fcn.0055efe4
test eax, eax
pop ecx
jne 0x550735
cmp dword [0x820ac0], 1
je 0x55084d
cmp ebx, 0xfc
je 0x550880
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x84d050
push ebp
call fcn.0054fa8c
add esp, 0xc
test eax, eax
je 0x55076b
push esi
push esi
push esi
push esi
push esi
call fcn.0054b756
add esp, 0x14
push 0x104
mov esi, 0x84d069
push esi
push 0
mov byte [0x84d16d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5507af
push 0x74d890
push 0x2fb
push esi
call fcn.0054fa8c
add esp, 0xc
test eax, eax
je 0x5507af
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0054b756
add esp, 0x14
push esi
call fcn.0054b890
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5507f4
push esi
call fcn.0054b890
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x84d364
push 0x74d88c
sub ecx, eax
push ecx
push eax
call fcn.0055ef31
add esp, 0x14
test eax, eax
je 0x5507f4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0054b756
add esp, 0x14
jmp 0x5507f6
xor esi, esi
push 0x74d888
push ebx
push ebp
call fcn.0055eec0
add esp, 0xc
test eax, eax
je 0x550816
push esi
push esi
push esi
push esi
push esi
call fcn.0054b756
add esp, 0x14
push dword [edi*8 + 0x820c8c]
push ebx
push ebp
call fcn.0055eec0
add esp, 0xc
test eax, eax
je 0x550838
push esi
push esi
push esi
push esi
push esi
call fcn.0054b756
add esp, 0x14
push 0x12010
push 0x74d860
push ebp
call fcn.0055ed03
add esp, 0xc
jmp 0x550880
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x550880
cmp ebp, 0xffffffff
je 0x550880
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x820c8c]
push dword [esi]
call fcn.0054b890
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret