joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40228d
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00402099
mov esi, dword [ebp + 0xc]
push dword [esi]
call fcn.00402099
push dword [esi + 0xc]
call fcn.00402099
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.00405b23
lea eax, [ebp - 0x10c]
push eax
call fcn.00405818
add esp, 0x18
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x415a40
push 1
push ebx
push 0x415a50
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jl 0x4023ed
mov eax, dword [ebp - 4]
push dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
test byte [esi + 4], 2
je 0x402318
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test byte [esi + 4], 1
je 0x40232a
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
test byte [esi + 4], 4
je 0x40233f
push dword [esi + 0x14]
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
test byte [esi + 4], 8
je 0x402351
mov eax, dword [ebp - 4]
push dword [esi + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test byte [esi + 4], 0x20
je 0x402363
mov eax, dword [ebp - 4]
push dword [esi + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
test byte [esi + 4], 0x10
je 0x402377
mov eax, dword [ebp - 4]
mov dx, word [esi + 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x415a60
mov ecx, dword [eax]
push eax
call dword [ecx]
mov edi, eax
cmp edi, ebx
jl 0x4023e4
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x312]
mov word [ebp - 0x314], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x314]
push 0x104
push eax
push dword [ebp + 8]
call fcn.0040b7d0
pop ecx
push eax
push dword [ebp + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x314]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov edi, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x403f49
Capabilities:
Get common file path

Disassembly:
push 0x41ddb0
push 0x419b14
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp fcn.00402099

Function at 0x403f65
Capabilities:
Get common file path

Disassembly:
push 0x41ddb0
push 0x419b34
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp fcn.00402099
Function at 0x405035
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi], ebx
jne 0x405059
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x405052
mov byte [eax], 1
xor eax, eax
jmp 0x405117
push edi
mov edi, dword [ebp + 0x14]
cmp edi, ebx
mov dword [ebp - 4], ebx
je 0x405066
mov byte [edi], bl
cmp dword [ebp + 0x10], ebx
jne 0x40506e
push ebx
jmp 0x405076
cmp dword [ebp + 0x10], 1
jne 0x405080
push 2
push ebx
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40509f
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x405113
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x405113
cmp eax, 0x26
je 0x405113
cmp edi, ebx
je 0x4050b4
mov byte [edi], bl
cmp byte [esi + 0x108], bl
je 0x405113
lea eax, [ebp - 0x450]
push 0x419d48
push eax
call fcn.0040b270
add esi, 4
lea eax, [ebp - 0x450]
push esi
push eax
call fcn.0040b280
lea eax, [ebp - 0x450]
push 0x419d30
push eax
call fcn.0040b280
lea eax, [ebp - 0x68]
push 0x419d0c
push eax
call fcn.0040b270
add esp, 0x20
lea eax, [ebp - 0x68]
push 0x40
push eax
lea eax, [ebp - 0x450]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40511d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov eax, dword [esi]
cmp eax, ebx
je 0x4051d0
cmp dword [ebp + 0x10], ebx
jne 0x40513f
push ebx
jmp 0x405147
cmp dword [ebp + 0x10], 1
jne 0x405150
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push ebx
push eax
push edi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405171
cmp dword [ebp + 0x10], edi
jne 0x405171
mov al, 1
jmp 0x4051d2
cmp byte [esi + 0x108], bl
je 0x4051d0
lea eax, [ebp - 0x44c]
push 0x419d60
push eax
call fcn.0040b270
add esi, 4
lea eax, [ebp - 0x44c]
push esi
push eax
call fcn.0040b280
lea eax, [ebp - 0x44c]
push 0x419d30
push eax
call fcn.0040b280
lea eax, [ebp - 0x64]
push 0x419d1c
push eax
call fcn.0040b270
add esp, 0x20
lea eax, [ebp - 0x64]
push 0x40
push eax
lea eax, [ebp - 0x44c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4051f6
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
test ebx, ebx
je 0x40520a
and byte [ebx], 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x405232
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x405232
test ebx, ebx
je 0x40524b
mov byte [ebx], 1
jmp 0x40524b
push 1
push 0
push 0
push dword [ebp + 0xc]
call fcn.0040bcf0
mov esi, eax
xor eax, eax
add esi, dword [ebp + 8]
mov edi, edx
adc edi, eax
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4053cb
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push esi
mov esi, ecx
push edi
push 0x140
lea edi, [esi + 4]
push 0
push edi
call fcn.0040b360
mov eax, dword [esi]
add esp, 0xc
test eax, eax
push edi
jne 0x405405
lea eax, [esi + 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x405410
and dword [esi], 0
xor al, al
pop edi
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x405400
lea edi, [esi + 0x30]
push edi
call fcn.0040b7d0
pop ecx
test eax, eax
je 0x405400
push 0x419d7c
push edi
call fcn.0040b850
pop ecx
test eax, eax
pop ecx
je 0x405440
push 0x419d78
push edi
call fcn.0040b850
pop ecx
test eax, eax
pop ecx
jne 0x40544d
mov ecx, esi
call fcn.004053cb
test al, al
jne 0x40541e
jmp 0x405400
mov al, 1
jmp 0x405402

Function at 0x405818
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0040b270
lea eax, [ebp - 0x104]
push eax
call fcn.0040b7d0
add esp, 0xc
cmp byte [ebp + eax - 0x105], 0x5c
jne 0x40585e
lea eax, [ebp - 0x104]
push eax
call fcn.0040b7d0
and byte [ebp + eax - 0x105], 0
pop ecx
push esi
push edi
push 2
lea eax, [ebp - 0x104]
push 0x419d88
push eax
lea esi, [ebp - 0x104]
call fcn.0040bf00
add esp, 0xc
test eax, eax
jne 0x405896
lea eax, [ebp - 0x102]
push 0x5c
push eax
call fcn.0040be40
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40590d
inc esi
push 0x5c
push esi
call fcn.0040be40
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40590d
inc esi
je 0x40590d
cmp byte [esi], 0
je 0x40590d
inc esi
push 0x5c
push esi
call fcn.0040be40
mov esi, eax
pop ecx
test esi, esi
pop ecx
lea eax, [ebp - 0x104]
je 0x4058eb
mov edi, esi
sub edi, eax
lea eax, [ebp - 0x104]
push edi
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0040bd30
add esp, 0xc
and byte [ebp + edi - 0x208], 0
jmp 0x4058fa
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.0040b270
pop ecx
pop ecx
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test esi, esi
jne 0x4058aa
pop edi
pop esi
leave
ret
Function at 0x405981
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x41457b
call fcn.0040b7a8
sub esp, 0x450
push dword [ebp + 8]
call fcn.0040b7d0
cmp eax, 3
pop ecx
jbe 0x405a11
push dword [ebp + 8]
lea ecx, [ebp - 0x45c]
push 0x419d8c
call fcn.00405351
and dword [ebp - 4], 0
jmp 0x4059f3
call fcn.0040547a
test al, al
lea ecx, [ebp - 0x45c]
je 0x4059e7
call fcn.00405451
push eax
call fcn.00405981
pop ecx
lea ecx, [ebp - 0x45c]
call fcn.00405451
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4059f3
call fcn.00405451
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x45c]
call fcn.004053cb
test al, al
lea ecx, [ebp - 0x45c]
jne 0x4059b8
or dword [ebp - 4], 0xffffffff
call fcn.004053b6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x406208
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
mov ebx, 0x419dac
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push ebx
call edi
push eax
call fcn.0040b9a0
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x40623c
push 0x419da0
call edi
push eax
call fcn.0040b9a0
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x40625d
push ebx
call fcn.0040b7d0
add esi, eax
push esi
push 0x41dca8
call fcn.0040b270
push esi
push 0x41da98
call fcn.0040b270
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x406e9f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x718
push esi
mov esi, dword [ebp + 8]
push edi
push 0x41d408
push 0x41ddb0
mov dword [0x41deb4], esi
call fcn.0040b270
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
pop ecx
pop ecx
push 0x419ea8
call edi
push eax
call fcn.0040b9a0
pop ecx
test eax, eax
pop ecx
je 0x406ef1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0040b13f
jmp 0x40700d
mov esi, 0x419e9c
push esi
call edi
push eax
call fcn.0040b9a0
pop ecx
test eax, eax
pop ecx
je 0x406fb2
call edi
push eax
lea eax, [ebp - 0x718]
push eax
call fcn.0040b270
lea eax, [ebp - 0x718]
push esi
push eax
call fcn.0040b9a0
push esi
mov edi, eax
call fcn.0040b7d0
lea esi, [edi + eax + 1]
push 0x22
push esi
call fcn.0040be40
mov edi, eax
lea eax, [ebp - 0x22c]
push esi
push eax
and byte [edi], 0
call fcn.0040b270
mov esi, 0x419e90
inc edi
push esi
push edi
call fcn.0040b9a0
push esi
mov edi, eax
call fcn.0040b7d0
lea esi, [edi + eax + 1]
push 0x22
push esi
call fcn.0040be40
and byte [eax], 0
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0040b270
add esp, 0x40
lea eax, [ebp - 0x128]
lea ecx, [ebp - 0x24]
push 1
push eax
call fcn.0040155d
lea eax, [ebp - 0x330]
push 1
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401aef
lea ecx, [ebp - 0x24]
call fcn.004017ff
jmp 0x40700b
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp + 0xb]
lea ecx, [ebp - 8]
push eax
call fcn.00403275
cmp byte [ebp + 0xb], 0
lea eax, [ebp - 8]
mov dword [0x41deb8], eax
jne 0x407003
call fcn.00403860
test al, al
jne 0x407003
push 0
push 0x406261
push 0
push 0x66
push dword [0x41deb4]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
test eax, eax
je 0x406ffd
call fcn.0040437c
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 8]
call fcn.004033f5
xor eax, eax
pop edi
pop esi
leave
ret 0x10

Function at 0x40703e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x40704d
mov ecx, 0x41dfe0
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x407059
mov eax, dword [0x41e0e4]
lea edx, [ebp + 0x10]
push edx
lea edx, [ebp + 0x14]
push edx
push 0
push 0x20006
push 0
push 0x419eb4
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40709c
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
ret
Function at 0x40709e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp + 0x18], eax
cmp eax, edi
jne 0x4070b8
mov dword [ebp + 0x18], 0x41dfe0
mov ebx, dword [ebp + 0x14]
cmp ebx, edi
jne 0x4070c5
mov ebx, dword [0x41e0e4]
mov esi, 0x41d408
push esi
push dword [ebp + 8]
call fcn.0040b270
pop ecx
lea eax, [ebp - 4]
pop ecx
push eax
lea eax, [ebp + 0x14]
push eax
push edi
push 1
push edi
push 0x419ec0
push edi
push dword [ebp + 0x18]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407122
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407119
push esi
push dword [ebp + 8]
call fcn.0040b270
pop ecx
pop ecx
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x407127
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x407136
mov ecx, 0x41dfe0
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x407142
mov eax, dword [0x41e0e4]
lea edx, [ebp + 0x10]
push edx
lea edx, [ebp + 0x14]
push edx
push 0
push 0x20006
push 0
push 0x419ec0
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40718d
push dword [ebp + 8]
call fcn.0040b7d0
pop ecx
inc eax
push eax
push dword [ebp + 8]
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
ret

Function at 0x40718f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x40719e
mov ecx, 0x41dfe0
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x4071aa
mov eax, dword [0x41e0e4]
lea edx, [ebp + 0x14]
push edx
lea edx, [ebp + 0x18]
push edx
push 0
push 0x20006
push 0
push 0x419ec8
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4071ec
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 3
push eax
push dword [ebp + 8]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
ret

Function at 0x4071ee
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407221
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
ret
Function at 0x407223
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x407232
mov ecx, 0x41dfe0
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40723e
mov eax, dword [0x41e0e4]
lea edx, [ebp + 0x10]
push edx
push 0xf003f
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40726a
push dword [ebp + 8]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
ret

Function at 0x407516
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, ecx
push 0x41d408
push esi
call fcn.0040b270
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x407558
lea eax, [ebp - 0x104]
push 0x419ee0
push eax
call fcn.0040b270
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
call fcn.00405a1d
pop ecx
lea eax, [ebp - 0x104]
push esi
push 0
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x407587
push esi
call fcn.0040b7d0
test eax, eax
pop ecx
jne 0x4075ab
push 0x270f
call fcn.00407013
push eax
lea eax, [ebp - 0x104]
push dword [ebp + 8]
push eax
push 0x419ed4
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
mov ecx, esi
call fcn.004075d1
test al, al
jne 0x4075ca
lea eax, [ebp - 0x104]
push eax
call fcn.00405818
pop ecx
mov ecx, esi
call fcn.004075d1
mov eax, esi
pop esi
leave
ret 4

Function at 0x407616
Capabilities:
Delete file

Disassembly:
mov eax, 0x41465a
call fcn.0040b7a8
push ecx
push esi
push edi
push 0x104
mov esi, ecx
call fcn.0040b3c3
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor eax, eax
cmp ecx, eax
mov dword [ebp - 4], eax
je 0x407646
push dword [ebp + 8]
call fcn.00407516
or dword [ebp - 4], 0xffffffff
mov ecx, eax
mov dword [esi], eax
call fcn.00407613
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esi]
lea edi, [esi + 4]
call fcn.00407613
push eax
push edi
call fcn.0040b270
push edi
call fcn.00405a1d
push edi
call fcn.00405818
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
leave
ret 4
Function at 0x4076dc
Capabilities:
Create thread

Disassembly:
mov eax, 0x414678
call fcn.0040b7a8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push 4
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
call fcn.0040b3c3
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
xor ebx, ebx
cmp ecx, ebx
mov dword [ebp - 4], ebx
je 0x407715
push ebx
push ebx
call fcn.00404ef6
jmp 0x407717
xor eax, eax
or dword [ebp - 4], 0xffffffff
push 4
mov dword [esi + 8], eax
call fcn.0040b3c3
pop ecx
mov ecx, eax
mov dword [ebp + 8], ecx
cmp ecx, ebx
mov dword [ebp - 4], 1
je 0x40773f
push ebx
push ebx
call fcn.00404ef6
jmp 0x407741
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
cmp byte [ebp + 0x10], bl
je 0x407751
push 4
pop eax
lea ecx, [ebp + 0xc]
push ecx
push eax
push esi
push 0x4076bc
push ebx
push ebx
call fcn.0040c019
add esp, 0x18
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x407775
mov ecx, dword [esi + 8]
call fcn.00404f2b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40833e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7e4
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x408419
xor ebx, ebx
cmp dword [esi + 0x24], ebx
je 0x408419
mov ecx, dword [esi + 0x50]
push 0x41d408
mov edi, dword [ecx + eax*4]
lea eax, [ebp - 0x7e4]
push eax
call fcn.0040b270
mov eax, dword [edi + 0x1c]
pop ecx
cmp eax, 5
pop ecx
jl 0x4083fe
cmp eax, 6
jle 0x4083ce
cmp eax, 7
jne 0x4083fe
push ebx
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push 0x147
push dword [esi + 0x24]
call ebx
lea ecx, [ebp - 0x7e4]
push ecx
push eax
push 0x148
push dword [esi + 0x24]
call ebx
lea eax, [ebp - 0x7e4]
lea ecx, [edi + 8]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00407379
lea ecx, [ebp - 0x14]
jmp 0x4083f9
lea eax, [ebp - 0x7e4]
push 0x7d0
push eax
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x7e4]
lea ecx, [edi + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00407379
lea ecx, [ebp - 0xc]
call fcn.004072e3
push dword [esi + 0x24]
mov ecx, esi
call fcn.0040830a
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [esi + 0x24], 0
or dword [esi + 0x20], 0xffffffff
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
je 0x408479
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x408479
mov edx, dword [esi + 0x50]
mov dword [ebp - 4], eax
push 0x7d0
mov edi, dword [edx + eax*4]
lea eax, [ebp - 0x7e4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x7e4]
mov ecx, edi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00407379
lea ecx, [ebp - 0xc]
call fcn.004072e3
push dword [esi + 0x2c]
mov ecx, esi
call fcn.0040830a
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_DestroyWindow]
and dword [esi + 0x2c], 0
or dword [esi + 0x28], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408762
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push 0x44
xor ebx, ebx
pop esi
lea eax, [ebp - 0x54]
push esi
push ebx
push eax
call fcn.0040b360
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], esi
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
jne 0x4087c2
cmp byte [ebp + 0xc], bl
je 0x4087ae
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
mov al, 1
jmp 0x4087c4
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x409953
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, esi
push eax
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 4]
push ecx
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0xc]
push eax
push 0x41a210
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x1c]
push 0x10
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push esi
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
leave
ret

Function at 0x40a1be
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x4147ae
call fcn.0040b7a8
mov al, byte [0x41dfc4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x419a94
mov dword [0x41e0ec], 0x41d458
mov dword [0x41e0f0], 0x41d448
mov byte [0x41e0f4], al
call esi
push eax
call fcn.0040b9a0
pop ecx
test eax, eax
pop ecx
jne 0x40a22f
push 0x419a88
call esi
push eax
call fcn.0040b9a0
pop ecx
test eax, eax
pop ecx
jne 0x40a22f
push eax
push 0x409c18
push dword [ebp + 8]
push 0xca
push dword [0x41deb4]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
jmp 0x40a2a9
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
xor esi, esi
push 0x7f02
push esi
call edi
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
push 0x14
call fcn.0040b3c3
pop ecx
mov dword [ebp + 8], eax
cmp eax, esi
mov dword [ebp - 4], esi
je 0x40a270
push esi
push 0x41e0ec
push 0x4099cc
mov ecx, eax
call fcn.004076dc
mov esi, eax
or dword [ebp - 4], 0xffffffff
jmp 0x40a27e
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, esi
call fcn.004077f6
test al, al
je 0x40a276
test esi, esi
je 0x40a29b
mov ecx, esi
call fcn.00407787
push esi
call fcn.0040b3b8
pop ecx
push 0x7f00
push 0
call edi
push eax
call ebx
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret