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

Disassembly:
sub esp, 0x10
push esi
xor eax, eax
mov esi, ecx
cmp dword [esi + 0x10], 2
push edi
setne al
mov edi, eax
call fcn.101ab5a0
mov ecx, esi
mov byte [esp + 0xc], al
call fcn.101ab5a0
mov byte [esp + 0xd], al
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
cmp dword [edx + eax + 8], 0
jne 0x101ab95a
push ebx
movzx ebx, byte [esp + edi + 0x10]
push ebp
lea ebp, [esp + edi + 0x14]
xor edi, 1
movzx eax, byte [esp + edi + 0x14]
lea edi, [esp + edi + 0x14]
shl ebx, 8
or ebx, eax
lea ecx, [ebx - 0xdc00]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], edi
cmp ecx, 0x3ff
ja 0x101ab823
push 0xfffd
add esi, 0x14
push esi
call fcn.101ab680
add esp, 8
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x10
ret
lea edx, [ebx - 0xd800]
cmp edx, 0x3ff
ja 0x101ab94b
mov ecx, esi
call fcn.101ab5a0
mov ecx, esi
mov byte [esp + 0x14], al
call fcn.101ab5a0
mov byte [esp + 0x15], al
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
cmp dword [edx + eax + 8], 0
jne 0x101ab8f6
jmp 0x101ab864
mov ebp, dword [esp + 0x18]
movzx edi, byte [ebp]
mov eax, dword [esp + 0x1c]
movzx ecx, byte [eax]
shl edi, 8
or edi, ecx
cmp edi, 0xdc00
jb 0x101ab888
cmp edi, 0xe000
jb 0x101ab934
lea edx, [esp + 0x13]
lea ebp, [esi + 0x14]
push edx
mov ecx, ebp
mov byte [esp + 0x17], 0xef
call fcn.101ab610
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
mov byte [esp + 0x17], 0xbf
call fcn.101ab610
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
mov byte [esp + 0x17], 0xbd
call fcn.101ab610
lea edx, [edi - 0xd800]
cmp edx, 0x7ff
ja 0x101ab94b
mov ecx, esi
mov ebx, edi
call fcn.101ab5a0
mov ecx, esi
mov byte [esp + 0x14], al
call fcn.101ab5a0
mov byte [esp + 0x15], al
mov eax, dword [esi]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
cmp dword [edx + eax + 8], 0
je 0x101ab860
lea eax, [esp + 0x13]
add esi, 0x14
push eax
mov ecx, esi
mov byte [esp + 0x17], 0xef
call fcn.101ab610
lea ecx, [esp + 0x13]
push ecx
mov ecx, esi
mov byte [esp + 0x17], 0xbf
call fcn.101ab610
lea edx, [esp + 0x13]
push edx
mov ecx, esi
mov byte [esp + 0x17], 0xbd
call fcn.101ab610
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x10
ret
and ebx, 0x3ff
shl ebx, 0xa
and edi, 0x3ff
or ebx, edi
add ebx, 0x10000
push ebx
add esi, 0x14
push esi
call fcn.101ab680
add esp, 8
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x101b40e2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1027e110]
jne 0x101b40ec
repz ret
jmp fcn.101bf42c
Function at 0x101b9016
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x101b9047
call fcn.101b7092
mov dword [eax], esi
call fcn.101b707f
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.101b45f4
add esp, 0x14
push 0x16
pop eax
jmp 0x101b909c
test dword [ebp + 0xc], 0xfffffff9
jne 0x101b9023
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x101b9074
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.101b70a5
pop ecx
call fcn.101b707f
mov eax, dword [eax]
jmp 0x101b909c
test al, 0x10
jne 0x101b909a
test al, 1
je 0x101b909a
test byte [ebp + 0xc], 2
je 0x101b909a
call fcn.101b7092
mov dword [eax], 5
call fcn.101b707f
mov dword [eax], 0xd
jmp 0x101b906b
xor eax, eax
pop esi
pop ebp
ret
Function at 0x101d1656
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.101bf711
and dword [ebp - 4], 0
cmp dword [0x10286ff8], 0
mov ebx, eax
jne 0x101d1707
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x101d17b8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x101d17b8
push eax
call fcn.101bf69f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10286ff8], eax
call esi
push eax
call fcn.101bf69f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10286ffc], eax
call esi
push eax
call fcn.101bf69f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10287000], eax
call esi
push eax
call fcn.101bf69f
pop ecx
mov dword [0x10287008], eax
test eax, eax
je 0x101d1707
push 0x1025dbe8
push edi
call esi
push eax
call fcn.101bf69f
pop ecx
mov dword [0x10287004], eax
mov eax, dword [0x10287004]
cmp eax, ebx
je 0x101d175f
cmp dword [0x10287008], ebx
je 0x101d175f
push eax
call fcn.101bf71a
push dword [0x10287008]
mov esi, eax
call fcn.101bf71a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101d175f
test edi, edi
je 0x101d175f
call esi
test eax, eax
je 0x101d1756
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101d1756
test byte [ebp - 0xc], 1
jne 0x101d175f
or dword [ebp + 0x10], 0x200000
jmp 0x101d1798
mov eax, dword [0x10286ffc]
cmp eax, ebx
je 0x101d1798
push eax
call fcn.101bf71a
pop ecx
test eax, eax
je 0x101d1798
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101d1798
mov eax, dword [0x10287000]
cmp eax, ebx
je 0x101d1798
push eax
call fcn.101bf71a
pop ecx
test eax, eax
je 0x101d1798
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10286ff8]
call fcn.101bf71a
pop ecx
test eax, eax
je 0x101d17b8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x101d17ba
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [0x4182d8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4182dc]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0x28], 0x9e3779b9
mov dword [ebp - 0x34], eax
call fcn.00401200
add dword [ebp - 0x10], 0x23f
cmp dword [0xaf5964], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x834]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov eax, dword [0x4182e4]
mov edi, dword [0x4182e0]
push 0x20
pop edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, esi
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, edi
cmp dword [0xaf5964], 0xfa9
mov dword [ebp - 8], eax
mov eax, dword [0xaf5960]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0xaf5964], 0x3eb
mov dword [0xaf5960], eax
mov eax, dword [0xaf58b8]
cmove eax, dword [ebp - 0xc]
mov dword [0xaf58b8], eax
mov eax, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x14], 0
mov dword [0xaf595c], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 4]
sub ebx, eax
mov dword [ebp - 0x18], eax
mov eax, ebx
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
add eax, ebx
and dword [ebp - 4], 0
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0x14], eax
cmp dword [0xaf5964], 0xb03
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jne 0x401362
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x28]
sub dword [ebp - 0x10], eax
dec edx
mov dword [ebp - 0x20], edx
jne 0x401277
mov edi, dword [ebp - 0x30]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c062
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407f6c
mov dword [ebp - 0x14], eax
cmp dword [0x451154], esi
jne 0x40c155
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c0e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c235
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c235
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c235
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x451154], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x451158], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45115c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x451164], eax
test eax, eax
je 0x40c152
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x451160], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c17a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c16d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c18f
push 4
pop eax
jmp 0x40c237
cmp dword [ebp - 0x14], esi
je 0x40c18f
push dword [0x451154]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c174
mov eax, dword [0x451160]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c1ed
cmp dword [0x451164], edi
je 0x40c1ed
push eax
call ebx
push dword [0x451164]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c1ed
test eax, eax
je 0x40c1ed
call ecx
test eax, eax
je 0x40c1e2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c1e2
test byte [ebp - 8], 1
jne 0x40c1ed
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c21d
mov eax, dword [0x451158]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
call eax
mov esi, eax
test esi, esi
je 0x40c21a
mov eax, dword [0x45115c]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x451154]
call ebx
test eax, eax
je 0x40c235
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c237
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040a8
mov esp, ebp
pop ebp
ret
Function at 0x401220
Capabilities:
Create thread
Delete file
Get common file path
Terminate process

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x12c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
call fcn.004018d0
lea ecx, [esp + 0x12c]
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.004018e0
test eax, eax
jne 0x40129c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x12c]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.004018e0
test eax, eax
je 0x40127a
lea ecx, [esp + 0x10]
call fcn.00401a90
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 8
mov dword [0x401aa4], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x401aa4]
mov dword [0x401aa0], eax
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401a10
lea ecx, [esp + 0x10]
call fcn.00401a70
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x28]
push 0x104
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0x28]
push 0x40119c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x28]
lea edx, [esp + 0x12c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4013a5
lea ecx, [esp + 0x14]
call fcn.004018d0
lea eax, [esp + 0x28]
push 0x1001
push eax
lea ecx, [esp + 0x1c]
call fcn.004018e0
test eax, eax
je 0x4013a5
mov ecx, dword [0x401aa4]
mov edx, dword [0x401aa0]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00401a40
lea eax, [esp + 0x12c]
push 0x104
push eax
lea ecx, [esp + 0x1c]
jmp section..htext
push 0x401190
jmp 0x402600

Function at 0x4014f0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40151e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, esi
pop esi
ret
Function at 0x401570
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
mov dword [esp], 0
push eax
push 0xf003f
push 0
push 0x4011c0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401662
mov ecx, dword [0x4011b0]
mov eax, dword [0x4011b8]
mov edx, dword [0x4011b4]
mov dword [esp + 0xc], ecx
mov cx, word [0x4011bc]
push edi
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], cx
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x1e]
mov dword [esp + 0x14], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0xc]
lea eax, [esp + 0x114]
push edx
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push 0
push edx
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401656
mov edx, dword [esp + 0x21c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0xc]
push 1
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x214
ret
Function at 0x351190
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x3511d0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x3511c7
push 0
lea edx, [ebp - 4]
push edx
push ebx
push esi
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x351220
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x360008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
push 0
push esi
call fcn.003576b0
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.003576b0
add esp, 0x18
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x362c8c], eax
test eax, eax
je 0x351294
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x362c8c]
cmp byte [ebp - 0x214], 0
push edi
push 0x105
je 0x3512b7
lea edx, [ebp - 0x210]
push edx
mov edi, 0xca
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
jmp 0x3512c9
lea eax, [ebp - 0x210]
push eax
mov edi, 0xc9
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.DumpIt.sys
lea ecx, [ebp - 0x210]
push ecx
push str._sDrivers_s
push 0x105
push esi
call fcn.00351dc5
movzx edi, di
push esi
mov eax, edi
call fcn.00351190
add esp, 0x18
test al, al
jne 0x3513b0
push 0x20a
lea edx, [ebp - 0x210]
push 0
push edx
call fcn.003576b0
push str.DumpIt.sys
push str._TEMP__s
lea eax, [ebp - 0x210]
push 0x20a
push eax
call fcn.00351dc5
add esp, 0x1c
push 0x105
push esi
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
mov eax, edi
call fcn.00351190
add esp, 4
test al, al
jne 0x3513b0
push 0x20a
lea edx, [ebp - 0x210]
push 0
push edx
call fcn.003576b0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push str.DumpIt.sys
lea ecx, [ebp - 0x210]
push ecx
push str._s_s
push 0x105
push esi
call fcn.00351dc5
push esi
mov eax, edi
call fcn.00351190
add esp, 0x18
test al, al
jne 0x3513b0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00351db6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.00351db6
mov esp, ebp
pop ebp
ret
Function at 0x351720
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x360008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.DumpIt
push str.RegistryMachineSystemCurrentControlSetServices_s
lea eax, [ebp - 0x218]
push 0x20a
xor esi, esi
push eax
mov dword [ebp - 0x21c], esi
call fcn.00351dc5
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x224]
push edx
call dword [0x361b48]
lea eax, [ebp - 0x224]
push eax
call dword [0x361b4c]
test eax, eax
jne 0x3517b9
lea ecx, [ebp - 0x21c]
push ecx
push 0xf003f
push eax
push str.SYSTEMCurrentControlSetServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x3517b9
mov edx, dword [ebp - 0x21c]
push str.DumpIt
push edx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x3517b9
lea esi, [eax + 1]
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x3517ca
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00351db6
mov esp, ebp
pop ebp
ret

Function at 0x351870
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x360008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x660]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea ecx, [ebp - 0x664]
push ecx
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x664], 0x20
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0x20a
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.003576b0
movzx ecx, word [ebp - 0x654]
movzx edx, word [ebp - 0x656]
movzx eax, word [ebp - 0x658]
add esp, 0xc
push ecx
movzx ecx, word [ebp - 0x65a]
push edx
movzx edx, word [ebp - 0x65e]
push eax
movzx eax, word [ebp - 0x660]
push ecx
push edx
push eax
lea ecx, [ebp - 0x24]
push ecx
push str._s__04d_02d_02d__02d_02d_02d.raw
lea edx, [ebp - 0x238]
push 0x20a
push edx
call fcn.00351dc5
push 0x20a
lea eax, [ebp - 0x448]
push 0
push eax
call fcn.003576b0
add esp, 0x34
lea ecx, [ebp - 0x670]
push ecx
lea edx, [ebp - 0x448]
push edx
push 0x105
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [ebp - 0x650]
push ecx
lea edx, [ebp - 0x66c]
push edx
call dword [0x361b48]
push 0
push 0
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x448]
push ecx
call dword [0x361b44]
mov bl, al
test bl, bl
je 0x3519a1
movzx eax, word [ebp - 0x66c]
lea esi, [eax + 2]
shr esi, 1
cmp esi, 0x20a
ja 0x3519a1
mov edx, dword [ebp - 0x668]
push eax
push edx
push edi
call fcn.0035ab20
add esp, 0xc
xor eax, eax
mov word [edi + esi*2 - 2], ax
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00351db6
mov esp, ebp
pop ebp
ret
Function at 0x351a70
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x360008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x38]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x351ab2
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00351db6
mov esp, ebp
pop ebp
ret
push str.NtQuerySystemInformation
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x361b40], esi
test esi, esi
je 0x351a9f
push 0x2c
lea ecx, [ebp - 0x30]
push 0
push ecx
call fcn.003576b0
add esp, 0xc
push 0
push 0x2c
lea edx, [ebp - 0x30]
push edx
push 0
call esi
test eax, eax
js 0x351a9f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
inc eax
mul dword [ebp - 0x28]
mov ebx, eax
mov eax, dword [ebp - 0x38]
mov esi, edx
mul dword [ebp - 0x3c]
push 0
push ecx
push edx
push eax
call fcn.0035b2e0
mov dword [ebp - 0x48], eax
mov edi, edx
mov edx, ebx
mov eax, esi
shrd edx, eax, 0x14
shr eax, 0x14
push eax
push edx
push 7
push esi
push ebx
push 0xf
push str._n____Address_space_size:____I64d_bytes___I64d_Mb__n
call fcn.00351e01
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, edi
shrd ecx, edx, 0x14
shr edx, 0x14
push edx
push ecx
push 7
push edi
push eax
push 0xf
push str.____Free_space_size:_______I64d_bytes___I64d_Mb__n_n
call fcn.00351e01
add esp, 0x38
cmp edi, esi
ja 0x351b6b
jb 0x351a9f
cmp dword [ebp - 0x48], ebx
jb 0x351a9f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00351db6
mov esp, ebp
pop ebp
ret