joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008e70
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a8
push ebx
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x50]
rep stosd dword es:[edi], eax
mov ecx, 0x3f
lea edi, [ebp - 0x150]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x50]
xor esi, esi
lea eax, [ebp - 0x150]
push ecx
mov dword [ebp - 0xc], esi
mov byte [ebp - 0x50], 0x37
mov dword [ebp - 0x4c], eax
mov word [ebp - 0x48], 0xff
call sub.NETAPI32.dll_Netbios
test al, al
jne 0x10008f63
mov al, byte [ebp - 0x150]
xor edi, edi
test al, al
jbe 0x10008efe
mov bl, 0x32
mov dl, byte [ebp + edi - 0x14f]
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 0x50], bl
mov byte [ebp - 0x20], dl
call sub.NETAPI32.dll_Netbios
test al, al
je 0x10008efe
mov ecx, dword [ebp - 0x150]
inc edi
and ecx, 0xff
cmp edi, ecx
jl 0x10008ecf
test al, al
jne 0x10008f63
mov ecx, 0x10
xor eax, eax
lea edi, [ebp - 0x50]
mov dl, byte [ebp - 0x14f]
rep stosd dword es:[edi], eax
mov edi, 0x1008b4bc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [ebp - 0x20], dl
lea edx, [ebp - 0x46]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
mov byte [ebp - 0x50], 0x33
lea edx, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x3a8]
mov word [ebp - 0x48], 0x258
mov dword [ebp - 0x4c], ecx
call sub.NETAPI32.dll_Netbios
mov ax, word [ebp - 0x3a4]
mov esi, dword [ebp - 0x3a8]
mov word [ebp - 0xc], ax
xor edi, edi
push 0xa
push edi
push edi
lea ecx, [ebp - 4]
push edi
push ecx
push 0xc
push edi
push 0x1008b4b8
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add esi, ebx
mov dword [ebp - 8], edi
adc edx, edi
mov dword [ebp - 0xc], edx
call fcn.10008e00
test al, al
je 0x10008fa8
push ebx
push ecx
push edx
mov eax, 1
cpuid
mov dword [ebp - 8], eax
pop ecx
pop ebx
pop edx
mov edi, dword [ebp - 8]
mov edx, dword [ebp + 8]
xor eax, eax
add edi, esi
mov esi, dword [ebp - 0xc]
push 0xa
push edx
adc eax, esi
push eax
push edi
call dword [sym.imp.MSVCRT.dll__ui64toa]
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10009140
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
cmp eax, 8
push edi
je 0x10009150
pop edi
xor eax, eax
pop esi
ret
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 2
push 0
push 0
push 0
push str.SOFTWARETime
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x1000917a
pop edi
xor eax, eax
pop esi
ret
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
push esi
push 4
push 0
push str.dwLowDateTime
push ecx
call edi
test eax, eax
je 0x100091ab
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [esp + 0x10]
add esi, 4
push 4
push esi
push 4
push 0
push str.dwHighDateTime
push eax
call edi
test eax, eax
je 0x100091d5
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret

Function at 0x100091f0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10009245
push ebx
push esi
push 0xf003f
push str.RasAuto
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x10009240
lea eax, [esp + 0xc]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
Function at 0x100092c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x1ac
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x98]
mov dword [esp + 0x94], ebx
push ebx
rep stosd dword es:[edi], eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x100093ea
lea eax, [esp + 0x94]
mov dword [esp + 0x94], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x100093e3
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
mov esi, dword [esp + 0x1c0]
mov ebp, dword [sym.imp.MSVCRT.dll__stricmp]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xb8]
push esi
push ecx
stosb byte es:[edi], al
call ebp
add esp, 8
test eax, eax
je 0x100093cd
lea edx, [esp + 0xb8]
push 0x2e
push edx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
cmp eax, ebx
je 0x10009391
lea ecx, [esp + 0xb8]
lea edx, [esp + 0xb8]
sub eax, ecx
push eax
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
lea ecx, [esp + 0x20]
push esi
push ecx
call ebp
add esp, 0x14
test eax, eax
je 0x100093cd
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x94]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x100093df
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xb8]
push esi
push ecx
stosb byte es:[edi], al
call ebp
add esp, 8
test eax, eax
jne 0x1000934e
mov eax, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1ac
ret
mov esi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1ac
ret

Function at 0x10009400
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__beginthreadex]
mov esi, ecx
push eax
push 0
push esi
push 0x10009770
push 0
push 0
call edi
lea ecx, [esp + 0x24]
mov ebx, eax
push ecx
push 0
push esi
push 0x10009680
push 0
push 0
call edi
add esp, 0x30
mov edi, eax
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call ebx
push 0xffffffffffffffff
push edi
call ebx
mov edx, dword [esi + 8]
mov ecx, esi
push edx
call fcn.100094e0
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10009470
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push esi
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100094af
or eax, eax
pop esi
add esp, 0x10
ret 8
lea edx, [esp + 4]
push 0x10
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100094d3
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret 8
mov eax, esi
pop esi
add esp, 0x10
ret 8

Function at 0x10009600
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push 0xc
call edi
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10009676
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push esi
mov dword [ebx + 8], esi
mov dword [ebx], eax
call edi
add esp, 4
mov dword [ebx + 4], eax
test eax, eax
je 0x10009676
mov ecx, esi
mov esi, dword [esp + 0x1c]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0xc]
mov ecx, edx
push eax
push 0
push ebx
and ecx, 3
push 0x10009840
push 0
rep movsb byte es:[edi], byte [esi]
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x10009676
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10009bda
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
push 1
mov edi, dword [esi + 4]
pop ebx
cmp edi, 2
jae 0x10009c48
test edi, edi
je 0x10009bf9
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov al, byte [eax]
mov byte [ecx], al
call dword [sym.imp.MSVCRT.dll__errno]
and dword [eax], 0
push dword [esi + 0x40]
mov eax, 0x4000
mov ecx, edi
sar eax, cl
push eax
mov eax, dword [esi + 0x44]
add eax, edi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
jne 0x10009c30
mov ecx, dword [esi + 0x40]
test byte [ecx + 0xc], 0x20
je 0x10009c30
or dword [esi + 0x38], 0xffffffff
add dword [esi + 4], eax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x44]
cmp eax, 2
mov dword [esi], ecx
jae 0x10009c48
mov dword [esi + 0x58], eax
jmp 0x10009d26
mov eax, dword [esi]
movzx ecx, byte [eax]
cmp ecx, dword [0x1006c40c]
jne 0x10009d23
movzx ecx, byte [eax + 1]
cmp ecx, dword [0x1006c410]
jne 0x10009d23
add dword [esi + 4], 0xfffffffe
add eax, 2
push esi
mov dword [esi], eax
call fcn.10009d2a
push esi
mov edi, eax
call fcn.10009d2a
pop ecx
cmp edi, 8
pop ecx
mov ebx, eax
jne 0x10009d1a
test bl, 0xe0
jne 0x10009d1a
push 6
pop edi
push esi
call fcn.10009d2a
dec edi
pop ecx
jne 0x10009c99
test bl, 4
je 0x10009cd0
push esi
call fcn.10009d2a
push esi
mov edi, eax
call fcn.10009d2a
pop ecx
shl eax, 8
pop ecx
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x10009cd0
push esi
call fcn.10009d2a
cmp eax, 0xffffffff
pop ecx
jne 0x10009cbd
test bl, 8
je 0x10009ce5
push esi
call fcn.10009d2a
test eax, eax
pop ecx
je 0x10009ce5
cmp eax, 0xffffffff
jmp 0x10009cd3
test bl, 0x10
je 0x10009cfa
push esi
call fcn.10009d2a
test eax, eax
pop ecx
je 0x10009cfa
cmp eax, 0xffffffff
jmp 0x10009ce8
test bl, 2
je 0x10009d0c
push 2
pop edi
push esi
call fcn.10009d2a
dec edi
pop ecx
jne 0x10009d02
mov eax, dword [esi + 0x3c]
neg eax
sbb eax, eax
and al, 0xfd
mov dword [esi + 0x38], eax
jmp 0x10009d26
mov dword [esi + 0x38], 0xfffffffd
jmp 0x10009d26
mov dword [esi + 0x58], ebx
pop edi
pop esi
pop ebx
ret

Function at 0x10009d2a
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x3c], 0
je 0x10009d3a
or eax, 0xffffffff
pop esi
ret
cmp dword [esi + 4], 0
jne 0x10009d83
call dword [sym.imp.MSVCRT.dll__errno]
and dword [eax], 0
push dword [esi + 0x40]
push 0x4000
push 1
push dword [esi + 0x44]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x10009d7e
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [ecx + 0xc], 0x20
je 0x10009d8e
mov dword [esi + 0x38], eax
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
pop esi
ret
Function at 0x10009e2d
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10009ece
cmp byte [esi + 0x5c], 0x77
jne 0x10009ece
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push edi
test ebx, ebx
mov dword [esi], eax
mov dword [esi + 4], ebx
je 0x10009eb2
mov edi, 0x4000
cmp dword [esi + 0x10], 0
jne 0x10009e7f
push dword [esi + 0x40]
mov eax, dword [esi + 0x48]
mov dword [esi + 0xc], eax
push edi
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, edi
jne 0x10009eae
mov dword [esi + 0x10], edi
mov eax, dword [esi + 4]
push 0
add dword [esi + 0x64], eax
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push esi
call fcn.1000a29f
mov edx, dword [esi + 0x10]
pop ecx
sub dword [esi + 0x68], edx
pop ecx
mov ecx, dword [esi + 4]
mov dword [esi + 0x38], eax
sub dword [esi + 0x64], ecx
test eax, eax
jne 0x10009eb2
test ecx, ecx
jne 0x10009e5c
jmp 0x10009eb2
or dword [esi + 0x38], 0xffffffff
push ebx
push dword [esp + 0x18]
push dword [esi + 0x4c]
call fcn.1000b889
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, ebx
sub eax, dword [esi + 4]
pop edi
pop ebx
pop esi
ret
push 0xfffffffffffffffe
pop eax
pop esi
ret

Function at 0x10009ed3
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x10009f7e
cmp byte [esi + 0x5c], 0x77
jne 0x10009f7e
mov dword [esi + 4], ebx
mov edi, 0x4000
sub edi, dword [esi + 0x10]
je 0x10009f1e
push dword [esi + 0x40]
push edi
push 1
push dword [esi + 0x48]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, edi
jne 0x10009f68
mov eax, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], eax
test ebx, ebx
jne 0x10009f70
push dword [esp + 0x14]
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push esi
call fcn.1000a29f
pop ecx
mov dword [esi + 0x38], eax
pop ecx
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x68], ecx
test edi, edi
jne 0x10009f49
cmp eax, 0xfffffffb
jne 0x10009f49
and dword [esi + 0x38], edi
test ecx, ecx
jne 0x10009f57
cmp dword [esi + 0x38], 1
je 0x10009f57
xor ebx, ebx
jmp 0x10009f5a
push 1
pop ebx
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10009ef1
cmp eax, 1
jne 0x10009f70
jmp 0x10009ef1
or eax, 0xffffffff
mov dword [esi + 0x38], eax
jmp 0x10009f81
mov esi, dword [esi + 0x38]
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
jmp 0x10009f81
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
ret
Function at 0x1000ad2a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x1000adb2
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x1000ad75
mov eax, dword [esi + 0x40]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x1000ad97
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x1000ae0d
mov ecx, dword [esi + 0x74]
push ebx
add ecx, dword [esi + 0x6c]
add ecx, dword [esi + 0x38]
push ecx
push eax
call fcn.1000ae12
add dword [esi + 0x74], eax
mov ebx, dword [esi + 0x74]
add esp, 0xc
cmp ebx, 3
jb 0x1000adf9
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x1000ae0d
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x1000ad36
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1001fd30
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.1001d6a0
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1001fd79
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x1001fd79
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push sym.imp.MSVCRT.dll__mbscmp
call sub.MSVCRT.dll_vfprintf
add esp, 0xc
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x104]
push 0xff
push ecx
call sub.MSVCRT.dll__vsnprintf
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1001fe7b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x1001fe36
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x1001fe36
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1001fe36
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x1001fe36
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.1001d6a0
lea eax, [ebp - 4]
mov edi, esp
push eax
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x1001fe36
mov ecx, dword [ebp - 4]
push str.Service_0x
push edi
lea eax, [ecx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call sub.MSVCRT.dll_wcsstr
add esp, 8
test eax, eax
je 0x1001fe7b
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push 0
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
xor esi, esi
test edi, edi
je 0x100206f1
mov al, byte [edi]
test al, al
je 0x100206f1
push ebx
push ebp
mov ebx, 0x100
movsx eax, al
or eax, ebx
mov ebp, esi
mov edx, eax
mov ecx, eax
shr edx, 2
and edx, 0xf
and ecx, 0xf
xor edx, ecx
mov ecx, 0x20
sub ecx, edx
add ebx, 0x100
shr ebp, cl
mov ecx, edx
mov edx, eax
imul edx, eax
shl esi, cl
mov al, byte [edi + 1]
or ebp, esi
xor ebp, edx
inc edi
test al, al
mov esi, ebp
jne 0x100206a9
mov eax, esi
pop ebp
shr eax, 0x10
pop ebx
xor eax, esi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x1002aa20
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push ebx
call sub.MSVCRT.dll_fopen
mov edi, eax
add esp, 8
test edi, edi
jne 0x1002aab6
push 0x7e
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.1001e430
push 0x10070404
push esi
push 0x10077d40
push ebx
push str.fopen_
push 5
call fcn.1001e770
add esp, 0x2c
call sub.MSVCRT.dll__errno
cmp dword [eax], 2
jne 0x1002aa98
push 0x81
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.1001e430
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x83
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.1001e430
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x100956c0
call fcn.10020da0
mov esi, eax
add esp, 4
test esi, esi
jne 0x1002aad8
push edi
call sub.MSVCRT.dll_fclose
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.10020ed0
push edi
push 1
push 0x6a
push esi
call fcn.10021230
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x1002c0e0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.1001d6a0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x1002c10b
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x1002c11d
mov ebx, dword [esp + 0x94]
mov ecx, dword [ebx]
mov dword [esp + 0xa0], ecx
mov esi, ecx
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x1002c289
push esi
call fcn.1002bc00
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x1002c153
push str.j____int_sizeof_ctx__key_
push 0x54
push str..cryptohmachmac.c
call fcn.1001fea0
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x1002c192
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.1002b030
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call fcn.1002b160
lea esi, [ebx + 0x34]
lea ecx, [ebx + 0x38]
push esi
push ecx
push edi
call fcn.1002b180
add esp, 0x24
jmp 0x1002c1d1
test ebp, ebp
jl 0x1002c19e
cmp ebp, 0x80
jle 0x1002c1b2
push str.len_0__len__int_sizeof_ctx__key_
push 0x5e
push str..cryptohmachmac.c
call fcn.1001fea0
add esp, 0xc
mov esi, dword [esp + 0x98]
mov ecx, ebp
mov edx, ecx
lea edi, [ebx + 0x38]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x34]
mov dword [esi], ebp
mov esi, dword [esi]
cmp esi, 0x80
je 0x1002c1f6
mov ecx, 0x80
xor eax, eax
sub ecx, esi
lea edi, [esi + ebx + 0x38]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [esp + 0xa0]
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x1002c1ff
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x14]
push ebp
push esi
push edi
call fcn.1002b030
push esi
call fcn.1002bc00
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.1002b160
add esp, 0x1c
xor eax, eax
mov cl, byte [ebx + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 0x80
jl 0x1002c23b
lea edi, [ebx + 0x24]
push ebp
push esi
push edi
call fcn.1002b030
push esi
call fcn.1002bc00
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.1002b160
add esp, 0x1c
lea eax, [ebx + 0x14]
add ebx, 4
push eax
push ebx
call fcn.1002b200
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x1002c26e
jmp 0x1002c1fd
Function at 0x10039d90
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
mov eax, 1
ret
Function at 0x1003b6a0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0x367cd507
mov dword [eax + 8], 0x3070dd17
mov dword [eax + 0xc], 0xf70e5939
mov dword [eax + 0x10], 0xffc00b31
mov dword [eax + 0x14], 0x68581511
mov dword [eax + 0x18], 0x64f98fa7
mov dword [eax + 0x1c], 0xbefa4fa4
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x1c
mov eax, 1
ret

Function at 0x1003b700
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
mov dword [eax + 0x68], ecx
mov dword [eax + 0x6c], 0x20
mov eax, 1
ret