joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003bf60
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x100bd0a4]
test eax, eax
je 0x1003c05f
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x1003bf91
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x1003c05a
mov eax, dword [0x100bd0a4]
test eax, eax
je 0x1003c081
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x1003c09e
mov esi, eax
test eax, eax
jne 0x1003bffc
movzx eax, byte [sym.kso.dll___rust_no_alloc_shim_is_unstable]
push 8
push 0x20
call sym.kso.dll___rust_alloc
add esp, 8
test eax, eax
je 0x1003c0ba
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x100bd0a4
mov esi, eax
mov eax, dword [0x100bd0a4]
test eax, eax
je 0x1003c0a8
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp + 8]
test eax, eax
je 0x1003c01b
mov ecx, dword [eax]
movups xmm0, xmmword [eax + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
cmp ecx, 1
je 0x1003c049
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x1003c03b
movaps xmm0, xmmword [esp]
jmp 0x1003c049
lea ecx, [esp + 0x10]
call fcn.10036370
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
jmp 0x1003c0a0
push 0x100bd0a4
call sym.kso.dll_std::sys::pal::windows::thread_local_key::StaticKey::init::ha446e86f87fe37fa
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x1003bf84
jmp 0x1003bf91
push 0x100bd0a4
call sym.kso.dll_std::sys::pal::windows::thread_local_key::StaticKey::init::ha446e86f87fe37fa
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x1003bfaf
xor esi, esi
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
push 0x100bd0a4
call sym.kso.dll_std::sys::pal::windows::thread_local_key::StaticKey::init::ha446e86f87fe37fa
add esp, 4
jmp 0x1003bff4
push 0x20
push 8
call sym.kso.dll_alloc::alloc::handle_alloc_error::h0f7631ec9b341a7f
int3
Function at 0x10059830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10059888
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x10059880
cmp ebx, ebp
ja 0x100598f6
cmp ebp, dword [esp + 0x1c]
ja 0x10059902
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x10059882
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x10059870
jmp 0x100598df
ja 0x10059888
cmp edx, edi
mov ebx, ebp
jne 0x10059845
mov edx, dword [esp + 0x24]
test edx, edx
je 0x100598e3
mov esi, dword [esp + 0x20]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax + eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x100598c0
mov esi, edi
sub ecx, ebx
jns 0x100598d7
jmp 0x100598e5
cmp edi, edx
je 0x100598ec
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x100598e5
xor al, 1
cmp esi, edx
jne 0x100598a0
jmp 0x100598e5
xor eax, eax
jmp 0x100598e5
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x10086f98
call sym.kso.dll_core::option::unwrap_failed::hdcacef950c458f65
push 0x10086fa8
push ebp
push ebx
call sym.kso.dll_core::slice::index::slice_index_order_fail::hcccd9689ed1eb632
push 0x10086fa8
push dword [esp + 0x20]
push ebp
call sym.kso.dll_core::slice::index::slice_end_index_len_fail::h3099cda8f6e1d372
int3
Function at 0x100735e2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10073621
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10073621
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10073621
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10073621
cmp dword [ecx + 0x74], 0xe
jbe 0x10073621
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x100762a4
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 0x10076341
push ebx
push esi
call fcn.1007626d
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.10076201
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100762ee
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10076340
push edi
push eax
call fcn.1007725f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1007630e
call fcn.10074d49
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007633f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10076201
add esp, 0x20
test eax, eax
jne 0x1007632d
push edi
call fcn.10074d49
jmp 0x10076335
push ebx
call fcn.10074d49
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 0x100765ae
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100932b8
push 0x100932b0
push str.FlsAlloc
push 0x1f
call fcn.100764ca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100765e2
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007e2f8]
call esi
jmp 0x100765e8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1007662c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100932c8
push 0x100932c0
push str.FlsGetValue
push 0x21
call fcn.100764ca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10076663
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007e2f8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1007666b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100932d0
push 0x100932c8
push str.FlsSetValue
push 0x22
call fcn.100764ca
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100766a5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1007e2f8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1007bd40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1007bd6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1007bd6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x1007c680
Capabilities:
Resolve dns

Disassembly:
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea eax, [esp + 4]
push dword [esp + 0x44]
push edx
push eax
call sym.kso.dll___str_as_alloc::ffi::c_str::CString::new::SpecNewImpl_::spec_new_impl::hee89c512a72a2265
add esp, 0xc
mov eax, dword [esp + 4]
cmp eax, 0x80000000
jne 0x1007c6fe
mov edi, dword [esp + 8]
mov ebx, dword [esp + 0xc]
xorps xmm0, xmm0
mov eax, esp
mov dword [esp], 0
lea ecx, [esp + 0x14]
movups xmmword [esp + 0x14], xmm0
movups xmmword [esp + 0x24], xmm0
mov dword [esp + 0x1c], 1
push eax
push ecx
push 0
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1007c72d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x1007c74a
jmp 0x1007c756
mov ecx, dword [0x10080af0]
mov edx, dword [0x10080af4]
test eax, eax
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x1007c756
push 1
push eax
push dword [esp + 0x10]
call sym.kso.dll___rust_dealloc
add esp, 0x40
pop esi
pop edi
pop ebx
ret
mov ecx, dword [esp]
movzx eax, word [esp + 0x48]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x1007c756
push 1
push ebx
push edi
call sym.kso.dll___rust_dealloc
add esp, 0xc
add esp, 0x34
pop esi
pop edi
pop ebx
ret
Function at 0x1007c850
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x30]
cmp dword [edi + 4], 0
je 0x1007c8d1
lea ebx, [edi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x1007c90c
cmp dword [esp + 4], 0
je 0x1007c8f3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1007c92a
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x100bdabc]
nop word [eax + eax]
mov dword [edi + 8], eax
lock cmpxchg dword [0x100bdabc], edi
jne 0x1007c8b0
mov byte [0x100bdab8], 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x1007c903
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x1007c96c
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x1007c8f7
mov esi, dword [esp]
jmp 0x1007c903
mov esi, dword [edi]
jmp 0x1007c902
mov esi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x10081dec
push 0x10082410
push eax
call fcn.1007bf20
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
mov dword [esp + 8], 0x100823c4
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x1007e778
mov dword [esp + 0x14], 0
lea eax, [esp + 8]
push 0x10082400
push eax
call sym.kso.dll_core::panicking::panic_fmt::h502dc0a95427940e
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x100823c4
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x1007e778
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.1007bf80
int3
Function at 0x1007da80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0x68
movzx eax, byte [esp + 0x78]
mov esi, dword [esp + 0x84]
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov edi, dword [esp + 0x80]
test eax, eax
mov dword [esp + 8], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edx
je 0x1007dad1
cmp eax, 1
jne 0x1007db4e
mov dword [esp], 0x10086446
jmp 0x1007dad8
mov dword [esp], str._matchesassertion__left__right__failed_n__left:__n_right:
mov edx, 2
mov eax, dword [esp + 0x90]
cmp dword [ecx], 0
mov dword [esp + 4], edx
jne 0x1007db6a
mov ecx, esp
lea edx, [esp + 8]
lea esi, [esp + 0x10]
mov dword [esp + 0x38], 0x10086480
mov dword [esp + 0x3c], 3
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x100645c0
mov dword [esp + 0x20], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x24], 0x10064540
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x10064540
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 3
lea ecx, [esp + 0x38]
push eax
push ecx
call sym.kso.dll_core::panicking::panic_fmt::h502dc0a95427940e
mov edx, 7
mov dword [esp], 0x10086448
mov eax, dword [esp + 0x90]
cmp dword [ecx], 0
mov dword [esp + 4], edx
je 0x1007daed
movsd xmm0, qword [ecx + 0x10]
movsd xmm2, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov edx, esp
lea esi, [esp + 0x50]
mov dword [esp + 0x38], 0x100864b4
mov dword [esp + 0x3c], 4
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], edx
lea edx, [esp + 8]
mov dword [esp + 0x1c], 0x100645c0
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], sym.kso.dll___core::fmt::Arguments_as_core::fmt::Debug_::fmt::h2f2266b4a917313c
lea esi, [esp + 0x10]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], 0x10064540
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x10064540
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 4
movsd qword [esp + 0x60], xmm0
movsd qword [esp + 0x58], xmm1
movsd qword [esp + 0x50], xmm2
lea ecx, [esp + 0x38]
push eax
push ecx
call sym.kso.dll_core::panicking::panic_fmt::h502dc0a95427940e
int3
Function at 0x100c604
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.0100c772
pop ebp
jmp fcn.0100ccb5
Function at 0x100e147
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push 4
push 0x28
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
test eax, eax
jge 0x100e16c
xor al, al
jmp 0x100e194
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
push 4
mov dword [ebp - 0x10], eax
push 0x28
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
test eax, eax
setge al
leave
ret 0xc

Function at 0x100f064
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.010159e6
Function at 0x100fc07
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 8]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
add eax, ebx
adc ecx, esi
mov dword [ebp - 0xc], eax
mov eax, 0x10000
xor edx, edx
div dword [ebp - 4]
push ecx
push dword [ebp - 0xc]
mov dword [ebp - 8], ecx
push esi
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], esi
push ebx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0x14], eax
jmp 0x100fd0f
mov esi, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
push eax
call fcn.0100bced
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push dword [ebp - 0xc]
xor ecx, ecx
add eax, dword [ebp + 8]
adc ecx, dword [ebp + 0xc]
push ecx
push eax
call fcn.0100dd97
test al, al
je 0x100fca0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sbb ecx, dword [ebp + 0xc]
imul esi, eax
mov dword [ebp - 0x30], ecx
jmp 0x100fca7
mov esi, dword [ebp + 0x10]
imul esi, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], ebx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push dword [edi + 0x24]
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0xc0000017
mov dword [edi + 0x34], eax
jne 0x100fce3
shr dword [ebp + 0x10], 1
mov eax, dword [ebp + 0x10]
sub dword [ebp + 8], eax
sbb dword [ebp + 0xc], ebx
jmp 0x100fcf8
mov ecx, 0xc0000000
mov edx, eax
and edx, ecx
cmp edx, ecx
je 0x100fd25
cmp dword [ebp - 0x18], esi
jne 0x100fd25
add dword [ebp + 0x14], esi
push dword [ebp - 8]
mov eax, dword [ebp + 0x10]
push dword [ebp - 0xc]
xor ecx, ecx
add dword [ebp + 8], eax
adc dword [ebp + 0xc], ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100f01a
test al, al
jne 0x100fc55
inc al
pop edi
pop esi
pop ebx
leave
ret 0x10
mov edi, dword [edi + 0x124]
cmp edi, ebx
je 0x100fd67
mov edx, eax
and edx, ecx
cmp edx, ecx
push esi
jne 0x100fd4b
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push eax
push 0x100139c
push 0x69a4
jmp 0x100fd5e
push dword [ebp - 0x18]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x1001390
push 0x69a5
push edi
call fcn.0100d2ff
add esp, 0x1c
xor al, al
jmp 0x100fd1e
Function at 0x100fe1b
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x36d8
call sub.ntdll.dll__chkstk
mov eax, dword [0x105b00c]
push ebx
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
push 0xc
mov dword [ebp - 4], eax
xor ebx, ebx
lea eax, [ebp - 0x36d0]
push eax
push ebx
push ebx
push 0x2d1080
lea eax, [ebp - 0x36d8]
push eax
push ebx
push ebx
mov esi, ecx
push ebx
push dword [esi + 0x24]
mov byte [esi + 0x106], bl
call edi
cmp eax, ebx
mov dword [esi + 0x34], eax
jl 0x100fef5
cmp dword [ebp - 0x36d0], 7
jne 0x100fef5
cmp dword [ebp - 0x36c8], 0xffffffff
je 0x100fef5
cmp dword [ebp - 0x36c8], ebx
je 0x100fef5
push 0x36c0
lea eax, [ebp - 0x36c4]
push eax
push ebx
push ebx
push 0x70050
lea eax, [ebp - 0x36d8]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x24]
call edi
cmp eax, ebx
mov dword [esi + 0x34], eax
jge 0x100feb6
xor al, al
jmp 0x100fef7
cmp dword [ebp - 0x36c4], ebx
jne 0x100fef5
mov ecx, dword [ebp - 0x36c0]
cmp ecx, 4
jbe 0x100fecc
push 4
pop ecx
xor edx, edx
cmp ecx, ebx
jbe 0x100fef5
lea eax, [ebp - 0x367c]
mov edi, dword [eax]
cmp edi, dword [ebp - 0x36c8]
je 0x100feee
inc edx
add eax, 0x90
cmp edx, ecx
jb 0x100fed8
jmp 0x100fef5
mov byte [esi + 0x106], 1
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01059dea
leave
ret

Function at 0x101036a
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [ebp + 8]
mov ax, word [ecx + 0xc]
shl ax, 1
mov word [ebp - 8], ax
mov word [ebp - 6], ax
mov eax, dword [ecx + 8]
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 8]
mov dword [ebp - 0x20], eax
mov al, byte [ebp + 0x10]
xor esi, esi
neg al
push edi
mov edi, dword [ebp + 0x14]
push 0x10
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], 0x40
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
or eax, 1
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x18], esi
push edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov ebx, eax
cmp ebx, esi
jge 0x10103f8
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x101045b
xor eax, eax
cmp ebx, 0xc0000022
setne al
dec eax
and eax, 0x3fe
add eax, 0x7d7
jmp 0x1010433
push 0x11
push 4
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [edi]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebx, eax
cmp ebx, esi
jge 0x101043b
cmp ebx, 0x80000011
je 0x1010427
cmp ebx, 0xc00000a3
mov eax, 0x7d6
jne 0x101042c
mov eax, 0x830
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x101045b
push eax
call fcn.0100effb
jmp 0x101045b
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x10]
push esi
push esi
push esi
push esi
push 0x90083
mov dword [eax], ecx
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
push dword [edi]
call dword [sym.imp.ntdll.dll_NtFsControlFile]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x18
Function at 0x1012fd5
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x16c
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
mov dword [ebp - 8], 0xffffd8f0
mov ebx, 0x10600f8
jmp 0x1013001
lea eax, [ebp - 8]
push eax
push 0
call dword [sym.imp.ntdll.dll_NtDelayExecution]
xor ecx, ecx
inc ecx
mov edx, ebx
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1012ff5
mov edi, dword [0x105b020]
mov eax, edi
and eax, dword [0x105b024]
cmp eax, 0xffffffff
jne 0x10130ba
mov esi, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
xor edi, edi
push edi
push 0x2c
lea eax, [ebp - 0x34]
push eax
push edi
call esi
test eax, eax
jl 0x10130cb
push edi
push 0x138
lea eax, [ebp - 0x16c]
push eax
push 2
call esi
test eax, eax
jl 0x10130cb
mov eax, dword [ebp - 0x140]
mul dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x18]
mov edi, eax
mov esi, edx
xor eax, eax
cmp eax, esi
ja 0x1013079
jb 0x1013075
cmp ecx, edi
jae 0x1013079
mov edi, ecx
mov esi, eax
mov eax, edi
and eax, esi
cmp eax, 0xffffffff
jne 0x1013087
push 0xfffffffffffffffe
pop edi
or esi, eax
test esi, esi
ja 0x101309f
jb 0x1013095
cmp edi, 0x19000
ja 0x101309f
xor edi, edi
and dword [0x105b024], edi
jmp 0x10130b4
push 0
push 0xa
push esi
push edi
call sub.ntdll.dll__aulldiv
sub edi, eax
sbb esi, edx
mov dword [0x105b024], esi
mov dword [0x105b020], edi
xor esi, esi
cmp esi, dword [0x105b024]
jb 0x10130d6
ja 0x10130cb
cmp dword [ebp + 8], edi
jbe 0x10130d6
or eax, 0xffffffff
lock xadd dword [ebx], eax
xor eax, eax
jmp 0x1013106
mov eax, dword fs:[0x18]
push dword [ebp + 8]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
test eax, eax
je 0x10130ff
mov ecx, dword [ebp + 8]
sub dword [0x105b020], ecx
sbb dword [0x105b024], esi
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1015935
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov cx, word [ebp + 0xc]
xor eax, eax
push eax
push eax
mov word [ebp - 8], ax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 6], cx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], ecx
push 0x1001710
lea ecx, [ebp - 8]
push 2
mov dword [ebp - 0x3c], 0x30
mov dword [ebp - 0x38], 0x10016f8
mov dword [ebp - 0x34], ecx
call dword [sym.imp.ntdll.dll_RtlQueryRegistryValues]
xor ecx, ecx
test eax, eax
setge cl
mov al, cl
leave
ret 8

Function at 0x10159ab
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.0101590c
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 7
push 0x10016f8
push 0x1001710
push 2
call dword [sym.imp.ntdll.dll_RtlWriteRegistryValue]
xor ecx, ecx
test eax, eax
setge cl
mov al, cl
pop ebp
ret 4
Function at 0x101d8f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa8
mov eax, dword [0x105b00c]
push ebx
xor ebx, ebx
cmp byte [0x106013c], bl
mov dword [ebp - 4], eax
je 0x101d91e
xor eax, eax
inc eax
jmp 0x101da49
lea eax, [ebp - 0x74]
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x8c]
push eax
push 0x20019
lea eax, [ebp - 0x64]
push eax
mov byte [0x106013c], 1
mov dword [ebp - 0x68], 0x1001adc
mov word [ebp - 0x6c], 0x14
mov word [ebp - 0x6a], 0x16
mov dword [ebp - 0x70], 0x1001a80
mov word [ebp - 0x74], 0x5a
mov word [ebp - 0x72], 0x5c
mov dword [ebp - 0x8c], 0x18
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x80], 0x40
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
call dword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
jge 0x101d992
xor eax, eax
jmp 0x101da49
push esi
lea eax, [ebp - 0x98]
push eax
push 0x5c
lea eax, [ebp - 0x60]
push eax
push 1
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x64]
call dword [sym.imp.ntdll.dll_NtQueryValueKey]
mov esi, eax
cmp esi, 0x80000005
je 0x101da46
push dword [ebp - 0x64]
call dword [sym.imp.ntdll.dll_NtClose]
cmp esi, ebx
jl 0x101da46
cmp dword [ebp - 0x54], ebx
je 0x101da46
mov eax, dword [ebp - 0x58]
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea eax, [ebp + eax - 0x60]
push eax
lea eax, [ebp - 0x94]
push eax
call esi
push 0x1001a60
lea eax, [ebp - 0xa0]
push eax
call esi
push 0x1001a4c
lea eax, [ebp - 0xa8]
push eax
call esi
push 1
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.ntdll.dll_RtlPrefixUnicodeString]
test al, al
je 0x101da28
mov dword [0x105c040], 0x40002
jmp 0x101da41
mov eax, dword [0x7ffe02c0]
dec eax
neg eax
sbb eax, eax
and eax, 0xfffeffff
add eax, 0x20001
mov dword [0x105c040], eax
xor eax, eax
inc eax
jmp 0x101da48
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01059dea
leave
ret