joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a1e0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527a08
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x581980]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, edi
jge 0x45a22e
push 0x5729f8
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], edi
call fcn.004f8c34
push edi
push edi
push edi
push 3
push 4
push edi
push edi
push 0xffffffffffffffff
push edi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, edi
jge 0x45a25c
cmp eax, 0x80010119
je 0x45a25c
push 0x5729f8
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], edi
call fcn.004f8c34
push esi
push 0x564068
push 1
push edi
push 0x564138
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jge 0x45a285
push 0x5729f8
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], edi
call fcn.004f8c34
lea ebx, [ebp - 0x20]
call fcn.00450a30
mov byte [ebp - 4], 1
mov eax, dword [eax]
test eax, eax
je 0x45a29b
mov ecx, dword [eax]
jmp 0x45a29d
xor ecx, ecx
mov eax, dword [esi]
mov edx, dword [eax]
lea ebx, [esi + 4]
push ebx
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 0
call fcn.004509e0
xor edi, edi
cmp dword [ebp - 0x24], edi
jge 0x45a2e9
mov esi, dword [esi]
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
push 0x5729f8
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], edi
call fcn.004f8c34
mov ecx, dword [ebx]
push edi
push edi
push 3
push 3
push edi
push edi
push 0xa
push ecx
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, edi
jge 0x45a325
mov ebx, dword [ebx]
mov edx, dword [ebx]
mov eax, dword [edx + 8]
push ebx
call eax
mov esi, dword [esi]
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push esi
call edx
push 0x5729f8
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], edi
call fcn.004f8c34
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d370
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3f
lea eax, [ebp - 0x7b]
push 0
push eax
mov byte [ebp - 0x7c], 0
call fcn.004f50f0
add esp, 0xc
xor eax, eax
mov ecx, eax
shr ecx, 3
movsx edx, byte [ecx + esi]
mov ecx, eax
and ecx, 7
shl edx, cl
inc eax
sar edx, 7
and dl, 1
mov byte [ebp + eax - 0x7d], dl
cmp eax, 0x40
jb 0x45d396
push 0x37
lea eax, [ebp - 0x3b]
push 0
push eax
mov byte [ebp - 0x3c], 0
call fcn.004f50f0
add esp, 0xc
xor eax, eax
lea esp, [esp]
movsx ecx, byte [eax + str.91__]
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x5666f5]
mov byte [ebp + eax - 0x3c], dl
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x5666f6]
mov byte [ebp + eax - 0x3b], dl
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x5666f7]
mov byte [ebp + eax - 0x3a], dl
movzx edx, byte [ebp + ecx - 0x7d]
mov byte [ebp + eax - 0x39], dl
add eax, 4
cmp eax, 0x38
jl 0x45d3d0
lea edx, [ebp - 0x3c]
mov ecx, edi
call fcn.0045d430
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f2889
mov esp, ebp
pop ebp
ret
Function at 0x45d430
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push edi
mov ebx, ecx
mov ecx, 7
mov esi, edx
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x1c]
mov ecx, 7
lea edi, [ebp - 0xac]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov word [ebp - 0x23], ax
mov byte [ebp - 0x21], al
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0xb0], edi
jmp 0x45d4b6
mov edi, dword [ebp - 0xb0]
movsx esi, byte [edi + 0x56675c]
mov eax, 0x1c
sub eax, esi
push eax
lea ecx, [ebp + esi - 0x90]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.004f4d50
push esi
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x20]
push eax
sub ecx, esi
push ecx
call fcn.004f4d50
movsx esi, byte [edi + 0x56675c]
mov edx, 0x1c
sub edx, esi
push edx
lea eax, [ebp + esi - 0xac]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.004f4d50
push esi
lea edx, [ebp - 0xac]
lea eax, [ebp - 4]
push edx
sub eax, esi
push eax
call fcn.004f4d50
push 0x37
lea ecx, [ebp - 0x73]
push 0
push ecx
call fcn.004f50f0
push 0x30
mov ecx, 7
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, 7
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x58]
push ebx
rep movsd dword es:[edi], dword [esi]
call fcn.004f50f0
add esp, 0x48
xor eax, eax
jmp 0x45d560
movsx edx, byte [eax + 0x56672c]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax], cl
movsx edx, byte [eax + 0x56672d]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 1], cl
movsx edx, byte [eax + 0x56672e]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 2], cl
movsx edx, byte [eax + 0x56672f]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 3], cl
movsx edx, byte [eax + 0x566730]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 4], cl
movsx edx, byte [eax + 0x566731]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 5], cl
add eax, 6
cmp eax, 0x30
jl 0x45d560
mov eax, dword [ebp - 0xb0]
mov ecx, 7
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
inc eax
mov ecx, 7
lea esi, [ebp - 0x20]
lea edi, [ebp - 0xac]
add ebx, 0x30
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xb0], eax
cmp eax, 0x10
jl 0x45d4b0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f2889
mov esp, ebp
pop ebp
ret
Function at 0x45d620
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3f
mov esi, ecx
lea ecx, [ebp - 0x43]
push ebx
push ecx
mov dword [ebp - 0xe8], eax
mov byte [ebp - 0x44], bl
call fcn.004f50f0
push 0x3f
lea edx, [ebp - 0xe3]
push ebx
push edx
mov byte [ebp - 0xe4], bl
call fcn.004f50f0
push 0x3f
lea eax, [ebp - 0x83]
push ebx
push eax
call fcn.004f50f0
add esp, 0x24
xor eax, eax
jmp 0x45d680
mov ecx, eax
shr ecx, 3
movsx edx, byte [ecx + esi]
mov ecx, eax
and ecx, 7
shl edx, cl
inc eax
sar edx, 7
and dl, 1
mov byte [ebp + eax - 0x45], dl
cmp eax, 0x40
jb 0x45d680
lea eax, [ebp - 0xe4]
lea ecx, [ebp - 0x44]
call fcn.0045da00
mov ecx, 8
lea esi, [ebp - 0xe4]
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0xc4]
lea edi, [ebp - 0xa4]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov edx, dword [ebp - 0xe8]
lea eax, [ebp - 0xa4]
push eax
mov ecx, esi
lea ebx, [ebp - 0x24]
call fcn.0045d7a0
inc esi
cmp esi, 0x10
jl 0x45d6d3
mov ecx, 8
lea esi, [ebp - 0xa4]
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
mov esi, ebx
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
movsx ecx, byte [eax + 0x566a00]
movzx edx, byte [ebp + ecx - 0x85]
mov ecx, dword [ebp - 0xe8]
mov byte [ecx + eax + 0x600], dl
movsx edx, byte [eax + 0x566a01]
movzx edx, byte [ebp + edx - 0x85]
mov byte [ecx + eax + 0x601], dl
movsx edx, byte [eax + 0x566a02]
movzx edx, byte [ebp + edx - 0x85]
mov byte [ecx + eax + 0x602], dl
movsx edx, byte [eax + 0x566a03]
movzx edx, byte [ebp + edx - 0x85]
mov byte [ecx + eax + 0x603], dl
add eax, 4
cmp eax, 0x40
jl 0x45d711
mov eax, ecx
lea edi, [eax + 0x600]
lea esi, [eax + 0x680]
call fcn.0045dc80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f2889
mov esp, ebp
pop ebp
ret 4
Function at 0x45da00
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, 0x566770
mov edi, 0x566771
mov edx, 0x566772
mov ebx, 0x566773
sub esi, eax
sub edi, eax
sub edx, eax
sub ebx, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x10
nop
movsx ebx, byte [esi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax], bl
movsx ebx, byte [edi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 1], bl
movsx ebx, byte [edx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 2], bl
mov ebx, dword [ebp - 8]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 3], bl
add eax, 4
dec dword [ebp - 4]
jne 0x45da30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45da80
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, 0x5667b3
sub ebx, eax
mov dword [ebp - 8], ebx
push esi
mov ebx, 0x5667b4
sub ebx, eax
push edi
mov dword [ebp - 0xc], ebx
mov esi, 0x5667b0
mov edi, 0x5667b1
mov edx, 0x5667b2
mov ebx, 0x5667b5
sub esi, eax
sub edi, eax
sub edx, eax
sub ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 8
movsx ebx, byte [esi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax], bl
movsx ebx, byte [edi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 1], bl
movsx ebx, byte [edx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 2], bl
mov ebx, dword [ebp - 8]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 3], bl
mov ebx, dword [ebp - 0xc]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 4], bl
mov ebx, dword [ebp - 0x10]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 5], bl
add eax, 6
dec dword [ebp - 4]
jne 0x45dac3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45dc00
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, 0x5669e0
mov edi, 0x5669e1
mov edx, 0x5669e2
mov ebx, 0x5669e3
sub esi, eax
sub edi, eax
sub edx, eax
sub ebx, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 8
nop
movsx ebx, byte [esi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax], bl
movsx ebx, byte [edi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 1], bl
movsx ebx, byte [edx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 2], bl
mov ebx, dword [ebp - 8]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 3], bl
add eax, 4
dec dword [ebp - 4]
jne 0x45dc30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4631c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527468
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x581980]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push 8
mov dword [esi], ebx
call fcn.004f294c
add esp, 4
cmp eax, ebx
je 0x4632a4
mov dword [esi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x18]
push 8
mov dword [edi], ebx
call fcn.004f294c
add esp, 4
cmp eax, ebx
je 0x463280
mov dword [edi], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov ecx, dword [edi]
mov dword [ecx], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov eax, 0xf
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x74], eax
mov dword [esi + 0x70], ebx
mov byte [esi + 0x60], bl
mov word [esi + 0x7c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.004f2c93
push 0x572990
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.004f8c34
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
call fcn.004f2c93
push 0x572990
lea edx, [ebp - 0x2c]
push edx
mov dword [ebp - 0x2c], vtable.std::bad_alloc.0
call fcn.004f8c34
int3
Function at 0x469960
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x526a7b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x581980]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004f2746
push 4
mov dword [ebp - 4], 0
call fcn.004f294c
mov edi, eax
add esp, 4
test edi, edi
je 0x4699dc
call fcn.004f22ae
mov dword [edi], eax
call fcn.004f206d
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004f2397
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4699d2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004f23bf
jmp 0x4699de
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x471880
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004f50c0
mov eax, dword [0x581980]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4718e5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4718e5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.004f4a35
add eax, 0x40
push eax
call fcn.004f5cb0
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f2889
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.004f5b88
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x471978
call fcn.00471740
test eax, eax
jle 0x471978
push esi
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x471962
push 0
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f2889
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f2889
add esp, 0x108
ret
Function at 0x4719e0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x471a02
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc eax
or cl, dl
dec edi
jne 0x4719f6
pop esi
movzx eax, cl
pop edi
ret

Function at 0x471db0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x471df4
mov al, byte [edx]
test al, al
je 0x471df4
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
inc edx
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x471dc7
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x47f5c0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.0047efa0
mov edi, eax
add esp, 4
test edi, edi
jne 0x47f658
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0046efe0
push 0x52e4a8
push esi
push 0x53e2a4
push ebx
push str.fopen_
push 5
call fcn.0046f2a0
add esp, 0x2c
call fcn.004f656a
cmp dword [eax], 2
jne 0x47f63a
push 0xb2
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0046efe0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xb4
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0046efe0
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x5794e4
call fcn.00472af0
mov esi, eax
add esp, 4
test esi, esi
jne 0x47f67a
push edi
call fcn.004f696a
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.00472440
push edi
push 1
push 0x6a
push esi
call fcn.00472830
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x493d80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
dec ecx
push edi
mov edi, dword [esi + 4]
shr ecx, 0x1f
xor edx, edi
dec ecx
and edx, ecx
xor edi, edx
mov dword [esi + 4], edi
xor dword [eax + 4], edx
lea edx, [ebx - 1]
cmp edx, 9
ja case.default.0x493db2
jmp dword [edx*4 + 0x493edc]
mov edi, 0xa
cmp ebx, edi
jle case.0x493db2.10
push ebp
mov edx, dword [esi]
mov ebx, dword [edx + edi*4]
lea ebp, [edx + edi*4]
mov edx, dword [eax]
mov edx, dword [edx + edi*4]
xor edx, ebx
and edx, ecx
xor ebx, edx
mov dword [ebp], ebx
mov ebx, dword [eax]
xor dword [ebx + edi*4], edx
lea ebx, [ebx + edi*4]
inc edi
cmp edi, dword [esp + 0x20]
jl 0x493dc3
pop ebp
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x24]
mov edx, dword [edx + 0x24]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x24], edi
mov edi, dword [eax]
xor dword [edi + 0x24], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x20]
mov edx, dword [edx + 0x20]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x20], edi
mov edi, dword [eax]
xor dword [edi + 0x20], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x1c]
mov edx, dword [edx + 0x1c]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x1c], edi
mov edi, dword [eax]
xor dword [edi + 0x1c], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x18]
mov edx, dword [edx + 0x18]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x18], edi
mov edi, dword [eax]
xor dword [edi + 0x18], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x14]
mov edx, dword [edx + 0x14]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x14], edi
mov edi, dword [eax]
xor dword [edi + 0x14], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x10]
mov edx, dword [edx + 0x10]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x10], edi
mov edi, dword [eax]
xor dword [edi + 0x10], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0xc]
mov edx, dword [edx + 0xc]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0xc], edi
mov edi, dword [eax]
xor dword [edi + 0xc], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 8]
mov edx, dword [edx + 8]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 8], edi
mov edi, dword [eax]
xor dword [edi + 8], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 4]
mov edx, dword [edx + 4]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 4], edi
mov edi, dword [eax]
xor dword [edi + 4], edx
mov esi, dword [esi]
mov edx, dword [eax]
mov edi, dword [esi]
mov edx, dword [edx]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [esi], edi
mov eax, dword [eax]
xor dword [eax], edx
pop edi
pop esi
pop ebx
ret
Function at 0x497c60
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.004f50c0
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
inc ebp
cmp eax, 0x302
jge 0x497c96
cmp eax, 0x100
je 0x497c96
mov esi, dword [esp + 0x18]
cmp ebp, dword [esi + 4]
jbe 0x497cb5
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
lea esi, [edx + ebp]
cmp esi, ecx
ja 0x497c8f
add dword [eax + 0xc], edx
add dword [eax + 0x10], edx
sub ecx, edx
mov dword [eax + 4], ecx
mov esi, eax
test dword [edi + 0x100], 0x200
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
push ebx
movzx ebx, byte [eax + ecx - 1]
je 0x497d08
cmp dword [edi + 0x88], 0
jne 0x497d08
mov edx, dword [edi + 0x58]
push 8
add edx, 8
push 0x54446c
push edx
call fcn.004719e0
add esp, 0xc
test eax, eax
jne 0x497cfb
test bl, 1
jne 0x497cfb
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov eax, dword [edi + 0x58]
test byte [eax], 8
je 0x497d08
test ebx, ebx
je 0x497d08
dec ebx
mov ecx, dword [edi + 0x80]
mov edx, dword [ecx]
push edx
call fcn.0048f730
add esp, 4
test eax, 0x200000
je 0x497d33
or eax, 0xffffffff
sub eax, ebx
add dword [esi + 4], eax
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea eax, [ebx + ebp]
mov esi, edi
sub esi, eax
xor esi, eax
mov ecx, edi
xor ecx, eax
or esi, ecx
xor esi, edi
shr esi, 0x1f
mov ecx, 0xff
lea eax, [edi - 1]
dec esi
mov dword [esp + 0x18], ecx
cmp eax, ecx
jae 0x497d61
mov ecx, eax
mov dword [esp + 0x18], eax
xor ebp, ebp
test ecx, ecx
je 0x497db7
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0xc]
mov ecx, ebx
shr ecx, 0x1f
lea edx, [eax + edi - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], edx
nop
mov edx, ebx
sub edx, ebp
shr edx, 0x1f
mov eax, ebp
shr eax, 0x1f
xor dl, al
xor cl, al
or dl, cl
mov ecx, dword [esp + 0x10]
xor dl, cl
dec dl
movzx eax, dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx]
dec dword [esp + 0x24]
xor edx, ebx
and eax, edx
not eax
inc ebp
and esi, eax
cmp ebp, dword [esp + 0x18]
jb 0x497d80
mov edx, dword [esp + 0x1c]
not esi
and esi, 0xff
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
and ecx, esi
neg ecx
lea eax, [ebx + 1]
and eax, ecx
sub edi, eax
shl eax, 8
or dword [edx], eax
pop ebx
mov dword [edx + 4], edi
mov eax, ecx
pop edi
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret