joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aed70
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d8ee
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x616738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408290
movzx eax, al
cmp eax, 1
jne 0x4aedca
mov dword [ebp - 0x34], 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x34]
jmp 0x4aef30
lea ecx, [ebp - 0x14]
call fcn.004af9b0
mov byte [ebp - 4], 1
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4aee1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004af9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x38]
jmp 0x4aef30
push 0xf01ff
lea ecx, [ebp + 8]
call fcn.004090f0
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4aee67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004af9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x3c]
jmp 0x4aef30
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x2c], 1
je 0x4aee96
lea ecx, [ebp - 0x30]
push ecx
push 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_ControlService]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4aeedc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4aeedc
cmp dword [ebp - 0x2c], 3
je 0x4aeecf
jmp 0x4aeedc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4aeeb5
cmp dword [ebp - 0x2c], 1
jne 0x4aef09
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004af9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x40]
jmp 0x4aef30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004af9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4af4c0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d9e0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x616738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408290
movzx eax, al
cmp eax, 1
jne 0x4af51a
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x38]
jmp 0x4af621
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x18]
call fcn.004af9b0
mov byte [ebp - 4], 1
push SysReAllocStringLen
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4af56f
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004af9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x3c]
jmp 0x4af621
push SysReAllocStringLen
lea ecx, [ebp + 8]
call fcn.004090f0
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4af5b7
mov dword [ebp - 0x40], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004af9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x40]
jmp 0x4af621
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4af5f0
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004af9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x44]
jmp 0x4af621
cmp dword [ebp - 0x30], 4
jne 0x4af5fd
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004af9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4af630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59da0b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x616738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x18]
call fcn.004a2910
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
push str.SYSTEMCurrentControlSetServices_s
lea ecx, [ebp - 0x18]
push ecx
call fcn.004098b0
add esp, 0xc
lea edx, [ebp - 0x1c]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x18]
call fcn.004090f0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4af6f4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 4
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0
push str.DeleteFlag
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4af6f4
cmp dword [ebp - 0x28], 1
jne 0x4af6f4
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00408330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4af740
Capabilities:
Query service configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.00408290
movzx eax, al
test eax, eax
jne 0x4af800
lea ecx, [ebp - 0xc]
call fcn.004af9b0
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4af7f8
push 1
mov ecx, dword [ebp + 8]
call fcn.004090f0
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4af7f8
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00570dc0
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x4af7ec
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.005732b6
add esp, 4
lea ecx, [ebp - 0xc]
call fcn.004af9e0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4af810
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59da36
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x616738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00408290
movzx eax, al
cmp eax, 1
jne 0x4af86a
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x18]
jmp 0x4af970
lea ecx, [ebp - 0x14]
call fcn.004af9b0
mov byte [ebp - 4], 1
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4af8b8
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004af9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x1c]
jmp 0x4af970
push 0xf01ff
lea ecx, [ebp + 8]
call fcn.004090f0
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4af900
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004af9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x20]
jmp 0x4af970
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x4af94b
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004af9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x24]
jmp 0x4af970
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004af9e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4afbb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0xffffffff
jne 0x4afbc6
xor eax, eax
jmp 0x4afc27
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x4afc1c
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4afc0d
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
ja 0x4afc0f
jmp 0x4afc1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 4], ecx
jmp 0x4afbcd
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp edx, dword [ebp - 4]
sete al
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b7e60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e339
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x616738]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x30]
call fcn.00485a80
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push ecx
push 0x20219
push 0
mov ecx, dword [ebp + 0x10]
call fcn.00411920
push eax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b7f3f
xor eax, eax
mov word [ebp - 0x244], ax
push 0x206
push 0
lea ecx, [ebp - 0x242]
push ecx
call fcn.0056f420
add esp, 0xc
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x38], 0x208
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0
mov ecx, dword [ebp + 0x14]
call fcn.00411920
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4b7f35
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x30]
call fcn.0047fcf0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00485a80
mov eax, dword [ebp - 0x248]
or eax, 1
mov dword [ebp - 0x248], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00411900
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret

Function at 0x4b8100
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e3db
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x616738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0
mov ecx, dword [ebp + 8]
call fcn.00411920
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004b81b0
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
call fcn.00411920
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00411900
mov eax, dword [ebp - 0x10]
cdq
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
jl 0x4b8197
jg 0x4b818e
cmp dword [ebp - 0x3c], 0x20
jbe 0x4b8197
mov dword [ebp - 0x40], 1
jmp 0x4b819e
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4b8fd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.00571640
mov eax, dword [0x616738]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov dword [esp + 0x3c], 0
jne 0x4b9017
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.0057a656
add esp, 8
test eax, eax
jl 0x4b9000
mov eax, 8
call fcn.00571640
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.004b8e40
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x4b9000
push 0x5b685c
push esi
call fcn.005713d6
add esp, 8
test eax, eax
mov dword [esp + 0x40], eax
je 0x4b90f1
jmp 0x4b9074
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x4b9082
cmp ebx, 0x400
mov esi, ebx
jl 0x4b9087
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.00577e06
mov edi, eax
add esp, 0x10
test edi, edi
mov dword [esp + 0x44], edi
jle 0x4b90d5
fild dword [esp + 0x44]
mov eax, 8
call fcn.00571640
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.004b8e40
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x4b9070
sub ebx, esi
test ebx, ebx
jg 0x4b9070
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00571296
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.004c56a0
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret
Function at 0x4c69c0
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00571640
mov eax, dword [0x616738]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4c6a25
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4c6a25
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.0057be45
add eax, 0x40
push eax
call fcn.0057be26
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0056edd3
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.0057985c
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4c6ab4
call fcn.004c6880
test eax, eax
jle 0x4c6ab4
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
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.0056edd3
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.0056edd3
add esp, 0x108
ret

Function at 0x4c6b10
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x4c6b36
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
add eax, 1
or cl, dl
sub edi, 1
jne 0x4c6b26
pop esi
movzx eax, cl
pop edi
ret
Function at 0x4e8299
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.00571640
mov eax, dword [0x616738]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
test eax, eax
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
jbe 0x4e842c
push ebx
add eax, 0xffffffff
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
add eax, 1
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
xor eax, eax
mov ah, byte [esi + 1]
add esi, 1
movzx ecx, byte [esi + 1]
add esi, 1
movzx edx, byte [esi + 1]
or ebx, eax
add esi, 1
movzx eax, byte [esi + 1]
shl ecx, 0x10
add esi, 1
or ebx, ecx
xor ecx, ecx
mov ch, byte [esi + 1]
add esi, 1
shl edx, 0x18
or ebx, edx
movzx edx, byte [esi + 1]
or eax, ecx
add esi, 1
movzx ecx, byte [esi + 1]
add esi, 1
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
add esi, 1
mov byte [edi], dl
mov byte [ebp], al
call fcn.00501c00
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.00501c80
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00500970
push ebp
call fcn.00501c00
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.00501c80
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00500970
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
add eax, 1
shr edx, 8
add esp, 0x30
mov byte [eax], dl
add eax, 1
add eax, 1
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
add eax, 1
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
add eax, 1
add eax, 1
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
add eax, 1
add eax, 1
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
add eax, 1
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
add eax, 1
mov byte [eax], cl
mov edx, ecx
shr edx, 8
add eax, 1
mov byte [eax], dl
mov edx, ecx
add eax, 1
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x4e82b7
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.0056edd3
add esp, 0xa0
ret
Function at 0x51e100
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00571640
mov eax, dword [0x616738]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
test ebp, ebp
push edi
mov dword [esp + 0x14], ecx
je 0x51e14f
mov eax, 1
mov dword [esi], ebp
jmp 0x51e151
mov ebp, dword [esi]
test ecx, ecx
je 0x51e234
push ebp
call fcn.004f9760
mov ebx, eax
add esp, 4
cmp ebx, 0x80
jle 0x51e180
push str.j____int_sizeof_ctx__key_
push 0x68
push str..cryptohmachmac.c
call fcn.004c6ae0
add esp, 0xc
mov edi, dword [esp + 0xa8]
cmp ebx, edi
jge 0x51e1d7
mov ecx, dword [esp + 0x10]
push ecx
lea ebx, [esi + 4]
push ebp
push ebx
call fcn.004d2ff0
add esp, 0xc
test eax, eax
je 0x51e2e4
mov edx, dword [esp + 0x14]
push edi
push edx
push ebx
call fcn.004d31a0
add esp, 0xc
test eax, eax
je 0x51e2e4
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.004d31b0
add esp, 0xc
test eax, eax
je 0x51e2e4
jmp 0x51e211
cmp edi, 0x80
jbe 0x51e1f3
push str.len_0__len__int_sizeof_ctx__key_
push 0x75
push str..cryptohmachmac.c
call fcn.004c6ae0
add esp, 0xc
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esi + 0x50]
push edx
call fcn.00572e00
mov eax, dword [esp + 0xb4]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], eax
mov edi, dword [edi]
cmp edi, 0x80
je 0x51e23c
mov ecx, 0x80
sub ecx, edi
push ecx
lea edx, [edi + esi + 0x50]
push 0
push edx
call fcn.0056f420
add esp, 0xc
jmp 0x51e23c
test eax, eax
je 0x51e2d0
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
add eax, 1
cmp eax, 0x80
jl 0x51e240
mov edi, dword [esp + 0x10]
push edi
lea ebx, [esi + 0x1c]
push ebp
push ebx
call fcn.004d2ff0
add esp, 0xc
test eax, eax
je 0x51e2e4
push ebp
call fcn.004f9760
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.004d31a0
add esp, 0x10
test eax, eax
je 0x51e2e4
xor eax, eax
jmp 0x51e290
mov cl, byte [esi + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
add eax, 1
cmp eax, 0x80
jl 0x51e290
push edi
lea ebx, [esi + 0x34]
push ebp
push ebx
call fcn.004d2ff0
add esp, 0xc
test eax, eax
je 0x51e2e4
push ebp
call fcn.004f9760
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.004d31a0
add esp, 0x10
test eax, eax
je 0x51e2e4
lea eax, [esi + 0x1c]
push eax
add esi, 4
push esi
call fcn.004d3340
add esp, 8
test eax, eax
jne 0x51e2e8
xor eax, eax
jmp 0x51e2ed
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0056edd3
add esp, 0x8c
ret
Function at 0x522890
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x5228a9
mov esi, edi
mov edi, eax
jmp 0x5228ab
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x5228bb
mov eax, ebx
jmp 0x5228c5
push eax
push ebx
call fcn.004d3f30
add esp, 8
test eax, eax
jne 0x5228cd
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x5228eb
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x5228d4
cmp eax, dword [esi + 4]
jge 0x522902
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x5228f0
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x522925
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x522922
sub eax, 1
test eax, eax
jg 0x522912
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret