joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4941e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x494448
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x49424b
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00493cb0
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d034
cmp al, 1
jne 0x49424b
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00493fc8
test al, al
je 0x4943d7
cmp dword [ebp - 8], 0
jge 0x494269
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00493cb0
mov eax, dword [ebp - 0x210]
call fcn.00404508
cmp ebx, eax
jge 0x4942b3
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00493cb0
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4cb490]
and eax, 0xff
bt dword [edx], eax
jae 0x4942b3
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4942c7
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004941c4
cmp ebx, dword [ebp - 8]
je 0x4943c9
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4942f3
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004035ac
and eax, 0x7f
movzx eax, word [eax*2 + 0x4c9f98]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4943b6
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004035ac
and eax, 0x7f
movzx eax, word [eax*2 + 0x4c9f98]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004620b8
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004035ac
and eax, 0x7f
movzx eax, word [eax*2 + 0x4c9f98]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004620b8
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4943bd
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x49442a
cmp dword [ebp - 8], 0
jge 0x4943e2
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00493cb0
mov eax, dword [ebp - 0x218]
call fcn.00404508
cmp eax, dword [ebp - 8]
jg 0x49441c
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00493cb0
mov eax, dword [ebp - 0x21c]
call fcn.00404508
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004941c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49444f
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0040426c
ret
Function at 0x49e5a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov esi, eax
lea eax, [ebp - 0x24]
mov edx, dword [0x49e55c]
call fcn.00404c00
xor eax, eax
push ebp
push 0x49e7bc
push dword fs:[eax]
mov dword fs:[eax], esp
or edi, 0xffffffff
mov eax, esi
call fcn.00404708
push eax
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x49e793
lea eax, [ebp - 0x24]
mov edx, esi
call fcn.004042e0
push 0x49e7cc
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 4], eax
call dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4ccf1c]
call fcn.00405408
mov esi, eax
dec esi
test esi, esi
jl 0x49e661
inc esi
xor ebx, ebx
mov eax, ebx
shl eax, 2
mov edx, dword [0x4ccf1c]
mov eax, dword [edx + eax*8 + 8]
add eax, 0x18
mov edx, dword [ebp - 0x1c]
add edx, 0x18
mov ecx, 8
call fcn.00402ce0
jne 0x49e65d
mov edi, ebx
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_FreeLibrary_1
jmp 0x49e793
inc ebx
dec esi
jne 0x49e629
push 0x49e7e4
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x14], eax
push 0x49e7f0
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
push 0x49e7fc
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0xc], eax
push 0x49e808
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x49e78a
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx]
call fcn.00404440
mov eax, dword [ebp - 0x28]
mov edx, 0x49e81c
call fcn.00404654
jne 0x49e78a
cmp dword [ebp - 0x14], 0
je 0x49e78a
cmp dword [ebp - 0x10], 0
je 0x49e78a
cmp dword [ebp - 0xc], 0
je 0x49e78a
cmp dword [ebp - 8], 0
je 0x49e78a
mov dl, 1
mov eax, dword [0x416680]
call fcn.00403380
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0xc]
jmp 0x49e72d
lea eax, [ebp - 0x2c]
mov edx, ebx
call fcn.00404440
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.0040945c
add ebx, eax
inc ebx
cmp byte [ebx], 0
jne 0x49e70e
mov eax, dword [0x4ccf1c]
call fcn.00405408
inc eax
push eax
mov eax, 0x4ccf1c
mov ecx, 1
mov edx, dword [0x49e584]
call fcn.004055c4
add esp, 4
mov eax, dword [0x4ccf1c]
call fcn.00405408
shl eax, 2
mov edx, dword [0x4ccf1c]
lea eax, [edx + eax*8 - 0x20]
lea edx, [ebp - 0x24]
mov ecx, dword [0x49e55c]
call fcn.00404e2c
mov eax, dword [0x4ccf1c]
call fcn.00405408
mov edi, eax
dec edi
jmp 0x49e793
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49e7c3
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0040426c
lea eax, [ebp - 0x24]
mov edx, dword [0x49e55c]
call fcn.00404cd0
ret
Function at 0x4b77ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.00409648
mov eax, dword [ebx]
call fcn.00404508
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4b77f2
mov eax, ebx
mov edx, 0x4b7800
call fcn.00404510
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b7b8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.00409648
mov eax, dword [ebx]
call fcn.00404508
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4b7bd2
mov eax, ebx
mov edx, 0x4b7be0
call fcn.00404510
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b7be4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.00409648
mov eax, dword [ebx]
call fcn.00404508
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4b7c2a
mov eax, ebx
mov edx, 0x4b7c38
call fcn.00404510
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b8160
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x74]
push eax
call sub.user32.dll_GetWindowTextA
mov edx, esi
mov eax, esp
call fcn.00409648
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x4ba260
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, edx
push 0x104
lea edx, [esp + 4]
push edx
mov eax, dword [eax + 0x18]
push eax
call sub.user32.dll_GetWindowTextA
mov edx, ebx
mov eax, esp
call fcn.00409648
add esp, 0x104
pop ebx
ret

Function at 0x4bafa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.00409648
mov eax, dword [ebx]
call fcn.00404508
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4bafe6
mov eax, ebx
mov edx, 0x4baff4
call fcn.00404510
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bf83c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046f8
xor eax, eax
push ebp
push 0x4bf88d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404708
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4bf871
test al, 0x10
jne 0x4bf875
xor ebx, ebx
jmp 0x4bf877
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf894
lea eax, [ebp - 4]
call fcn.00404248
ret
Function at 0x4c70c8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c719f
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x4c70ee
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x4c7111
push 0x1b58
push 0x4ccfbc
mov eax, dword [0x4cd2dc]
push eax
call fcn.004928ec
jmp 0x4c7126
push 0x1b58
push 0x4cd0c4
mov eax, dword [0x4cd2dc]
push eax
call fcn.00492918
xor eax, eax
mov dword [0x4cd328], eax
mov eax, dword [0x4cd2dc]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [0x4cd328], eax
cmp dword [0x4cd328], 0
je 0x4c715a
push 0
mov eax, dword [0x4cd328]
push eax
call sub.kernel32.dll_TerminateProcess
mov dl, 1
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
mov eax, dword [ebx + 0x2fc]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
mov eax, dword [ebx + 0x308]
call fcn.00431988
jmp 0x4c7191
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c71a6
ret
Function at 0x4037b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov eax, dword [esp + 4]
test eax, eax
je 0x403876
cmp eax, 1
jl 0x40387b
push str._associate_qgi
push dword [esi]
call fcn.0040f116
add esp, 8
test eax, eax
je 0x403876
push str._qgi_file
push dword [esi]
call fcn.0040f116
add esp, 8
test eax, eax
je 0x40385c
push str._decompress
push dword [esi]
call fcn.0040f116
add esp, 8
test eax, eax
je 0x40385c
push str._delete_temp_files
push dword [esi]
call fcn.0040f116
add esp, 8
test eax, eax
jne 0x403844
call fcn.00403890
call fcn.00403a30
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push str._deleteapp
push dword [esi]
call fcn.0040f116
add esp, 8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
push dword [esp + 4]
mov ecx, dword [ebp + 0x10]
mov edx, esi
call fcn.004040d0
add esp, 4
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.00404610
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x44d0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0xffff
mov esi, ecx
cmp bx, di
jne 0x4050a7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091ef
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4050e1
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x4050e1
dec dword [edx]
mov ax, di
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091ef
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4051d8
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x40510e
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x405142
push dword [esi + 0x4c]
push edi
call fcn.0040f7b3
add esp, 8
cmp ax, bx
movzx eax, di
jne 0x4051db
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091ef
mov esp, ebp
pop ebp
ret 4
movzx eax, di
mov dword [ebp - 0x28], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x4051a5
sub eax, 1
je 0x4051a5
sub eax, 2
jne 0x4051d8
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.0040f7b3
add esp, 8
cmp ax, bx
movzx eax, di
jne 0x4051db
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091ef
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x4051c8
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.0041018c
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x4051d8
lea ecx, [ebp - 0x28]
movzx eax, di
cmp dword [ebp - 0x34], ecx
mov byte [esi + 0x3e], 1
cmovne ebx, eax
mov ax, bx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004091ef
mov esp, ebp
pop ebp
ret 4
Function at 0x405b90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44d0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x405c54
cmp byte [esi + 0x3e], 0
je 0x405c54
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x405c42
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x405c0a
sub eax, 1
je 0x405c0e
sub eax, 2
jne 0x405c42
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091ef
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405c2b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0041018c
add esp, 0x10
cmp edi, eax
jne 0x405c42
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091ef
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004091ef
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.004091ef
mov esp, ebp
pop ebp
ret

Function at 0x406080
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42574d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44d0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.00403610
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3c], 0
mov ebx, dword [eax + 4]
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
push eax
call fcn.00406900
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx eax, ax
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0
test ebx, ebx
je 0x406140
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
test eax, eax
je 0x40613d
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [ebp + 8]
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], ax
jne 0x40615a
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.00403590
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406350
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425790
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x44d0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.004091fd
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00408734
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x407420
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42593d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x44d0b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x407534
cmp eax, 0x104
ja 0x407534
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x104
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00410c31
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4074a2
mov bl, 1
jmp 0x407536
mov eax, dword [ebp + 0x18]
lea ecx, [eax + 2]
cmp ecx, eax
ja 0x4074c2
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov dword [ebp + 0x18], ecx
cmovae eax, dword [ebp + 8]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x4074cf
sub ecx, eax
push 0
push ecx
lea ecx, [ebp + 8]
call fcn.00407690
cmp dword [ebp + 0x1c], 8
mov eax, 0x414
mov word [ebp - 0x22c], ax
xorps xmm0, xmm0
lea eax, [ebp + 8]
mov dword [ebp - 0x23c], 0
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x23c]
push eax
mov dword [ebp - 0x230], 0
movlpd qword [ebp - 0x22a], xmm0
mov dword [ebp - 0x222], 0
mov dword [ebp - 0x238], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x407534
mov bl, 1
jmp 0x407536
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x40756c
mov edx, dword [ebp + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407562
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407588
push ecx
push edx
call fcn.00409232
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004091ef
mov esp, ebp
pop ebp
ret
call fcn.0040da2f
int3
Function at 0x409ba5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409be4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409be4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409be4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409be4
cmp dword [ecx + 0x74], 0xe
jbe 0x409be4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4188ab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041855c

Function at 0x4188b6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004186e6

Function at 0x424d30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x424d5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424d5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10002730
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call fcn.1000621a
cmp word [ebp + 0x278e], 0x3030
jne 0x10002883
mov dword [ebp + 0xf1b0], 0x33343230
mov eax, 0x20202020
mov dword [ebp + 0x11d80], eax
mov dword [ebp + 0x11d84], eax
mov dword [ebp + 0x11d88], eax
mov byte [ebp + 0x11d8c], al
mov edi, dword [ebp - 0x4c]
lea esi, [edi + 0x18]
lea edi, [ebp + 0x11d9b]
call fcn.1002d007
mov eax, 0x20202020
mov dword [ebp + 0x11dac], eax
mov dword [ebp + 0x11db0], eax
mov dword [ebp + 0x11db4], eax
mov dword [ebp + 0x11db8], eax
mov dword [ebp + 0x11dbc], eax
mov dword [ebp + 0x11dc0], eax
mov dword [ebp + 0x11dc4], eax
mov word [ebp + 0x11dc8], ax
mov edi, dword [ebp - 0x4c]
lea esi, [edi + 0x1d]
lea edi, [ebp + 0x11dd2]
call fcn.1002cf58
mov eax, 0x20202020
mov dword [ebp + 0x11de4], eax
mov dword [ebp + 0x11de8], eax
mov dword [ebp + 0x11dec], eax
mov dword [ebp + 0x11df0], eax
mov dword [ebp + 0x11df4], eax
mov dword [ebp + 0x11df8], eax
mov dword [ebp + 0x11dfc], eax
mov word [ebp + 0x11e00], ax
mov edi, dword [ebp - 0x4c]
lea esi, [edi + 0x26]
lea edi, [ebp + 0x11d9b]
call fcn.1002d007
mov dword [ebp + 0x11dac], 0x412d3131
mov dword [ebp + 0x11db0], 0x2d45544c
mov dword [ebp + 0x11db4], 0x45544144
mov dword [ebp + 0x11db8], 0x2d4e4549
mov dword [ebp + 0x11dbc], 0x53454f4c
mov dword [ebp + 0x11dc0], 0x4e454843
mov dword [ebp + 0x11dc4], 0x20202020
mov word [ebp + 0x11dc8], 0x2020
mov edi, dword [ebp - 0x4c]
lea esi, [edi + 0x2b]
lea edi, [ebp + 0x11dd2]
call fcn.1002cf58
call fcn.10024ab3
call fcn.1000668c
cmp word [ebp + 0x1047c], 1
jne 0x10002883
call fcn.1000627c
ret