joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403050
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x40eefc]
mov ecx, dword [0x40ef54]
push ebx
push esi
push edi
push eax
push 1
push str.pftw
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov edx, dword [0x40eefc]
push 0x7e
push 0x2e
push edx
call fcn.00403020
mov eax, dword [0x40eefc]
add esp, 0xc
push eax
call fcn.00401450
mov ecx, dword [0x40eefc]
add esp, 4
push 0x40c1c4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x218]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x100
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
jne 0x4030e9
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x40000
call fcn.004083b0
add esp, 4
mov ebx, eax
mov eax, dword [0x40ef68]
push 0
push eax
push esi
call fcn.00401320
mov esi, dword [ebp + 8]
add esp, 0xc
test esi, esi
je 0x403154
push str.Reading_package...
push 0x3f1
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ecx, dword [0x40ef20]
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
shr ecx, 0x12
shl ecx, 0x10
push ecx
push 0
push 0x401
push 0x3f0
push esi
call edi
push 0
push 1
push 0x404
push 0x3f0
push esi
call edi
mov eax, dword [0x40ef64]
xor esi, esi
test eax, eax
jle 0x40323f
mov edx, dword [0x40eefc]
lea eax, [esi + 1]
mov dword [ebp - 0x10], eax
push eax
push edx
lea eax, [ebp - 0x114]
push str._spftw_d.pkg
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x114]
push 0x180
push 0x101
push ecx
call fcn.00401250
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40325d
mov edx, dword [0x40ea8c]
mov dword [ebp - 0xc], 0
mov edi, dword [edx + esi*4]
test edi, edi
je 0x403223
mov eax, dword [0x40ea74]
test eax, eax
jne 0x403223
cmp edi, 0x40000
mov esi, 0x40000
ja 0x4031d7
mov esi, edi
mov eax, dword [ebp - 4]
push esi
push ebx
push eax
call fcn.004012d0
mov ecx, dword [ebp - 8]
add esp, 0xc
push eax
push ebx
push ecx
call fcn.004012f0
add esp, 0xc
push 0
call fcn.004010e0
mov edx, dword [ebp - 0xc]
add esp, 4
add edx, esi
sub edi, esi
push 0
mov dword [ebp - 0xc], edx
mov edx, dword [ebp + 8]
push 0
push 0x405
push 0x3f0
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
test edi, edi
jne 0x4031bf
mov eax, dword [ebp - 8]
push eax
call fcn.00401310
mov esi, dword [ebp - 0x10]
mov eax, dword [0x40ef64]
add esp, 4
cmp esi, eax
jl 0x403163
mov eax, dword [ebp - 4]
push eax
call fcn.00401310
add esp, 4
push ebx
call fcn.00408460
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 4]
push edx
call fcn.00401310
add esp, 4
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4036f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 0x404
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x403739
mov ecx, dword [0x40ef90]
push pe_nt_image_headers32
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edx, dword [0x40ef90]
push edx
call fcn.00401090
mov edx, dword [0x40ea88]
add esp, 4
xor ecx, ecx
cmp eax, edx
sete cl
mov eax, ecx
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x404050
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 4], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x108]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [0x40eef8]
mov ecx, dword [0x40c244]
test eax, eax
mov dword [edi - 1], ecx
je 0x4040b1
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x248]
lea eax, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 8], esi
je 0x4041c2
test byte [ebp - 0x248], 0x10
je 0x40416f
cmp byte [ebp - 0x21c], 0x2e
je 0x4041a5
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x21c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x108]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ax, word [0x40c248]
lea ecx, [ebp - 0x108]
push ecx
mov word [edi - 1], ax
call fcn.00404050
mov esi, dword [ebp + 8]
add esp, 4
mov dword [ebp - 4], eax
jmp 0x4041a5
lea edx, [ebp - 0x108]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4041a5
inc dword [ebp - 4]
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4040d3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [ebp - 0x108]
mov byte [ebp + eax - 0x109], 0
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4044d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x100
push 0
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x4045a1
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call fcn.00401340
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x404518
mov eax, 0xd
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push ebx
push esi
call fcn.00401320
add esp, 0xc
push 4
push 0x40ef80
push esi
call fcn.004012d0
mov ecx, dword [0x40ef80]
add esp, 0xc
push ecx
call fcn.004083b0
mov edx, dword [0x40ef80]
add esp, 4
mov edi, eax
push edx
push edi
push esi
call fcn.004012d0
mov eax, dword [0x40ef80]
add esp, 0xc
push eax
push edi
call fcn.00402190
mov ecx, dword [0x40ef80]
add esp, 8
push ecx
push edi
call fcn.00402330
add esp, 8
test eax, eax
jne 0x4045a6
mov edx, dword [0x40ef80]
push edi
lea eax, [ebx + edx + 4]
mov dword [0x40ef68], eax
call fcn.00408460
add esp, 4
push esi
call fcn.00401310
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, 3
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4048e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.004045b0
add esp, 0xc
mov dword [0x40ea7c], eax
test eax, eax
jne 0x40490e
call fcn.00404260
test eax, eax
mov dword [0x40ea7c], eax
je 0x40493b
jle 0x404924
push 0x30
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402bc0
add esp, 0x10
call fcn.00404780
mov eax, dword [0x40ea7c]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00404780
test eax, eax
mov dword [0x40ea7c], eax
je 0x404962
push 0x30
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call fcn.00402bc0
mov eax, dword [0x40ea7c]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x405ba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov eax, dword [esp + 0x10]
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 0xc]
shr esi, 2
mov edx, dword [ebp + 8]
mov ecx, esi
dec esi
test ecx, ecx
jle 0x405be1
movzx edi, byte [edx]
inc edx
movzx ecx, byte [edx]
shl ecx, 8
inc edx
or edi, ecx
movzx ecx, byte [edx]
shl ecx, 0x10
inc edx
or edi, ecx
movzx ecx, byte [edx]
shl ecx, 0x18
inc edx
or edi, ecx
mov ecx, esi
xor eax, edi
dec esi
test ecx, ecx
jg 0x405bb9
xor esi, esi
mov ecx, dword [ebp + 0xc]
and ecx, 3
cmp ecx, 1
je 0x405c08
cmp ecx, 2
je 0x405bff
cmp ecx, 3
jne 0x405c0d
movzx esi, byte [edx]
shl esi, 0x10
inc edx
movzx ecx, byte [edx]
shl ecx, 8
inc edx
or esi, ecx
movzx ecx, byte [edx]
or esi, ecx
xor eax, esi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x408940
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x40a4f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40eb40], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40eb3c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40eb38], ecx
shr eax, 0x10
mov dword [0x40eb34], eax
call fcn.00408b60
test eax, eax
jne 0x4089aa
push 0x1c
call fcn.00408b10
add esp, 4
mov dword [ebp - 4], 0
call fcn.0040a200
call fcn.0040a1f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4104d4], eax
call fcn.00409bd0
mov dword [0x40eb08], eax
test eax, eax
je 0x4089dd
mov eax, dword [0x4104d4]
test eax, eax
jne 0x4089e7
push 0xffffffffffffffff
call fcn.00409430
add esp, 4
call fcn.00409920
call fcn.00409830
call fcn.00409400
mov esi, dword [0x4104d4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x408ac6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x408a2e
test al, al
je 0x408a2e
and eax, 0xff
push eax
call fcn.004097d0
add esp, 4
test eax, eax
je 0x408a08
inc esi
mov dword [ebp - 0x64], esi
jmp 0x408a08
cmp byte [esi], 0x22
jne 0x408a37
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x408a47
cmp al, 0x20
ja 0x408a47
inc esi
mov dword [ebp - 0x64], esi
jmp 0x408a37
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x408a68
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x408a6d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00409430
jmp 0x408aab
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x408a37
inc esi
mov dword [ebp - 0x64], esi
jmp 0x408ac6

Function at 0x408b10
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40eb10], 1
jne 0x408b1e
call fcn.0040a5d0
mov eax, dword [esp + 4]
push eax
call fcn.0040a610
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x409470
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40eb70]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40948f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40eb6c], 1
mov byte [0x40eb68], bl
jne 0x4094e9
mov ecx, dword [0x4104c8]
test ecx, ecx
je 0x4094d7
mov esi, dword [0x4104c4]
sub esi, 4
cmp esi, ecx
jb 0x4094d7
mov eax, dword [esi]
test eax, eax
je 0x4094d0
call eax
mov ecx, dword [0x4104c8]
sub esi, 4
cmp esi, ecx
jae 0x4094c2
push 0x40c014
push 0x40c010
call fcn.00409520
add esp, 8
push 0x40c01c
push 0x40c018
call fcn.00409520
add esp, 8
test ebx, ebx
jne 0x409510
push ebp
mov dword [0x40eb70], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x409bd0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40ec80]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x409c12
call edi
mov esi, eax
test esi, esi
je 0x409bfc
mov eax, 1
jmp 0x409c0d
call ebp
mov ebx, eax
test ebx, ebx
je 0x409d1f
mov eax, 2
mov dword [0x40ec80], eax
cmp eax, 1
jne 0x409cb2
test esi, esi
jne 0x409c2b
call edi
mov esi, eax
test esi, esi
je 0x409d1f
cmp word [esi], 0
mov eax, esi
je 0x409c45
add eax, 2
cmp word [eax], 0
jne 0x409c33
add eax, 2
cmp word [eax], 0
jne 0x409c33
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x409ca4
push edi
call fcn.004083b0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x409ca4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x409c96
push ebx
call fcn.00408460
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x409d1f
test ebx, ebx
jne 0x409cc3
call ebp
mov ebx, eax
test ebx, ebx
je 0x409d1f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x409cdb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x409ccb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x409ccb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004083b0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x409cfd
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x40a610
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x40e8e0
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40a634
add eax, 8
inc ebp
cmp eax, 0x40e970
jb 0x40a625
cmp ecx, dword [ebp*8 + 0x40e8e0]
jne 0x40a7db
mov eax, dword [0x40eb10]
cmp eax, 1
je 0x40a79d
test eax, eax
jne 0x40a660
cmp dword [0x40c714], 1
je 0x40a79d
cmp ecx, 0xfc
je 0x40a7db
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a69b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40a6e4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x40b2e8
add ebx, ecx
push ebx
call fcn.0040aec0
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40b2c8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40e8e4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040ae30
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4103c0]
test eax, eax
je 0x40a7ae
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40a7b8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40e8e4]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x401649
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004017f9
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x401747
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x4016ea
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x40172d
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401701
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40171c
test al, 0x40
je 0x401713
mov ecx, dword [edi + 0x20]
jmp 0x40171a
test al, 0x80
je 0x40172d
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x40172d
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x4016b9
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x446a50
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x50b18b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.004febc9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x446ad2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004fb83a
mov eax, dword [eax]
push 0x559e7c
push eax
call fcn.004ec564
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004fee54
test bl, bl
je 0x446ad2
push 0x559e7c
lea ecx, [esp + 0xc]
call fcn.004ff1e4
push 0x559e88
lea ecx, [esp + 0xc]
call fcn.004ff1e4
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x446b0e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004fee54
jmp 0x446bd9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x446b92
lea edx, [esp + 0x7c]
push 0x559e84
push edx
call fcn.004ec564
add esp, 8
test eax, eax
je 0x446b92
lea eax, [esp + 0x7c]
push 0x559e80
push eax
call fcn.004ec564
add esp, 8
test eax, eax
je 0x446b92
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x446b22
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004fee54
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4473e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x447442
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x447450
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x50b20b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x572480]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x447588
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4474b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004fee54
xor eax, eax
jmp 0x4475ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004fef91
push esi
lea ecx, [esp + 0xc]
call fcn.004ff220
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4475dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.004473e0
test eax, eax
jne 0x4475dd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.004473e0
test eax, eax
jne 0x4475dd
lea eax, [esp + 0x14]
push 0x559e98
push eax
call fcn.004ed6d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4475bc
lea ecx, [esp + 0x14]
push 0x559e94
push ecx
call fcn.004ed650
mov esi, eax
add esp, 8
test esi, esi
jne 0x4475bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4475bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004fef41
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4474ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004fee54
xor eax, eax
jmp 0x4475ff
mov byte [esi], 0
push 0x559e90
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004fee54
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4