joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003560
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x24]
mov dword [ebp - 0xc], edi
jmp 0x10003573
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x34]
sub ebx, dword [esi + 0x6c]
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x24]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x100035ed
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.10026810
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x100035c1
sub eax, edi
jmp 0x100035c3
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x100035b2
mov ecx, dword [esi + 0x38]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x100035e0
sub eax, edi
jmp 0x100035e2
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x100035d1
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x100036a4
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x64]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x30]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x10003613
mov ebx, ecx
test ebx, ebx
je 0x10003668
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x10003637
mov eax, dword [edi]
mov ecx, dword [edi + 0x30]
push ebx
call fcn.10002ef0
add esp, 4
jmp 0x10003650
cmp eax, 2
jne 0x10003656
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x10003649
xor eax, eax
jmp 0x10003653
mov edx, ebx
call fcn.10003050
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.10026810
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x6c], ebx
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x10003690
mov edx, dword [esi + 0x64]
add edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x100036a4
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x10003570
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100079e0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
sub esp, 8
cmp eax, 0xffffffff
jne 0x100079f6
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x10008250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10039090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
xor ebx, ebx
cmp ecx, ebx
je 0x10008277
mov eax, dword [ecx]
mov edx, dword [eax + 4]
call edx
mov dword [esi + 4], ebx
push 0x28
call fcn.1001e5cd
add esp, 4
cmp eax, ebx
je 0x1000831a
mov dword [eax], vtable.ProtocolFilters::MemoryStream.0
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], vtable.ProtocolFilters::IOB.0
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ebx
mov dword [eax + 0x20], 0x6400000
mov ecx, 1
mov dword [eax + 0x24], ecx
push edi
mov dword [esi + 4], eax
xor eax, eax
lea edi, [esi + 0xe]
mov dword [esi + 8], 0x40000
mov word [edi], ax
test byte [0x1003b998], cl
jne 0x100082e2
or dword [0x1003b998], ecx
push 0x1002d990
call fcn.1001dff0
add esp, 4
lea esi, [ebp - 0x20]
mov eax, 0x1003b790
call fcn.1000d700
mov esi, 8
cmp dword [ebp - 0x10], ebx
je 0x1000832c
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x10008304
lea eax, [ebp - 0x20]
push eax
push 0x10034498
push edi
mov edx, 0x104
call fcn.100085c0
add esp, 0xc
jmp 0x10008338
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001dd97
mov esp, ebp
pop ebp
ret
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
pop edi
cmp dword [ebp - 0xc], esi
jb 0x1000834a
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.1001e0d5
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1001dd97
mov esp, ebp
pop ebp
ret
Function at 0x100083b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x10039090]
xor eax, esp
mov dword [esp + 0x220], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x100083f2
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1001dd97
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp + 0xc]
mov edx, dword [ecx]
push esi
push eax
mov eax, dword [edx + 0x10]
call eax
mov ebx, eax
mov dword [esp + 0xc], ebx
test ebx, ebx
je 0x100083d9
cmp byte [edi + 0xc], 0
jne 0x10008519
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov esi, dword [edi + 8]
xor ecx, ecx
cmp edx, ecx
jb 0x10008519
ja 0x10008433
cmp eax, esi
jbe 0x10008519
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x100344a0
lea edx, [edi + 0xe]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10008519
push 8
call fcn.1001e5cd
mov esi, eax
add esp, 4
test esi, esi
je 0x10008519
lea eax, [esp + 0x20]
push eax
mov dword [esi], vtable.ProtocolFilters::FileStream.0
mov dword [esi + 4], 0xffffffff
call fcn.100078a0
push 1
test al, al
jne 0x1000848f
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
jmp 0x10008519
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push 0
push 0
call eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x14], edx
mov edx, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [edx + 0x18]
push esi
call eax
mov ecx, dword [edi + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [edx + 0x14]
call eax
cmp ebx, eax
jne 0x100084ca
cmp dword [esp + 0x1c], edx
je 0x100084ef
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.1001dd97
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
mov dword [edi + 4], esi
mov edx, dword [esi]
mov edx, dword [edx + 8]
push eax
push ecx
mov ecx, esi
call edx
mov ebx, dword [esp + 0xc]
mov byte [edi + 0xc], 1
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.1001dd97
mov esp, ebp
pop ebp
ret 8
Function at 0x1000d0d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1002d598
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x10039090]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0xc], vtable.ProtocolFilters::IOB.0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0x6400000
mov dword [esp + 0x20], 1
mov dword [esp + 0x30], esi
mov ebx, 0xa
lea ebx, [ebx]
add ebx, ebx
cmp ebx, 0x2002
jbe 0x1000d130
cmp ebx, 0x6400000
jb 0x1000d147
mov ebx, 0x2002
push ebx
call fcn.1001e007
add esp, 4
test eax, eax
je 0x1000d170
mov dword [esp + 0x18], ebx
mov esi, eax
mov ebx, 0x2001
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
mov byte [eax + 0x2001], 0
jmp 0x1000d174
mov ebx, dword [esp + 0x14]
mov eax, dword [edi]
mov edx, dword [eax + 0x14]
mov ecx, edi
call edx
or eax, edx
je 0x1000d1c3
mov eax, dword [edi]
mov edx, dword [eax + 8]
push 0
push 0
push 0
mov ecx, edi
call edx
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push ebx
push esi
mov ecx, edi
call edx
test eax, eax
je 0x1000d1c3
nop
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push esi
push eax
push 1
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000c390
mov edx, dword [edi]
mov eax, dword [edx + 0xc]
push ebx
push esi
mov ecx, edi
call eax
test eax, eax
jne 0x1000d1a0
test esi, esi
je 0x1000d1d0
push esi
call fcn.1001e09b
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000d5f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10039090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, esi
sub edx, esi
jmp 0x1000d610
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1000d610
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
push 0x10
push 3
push 0
push 0
push 0x40000000
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 0xffffffff
je 0x1000d64d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000d652
push 0
push esi
call ebx
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1000d660
lea eax, [ebp - 0x20c]
add eax, 0xfffffffe
jmp 0x1000d680
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x1000d680
mov ecx, dword [str.SSL]
mov edx, dword [0x100345e4]
push 0
push 0x10
push 3
push 0
mov dword [eax], ecx
mov cx, word [0x100345e8]
push 0
mov dword [eax + 4], edx
push 0x40000000
lea edx, [ebp - 0x20c]
push edx
mov word [eax + 8], cx
call edi
cmp eax, 0xffffffff
je 0x1000d6de
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001dd97
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x20c]
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.1001dd97
mov esp, ebp
pop ebp
ret
Function at 0x1000e320
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002ccba
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x10039090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], edi
mov word [ebx + 4], 0x100
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebx + 0xc], eax
mov dword [ebx], vtable.ProtocolFilters::FTPFilter.0
mov dword [ebx + 8], edi
mov ecx, vtable.ProtocolFilters::IOB.0
mov eax, 0x6400000
mov edx, 1
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x2c], ecx
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x34], esi
mov dword [ebx + 0x38], esi
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], edx
push 4
mov dword [ebx + 0x44], vtable.ProtocolFilters::PFObjectImpl.0
mov dword [ebx + 0x48], 0x2bc
mov dword [ebx + 0x50], edx
mov byte [ebx + 0x55], dl
call fcn.1001e007
add esp, 4
mov dword [ebx + 0x4c], eax
cmp eax, esi
je 0x1000e3c6
mov dword [eax], esi
mov byte [ebx + 0x54], 0
push 4
mov dword [ebx + 0x58], vtable.ProtocolFilters::PFObjectImpl.0
mov dword [ebx + 0x5c], 0x2bd
mov dword [ebx + 0x64], 1
mov byte [ebx + 0x69], 1
call fcn.1001e007
add esp, 4
mov dword [ebx + 0x60], eax
cmp eax, esi
je 0x1000e3f6
mov dword [eax], esi
mov byte [ebx + 0x68], 0
push fcn.10002ea0
push 0x10002ed0
push 6
push 0x1c
lea ecx, [ebx + 0x70]
push ecx
mov byte [ebp - 4], 4
call fcn.1001e844
lea eax, [ebx + 0x118]
mov byte [ebp - 4], 5
mov ecx, dword [ebx + 8]
cmp eax, esi
je 0x1000e43a
lea esi, [ecx + 0x10]
mov ecx, 0x10
mov edi, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x7c]
xor esi, esi
mov dword [ebx + 0x10], esi
mov byte [ebx + 0x6c], 0
mov eax, dword [edi + 8]
mov edi, dword [edi + 0xc]
push edi
push eax
push 0x7023
push 0x76ea
push str.uXU
call fcn.10001620
add esp, 0xc
push eax
lea edx, [ebp - 0x78]
push 0x64
push edx
call fcn.1001e96a
lea eax, [ebp - 0x78]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000e475
sub eax, edx
mov edi, eax
lea esi, [ebx + 0xfc]
lea eax, [ebp - 0x78]
call fcn.10007710
mov byte [ebx + 5], 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001dd97
mov esp, ebp
pop ebp
ret 4

Function at 0x1001dd97
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10039090]
jne 0x1001dda1
repz ret
jmp fcn.1001f3bd
Function at 0x10024d32
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10039090]
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.10022b56
and dword [ebp - 0x14], 0
cmp dword [0x1003b418], 0
mov dword [ebp - 0x18], eax
jne 0x10024de5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10024e8d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10024e8d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1003b418], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1003b41c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1003b420], eax
call edi
push eax
call esi
mov dword [0x1003b428], eax
test eax, eax
je 0x10024de5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1003b424], eax
mov eax, dword [0x1003b424]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10024e3e
cmp dword [0x1003b428], ecx
je 0x10024e3e
push eax
call esi
push dword [0x1003b428]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10024e3e
test ebx, ebx
je 0x10024e3e
call edi
test eax, eax
je 0x10024e35
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10024e35
test byte [ebp - 8], 1
jne 0x10024e3e
or dword [ebp + 0x10], 0x200000
jmp 0x10024e71
mov eax, dword [0x1003b41c]
cmp eax, dword [ebp - 0x18]
je 0x10024e71
push eax
call esi
test eax, eax
je 0x10024e71
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10024e71
mov eax, dword [0x1003b420]
cmp eax, dword [ebp - 0x18]
je 0x10024e71
push eax
call esi
test eax, eax
je 0x10024e71
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1003b418]
call esi
test eax, eax
je 0x10024e8d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10024e8f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001dd97
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 0x41c1e0
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 0x41c360
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 0x41c38d
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 0x41c3d4
cmp edi, 0x2d
jne 0x41c3a1
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
call fcn.0041c2a0
xor byte [ebx + esi], al
cmp edi, 0xf
jne 0x41c3cf
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 0x41c394
pop esi
cmp edi, 0x2d
jne 0x41c3ee
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 0x41c400
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [str.our_]
sub esp, 0x10
push ebx
mov ebx, dword [0x1ef4b08]
push edi
mov edi, dword [0x1ef4de4]
push eax
call fcn.0041c310
add esp, 4
cmp dword [0x1ef4de4], 0x2f
jne 0x41c45d
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.0041c360
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40181f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], eax
call fcn.00403093
push str.installsource
lea eax, [ebp - 0xc]
push 0x421210
push eax
call fcn.00401531
mov esi, dword [ebp - 0xc]
xor edi, edi
inc edi
add esp, 0xc
cmp dword [ebp - 4], edi
jle 0x4018a7
mov eax, dword [ebp - 8]
push esi
push dword [eax + edi*4]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x40189b
mov ecx, dword [ebp - 4]
lea eax, [edi + 1]
cmp eax, ecx
jge 0x40189e
mov eax, dword [ebp - 8]
push 0x4212c0
push dword [eax + edi*4 + 4]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x4018a5
mov ecx, dword [ebp - 4]
inc edi
cmp edi, ecx
jl 0x40186a
jmp 0x4018a7
mov bl, 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi - 0x10]
call fcn.00401252
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x4018bf
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str.brand
lea ecx, [ebp - 0xc]
call fcn.00403034
mov esi, str.WUZP
push esi
call fcn.0040fbe8
pop ecx
push eax
push esi
lea ecx, [ebp - 0xc]
call fcn.00403380
lea eax, [ebp - 4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, dword [ebp - 0xc]
xor edi, edi
inc edi
mov dword [ebp - 8], eax
cmp dword [ebp - 4], edi
jle 0x40192a
push esi
push dword [eax + edi*4]
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
mov eax, dword [ebp - 8]
jne 0x401928
inc edi
cmp edi, dword [ebp - 4]
jl 0x40190f
jmp 0x40192a
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esi - 0x10]
call fcn.00401252
pop edi
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x401cd1
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x18], esi
je 0x401cf8
test esi, esi
js 0x401d14
cmp esi, dword [edi + 0x18]
jge 0x401d14
mov eax, dword [edi + 0x14]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x18]
jne 0x401cdd
lea ecx, [edi + 0x14]
call fcn.00402da4
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [edi + 0x20]
pop edi
pop esi
pop ebx
jmp fcn.00403122
push 1
push 0xc000008c
call fcn.00401052
int3