joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d80
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x11c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x422694
push eax
call esi
lea ecx, [esp + 0x18]
lea edx, [esp + 0x11c]
push ecx
push edx
call esi
lea eax, [esp + 0x18]
push 0x2e
push eax
call fcn.00406a50
add esp, 8
mov edi, eax
lea ecx, [esp + 0x10]
push edi
push ecx
call esi
push str..bu2
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x18]
push edx
call ebx
lea eax, [esp + 0x11c]
push 0x2e
push eax
call fcn.00406a50
add esp, 8
push str..bu1
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x18]
push 0
lea edx, [esp + 0x120]
push ecx
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push edi
call esi
lea ecx, [esp + 0x11c]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
call ebp
lea eax, [esp + 0x18]
push eax
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x210
ret

Function at 0x403e60
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x11c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x422694
push eax
call esi
lea ecx, [esp + 0x18]
push 0x2e
push ecx
call fcn.00406a50
add esp, 8
push str..his
push eax
call esi
lea edx, [esp + 0x18]
lea eax, [esp + 0x11c]
push edx
push eax
call esi
lea ecx, [esp + 0x18]
push 0x2e
push ecx
call fcn.00406a50
add esp, 8
mov edi, eax
lea edx, [esp + 0x10]
push edi
push edx
call esi
push str..hi2
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x18]
push eax
call ebx
lea ecx, [esp + 0x11c]
push 0x2e
push ecx
call fcn.00406a50
add esp, 8
push str..hi1
push eax
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_CopyFileA]
lea edx, [esp + 0x18]
push 0
lea eax, [esp + 0x120]
push edx
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
push edi
call esi
lea edx, [esp + 0x11c]
push 0
lea eax, [esp + 0x1c]
push edx
push eax
call ebp
lea ecx, [esp + 0x18]
push ecx
call ebx
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x210
ret
Function at 0x405570
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418580
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x7818
call fcn.004062a0
mov eax, dword [0x41f1f0]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
xor ebx, ebx
push ecx
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x7828], bl
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
add esi, 4
xor ecx, ecx
cmp eax, ebx
push str.::RegCreateKeyEx_..._
sete cl
push ecx
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.00405810
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
cmp eax, 1
jne 0x40560b
mov esi, 4
lea edi, [ebx + 4]
mov dword [ebp + 8], esi
jmp 0x405715
cmp eax, 2
jne 0x40562e
add ebx, 8
lea ecx, [ebp - 0x1c]
push ebx
mov dword [ebp + 8], 1
call fcn.00411bcd
mov edi, dword [ebp - 0x1c]
mov esi, dword [edi - 8]
jmp 0x405715
cmp eax, 3
jne 0x4056c7
mov edx, dword [0x41f1f0]
mov dword [ebp + 8], 7
xor esi, esi
mov dword [ebp + 0xc], edx
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4056aa
lea ecx, [ebp + 0xc]
call fcn.00411a6b
lea eax, [ebp + 0x14]
lea ecx, [ebx + 0xc]
push eax
call fcn.004113c8
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.00411bcd
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 2
call fcn.00411ae0
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx - 8]
test edi, edi
je 0x40569f
xor eax, eax
cmp eax, edi
jge 0x40569f
mov dl, byte [eax + ecx]
mov byte [ebp + esi - 0x7828], dl
inc esi
inc eax
jmp 0x40568d
mov byte [ebp + esi - 0x7828], 0
inc esi
jmp 0x40564d
mov byte [ebp + esi - 0x7828], 0
lea ecx, [ebp + 0xc]
inc esi
lea edi, [ebp - 0x7828]
mov byte [ebp - 4], 1
call fcn.00411ae0
jmp 0x405715
mov eax, dword [0x41f1f0]
mov dword [ebp - 0x18], 0x70c
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea edx, [ebp + 0xc]
push str.SC_Error_3036:_The_following_key_is_an_unrecognized_data_type:__s
push edx
call fcn.00411083
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov ecx, esi
push eax
push 0
call fcn.00405810
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00411ae0
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x14]
push esi
push edi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x20]
mov esi, eax
xor ecx, ecx
push str.::RegSetValueEx_..._
test esi, esi
sete cl
push ecx
lea ecx, [edx + 4]
mov dword [ebp - 0x18], esi
call fcn.00405810
jmp 0x405767
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00411ae0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
mov eax, dword [ebx + 0x10]
push edi
xor edi, edi
mov esi, ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov ecx, dword [eax + 0xc]
mov edx, 2
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], 0x20000000
mov dword [esp + 0x14], edx
xor eax, eax
movzx bp, byte [ecx]
mov ah, byte [ecx + 1]
or eax, ebp
test al, 1
mov word [esi + 0x54], ax
je 0x4024de
mov edx, 6
mov dword [esp + 0x14], edx
test byte [esi + 0x54], 4
je 0x4024fc
lea ecx, [esp + 0x30]
push 1
push ecx
lea ecx, [esp + 0x18]
call fcn.0041afa0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test byte [esi + 0x54], 2
je 0x402519
lea ebp, [edx + ecx]
add edx, 2
xor eax, eax
mov dword [esp + 0x14], edx
mov ah, byte [ebp + 1]
mov al, byte [ebp]
mov dword [esi + 0x58], eax
jmp 0x40251c
mov dword [esi + 0x58], edi
test byte [esi + 0x55], 0x20
je 0x402542
mov cl, byte [edx + ecx]
inc edx
mov byte [esp + 0x30], cl
mov eax, dword [esp + 0x30]
and eax, 0xff
add edx, 8
mov dword [esi + 0x80], eax
mov dword [esp + 0x14], edx
jmp 0x402548
mov dword [esi + 0x80], edi
lea ecx, [esp + 0x10]
call fcn.0041b1f0
mov dword [esi + 8], eax
mov al, byte [esi + 0x54]
test al, 0x80
je 0x402569
lea ecx, [esp + 0x10]
call fcn.0041b1f0
mov dword [esi + 0xc], eax
jmp 0x40256c
mov dword [esi + 0xc], edi
mov dword [esi + 0x6c], ebx
mov ecx, dword [ebx + 0x10]
push 2
mov dword [esi + 0x70], ecx
mov dword [esi + 0x44], edi
mov dword [esi + 0x50], edi
call fcn.00406d30
lea edx, [esi + 0x84]
mov dword [esi + 4], eax
mov word [eax], di
push edx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov dword [esi + 0x7c], 0xffffffff
mov dword [esi + 0x9c], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x94], edi
call fcn.00405dc0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x4034b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
mov ebx, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40357b
mov eax, dword [ebx + 0x14]
push ebp
push esi
mov esi, dword [ebx + 0x18]
cmp eax, esi
push edi
jge 0x4034d4
mov edi, eax
jmp 0x4034d8
mov edi, esi
mov esi, eax
sub esi, edi
lea eax, [esi + esi + 1]
push eax
call fcn.00406d30
mov ecx, dword [ebx + 4]
add esp, 4
mov edx, esi
dec esi
test edx, edx
mov ebp, eax
lea edi, [ecx + edi*2]
je 0x403528
inc esi
mov cx, word [edi]
cmp cx, 0xd
jne 0x403508
mov byte [eax], cl
inc eax
mov byte [eax], 0xa
jmp 0x403521
cmp cx, 0xff
jbe 0x40351d
xor edx, edx
inc eax
mov dl, ch
mov byte [eax - 1], dl
mov cl, byte [edi]
mov byte [eax], cl
jmp 0x403521
mov dl, byte [edi]
mov byte [eax], dl
inc eax
add edi, 2
dec esi
jne 0x4034f7
mov byte [eax], 0
sub eax, ebp
inc eax
mov esi, eax
push esi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, esi
mov edi, eax
mov eax, ecx
mov esi, 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_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebp
call fcn.00406d40
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x403580
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
mov ebx, ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403603
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x4035f5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.0041ee10
mov esi, eax
add esp, 4
test esi, esi
je 0x4035ed
mov cl, byte [esi]
mov edx, esi
test cl, cl
je 0x4035d9
mov cl, byte [edx]
cmp cl, 0xd
je 0x4035d1
cmp cl, 0xa
jne 0x4035ce
mov byte [eax], 0xd
jmp 0x4035d0
mov byte [eax], cl
inc eax
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x4035bd
sub eax, esi
mov ecx, ebx
push eax
push esi
call fcn.00403610
push esi
call fcn.0041ee00
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [ebx + 0x68], 0
pop edi
pop ebx
ret
Function at 0x403f20
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0x20]
push esi
cmp word [ebx + 0x62], 0
je 0x403f32
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ebx]
lea ecx, [eax + 0x504]
call fcn.00406c80
mov esi, eax
test esi, esi
jne 0x403f48
pop esi
pop ebx
ret
mov eax, dword [ebx]
push edi
add eax, 0x158
mov ecx, esi
push eax
call fcn.0040c5b0
mov ecx, dword [ebx + 0x80]
mov edx, dword [esp + 0x20]
mov ax, word [esp + 0x1c]
mov dword [esi + 8], ecx
mov cx, word [esp + 0x10]
mov dword [ebx + 0x80], esi
mov word [esi + 0x24], cx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0xc], edx
mov dx, word [esp + 0x14]
mov word [esi + 0x26], ax
mov ax, word [esp + 0x18]
lea edi, [esi + 0x20]
add ecx, 0x18
mov word [esi + 0x22], dx
mov word [edi], ax
mov eax, dword [ecx]
test eax, eax
je 0x403fa9
push 1
push edi
call fcn.00413130
xor eax, eax
mov ax, word [edi + 6]
cmp eax, 0xff
jge 0x403fec
xor edx, edx
inc eax
mov dx, word [edi + 4]
xor ecx, ecx
imul edx, eax
mov cx, word [edi + 2]
sar edx, 8
imul ecx, eax
mov word [edi + 4], dx
xor edx, edx
mov dx, word [edi]
imul edx, eax
sar ecx, 8
sar edx, 8
mov word [edi + 2], cx
mov word [edi], dx
mov eax, 1
jmp 0x403fee
xor eax, eax
mov byte [esi + 0x14], al
mov eax, dword [ebx]
pop edi
mov ecx, dword [eax + 0x174]
test ecx, ecx
je 0x404005
mov ecx, esi
call fcn.0040ca80
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4052f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
test byte [ecx + 0x55], 0x10
push esi
je 0x405305
mov eax, dword [esp + 8]
pop esi
mov dword [eax], 0
ret 4
mov esi, dword [esp + 8]
push edi
xor eax, eax
mov dword [esi], 0x10
mov edx, dword [ecx + 0x14]
mov edi, dword [ecx + 0x18]
cmp edx, edi
pop edi
setne al
mov edx, eax
test edx, edx
je 0x405330
test byte [ecx + 0x54], 0x10
jne 0x405330
mov dword [esi], 0x12
test byte [ecx + 0x54], 8
jne 0x40536e
mov eax, dword [esi]
test al, 2
je 0x405340
or al, 1
mov dword [esi], eax
test edx, edx
je 0x40534a
mov eax, dword [esi]
or al, 8
mov dword [esi], eax
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40536e
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
test eax, eax
je 0x405368
mov eax, dword [esi]
or al, 4
mov dword [esi], eax
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
ret 4

Function at 0x408070
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [esp + 0x13c]
test edi, edi
jne 0x40813a
mov eax, dword [esp + 0x138]
mov edi, dword [esp + 0x130]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0xc], 0x114
test eax, eax
mov byte [esp + 0x18], 0
je 0x40810d
lea eax, [esp + 0x14]
push eax
push 1
push 0
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40810d
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push 0
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x18]
push ecx
call ebx
test eax, eax
je 0x4080f9
cmp dword [esp + 0x10], 1
jne 0x4080f9
xor esi, esi
jmp 0x4080fe
mov esi, 1
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40812b
mov esi, dword [esp + 0x134]
push esi
call ebx
push eax
push esi
push 1
push edi
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x40819b
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x120
ret
mov ecx, dword [esp + 0x130]
lea eax, [esp + 0xc]
push eax
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40819b
mov esi, dword [esp + 0x134]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0xc]
inc eax
push eax
push esi
push 1
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40819b
test esi, esi
jne 0x40819b
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x120
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x120
ret
Function at 0x4081b0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4081de
mov al, byte [esi + 1]
inc esi
cmp al, 0x22
je 0x4081d6
test al, al
je 0x4081d6
mov al, byte [esi + 1]
inc esi
cmp al, 0x22
jne 0x4081ca
cmp byte [esi], 0x22
jne 0x4081ea
inc esi
jmp 0x4081ea
cmp al, 0x20
jle 0x4081ea
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
jg 0x4081e2
mov al, byte [esi]
test al, al
je 0x4081fc
cmp al, 0x20
jg 0x4081fc
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4081f0
lea eax, [esp + 4]
mov dword [esp + 0x30], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [esp + 0x30], 1
je 0x408221
mov eax, dword [esp + 0x34]
and eax, 0xffff
jmp 0x408226
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x408530
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x614
lea eax, [esp + 0x114]
push ebx
push esi
mov esi, dword [esp + 0x620]
push 0xff
mov ebx, ecx
push eax
push 2
push esi
mov dword [ebx + 0x15d0], esi
call dword [sym.imp.USER32.dll_LoadStringA]
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
lea ecx, [esp + 0x13c]
push 0xcf0000
push ecx
push str.ShockwaveFlash
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x40859d
pop esi
pop ebx
add esp, 0x614
ret 0xc
push edi
push 1
push esi
call dword [sym.imp.SHELL32.dll_DragAcceptFiles]
push esi
mov ecx, ebx
mov dword [ebx + 0x15e4], esi
call fcn.0040a800
mov edx, dword [esp + 0x62c]
test edx, edx
je 0x4085df
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4085df
mov ecx, dword [0x43cba0]
push edx
call fcn.0040b500
jmp 0x40872b
lea edx, [esp + 0x1c]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x80
push 3
push 0
push 1
lea eax, [esp + 0x30]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40872b
push ebp
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
push 0
push 0
lea ecx, [esi - 8]
push ecx
push edi
call ebp
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x20]
push 8
push eax
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x14], 8
jne 0x408723
cmp dword [esp + 0x18], 0xfa123456
jne 0x408723
mov edx, dword [esp + 0x1c]
push 0
sub esi, edx
push 0
sub esi, 8
mov dword [ebx + 0x15e8], 1
push esi
push edi
call ebp
push 0
push 0
mov ecx, ebx
call fcn.0041fc40
mov esi, eax
test esi, esi
je 0x408723
lea ecx, [esp + 0x20]
push ecx
call fcn.0040bf40
push eax
mov dword [ebx + 0x15cc], eax
call fcn.0041ee10
mov dword [esi + 0x94], eax
mov ebp, dword [esp + 0x24]
add esp, 8
mov dword [esp + 0x10], 0
cmp ebp, 0x400
jbe 0x4086d6
mov eax, 0x400
jmp 0x4086dc
test ebp, ebp
mov eax, ebp
je 0x40871c
lea edx, [esp + 0x10]
push 0
push edx
push eax
lea eax, [esp + 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40871c
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x224]
push eax
push ecx
mov ecx, esi
sub ebp, eax
call fcn.0041e780
mov ecx, esi
call fcn.0041ea60
mov eax, dword [esp + 0x10]
test eax, eax
ja 0x4086c7
mov ecx, esi
call fcn.0041e5e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov ecx, dword [0x43cba0]
call fcn.004092f0
mov edx, dword [esp + 0x628]
mov eax, dword [ebx + 0x15e4]
push edx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebx + 0x15e4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x614
ret 0xc
Function at 0x408c90
Capabilities:
Copy file
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x114
push esi
push edi
lea eax, [esp + 0x18]
push 0x104
push eax
mov edi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [esp + 0x120]
push 0
lea ecx, [esp + 0x1c]
push esi
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x408dd0
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408dd0
push ebx
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
push 0
push 0
lea edx, [ebx - 8]
push edx
push esi
call ebp
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 8
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x10], 8
jne 0x408db1
cmp dword [esp + 0x18], 0xfa123456
jne 0x408d4e
mov ecx, dword [esp + 0x1c]
mov edx, 0xfffffff8
sub edx, ecx
add ebx, edx
push 0
push 0
push ebx
push esi
call ebp
mov ecx, dword [edi + 0x98]
mov edx, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edx
push esi
call ebx
mov eax, dword [edi + 0x98]
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jne 0x408db1
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x20]
push 8
push ecx
push esi
mov dword [esp + 0x2c], 0xfa123456
call ebx
cmp dword [esp + 0x10], 8
jne 0x408db1
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [esp + 0x14], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
pop ebp
test eax, eax
pop ebx
jne 0x408dd0
mov edx, dword [esp + 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
add esp, 0x114
ret 4
Function at 0x4094b0
Capabilities:
Create process on windows

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push str.FSCommand:
push edi
call fcn.0041ed60
mov esi, eax
add esp, 8
test esi, esi
je 0x409663
push str.quit
push esi
call fcn.0041eda0
add esp, 8
test eax, eax
je 0x4094f7
mov eax, dword [0x43cba0]
mov ecx, dword [eax + 0x15d4]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebp
ret
push str.fullscreen
push esi
call fcn.0041eda0
add esp, 8
test eax, eax
je 0x409526
mov edx, dword [esp + 0x18]
push edx
call fcn.00409690
mov ecx, dword [0x43cba0]
add esp, 4
push eax
call fcn.00408de0
pop edi
pop esi
pop ebp
ret
push str.allowscale
push esi
call fcn.0041eda0
add esp, 8
test eax, eax
je 0x409563
mov eax, dword [esp + 0x18]
push eax
call fcn.00409690
mov ecx, dword [esp + 0x14]
add esp, 4
neg eax
sbb eax, eax
push 2
and al, 0xfd
add eax, 3
mov dword [ecx + 0x14b4], eax
call fcn.00420050
pop edi
pop esi
pop ebp
ret
push str.exec
push esi
call fcn.0041eda0
add esp, 8
test eax, eax
je 0x4095d3
mov ebp, dword [esp + 0x18]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
call fcn.00406d30
mov edi, eax
add esp, 4
test edi, edi
je 0x40968a
push ebx
xor ebx, ebx
test esi, esi
jle 0x4095bc
mov edx, ebp
sub edx, edi
mov cl, byte [edx + eax]
cmp cl, 0x20
mov byte [eax], cl
je 0x4095b8
inc ebx
inc eax
cmp ebx, esi
jl 0x4095a6
jmp 0x4095bc
mov byte [ebx + edi], 0
push 5
push edi
call dword [sym.imp.KERNEL32.dll_WinExec]
push edi
call fcn.00406d40
add esp, 4
pop ebx
pop edi
pop esi
pop ebp
ret
push str.showmenu
push esi
call fcn.0041eda0
add esp, 8
test eax, eax
je 0x40968a
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push ecx
call fcn.00409690
mov dword [esi + 0x14a0], eax
mov edx, dword [0x43cba0]
add esp, 4
mov eax, dword [edx + 0x15e4]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
mov ecx, dword [esi + 0x14a0]
test ecx, ecx
jne 0x409646
test eax, eax
je 0x40968a
mov ecx, dword [0x43cba0]
push 0
mov dword [ecx + 0x1618], eax
mov edx, dword [0x43cba0]
mov eax, dword [edx + 0x15e4]
push eax
call dword [sym.imp.USER32.dll_SetMenu]
pop edi
pop esi
pop ebp
ret
mov eax, dword [0x43cba0]
mov ecx, dword [eax + 0x1618]
mov edx, dword [eax + 0x15e4]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetMenu]
pop edi
pop esi
pop ebp
ret
mov eax, dword [esp + 0x10]
push edi
mov ecx, dword [eax + 0x15cc]
push ecx
call fcn.0040b5b0
mov edx, dword [esp + 0x24]
mov esi, eax
push edx
push esi
call fcn.0040a570
push esi
call fcn.0041ee00
add esp, 0x14
pop edi
pop esi
pop ebp
ret