joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d5a50
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x20c
push ebx
push ebp
push esi
xor esi, esi
cmp edx, esi
push edi
je 0x100d5b7c
mov ebp, dword [esp + 0x224]
cmp ebp, esi
je 0x100d5b7c
mov ebx, dword [esp + 0x228]
cmp ebx, esi
je 0x100d5b7c
cmp word [edx], si
je 0x100d5b7c
cmp word [ebp], si
je 0x100d5b7c
cmp word [ebx], si
je 0x100d5b7c
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x18]
push 0x104
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, esi
je 0x100d5b7c
cmp eax, 0x103
jae 0x100d5afa
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x230]
call fcn.10094f40
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20c
ret
mov dword [esp + 0x10], esi
mov esi, 0x400
cmp esi, 0xa00000
jae 0x100d5b6d
add esi, esi
lea edx, [esi + esi]
push edx
call fcn.1007e238
mov edi, eax
add esp, 4
test edi, edi
je 0x100d5b6d
mov eax, dword [esp + 0x220]
push eax
push esi
push edi
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x100d5b3e
lea ecx, [esi - 1]
cmp eax, ecx
jb 0x100d5b49
push edi
call fcn.1007de95
add esp, 4
jmp 0x100d5b03
mov ecx, dword [esp + 0x22c]
push edi
mov dword [esp + 0x14], 1
mov word [edi + eax*2], 0
call fcn.10094f40
push edi
call fcn.1007de95
add esp, 4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20c
ret

Function at 0x100d5ca0
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0xffffffffffffffff
push 0
call fcn.1009a650
mov ebp, dword [esp + 0x14]
mov ebx, 0x400
cmp ebx, 0xa00000
jae 0x100d5d3f
add ebx, ebx
lea eax, [ebx + ebx]
push eax
call fcn.1007e238
mov esi, eax
add esp, 4
test esi, esi
je 0x100d5d3f
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
mov edi, eax
test edi, edi
jbe 0x100d5cec
lea ecx, [ebx - 2]
cmp edi, ecx
jb 0x100d5cfb
push esi
call fcn.1007de95
add esp, 4
test edi, edi
je 0x100d5d3f
jmp 0x100d5cba
mov word [esi + edi*2], 0
cmp word [esi], 0
mov ebx, 1
mov edi, esi
je 0x100d5d2f
mov ecx, dword [esp + 0x18]
push edi
mov edx, dword [ecx + 4]
push edx
call fcn.1009ab00
push edi
call fcn.1007e283
lea edi, [edi + eax*2 + 2]
add esp, 4
cmp word [edi], 0
jne 0x100d5d0e
push esi
call fcn.1007de95
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x100d5d50
Capabilities:
Read .ini file

Disassembly:
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push 0
call fcn.1009a650
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x100d5d6e
push 0xffffffffffffffff
push 0
call fcn.1009a650
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, 0x400
cmp edi, 0xa00000
jae 0x100d5e3d
add edi, edi
lea eax, [edi + edi]
push eax
call fcn.1007e238
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x100d5e3d
mov ecx, dword [esp + 0x14]
push ecx
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
mov esi, eax
test esi, esi
jbe 0x100d5dba
lea edx, [edi - 2]
cmp esi, edx
jb 0x100d5dc9
push ebx
call fcn.1007de95
add esp, 4
test esi, esi
je 0x100d5e3d
jmp 0x100d5d7b
mov word [ebx + esi*2], 0
cmp word [ebx], 0
mov ebp, 1
mov esi, ebx
je 0x100d5e2d
push 0x3d
push esi
call fcn.1007e735
mov edi, eax
add esp, 8
test edi, edi
je 0x100d5e1a
mov ecx, dword [esp + 0x1c]
mov word [edi], 0
push esi
mov eax, dword [ecx + 4]
push eax
call fcn.1009ab00
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x100d5e15
mov eax, dword [ecx + 4]
lea edx, [edi + 2]
push edx
push eax
call fcn.1009ab00
mov word [edi], 0x3d
push esi
call fcn.1007e283
lea esi, [esi + eax*2 + 2]
add esp, 4
cmp word [esi], 0
jne 0x100d5ddc
push ebx
call fcn.1007de95
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x100d9570
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10142b98
push 0x1007f31c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x100d95a4
mov ebx, 0x10000
jmp 0x100d95aa
add ebx, 0x10000
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
or edi, 0xffffffff
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jbe 0x100d9658
cmp dword [ebp - 0x28], 0x1000
jne 0x100d9670
mov eax, dword [ebp - 0x24]
cmp al, 1
je 0x100d9670
test ah, 1
jne 0x100d9670
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x2c]
cmp eax, 0x40
jbe 0x100d966d
cmp word [ebx], 0x5a4d
jne 0x100d966d
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov dword [ebp - 0x40], esi
mov ecx, esi
sub ecx, ebx
add ecx, 4
cmp ecx, eax
jb 0x100d9628
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100d966d
cmp dword [esi], 0x4550
mov dword [ebp - 4], edi
jne 0x100d9670
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
lea ebx, [eax + edx]
jmp 0x100d95b9
Function at 0x100d9880
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10142bb8
push 0x1007f31c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
xor edi, edi
cmp eax, edi
jne 0x100d98c0
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edi
cmp word [ecx], 0x5a4d
je 0x100d98d4
push 0xc1
jmp 0x100d99c8
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x24], eax
cmp dword [eax], 0x4550
je 0x100d98ee
push 0xbf
jmp 0x100d99c8
mov cx, word [eax + 0x14]
cmp cx, di
je 0x100d99c3
and ecx, 0xffff
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edi
xor edx, edx
mov dx, word [eax + 6]
cmp edi, edx
jae 0x100d99c3
lea eax, [edi + edi*4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*8]
mov esi, str.tdetour
mov ecx, eax
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x100d994d
test dl, dl
je 0x100d9949
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x100d994d
add ecx, 2
add esi, 2
test dl, dl
jne 0x100d9929
xor ecx, ecx
jmp 0x100d9952
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x100d99ae
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x100d99c3
mov edx, dword [eax + 0x10]
test edx, edx
je 0x100d99c3
mov edx, dword [ebp - 0x1c]
lea esi, [ecx + edx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x100d99c3
cmp dword [esi + 4], 0x727444
jne 0x100d99c3
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x100d998a
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x24]
jmp 0x100d990b
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100d9c10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10142bd8
push 0x1007f31c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xc]
test eax, eax
mov esi, 0x10000
je 0x100d9c48
lea esi, [eax + 0x10000]
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
or ebx, 0xffffffff
mov edi, dword [ebp + 8]
push 0x1c
lea eax, [ebp - 0x38]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x100d9c88
mov eax, dword [ebp - 0x2c]
mov ecx, eax
and ecx, 0xfff
cmp ecx, 0xfff
je 0x100d9c88
mov edx, dword [ebp - 0x38]
add eax, edx
cmp eax, esi
jae 0x100d9c9d
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x28], 0x1000
jne 0x100d9d5e
mov eax, dword [ebp - 0x24]
cmp al, 1
je 0x100d9d5e
test ah, 1
jne 0x100d9d5e
mov dword [ebp - 4], 0
push 0
push 0x40
lea eax, [ebp - 0x78]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x100d9cea
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
lea esi, [eax + ecx]
jmp 0x100d9c5a
cmp word [ebp - 0x78], 0x5a4d
jne 0x100d9d18
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x2c]
ja 0x100d9d18
cmp eax, 0x40
jb 0x100d9d18
push 0
push 0xf8
mov ecx, dword [ebp + 0x10]
push ecx
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x100d9d29
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
lea esi, [eax + ecx]
jmp 0x100d9c5a
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0x4550
mov dword [ebp - 4], ebx
jne 0x100d9d5e
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
lea esi, [eax + ecx]
jmp 0x100d9c5a
Function at 0x100db650
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10142be8
push 0x1007f31c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x100db688
lea esi, [eax + 0x10000]
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
or ebx, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_VirtualQuery]
push 0x1c
lea eax, [ebp - 0x38]
push eax
push esi
call edi
test eax, eax
jbe 0x100db716
cmp dword [ebp - 0x28], 0x1000
jne 0x100db6d3
mov eax, dword [ebp - 0x24]
cmp al, 1
je 0x100db6d3
test ah, 1
jne 0x100db6d3
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], esi
cmp word [esi], 0x5a4d
je 0x100db6de
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
lea esi, [edx + ecx]
jmp 0x100db69d
mov eax, dword [esi + 0x3c]
add eax, esi
mov dword [ebp - 0x40], eax
cmp dword [eax], 0x4550
mov dword [ebp - 4], ebx
jne 0x100db6d3
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100db930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10142c08
push 0x1007f31c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
xor edi, edi
cmp eax, edi
jne 0x100db970
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], edi
cmp word [ecx], 0x5a4d
je 0x100db984
push 0xc1
jmp 0x100dba78
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x24], eax
cmp dword [eax], 0x4550
je 0x100db99e
push 0xbf
jmp 0x100dba78
mov cx, word [eax + 0x14]
cmp cx, di
je 0x100dba73
and ecx, 0xffff
lea ecx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edi
xor edx, edx
mov dx, word [eax + 6]
cmp edi, edx
jae 0x100dba73
lea eax, [edi + edi*4]
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax*8]
mov esi, str.tdetour
mov ecx, eax
mov bl, byte [ecx]
mov dl, bl
cmp bl, byte [esi]
jne 0x100db9fd
test dl, dl
je 0x100db9f9
mov bl, byte [ecx + 1]
mov dl, bl
cmp bl, byte [esi + 1]
jne 0x100db9fd
add ecx, 2
add esi, 2
test dl, dl
jne 0x100db9d9
xor ecx, ecx
jmp 0x100dba02
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x100dba5e
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x100dba73
mov edx, dword [eax + 0x10]
test edx, edx
je 0x100dba73
mov edx, dword [ebp - 0x1c]
lea esi, [ecx + edx]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
mov eax, dword [esi]
cmp eax, 0x40
jb 0x100dba73
cmp dword [esi + 4], 0x727444
jne 0x100dba73
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x100dba3a
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc edi
mov dword [ebp - 0x28], edi
mov eax, dword [ebp - 0x24]
jmp 0x100db9bb
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100dc980
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x101b1250]
push esi
test eax, eax
jne 0x100dca6a
mov ecx, dword [0x101b124c]
cmp ecx, 3
ja 0x100dca6a
mov edx, ecx
inc edx
mov dword [0x101b124c], edx
call fcn.100bc7a0
test eax, eax
je 0x100dc9bc
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x100dc9c7
push 0x10162750
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x100dc9cf
pop esi
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHGetSpecialFolderLocation
push esi
call edi
push str.SHGetSpecialFolderPathW
push esi
mov dword [0x101b1220], eax
call edi
push str.SHGetKnownFolderPath
push esi
mov dword [0x101b1224], eax
call edi
push str.SHGetFolderLocation
push esi
mov dword [0x101b1228], eax
call edi
push str.SHFormatDrive
push esi
mov dword [0x101b122c], eax
call edi
push 2
push esi
mov dword [0x101b1230], eax
call edi
push 4
push esi
mov dword [0x101b1234], eax
call edi
push str.SHCreateDirectoryExW
push esi
mov dword [0x101b1238], eax
call edi
push str.PathRemoveFileSpecW
push esi
mov dword [0x101b123c], eax
call edi
push str.SHFileOperationA
push esi
mov dword [0x101b1240], eax
call edi
push str.SHFileOperationW
push esi
mov dword [0x101b1244], eax
call edi
mov dword [0x101b1248], eax
mov eax, 1
mov dword [0x101b1250], eax
pop edi
pop esi
ret

Function at 0x100df5f0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x101b13b0]
sub esp, 0x190
test eax, eax
je 0x100df60b
mov eax, 1
add esp, 0x190
ret
push edi
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
pop edi
je 0x100df640
xor eax, eax
add esp, 0x190
ret
mov eax, 1
mov dword [0x101b13b0], eax
add esp, 0x190
ret
Function at 0x100dfb80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1013d04f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov ecx, dword [0x101421f0]
push ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov ecx, 9
lea edi, [esp + 0x16]
mov ebx, dword [esp + 0x50]
mov word [esp + 0x14], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, ebx
lea edx, [esp + 0x14]
push 0xa
push edx
shr eax, 0x18
push eax
mov dword [esp + 0x50], 1
call fcn.1012826f
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.10095910
push 0x1017a1f8
lea ecx, [esp + 0x10]
call fcn.10095910
xor edx, edx
lea ecx, [esp + 0x14]
mov dl, byte [esp + 0x52]
push 0xa
push ecx
push edx
call fcn.1012826f
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.10095910
push 0x1017a1f8
lea ecx, [esp + 0x10]
call fcn.10095910
xor ecx, ecx
lea eax, [esp + 0x14]
push 0xa
mov cl, bh
push eax
push ecx
call fcn.1012826f
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.10095910
push 0x1017a1f8
lea ecx, [esp + 0x10]
call fcn.10095910
lea edx, [esp + 0x14]
push 0xa
and ebx, 0xff
push edx
push ebx
call fcn.1012826f
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.10095910
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.100942c0
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0
call fcn.10094cc0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x100ed780
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x80
call fcn.1007eef0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c]
xor eax, eax
push edi
test esi, esi
je 0x100ed7ab
mov ebx, dword [esp + 0x94]
mov eax, 1
mov dword [ebx], esi
jmp 0x100ed7bd
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 0x100ed929
push esi
call fcn.100eeb80
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x100ed7f3
push str.j____int_sizeof_ctx__key_
push 0x54
push str..cryptohmachmac.c
call fcn.100ee7b0
add esp, 0xc
mov ebp, dword [esp + 0x9c]
cmp edi, ebp
jge 0x100ed832
mov edx, dword [esp + 0xa4]
lea edi, [ebx + 4]
push edx
push esi
push edi
call fcn.100edcc0
mov eax, dword [esp + 0xa4]
push ebp
push eax
push edi
call fcn.100ede30
lea esi, [ebx + 0x34]
lea ecx, [ebx + 0x38]
push esi
push ecx
push edi
call fcn.100edf30
add esp, 0x24
jmp 0x100ed871
test ebp, ebp
jl 0x100ed83e
cmp ebp, 0x80
jle 0x100ed852
push str.len_0__len__int_sizeof_ctx__key_
push 0x5e
push str..cryptohmachmac.c
call fcn.100ee7b0
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 0x100ed896
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 0x100ed89f
mov ebp, dword [esp + 0xa4]
lea edi, [ebx + 0x14]
push ebp
push esi
push edi
call fcn.100edcc0
push esi
call fcn.100eeb80
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.100ede30
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 0x100ed8db
lea edi, [ebx + 0x24]
push ebp
push esi
push edi
call fcn.100edcc0
push esi
call fcn.100eeb80
lea edx, [esp + 0x20]
push eax
push edx
push edi
call fcn.100ede30
add esp, 0x1c
lea eax, [ebx + 0x14]
add ebx, 4
push eax
push ebx
call fcn.100edfe0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
test eax, eax
je 0x100ed90e
jmp 0x100ed89d
Function at 0x100ee630
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.1007eef0
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100ee679
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x100ee679
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x1018c8b0
call fcn.1012871a
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 fcn.101286ca
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x100ee78b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x100ee78b
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 0x100ee78b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100ee78b
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x100ee78b
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.1007eef0
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 0x100ee78b
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 fcn.1007edba
add esp, 8
test eax, eax
je 0x100ee78b
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 0x100ef2e0
Capabilities:
Hash data with md5

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], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
mov eax, 1
ret
Function at 0x100fa160
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 0x100fa1c1
mov al, byte [edi]
test al, al
je 0x100fa1c1
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 0x100fa179
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 0x1010da20
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 0x1010f330
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 0x1010f390
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