joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409257
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
push dword [0x53dcf0]
mov dword [ebp - 8], ebx
xor edi, edi
call fcn.0040d0ae
mov esi, eax
cmp esi, ebx
je 0x409392
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], ebx
je 0x4092f6
push dword [ebp + 8]
call fcn.004094b9
jmp 0x40929a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [esi + 0x1d], bl
jne 0x409292
push dword [esi + 0x14]
call fcn.004096f7
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
push ebx
mov eax, esi
mov byte [esi + 0x1c], 1
call fcn.00409134
pop ecx
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push 0x4091a9
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x4092dc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov esi, dword [esi]
mov eax, dword [esi]
push 1
push ebx
push ebx
push esi
call dword [eax + 0x30]
jmp 0x409392
test byte [ebp + 0xc], 1
je 0x4092ff
xor edi, edi
inc edi
test byte [ebp + 0xc], 2
je 0x40936b
push esi
call fcn.00408dbc
lea eax, [esi + 4]
push 0xc
push eax
call fcn.0040d227
pop ecx
pop ecx
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [0x53dd04]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x409392
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
push dword [esi + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
push dword [esi + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
push dword [esi + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
jmp 0x409392
mov ecx, dword [eax]
push eax
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push ebx
push ebx
push eax
call dword [ecx + 0x30]
test eax, eax
jne 0x409392
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40987d
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x409895
push dword [esp + 4]
push 0x409816
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x4098d2
push esi
mov esi, dword [0x53dd30]
test esi, esi
je 0x4098d1
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4098c9
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x53dd30
call fcn.0040d26a
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x4098a2
pop edi
pop ebx
pop esi
ret 4
Function at 0x40c734
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x40c7a2
push 0x11
call esi
test al, al
js 0x40c7a2
push 0x10
call esi
test al, al
js 0x40c7a2
push 0x12
call esi
test al, al
js 0x40c7a2
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40c7a2
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x40c7c6
push str.PB_WindowID
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x40c7c6
dec eax
push eax
push dword [0x53e63c]
call fcn.0040d0ae
mov eax, dword [eax + 0xc]
jmp 0x40c7c8
xor eax, eax
pop esi
leave
ret 4

Function at 0x40c840
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x40c875
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x40cb00
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x53e64c]
push ebx
push esi
push edi
push eax
or edi, 0xffffffff
push ecx
or ebx, edi
call fcn.0040d0ae
mov esi, eax
test esi, esi
je 0x40cb5a
mov eax, dword [esi]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov eax, dword [esp + 0x10]
xor edi, edi
xor edx, edx
or ecx, edx
or edi, eax
cmp dword [esi + 4], edx
je 0x40cb50
cmp dword [esi + 0x14], edx
jne 0x40cb50
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
cdq
add ecx, eax
adc edi, edx
mov edx, edi
pop edi
pop esi
mov eax, ecx
pop ebx
ret 4
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
ret 4

Function at 0x40cb70
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x53e64c]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.0040d0ae
test eax, eax
je 0x40cbba
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x40cba7
push 1
push edx
push eax
call fcn.0040ce30
movzx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movzx eax, byte [esp + 3]
pop ecx
ret 4
Function at 0x40cbd0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x53e64c]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.0040d0ae
test eax, eax
je 0x40cc1a
cmp dword [eax + 4], 0
lea edx, [esp]
je 0x40cc07
push 4
push edx
push eax
call fcn.0040ce30
mov eax, dword [esp]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x40cc30
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x53e64c]
push eax
push ecx
mov byte [esp + 0xb], 0
call fcn.0040d0ae
test eax, eax
je 0x40cc7a
cmp dword [eax + 4], 0
lea edx, [esp + 3]
je 0x40cc67
push 1
push edx
push eax
call fcn.0040ce30
movsx eax, byte [esp + 3]
pop ecx
ret 4
mov eax, dword [eax]
push 0
lea ecx, [esp + 0xc]
push ecx
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
movsx eax, byte [esp + 3]
pop ecx
ret 4

Function at 0x40cc90
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x40cce9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40cce8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x53e64c]
push eax
push ecx
call fcn.0040d0ae
test eax, eax
je 0x40cce4
cmp dword [eax + 4], 0
je 0x40ccd2
push esi
push edi
push eax
call fcn.0040cf60
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc
Function at 0x40ccf0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
push ebp
push edi
push eax
push 0x1000
mov dword [esp + 0x1c], 0x1000
call fcn.0040d560
mov ecx, dword [esp + 0x1c]
mov edx, dword [0x53e64c]
push ecx
mov edi, eax
push edx
mov ebp, edi
call fcn.0040d0ae
mov ebx, eax
test ebx, ebx
je 0x40ce0e
push esi
lea ecx, [ecx]
mov byte [esp + 0x13], 0
cmp dword [ebx + 4], 0
je 0x40cd4e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0040ce30
mov dword [esp + 0x14], eax
jmp 0x40cd65
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [esp + 0x13]
test al, al
je 0x40cd77
mov byte [ebp], al
mov al, byte [esp + 0x13]
add ebp, 1
mov ecx, dword [esp + 0x18]
mov esi, ebp
sub esi, edi
cmp esi, ecx
jl 0x40cda1
mov edx, dword [esp + 0x24]
add ecx, 0x1000
push edx
push ecx
mov dword [esp + 0x20], ecx
call fcn.0040d560
mov edi, eax
mov al, byte [esp + 0x13]
lea ebp, [esi + edi]
test al, al
je 0x40ce0d
cmp dword [esp + 0x14], 0
je 0x40cdb8
cmp al, 0xd
je 0x40cdb8
cmp al, 0xa
jne 0x40cd30
sub ebp, 1
cmp al, 0xd
jne 0x40ce0d
cmp dword [ebx + 4], 0
je 0x40cdd4
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0040ce30
jmp 0x40cdeb
mov eax, dword [ebx]
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x40ce0d
cmp dword [ebx + 4], 0
je 0x40cdfe
add dword [ebx + 0xc], 1
jmp 0x40ce0d
mov ecx, dword [ebx]
push 1
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
sub edi, ebp
add edi, dword [esp + 0x14]
mov byte [ebp], 0
push edi
call fcn.0040d5e0
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x40ce30
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 0
push edi
jne 0x40ce51
push esi
call fcn.0040c840
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ebx, edi
jl 0x40ceca
mov eax, dword [esi + 0x10]
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
sub ecx, 1
je 0x40ceb7
sub ecx, 1
je 0x40cea2
sub ecx, 2
je 0x40ce8f
push edi
push eax
mov eax, dword [esp + 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
mov dword [edx], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ax, word [eax]
mov ecx, dword [esp + 0x14]
mov word [ecx], ax
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov dl, byte [eax]
mov eax, dword [esp + 0x14]
mov byte [eax], dl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esi + 0x10]
push ebp
mov ebp, dword [esp + 0x18]
sub ecx, ebx
add ecx, dword [esi + 4]
push ebx
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
cmp edi, eax
push 0
jl 0x40cf13
mov eax, dword [esi]
lea edx, [esp + 0x18]
push edx
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
pop esi
add eax, ebx
pop ebx
ret 0xc
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp edi, eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
jle 0x40cf36
mov edi, eax
mov ecx, dword [esi + 4]
push edi
push ecx
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
add esp, 0xc
pop ebp
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x40cf60
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x40cf82
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x40cffb
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x40cfe8
sub ecx, 1
je 0x40cfd3
sub ecx, 2
je 0x40cfc0
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.0040c840
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40d028
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc

Function at 0x40e080
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x40e0a5
mov eax, dword [esi + 0x180]
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov edx, dword [esi + 0x180]
cmp byte [edx + 8], 0
je 0x40e0d0
mov eax, dword [esi]
mov dword [eax + 0x14], 0x30
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
mov eax, dword [esi + 0x180]
add esp, 4
cmp byte [eax + 8], 0
jne 0x40e0b1
xor ecx, ecx
cmp byte [esi + 0x41], cl
mov al, 1
setne cl
add ecx, 0xcd
mov dword [esi + 0x14], ecx
ret
Function at 0x40e190
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x40e1bf
push esi
call fcn.0040db50
add esp, 4
cmp byte [esi + 0x40], 0
je 0x40e1b8
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x40e23a
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x40e22a
mov eax, dword [esi + 8]
test eax, eax
je 0x40e1e4
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x40e226
cmp eax, 2
je 0x40e22a
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40e1d5
cmp eax, 3
je 0x40e20c
cmp eax, 1
jne 0x40e1d5
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x40e1d5
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x40e1d5
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.0040e080
pop esi
ret
cmp eax, 0xcc
je 0x40e25c
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.0040e080
pop esi
ret

Function at 0x412860
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.00415100
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.00415090
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x4128a6
push edi
call fcn.00415110
mov eax, dword [edi]
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
mov eax, dword [edx]
push edi
call eax
add esp, 8
mov dword [esi], fcn.00411d50
mov dword [esi + 4], fcn.00411ea0
mov dword [esi + 8], fcn.00411f60
mov dword [esi + 0xc], fcn.00412010
mov dword [esi + 0x10], 0x4120c0
mov dword [esi + 0x14], 0x412130
mov dword [esi + 0x18], 0x4121a0
mov dword [esi + 0x1c], 0x412480
mov dword [esi + 0x20], 0x4125c0
mov dword [esi + 0x24], fcn.00412710
mov dword [esi + 0x28], 0x412820
mov dword [esi + 0x30], 0x3b9aca00
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x412981
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x10]
push ecx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x412981
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x41295c
cmp al, 0x4d
jne 0x412974
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
imul eax, eax, 0x3e8
pop edi
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
imul eax, eax, 0x3e8
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4041d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x424ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x431860]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x431860]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x404324
cmp byte [ebx + 0x45], 0
je 0x404324
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x404230
xor al, al
jmp 0x404326
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x404270
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4042b1
dec eax
je 0x4042b5
sub eax, 2
je 0x40430b
xor bl, bl
jmp 0x40430d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x4042ec
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0040e2b3
add esp, 0x10
cmp esi, eax
jne 0x4042ad
cmp byte [ebx + 0x45], 0
je 0x40430b
test esi, esi
jne 0x404270
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00403cc0
jmp 0x404270
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x404320
push dword [esp + 0x18]
call fcn.0040e0d8
add esp, 4
mov al, bl
jmp 0x404326
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040cdaf
mov esp, ebp
pop ebp
ret
Function at 0x404ff0
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42501b
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x431860]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x4340a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, str.DB_key
mov ecx, 0x4330d0
call fcn.00405410
mov edx, esi
mov ecx, eax
call fcn.00405410
mov edx, str._write_attept._Data_to_write__
mov ecx, eax
call fcn.00405410
mov edx, edi
mov ecx, eax
call fcn.00405410
mov edx, 0x42cb9c
mov ecx, eax
call fcn.00405410
push str.X:.Trash_100
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.0040e059
add esp, 0xc
lea eax, [ebp - 0x11c]
push str.db_
push 0x104
push eax
call fcn.0040e331
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.0040e331
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 0xc
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00402dc0
mov eax, dword [ebp + 8]
cdq
push edx
push eax
push edi
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 4], 0
call fcn.00402560
lea ecx, [ebp - 0x1c0]
call fcn.00404080
test eax, eax
jne 0x405127
mov eax, dword [ebp - 0x1c4]
lea ecx, [ebp - 0x1c4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40511f
or eax, 4
push 0
push eax
call fcn.004017d0
push 0x4340a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x1c8], eax
lea ecx, [ebp - 0x1c0]
call fcn.00402f90
mov eax, dword [ebp - 0x1c4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1c8], eax
lea eax, [ebp - 0x164]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0040c411
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040cdaf
mov esp, ebp
pop ebp
ret
Function at 0x405b60
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x431860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
push edi
push eax
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0040e059
add esp, 0xc
lea eax, [ebp - 0x208]
push str..
push 0x100
push eax
call fcn.0040e331
add esp, 0xc
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405cb7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
je 0x405c8f
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [ebp - 0x31c], 0x2e
je 0x405c72
push dword [ebp - 0x34c]
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.0040e059
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x42caec
push 0x100
push eax
call fcn.0040e331
add esp, 0xc
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.0040e331
add esp, 0xc
mov edx, str.Deleting_file__
mov ecx, 0x4330d0
call fcn.00405410
lea edx, [ebp - 0x108]
mov ecx, eax
call fcn.00405410
mov edx, 0x42cd48
mov ecx, eax
call fcn.00405410
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call ebx
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
call esi
cmp eax, 0x12
jne 0x405be2
mov edx, str.Cleared_directory__
mov ecx, 0x4330d0
call fcn.00405410
mov edx, dword [ebp - 0x34c]
mov ecx, eax
call fcn.00405410
mov edx, 0x42cd48
mov ecx, eax
call fcn.00405410
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040cdaf
mov esp, ebp
pop ebp
ret

Function at 0x406bb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x431860]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x4340a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x4340a8
mov byte [0x4340a5], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push dword [0x4340a0]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x104
lea edx, [ebp - 0x110]
mov ecx, str.miner_exe_name
call fcn.004051d0
add esp, 4
test al, al
je 0x406c15
lea ecx, [ebp - 0x110]
call fcn.0040b090
push 0xffffffffffffffff
push dword [0x4340a0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, str.Miner_stopped_n
mov ecx, 0x4330d0
call fcn.00405410
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cdaf
mov esp, ebp
pop ebp
ret