joyce8/EMBER2024-capa huggingface dataset:
Function at 0x545090
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x545133
test eax, eax
jbe 0x545133
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x545133
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x5450de
xor esi, esi
jmp 0x5450e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x54510f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004d2810
add esi, eax
push esi
mov ebx, esi
call fcn.004d2810
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x5450f0
pop ebp
test edi, edi
pop edi
jne 0x545133
test ebx, ebx
je 0x545133
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0058dc10
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x545255
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x54536d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x54536d
mov eax, dword [esi + 0x3c]
push eax
call fcn.005acc8b
mov esi, eax
test esi, esi
je 0x54536d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x54536d
mov ecx, esi
call fcn.005451e0
cmp edi, eax
jge 0x54536d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x5452f3
mov dword [esp + 0x34], 1
jmp 0x54534e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x54536d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00544790
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x54d210
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
xor esi, esi
call edi
test ax, ax
je 0x54d228
mov esi, 2
push 0x11
call edi
test ax, ax
je 0x54d234
or esi, 1
push 0x12
call edi
test ax, ax
je 0x54d240
or esi, 4
mov eax, esi
pop edi
pop esi
ret
Function at 0x56c930
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5bdf98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.00586272
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.005ab282
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.005a8320
mov eax, dword [eax]
push 0x726aa4
push eax
call fcn.0058d234
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.005ab214
test bl, bl
je 0x56c9b0
push 0x726aa4
lea ecx, [esp + 0xc]
call fcn.005ab5f0
push 0x726aa0
lea ecx, [esp + 0xc]
call fcn.005ab5f0
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.00586335
test eax, eax
je 0x56ca74
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.00586555
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x56ca30
lea ecx, [esp + 0x18]
call fcn.0058651c
test eax, eax
jne 0x56ca30
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00586624
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.0056c930
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x56ca65
lea ecx, [esp + 0x18]
call fcn.0058651c
test eax, eax
jne 0x56ca6a
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x56ca6a
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.00586624
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.005ab214
test edi, edi
jne 0x56c9e0
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.005862eb
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.005ab214
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.005862af
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x56cb70
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5bdfc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x72c568]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.005ab39d
push str..
lea ecx, [esp + 0x10]
call fcn.005ab5f0
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x56cc13
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.005ab214
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.005ab214
xor eax, eax
jmp 0x56cd58
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x726ac4
push edx
call fcn.0058d234
add esp, 8
test eax, eax
je 0x56cd09
lea eax, [esp + 0x48]
push 0x726ac0
push eax
call fcn.0058d234
add esp, 8
test eax, eax
je 0x56cd09
test ebp, ebp
jne 0x56cc75
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.0058d2e3
add esp, 8
test eax, eax
je 0x56cd09
push esi
lea ecx, [esp + 0x14]
call fcn.005ab39d
push 0x5c
lea ecx, [esp + 0x14]
call fcn.005ab617
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.005ab5f0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x56ccb5
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x56ccd7
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.0056cb70
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x56cd09
test edi, edi
je 0x56ccfe
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.0058d2e3
add esp, 8
test eax, eax
jne 0x56ccfe
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.0056cd80
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x56cc23
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.005ab214
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.005ab214
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x56cd80
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5bdfdb
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.0058daf0
mov eax, dword [0x72c568]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.005ab39d
push 0x5c
lea ecx, [esp + 8]
call fcn.005ab617
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.005ab5f0
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x56ce26
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.005ab214
xor eax, eax
jmp 0x56cea3
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x56ce81
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x56ce73
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x56ce4d
jmp 0x56ce81
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.005ab214
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x56ff40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x77d230]
xor edx, edx
cmp eax, edx
jne 0x56ff66
xor eax, eax
mov byte [eax + 0x77d130], al
inc eax
cmp eax, 0x100
jl 0x56ff4e
mov dword [0x77d230], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x77d130
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x56fff7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x56ffca
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x56ff98
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x570000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x570053
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x57003a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5769e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5be1be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00577300
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x626aec
call fcn.005aaf55
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x576a73
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005aaf55
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x576a6c
push 0
mov ecx, eax
call fcn.0056db90
mov dword [esi + 0xc], eax
jmp 0x576a75
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x576a75
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x5ad62e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5ad666
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005ab6bb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005ab693
jmp 0x5ad672
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5aed1f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5aed61
call fcn.005b4c00
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5aed61
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5aed58
xor eax, eax
jmp 0x5aed69
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005aed6f
pop edi
pop esi
pop ebx
ret 4
Function at 0x5b5130
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5b515e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5b517c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005b5096
jmp 0x5b517c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5b517c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005b5096
test edi, edi
mov eax, edi
jne 0x5b5166
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4014dd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401533
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401533
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401525
cmp esi, ecx
jae 0x401533
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401513
cmp esi, ecx
jae 0x401533
cmp word [esi], 0
je 0x401533
mov eax, esi
jmp 0x401535
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4017c6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5a3604]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x420], 0
cmp dword [edx + 0x14], 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
jb 0x4017f1
mov edx, dword [edx]
lea eax, [ebp - 0x420]
xor ebx, ebx
push eax
inc ebx
push ebx
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x401816
or eax, 0xffffffff
jmp 0x4018a3
mov dword [ebp - 0x428], ebx
lea eax, [ebp - 0x404]
mov ebx, 0x400
push ebx
push 0
push eax
call fcn.004f5300
add esp, 0xc
mov dword [ebp - 0x424], ebx
cmp dword [esi + 0x14], 8
jb 0x401841
mov esi, dword [esi]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push esi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x420]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4018a0
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x41c]
call fcn.004024f3
push eax
mov ecx, edi
call fcn.004024b3
lea ecx, [ebp - 0x41c]
call fcn.0040258a
xor eax, eax
jmp 0x4018a3
push 0xfffffffffffffffe
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e5fe9
leave
ret

Function at 0x401920
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, eax
cmp dword [eax + 0x14], 8
jb 0x401931
mov esi, dword [eax]
cmp dword [edx + 0x14], 8
jb 0x401939
mov edx, dword [edx]
mov eax, dword [eax + 0x10]
add eax, eax
push eax
push esi
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
pop esi
sbb al, al
inc al
pop ebp
ret
Function at 0x402029
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x264
mov eax, 0x53f9d0
call fcn.004e6a52
mov ebx, ecx
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
je 0x40228d
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x40228d
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x402286
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00402414
and dword [ebp - 4], 0
push ecx
push ecx
lea ecx, [ebp - 0x25c]
call fcn.00402385
cmp eax, 0xffffffff
je 0x4020e0
mov ecx, dword [ebp - 0x25c]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
lea eax, [ebp - 0x26c]
dec ecx
push ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.004022b5
push eax
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 1
call fcn.004023ae
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 0
call fcn.0040256f
lea ecx, [ebp - 0x25c]
call fcn.0040235d
push eax
lea ecx, [ebp - 0x25c]
call fcn.004023ae
mov eax, dword [ebx + 4]
mov esi, dword [ebx]
mov dword [ebp - 0x270], eax
cmp esi, eax
je 0x40225f
xor eax, eax
lea ecx, [ebp - 0x28]
push esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.00402603
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x260]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00402414
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 3
call fcn.0040235d
push eax
lea ecx, [ebp - 0x260]
call fcn.004023ae
lea edx, [ebp - 0x260]
lea ecx, [ebp - 0x25c]
call fcn.00402293
test al, al
jne 0x4021db
lea ecx, [ebp - 0x260]
call fcn.0040256f
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4021c7
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x268], ecx
cmp eax, 0x1000
jb 0x4021be
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00401403
mov eax, dword [ebp - 0x264]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x268]
push eax
push ecx
call fcn.004e6456
pop ecx
pop ecx
add esi, 0x18
cmp esi, dword [ebp - 0x270]
jne 0x40210a
jmp 0x40225f
push 0
push dword [ebp - 0x250]
push 1
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [ebp - 0x260]
call fcn.0040256f
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40224e
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], ecx
cmp eax, 0x1000
jb 0x402245
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.00401403
mov eax, dword [ebp - 0x268]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x264]
push eax
push ecx
call fcn.004e6456
pop ecx
pop ecx
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x25c]
mov esi, eax
call fcn.0040256f
test esi, esi
jne 0x40207a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004e6a01
ret
Function at 0x403d4d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x403d5a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403d7d
cmp dword [esi + 0x14], 8
jb 0x403d6e
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x403d7d
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x403db0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5a3604]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
lea edi, [esi + 0x10]
cmp dword [edi], eax
je 0x403e7c
push ebx
mov ebx, 0x20a
mov dword [ebp - 0x230], eax
push ebx
push eax
mov dword [ebp - 0x224], eax
xorps xmm0, xmm0
mov dword [ebp - 0x216], eax
mov ecx, 0x614
lea eax, [ebp - 0x210]
movlpd qword [ebp - 0x21e], xmm0
push eax
mov word [ebp - 0x220], cx
call fcn.004f5300
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x403e1c
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00500131
mov eax, dword [edi]
add esp, 0xc
add eax, eax
cmp eax, ebx
jae 0x403e8a
xor ecx, ecx
mov word [ebp + eax - 0x210], cx
add eax, 2
cmp eax, ebx
pop ebx
jae 0x403e8a
mov word [ebp + eax - 0x210], cx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x230]
push eax
mov dword [ebp - 0x22c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb al, al
inc al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e5fe9
leave
ret
call fcn.004e65b2
int3
Function at 0x40419c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x10], esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4041c7
jl 0x4041be
test edi, edi
jne 0x4041c7
xor eax, eax
xor edx, edx
jmp 0x40428c
cmp dword [esi + 0x38], 0
je 0x4041dc
push eax
push edi
push dword [ebp + 8]
call fcn.00404786
jmp 0x40428c
mov eax, dword [esi + 0x1c]
mov ebx, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404220
mov eax, dword [esi + 0x2c]
cmp dword [eax], 0
jbe 0x404220
cmp dword [eax], edi
mov esi, edi
mov ebx, dword [ebp + 8]
cmovb esi, dword [eax]
push esi
push ecx
push ebx
call fcn.004f4b10
mov ecx, dword [esp + 0x20]
add ebx, esi
mov dword [esp + 0x1c], ebx
add esp, 0xc
mov ebx, edi
sub ebx, esi
mov eax, dword [ecx + 0x2c]
sub dword [eax], esi
mov eax, dword [ecx + 0x1c]
add dword [eax], esi
mov esi, ecx
jmp 0x404227
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x4c], 0
mov ecx, ebx
je 0x404282
mov ecx, esi
call fcn.00405103
mov edx, dword [esp + 0x10]
mov ecx, ebx
jmp 0x404262
push dword [esi + 0x4c]
push eax
push 1
push edx
call fcn.00500cff
mov edx, dword [esp + 0x20]
sub ebx, eax
add edx, eax
add esp, 0x10
mov dword [esp + 0x10], edx
mov ecx, ebx
cmp eax, 0xfff
jne 0x404295
mov eax, 0xfff
cmp ebx, eax
ja 0x40423e
test ecx, ecx
je 0x404282
push dword [esi + 0x4c]
push ebx
push 1
push edx
call fcn.00500cff
mov ecx, ebx
add esp, 0x10
sub ecx, eax
sub edi, ecx
mov edx, dword [ebp + 0x10]
mov eax, edi
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
sub edi, ebx
jmp 0x404284

Function at 0x40691e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x5a3604]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x208
lea eax, [ebp - 0x20c]
push ebx
mov edi, ecx
mov esi, edx
push 0
mov dword [ebp - 0x418], edi
push eax
mov dword [ebp - 0x418], edi
call fcn.004f5300
push ebx
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.004f5300
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [esi + 0x14], 8
jb 0x406984
mov esi, dword [esi]
lea eax, [ebp - 0x414]
push eax
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.004024f3
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e5fe9
leave
ret