joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414e60
Capabilities:
Create thread

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x474cec
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x4a6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x414fa4
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edi, dword [ebx + 8]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 2
movups xmm0, xmmword [ebp - 0x30]
mov dword [ebp - 0x58], 0x48fbf8
mov dword [ebp - 0x34], eax
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x58]
push eax
push 0x415010
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov dword [ebp - 0x20], 0x48ec3c
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], 0x48ec3c
test esi, esi
je 0x414f66
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
test ecx, ecx
je 0x414f8c
mov esi, dword [ecx]
lea eax, [ebp - 0x58]
cmp ecx, eax
setne dl
movzx edx, dl
push edx
call dword [esi + 0x10]
mov dword [ebp - 0x34], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
push 0x80004005
call fcn.00402f30
int3
Function at 0x41e8b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x4773dd
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a6024]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0x20c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x20]
mov edi, dword [eax + 4]
push edx
or edi, 0x2001f
mov dword [ebp - 0x20], 0
push edi
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x18]
test esi, esi
jne 0x41e9ed
xor esi, esi
test eax, eax
je 0x41e958
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x20]
and edi, 0x300
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
test esi, esi
jne 0x41e9ed
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x30]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x100
push ecx
lea ecx, [ebp]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x41e9c8
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
call fcn.0041e8b0
mov esi, eax
test esi, esi
jne 0x41e9ed
lea eax, [ebp - 0x30]
mov dword [ebp - 0x1c], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push esi
push dword [ebp - 0x18]
call edi
test eax, eax
je 0x41e996
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41e9d9
push eax
call ebx
mov dword [ebp - 0x18], 0
push dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], 0
call fcn.0041eaa0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41ea05
push eax
call ebx
mov dword [ebp - 0x18], 0
mov eax, esi
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.00452869
lea esp, [ebp + 0x204]
pop ebp
ret 4
Function at 0x41f940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x477485
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4a6024]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 0x410]
mov eax, dword [ebp + 0x414]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x418]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x41f9e8
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x1c], eax
test esi, esi
jne 0x41f9e8
call fcn.0041dc30
mov edi, eax
jmp 0x41faf0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x41fa05
call fcn.0041dc30
jmp 0x41fae3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
jne 0x41fa20
call fcn.0041dc30
jmp 0x41fae3
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x14], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x41fa3e
mov edi, 0x8007000e
jmp 0x41fae5
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
test edx, edx
ja 0x41fb32
jb 0x41fa62
cmp eax, 0xffffffff
ja 0x41fb32
cmp eax, 0x400
jbe 0x41fa7b
push eax
lea ecx, [ebp]
call fcn.0041dc00
mov dword [ebp - 4], 1
jmp 0x41faa0
lea eax, [ebp + 4]
mov dword [ebp], eax
mov dword [ebp - 4], 1
jmp 0x41faa0
mov eax, dword [ebp]
test eax, eax
jne 0x41faae
mov edi, 0x8007000e
jmp 0x41fae5
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41fac9
call fcn.0041dc30
jmp 0x41fae3
xor edx, edx
mov eax, dword [ebp]
mov word [eax + ecx*2], dx
push dword [ebp + 0x41c]
push dword [ebp]
lea ecx, [ebp - 0x24]
call fcn.0041f7e0
mov edi, eax
test esi, esi
je 0x41faf0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x41fb04
lea ecx, [ebp]
call fcn.0041dbb0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00452869
lea esp, [ebp + 0x408]
pop ebp
ret 0x10
push 0x80070216
call fcn.00402f30
int3
Function at 0x423040
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x477e0e
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a6024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [ebp]
mov dword [ebp - 0x18], esi
push eax
push 0x104
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4230e3
call fcn.00403270
test eax, eax
je 0x423167
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00452869
lea esp, [ebp + 0x20c]
pop ebp
ret
cmp word [ebp + eax*2 - 2], 0x5c
je 0x4230f6
mov ecx, 0x5c
mov word [ebp + eax*2], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x423162
xor ecx, ecx
mov word [ebp + eax], cx
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x423167
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 2
lea eax, [ebp]
test eax, 0xffff0000
jne 0x42313c
movzx eax, ax
mov ecx, esi
push eax
call fcn.00404b50
jmp 0x4230b2
lea ecx, [ebp]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423142
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00404e20
jmp 0x4230b2
call fcn.00452a03
push 0x80004005
call fcn.00402f30
int3
Function at 0x423180
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x477eae
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4a6024]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
call fcn.00423040
mov dword [ebp - 4], 1
lea ecx, [ebp]
push ecx
push 0
push 0x492404
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
sete byte [ebp - 0xd]
mov dword [ebp - 4], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423212
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00403270
cmp byte [ebp - 0xd], 0
je 0x423264
test eax, eax
je 0x4233a8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00452869
lea esp, [ebp + 0x20c]
pop ebp
ret
test eax, eax
je 0x4233a8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 4
lea eax, [ebp]
test eax, 0xffff0000
jne 0x423298
movzx eax, ax
lea ecx, [ebp - 0x14]
push eax
call fcn.00404b50
jmp 0x4232bc
lea ecx, [ebp]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4232a0
sub ecx, edx
lea eax, [ebp]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00404e20
mov dword [ebp - 4], 5
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00403270
test eax, eax
je 0x4233a8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
mov eax, 0x4923f8
lea ecx, [ebp - 0x18]
test eax, 0xffff0000
jne 0x423305
movzx eax, ax
push eax
call fcn.00404b50
jmp 0x423311
push 4
push 0x4923f8
call fcn.00404e20
mov byte [ebp - 4], 7
push 0x2e
push esi
call fcn.00453f2b
mov edi, dword [ebp - 0x18]
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x42334d
sub ecx, esi
sar ecx, 1
js 0x42334d
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.0041bbf0
push dword [edi - 0xc]
lea ecx, [ebp - 0x14]
push edi
call fcn.00404870
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 5
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x423369
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov ecx, esi
call fcn.004058b0
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42323f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42323f
push 0x80004005
call fcn.00402f30
int3
Function at 0x423930
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47807d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
cmp dword [eax - 0xc], 0x104
jl 0x423a64
push 4
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.0041b830
mov dword [ebp - 4], 0
mov ecx, 0x48f0d0
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4239a8
test dx, dx
je 0x4239a4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4239a8
add eax, 4
add ecx, 4
test dx, dx
jne 0x423982
xor esi, esi
jmp 0x4239ad
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4239cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x423a64
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x423a90
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
mov eax, 0x48f0d0
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x423a12
movzx eax, ax
push eax
call fcn.00404b50
jmp 0x423a1e
push 4
push 0x48f0d0
call fcn.00404e20
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x10]
mov eax, dword [edi]
push dword [eax - 0xc]
push eax
call fcn.00404870
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x423a72
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x423a72
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete bl
test bl, bl
jne 0x423a7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402f30
int3
Function at 0x423aa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47807d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4a6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
cmp dword [eax - 0xc], 0x104
jl 0x423bd4
push 4
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.0041b830
mov dword [ebp - 4], 0
mov ecx, 0x48f0d0
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x423b18
test dx, dx
je 0x423b14
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x423b18
add eax, 4
add ecx, 4
test dx, dx
jne 0x423af2
xor esi, esi
jmp 0x423b1d
sbb esi, esi
or esi, 1
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x423b3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x423bd4
call fcn.00403270
mov ecx, eax
test ecx, ecx
je 0x423c00
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 2
mov eax, 0x48f0d0
lea ecx, [ebp - 0x10]
test eax, 0xffff0000
jne 0x423b82
movzx eax, ax
push eax
call fcn.00404b50
jmp 0x423b8e
push 4
push 0x48f0d0
call fcn.00404e20
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x10]
mov eax, dword [edi]
push dword [eax - 0xc]
push eax
call fcn.00404870
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x423be2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x423be2
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
sete bl
test bl, bl
jne 0x423bec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402f30
int3
Function at 0x424440
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4782e5
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x4a6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
call fcn.00423d80
test al, al
je 0x424489
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
cmp eax, 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
sete byte [ebp - 0xd]
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.00424060
cmp dword [ebp - 0x28], 0
jle 0x424651
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.004058b0
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
dec eax
test bl, bl
lea ecx, [eax + 1]
cmove ecx, eax
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
lea ebx, [eax + 1]
cmp ecx, ebx
jle 0x4245a2
nop
lea ecx, [esi - 0x10]
call fcn.004058b0
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
push 1
push 0x48f270
call fcn.00404870
test ebx, ebx
js 0x424651
cmp ebx, dword [ebp - 0x28]
jge 0x424651
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x18]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.00404870
mov edi, dword [ebp - 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4245eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp eax, 0xb7
je 0x4245fd
cmp byte [ebp - 0xd], 0
jne 0x4245fd
cmp ebx, 1
jle 0x424583
lea ecx, [ebp - 0x14]
call fcn.00423930
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42459f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x1c]
xor edi, edi
cmp eax, 0xb7
cmovne edi, eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4245c8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041b5f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
je 0x4245fd
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.0041b690
push 1
push 0x48f270
lea ecx, [ebp - 0x14]
call fcn.00404870
cmp ebx, dword [ebp - 0x28]
jge 0x424651
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x14]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.00404870
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x42463f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 0x20]
jge 0x42459f
jmp 0x424500
push 1
push 0xc000008c
call fcn.004134e0
int3
Function at 0x424860
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push 0
push 0
push dword [esp + 0x18]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x42488a
mov ecx, esi
call fcn.00404c00
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4
js 0x4248ef
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x4248a7
push edi
mov ecx, esi
call fcn.00404db0
push edi
push dword [esi]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x4248be
xor ecx, ecx
jmp 0x4248d0
push dword [eax - 8]
push eax
call fcn.00457f54
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4248ef
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4248ef
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
pop edi
pop esi
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.00402f30
int3

Function at 0x424cf0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47835d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push esi
mov eax, dword [0x4a6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov ecx, dword [edx]
mov edx, dword [eax]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x6c]
movlpd qword [ebp - 0x68], xmm0
push eax
push 0
push 0
push dword [ebp + 0x10]
xor eax, eax
movlpd qword [ebp - 0x60], xmm0
push 0
movlpd qword [ebp - 0x58], xmm0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
mov dword [ebp - 0x6c], 0x44
movups xmmword [ebp - 0x28], xmm0
cmp dword [ecx - 0xc], eax
push 0
cmovne eax, ecx
push 0
push eax
xor eax, eax
cmp dword [edx - 0xc], eax
cmovne eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x424da8
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x424da4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor al, al
jmp 0x424dd5
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x424dcc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x424dc9
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov byte [ebp - 0xd], al
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x14], 0
je 0x424dff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
movzx ecx, byte [ebp - 0x14]
xor edx, edx
test eax, eax
mov al, byte [ebp - 0xd]
cmovne ecx, edx
mov byte [ebp - 0x14], cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4256e0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478595
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a6024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0x48ec3c
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 0x24]
call dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x20]
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x42574c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x42580a
xor esi, esi
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push esi
push esi
push 1
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], esi
call ebx
test eax, eax
jne 0x42579b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4257ee
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
call fcn.00426280
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push dword [ebp - 0x20]
call ebx
test eax, eax
je 0x4257ee
cmp dword [ebp - 0x1c], 0
je 0x4257ee
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x12
push 1
lea eax, [ebp - 0x18]
mov word [ebp - 0x14], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4257f4
push dword [ebp - 0x2c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x2c]
cmp eax, 1
sete bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x4257f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov byte [ebp - 4], 0
push esi
call fcn.00452f38
add esp, 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], 0x48ec3c
test eax, eax
je 0x42582d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452869
mov esp, ebp
pop ebp
ret