joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ba220
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10262758
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x100ba252
call fcn.10191750
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x100ba263
mov ecx, connect
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x100ba2b8
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x100ba29e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x100ba3e4
cmp dword [esp + 0x18], ebx
jne 0x100ba2b8
cmp dword [esp + 0x14], ebx
je 0x100ba3e4
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x100ba2c9
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.1008e290
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x100ba30f
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x100ba30f
call fcn.100a6710
test eax, eax
je 0x100ba30f
push 0x102c5854
lea ecx, [esp + 0x14]
call fcn.1008ef10
push ebx
lea ecx, [esp + 0x14]
call fcn.1008f940
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x100ba3be
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x100ba34b
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x100ba3be
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x100ba399
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x100ba39c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x100ba394
mov dword [esi + 0x10], ebx
jmp 0x100ba39c
mov dword [esi + 0x10], ecx
jmp 0x100ba39c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.1008ec90
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.1008ec90
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x100be670
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10262b40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
push edi
mov dword [ebp - 0x14], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100be6ca
push 0x102d5a24
call fcn.100c7d60
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 0x6400000
jbe 0x100be6d9
push 0x102d5a04
jmp 0x100be6ad
lea eax, [esi + 1]
mov dword [ebp + 8], edi
push eax
mov dword [ebp - 4], edi
call fcn.1024ac71
add esp, 4
lea ecx, [ebp + 8]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
push 0
push ecx
push esi
push edi
push ebx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp esi, dword [ebp + 8]
je 0x100be71c
push edi
call fcn.1024ac9a
add esp, 4
push 0x102d59f0
jmp 0x100be6ad
mov ecx, dword [ebp - 0x14]
push 1
push edi
call fcn.100be750
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100c1490
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x10262f6f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, ecx
neg esi
sbb esi, esi
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 0
add esi, 2
call fcn.1009c500
mov eax, dword [edi + 0x9c]
lea ecx, [esp + 0x10]
push eax
push ecx
push esi
mov ecx, edi
mov dword [esp + 0x34], 1
call fcn.100c3c70
push 0x102f440c
lea ecx, [esp + 0x38]
call fcn.1008e4f0
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov byte [esp + 0x28], 2
mov edi, eax
jle 0x100c1548
test esi, esi
je 0x100c1515
push str._r_n_r_n
lea ecx, [esp + 0x38]
call fcn.1008f8e0
mov edx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
mov ecx, dword [edx + esi*4]
call fcn.100c66e0
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 3
call fcn.1008f940
lea ecx, [esp + 8]
mov byte [esp + 0x28], 2
call fcn.1008ec90
inc esi
cmp esi, edi
jl 0x100c1503
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.1008e290
mov dword [esp + 0xc], 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 1
call fcn.1008ec90
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.1009c510
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x100c2310
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10263168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.1009c500
mov eax, dword [esi + 0x9c]
lea ecx, [esp + 0x10]
push eax
push ecx
push 3
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.100c3c70
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
cmp edi, eax
jge 0x100c23d5
mov edx, dword [esp + 0x34]
push 0
push edx
call fcn.100c9390
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x100c237b
push 0x102d5e14
jmp 0x100c23cd
mov eax, dword [esp + 0x10]
lea edx, [esp + 8]
push edx
mov ecx, dword [eax + edi*4]
mov dword [esp + 0xc], 0
call fcn.100c7a60
mov edx, dword [esp + 8]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
push edx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100c23fb
mov eax, dword [esp + 8]
push eax
call fcn.1024ac9a
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x102d5e00
call fcn.100c7d60
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.1009c510
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
mov ecx, dword [esp + 8]
push ecx
call fcn.1024ac9a
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.1009c510
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x100c4eb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1026364f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
call fcn.100c5230
test eax, eax
jne 0x100c4fdf
lea edi, [esi + 0x14]
mov ecx, edi
call fcn.100c5230
test eax, eax
jne 0x100c4fdf
lea eax, [esp + 8]
mov ecx, edi
push eax
call fcn.100c5670
push 0x102d61d4
push 0x102d5b80
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.10090bd0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.100c5670
mov esi, eax
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push 0x102d5b80
push eax
mov byte [esp + 0x34], 2
call fcn.1008f5e0
push 0x102d61dc
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x34], 3
call fcn.1008f400
push esi
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x34], 4
call fcn.1008f230
mov esi, dword [esp + 0x30]
push 0x102d61d0
push eax
push esi
mov byte [esp + 0x34], 5
call fcn.1008f400
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], 1
mov byte [esp + 0x28], 4
call fcn.1008ec90
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.1008ec90
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.1008ec90
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 1
call fcn.1008ec90
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.1008ec90
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
mov edi, dword [esp + 0x30]
mov ecx, esi
push edi
call fcn.100c5670
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x100c5f10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1026391b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x1026c87c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], eax
mov ecx, dword [0x1026c87c]
lea edi, [esi + 4]
mov dword [esp + 0x1c], 0
mov dword [edi], ecx
mov edx, dword [0x1026c87c]
lea ebx, [esi + 8]
mov dword [ebx], edx
lea ebp, [esi + 0xc]
mov byte [esp + 0x1c], 2
mov ecx, ebp
call fcn.100c5000
mov eax, dword [0x1026c87c]
mov dword [esi + 0x20], eax
mov ecx, dword [0x1026c87c]
mov dword [esi + 0x24], ecx
mov edx, dword [0x1026c87c]
mov dword [esi + 0x28], edx
mov eax, dword [0x1026c87c]
mov dword [esi + 0x2c], eax
mov ecx, dword [0x1026c87c]
mov dword [esi + 0x30], ecx
mov edx, dword [0x1026c87c]
mov dword [esi + 0x34], edx
push 0x102f440c
mov ecx, esi
mov byte [esp + 0x20], 9
call fcn.1008ef10
push 0x102f440c
mov ecx, edi
call fcn.1008ef10
push 0x102f440c
mov ecx, ebx
call fcn.1008ef10
mov ecx, ebp
call fcn.100c51f0
push 0x102f440c
lea ecx, [esi + 0x20]
call fcn.1008ef10
push 0x102f440c
lea ecx, [esi + 0x24]
call fcn.1008ef10
push 0x102f440c
lea ecx, [esi + 0x28]
call fcn.1008ef10
push 0x102f440c
lea ecx, [esi + 0x2c]
call fcn.1008ef10
push 0x102f440c
lea ecx, [esi + 0x30]
call fcn.1008ef10
push 0x102f440c
lea ecx, [esi + 0x34]
call fcn.1008ef10
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x100c6430
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10263b41
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x1026ceac
mov ebx, dword [esi + 0x50]
xor edi, edi
test ebx, ebx
mov dword [esp + 0x18], 2
jle 0x100c647b
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x100c6476
mov edx, dword [ecx]
push 1
call dword [edx]
inc edi
cmp edi, ebx
jl 0x100c6466
lea edi, [esi + 0x4c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.100c4130
mov edi, dword [edi]
mov byte [esp + 0x18], 1
test edi, edi
je 0x100c649d
push edi
call fcn.1024ac9a
add esp, 4
lea ecx, [esi + 0x40]
mov byte [esp + 0x18], 0
mov dword [esi + 0x3c], 0x1026cea8
call fcn.1008ec90
add esi, 4
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x34]
mov dword [esp + 0x18], 0xb
call fcn.1008ec90
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 0xa
call fcn.1008ec90
lea ecx, [esi + 0x2c]
mov byte [esp + 0x18], 9
call fcn.1008ec90
lea ecx, [esi + 0x28]
mov byte [esp + 0x18], 8
call fcn.1008ec90
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 7
call fcn.1008ec90
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 6
call fcn.1008ec90
lea ecx, [esi + 0xc]
mov byte [esp + 0x18], 5
call fcn.100c50b0
lea ecx, [esi + 8]
mov byte [esp + 0x18], 4
call fcn.1008ec90
lea ecx, [esi + 4]
mov byte [esp + 0x18], 3
call fcn.1008ec90
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.1008ec90
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x100c6590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
mov eax, 5
push edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], str.attachment
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], str.multipart_mixed
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], str.multipart_related
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x40], 0x102d5c40
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], 2
mov dword [esp + 0x4c], 0x102d6214
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], 9
mov dword [esp + 0x58], 0x102d5b84
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], 3
mov dword [esp + 0x64], 0x102d5c20
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], 4
mov dword [esp + 0x70], str.message_rfc822
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], eax
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x20]
mov esi, dword [edi - 4]
cmp esi, ebx
je 0x100c6667
mov eax, dword [ebp + 0x24]
push esi
mov dword [esp + 0x18], eax
call fcn.10076fb2
mov ecx, dword [esp + 0x18]
push eax
push esi
push ecx
call fcn.100787c8
add esp, 0x10
test eax, eax
jne 0x100c6689
mov esi, dword [edi]
cmp esi, ebx
je 0x100c66af
mov ebp, dword [ebp + 8]
push esi
call fcn.10076fb2
push eax
push esi
push ebp
call fcn.100787c8
add esp, 0x10
test eax, eax
je 0x100c66af
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
add edi, 0xc
inc eax
cmp eax, 8
mov dword [esp + 0x10], eax
jb 0x100c6640
mov eax, dword [ebp + 0x30]
cmp dword [eax - 8], ebx
je 0x100c66c2
pop edi
pop esi
pop ebp
mov eax, 8
pop ebx
add esp, 0x6c
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
lea edx, [eax + eax*2]
pop ebx
mov eax, dword [esp + edx*4 + 0x14]
add esp, 0x6c
ret
lea ecx, [ebp + 0x10]
call fcn.100c5230
neg eax
sbb eax, eax
pop edi
and eax, 2
pop esi
pop ebp
add eax, 5
pop ebx
add esp, 0x6c
ret
Function at 0x100c7b30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10263df8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x100c7ba5
mov eax, dword [esi + 0x48]
test eax, eax
je 0x100c7ba5
cmp ecx, eax
ja 0x100c7ba5
sub eax, ecx
mov dword [ebp - 4], 0
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.1024ac71
mov edx, dword [ebp + 8]
mov ecx, edi
add esp, 4
mov dword [edx], eax
mov byte [eax + edi], 0
mov edi, dword [edx]
mov esi, dword [esi + 0x44]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x100c7d38
mov ecx, esi
call fcn.100c6590
cmp eax, 3
je 0x100c7d00
cmp eax, 4
je 0x100c7d00
mov eax, dword [esi + 0xc]
push 1
push eax
call fcn.100c9390
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x100c7bf5
push 0x102d59cc
call fcn.100c7d60
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100c7c2e
push 0x102d5d28
call fcn.100c7d60
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 3
call fcn.1024ac71
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, dword [ebp - 0x14]
je 0x100c7c98
push 0x102d59f0
call fcn.100c7d60
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call fcn.1024ac9a
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x2c]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp - 0x18]
push eax
push edi
push esi
call fcn.100c8230
add esp, 0x10
test eax, eax
jne 0x100c7ce0
push 0x102d5e84
call fcn.100c7d60
push esi
call fcn.1024ac9a
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.1024ac9a
add esp, 4
jmp 0x100c7d38
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x28]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.100c66e0
mov edx, dword [ebp + 8]
mov eax, dword [eax]
push edi
push ebx
push edx
push eax
mov dword [ebp - 4], 2
call fcn.100c8040
add esp, 0x10
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.1008ec90
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100cbdd0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.10077700
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x100cbe19
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x100cbe19
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
push 0x102d37e8
call fcn.101cac25
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.101cabd5
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x100cbf2b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x100cbf2b
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 0x100cbf2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100cbf2b
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x100cbf2b
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.10077700
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 0x100cbf2b
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.10077fc0
add esp, 8
test eax, eax
je 0x100cbf2b
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 0x100d0f00
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 0x100d0f61
mov al, byte [edi]
test al, al
je 0x100d0f61
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 0x100d0f19
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 0x100e6b80
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 fcn.101caccd
mov edi, eax
add esp, 8
test edi, edi
jne 0x100e6c16
push 0x7e
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.100cafd0
push 0x10273078
push esi
push 0x10273074
push ebx
push str.fopen_
push 5
call fcn.100cb480
add esp, 0x2c
call fcn.10079947
cmp dword [eax], 2
jne 0x100e6bf8
push 0x81
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.100cafd0
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.100cafd0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x102dfbe0
call fcn.100dd540
mov esi, eax
add esp, 4
test esi, esi
jne 0x100e6c38
push edi
call fcn.100886e4
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.100dd760
push edi
push 1
push 0x6a
push esi
call fcn.100ddc20
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x100ea340
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 0x100ea3a0
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
Function at 0x100ebae0
Capabilities:
Hash data using sha224

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xc1059ed8
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x30
mov eax, 1
ret

Function at 0x100ebb80
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0xf3bcc908
mov dword [eax + 8], 0x84caa73b
mov dword [eax + 0x10], 0xfe94f82b
mov dword [eax + 0x18], 0x5f1d36f1
mov dword [eax + 0x20], 0xade682d1
mov dword [eax + 0x28], 0x2b3e6c1f
mov dword [eax + 0x30], 0xfb41bd6b
mov dword [eax + 0x38], 0x137e2179
mov dword [eax + 0x40], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 4], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x14], 0x3c6ef372
mov dword [eax + 0x1c], 0xa54ff53a
mov dword [eax + 0x24], 0x510e527f
mov dword [eax + 0x2c], 0x9b05688c
mov dword [eax + 0x34], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
mov dword [eax + 0x44], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0xd0], ecx
mov dword [eax + 0xd4], 0x40
mov eax, 1
ret
Function at 0x100ef820
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x100ef85a
mov ax, word [esp]
cmp al, 2
jne 0x100ef854
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x100ef854
xor eax, eax
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret