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

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4467d0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4467ee
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0044670c
jmp 0x4467ee
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4467ee
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0044670c
test edi, edi
mov eax, edi
jne 0x4467d8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4714cc]
test ecx, ecx
je 0x4468a1
jmp 0x4467a1
ret 8

Function at 0x17ee11e
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x17ee13e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17ee12a
add dl, dl
jne 0x17ee149
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17ee19a
xor eax, eax
add dl, dl
jne 0x17ee156
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x17ee23b
add dl, dl
jne 0x17ee165
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17ee170
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17ee17b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17ee186
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x17ee190
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x17ee135
mov eax, 1
add dl, dl
jne 0x17ee1a8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x17ee1b3
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17ee19f
sub eax, ebx
mov ebx, 1
jne 0x17ee1e6
mov ecx, 1
add dl, dl
jne 0x17ee1cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17ee1d7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17ee1c3
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17ee135
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x17ee1fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x17ee208
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x17ee1f4
cmp eax, 0x7d00
jae 0x17ee22b
cmp eax, 0x500
jb 0x17ee226
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17ee135
cmp eax, 0x7f
ja 0x17ee22e
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x17ee135
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x17ee25c
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x17ee135
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x10001022
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 1
je 0x100010c4
call fcn.100010e4
xor ebp, ebp
mov dword [esi], eax
cmp eax, ebp
jne 0x10001054
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jne 0x100010e0
push 0x7e
pop eax
jmp 0x100010e0
push ebx
lea ebx, [esi + 8]
push 0x14
push ebp
push ebx
call fcn.10031550
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
push 0x200f
push dword [esi]
call edi
push 0x2010
mov dword [ebx], eax
push dword [esi]
call edi
push 0x2011
mov dword [esi + 0xc], eax
push dword [esi]
call edi
push 0x2016
mov dword [esi + 0x10], eax
push dword [esi]
call edi
push 0x2015
mov dword [esi + 0x14], eax
push dword [esi]
call edi
cmp dword [ebx], ebp
mov dword [esi + 0x18], eax
pop ebx
je 0x100010c8
cmp dword [esi + 0xc], ebp
je 0x100010c8
cmp dword [esi + 0x10], ebp
je 0x100010c8
cmp dword [esi + 0x14], ebp
je 0x100010c8
cmp eax, ebp
je 0x100010c8
mov dword [esi + 4], 1
xor eax, eax
jmp 0x100010e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebp
jne 0x100010d7
push 0x7f
pop edi
mov ecx, esi
call fcn.10001187
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x10001023
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 1
je 0x100010c4
call fcn.100010e4
xor ebp, ebp
mov dword [esi], eax
cmp eax, ebp
jne 0x10001054
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebp
jne 0x100010e0
push 0x7e
pop eax
jmp 0x100010e0
push ebx
lea ebx, [esi + 8]
push 0x14
push ebp
push ebx
call fcn.10031550
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 0xc
push 0x200f
push dword [esi]
call edi
push 0x2010
mov dword [ebx], eax
push dword [esi]
call edi
push 0x2011
mov dword [esi + 0xc], eax
push dword [esi]
call edi
push 0x2016
mov dword [esi + 0x10], eax
push dword [esi]
call edi
push 0x2015
mov dword [esi + 0x14], eax
push dword [esi]
call edi
cmp dword [ebx], ebp
mov dword [esi + 0x18], eax
pop ebx
je 0x100010c8
cmp dword [esi + 0xc], ebp
je 0x100010c8
cmp dword [esi + 0x10], ebp
je 0x100010c8
cmp dword [esi + 0x14], ebp
je 0x100010c8
cmp eax, ebp
je 0x100010c8
mov dword [esi + 4], 1
xor eax, eax
jmp 0x100010e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebp
jne 0x100010d7
push 0x7f
pop edi
mov ecx, esi
call fcn.10001187
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x10002fbc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x10002fe1
push 1
pop eax
jmp 0x10003076
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
mov dword [ebp - 4], eax
je 0x10002ff4
cmp eax, 2
jne 0x1000306b
push esi
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp byte [ebp - 0x108], bl
je 0x1000303b
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x108]
push eax
call esi
cmp byte [ebp + eax - 0x109], 0x5c
jne 0x1000303b
lea eax, [ebp - 0x108]
push eax
call esi
mov byte [ebp + eax - 0x109], bl
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.100317c0
pop ecx
cmp eax, ebx
pop ecx
pop esi
je 0x1000306b
mov byte [eax], bl
lea eax, [ebp - 0x108]
push eax
call fcn.10002fbc
test eax, eax
pop ecx
je 0x1000306b
push ebx
push dword [ebp + 8]
call edi
jmp 0x10003076
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x1000307a
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov esi, 0x104
push str._s.
lea eax, [ebp - 0x348]
push esi
push eax
call fcn.10001426
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
je 0x10003166
cmp edi, 0xffffffff
je 0x10003166
cmp byte [ebp - 0x113], 0
jne 0x100030dd
cmp byte [ebp - 0x114], 0x2e
je 0x10003132
cmp byte [ebp - 0x112], 0
jne 0x100030f8
cmp byte [ebp - 0x114], 0x2e
jne 0x100030f8
cmp byte [ebp - 0x113], 0x2e
je 0x10003132
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x1004a050
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.10001426
add esp, 0x14
lea eax, [ebp - 0x244]
test byte [ebp - 0x140], 0x10
push eax
je 0x1000312c
call fcn.1000307a
jmp 0x10003131
call fcn.100032ea
pop ecx
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100030cb
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
sbb eax, eax
neg eax
jmp 0x10003168
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000316d
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
mov esi, 0x104
push str._s.
lea eax, [ebp - 0x348]
push esi
push eax
call fcn.10001426
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
test edi, edi
je 0x1000324a
cmp edi, 0xffffffff
je 0x1000324a
cmp byte [ebp - 0x113], 0
jne 0x100031d0
cmp byte [ebp - 0x114], 0x2e
je 0x1000321e
cmp byte [ebp - 0x112], 0
jne 0x100031eb
cmp byte [ebp - 0x114], 0x2e
jne 0x100031eb
cmp byte [ebp - 0x113], 0x2e
je 0x1000321e
lea eax, [ebp - 0x114]
push eax
push ebx
push 0x1004a050
lea eax, [ebp - 0x244]
push esi
push eax
call fcn.10001426
add esp, 0x14
test byte [ebp - 0x140], 0x10
je 0x1000321e
lea eax, [ebp - 0x244]
push eax
call fcn.1000316d
pop ecx
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100031be
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100032c8
Capabilities:
Copy file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
ret

Function at 0x100032ea
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
ret

Function at 0x100033a9
Capabilities:
Get file size

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push ebx
push 3
push ebx
push 1
push ebx
push dword [esp + 0x28]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x100033e1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100033da
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x10003689
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x100036a0
test al, 0x10
je 0x100036a0
push 1
pop eax
ret
xor eax, eax
ret
Function at 0x10013b1c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
push str.Kernel32.DLL
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call edi
push str.User32.DLL
mov dword [esi + 0x1c], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x10013b9b
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
mov dword [esi + 4], eax
push dword [esi + 0x1c]
call edi
push str.IsWow64Process2
mov dword [esi + 8], eax
push dword [esi + 0x1c]
call edi
push str.Wow64EnableWow64FsRedirection
mov dword [esi + 0xc], eax
push dword [esi + 0x1c]
call edi
push str.GetSystemWow64DirectoryA
mov dword [esi + 0x10], eax
push dword [esi + 0x1c]
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x10013bad
push str.IsWow64Message
push eax
call edi
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ebx
ret

Function at 0x10015007
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and esi, eax
test dword [ebx + 0x6fffffc], ebx
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.100140be
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10014073
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.100140ae
retf 0xe7ae
Function at 0x401d30
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x402960
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push esi
push 0
push 0x2000000
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4029e9
lea ecx, [ebp - 8]
lea edx, [ebp - 0x18]
mov eax, 8
push ecx
push edx
mov word [ebp - 0x18], 0x7d4
mov word [ebp - 0x16], ax
mov word [ebp - 0x12], 0x10
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x27
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
mov word [ebp - 0x14], 2
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
je 0x4029cf
jne 0x4029cf
mov ds, word [edx - 0x7207ba73]
dec ebp
clc
lea eax, [ebp - 8]
lea ecx, [ebp - 8]
push eax
lea edx, [ebp - 8]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4029f0
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.DASeting.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x11c]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x118]
push eax
mov eax, dword [esp + 0x118]
push 0x100
push ecx
mov ecx, dword [esp + 0x11c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x100
ret
Function at 0x402a90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.DASeting.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x114]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x118]
push eax
mov eax, dword [esp + 0x114]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0xc]
push ecx
call fcn.00402960
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x402b30
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402b60
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402b94
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret
Function at 0x402bb0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x40cecb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1e8
lea eax, [esp + 0x58]
push edi
push eax
push 2
call sub.WS2_32.dll_WSAStartup
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
stosb byte es:[edi], al
call fcn.004079f0
lea ecx, [esp + 4]
mov dword [esp + 0x1f4], 0
call fcn.00407a30
test eax, eax
pop edi
jne 0x402c34
lea ecx, [esp]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.00407a20
or eax, 0xffffffff
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
add esp, 0x1f4
ret
push 0x2710
lea ecx, [esp + 4]
call fcn.00407b50
mov ecx, dword [esp + 0x1f8]
push 0x3264
push ecx
lea ecx, [esp + 8]
call fcn.00407ab0
test eax, eax
jne 0x402c91
lea ecx, [esp]
call fcn.00407a80
lea ecx, [esp]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.00407a20
or eax, 0xffffffff
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
add esp, 0x1f4
ret
lea edx, [esp + 0x18]
lea ecx, [esp]
push edx
push 0x3d
push 0x1064
call fcn.00407c60
test eax, eax
jne 0x402cdf
lea ecx, [esp]
call fcn.00407a80
lea ecx, [esp]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.00407a20
or eax, 0xffffffff
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
add esp, 0x1f4
ret
xor eax, eax
lea ecx, [esp + 8]
mov dword [esp + 8], eax
lea edx, [esp + 0x14]
mov dword [esp + 0xc], eax
push ecx
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0xc]
call fcn.00407ca0
test eax, eax
lea ecx, [esp]
jne 0x402d3a
call fcn.00407a80
lea ecx, [esp]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.00407a20
or eax, 0xffffffff
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
add esp, 0x1f4
ret
call fcn.00407a80
lea ecx, [esp]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.00407a20
mov ecx, dword [esp + 0x1e8]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x1f4
ret

Function at 0x402d70
Capabilities:
Acquire debug privileges

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x18
lea eax, [esp + 0x1c]
push esi
push eax
push 0x28
push ecx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402dea
lea edx, [esp + 4]
push edx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x402ddf
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push esi
push esi
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
push 0x10
push edx
push esi
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x402ddf
mov esi, 1
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x18
ret
Function at 0x402e00
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push esi
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402e7c
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x402e71
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push esi
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc]
push 0x10
push ecx
push esi
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x402e71
mov esi, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x1c
ret
Function at 0x403ff0
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x404020
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 7
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x404051
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret
Function at 0x404fb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x154
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x164]
lea edx, [esp + 0x60]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x168]
push eax
push ecx
push str.rsrundll.exe__d__s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [esp + 0x50]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x60]
push eax
push ecx
push ebx
push ebx
push 0x10
push ebx
push ebx
push ebx
push edx
push ebx
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], str.WinSta0Default
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x60], ebx
mov word [esp + 0x64], 5
mov dword [esp + 0x68], ebx
mov word [esp + 0x66], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x50]
push ecx
call esi
pop edi
pop esi
pop ebx
add esp, 0x154
ret

Function at 0x405070
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x130
push ebx
mov ebx, dword [esp + 0x138]
push edi
movsx eax, byte [ebx]
push eax
call dword [sym.imp.MSVCRT.dll_isdigit]
add esp, 4
test eax, eax
je 0x4050a4
push 0
push 0
push ebx
call dword [sym.imp.MSVCRT.dll_strtoul]
add esp, 0xc
mov dword [esp + 0xc], eax
jmp 0x4050ac
mov dword [esp + 0xc], 0xffffffff
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.CreateToolhelp32Snapshot
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40519a
push 0
push 2
call eax
mov edi, eax
cmp edi, 0xffffffff
je 0x40519a
push ebp
lea ecx, [esp + 0x14]
push esi
push ecx
push edi
mov dword [esp + 0x20], 0x128
mov dword [esp + 0x18], 0
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x405184
mov ebp, dword [sym.imp.MSVCRT.dll__strlwr]
push ebx
call ebp
lea edx, [esp + 0x40]
mov esi, eax
push edx
call ebp
add esp, 8
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40513a
test cl, cl
je 0x405136
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40513a
add eax, 2
add esi, 2
test cl, cl
jne 0x405116
xor eax, eax
jmp 0x40513f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40517c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
je 0x40517c
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405107
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x130
ret
mov dword [esp + 0x10], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x130
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x130
ret