joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053ac
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 1
pop ebx
push ebx
call fcn.00404687
mov esi, 0x104
xor edi, edi
push esi
push edi
push 0x491d84
call fcn.00407310
push esi
push edi
push 0x491c80
call fcn.00407310
push esi
push edi
push 0x491b7c
call fcn.00407310
push esi
push edi
push 0x491a78
call fcn.00407310
push esi
push edi
push 0x491974
call fcn.00407310
add esp, 0x40
push 0x40e0d0
push 0x1eac
push str.them
call fcn.00403529
push 0x491e90
call fcn.00402642
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0x80000000
mov dword [0x491e98], edi
mov dword [0x491e88], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
jne 0x40546c
cmp dword [ebp - 0x8c], ebx
jne 0x40546c
mov dword [0x491e98], ebx
call fcn.004048cb
mov esi, 0x7d000
push esi
call fcn.00407baf
cmp eax, edi
pop ecx
mov dword [0x491970], eax
jne 0x40548a
xor eax, eax
jmp 0x4054ae
push esi
push edi
push eax
call fcn.00407310
call fcn.0040556c
push ebx
push 0x40fde0
call fcn.00403434
push eax
push edi
call fcn.004052d3
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40556c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
push 0x40fb6f
call fcn.00403434
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
pop ecx
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test ebp, ebp
mov edi, 0x40fc6f
je 0x4055d1
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 4
push edi
mov dword [0x491ea0], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
push 5
push edi
mov dword [0x491e9c], eax
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491ea4], eax
push 3
push 0x40fb6f
call fcn.00403434
pop ecx
pop ecx
push eax
call ebx
mov ebp, eax
test ebp, ebp
je 0x4055fb
push 3
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebp
call esi
mov dword [0x491ea8], eax
mov edi, 0x40fda4
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40561c
push 1
push edi
call fcn.00403434
pop ecx
pop ecx
push eax
push ebx
call esi
mov dword [0x491eac], eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4058b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push esi
lea ecx, [ebp - 0x18]
call fcn.0040174b
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push 1
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.0040174e
mov esi, eax
test esi, esi
je 0x405967
lea eax, [ebp - 0x324]
push 0
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call fcn.004074db
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push 0x40f1d8
push eax
call fcn.00407380
lea eax, [ebp - 0x11c]
push str._r_T
push eax
call fcn.00407380
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push esi
call fcn.00407196
mov esi, eax
add esp, 0x40
test esi, esi
lea ecx, [ebp - 0x18]
jne 0x40596b
call fcn.00401808
xor eax, eax
jmp 0x4059bf
call fcn.00401808
push dword [ebp - 4]
lea eax, [ebp - 0x11c]
push esi
push eax
call fcn.00403cbb
push esi
call fcn.0040780b
add esp, 0x10
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004046b3
pop ecx
test eax, eax
pop ecx
je 0x4059bd
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x11c]
push eax
call fcn.00403dfa
pop ecx
push 1
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x405e9a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push 0x40f949
call fcn.00403434
pop ecx
pop ecx
push eax
push 0x40f244
push closesocket
call fcn.004044c0
lea eax, [ebp - 0x10c]
push eax
call fcn.00405c5a
movsx eax, byte [ebp - 0x10c]
mov bl, byte [ebp - 0x10a]
push eax
call fcn.004076ee
add esp, 0x1c
and dword [ebp - 8], 0
mov byte [ebp - 1], al
mov al, byte [ebp - 8]
add al, 0x61
cmp al, byte [ebp - 1]
je 0x405f44
and byte [ebp - 0x10a], 0
mov byte [ebp - 0x10c], al
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
mov byte [ebp - 0x10a], bl
jne 0x405f44
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push 0x405e42
push eax
call fcn.00403e11
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x1a
jl 0x405efe
xor eax, eax
pop ebx
leave
ret 4
Function at 0x406688
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x439c
call fcn.00407b80
lea eax, [ebp + 0xc]
push edi
push eax
or dword [ebp - 4], 0xffffffff
push dword [ebp + 8]
mov dword [ebp - 8], 0x3e80
push 3
push 1
pop edi
push edi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
jne 0x4067fe
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x439c]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call sub.MPR.dll_WNetEnumResourceA
xor ebx, ebx
cmp dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x4067f5
push esi
lea esi, [ebp - 0x4388]
test byte [esi - 8], 2
lea eax, [esi - 0x14]
je 0x406707
push dword [ebp + 0x10]
push 2
push eax
call fcn.00406688
add esp, 0xc
jmp 0x4067e2
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [esi]
call fcn.00404a85
add esp, 0xc
test eax, eax
jne 0x4067e2
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.0040644e
pop ecx
pop ecx
push edi
push str._r_T
push ebx
call fcn.00404687
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x51c]
push eax
call fcn.00404156
add esp, 0x10
cmp dword [ebp + 0x10], ebx
je 0x4067e2
push edi
lea eax, [ebp - 0x51c]
push ebx
push eax
lea eax, [ebp - 0x314]
push ebx
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040280f
add esp, 0x18
push edi
push str._r0
push ebx
call fcn.00404687
pop ecx
and eax, edi
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00404156
push dword [esi]
lea eax, [ebp - 0x10c]
push eax
call fcn.00407370
lea eax, [ebp - 0x10c]
push 0x40e044
push eax
call fcn.00407380
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00407380
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push 0xffffffffffffffff
push eax
call fcn.00406a68
add esp, 0x38
inc dword [ebp + 8]
add esi, 0x20
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 4]
jb 0x4066eb
pop esi
push dword [ebp + 0xc]
call sub.MPR.dll_WNetCloseEnum
pop ebx
pop edi
leave
ret
Function at 0x406a68
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x21d4
call fcn.00407b80
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
cmp dword [ebp + 0x14], ebx
mov dword [ebp - 4], esi
mov dword [ebp - 8], eax
jne 0x406a9c
push dword [ebp + 8]
call fcn.004046f6
test eax, eax
pop ecx
jne 0x406bda
mov edi, str.x_d_t
push ebx
push edi
call fcn.00403464
pop ecx
cmp esi, ebx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x406ac0
push ebx
call fcn.00404687
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov esi, str._r_T
push ebx
push esi
call fcn.00403464
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
jge 0x406ae5
push ebx
call fcn.00404687
xor edx, edx
pop ecx
div dword [ebp + 0xc]
mov dword [ebp - 8], edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00403d8c
lea eax, [ebp - 0x314]
mov dword [esp], 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push ebx
push eax
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x406bda
lea eax, [ebp - 0x10c]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x1ec0
lea eax, [ebp - 0x21d4]
push 0x40e0c0
push eax
call fcn.00407820
lea eax, [ebp - 0x21d4]
mov byte [ebp - 0x11c0], bl
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004054b3
push ebx
call fcn.00404687
xor edx, edx
mov ecx, 0x2800
div ecx
lea eax, [ebp - 0x10c]
add edx, 0x13200
push edx
push eax
call fcn.00403f63
push dword [ebp - 4]
push edi
call fcn.00403434
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407370
push dword [ebp - 8]
push esi
call fcn.00403434
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.00407380
add esp, 0x40
lea eax, [ebp - 0x210]
push dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.004050c1
lea eax, [ebp - 0x10c]
push eax
call fcn.00403dfa
add esp, 0x14
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406d75
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
pop ebx
push 0x927c0
call edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ax, word [ebp - 0x12]
test bl, al
je 0x406d87
cmp word [ebp - 0xe], 6
jne 0x406d87
and dword [0x491e94], 0
cmp ax, 7
mov dword [0x491e98], ebx
jne 0x406dc0
mov dword [0x491e94], ebx
cmp ax, bx
jne 0x406dcb
mov dword [0x491e94], ebx
xor esi, esi
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x406d1c
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
inc esi
cmp esi, 0x1a
jl 0x406dcd
push 0x1b7740
call edi
call fcn.00406d5e
push 0xffffffffffffffff
call edi
jmp 0x406d87
Function at 0x5c5778
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x671580]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x6550a4
push esi
call fcn.004f3345
pop ecx
pop ecx
test eax, eax
jne 0x5c57a6
xor al, al
jmp 0x5c5823
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.005c54b9
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5c57e0
push dword [ebp - 0x210]
call fcn.004d8e73
xor al, al
jmp 0x5c5821
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5c57e6
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5c5806
push edx
call fcn.005c56af
pop ecx
test al, al
je 0x5c57d1
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5c5814
mov bl, 1
push dword [ebp - 0x210]
call fcn.004d8e73
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c4309
leave
ret

Function at 0x5c7f3c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x671580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5c7f7f
call fcn.004deb5e
mov dword [eax], 0xf
call fcn.004deb71
mov dword [eax], 0xd
call fcn.004d919a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c4309
leave
ret
test eax, eax
jne 0x5c7f86
inc eax
jmp 0x5c7f73
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5c7f71
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5c7f73
Function at 0x40490e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push eax
lea eax, [ebp - 0x20]
push 0x1c
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x4049ea
cmp dword [ebp - 4], 0x1c
jne 0x4049ea
lea eax, [ebp - 0x20]
push eax
call fcn.004048b9
test eax, eax
pop ecx
je 0x4049ea
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x1c]
sub eax, dword [ebp - 0xc]
mov dword [ecx], eax
js 0x4049ea
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [ebp - 4]
push ebx
push eax
push dword [ebp - 0xc]
push esi
push dword [ebp + 8]
call edi
test eax, eax
je 0x4049e3
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jne 0x4049e3
cmp dword [ebp - 0x10], 0xdeadf00d
jne 0x4049af
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
add esi, 0x280
mov dword [eax], esi
jmp 0x4049d4
mov eax, dword [ebp + 0x18]
lea ecx, [esi + 0x8a4]
mov dword [eax], ebx
mov eax, dword [ebp + 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], esi
mov ecx, dword [esi + 0x8a0]
imul ecx, ecx, 0x4c
add ecx, dword [eax]
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4049ed
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c86
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
xor ebx, ebx
push 0x80218
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push 0xd
mov dword [ebp - 0xc], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
push ebx
mov dword [ebp - 0x48], ebx
push ebx
push dword [ebp + 0xc]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 1]
push 1
push eax
push edi
call esi
test eax, eax
jne 0x404cdf
push 0xfffffffffffffffd
pop esi
jmp 0x404dd4
cmp byte [ebp - 1], 1
jne 0x404d82
push 0x38
lea eax, [ebp - 0x48]
push str.1.1.3
push eax
call fcn.00402415
mov edi, dword [ebp + 0x10]
add esp, 0xc
lea eax, [ebp + 0x10]
push ebx
push eax
lea eax, [ebp + 0xc]
push 4
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x404d6f
cmp dword [ebp + 0x10], 4
jne 0x404d6f
cmp dword [ebp + 0xc], ebx
je 0x404d76
lea eax, [ebp + 0x10]
push ebx
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x404d6f
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], eax
jne 0x404d6f
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
push 2
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x3c], edi
call fcn.0040242c
pop ecx
test eax, eax
pop ecx
jl 0x404d6f
mov eax, dword [ebp - 0x3c]
sub eax, edi
sub dword [ebp + 0x14], eax
add edi, eax
add dword [ebp - 8], eax
mov dword [ebp + 0x10], eax
jmp 0x404cff
mov dword [ebp - 8], 0xfffffffd
lea eax, [ebp - 0x48]
push eax
call fcn.004022ed
pop ecx
jmp 0x404dd1
cmp byte [ebp - 1], bl
jne 0x404dca
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp + 8]
push 4
push eax
push edi
call esi
test eax, eax
je 0x404db4
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x404da4
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
push ebx
push ecx
push eax
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x404dc2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push 0xfffffffffffffffd
pop eax
jmp 0x404ddf
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x404dd1
mov dword [ebp - 8], 0xfffffffa
mov esi, dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405800
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
cmp dword [0x411dc0], esi
jne 0x40581b
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
mov dword [0x411dc0], 1
push eax
push 0x40d498
push 1
push esi
push 0x40d488
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4058db
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x40d4a8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x4058d2
push edi
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push dword [ebp + 0x20]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [ebp + 0x10], esi
je 0x4058a1
push dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x1c], esi
je 0x4058b2
mov eax, dword [ebp - 4]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp edi, esi
pop edi
jl 0x4058c9
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x210]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop esi
leave
ret
Function at 0x4075f2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call fcn.004080d0
lea eax, [ebp - 0x108]
push eax
call fcn.00408050
mov esi, dword [sym.imp.USER32.dll_CharPrevA]
lea ebx, [ebp + eax - 0x108]
lea eax, [ebp - 0x108]
add esp, 0xc
cmp ebx, eax
jbe 0x40764d
cmp byte [ebx], 0x5c
je 0x40764d
lea eax, [ebp - 0x108]
push ebx
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x108]
cmp ebx, eax
ja 0x407632
lea eax, [ebp - 0x108]
cmp ebx, eax
jne 0x407668
cmp byte [ebx], 0x5c
je 0x407668
lea eax, [ebp - 0x108]
push ebx
push eax
call esi
mov ebx, eax
mov esi, dword [sym.imp.USER32.dll_CharNextA]
lea eax, [ebp - 0x108]
push edi
push eax
lea edi, [ebp - 0x108]
call esi
cmp byte [eax], 0x3a
jne 0x407696
mov dword [ebp - 4], 4
push edi
call esi
dec dword [ebp - 4]
mov edi, eax
jne 0x40768a
jmp 0x4076e6
cmp byte [ebp - 0x108], 0x5c
jne 0x4076e6
lea eax, [ebp - 0x108]
push eax
call esi
cmp byte [eax], 0x5c
jne 0x4076e6
lea eax, [ebp - 0x108]
push eax
call esi
push eax
call esi
mov edi, eax
mov al, byte [edi]
test al, al
je 0x4076c8
cmp al, 0x5c
je 0x4076c8
push edi
jmp 0x4076b7
cmp byte [edi], 0
je 0x4076d2
push edi
call esi
mov edi, eax
mov al, byte [edi]
test al, al
je 0x4076dc
cmp al, 0x5c
jne 0x4076cd
cmp byte [edi], 0
je 0x4076e6
push edi
call esi
mov edi, eax
cmp ebx, edi
pop edi
jb 0x4076fb
and byte [ebx], 0
lea eax, [ebp - 0x108]
push eax
call fcn.004075f2
pop ecx
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
pop ebx
leave
ret
Function at 0x407f56
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407fab
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0xc]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 1
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x407fad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x407fd2
mov eax, dword [0x410d14]
cmp eax, 0xffffffff
je 0x408041
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x410d14], 0xffffffff
jmp 0x408041
cmp dword [0x4121c4], ebx
je 0x408041
cmp byte [0x4120c0], bl
je 0x408017
cmp dword [0x410d14], 0xffffffff
jne 0x408020
push ebx
push ebx
push 4
push ebx
push 1
push 0x40000000
push 0x4120c0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [0x410d14], eax
je 0x408041
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x410d14], 0xffffffff
je 0x408041
push esi
lea eax, [ebp + 8]
push ebx
mov esi, 0x4121e0
push eax
push esi
call fcn.00408050
pop ecx
push eax
push esi
push dword [0x410d14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret
Function at 0x40ae61
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4110f0
cmp edx, dword [eax]
je 0x40ae83
add eax, 8
inc ecx
cmp eax, 0x411180
jl 0x40ae74
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4110f0]
jne 0x40afb1
mov eax, dword [0x411f0c]
cmp eax, 1
je 0x40af8b
test eax, eax
jne 0x40aeb4
cmp dword [0x410f44], 1
je 0x40af8b
cmp edx, 0xfc
je 0x40afb1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40aeeb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004080d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00408050
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40af2e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00408050
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d830
push edi
call fcn.00408d40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004080d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004080e0
lea eax, [ebp - 0xa0]
push 0x40d810
push eax
call fcn.004080e0
push dword [esi + 0x4110f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004080e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040be35
add esp, 0x2c
pop edi
jmp 0x40afb1
lea eax, [ebp + 8]
lea esi, [esi + 0x4110f4]
push 0
push eax
push dword [esi]
call fcn.00408050
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4098c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5150
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a9824]
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_char__struct_std::char_traits_char__.0
call fcn.004bb61a
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004b9ccb
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