joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f81
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410340
push 0x409a10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x1c], ebx
push dword [ebp + 8]
call fcn.004026ae
pop ecx
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, ebx
jne 0x402fce
xor eax, eax
jmp 0x40311e
push dword [ebp + 0xc]
push esi
call fcn.004032b8
pop ecx
pop ecx
test eax, eax
je 0x4030d6
push dword [esi + 0x1c]
push 0x40
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
call edi
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 0x18]
add eax, 0x100
push eax
push 0x40
call edi
mov ebx, eax
mov dword [ebp - 0x38], ebx
push 0x30d40
push 0x40
call edi
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x28], 0
je 0x4030d6
test ebx, ebx
je 0x4030d6
test eax, eax
je 0x4030d6
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x18]
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
pop edi
mov dword [esi + 8], edi
mov al, byte [esi + 0x14]
test al, al
jne 0x40306a
push dword [esi + 0x1c]
push ebx
push dword [ebp - 0x2c]
call fcn.004096d0
add esp, 0xc
jmp 0x4030b1
and dword [ebp - 4], 0
push dword [ebp - 0x34]
push dword [esi + 0x1c]
movzx eax, al
push eax
push ebx
push dword [ebp - 0x2c]
call fcn.004019c2
add esp, 0x14
mov dword [ebp - 0x30], eax
or dword [ebp - 4], 0xffffffff
jmp 0x4030a3
test eax, eax
je 0x4030b1
mov dword [0x415b48], 6
push dword [esi + 0x1c]
push dword [ebp - 0x2c]
call fcn.004020af
pop ecx
pop ecx
cmp ax, word [esi + 0x130]
je 0x4030d3
mov dword [0x415b48], 6
jmp 0x4030d6
mov dword [ebp - 0x1c], edi
xor edi, edi
cmp ebx, edi
je 0x4030e3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x34], edi
je 0x4030f1
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x2c], edi
je 0x403110
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x1c], edi
jne 0x403110
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x28], edi
cmp esi, edi
je 0x40311b
push esi
call fcn.00402a3c
pop ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40312d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410350
push 0x409a10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x1c], ebx
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call fcn.004032b8
pop ecx
pop ecx
test eax, eax
je 0x40326c
push dword [esi + 0x1c]
push 0x40
mov edi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
call edi
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x18]
add eax, 0x100
push eax
push 0x40
call edi
mov ebx, eax
mov dword [ebp - 0x34], ebx
push 0x30d40
push 0x40
call edi
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x24], 0
je 0x40326c
test ebx, ebx
je 0x40326c
test eax, eax
je 0x40326c
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x28], eax
and dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x18]
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
pop edi
mov dword [esi + 8], edi
mov al, byte [esi + 0x14]
test al, al
jne 0x403200
push dword [esi + 0x1c]
push ebx
push dword [ebp - 0x28]
call fcn.004096d0
add esp, 0xc
jmp 0x403247
and dword [ebp - 4], 0
push dword [ebp - 0x30]
push dword [esi + 0x1c]
movzx eax, al
push eax
push ebx
push dword [ebp - 0x28]
call fcn.004019c2
add esp, 0x14
mov dword [ebp - 0x2c], eax
or dword [ebp - 4], 0xffffffff
jmp 0x403239
test eax, eax
je 0x403247
mov dword [0x415b48], 6
push dword [esi + 0x1c]
push dword [ebp - 0x28]
call fcn.004020af
pop ecx
pop ecx
cmp ax, word [esi + 0x130]
je 0x403269
mov dword [0x415b48], 6
jmp 0x40326c
mov dword [ebp - 0x1c], edi
xor esi, esi
cmp ebx, esi
je 0x403279
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x30], esi
je 0x403287
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [ebp - 0x28], esi
je 0x4032a6
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [ebp - 0x1c], esi
jne 0x4032a6
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403486
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x134]
mov ecx, dword [eax + 0x3514]
push edi
push 0x42
pop edi
push 8
pop ebx
cmp ecx, ebx
ja case.default.0x4034af
jmp dword [ecx*4 + 0x40367c]
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Program_Files_
lea eax, [ebp - 0x101]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0x134]
test byte [eax + 0x3400], bl
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x403642
jmp 0x403619
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x403605
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x403605
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x104]
push eax
call fcn.0040878e
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
mov dword [esp], str.eptemp.___
push eax
jmp 0x403633
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
and byte [ebp - 0x101], 0
jmp 0x403605
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
call fcn.00408752
and byte [eax], 0
mov eax, dword [esi + 0x134]
test byte [eax + 0x3400], bl
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
je 0x403642
lea eax, [ebp - 0x104]
push eax
call fcn.0040878e
lea eax, [ebp - 0x104]
mov dword [esp], str.eptemp.___
push eax
call ebx
jmp 0x403642
add eax, 0x42
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp case.default.0x4034af
lea eax, [ebp - 0x104]
push eax
push 0
jmp 0x4035fb
lea eax, [ebp - 0x104]
push eax
push 5
push 0
call fcn.00408cb6
add esp, 0xc
mov eax, dword [esi + 0x134]
test byte [eax + 0x3400], bl
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x403635
lea eax, [ebp - 0x104]
push eax
call fcn.0040878e
lea eax, [ebp - 0x104]
mov dword [esp], str.eptemp.___
push eax
call ebx
lea eax, [ebp - 0x104]
push eax
call fcn.0040878e
pop ecx
mov eax, dword [esi + 0x134]
add eax, edi
push eax
lea eax, [ebp - 0x104]
push eax
call ebx
lea eax, [ebp - 0x104]
push eax
call fcn.0040878e
pop ecx
lea eax, [ebp - 0x104]
push eax
mov eax, dword [esi + 0x134]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4036a0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.00408836
test eax, eax
pop ecx
je 0x4036c0
push 1
pop eax
jmp 0x4037d5
push esi
push edi
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [ebx + 1], 0x3a
lea eax, [ebx + 1]
mov edi, ebx
lea esi, [ebp - 0x104]
jne 0x403712
mov cl, byte [ebx]
mov edi, eax
mov al, byte [edi]
inc edi
cmp byte [edi], 0x5c
mov byte [ebp - 0x104], cl
mov byte [ebp - 0x103], al
lea esi, [ebp - 0x102]
jne 0x403742
mov byte [ebp - 0x102], 0x5c
lea esi, [ebp - 0x101]
jmp 0x40372f
cmp byte [ebx], 0x5c
jne 0x403726
mov byte [ebp - 0x104], 0x5c
lea esi, [ebp - 0x103]
mov edi, eax
cmp byte [edi], 0x5c
jne 0x403742
mov byte [esi], 0x5c
inc esi
inc edi
cmp byte [edi], 0x5c
jne 0x403742
push edi
push ebx
call fcn.0040968b
test eax, eax
pop ecx
pop ecx
je 0x403748
mov al, byte [edi]
test al, al
jne 0x4037bc
and byte [esi], 0
push 0
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x104]
push eax
call esi
test eax, eax
je 0x4037c3
cmp dword [ebp + 0xc], 0
je 0x4037a6
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x104]
push eax
call fcn.0040878e
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00403e15
add esp, 0xc
cmp byte [edi], 0
je 0x4037c7
inc edi
cmp byte [edi], 0
je 0x4037c7
lea esi, [ebp - 0x104]
jmp 0x403730
mov byte [esi], al
jmp 0x40372e
and dword [ebp + 0xc], 0
lea eax, [ebp - 0x208]
push eax
call esi
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e73
Capabilities:
Delete directory
Delete file
Set current directory

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [esp + 0x110]
mov eax, dword [ebx + 0x134]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
add eax, 0x42
push eax
call esi
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00403f2c
test eax, eax
pop ecx
pop ecx
je 0x403f21
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + eax + 0x13]
mov dword [esp + 0x10], eax
xor ebp, ebp
mov eax, dword [esp + 0x10]
cmp byte [eax], 0x5c
jne 0x403ee7
push 0x412350
call esi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edi, eax
mov eax, dword [ebx + 0x134]
add eax, 0x42
push eax
call esi
jmp 0x403f03
lea eax, [esp + 0x14]
push eax
call fcn.00408b7d
test eax, eax
pop ecx
je 0x403e96
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, eax
test edi, edi
jne 0x403e96
push edi
call fcn.004043ec
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0x40
jl 0x403ebc
jmp 0x403e96
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x40443f
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push ebp
mov dword [esp + 0x24], esi
call ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 4
jbe 0x404499
push esi
push esi
push esi
push 2
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [esp + 0x10], eax
je 0x404499
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
jne 0x40449d
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4044f7
sub edi, 4
mov dword [esp + 0x1c], esi
je 0x4044d4
lea ecx, [eax + 2]
cmp byte [ecx - 2], 0x6c
jne 0x4044c0
cmp byte [ecx - 1], 0x73
jne 0x4044c0
cmp byte [ecx], 0x66
jne 0x4044c0
cmp byte [ecx + 1], 0x78
je 0x4044cc
dec edi
inc dword [esp + 0x1c]
inc ecx
cmp edi, esi
jne 0x4044a9
jmp 0x4044d4
mov dword [esp + 0x14], 1
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push esi
push esi
push ebp
call ebx
mov eax, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x404baf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push edi
xor edi, edi
push edi
push edi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp + 0xc]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
cmp ebx, edi
jne 0x404be0
xor eax, eax
jmp 0x404c9f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x404c94
push dword [ebp - 4]
push ebx
call fcn.004020af
pop ecx
pop ecx
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x404c94
mov eax, dword [ebp - 0x24]
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
lea eax, [ebp - 0x34]
push eax
mov word [ebp - 0x24], di
call fcn.004020c2
add esp, 0xc
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x404c94
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x404c63
cmp dword [ebp + 0x10], edi
je 0x404c63
push dword [ebp - 8]
dec eax
jmp 0x404c66
push dword [ebp - 8]
push eax
push ebx
call fcn.004020c2
add esp, 0xc
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jne 0x404c83
push edi
lea ecx, [ebp - 4]
push ecx
push eax
jmp 0x404c46
mov ax, word [ebp - 8]
cmp ax, word [ebp - 0x10]
jne 0x404c94
mov dword [ebp - 0xc], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4053fb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405426
xor eax, eax
jmp 0x405461
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
push edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x40736f
Capabilities:
Delete file
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
cmp dword [ebp + 0xc], 1
push esi
push edi
jne 0x407478
push ebx
push 0x416032
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x10]
push eax
push dword [0x415b5c]
call fcn.0040336f
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
jne 0x4073d3
lea eax, [ebp - 0x110]
push 0x412e44
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
pop ecx
pop ecx
push 0x30
push dword [0x415b64]
lea eax, [ebp - 0x110]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
test byte [0x4193f0], 0x10
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
je 0x4073f5
push 0x64
pop esi
push dword [ebp + 8]
call fcn.00405a6f
pop ecx
push 0x64
call edi
dec esi
jne 0x4073e5
test ebx, ebx
pop ebx
je 0x407478
test byte [0x4193f0], 8
je 0x407478
push str..exe
mov esi, 0x41623a
push esi
call fcn.00408810
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x407478
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 0xc], 0x103
je 0x40745b
test byte [0x4193f0], 0x10
je 0x407478
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40746a
push dword [ebp + 8]
call fcn.00405a6f
pop ecx
push 0x64
call edi
jmp 0x40741f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
leave
ret

Function at 0x407c7a
Capabilities:
Create process on windows

Disassembly:
cmp byte [0x41705e], 0
push esi
push edi
je 0x407cd5
call fcn.00408b97
test eax, eax
je 0x407cd5
mov edi, dword [esp + 0xc]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x34
push 0x415ff0
push 0x41705e
push edi
call esi
cmp eax, 6
jne 0x407cd5
push 1
push 0
push 0
push 0x417162
push 0
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x407cd5
push 0x30
push dword [0x415b64]
push 0x4120a4
push edi
call esi
pop edi
pop esi
ret

Function at 0x407e65
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp byte [0x416136], 0
je 0x407f0c
push ebx
push esi
push edi
push 0x105
lea eax, [ebp - 0x108]
push eax
push 0x3e8
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x108]
push eax
call fcn.0040878e
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 1
pop edi
mov dword [esp], 0x416136
call esi
mov ebx, eax
lea eax, [ebp - 0x108]
push eax
call esi
cmp eax, ebx
jl 0x407ef6
lea eax, [ebp - 0x108]
push eax
call esi
mov edi, 0x416136
push edi
lea ebx, [ebp + eax - 0x108]
call esi
sub ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edi, eax
neg edi
sbb edi, edi
neg edi
push edi
push 4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4082a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
and byte [esi], 0
push edi
push 1
pop eax
mov dword [ebp - 4], eax
mov edi, eax
lea eax, [ebp + 0x14]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4082d3
xor eax, eax
jmp 0x4082fb
lea eax, [ebp + 0x18]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4082f0
xor edi, edi
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x4082ff
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 1
pop edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
xor esi, esi
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x14]
push edi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x408347
xor edi, edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x408494
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push ebx
push esi
push edi
call fcn.004086ef
test eax, eax
jne 0x4084b1
push 1
pop eax
jmp 0x40868a
push str.NETAPI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x408688
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NetWkstaUserGetInfo
push eax
call esi
push str.NetUserGetInfo
push dword [ebp - 0xc]
mov edi, eax
call esi
push str.NetApiBufferFree
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call esi
push str.NetUserGetLocalGroups
push dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
call esi
cmp edi, ebx
mov dword [ebp - 0x18], eax
je 0x40867f
cmp dword [ebp - 8], ebx
je 0x40867f
cmp dword [ebp - 0x14], ebx
je 0x40867f
cmp eax, ebx
je 0x40867f
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x128]
push eax
mov byte [ebp - 1], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], 0xff
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x408575
lea eax, [ebp - 0x1c]
push eax
push 1
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040868f
pop ecx
pop ecx
push eax
push ebx
call dword [ebp - 8]
test eax, eax
jne 0x408575
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xc], 2
je 0x40866c
lea eax, [ebp - 0x10]
push eax
push 1
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
call edi
test eax, eax
jne 0x40863e
mov eax, dword [ebp - 0x10]
push dword [eax + 4]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x412350
lea eax, [ebp - 0x128]
push eax
call esi
mov eax, dword [ebp - 0x10]
push dword [eax]
lea eax, [ebp - 0x128]
push eax
call esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
push 1
push ebx
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.0040868f
pop ecx
pop ecx
push eax
push ebx
call dword [ebp - 0x18]
test eax, eax
jne 0x408633
mov esi, dword [ebp - 8]
xor edi, edi
cmp dword [ebp - 0x20], ebx
jbe 0x40862d
cmp esi, ebx
je 0x40861e
push str.Administrators
lea eax, [ebp - 0x128]
push eax
push dword [esi]
call fcn.004086bb
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x408629
inc edi
add esi, 4
cmp edi, dword [ebp - 0x20]
jb 0x4085fa
jmp 0x40862d
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [ebp - 0x14]
cmp byte [ebp - 1], bl
jne 0x408670
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x20006
push ebx
push ebx
push ebx
push str.System
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408670
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
movzx eax, byte [ebp - 1]
jmp 0x40868a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408b7d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408b94
test al, 0x10
jne 0x408b94
push 1
pop eax
ret
xor eax, eax
ret

Function at 0x408be1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
push edi
push str..exe
push dword [ebp + 8]
call fcn.00408810
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x408c2d
push 1
pop ebx
push ebx
xor esi, esi
push esi
push esi
push dword [ebp + 8]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x408caf
xor ebx, ebx
jmp 0x408caf
push dword [ebp + 8]
lea eax, [ebp - 0x157]
push eax
mov byte [ebp - 0x158], 0x22
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x413034
lea eax, [ebp - 0x158]
push eax
call edi
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x408c6b
push dword [ebp + 0xc]
lea eax, [ebp - 0x158]
push eax
call edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00409240
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
push esi
lea eax, [ebp - 0x158]
push eax
push esi
mov dword [ebp - 0x54], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, dword [ebp + 0x10]
cmp edi, esi
mov ebx, eax
je 0x408caf
lea esi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret