joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1009fa00
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ec386
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
push edi
mov eax, dword [0x10117fc0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x1c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
xor edi, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x2c], eax
xor esi, esi
mov dword [ebp - 4], 1
cmp dword [ebp - 0x68], esi
jbe 0x1009fae6
nop dword [eax]
push 0x1c
lea eax, [ebp - 0x50]
mov dword [ebp - 0x38], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x50], xmm0
movq qword [ebp - 0x40], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1009fa89
add esi, dword [ebp - 0x70]
jmp 0x1009fad9
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x50]
lea eax, [ecx + edx]
cmp eax, dword [ebp + 0x18]
jb 0x1009fad7
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp + 0x14]
jb 0x1009fad7
test eax, 0x100
jne 0x1009fad7
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
cmp edi, dword [ebp - 0x10]
je 0x1009fabe
mov dword [edi], edx
mov dword [edi + 4], ecx
add edi, 8
mov dword [ebp - 0x30], edi
jmp 0x1009fad4
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x34]
call fcn.1000a020
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x44]
add esi, ecx
cmp esi, dword [ebp - 0x68]
jb 0x1009fa60
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x18], esi
jmp 0x1009fae8
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov eax, dword [ebp - 0x30]
mov edx, esi
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], edx
cmp edx, eax
je 0x1009fb87
mov ecx, dword [edx]
mov esi, dword [ebp + 0x18]
cmp ecx, esi
mov edx, dword [edx + 4]
cmova esi, ecx
cmp esi, dword [ebp + 0x1c]
jae 0x1009fb77
lea eax, [edx + ecx]
mov dword [ebp - 0x24], eax
nop word [eax + eax]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push eax
push 0
push esi
call fcn.1009f900
mov esi, eax
add esp, 0x18
test esi, esi
je 0x1009fb74
mov eax, dword [edi + 4]
mov ecx, esi
inc esi
mov dword [ebp - 0x20], ecx
cmp eax, dword [edi + 8]
je 0x1009fb60
mov dword [eax], ecx
add dword [edi + 4], 4
jmp 0x1009fb6c
lea ecx, [ebp - 0x20]
push ecx
push eax
mov ecx, edi
call fcn.10009f40
mov eax, dword [ebp - 0x24]
cmp esi, dword [ebp + 0x1c]
jb 0x1009fb30
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
add edx, 8
mov dword [ebp - 0x14], edx
cmp edx, eax
jne 0x1009fb12
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x1009fbb7
mov ecx, dword [ebp - 0x10]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x1009fbad
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1009fbca
push ecx
push esi
call fcn.100ba39a
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.100c657f
int3
Function at 0x1009fbd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, 0x5a4d
cmp cx, word [eax]
jne 0x1009fc51
mov ecx, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
jne 0x1009fc51
mov ecx, dword [ecx + eax + 0x88]
test ecx, ecx
je 0x1009fc51
add eax, ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
push ecx
push eax
call fcn.100a24f0
add esp, 0xc
test eax, eax
je 0x1009fc51
mov edx, dword [ebp + 8]
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1009fc22
sub eax, esi
sar eax, 1
add eax, eax
push eax
mov eax, dword [ebp - 8]
push edx
add eax, 0xfffffffc
push eax
push dword [ebp - 4]
call fcn.100a2540
add esp, 0x10
test eax, eax
setne al
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x1009fd00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10117fc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, 0x5a4d
cmp ax, word [ebx]
jne 0x1009fd4e
mov ecx, dword [ebx + 0x3c]
cmp dword [ecx + ebx], 0x4550
jne 0x1009fd4e
mov eax, dword [ecx + ebx + 0xd8]
mov ecx, dword [ecx + ebx + 0xdc]
add eax, ebx
add ecx, eax
cmp eax, ecx
jae 0x1009fd4e
mov edx, dword [ebp + 8]
cmp dword [eax], edx
je 0x1009fd5f
add eax, 4
cmp eax, ecx
jb 0x1009fd43
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ba6c2
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1009fd4e
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0xa], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0xc], ax
je 0x1009fdd5
push esi
push edi
mov edi, dword [ebp + 0x10]
add edi, 0xfffffffa
cmp edi, ebx
jb 0x1009fdc0
mov esi, edi
lea eax, [ebp - 0xc]
sub esi, eax
xor eax, eax
nop dword [eax]
lea ecx, [ebp - 0xc]
add ecx, eax
mov dl, byte [ecx]
cmp dl, byte [esi + ecx]
je 0x1009fda1
cmp dl, 0x11
jne 0x1009fdba
inc eax
cmp eax, 6
jl 0x1009fd90
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ba6c2
mov esp, ebp
pop ebp
ret
dec edi
dec esi
cmp edi, ebx
jae 0x1009fd87
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ba6c2
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push ebx
push 6
push eax
call fcn.100a0500
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop ebx
call fcn.100ba6c2
mov esp, ebp
pop ebp
ret
Function at 0x1009fea0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10117fc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov eax, 0x5a4d
cmp ax, word [edx]
jne 0x1009feed
mov ecx, dword [edx + 0x3c]
cmp dword [ecx + edx], 0x4550
jne 0x1009feed
mov eax, dword [ecx + edx + 0xd8]
mov ecx, dword [ecx + edx + 0xdc]
add eax, edx
add ecx, eax
cmp eax, ecx
jae 0x1009feed
mov edx, dword [ebp + 8]
cmp dword [eax], edx
je 0x1009fefd
add eax, 4
cmp eax, ecx
jb 0x1009fee2
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ba6c2
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1009feed
mov cl, byte [ebp + 0x1c]
test cl, cl
je 0x1009ff11
mov byte [ebp - 0xc], 0x8b
mov byte [ebp - 0xb], cl
jmp 0x1009ff17
mov word [ebp - 0xc], 0x15ff
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0xa], eax
je 0x1009ff85
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x14]
add edi, 0xfffffffa
cmp edi, ebx
jb 0x1009ff70
mov esi, edi
lea eax, [ebp - 0xc]
sub esi, eax
xor eax, eax
nop dword [eax]
lea ecx, [ebp - 0xc]
add ecx, eax
mov dl, byte [ecx]
cmp dl, byte [esi + ecx]
je 0x1009ff51
cmp dl, 0x11
jne 0x1009ff6a
inc eax
cmp eax, 6
jl 0x1009ff40
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ba6c2
mov esp, ebp
pop ebp
ret
dec edi
dec esi
cmp edi, ebx
jae 0x1009ff37
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100ba6c2
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push dword [ebp + 0x10]
push 6
push eax
call fcn.100a0500
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
call fcn.100ba6c2
mov esp, ebp
pop ebp
ret

Function at 0x1009ffb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov eax, 0x5a4d
sub esp, 0xc
cmp ax, word [edx]
jne 0x1009fff3
mov ecx, dword [edx + 0x3c]
cmp dword [ecx + edx], 0x4550
jne 0x1009fff3
mov eax, dword [ecx + edx + 0xd8]
mov ecx, dword [ecx + edx + 0xdc]
add eax, edx
add ecx, eax
cmp eax, ecx
jae 0x1009fff3
mov edx, dword [ebp + 0xc]
cmp dword [eax], edx
je 0x100a000e
add eax, 4
cmp eax, ecx
jb 0x1009ffe8
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1009fff3
mov cl, byte [ebp + 0x20]
test cl, cl
je 0x100a0022
mov byte [ebp - 0xc], 0x8b
mov byte [ebp - 0xb], cl
jmp 0x100a0028
mov word [ebp - 0xc], 0x15ff
push dword [ebp + 0x18]
mov dword [ebp - 0xa], eax
lea eax, [ebp - 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x1c]
push 6
push eax
push dword [ebp + 8]
call fcn.1009fa00
mov eax, dword [ebp + 8]
add esp, 0x18
mov esp, ebp
pop ebp
ret

Function at 0x100a05e0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xcccc
push dword [ebp + 8]
call fcn.100a0530
add esp, 0x18
test eax, eax
je 0x100a0609
inc eax
cmp byte [eax], 0xcc
je 0x100a0603
pop ebp
ret
Function at 0x100a0810
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0xcccc
push dword [ebp + 8]
call fcn.100a0750
add esp, 0x18
test eax, eax
je 0x100a0839
inc eax
cmp byte [eax], 0xcc
je 0x100a0833
pop ebp
ret

Function at 0x100a7feb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100a8012
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100a8015
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100a7fc7
pop esi
leave
ret 8

Function at 0x100ad481
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x100ad4a4
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x100ad492
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x100ba2ff
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.100d12a4
mov eax, dword [eax + 0x14]
test eax, eax
je 0x100ba342
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x100ba342
sub eax, 1
je 0x100ba33d
sub eax, 1
je 0x100ba339
xor eax, eax
leave
ret
push 3
jmp 0x100ba344
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x100d93cf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10101eec
push 0x10101ee4
push str.FlsAlloc
push 0x1e
call fcn.100d91fc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d9403
push dword [ebp + 8]
mov ecx, esi
call dword [0x100f039c]
call esi
jmp 0x100d9409
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100d944d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10101efc
push 0x10101ef4
push str.FlsGetValue
push 0x20
call fcn.100d91fc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d9484
push dword [ebp + 8]
mov ecx, esi
call dword [0x100f039c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x100dc8b6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100dc953
push ebx
push esi
call fcn.100dc87f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100dafe6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100dc900
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100dc952
push edi
push eax
call fcn.100d7baa
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100dc920
call fcn.100d7b70
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100dc951
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100dafe6
add esp, 0x20
test eax, eax
jne 0x100dc93f
push edi
call fcn.100d7b70
jmp 0x100dc947
push ebx
call fcn.100d7b70
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x100dc956
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100dc967
pop esi
ret
push ebx
push edi
push esi
call fcn.100dc87f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100d7baa
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100dc98f
push ebx
push esi
push edi
call fcn.100bbf40
add esp, 0xc
push 0
call fcn.100d7b70
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100dcd53
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100dc9a4
Function at 0x100e4b00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100e4b2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100e4b2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001df0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x104
call fcn.100b1990
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10001e3f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x10001e3f
mov edx, dword [sym.imp.MSVCRT.dll__iob]
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
add edx, 0x40
push eax
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_vfprintf]
add esp, 0xc
lea esp, [ebp - 0x110]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x104]
push 0xff
push edx
call dword [sym.imp.MSVCRT.dll__vsnprintf]
add esp, 0x10
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10001f43
call dword [sym.imp.USER32.dll_GetDesktopWindow]
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov ebx, eax
test ebx, ebx
je 0x10001efe
lea eax, [ebp - 4]
push eax
push 0
push 0
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
jne 0x10001efe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10001efe
mov eax, dword [ebp - 4]
cmp eax, 0x200
ja 0x10001efe
lea esi, [eax + 1]
and esi, 0xfffffffe
mov dword [ebp - 4], esi
lea eax, [esi + 2]
add eax, 3
and al, 0xfc
call fcn.100b1990
lea ecx, [ebp - 4]
mov edi, esp
push ecx
push esi
push edi
push 2
push ebx
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x10001efe
mov edx, dword [ebp - 4]
push str.Service_0x
push edi
lea eax, [edx + 1]
and al, 0xfe
mov dword [ebp - 4], eax
shr eax, 1
mov word [edi + eax*2], 0
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 8
test eax, eax
je 0x10001f43
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
lea ecx, [ebp - 4]
push 0
push ecx
push 0
push 1
push 0
push 0
mov esi, eax
push 0
lea eax, [ebp - 0x104]
push 1
push esi
mov dword [ebp - 4], eax
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 edx, [ebp - 0x104]
push str.OpenSSL:_FATAL
push edx
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 0x10004710
Capabilities:
Enumerate files on windows

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
test esi, esi
push edi
je 0x100047eb
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x100047eb
mov ebx, dword [sym.imp.MSVCRT.dll__errno]
call ebx
mov dword [eax], 0
mov eax, dword [esi]
test eax, eax
jne 0x100047aa
push 0x244
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
jne 0x10004765
call ebx
pop edi
pop esi
mov dword [eax], 0xc
pop ebp
xor eax, eax
pop ebx
ret
mov ecx, 0x91
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esi]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x140], eax
mov eax, dword [esi]
cmp dword [eax + 0x140], 0xffffffff
jne 0x100047bc
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [esi], 0
call ebx
pop edi
pop esi
mov dword [eax], 0x16
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [eax + 0x140]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x100047f7
mov eax, dword [esi]
push 0xff
lea ecx, [eax + 0x2c]
add eax, 0x144
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edx, dword [esi]
add esp, 0xc
mov byte [edx + 0x243], 0
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, 0x144
pop ebx
ret
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0x16
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10004990
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xcc
call fcn.100b1990
mov ecx, dword [esp + 0xd0]
push ebx
push ebp
push esi
lea esi, [ecx + 0x14]
lea eax, [ecx + 0x54]
push edi
lea edi, [esp + 0x5c]
mov ecx, dword [esi + 0x3c]
xor ebp, ebp
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x9c]
sub ecx, eax
sub edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
sub esi, eax
mov ebx, dword [esp + 0xe4]
mov edx, dword [eax]
xor ecx, ecx
mov dword [edi + eax - 0x40], edx
mov cl, byte [ebx + ebp]
mov ebx, dword [esp + 0x14]
xor edx, ecx
mov dword [edi + eax], ecx
mov dword [ebx + eax], edx
mov edx, dword [esp + 0x10]
xor ecx, edx
add eax, 4
mov edx, dword [ecx*4 + str._.C]
mov ecx, dword [esi + eax - 4]
xor ecx, edx
inc ebp
mov dword [esi + eax - 4], ecx
cmp ebp, 0x10
mov dword [esp + 0x10], ecx
jl 0x100049cd
xor ecx, ecx
xor esi, esi
lea eax, [esp + 0x20]
mov edx, 6
mov ecx, dword [ecx*4 + str._.C]
mov edi, dword [eax - 4]
xor edi, ecx
mov ecx, edi
mov dword [eax - 4], edi
mov ebp, dword [eax]
add eax, 0x20
mov ecx, dword [ecx*4 + str._.C]
xor ebp, ecx
mov ecx, ebp
mov dword [eax - 0x20], ebp
mov ebx, dword [eax - 0x1c]
mov ecx, dword [ecx*4 + str._.C]
xor ebx, ecx
mov ecx, ebx
mov dword [eax - 0x1c], ebx
mov edi, dword [eax - 0x18]
mov ecx, dword [ecx*4 + str._.C]
xor edi, ecx
mov ecx, edi
mov dword [eax - 0x18], edi
mov ebp, dword [eax - 0x14]
mov ecx, dword [ecx*4 + str._.C]
xor ebp, ecx
mov ecx, ebp
mov dword [eax - 0x14], ebp
mov ebx, dword [eax - 0x10]
mov ecx, dword [ecx*4 + str._.C]
xor ebx, ecx
mov ecx, ebx
mov dword [eax - 0x10], ebx
mov edi, dword [eax - 0xc]
mov ecx, dword [ecx*4 + str._.C]
xor edi, ecx
mov ecx, edi
mov dword [eax - 0xc], edi
mov ebp, dword [eax - 8]
mov ecx, dword [ecx*4 + str._.C]
xor ebp, ecx
dec edx
mov dword [eax - 8], ebp
mov ecx, ebp
jne 0x10004a1c
add ecx, esi
and ecx, 0xff
inc esi
cmp esi, 0x12
jl 0x10004a13
mov edi, dword [esp + 0x18]
mov ecx, 0x10
lea esi, [esp + 0x1c]
lea edx, [esp + 0x1c]
push 0xc0
push edx
rep movsd dword es:[edi], dword [esi]
call sym.LIBEAY32_smt.dll_OPENSSL_cleanse
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret

Function at 0x10005040
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 0x10012a90
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 0x10012af0
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 0x10012b50
Capabilities:
Hash data using sha224

Disassembly:
mov eax, 0x70
call fcn.100b1990
push esi
mov esi, dword [esp + 0x80]
xor eax, eax
cmp esi, eax
jne 0x10012b6d
mov esi, 0x100ffbb4
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
lea edx, [esp + 4]
push eax
push ecx
push edx
mov dword [esp + 0x10], 0xc1059ed8
mov dword [esp + 0x14], 0x367cd507
mov dword [esp + 0x18], 0x3070dd17
mov dword [esp + 0x1c], 0xf70e5939
mov dword [esp + 0x20], 0xffc00b31
mov dword [esp + 0x24], 0x68581511
mov dword [esp + 0x28], 0x64f98fa7
mov dword [esp + 0x2c], 0xbefa4fa4
mov dword [esp + 0x7c], 0x1c
call sym.LIBEAY32_smt.dll_SHA256_Update
lea eax, [esp + 0x10]
push eax
push esi
call sym.LIBEAY32_smt.dll_SHA256_Final
lea ecx, [esp + 0x18]
push 0x70
push ecx
call sym.LIBEAY32_smt.dll_OPENSSL_cleanse
add esp, 0x1c
mov eax, esi
pop esi
add esp, 0x70
ret

Function at 0x10012c00
Capabilities:
Hash data using sha256

Disassembly:
mov eax, 0x70
call fcn.100b1990
push esi
mov esi, dword [esp + 0x80]
xor eax, eax
cmp esi, eax
jne 0x10012c1d
mov esi, 0x100ffb94
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x7c]
lea edx, [esp + 4]
push eax
push ecx
push edx
mov dword [esp + 0x10], 0x6a09e667
mov dword [esp + 0x14], 0xbb67ae85
mov dword [esp + 0x18], 0x3c6ef372
mov dword [esp + 0x1c], 0xa54ff53a
mov dword [esp + 0x20], 0x510e527f
mov dword [esp + 0x24], 0x9b05688c
mov dword [esp + 0x28], 0x1f83d9ab
mov dword [esp + 0x2c], 0x5be0cd19
mov dword [esp + 0x7c], 0x20
call sym.LIBEAY32_smt.dll_SHA256_Update
lea eax, [esp + 0x10]
push eax
push esi
call sym.LIBEAY32_smt.dll_SHA256_Final
lea ecx, [esp + 0x18]
push 0x70
push ecx
call sym.LIBEAY32_smt.dll_OPENSSL_cleanse
add esp, 0x1c
mov eax, esi
pop esi
add esp, 0x70
ret