joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f8c
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax + 4], ebx
jne 0x403f10
cmp dword [eax + 0xc], ebx
je 0x403fb3
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.0040396b
scasd eax, dword es:[edi]
sbb byte [edx - 0x59], dh
cmp dword [ebp + 0xc], ebx
jne 0x403f3f
push edi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40415a
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax]
cmp eax, ebx
lea edi, [ecx + esi]
jne 0x403f53
mov dword [ebp + 0x10], edi
jmp 0x403f58
add eax, esi
mov dword [ebp + 0x10], eax
call fcn.0040396b
jl 0x403f07
dec esi
adc eax, 0x8b10458b
add byte [ebx], bh
ret
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
je 0x403fa1
test eax, 0x80000000
lea ecx, [eax + esi]
je 0x403f7c
and eax, 0xffff
push eax
jmp 0x403f80
add ecx, 2
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403930
add esp, 0xc
les ecx, [ebx + edi]
sti
les ecx, [ebx + edi]
sti
mov dword [edi], eax
je 0x40415a
add edi, 4
add dword [ebp + 0x10], 4
jmp 0x403f61
add dword [ebp - 0x44], 0x14
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x44]
jmp 0x403f02
call fcn.0040396b
outsb dx, byte ss:[esi]
push eax
and eax, 0xa0878b
add byte [eax], al
cmp eax, ebx
je 0x40401f
add eax, esi
cmp dword [eax], ebx
je 0x40401f
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40401a
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x404004
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40400c
cmp edx, ebx
jne 0x40415a
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x403fdb
add eax, dword [eax + 4]
jmp 0x403fc8
mov dword [ebp + 0xc], ebx
jmp 0x40402a

Function at 0x40b6d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push edi
xor edi, edi
push esi
push ebx
push edx
mov ebp, dword [esp + 0x18]
lea esi, [ebp + 2]
movzx eax, byte [ebp]
mov byte [esp + 3], al
movzx edx, byte [ebp + 1]
mov byte [esp + 2], dl
cmp edi, dword [esp + 0x20]
jge 0x40b728
inc byte [esp + 3]
movzx ecx, byte [esp + 3]
movzx edx, byte [esi + ecx]
add byte [esp + 2], dl
movzx ebx, byte [esp + 2]
movzx eax, byte [esi + ebx]
mov byte [esi + ecx], al
mov byte [esi + ebx], dl
add dl, byte [esi + ecx]
movzx eax, dl
mov edx, dword [esp + 0x1c]
movzx eax, byte [esi + eax]
xor byte [edx + edi], al
inc edi
jmp 0x40b6ee
movzx eax, byte [esp + 3]
mov byte [ebp], al
movzx edx, byte [esp + 2]
mov byte [ebp + 1], dl
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40e544
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x50], 0
mov dword [eax + 0x58], 0
mov dword [eax + 0x54], 0
ret
Function at 0x417aca
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push edi
push esi
push ebx
sub esp, 0x254
mov edi, dword [esp + 0x264]
push 0x107
lea ebx, [esp + 8]
push ebx
call sub.KERNEL32.dll_GetWindowsDirectoryA
push 0x43e540
push ebx
call sub.msvcrt.dll_strcat
lea eax, [esp + 0x11c]
push eax
push ebx
call sub.KERNEL32.dll_FindFirstFileA
pop ecx
cmp eax, 0xffffffff
mov esi, eax
pop ebx
je 0x417b2d
push 0x140
lea ebx, [esp + 0x118]
push ebx
call edi
pop eax
pop edx
push ebx
push esi
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x417b0b
push esi
call sub.KERNEL32.dll_FindClose
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [esp], eax
push 4
lea eax, [esp + 4]
push eax
call edi
push edi
call fcn.00418897
call fcn.00417a94
add esp, 0x260
pop ebx
pop esi
pop edi
ret

Function at 0x4185ec
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
sub esp, 0x11c
cmp dword [0x44b8e8], 0
jne 0x4186c0
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [0x43b0b8]
mov ebx, eax
or eax, 0xffffffff
cmp edx, 0xffffffff
je 0x4186c8
push edx
call fcn.00417a14
pop ecx
test eax, eax
je 0x418633
push 2
push dword [0x43b0b8]
call fcn.004175a8
pop eax
pop edx
lea eax, [esp + 8]
push eax
push ebx
call fcn.00414d7a
pop edx
xor edx, edx
test eax, eax
pop ecx
je 0x418674
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [esp + 8]
mov ebx, 0x3e8
sub ecx, eax
test ecx, ecx
mov eax, 1
cmovle ecx, eax
mov eax, ecx
cdq
idiv ebx
mov dword [esp], eax
imul eax, edx, 0x3e8
mov edx, esp
mov dword [esp + 4], eax
mov dword [esp + 0xc], 1
mov eax, dword [0x43b0b8]
mov dword [esp + 0x10], eax
push edx
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 1
call dword [0x44b8c8]
test eax, eax
jl 0x4186bb
jne 0x4186a3
mov ebx, dword [esp + 8]
jmp 0x418633
call sub.KERNEL32.dll_GetTickCount
push 1
push dword [0x43b0b8]
call fcn.004175a8
pop ecx
xor eax, eax
pop ebx
jmp 0x4186c8
or eax, 0xffffffff
jmp 0x4186c8
push 0xffffffffffffffff
call fcn.0041842b
pop edx
add esp, 0x11c
pop ebx
ret

Function at 0x4186d0
Capabilities:
Delete file

Disassembly:
push esi
test edx, edx
mov ecx, edx
push ebx
mov esi, dword [esp + 0xc]
mov ebx, eax
jne 0x4186ef
push eax
call sub.msvcrt.dll_remove
mov dword [esi], 0xffffffff
xor eax, eax
pop edx
jmp 0x418735
push 0
cmp edx, 2
mov eax, pe_nt_image_headers32
mov edx, 0
cmovne eax, edx
setne dl
push eax
movzx eax, dl
add eax, 2
push eax
movzx eax, dl
lea eax, [eax + eax*2]
push 0
cmp ecx, 2
mov edx, 0x80000000
push eax
mov eax, 0x40000000
cmovne eax, edx
push eax
push ebx
call sub.KERNEL32.dll_CreateFileA
mov dword [esi], eax
inc eax
setne al
movzx eax, al
pop ebx
pop esi
ret
Function at 0x402c90
Capabilities:
Decrypt data using tea

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 4]
push ebx
push ebp
push esi
mov esi, dword [eax]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push edi
mov edi, 0xc6ef3720
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov ebx, 0x20
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x14]
mov eax, esi
shr eax, 5
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
add dword [esp + 0x10], eax
lea ecx, [edi + esi]
push ecx
lea eax, [esp + 0x2c]
push eax
mov dword [0x457298], 0xffcf03fc
call fcn.00402c60
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x28]
mov dword [0x457298], 0
sub edx, eax
mov ecx, edx
shl ecx, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x1c]
add dword [esp + 0x28], eax
mov eax, edx
shr eax, 5
add eax, ebp
lea ecx, [edi + edx]
xor ecx, eax
mov eax, dword [esp + 0x28]
xor eax, ecx
sub esi, eax
add edi, 0x61c88647
dec ebx
mov dword [0x4572a0], 0xff6b3619
mov dword [0x4572a4], 0xffffffff
jne 0x402cc5
mov eax, dword [esp + 0x24]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov dword [eax + 4], edx
pop ebx
add esp, 0x10
ret 8

Function at 0x402da0
Capabilities:
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x15e8
call fcn.004037a0
cmp dword [0x457bc0], 0x37
jne 0x402e76
push 0
lea eax, [esp + 0x5ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x40121c
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esp + 0xcc]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push 0
push 0
push 0
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
lea eax, [esp + 4]
push eax
push 0
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 0
lea edx, [esp + 0xdec]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push 0
lea eax, [esp + 0x1ec]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
mov ecx, dword [0x457bc4]
mov eax, dword [esp + 0x15ec]
mov dl, byte [ecx + eax + 0x38d6]
mov ecx, dword [0x457294]
mov byte [ecx + eax], dl
add esp, 0x15e8
ret 4
mov edx, dword [0x457bc4]
mov eax, dword [esp + 0x15ec]
mov cl, byte [edx + eax + 0x38d6]
mov edx, dword [0x457294]
mov byte [edx + eax], cl
add esp, 0x15e8
ret 4
Function at 0x408ac9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x440038]
jne 0x408ad3
repz ret
jmp fcn.0040b44c

Function at 0x409c7b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x440038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404c40
and dword [ebp - 0x14], 0
cmp dword [0x458614], 0
mov dword [ebp - 0x18], eax
jne 0x409d2e
push 0x402a3c
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409dd6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402a30
push ebx
call edi
test eax, eax
je 0x409dd6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402a20
push ebx
mov dword [0x458614], eax
call edi
push eax
call esi
push 0x402a0c
push ebx
mov dword [0x458618], eax
call edi
push eax
call esi
push 0x4029f0
push ebx
mov dword [0x45861c], eax
call edi
push eax
call esi
mov dword [0x458624], eax
test eax, eax
je 0x409d2e
push 0x4029d8
push ebx
call edi
push eax
call esi
mov dword [0x458620], eax
mov eax, dword [0x458620]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409d87
cmp dword [0x458624], ecx
je 0x409d87
push eax
call esi
push dword [0x458624]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409d87
test ebx, ebx
je 0x409d87
call edi
test eax, eax
je 0x409d7e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409d7e
test byte [ebp - 8], 1
jne 0x409d87
or dword [ebp + 0x10], 0x200000
jmp 0x409dba
mov eax, dword [0x458618]
cmp eax, dword [ebp - 0x18]
je 0x409dba
push eax
call esi
test eax, eax
je 0x409dba
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409dba
mov eax, dword [0x45861c]
cmp eax, dword [ebp - 0x18]
je 0x409dba
push eax
call esi
test eax, eax
je 0x409dba
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x458614]
call esi
test eax, eax
je 0x409dd6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409dd8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408ac9
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420004]
jne 0x40100a
repz ret
jmp fcn.00401368

Function at 0x40425b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403568
and dword [ebp - 0x14], 0
cmp dword [0x422940], 0
mov dword [ebp - 0x18], eax
jne 0x40430e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4043b6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4043b6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x422940], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x422944], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x422948], eax
call edi
push eax
call esi
mov dword [0x422950], eax
test eax, eax
je 0x40430e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42294c], eax
mov eax, dword [0x42294c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404367
cmp dword [0x422950], ecx
je 0x404367
push eax
call esi
push dword [0x422950]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404367
test ebx, ebx
je 0x404367
call edi
test eax, eax
je 0x40435e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40435e
test byte [ebp - 8], 1
jne 0x404367
or dword [ebp + 0x10], 0x200000
jmp 0x40439a
mov eax, dword [0x422944]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40439a
mov eax, dword [0x422948]
cmp eax, dword [ebp - 0x18]
je 0x40439a
push eax
call esi
test eax, eax
je 0x40439a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x422940]
call esi
test eax, eax
je 0x4043b6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4043b8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x41c1f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0x20
add dword [ebp - 4], 0x20
mov edx, dword [0x1ef4de4]
mov eax, dword [0x1ef4b08]
xor ecx, ecx
mov word [0x1ef4e00], cx
lea ecx, [ebp - 8]
push ecx
push 0x40
push edx
push eax
mov dword [0x1ef4dec], 0x6e0072
mov dword [0x1ef4df0], 0x6c0065
mov dword [0x1ef4df4], 0x320033
mov dword [0x1ef4df8], 0x64002e
mov dword [0x1ef4dfc], 0x6c006c
mov dword [0x1ef4de8], 0x65006b
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x41c370
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x420004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp edi, 0x182
jne 0x41c39d
lea eax, [ebp - 0x820]
push eax
push str.wosevir
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push esi
xor esi, esi
test edi, edi
jle 0x41c3e4
cmp edi, 0x2d
jne 0x41c3b1
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
call fcn.0041c2b0
xor byte [ebx + esi], al
cmp edi, 0xf
jne 0x41c3df
push 0
lea ecx, [ebp - 0x804]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
inc esi
cmp esi, edi
jl 0x41c3a4
pop esi
cmp edi, 0x2d
jne 0x41c3fe
mov dword [0x1ef5170], 0xa62e7790
mov dword [0x1ef5174], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x41c410
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x420dc0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1ef4b08]
push edi
mov edi, dword [0x1ef4de4]
push eax
call fcn.0041c320
add esp, 4
cmp dword [0x1ef4de4], 0x2f
jne 0x41c46d
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0041c370
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41aba8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x41abb7
pop dword [ebp - 0x10]
mov eax, 0x41abb7
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3b400
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0xcd9e4546
sub ecx, 0xcd9e0eaf
xor edx, edx
add edx, eax
mov esi, 0x4d06660f
sub esi, 0x4cc0a40f
add esi, dword [ebp - 0x10]
mov ebx, 0x7c0190a1
sub dword [ebp - 4], ecx
mov edi, dword [esi]
add dword [ebp - 4], 0x95818b8
xor edi, ebx
xor dword [ebp - 8], 0xe3f49b2c
mov dword [edx], edi
add edx, 0xc9f8dc4d
sub edx, 0xc9f8dc49
add esi, 4
loop 0x41ac08
add eax, 0xc1e1e722
add eax, 0x3e1ee60d
mov ebx, eax
add eax, 5
mov ecx, 0xa0125d90
add ecx, 0x602da270
add ecx, dword [ebp - 0x10]
call ebx
leave
ret

Function at 0x41c202
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp + 0x198], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.00408720
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
mov esi, 0x104
push esi
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
call dword [sym.imp.kernel32.dll_GetTempPathW]
test eax, eax
jne 0x41c28e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, edi
jle 0x41c269
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x41c274
mov esi, 0x80004005
push esi
push 0x24e
push 0x44403e
call fcn.004314ce
push 0x444022
jmp 0x41c33c
lea eax, [ebp - 0x78]
push eax
push esi
lea eax, [ebp - 0x70]
push eax
call fcn.0041c14a
mov esi, eax
cmp esi, edi
jge 0x41c2ac
push 0x443ffc
jmp 0x41c33c
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.kernel32.dll_ProcessIdToSessionId]
test eax, eax
je 0x41c324
push dword [ebp - 0x80]
lea eax, [ebp - 0x74]
push 0x443ff4
push eax
call fcn.0042ff9c
mov esi, eax
add esp, 0xc
cmp esi, edi
jge 0x41c2e2
push 0x443fca
jmp 0x41c33c
lea eax, [ebp - 0x7c]
push eax
push SysReAllocString
push dword [ebp - 0x74]
call fcn.0041c14a
mov esi, eax
cmp esi, edi
jge 0x41c300
push 0x443f9e
jmp 0x41c33c
push dword [ebp - 0x7c]
mov esi, dword [ebp - 0x78]
push dword [ebp - 0x74]
sub esi, dword [ebp - 0x7c]
push dword [ebp - 0x7c]
lea eax, [ebp + esi*2 - 0x70]
push eax
push edi
push edi
call dword [sym.imp.kernel32.dll_CompareStringW]
cmp eax, 2
jne 0x41c324
mov dword [ebp - 0x78], esi
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push eax
push ebx
call main
mov esi, eax
cmp esi, edi
jge 0x41c344
push 0x443f82
push esi
call fcn.004314ba
pop ecx
pop ecx
cmp dword [ebp - 0x74], edi
je 0x41c351
push dword [ebp - 0x74]
call fcn.0042ead8
mov ecx, dword [ebp + 0x198]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408498
add ebp, 0x19c
leave
ret
Function at 0x41427e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x740615
call fcn.00402588
test eax, eax
je 0x4142c1
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [0x740615]
test eax, eax
jne 0x4142ae
mov eax, 0x4b583b
push eax
push 1
mov ebx, 0x244
call fcn.004823a0
add esp, 0x10
mov ebx, dword [0x740599]
add ebx, 0x10
mov dword [ebp - 4], ebx
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00481e00
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
push dword [ebx]
call fcn.004031d4
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x41431d
push ebx
call fcn.0047cbd4
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x4143e3
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
mov eax, str.open
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0040665c
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x414357
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [0x740599]
add ebx, 0x10
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0040665c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 1
push 0
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x414396
add eax, 8
push eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4143a1
add eax, 8
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4143c3
push 6
call fcn.0047cbda
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4143d3
push ebx
call fcn.0047cbd4
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4143e3
push ebx
call fcn.0047cbd4
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x461ad1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x20], 0
jne 0x461aeb
mov dword [ebp + 0x1c], 1
cmp dword [ebp + 0x18], 0
jne 0x461b13
mov eax, str.open
push eax
mov ebx, dword [ebp + 0x14]
mov ebx, dword [ebx]
test ebx, ebx
je 0x461b0d
push ebx
call fcn.0047cbd4
add esp, 4
pop eax
mov ebx, dword [ebp + 0x14]
mov dword [ebx], eax
mov dword [ebp - 4], esp
push dword [ebp + 0x1c]
push 0x4b583b
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
mov ebx, dword [ebp + 0x14]
push dword [ebx]
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x461b4e
push 6
call fcn.0047cbda
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x20
mov eax, 0
setg al
jmp 0x461b62
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4913e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
test ebx, ebx
push ebp
je 0x491408
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x491408
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esp + 0x218]
mov cl, byte [ebp]
test cl, cl
je 0x4914e2
mov eax, ebp
mov edx, ebp
cmp cl, 0x2f
je 0x491428
cmp cl, 0x5c
jne 0x49142a
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x49141e
push esi
cmp eax, ebp
push edi
je 0x49146c
sub eax, ebp
mov esi, ebp
mov ecx, eax
lea edi, [esp + 0x114]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x114], 0
lea eax, [esp + 0x114]
push eax
push ebx
call fcn.004913e0
add esp, 8
test ebx, ebx
mov byte [esp + 0x10], 0
je 0x491498
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
cmp eax, 0xffffffff
pop esi
jne 0x4914e2
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop ebp
pop ebx
add esp, 0x208
ret