joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ff20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43766d
mov eax, dword fs:[0]
push eax
sub esp, 0x138
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449250]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x15c]
mov edi, edx
movzx eax, byte [edi + 0x164]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0041f6f0
mov dword [esp + 0x154], 0
cmp dword [esi + 4], 0
je 0x42000d
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x41ff8e
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42000d
shr eax, 4
not al
and al, 1
je 0x42000d
cmp byte [esi + 0x11c], 0
je 0x41ffb4
add esi, 0xc
jmp 0x41ffb7
mov esi, dword [esi + 8]
add esi, 4
push esi
lea ecx, [esp + 0x1c]
call fcn.0040f7d0
test al, al
jne 0x41ffd6
mov eax, ebp
call fcn.0040ba40
push 0x4440c4
jmp 0x420019
lea ebx, [esp + 0x18]
call fcn.0041f830
test al, al
jne 0x41fff4
push 0x4440d4
mov eax, ebp
call fcn.00405520
mov eax, ebx
push eax
jmp 0x42002d
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x158], 0xffffffff
call fcn.00420060
mov al, 1
jmp 0x42003f
mov eax, ebp
call fcn.0040ba40
push 0x4440b8
push 0x441f54
mov edx, eax
call fcn.0040c340
add esp, 8
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x158], 0xffffffff
call fcn.00420060
xor al, al
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 4

Function at 0x4201b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x435f08
mov eax, dword fs:[0]
push eax
mov eax, dword [0x449250]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x18]
xor ecx, ecx
mov byte [eax + 4], cl
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], fcn.00424233
mov dword [eax + 0x24], fcn.004245d8
mov dword [eax + 0x28], fcn.004229f3
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], vtable.n_config::t_arraySection_class_t_hookConfigFile::t_item_.0
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0xc

Function at 0x421730
Capabilities:
Create thread
Get thread local storage value

Disassembly:
cmp dword [0x44b760], 0
je 0x421798
push esi
push 0xc
call fcn.00424233
mov esi, eax
add esp, 4
mov dword [esi], 0x419120
mov dword [esi + 4], edi
cmp dword [0x44b760], 0
jne 0x42175c
xor eax, eax
jmp 0x421768
mov eax, dword [0x44b768]
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [esi + 8], eax
test eax, eax
je 0x42178b
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
push esi
push 0
push 0x421670
call fcn.00424bda
add esp, 0xc
pop esi
ret
push esi
call fcn.004229f3
add esp, 4
xor eax, eax
pop esi
ret
push edi
push 0
push 0x419120
call fcn.00424bda
add esp, 0xc
ret
Function at 0x4217b0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x44b760], 0
je 0x421805
mov eax, dword [0x44b768]
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x421805
cmp dword [eax], 1
jbe 0x421805
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 4]
test eax, eax
je 0x421805
push 0
push 0x44c2d8
push 0x44c00c
push 0
push eax
call fcn.00435d5a
add esp, 0x14
test eax, eax
je 0x421805
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 4]
mov byte [ecx], al
mov al, 1
ret
xor al, al
ret

Function at 0x421a60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x449250]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor eax, eax
push 0x1fe
mov esi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.00429980
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x20019
push 0
push 0x443404
push 0x80000002
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x421ad1
xor al, al
pop esi
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.004223b0
add esp, 0x210
ret
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push esi
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x421ab9
lea eax, [esp + 0x10]
mov edx, edi
call fcn.0040bf70
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
mov al, 1
call fcn.004223b0
add esp, 0x210
ret

Function at 0x4223b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449250]
jne 0x4223ba
repz ret
jmp fcn.00427446
Function at 0x4326c4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00426315
and dword [ebp - 4], 0
cmp dword [0x44cf68], 0
mov ebx, eax
jne 0x432775
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x432826
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x432826
push eax
call fcn.004262a3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44cf68], eax
call esi
push eax
call fcn.004262a3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44cf6c], eax
call esi
push eax
call fcn.004262a3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44cf70], eax
call esi
push eax
call fcn.004262a3
pop ecx
mov dword [0x44cf78], eax
test eax, eax
je 0x432775
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004262a3
pop ecx
mov dword [0x44cf74], eax
mov eax, dword [0x44cf74]
cmp eax, ebx
je 0x4327cd
cmp dword [0x44cf78], ebx
je 0x4327cd
push eax
call fcn.0042631e
push dword [0x44cf78]
mov esi, eax
call fcn.0042631e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4327cd
test edi, edi
je 0x4327cd
call esi
test eax, eax
je 0x4327c4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4327c4
test byte [ebp - 0xc], 1
jne 0x4327cd
or dword [ebp + 0x10], 0x200000
jmp 0x432806
mov eax, dword [0x44cf6c]
cmp eax, ebx
je 0x432806
push eax
call fcn.0042631e
pop ecx
test eax, eax
je 0x432806
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x432806
mov eax, dword [0x44cf70]
cmp eax, ebx
je 0x432806
push eax
call fcn.0042631e
pop ecx
test eax, eax
je 0x432806
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44cf68]
call fcn.0042631e
pop ecx
test eax, eax
je 0x432826
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x432828
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10009070
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov esi, ecx
mov eax, dword [0x10023040]
xor eax, esp
mov dword [esp + 0x88], eax
cmp dword [ecx + 0x10], 0
sete byte [esp + 0x2b]
mov eax, 0xb5a61d41
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [esp + 0x44]
lea ebx, [esp + 0x34]
nop word cs:[eax + eax]
cmp eax, 0x451dfef4
jle 0x100090e0
cmp eax, 0x451dfef5
je 0x10009129
cmp eax, 0x70b6d5dc
je 0x1000913b
cmp eax, 0x77eac794
jne 0x100090b0
jmp 0x100091dc
cmp eax, 0xb5a61d41
je 0x100091c5
cmp eax, 0xfa0af7ca
jne 0x100090b0
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call ebp
sub esp, 4
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call ebp
sub esp, 4
mov eax, 0x451dfef5
jmp 0x100090b0
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov eax, 0x77eac794
jmp 0x100090b0
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
movups xmmword [eax + 0x30], xmm0
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x40], 0
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x30]
mov eax, dword [esp + 0x30]
movups xmmword [eax], xmm0
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10009179
mov eax, dword [esi]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], edi
movaps xmm0, xmmword [0x1001f970]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
mov eax, 0xfa0af7ca
mov ecx, 0x451dfef5
cmove eax, ecx
jmp 0x100090b0
cmp byte [esp + 0x2b], 0
mov eax, 0x70b6d5dc
mov ecx, 0x77eac794
cmovne eax, ecx
jmp 0x100090b0
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.10010c8a
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10011bb6
Capabilities:
Parse pe header

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

Function at 0x10012f30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10012f5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10012f5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10013280
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d620
push 0x1001d618
push str.FlsAlloc
push 0x1f
call fcn.10013563
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100132b4
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x100132ba
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100132fe
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d630
push 0x1001d628
push str.FlsGetValue
push 0x21
call fcn.10013563
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013335
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001333d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1001d638
push 0x1001d630
push str.FlsSetValue
push 0x22
call fcn.10013563
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10013377
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001623e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100162db
push ebx
push esi
call fcn.100162de
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10016142
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10016288
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100162da
push edi
push eax
call fcn.1001653c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100162a8
call fcn.10014830
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100162d9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10016142
add esp, 0x20
test eax, eax
jne 0x100162c7
push edi
call fcn.10014830
jmp 0x100162cf
push ebx
call fcn.10014830
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1178d40
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1178d4a
pushal
call 0x1178d50
pop ebp
sub ebp, 0x10
sub ebp, 0xd78d40
jmp 0x1178d66
mov eax, 0xd78d40
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d2
mov edx, 0x6041339c
xor byte [eax], dl
inc eax
dec ecx
jne 0x1178d7d
jmp 0x1178d90
pop ss
push ecx
pop ss
adc eax, 0x9c9c9ca0
sbb eax, 0x9c9c645d
pushfd
lahf
push ecx
and al, 0x9b
pushfd
pushfd
pushfd
mov ah, 0x9c
pushfd
pushfd
imul edi, dword [esi - 0x61], 0x54
pop ss
sbb eax, 0x9c9c9c90
lahf
pop ecx
adc eax, edi
mov eax, 0xb8981560
adc eax, edi
mov eax, 0xb8981560
hlt
Function at 0x4195f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
xor eax, eax
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x24]
test esi, esi
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xc], ebx
jne 0x419630
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
add esp, 0x1c
ret
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebp
call sub.msvcrt.dll__read
test eax, eax
mov ebx, eax
jns 0x419650
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x419630
mov eax, ebx
jmp 0x419615

Function at 0x41b0d0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov edx, dword [esp + 0x24]
test edx, edx
je 0x41b0e0
cmp byte [edx], 0
jne 0x41b143
mov dword [esp], 0x41b0a3
call sub.msvcrt.dll_getenv
test eax, eax
je 0x41b0f5
cmp byte [eax], 0
jne 0x41b100
mov eax, 2
add esp, 0x1c
ret
mov dword [esp + 0x14], 1
mov ecx, dword [0x428770]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x41b020
mov dword [esp + 0x18], ecx
mov dword [esp + 8], 0x41afe0
mov dword [esp + 4], eax
mov dword [esp], 0x41b0b3
call fcn.0041e9b0
mov eax, dword [eax*4 + 0x41b020]
jmp 0x41b0fa
mov dword [esp + 4], edx
mov ecx, dword [0x428770]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x41b020
mov dword [esp + 8], 0x41afe0
mov dword [esp], edx
jmp 0x41b135
Function at 0x41fc80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov dword [0x429428], 0
mov eax, dword [0x428790]
mov ebx, dword [ebp + 0x10]
push 0x41fc70
mov dword [0x429468], eax
mov dword [0x429458], eax
call sub.msvcrt.dll_getenv
mov dword [0x429448], eax
add esp, 0x10
mov dl, byte [ebx]
cmp dl, 0x2d
je 0x41fcf0
cmp dl, 0x2b
je 0x41fce0
test eax, eax
sete al
and eax, 0xff
mov dword [0x429438], eax
mov eax, ebx
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [0x429438], 0
inc ebx
jmp 0x41fcd0
mov dword [0x429438], 2
jmp 0x41fcea

Function at 0x420ec0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
push dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
call sub.msvcrt.dll__get_osfhandle
add esp, 0x10
cmp eax, 0xffffffff
mov edi, eax
je 0x420f34
push 0
push esi
push ebx
push dword [ebp + 8]
call sub.msvcrt.dll__lseeki64
mov ecx, edx
xor ecx, esi
xor eax, ebx
add esp, 0x10
or ecx, eax
je 0x420f14
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
mov edx, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
leave
ret
sub esp, 0xc
push edi
call sub.KERNEL32.dll_SetEndOfFile
add esp, 0xc
xor edx, edx
test eax, eax
jne 0x420f0a
call sub.msvcrt.dll__errno
mov dword [eax], fcn.00423110
jmp 0x420f05
call sub.msvcrt.dll__errno
mov dword [eax], 9
jmp 0x420f05
Function at 0x421314
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x25c
mov edx, dword [ebp + 8]
test edx, edx
mov esi, dword [edx + 4]
je 0x42145b
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
cmp ebx, 0xffffffff
je 0x4213d4
sub esp, 8
lea edi, [ebp - 0x158]
push edi
push ebx
call sub.KERNEL32.dll_FindNextFileA
pop edx
test eax, eax
pop ecx
je 0x4213b8
test byte [ebp - 0x158], 0x10
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
je 0x4213b0
mov byte [esi + 0x12], 4
lea ebx, [ebp - 0x12c]
xor eax, eax
mov edi, ebx
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esi + 0x13], cl
mov word [esi + 0x10], 0x108
push eax
push 0x104
push ebx
lea edx, [esi + 0x14]
push edx
call sub.msvcrt.dll_strncpy
mov ebx, dword [ebp + 8]
inc dword [ebx + 0x14]
lea edx, [esi + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
leave
ret
mov byte [esi + 0x12], 8
jmp 0x42136d
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x12
je 0x4213d0
call fcn.00423110
mov esi, eax
call sub.msvcrt.dll__errno
mov dword [eax], esi
xor edx, edx
jmp 0x4213a4
sub esp, 8
push dword [esi]
lea edx, [ebp - 0x268]
push edx
call sub.msvcrt.dll_strcpy
lea edi, [ebp - 0x268]
xor eax, eax
cld
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
mov al, byte [ecx + ebp - 0x26a]
add esp, 0x10
cmp al, 0x2f
je 0x42141d
cmp al, 0x5c
je 0x42141d
sub esp, 8
push 0x421310
lea ecx, [ebp - 0x268]
push ecx
call sub.msvcrt.dll_strcat
add esp, 0x10
sub esp, 8
push 0x421312
lea ecx, [ebp - 0x268]
push ecx
call sub.msvcrt.dll_strcat
pop eax
pop edx
lea edx, [ebp - 0x158]
push edx
lea edi, [ebp - 0x268]
push edi
call sub.KERNEL32.dll_FindFirstFileA
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
pop ebx
xor edx, edx
inc eax
pop edi
je 0x4213a4
jmp 0x421352
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
jmp 0x4213d0

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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4214e1
cmp byte [ebx], 0
jne 0x4214f8
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor edx, edx
lea esp, [ebp - 8]
pop ebx
mov eax, edx
pop esi
leave
ret
sub esp, 0xc
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x421575
and eax, 0x10
jne 0x42151c
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
jmp 0x4214ec
sub esp, 0xc
push 0x18
call sub.msvcrt.dll_malloc
add esp, 0x10
xor edx, edx
test eax, eax
mov esi, eax
je 0x4214ee
sub esp, 0xc
push 0x118
call sub.msvcrt.dll_malloc
add esp, 0x10
xor edx, edx
test eax, eax
je 0x4214ee
mov dword [eax], ebx
mov dword [esi], 0xffffffff
mov dword [esi + 4], eax
mov dword [esi + 8], 0x118
mov dword [esi + 0xc], 0x118
mov dword [esi + 0x10], 8
mov dword [esi + 0x14], 1
mov edx, esi
jmp 0x4214ee
call fcn.00423110
mov esi, eax
call sub.msvcrt.dll__errno
mov dword [eax], esi
jmp 0x4214ec
Function at 0x4215a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push eax
mov eax, dword [ebp + 8]
test eax, eax
mov ebx, dword [ebp + 0xc]
je 0x4215b7
test ebx, 0xffffffe8
je 0x4215cc
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
mov eax, 0xffffffff
mov ebx, dword [ebp - 4]
leave
ret
sub esp, 0xc
push eax
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x421614
test ebx, 0x10
je 0x4215ec
test eax, 0x10
je 0x421607
and ebx, 2
je 0x4215f6
and eax, 1
jne 0x4215fa
xor eax, eax
jmp 0x4215c7
call sub.msvcrt.dll__errno
mov dword [eax], 9
jmp 0x4215c2
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
jmp 0x4215c2
call fcn.00423110
mov ebx, eax
call sub.msvcrt.dll__errno
mov dword [eax], ebx
jmp 0x4215c2

Function at 0x421700
Capabilities:
Contain obfuscated stackstrings
Create pipe

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x110
mov eax, dword [ebp + 8]
test eax, eax
mov esi, dword [ebp + 0xc]
je 0x421794
sub esp, 8
push eax
lea ebx, [ebp - 0x118]
push ebx
mov dword [ebp - 0x118], 0x5c2e5c5c
mov dword [ebp - 0x114], 0x65706970
mov word [ebp - 0x110], 0x5c
call sub.msvcrt.dll_strcat
push 0
push 0x1388
push 0x400
push 0x400
push 0xff
push 6
push 3
push ebx
call sub.KERNEL32.dll_CreateNamedPipeA
add esp, 0x10
cmp eax, 0xffffffff
je 0x421780
sub esp, 8
movzx ecx, si
push ecx
push eax
call sub.msvcrt.dll__open_osfhandle
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
call sub.msvcrt.dll__errno
mov dword [eax], 9
mov eax, 0xffffffff
jmp 0x421777
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
jmp 0x42178b

Function at 0x4218fc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
mov ebx, dword [ebp + 0xc]
mov esi, 0xffffffff
je 0x4219b0
test ebx, ebx
je 0x4219b0
sub esp, 0xc
push 0x4218e3
call sub.KERNEL32.dll_LoadLibraryA
add esp, 0xc
test eax, eax
je 0x4219ac
sub esp, 8
push 0x4218ec
push eax
call sub.KERNEL32.dll_GetProcAddress
pop edx
pop ecx
test eax, eax
je 0x42195b
push ecx
push 0
push edi
push ebx
call eax
test eax, eax
setne cl
pop edx
movzx edx, cl
dec edx
and esi, edx
cmp esi, 0xffffffff
je 0x42196a
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
sub esp, 8
push ebx
push edi
call fcn.004217b0
add esp, 0x10
cmp eax, 0xffffffff
mov esi, eax
jne 0x421960
push esi
push 1
push ebx
push edi
call sub.KERNEL32.dll_CopyFileA
test eax, eax
pop ebx
setne bl
movzx edx, bl
lea esi, [edx - 1]
cmp esi, 0xffffffff
jne 0x421960
call fcn.00423110
mov edi, eax
call sub.msvcrt.dll__errno
mov dword [eax], edi
jmp 0x421960
xor eax, eax
jmp 0x421944
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
mov eax, 0xffffffff
jmp 0x421962
Function at 0x421a8c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x22c
push 0
mov esi, dword [ebp + 8]
call sub.OLE32.dll_OleInitialize
add esp, 0xc
cmp eax, 1
jbe 0x421ad4
push eax
push 0x4219d0
push 0x4219f0
mov edx, dword [sym.imp.msvcrt.dll__iob]
add edx, 0x40
push edx
call sub.msvcrt.dll_fprintf
call sub.OLE32.dll_CoUninitialize
mov eax, 0xffffffff
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
sub esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x426f70
push 1
push 0
push 0x426e80
call sub.OLE32.dll_CoCreateInstance
add esp, 0xc
test eax, eax
js 0x421be0
sub esp, 8
mov ebx, dword [ebp - 0x21c]
mov ecx, dword [ebx]
push esi
push ebx
call dword [ecx + 0x50]
mov edx, dword [ebp - 0x21c]
mov ebx, dword [edx]
push dword [ebp + 0x10]
push edx
call dword [ebx + 0x1c]
push eax
push esi
call sub.msvcrt.dll__strdup
add esp, 0x10
test eax, eax
mov ebx, eax
je 0x421b4a
sub esp, 8
push 0x5c
push eax
call sub.msvcrt.dll_strrchr
mov byte [eax], 0
pop ecx
pop esi
mov edx, dword [ebp - 0x21c]
mov esi, dword [edx]
push ebx
push edx
call dword [esi + 0x24]
pop eax
pop edx
push eax
mov esi, dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
mov ebx, dword [esi]
push eax
push 0x425160
push esi
call dword [ebx]
test eax, eax
pop esi
js 0x421bce
sub esp, 8
push 0x104
lea esi, [ebp - 0x218]
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0
push 0
call sub.KERNEL32.dll_MultiByteToWideChar
pop edx
test eax, eax
pop ecx
js 0x421bbe
push eax
mov ecx, dword [ebp - 0x220]
mov ebx, dword [ecx]
push 1
push esi
push ecx
call dword [ebx + 0x18]
sub esp, 8
mov edx, dword [ebp - 0x220]
mov ecx, dword [edx]
push edx
mov esi, eax
call dword [ecx + 8]
mov ebx, dword [ebp - 0x21c]
mov ecx, dword [ebx]
push ebx
call dword [ecx + 8]
mov eax, esi
jmp 0x421acd
push eax
push 0x4219d0
push 0x421a30
jmp 0x421ab4
push ebx
push 0x4219d0
push 0x421a53
jmp 0x421ab4
push eax
push 0x4219d0
push 0x421a6e
jmp 0x421ab4

Function at 0x421fd0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
push ebx
mov ebx, dword [ebp + 0xc]
je 0x422038
test ebx, ebx
je 0x422038
sub esp, 8
push 0
push ebx
call fcn.004215a0
add esp, 0x10
test eax, eax
je 0x422028
sub esp, 8
push ebx
push esi
call sub.KERNEL32.dll_MoveFileA
pop edx
test eax, eax
pop ecx
je 0x422010
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
leave
ret
call fcn.00423110
mov esi, eax
call sub.msvcrt.dll__errno
mov dword [eax], esi
mov eax, 0xffffffff
jmp 0x422007
sub esp, 0xc
push ebx
call fcn.00421690
add esp, 0x10
jmp 0x421ff5
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
jmp 0x42201e