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

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
pop ebp
ret

Function at 0x45e750
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret

Function at 0x45f760
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x45f781
lea eax, [eax - 1]
dec esi
cmp byte [eax], 0x3d
je 0x45f775
mov dword [ebp + 0xc], esi
xor eax, eax
test esi, esi
je 0x45f838
push ebx
mov edx, 1
mov dword [ebp + 8], 2
lea ebx, [esi - 1]
sub edx, ecx
shr ebx, 2
push edi
lea edi, [ecx + 2]
mov dword [ebp - 4], edx
inc ebx
jmp 0x45f7b0
movsx ecx, byte [edi - 1]
mov dh, byte [ecx + 0x4b89e0]
movsx ecx, byte [edi - 2]
mov dl, byte [ecx + 0x4b89e0]
mov cl, dh
sar cl, 4
and cl, 3
shl dl, 2
or dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], dl
inc eax
mov ecx, dword [ebp + 8]
cmp ecx, esi
jae 0x45f824
movsx ecx, byte [edi]
mov esi, dword [ebp + 0x10]
shl dh, 4
mov dl, byte [ecx + 0x4b89e0]
mov cl, dl
sar cl, 2
and cl, 0xf
or cl, dh
mov byte [eax + esi], cl
inc eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
add ecx, edi
cmp ecx, esi
jae 0x45f821
movsx ecx, byte [edi + 1]
shl dl, 6
mov cl, byte [ecx + 0x4b89e0]
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 8]
add ecx, 4
add edi, 4
mov dword [ebp + 8], ecx
sub ebx, 1
jne 0x45f7b0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45ffa0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x460172
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3f0
jne 0x460172
push edi
mov ecx, esi
call fcn.00460190
mov edi, eax
cmp edi, 0xffffffff
je 0x460169
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffffff
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x460155
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x46014b
test eax, eax
je 0x46014b
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x460056
call ebx
cmp eax, 0x7a
jne 0x46014b
push dword [ebp - 4]
call fcn.00464e01
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp - 4]
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x460142
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x460142
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x460142
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4600c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x46014b
push dword [ebp - 4]
call fcn.00464e01
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x46012f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x46012f
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x46012f
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
cmp eax, 1
sete bl
call fcn.00464e0a
push dword [ebp - 8]
call fcn.00464e0a
add esp, 8
test bl, bl
jne 0x460155
jmp 0x46014b
push ebx
call fcn.00464e0a
push dword [ebp - 8]
call fcn.00464e0a
add esp, 8
jmp 0x46014b
push ebx
call fcn.00464e0a
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [esi], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x460169
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460190
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa50b
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4d8368]
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
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0xffffffff
push eax
mov dword [ebp - 0x248], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4603a0
cmp dword [ebp - 0x248], 0xffffffff
je 0x4603a0
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x460369
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push ebx
push eax
call fcn.0047ce40
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4602e0
jmp 0x460270
lea eax, [ebp - 0x218]
push str.explorer.exe
push eax
call fcn.00486380
add esp, 8
test eax, eax
jne 0x4602be
cmp edi, ebx
je 0x46029f
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x258], edi
jmp 0x4602be
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.00403360
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x460270
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x460369
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0xffffffff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x460354
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x460354
push dword [esi]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x460354
lea ecx, [ebp - 0x244]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x250]
test eax, eax
jne 0x46035d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x4602f0
jmp 0x460363
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x244]
test esi, esi
je 0x46039c
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x460392
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4603c2
push ebx
push esi
call fcn.00464df3
add esp, 8
mov eax, edi
jmp 0x4603a6
mov eax, dword [ebp - 0x244]
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.00465060
mov esp, ebp
pop ebp
ret
call fcn.00485d39
int3
Function at 0x462db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaaa2
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4d8368]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x220], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], cx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x21c]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
mov dword [ebp - 0x220], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x462ebb
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0047ce40
add esp, 0xc
mov dword [ebp - 0x224], 0x208
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
push 0
push edi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x462eaf
cmp dword [ebp - 0x228], 1
jne 0x462eaf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462e91
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00402e10
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.00465060
mov esp, ebp
pop ebp
ret

Function at 0x462ee0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaadc
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4d8368]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4e1c50]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4e1958]
cmp eax, dword [ecx + 4]
jg 0x462f93
cmp byte [0x4e1954], 0
je 0x462f7a
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0047ce40
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0040e5f0
push dword [eax + 4]
push dword [eax]
call fcn.00489a9b
add esp, 0x1c
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00465060
mov esp, ebp
pop ebp
ret
push 0x4e1958
call fcn.004652dc
add esp, 4
cmp dword [0x4e1958], 0xffffffff
jne 0x462f27
lea ecx, [ebp - 0x115]
mov dword [ebp - 4], 0
call fcn.00462cf0
push 0x4e1958
mov byte [0x4e1954], al
call fcn.00465292
add esp, 4
jmp 0x462f27

Function at 0x466e94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x492f64
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00492ab7

Function at 0x495cf6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00495b6c

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408e84
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5a24517a
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x749b7471
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4020ae
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459069
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x18]
call fcn.00405e50
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00406a93
and eax, 0xff
test eax, eax
je 0x4021a6
lea eax, [ebp - 0x2c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x402130
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00405e6f
mov eax, dword [ebp - 0x30]
jmp 0x40221b
lea ecx, [ebp - 0x24]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x402163
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00405e6f
mov eax, dword [ebp - 0x34]
jmp 0x40221b
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 2
push 0
push 0
push 0
lea edx, [ebp - 0x28]
push edx
push 0
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4021a6
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00405e6f
mov eax, dword [ebp - 0x38]
jmp 0x40221b
mov ecx, 1
test ecx, ecx
je 0x402202
lea ecx, [ebp - 0x18]
call fcn.00406a83
and eax, 0xff
test eax, eax
je 0x4021cf
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [ebp - 0x10], eax
jmp 0x4021dc
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4021e4
jmp 0x402202
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0x32
jle 0x402200
jmp 0x402202
jmp 0x4021a6
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00405e6f
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x402229
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45907c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp + 8]
call fcn.00401e00
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp + 8]
call fcn.00401e00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043fa22
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40228c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x4774c8
mov ecx, dword [ebp + 8]
call fcn.0043fbab
push 0x104
push 0x4774cc
lea eax, [ebp - 0x104]
push eax
call fcn.00422dd0
add esp, 0xc
lea ecx, [ebp - 0x104]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
jne 0x4022e0
xor eax, eax
jmp 0x4022f4
lea edx, [ebp - 0x104]
push edx
mov ecx, dword [ebp + 8]
call fcn.0043fbab
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4022f8
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0043fa90
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00416fdb
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x2c]
call fcn.00401e00
push eax
lea ecx, [ebp - 0x28]
call fcn.0041709e
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x28]
call fcn.00417054
cmp dword [ebp - 0x38], 0
jne 0x402412
push 0
push 0
push 1
push 0
push 1
push 0x40000000
lea ecx, [ebp - 0x2c]
call fcn.00401e00
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x44], eax
push 0
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00401e70
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4023fc
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00417018
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0043fa22
mov eax, dword [ebp - 0x48]
jmp 0x40245e
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x402439
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00417018
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0043fa22
mov eax, dword [ebp - 0x4c]
jmp 0x40245e
mov dword [ebp - 0x50], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00417018
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0043fa22
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x402b47
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459180
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
cmp dword [ebp + 8], 0
jne 0x402b6f
xor eax, eax
jmp 0x402c3f
cmp dword [ebp + 0x10], 0
je 0x402ba6
cmp dword [ebp + 8], 0
je 0x402b81
cmp dword [ebp + 0xc], 0
jne 0x402b88
xor eax, eax
jmp 0x402c3f
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x402ba6
push 1
push 1
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0040251a
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402c3a
push 0x80
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x402c3a
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str._S__Q
call fcn.0043fa90
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
mov eax, dword [ebp + 8]
push eax
call fcn.0043fa90
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.rd.exe
call fcn.0043fa90
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004028a7
add esp, 0xc
mov eax, 1
jmp 0x402c3f
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x403abf
Capabilities:
Create directory
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4593b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call fcn.00401de0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call fcn.00401de0
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00404800
cmp eax, 3
jge 0x403b51
mov dword [ebp - 0x128], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call fcn.0043fa22
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call fcn.0043fa22
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043fa22
mov eax, dword [ebp - 0x128]
jmp 0x403cb8
mov dword [ebp - 0x118], 0x104
push 0x104
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00423570
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [ebp - 0x120], 3
cmp dword [ebp - 0x120], 0
jle 0x403c7b
lea ecx, [ebp + 8]
call fcn.00404800
cmp dword [ebp - 0x120], eax
jge 0x403c7b
mov eax, dword [ebp - 0x120]
push eax
push 0x5c
lea ecx, [ebp + 8]
call fcn.0043ff51
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jle 0x403c76
mov ecx, dword [ebp - 0x120]
push ecx
lea edx, [ebp - 0x124]
push edx
lea ecx, [ebp + 8]
call fcn.0043c178
mov byte [ebp - 4], 3
call fcn.004039af
push eax
lea ecx, [ebp - 0x124]
call fcn.00401e00
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403c58
mov dword [ebp - 0x12c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.0043fa22
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call fcn.0043fa22
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call fcn.0043fa22
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043fa22
mov eax, dword [ebp - 0x12c]
jmp 0x403cb8
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.0043fa22
jmp 0x403b8f
mov dword [ebp - 0x130], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x114]
call fcn.0043fa22
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call fcn.0043fa22
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0043fa22
mov eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x404190
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x404309
push 0x104
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x404309
push 0x104
lea eax, [ebp - 0x348]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x404309
push str._c___del
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [ebp - 0x104]
push edx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str._______nul
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x244], 0x3c
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], str.Open
lea edx, [ebp - 0x348]
mov dword [ebp - 0x234], edx
lea eax, [ebp - 0x208]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x240], 0x40
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea ecx, [ebp - 0x244]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4042eb
push 0x40
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 1
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
push 0
lea ecx, [ebp - 0x104]
push ecx
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov eax, 1
jmp 0x40430b
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
mov esp, ebp
pop ebp
ret