joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41233c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403b6c
mov eax, dword [ebp - 8]
call fcn.00403b6c
lea edi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x4124c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
xor ecx, ecx
mov edx, 0x3c
call fcn.00402774
mov dword [edi], 0x3c
mov dword [edi + 4], 0x140
call sub.user32.dll_GetActiveWindow
mov dword [edi + 8], eax
mov eax, 0x4124d0
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
call fcn.00403b7c
mov dword [edi + 0x10], eax
mov dword [edi + 0x1c], 1
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 8]
call fcn.0040bd74
mov eax, dword [ebp - 0x48]
mov edx, 0x4124e0
call fcn.00403ac8
jne 0x4123db
xor eax, eax
mov dword [edi + 0x1c], eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 8]
call fcn.0040bd74
mov eax, dword [ebp - 0x4c]
mov edx, 0x4124f0
call fcn.00403ac8
jne 0x4123fc
mov dword [edi + 0x1c], 3
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 8]
call fcn.0040bd74
mov eax, dword [ebp - 0x50]
mov edx, 0x412504
call fcn.00403ac8
jne 0x41241d
mov dword [edi + 0x1c], 6
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 4]
call fcn.0040c1d8
mov eax, dword [ebp - 0x54]
call fcn.00403b7c
mov dword [edi + 0x18], eax
push edi
call sub.shell32.dll_ShellExecuteExA
test eax, eax
je 0x412442
mov esi, dword [edi + 0x38]
jmp 0x412472
push 0x10
push 0x412510
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x58]
call fcn.0040ce4c
mov eax, dword [ebp - 0x58]
call fcn.00403b7c
push eax
mov eax, dword [0x417960]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 0x28]
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x41249a
test bl, bl
je 0x412494
jmp 0x412485
mov eax, dword [0x417960]
mov eax, dword [eax + 0x18]
call fcn.0040a1c4
push 0x32
mov eax, dword [edi + 0x38]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x412478
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4124c9
lea eax, [ebp - 0x58]
mov edx, 5
call fcn.00403704
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403704
ret
Function at 0x402eae
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040638e
xor ebx, ebx
cmp eax, ebx
jne 0x402f91
test byte [ebp + 0x10], 2
je 0x402f0f
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f76
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f4b
test edi, edi
jne 0x402f76
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402eae
test eax, eax
jne 0x402f54
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406915
test eax, eax
jne 0x402f86
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f91
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f91
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4032b9
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x4032d9
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x4032e8
mov ebx, 0x418ec0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x4032fd
mov ecx, dword [0x429a78]
add ecx, eax
push ecx
call fcn.004034b4
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.0040349e
test eax, eax
je 0x403455
test byte [ebp + 0x17], 0x80
je 0x40343e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40ce30
mov dword [ebp - 0xc], eax
call fcn.00406a70
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x403494
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x40334d
mov esi, dword [ebp + 0x14]
mov edi, 0x414ec0
push esi
push edi
call fcn.0040349e
test eax, eax
je 0x403455
sub dword [ebp + 0x14], esi
mov dword [0x40ce48], edi
mov dword [0x40ce4c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40ce30
mov dword [0x40ce50], ebx
mov dword [0x40ce54], eax
call fcn.00406a90
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x403436
mov esi, dword [0x40ce50]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x429ad4], 1
mov edi, eax
je 0x4033f5
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4033bc
cmp dword [ebp + 0x14], 0
jne 0x4033f5
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x90]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
push 0
call fcn.004055a6
mov dword [ebp - 0xc], edi
test esi, esi
je 0x40342a
cmp dword [ebp + 0x10], 0
jne 0x403412
push esi
push ebx
push dword [ebp + 0xc]
call fcn.004060c3
test eax, eax
je 0x40343a
add dword [ebp - 4], esi
jmp 0x40341e
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40ce50]
cmp dword [ebp - 0x10], 1
jne 0x403370
jmp 0x403494
cmp dword [ebp + 0x14], 0
jg 0x403340
jmp 0x403494
push 0xfffffffffffffffc
jmp 0x403457
push 0xfffffffffffffffe
jmp 0x403457
test edi, edi
je 0x403489
cmp dword [ebp + 0x14], esi
jge 0x40344a
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.0040349e
test eax, eax
jne 0x403491
push 0xfffffffffffffffd
pop eax
jmp 0x403497
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403465
mov esi, dword [ebp + 0x14]
mov edi, 0x414ec0
push esi
push edi
call fcn.0040349e
test eax, eax
je 0x403455
push esi
push edi
push dword [ebp + 0xc]
call fcn.004060c3
test eax, eax
je 0x40343a
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x40345a
jmp 0x403494
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405b04
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x425f10], 0x44
push eax
xor eax, eax
push 0x425f10
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405b43
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405b47
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405be5
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405fec
mov edi, eax
cmp edi, 0xffffffff
je 0x405c26
test byte [esp + 0x10], 1
push esi
je 0x405c08
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405c0e
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405c17
xor eax, eax
inc eax
jmp 0x405c28
test byte [esp + 0x10], 4
jne 0x405c26
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405c2d
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405ef8
test bl, 8
mov dword [ebp - 8], eax
je 0x405c6c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429aa8], eax
jmp 0x405de9
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405c86
test eax, eax
je 0x405d97
test bl, 2
je 0x405d97
mov esi, 0x424f10
push edi
push esi
call fcn.00406521
cmp dword [ebp + 8], 0
je 0x405ca5
push str..
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405cab
push edi
call fcn.00405e3c
cmp word [edi], 0
jne 0x405cbb
cmp word [0x424f10], 0x5c
jne 0x405cc6
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405d8c
cmp word [ebp - 0x22c], 0x2e
jne 0x405d10
cmp word [ebp - 0x22a], 0
je 0x405d6f
cmp word [ebp - 0x22a], 0x2e
jne 0x405d10
cmp word [ebp - 0x228], 0
je 0x405d6f
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406521
test byte [ebp - 0x258], 0x10
je 0x405d3b
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405d6f
push dword [ebp + 0xc]
push edi
call fcn.00405c2d
jmp 0x405d6f
push dword [ebp - 4]
push edi
call fcn.00405be5
test eax, eax
jne 0x405d67
cmp dword [ebp - 4], eax
je 0x405d5f
push edi
push 0xfffffffffffffff1
call fcn.004055a6
push 0
push edi
call fcn.004062e1
jmp 0x405d6f
inc dword [0x429aa8]
jmp 0x405d6f
push edi
push 0xfffffffffffffff2
call fcn.004055a6
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ce8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405d97
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405de9
cmp dword [ebp - 8], esi
jne 0x405dab
inc dword [0x429aa8]
jmp 0x405de9
push edi
call fcn.0040687e
test eax, eax
je 0x405de9
push edi
call fcn.00405df0
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405be5
test eax, eax
jne 0x405de1
cmp dword [ebp - 4], esi
je 0x405da3
push edi
push 0xfffffffffffffff1
call fcn.004055a6
push esi
push edi
call fcn.004062e1
jmp 0x405de9
push edi
push 0xffffffffffffffe5
call fcn.004055a6
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405ef8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425710
push esi
call fcn.00406521
push esi
call fcn.00405e9b
mov edi, eax
test edi, edi
jne 0x405f19
xor eax, eax
jmp 0x405f71
push edi
call fcn.004067cf
test byte [0x429a38], 0x80
je 0x405f36
mov ax, word [edi]
test ax, ax
je 0x405f15
cmp ax, 0x5c
je 0x405f15
sub edi, esi
sar edi, 1
jmp 0x405f50
call fcn.0040687e
test eax, eax
je 0x405f4a
test byte [eax], 0x10
je 0x405f15
push esi
call fcn.00405e3c
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405f3c
call fcn.00405df0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405fec
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40600b
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x406011
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x406040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a578]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a57c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406090
test edi, edi
jne 0x40604d
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40608a
Function at 0x406167
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x4265a8], 0x55004e
mov dword [0x4265ac], 0x4c
mov edi, 0x400
mov ebp, 0x4265a8
je 0x4061bd
push 1
push 0
push esi
call fcn.00406011
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4062dc
cmp eax, edi
jg 0x4062dc
mov esi, 0x426da8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4062dc
cmp eax, edi
jg 0x4062dc
push esi
push ebp
push str._ls_ls_r_n
push 0x4261a8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x429a30]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040655e
push 4
push 0xc0000000
push esi
call fcn.00406011
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4062dc
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4062d5
push edi
push esi
push ebp
call fcn.00406094
test eax, eax
je 0x4062d5
push str._Rename__r_n
push esi
call fcn.00405f76
test eax, eax
jne 0x406273
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4062a8
add eax, 0xa
push 0x40a580
push eax
call fcn.00405f76
mov ebp, eax
test ebp, ebp
je 0x4062a4
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406295
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40628f
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4062aa
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4261a8
push eax
call fcn.00405fcc
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.004060c3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4062e1
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406304
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406167
pop ecx
pop ecx
inc dword [0x429ab0]
ret 8
Function at 0x4063ef
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040638e
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40645f
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x40645f
cmp dword [ebp + 0xc], 1
je 0x406463
cmp dword [ebp + 0xc], 2
je 0x406463
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4068a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068c9
xor eax, eax
test eax, eax
je 0x4068dc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068dc
xor ecx, ecx
jmp 0x4068df
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a02
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ac], 0
push esi
jne 0x406a39
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a13
mov dword [ecx*4 + 0x4275a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a0e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a6a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275a8]
xor eax, esi
inc ecx
dec edx
jne 0x406a4c
pop edi
not eax
pop esi
ret 0xc
Function at 0x4039cf
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push str.StartServiceCtrlDispatcherA
push str.ADVAPI32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, str.Serpiei
mov edi, eax
push esi
call fcn.00403061
test eax, eax
pop ecx
je 0x403a23
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0xc], 0x403756
call edi
pop edi
xor eax, eax
pop esi
leave
ret 0x10
and byte [ebp - 0x114], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x113]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x114]
push eax
call fcn.00402ca7
lea eax, [ebp - 0x114]
push 1
push eax
push str.Microsoft_.NET_COM_Integration_with_SOAP
push str.Microsoft_.Net_Frameworek_COMi_Suppoot
push esi
call fcn.004031c0
add esp, 0x18
call fcn.00402217
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x401af0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x4a00a0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
xor eax, eax
lea esi, [edi + 8]
mov dword [edi], 0x497934
lea ecx, [edi + 0x3c]
mov dword [edi + 4], 0
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], eax
mov word [edi + 0x20], ax
mov byte [edi + 0x38], al
call fcn.004131f0
xor eax, eax
mov dword [edi + 0x138], 7
push esi
mov dword [edi + 0x134], 0
push 2
mov word [edi + 0x124], ax
call fcn.0042be20
add esp, 8
test al, al
je 0x401cbf
sub esp, 8
mov ecx, esi
mov eax, esp
mov dword [eax], 0x496bc0
mov dword [eax + 4], 0xc
lea eax, [esp + 0x1c]
push eax
call fcn.0041ed10
cmp dword [eax + 0x14], 8
jb 0x401ba3
mov eax, dword [eax]
push eax
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x401bfc
sub esp, 8
mov ecx, esi
mov eax, esp
mov dword [eax], 0x496bc0
mov dword [eax + 4], 0xc
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0041e7c0
mov ecx, eax
call fcn.0041ed10
cmp dword [eax + 0x14], 8
jb 0x401be6
mov eax, dword [eax]
push eax
mov ebx, 7
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov byte [esp + 0xf], 1
cmp eax, 0xffffffff
jne 0x401c01
mov byte [esp + 0xf], 0
test bl, 4
je 0x401c38
mov eax, dword [esp + 0x40]
and ebx, 0xfffffffb
cmp eax, 8
jb 0x401c21
inc eax
lea ecx, [esp + 0x2c]
push eax
push dword [esp + 0x30]
call fcn.004055d0
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
test bl, 2
je 0x401c6c
mov eax, dword [esp + 0x58]
cmp eax, 8
jb 0x401c55
inc eax
lea ecx, [esp + 0x44]
push eax
push dword [esp + 0x48]
call fcn.004055d0
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
mov eax, dword [esp + 0x28]
cmp eax, 8
jb 0x401c84
inc eax
lea ecx, [esp + 0x14]
push eax
push dword [esp + 0x18]
call fcn.004055d0
cmp byte [esp + 0xf], 0
je 0x401cbf
lea eax, [esp + 0x14]
mov ecx, esi
push eax
call fcn.0041e7c0
cmp esi, eax
je 0x401ca7
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004047b0
mov ecx, dword [esp + 0x28]
cmp ecx, 8
jb 0x401cbf
inc ecx
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.004055d0
mov ecx, edi
call fcn.00401e60
mov ecx, dword [esp + 0x5c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
Function at 0x406900
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4a00a0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
push edi
push 0x10
mov byte [esi], 0
call fcn.00466a4b
add esp, 4
mov dword [esp + 0x28], 0xf
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
mov ebx, eax
mov byte [esp + 0x14], 0
push 0xd
push 0x497988
call fcn.00404c20
mov dword [ebx + 4], 0
mov dword [ebx], 0x49a108
call fcn.0044b940
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, 1
mov eax, dword [eax]
mov dword [ebx + 8], eax
test eax, eax
je 0x406986
mov ecx, edi
add eax, 4
lock xadd dword [eax], ecx
push 0xc0
call fcn.00466a4b
push ecx
lea ecx, [esp + 0x1c]
push ecx
push ecx
push ebx
mov ecx, eax
call fcn.0042c870
mov dword [ebx + 0xc], eax
lea eax, [ebx + 4]
mov dword [esi + 4], ebx
lock xadd dword [eax], edi
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
jb 0x4069c4
inc ecx
push ecx
push dword [esp + 0x18]
lea ecx, [esp + 0x1c]
call fcn.00405140
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
Function at 0x4120f0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a00a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x412129
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466c90
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.00412ba0
lea eax, [ebp - 0x20]
push eax
push 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
jne 0x412152
xor bl, bl
jmp 0x4121b2
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4121ac
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x18]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
cmp eax, 1
sete bl
lea ecx, [ebp - 0x14]
call fcn.00412c20
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00466c90
mov esp, ebp
pop ebp
ret