joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456020
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x39c
mov eax, dword [esp + 0x3a0]
push esi
push edi
mov edi, ecx
test eax, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x378
je 0x45618c
mov ecx, dword [esp + 0x3ac]
test ecx, ecx
je 0x45618c
mov edx, dword [esp + 0x3b0]
test edx, edx
je 0x45618c
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push ecx
push eax
call esi
test eax, eax
jne 0x45618c
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x456170
cmp dword [esp + 0x10], 0x378
jne 0x456170
cmp dword [esp + 0x158], 1
jne 0x456199
cmp dword [esp + 0x17c], 2
jne 0x456199
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x14]
push eax
push 0x4c8164
push ecx
call fcn.00460272
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push getpeername
call esi
test eax, eax
jne 0x456170
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
mov ecx, edi
call fcn.004561d0
test eax, eax
je 0x456170
mov edx, dword [esp + 0x10]
push 3
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push getpeername
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, edi
call fcn.00455cd0
test eax, eax
je 0x456170
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 8]
lea eax, [esp + 0x2c]
push edx
push eax
push 3
push 0
push str.PackedCatalogItem
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x456199
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x456181
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x45618c
push eax
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x39c
ret 0xc
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4561aa
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x4561b5
push eax
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x39c
ret 0xc
Function at 0x4561d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x480
mov ecx, dword [esp + 0x484]
mov dword [esp], 0x378
test ecx, ecx
je 0x456291
mov eax, dword [esp + 0x488]
test eax, eax
je 0x456291
lea edx, [esp]
push edx
lea edx, [esp + 0x10c]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x456291
cmp dword [esp], 0x378
jne 0x456291
lea eax, [esp + 4]
push 0x104
lea ecx, [esp + 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x456291
lea edx, [esp + 4]
push edx
call fcn.00455c60
add esp, 4
test eax, eax
je 0x456291
cmp dword [esp + 0x234], 1
jne 0x456283
cmp dword [esp + 0x258], 2
jne 0x456283
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x456291
push str.WSPStartup
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x456291
mov eax, 1
add esp, 0x480
ret 8
xor eax, eax
add esp, 0x480
ret 8

Function at 0x4562a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x4562ff
push esi
call fcn.00455c60
add esp, 4
test eax, eax
je 0x4562ff
lea eax, [esp + 4]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x4562ff
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4562ff
push str.SetPara
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
pop esi
neg eax
add esp, 0x104
ret 4
xor eax, eax
pop esi
add esp, 0x104
ret 4
Function at 0x456390
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
jne 0x4563c4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.004562a0
test eax, eax
jne 0x4563dd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push ebp
mov ecx, ebx
call fcn.00456310
cmp eax, 1
je 0x45656a
lea eax, [esp + 0x10]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x456416
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov edx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
jne 0x456492
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x456512
mov eax, dword [esp + 0x14]
push str.PackedCatalogItem
push eax
mov ecx, ebx
call fcn.004561d0
mov ecx, dword [esp + 0x14]
test eax, eax
push ecx
je 0x456529
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
inc esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x24], 0
call edi
test eax, eax
je 0x456432
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x1c]
xor esi, esi
push 0x104
push edx
push esi
push eax
mov dword [esp + 0x28], esi
call edi
test eax, eax
jne 0x4564e0
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push ebp
push edx
push eax
mov ecx, ebx
call fcn.00455e80
test eax, eax
je 0x456512
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
inc esi
push 0x104
push ecx
push esi
push edx
call edi
test eax, eax
je 0x4564ae
cmp dword [esp + 0x18], 1
jb 0x456512
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
dec ecx
push getpeername
push ecx
push ebp
push str.FileName
mov ecx, ebx
call fcn.00455d60
cmp eax, 1
je 0x45655b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x456539
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], 0
jmp 0x456512
push ebp
mov ecx, ebx
call fcn.00456580
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45656a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x110
ret 4
Function at 0x456580
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x114]
push esi
xor esi, esi
push edi
cmp ebp, esi
mov edi, ecx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
jne 0x4565b2
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
push esi
mov ecx, edi
call fcn.00456310
test eax, eax
jne 0x4565cf
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x10c
ret 4
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x4565f6
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x10c
ret 4
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea ecx, [esp + 0x18]
push 0x104
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x456644
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push ebp
push eax
push ecx
mov ecx, edi
call fcn.00456020
test eax, eax
jne 0x45662d
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
inc esi
push 0x104
push edx
push esi
push eax
call ebx
test eax, eax
je 0x456613
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ESPI11
push getpeername
mov ecx, edi
call fcn.00455df0
mov eax, dword [esp + 0x10]
pop ebx
test eax, eax
je 0x456667
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret 4

Function at 0x45b1f0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x45b293
test eax, eax
jbe 0x45b293
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x45b293
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45b23e
xor esi, esi
jmp 0x45b244
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45b26f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0045d120
add esi, eax
push esi
mov ebx, esi
call fcn.0045d120
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x45b250
pop ebp
test edi, edi
pop edi
jne 0x45b293
test ebx, ebx
je 0x45b293
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045f620
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x45b3d5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45b4ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45b4ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.004705fd
mov esi, eax
test esi, esi
je 0x45b4ed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45b4ed
mov ecx, esi
call fcn.0045b340
cmp edi, eax
jge 0x45b4ed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45b473
mov dword [esp + 0x34], 1
jmp 0x45b4ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45b4ed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045a930
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x470fa0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x470fd8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046f054
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046f02c
jmp 0x470fe4
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x472692
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4726d4
call fcn.0047814c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4726d4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4726cb
xor eax, eax
jmp 0x4726dc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004726e2
pop edi
pop esi
pop ebx
ret 4
Function at 0x47867c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4786aa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4786c8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004785e2
jmp 0x4786c8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4786c8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004785e2
test edi, edi
mov eax, edi
jne 0x4786b2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4738ba
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4735cc
inc edi
call fcn.004738f1
sub eax, eax
xor dword [ebx], edx
mov edi, 0xc79b6d06
sub eax, 0xbe4ac79c
add ebx, 2
and eax, edi
inc eax
cmp ebx, esi
jl fcn.004738ba
or edi, edi
sub edi, 0x655bd63f
ret
Function at 0x340016d1
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
cmp dword [ebp + 8], 0
jne 0x340016e5
xor eax, eax
jmp 0x3400179e
mov eax, dword [ebp + 8]
push eax
call fcn.340bd4b7
add esp, 4
add eax, 2
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
call fcn.340bd438
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
shl eax, 1
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.340bd3e0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.340bd8f4
add esp, 8
mov dword [ebp - 0x2c], 0
mov ecx, 6
xor eax, eax
lea edi, [ebp - 0x28]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 3
mov word [ebp - 0x1c], 0x414
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x12], 0
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x34001794
cmp dword [ebp - 0xc], 0x402
je 0x34001794
mov dword [ebp - 0x34], 0
jmp 0x3400179b
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x34]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x3400200f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x34002027
jmp 0x340020ab
mov eax, dword [ebp + 8]
push eax
call fcn.340bd4b7
add esp, 4
cmp eax, 2
jae 0x3400203a
jmp 0x340020ab
mov ecx, dword [ebp + 8]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5c
jne 0x3400205e
mov eax, dword [ebp + 8]
xor ecx, ecx
mov cx, word [eax + 2]
cmp ecx, 0x5c
jne 0x3400205e
mov dword [ebp - 4], 1
jmp 0x340020ab
mov edx, dword [ebp + 8]
mov ax, word [edx]
mov word [ebp - 0x10], ax
mov ecx, dword [ebp + 8]
mov dx, word [ecx + 2]
mov word [ebp - 0xe], dx
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 4
je 0x34002098
cmp dword [ebp - 8], 1
jne 0x340020a1
mov dword [ebp - 4], 1
jmp 0x340020ab
xor ecx, ecx
test ecx, ecx
jne 0x3400201c
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x3400bbf2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
jne 0x3400bc08
mov eax, reloc.WS2_32.dll_bind
jmp 0x3400bdd6
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, 0x341a3c78
call fcn.3407d92e
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x3400bc5b
mov ecx, dword [ebp + 0x10]
and ecx, 1
test ecx, ecx
je 0x3400bc3a
mov eax, reloc.WS2_32.dll_accept
jmp 0x3400bdd6
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, 0x341a3c78
call fcn.3407d9aa
mov edx, dword [ebp - 0xc]
or edx, 1
mov dword [ebp - 0xc], edx
jmp 0x3400bc7f
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, 0x341a3c78
call fcn.3407d476
test eax, eax
jne 0x3400bc7f
mov eax, reloc.WS2_32.dll_closesocket
jmp 0x3400bdd6
mov eax, dword [ebp + 0x10]
and eax, 0x100
test eax, eax
je 0x3400bda7
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.340853b1
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x3400bcb1
cmp dword [ebp - 0x14], 1
je 0x3400bccb
push 1
call fcn.34085420
add esp, 4
test eax, eax
jne 0x3400bccb
mov edx, dword [ebp - 0xc]
or edx, reloc.WS2_32.dll_htonl
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0x10]
and eax, 0x1000
test eax, eax
je 0x3400bd65
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
push 1
call sym.TSandbox.dll_AddFileControlPolicyByProcessID
push 0x341a2b20
lea ecx, [ebp - 0x20]
call fcn.340a6b90
mov edx, dword [ebp + 0xc]
push edx
push 0x34171060
lea eax, [ebp - 0x20]
push eax
call fcn.340aa2b0
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.340020c0
push eax
call fcn.34088228
add esp, 4
push 0x341a2b24
lea ecx, [ebp - 0x1c]
call fcn.340a6b90
mov ecx, dword [ebp + 8]
push ecx
push str.HKEY_USERSTSandbox__s
lea edx, [ebp - 0x1c]
push edx
call fcn.340aa2b0
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.340020c0
push eax
call fcn.34088341
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.340a7330
lea ecx, [ebp - 0x20]
call fcn.340a7330
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0x10]
and eax, 0x10000
test eax, eax
je 0x3400bd81
mov ecx, dword [ebp - 0x18]
or ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp + 0x10]
and edx, 0x20000
test edx, edx
je 0x3400bd96
mov eax, dword [ebp - 0x18]
or al, 2
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.340854da
add esp, 4
call fcn.34089559
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x3400bdd3
mov eax, dword [ebp + 0xc]
push eax
call fcn.3400168a
add esp, 4
test eax, eax
jne 0x3400bdd3
mov ecx, dword [ebp - 0xc]
or ecx, 8
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x34018592
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jne 0x340185a3
xor eax, eax
jmp 0x340185b6
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.340b13b0
add esp, 8
mov esp, ebp
pop ebp
ret 4

Function at 0x34018630
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x3413b9d4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.3400b090
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.3400b090
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x1c
call fcn.3400b090
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.3400b090
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.3400b090
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x28
call fcn.3400b090
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call fcn.3400b090
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.3400b090
mov eax, dword [ebp - 0x10]
mov word [eax], 0
mov ecx, dword [ebp - 0x10]
mov word [ecx + 2], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x34036a84
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
push 4
push 0x34179a90
mov ecx, dword [ebp + 8]
push ecx
call fcn.340bdc7c
add esp, 0xc
test eax, eax
je 0x34036ad9
push 4
push 0x34179a9c
mov edx, dword [ebp + 8]
push edx
call fcn.340bdc7c
add esp, 0xc
test eax, eax
je 0x34036ad9
push 4
push 0x34179aa8
mov eax, dword [ebp + 8]
push eax
call fcn.340bdc7c
add esp, 0xc
test eax, eax
jne 0x34036ae2
mov ecx, dword [ebp + 8]
add ecx, 8
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov edx, dword [ebp - 4]
push edx
call fcn.340bd4b7
add esp, 4
cmp eax, 4
jb 0x34036bda
mov eax, dword [ebp - 4]
xor ecx, ecx
mov cx, word [eax + 2]
cmp ecx, 0x3a
jne 0x34036bda
mov edx, dword [ebp - 4]
xor eax, eax
mov ax, word [edx + 4]
cmp eax, 0x5c
jne 0x34036bda
mov ecx, dword [0x34179ab4]
mov dword [ebp - 0x14], ecx
mov dx, word [0x34179ab8]
mov word [ebp - 0x10], dx
xor eax, eax
mov dword [ebp - 0xe], eax
mov word [ebp - 0xa], ax
mov ecx, dword [ebp - 4]
xor edx, edx
mov dx, word [ecx]
push edx
call fcn.340be790
add esp, 4
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
jne 0x34036bda
mov word [ebp - 0x424], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x422]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x42c], 0x208
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x14]
push eax
call sub.MPR.dll_WNetGetConnectionW
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
jne 0x34036bda
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
lea edx, [ebp - 0x424]
push edx
push 0x34179abc
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.340be718
add esp, 0x14
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
jne 0x34036c23
mov edx, dword [ebp - 4]
push edx
call fcn.340bd4b7
add esp, 4
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x430], eax
jbe 0x34036c0c
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp - 0x430], ecx
mov edx, dword [ebp - 0x430]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.340bd451
add esp, 0xc
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret