joyce8/EMBER2024-capa huggingface dataset:
Function at 0x590ab0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.005d8c40
cmp eax, 0x26
jge 0x590ac5
pop edi
xor al, al
pop esi
ret
movzx eax, word [esi + 0x10]
mov edx, 0x14
mov word [edi], ax
movzx eax, word [esi + 0xe]
mov word [edi + 2], ax
movzx eax, word [esi + 0xc]
mov word [edi + 4], ax
movzx eax, word [esi + 0xa]
mov word [edi + 6], ax
movzx eax, word [esi + 8]
mov word [edi + 8], ax
movzx eax, word [esi + 6]
mov word [edi + 0xa], ax
movzx eax, word [esi + 4]
mov word [edi + 0xc], ax
movzx eax, word [esi + 2]
mov word [edi + 0xe], ax
movzx eax, word [esi + 0x1a]
mov word [edi + 0x10], ax
movzx eax, word [esi + 0x18]
mov word [edi + 0x12], ax
movzx eax, word [esi + 0x16]
mov word [edi + 0x14], ax
movzx eax, word [esi + 0x14]
mov word [edi + 0x16], ax
movzx eax, word [esi + 0x24]
mov word [edi + 0x18], ax
movzx eax, word [esi + 0x22]
mov word [edi + 0x1a], ax
movzx eax, word [esi + 0x20]
mov word [edi + 0x1c], ax
movzx eax, word [esi + 0x1e]
mov word [edi + 0x1e], ax
mov eax, 0x10
nop
movzx ecx, word [esi + edx*2 + 2]
mov word [edi + eax*2], cx
movzx ecx, word [esi + edx*2]
add edx, 2
mov word [edi + eax*2 + 2], cx
add eax, 2
cmp edx, 0x18
jl 0x590b50
mov edx, 0x19
movzx ecx, word [esi + edx*2 + 2]
lea eax, [eax + 2]
mov word [edi + eax*2 - 4], cx
movzx ecx, word [esi + edx*2]
add edx, 2
mov word [edi + eax*2 - 2], cx
cmp edx, 0x24
jl 0x590b72
pop edi
mov al, 1
pop esi
ret
Function at 0x5976c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
cmp dword [edi + 0xc0], 0
je 0x59773d
cmp dword [edi + 0xc4], 0
je 0x59773d
lea ecx, [edi + 0x74]
mov dword [ebp - 8], 0x1000
call fcn.005dc380
cmp dword [edi + 0xb0], ebx
ja 0x59770d
lea eax, [ebx + 1]
mov dword [edi + 0xb0], eax
mov esi, dword [edi + 0xb8]
lea eax, [ebx*8]
sub eax, ebx
shl eax, 3
mov dword [ebp - 0xc], eax
add esi, eax
lea eax, [ebp - 8]
push eax
call fcn.005dc190
push eax
mov eax, dword [edi + 0xc4]
push 0
push dword [esi + 0x34]
call eax
jmp 0x597788
lea ecx, [edi + 0x74]
mov dword [ebp - 8], 0x1000
call fcn.005dc380
cmp dword [edi + 0xb0], ebx
ja 0x59775d
lea eax, [ebx + 1]
mov dword [edi + 0xb0], eax
mov esi, dword [edi + 0xb8]
lea eax, [ebx*8]
push dword [ebp - 8]
sub eax, ebx
shl eax, 3
mov dword [ebp - 0xc], eax
add esi, eax
call fcn.005dc190
push eax
push 0
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
setne bl
test bl, bl
jne 0x59782a
mov eax, dword [ebp - 0x10]
cmp dword [edi + 0xb0], eax
ja 0x5977a7
inc eax
mov dword [edi + 0xb0], eax
mov ecx, dword [edi + 0xb8]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
add ecx, 0x28
add ecx, dword [ebp - 0xc]
push 0
push 0
call fcn.005dc190
push eax
push 0x624284
lea ecx, [edi + 0x8c]
call fcn.005dc190
push eax
lea ecx, [edi + 0x80]
call fcn.005dc200
lea ecx, [edi + 0x80]
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5978d5
push 0
lea ecx, [edi + 0x74]
call fcn.005dc190
push eax
lea ecx, [edi + 0x80]
call fcn.005d8a30
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 4
push 0
push 1
lea ecx, [edi + 0x74]
lea esi, [edi + 0x80]
call fcn.005dc190
push eax
mov ecx, esi
call fcn.005dc260
mov ecx, eax
call fcn.005dc440
cmp word [eax], 0x5c
jne 0x5978d5
push 1
mov ecx, esi
call fcn.005dc440
cmp word [eax], 0x5c
je 0x5978d5
push 0xc
push 1
push 1
push 0
push str.SystemRoot_
mov ecx, esi
call fcn.005daa70
cmp eax, 1
jne 0x59789a
push 0
push eax
lea ecx, [edi + 0x98]
call fcn.005dc190
push eax
push str.SystemRoot
mov ecx, esi
call fcn.005da270
jmp 0x5978bc
push 4
push 1
push 1
push 1
push 0x628910
mov ecx, esi
call fcn.005daa70
cmp eax, 1
jne 0x5978c3
push 4
mov ecx, esi
call fcn.005dad50
mov bl, byte [eax + 8]
test bl, bl
je 0x5978d5
push 0
lea ecx, [edi + 0x74]
call fcn.005dc190
push eax
mov ecx, esi
call fcn.005d8a30
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 4
Function at 0x5980c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff088
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
test edi, edi
jne 0x598100
xor eax, eax
jmp 0x5981f5
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push ebx
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.005dc570
mov dword [ebp - 4], 0
test ebx, ebx
je 0x59817b
cmp word [ebx], 0x5c
je 0x59817b
lea ecx, [ebp - 0x1c]
call fcn.005dc3a0
cmp eax, 2
jl 0x5981c7
jne 0x598171
push 1
lea ecx, [ebp - 0x1c]
call fcn.005dc440
cmp word [eax], 0x3a
jne 0x598171
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x624284
lea ecx, [ebp - 0x1c]
call fcn.005da780
lea ecx, [ebp - 0x1c]
call fcn.005dc190
mov ebx, eax
mov eax, dword [ebp - 0x20]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x105
test eax, eax
je 0x59819c
push 0
push 0
push esi
mov ecx, eax
call fcn.005db9a0
jmp 0x59819e
xor eax, eax
push esi
push eax
push 0
push 0
push 0
push 0x105
push 0
push 0
push 0x105
mov ecx, edi
call fcn.005db9a0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x5981cb
xor esi, esi
jmp 0x5981eb
mov ecx, edi
call fcn.005dbeb0
test al, al
je 0x5981e2
push 1
push str.Local_Disk
call fcn.005dc260
mov ecx, edi
call fcn.005dc190
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.005dc430
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 4
Function at 0x598220
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x70f200]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edx
test edi, edi
jne 0x598255
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
test byte [ebp + 8], 2
mov edx, eax
movups xmm0, xmmword [0x62ef10]
mov ecx, dword [0x62ef40]
mov dword [esp + 0x50], ecx
mov cx, word [0x62ef44]
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x18], edx
movups xmm0, xmmword [0x62ef20]
mov word [esp + 0x54], cx
mov dword [esp + 0x64], 0x3a0041
movups xmmword [esp + 0x30], xmm0
mov dword [esp + 0x68], 0x5c
movups xmm0, xmmword [0x62ef30]
movups xmmword [esp + 0x40], xmm0
je 0x5982c0
xor eax, eax
mov word [esp + 0x68], ax
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x14], ecx
nop dword [eax + eax]
mov ax, word [esp + esi*2 + 0x20]
mov word [esp + 0x64], ax
mov eax, dword [esp + 0x10]
test eax, edx
je 0x598336
cmp dword [esp + 0x1c], 0xffffffff
je 0x5982fa
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, dword [esp + 0x1c]
jne 0x59832a
test dword [ebp + 8], 1
je 0x598310
lea ecx, [esp + 0x64]
call fcn.00598410
test al, al
jne 0x59832a
lea eax, [esp + 0x64]
mov ecx, edi
push eax
call fcn.005dc510
mov ecx, dword [esp + 0x14]
inc ecx
add edi, 0xc
mov dword [esp + 0x14], ecx
jmp 0x59832e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add eax, eax
inc esi
mov dword [esp + 0x10], eax
cmp esi, 0x1a
jl 0x5982d0
mov eax, ecx
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
xor ecx, esp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 4
Function at 0x5988b0
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff15e
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push ecx
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.005dc570
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.005dc3a0
cmp eax, 2
jl 0x5989bd
push 2
push 1
push 1
push 1
push 0x624b44
lea ecx, [ebp - 0x1c]
call fcn.005daa70
test eax, eax
jne 0x59893d
sub esp, 0xc
lea ecx, [ebp - 0x1c]
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x62ee94
call fcn.005da510
push 6
lea ecx, [ebp - 0x1c]
call fcn.005dae00
push 0
push 0x2000004
push 3
push 0
push 3
push 0xc0000000
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x20], 0
test esi, esi
je 0x5989bd
or edi, 0xffffffff
cmp esi, 0xffffffff
je 0x5989bd
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x2c], 0
push eax
push 0xc
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0xffffffff
push eax
push 0
push 0
push 0x2d1080
push esi
mov dword [ebp - 0x24], 0xffffffff
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
push esi
cmovne edi, dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5989c0
or edi, 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.005dc430
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret

Function at 0x599020
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov eax, dword [esi]
test eax, eax
je 0x599039
push eax
call fcn.0041e1c3
add esp, 4
push 0x4b00
call fcn.0041e7cf
push 0x4b00
push 0
push eax
mov dword [esi], eax
mov dword [esi + 4], 0x4b00
call fcn.00420090
add esp, 0x10
mov dword [edi + 4], 0
lea eax, [edi + 4]
push 0
push eax
push 0x4b00
push dword [esi]
push 0
push 0
push 0x70050
push dword [edi + 0x230]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
neg eax
pop edi
sbb eax, eax
and eax, 0x4b00
pop esi
pop ebp
ret 4
Function at 0x5990a0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x230]
cmp eax, 0xffffffff
je 0x5992e7
test eax, eax
je 0x5992e7
cmp dword [esi + 0x24c], 0
jne 0x5990e8
push 0x230
call fcn.0041e7cf
add esp, 4
mov dword [esi + 0x24c], eax
mov dword [esi + 0x250], 0x230
mov ebx, dword [esi + 0x24c]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 0
lea edi, [ebx + 8]
nop dword [eax + eax]
push 0x230
push 0
push dword [esi + 0x24c]
call fcn.00420090
add esp, 0xc
mov dword [ebx], 0x32
mov dword [ebx + 4], 0
lea eax, [esi + 4]
mov dword [edi], 3
mov dword [edi + 4], 2
push 0
push eax
push 0x230
mov dword [edi + 8], 2
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0x28
mov dword [edi + 0x14], 0x200
push dword [esi + 0x24c]
mov dword [eax], 0
push 0x230
push ebx
push 0x2d1400
push dword [esi + 0x230]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x5992e7
mov eax, dword [esi + 0x24c]
cmp dword [eax], 0x30
jne 0x5992d7
cmp dword [eax + 4], 0x30
jne 0x5992d7
cmp dword [eax + 0xc], 2
lea edi, [eax + 8]
jne 0x5992d7
mov ebx, dword [edi + 0x10]
lea ecx, [edi + 0x40]
add ecx, ebx
call fcn.005980a0
or eax, edx
jne 0x5992f0
lea ecx, [edi + 0x50]
add ecx, ebx
call fcn.005980a0
or eax, edx
jne 0x5992f0
cmp word [ebx + edi + 1], ax
jne 0x5992f0
push eax
push eax
push 3
push eax
push 3
lea ecx, [esi + 0x268]
push 0xc0000000
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [esi + 0x230]
cmp eax, 0xffffffff
je 0x59920f
test eax, eax
je 0x59920f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
jne 0x599225
mov dword [esi + 0x230], 0xffffffff
jmp 0x59922e
cmp ebx, 0xffffffff
jne 0x5992d4
push 0
push 0x2000000
push 3
push 0
push 3
push 0xc0000000
lea ecx, [esi + 0x268]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov eax, dword [esi + 0x230]
cmp eax, 0xffffffff
je 0x59926a
test eax, eax
je 0x59926a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
jne 0x599280
mov dword [esi + 0x230], 0xffffffff
jmp 0x599285
cmp ebx, 0xffffffff
jne 0x5992d4
push 0
push 0
push 3
push 0
push 3
push 0
lea ecx, [esi + 0x268]
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [esi + 0x230]
mov ebx, eax
cmp ecx, 0xffffffff
je 0x5992bb
test ecx, ecx
je 0x5992bb
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x230], ebx
test ebx, ebx
mov ebx, dword [ebp - 4]
jne 0x5992d7
mov dword [esi + 0x230], 0xffffffff
jmp 0x5992d7
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 5
jl 0x599100
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x599790
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ecx + 0x230]
mov dword [ebp - 0xc], ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp eax, 0xffffffff
je 0x5998e9
test eax, eax
je 0x5998e9
mov ebx, dword [esi + 4]
lea eax, [esi + 4]
mov edi, 0xc
mov dword [ebp - 4], eax
cmp ebx, edi
jb 0x5997e2
cmp dword [esi], 0
jne 0x5997d5
lea edi, [ecx + 0x230]
jmp 0x5997f7
lea edx, [ecx + 4]
mov ecx, edi
mov dword [ebp - 8], edx
jmp 0x599867
mov eax, dword [esi]
lea edi, [ecx + 0x230]
test eax, eax
je 0x5997f7
push eax
call fcn.0041e1c3
add esp, 4
push 0xc
call fcn.0041e7cf
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], 0xc
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
push 0
add ecx, 4
mov dword [eax + 4], 0
mov ebx, dword [esi]
push ecx
push 8
push ebx
push 0xc
push eax
push 0x2d1400
push dword [edi]
mov dword [ebp + 0xc], ecx
mov dword [ecx], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x5998e9
mov edi, dword [ebx + 4]
test edi, edi
je 0x5998e9
mov edx, dword [ebp + 0xc]
lea eax, [esi + 4]
mov ebx, 0xc
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov ecx, edi
cmp ebx, edi
jb 0x599876
cmp dword [esi], 0
jne 0x5998ac
lea eax, [ecx + 0x10]
mov ebx, ecx
mov dword [ebp + 0xc], eax
jmp 0x599890
mov ecx, dword [esi]
lea eax, [edi + 0x10]
mov dword [ebp + 0xc], eax
mov ebx, edi
test ecx, ecx
je 0x599890
push ecx
call fcn.0041e1c3
add esp, 4
lea eax, [edi + 0x10]
push eax
call fcn.0041e7cf
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
push edi
push 0
push eax
mov dword [esi], eax
mov dword [edx], ecx
call fcn.00420090
add esp, 0x10
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
push 0
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
push ecx
mov dword [eax + 4], 0
push ebx
mov dword [ecx], 0
mov eax, dword [esi]
push eax
push ebx
push eax
mov eax, dword [ebp - 0xc]
push 0x2d1400
push dword [eax + 0x230]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x599f60
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ecx + 0x230]
cmp edx, 0xffffffff
je 0x599fc7
test edx, edx
je 0x599fc7
push 0
lea eax, [ecx + 4]
mov dword [ebp - 0x10], 0
mov dword [eax], 0
push eax
push 8
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0x7405c
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x599fc7
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
xor edx, edx
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret
Function at 0x59c220
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x14], eax
mov edi, ecx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], edx
push eax
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esi
push eax
push 0x59c100
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x59c274
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
xor edx, edx
mov ecx, esi
call fcn.005cca30
test al, al
je 0x59c2a9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jne 0x59c292
push 0xa
call ebx
jmp 0x59c29b
xor dl, dl
mov ecx, edi
call fcn.005c8820
xor edx, edx
mov ecx, esi
call fcn.005cca30
test al, al
jne 0x59c288
pop ebx
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
pop edi
pop esi
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 8
Function at 0x59c2d0
Capabilities:
Add user account to group
Delete user account from group
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff678
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x15c], ebx
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x158], eax
cmp ebx, 2
ja 0x59c46a
test eax, eax
jne 0x59c37f
push fcn.005dc430
push fcn.005dc5e0
push 3
push 0xc
lea eax, [ebp - 0x138]
push eax
call fcn.0041e804
lea ecx, [ebp - 0x138]
mov dword [ebp - 4], 0
call fcn.0059bed0
lea eax, [ebp - 0x138]
mov edx, ebx
push eax
mov ecx, esi
call fcn.0059c2d0
push fcn.005dc430
push 3
mov bl, al
mov dword [ebp - 4], 0xffffffff
push 0xc
lea eax, [ebp - 0x138]
push eax
call fcn.0041e45b
mov al, bl
jmp 0x59c46c
xorps xmm0, xmm0
mov dword [ebp - 0x144], 0
lea ecx, [ebp - 0x14c]
movq qword [ebp - 0x14c], xmm0
call fcn.005dc5e0
lea eax, [ebp - 0x150]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], 0x104
push eax
push 0
push 0
push 0x104
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x140], 0x104
call fcn.005db9a0
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
xor bl, bl
test eax, eax
je 0x59c45b
lea eax, [ebp - 0x114]
xor edi, edi
mov dword [ebp - 0x154], eax
xor esi, esi
nop word [eax + eax]
mov ecx, dword [ebp - 0x158]
lea eax, [ebp - 0x154]
push 1
push eax
add ecx, esi
push 0
call fcn.005dc190
push eax
push 0
cmp edi, dword [ebp - 0x15c]
jne 0x59c44c
call dword [sym.imp.NETAPI32.dll_NetLocalGroupAddMembers]
test eax, eax
je 0x59c448
cmp eax, 0x562
je 0x59c448
xor bl, bl
jmp 0x59c452
mov bl, 1
jmp 0x59c452
call dword [sym.imp.NETAPI32.dll_NetLocalGroupDelMembers]
add esi, 0xc
inc edi
cmp esi, 0x24
jl 0x59c410
lea ecx, [ebp - 0x14c]
call fcn.005dc430
mov al, bl
jmp 0x59c46c
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 4
Function at 0x59c620
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff71a
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x42c], 0
lea ecx, [ebp - 0x434]
movq qword [ebp - 0x434], xmm0
call fcn.005dc5e0
push 0x104
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00420090
add esp, 0xc
mov dword [ebp - 0x428], 0x104
lea eax, [ebp - 0x438]
mov dword [ebp - 0x424], 0x104
lea ecx, [ebp - 0x434]
push eax
lea eax, [ebp - 0x424]
push eax
push 0
push 0
push 0x104
call fcn.005db9a0
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x59c6e3
xor bl, bl
jmp 0x59c730
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 0
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
setne bl
test eax, eax
je 0x59c730
mov esi, dword [ebp - 0x43c]
mov ecx, esi
call fcn.005d8c40
lea eax, [eax*2 + 2]
push eax
push esi
push edi
call fcn.0041fb10
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x434]
call fcn.005dc430
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret
Function at 0x59c880
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ff795
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x1c], xmm0
call fcn.005dc5e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
movq qword [ebp - 0x28], xmm0
call fcn.005dc5e0
push 0
push 0
push 0x104
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.005db9a0
push 0
push 0
push 0x104
lea ecx, [ebp - 0x28]
call fcn.005db9a0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
push 1
push 0xffffffffffffffff
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x59c97b
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
push 1
push 0xffffffffffffffff
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x59c97b
lea ecx, [ebp - 0x28]
call fcn.005dc3a0
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dad50
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
push edi
mov ecx, ebx
call fcn.005dc200
mov bl, byte [eax + 8]
jmp 0x59c97d
xor bl, bl
lea ecx, [ebp - 0x28]
call fcn.005dc430
lea ecx, [ebp - 0x1c]
call fcn.005dc430
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 4