joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48008798
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
push dword [ebx]
mov dword [ebp - 0xc], edi
call esi
cmp eax, edi
jle 0x480087cd
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x48008830
mov eax, dword [ebp - 8]
shr eax, 1
lea eax, [eax + eax + 2]
push eax
call fcn.48006340
cmp eax, edi
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x48008829
cmp dword [ebp - 8], edi
je 0x48008824
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [ebx]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
shr ecx, 1
cmp eax, edi
mov word [edx + ecx*2], di
jle 0x4800881f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x48008830
mov word [eax], di
jmp 0x48008830
mov dword [ebp - 4], 0x8007000e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8

Function at 0x48008839
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [eax]
mov dword [ebp - 0xc], ebx
call edi
cmp eax, ebx
jle 0x48008871
and eax, 0xffff
or eax, 0x80070000
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x480088e0
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x480088d8
shr eax, 1
inc eax
push esi
mov esi, dword [ebp + 0x10]
mov edx, eax
call fcn.48001c88
mov esi, eax
cmp esi, ebx
jne 0x4800889c
mov dword [ebp - 4], 0x8007000e
jmp 0x480088c1
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
push dword [eax]
call edi
cmp eax, ebx
jle 0x480088be
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
shr eax, 1
mov word [esi + eax*2], bx
or eax, 0xffffffff
call fcn.480018d3
pop esi
jmp 0x480088e0
mov eax, dword [ebp + 0x10]
call fcn.48004ee1
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0xc

Function at 0x48008904
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x4800892d
and eax, 0xffff
or eax, 0x80070000
ret 0xc

Function at 0x48008930
Capabilities:
Set registry value

Disassembly:
push 8
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 0xb
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x48008959
and eax, 0xffff
or eax, 0x80070000
ret 0x10
Function at 0x4800895c
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x48008991
and eax, 0xffff
or eax, 0x80070000
ret 0xc
Function at 0x48009078
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, eax
mov eax, dword [esi]
push edi
sub eax, 0x10
mov ebx, ecx
call fcn.48001ca6
add eax, 0x10
push 0x5f
mov dword [ebp - 8], eax
push 0x5c
lea eax, [ebp - 8]
push eax
call fcn.48004d8d
push str.MUTEX
lea eax, [ebp - 8]
lea edi, [ebp - 0xc]
call fcn.480058f7
mov eax, dword [eax]
pop ecx
push 1
push eax
mov edi, ebx
call fcn.48008212
neg al
sbb al, al
inc al
mov byte [ebp - 1], al
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.48001fbe
cmp byte [ebp - 1], 0
je 0x480090e0
xor bl, bl
jmp 0x480091f5
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
cmp byte [ebp + 8], 0
mov byte [ebp - 0x1c], al
mov byte [ebx + 0x14], 0
je 0x4800912a
mov eax, dword [esi]
xor esi, esi
push esi
push esi
push 4
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebx + 8], eax
je 0x480091ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x48009130
mov byte [ebx + 0x14], 1
jmp 0x48009130
or dword [ebx + 8], 0xffffffff
xor esi, esi
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 1
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push dword [ebp - 8]
lea eax, [ebp - 0x38]
push 0x58
push esi
mov dword [ebp - 0x14], eax
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 8]
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, esi
mov dword [ebx + 0xc], eax
je 0x480091ca
cmp dword [ebx + 8], 0xffffffff
jne 0x48009197
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x48009197
mov byte [ebx + 0x14], 1
push 0x58
push esi
push esi
push 6
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebx + 0x10], eax
jne 0x480091e0
push dword [ebx + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
mov dword [ebx + 0xc], esi
je 0x480091ca
push eax
call edi
or dword [ebx + 8], 0xffffffff
cmp byte [ebp - 0x1c], 0
je 0x480090d9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
jmp 0x480090d9
cmp byte [ebx + 0x14], 0
jne 0x48009204
cmp byte [ebp - 0x1c], 0
je 0x480091f3
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov bl, 1
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.48001fbe
mov al, bl
jmp 0x48009254
push dword [ebp - 8]
call fcn.4800e248
lea eax, [ebp - 8]
lea edi, [ebp + 8]
mov dword [esp], str.MUTEX
call fcn.480058f7
push dword [eax]
call fcn.4800e248
mov eax, dword [ebp + 8]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.48001fbe
mov esi, dword [ebx + 0x10]
call fcn.48008ce0
cmp byte [ebp - 0x1c], 0
je 0x48009247
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.48001fbe
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x480099b8
Capabilities:
Terminate process

Disassembly:
push ecx
cmp byte [0x4802747c], 0
jne 0x48009a63
cmp byte [0x48027474], 0
je 0x48009a63
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.480017fe
push dword [esp + 0x10]
mov ebp, str.5.0.0611.15541
push 0
push ebp
mov edi, str.111506_180233
push edi
mov esi, 0x48024498
push esi
push dword [esp + 0x2c]
mov ebx, str.Exception__x_in__s__hs__hs__u_r_n_r_n_s_r_n
push ebx
call fcn.48009dab
push eax
call fcn.4800f946
add esp, 0x20
push 0x250212
push 0
push ebp
push edi
push esi
push dword [esp + 0x2c]
push str.Exception__x_in__s__hs__hs__u
call fcn.48009dab
add esp, 0x18
push eax
push dword [esp + 0x18]
push 0
push ebp
push edi
push esi
push dword [esp + 0x34]
push ebx
call fcn.48009dab
add esp, 0x1c
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
sub eax, 3
pop edi
pop esi
pop ebp
pop ebx
je 0x48009a65
dec eax
jne 0x48009a58
int3
mov eax, dword [esp]
add eax, 0xfffffff0
call fcn.48001fbe
pop ecx
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x48009dd3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0x80000003
jne 0x48009de3
xor eax, eax
pop ebp
ret
inc dword [0x48027478]
cmp byte [0x4802747c], 0
jne 0x48009e9c
cmp byte [0x48027474], 0
je 0x48009e9c
cmp byte [ebp + 0x18], 0
je 0x48009e9c
push ebx
push esi
push edi
push 0x48024480
push dword [ebp + 0x14]
mov ebx, str.111506_180233
push dword [ebp + 0x10]
mov edi, 0x48024498
push 0
push str.5.0.0611.15541
push ebx
push edi
push dword [ebp + 8]
mov esi, str.Exception__x_in__s__hs__hs__u_r_n_r_n_hs:_d__s_r_n
push esi
call fcn.48009dab
push eax
call fcn.4800f946
add esp, 0x28
call fcn.4800925b
neg al
sbb eax, eax
and eax, 2
or eax, 0x250210
push eax
push str.Exception
push 0x48024480
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push str.5.0.0611.15541
push ebx
push edi
push dword [ebp + 8]
push esi
call fcn.48009dab
add esp, 0x24
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, eax
call fcn.4800925b
test al, al
je 0x48009e99
sub esi, 3
je 0x48009ea1
dec esi
jne 0x48009e99
int3
pop edi
pop esi
pop ebx
xor eax, eax
inc eax
pop ebp
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4800accc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea ecx, [ebp - 4]
call fcn.480017fe
lea eax, [ebp - 8]
push eax
push 0x10
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x10
call fcn.480018b0
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
or eax, 0xffffffff
lea ecx, [ebp - 4]
call fcn.480018d3
mov esi, dword [ebp - 4]
add esi, 0xfffffff0
mov eax, esi
call fcn.48001ca6
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.48001fbe
mov eax, ebx
pop esi
leave
ret
Function at 0x4800ad1f
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea ecx, [ebp - 4]
call fcn.480017fe
mov esi, 0x105
push esi
lea eax, [ebp - 4]
call fcn.480018b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
or eax, 0xffffffff
lea ecx, [ebp - 4]
call fcn.480018d3
push dword [ebp - 4]
call fcn.4800e472
test al, al
pop ecx
jne 0x4800ada7
push 0x4801e314
lea eax, [ebp - 4]
call fcn.48008c76
push dword [ebp - 4]
call fcn.4800e472
test al, al
pop ecx
jne 0x4800ada7
push str.TEMP
lea eax, [ebp - 4]
call fcn.48008c76
push dword [ebp - 4]
call fcn.4800e472
test al, al
pop ecx
jne 0x4800ada7
push str.c:_temp
lea eax, [ebp - 4]
push eax
call fcn.48004f15
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0xc]
push edi
lea esi, [eax - 1]
lea edi, [ebp - 4]
call fcn.48007c0d
cmp ax, 0x5c
pop edi
je 0x4800adca
push 0x5c
lea eax, [ebp - 4]
call fcn.48001c39
mov esi, dword [ebp - 4]
add esi, 0xfffffff0
mov eax, esi
call fcn.48001ca6
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.48001fbe
mov eax, ebx
pop esi
leave
ret

Function at 0x4800bbc0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jg 0x4800bbcd
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
push edi
push 3
pop edi
jmp 0x4800bc31
sub dword [ebp + 0x10], 4
js 0x4800bcbb
movzx edx, byte [ecx]
shr edx, 2
mov dl, byte [edx + esi]
mov byte [eax], dl
movzx ebx, byte [ecx + 1]
xor edx, edx
mov dl, byte [ecx]
shr ebx, 4
add eax, 4
and edx, edi
shl edx, 4
add edx, esi
mov dl, byte [ebx + edx]
mov byte [eax - 3], dl
movzx ebx, byte [ecx + 2]
xor edx, edx
mov dl, byte [ecx + 1]
shr ebx, 6
add ebx, esi
and edx, 0xf
mov dl, byte [ebx + edx*4]
mov byte [eax - 2], dl
xor edx, edx
mov dl, byte [ecx + 2]
add ecx, edi
and edx, 0x3f
mov dl, byte [edx + esi]
sub dword [ebp + 8], edi
mov byte [eax - 1], dl
cmp dword [ebp + 8], 2
jg 0x4800bbd7
mov edx, dword [ebp + 8]
dec edx
je 0x4800bc8d
dec edx
jne 0x4800bcc8
sub dword [ebp + 0x10], edi
js 0x4800bcbb
movzx edx, byte [ecx]
shr edx, 2
mov dl, byte [edx + esi]
mov byte [eax], dl
movzx ebx, byte [ecx + 1]
xor edx, edx
mov dl, byte [ecx]
shr ebx, 4
and edx, edi
shl edx, 4
add edx, esi
mov dl, byte [ebx + edx]
mov byte [eax + 1], dl
movzx ecx, byte [ecx + 1]
and ecx, 0xf
mov cl, byte [esi + ecx*4]
mov byte [eax + 2], cl
add eax, edi
cmp byte [ebp + 0x14], 0
je 0x4800bcc8
mov ecx, dword [ebp + 0x10]
dec ecx
js 0x4800bcbb
mov byte [eax], 0x3d
inc eax
jmp 0x4800bcc8
mov edx, dword [ebp + 0x10]
sub edx, 2
js 0x4800bcbb
movzx ebx, byte [ecx]
shr ebx, 2
mov bl, byte [ebx + esi]
mov byte [eax], bl
movzx ecx, byte [ecx]
and ecx, edi
shl ecx, 4
mov cl, byte [ecx + esi]
mov byte [eax + 1], cl
inc eax
inc eax
cmp byte [ebp + 0x14], 0
je 0x4800bcc8
add edx, 0xfffffffe
jns 0x4800bcbf
xor eax, eax
jmp 0x4800bccb
mov byte [eax], 0x3d
mov byte [eax + 1], 0x3d
inc eax
inc eax
sub eax, dword [ebp + 0xc]
pop edi
pop ebx
pop ebp
ret
Function at 0x4800d0a4
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov ebx, str.tr_query_result_map_mutex
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], eax
call edi
and dword [ebp - 8], 0
push ebx
mov dword [ebp - 0xc], eax
call fcn.4800e248
mov eax, dword [esi + 0xc]
xor ebx, ebx
cmp eax, ebx
pop ecx
jne 0x4800d0f8
mov eax, dword [ebp - 0xc]
cmp eax, ebx
jle 0x4800d1cc
and eax, 0xffff
or eax, 0x80070000
jmp 0x4800d1cc
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4800d10f
mov eax, 0x80004005
jmp 0x4800d1cc
push str.tr_query_result_map_2
push 0x3054
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push 0x4801e4b4
mov dword [esi + 8], eax
call fcn.4800e248
pop ecx
call edi
mov ecx, dword [esi + 8]
cmp ecx, ebx
jne 0x4800d151
cmp eax, ebx
jg 0x4800d145
mov dword [ebp - 8], eax
jmp 0x4800d1c0
and eax, 0xffff
or eax, 0x80070000
jmp 0x4800d140
cmp eax, 0xb7
mov byte [ebp - 1], 1
jne 0x4800d160
mov byte [ebp - 1], 0
push ebx
push ebx
push ebx
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
jne 0x4800d194
call edi
test eax, eax
jg 0x4800d17a
call edi
jmp 0x4800d186
call edi
and eax, 0xffff
or eax, 0x80070000
push dword [esi + 8]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4800d1c0
cmp byte [ebp - 1], 0
mov dword [esi + 0x10], eax
je 0x4800d1a4
mov eax, esi
call fcn.4800d091
mov edi, str.tr_query_result_event
push edi
push ebx
push ebx
push ebx
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
mov dword [esi], eax
call fcn.4800e248
pop ecx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret

Function at 0x4800e56b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
cmp dword [esi + 0x1c], 0
je 0x4800e57f
mov ecx, esi
call fcn.4800e2c7
mov eax, dword [esi + 0x1c]
neg eax
sbb eax, eax
lea ecx, [esi + 0xc]
and eax, ecx
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.4800e2ed
test eax, eax
pop esi
jne 0x4800e5c5
push edi
mov edi, 0xe136fba3
mov eax, 0x480275c0
call fcn.48009c63
movzx eax, al
test eax, eax
pop edi
jne 0x4800e5d7
mov eax, dword [ebp - 4]
cmp dword [ebp + 8], eax
jne 0x4800e5d7
test ebx, ebx
je 0x4800e5d3
mov dword [ebx], eax
xor eax, eax
jmp 0x4800e5dc
call fcn.48008b5e
leave
ret 8
Function at 0x4800e658
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push dword [ebp + 8]
call edi
mov esi, eax
test esi, esi
jne 0x4800e681
push 0x4801b36c
mov esi, ebx
call fcn.48004c5c
jmp 0x4800e6be
lea ecx, [ebp - 4]
call fcn.480017fe
push esi
lea edx, [esi + 2]
lea esi, [ebp - 4]
call fcn.48001c88
push eax
push dword [ebp + 8]
call edi
or eax, 0xffffffff
mov ecx, esi
call fcn.480018d3
mov esi, dword [ebp - 4]
add esi, 0xfffffff0
mov eax, esi
call fcn.48001ca6
add eax, 0x10
mov dword [ebx], eax
mov eax, esi
call fcn.48001fbe
pop edi
mov eax, ebx
pop esi
leave
ret

Function at 0x4800e8be
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
push edi
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0xc], eax
mov eax, dword [0x480261c4]
mov esi, 0x480261c4
mov ecx, esi
call dword [eax + 4]
mov ebx, 0x48025ec0
mov byte [ebp - 0x10], al
xor edi, edi
mov dword [ebp - 8], ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4800ea33
add dword [ebp - 8], 0x2a
inc edi
cmp dword [ebp - 8], 0x48025f3e
jl 0x4800e8f1
cmp byte [ebp - 0x10], 0
je 0x4800e923
mov eax, dword [0x480261c4]
mov ecx, esi
call dword [eax + 8]
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4800e9d1
xor eax, eax
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x42c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push 0x400
lea eax, [ebp - 0x42c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push dword [ebp - 8]
mov byte [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4800e9c6
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x4800e9b0
push str.netdisk
lea edx, [ebp + eax - 0x42c]
call fcn.4800ba4d
test eax, eax
pop ecx
je 0x4800e9b0
mov byte [ebp - 1], 1
cmp dword [ebp - 0x410], 7
je 0x4800e9c2
cmp dword [ebp - 0x410], 4
jne 0x4800e9c6
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov eax, dword [0x480261c4]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 0x10], al
mov eax, dword [0x48025eb8]
imul eax, eax, 0x2a
push 0x15
push dword [ebp + 8]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [0x48025eb8]
mov bl, byte [ebp - 1]
mov byte [eax + 0x48025ebc], bl
inc eax
cmp eax, 3
mov dword [0x48025eb8], eax
jl 0x4800ea13
mov dword [0x48025eb8], edi
cmp byte [ebp - 0x10], 0
je 0x4800ea23
mov eax, dword [0x480261c4]
mov ecx, esi
call dword [eax + 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
mov bl, byte [edi + 0x48025ebc]
jmp 0x4800ea13
Function at 0x4800ea3b
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
lea ecx, [ebp - 4]
call fcn.480017fe
xor bl, bl
push edi
push 0xa
call fcn.4800e8aa
cdq
push edx
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.4800c24f
mov ecx, eax
add eax, 0xc
add esp, 0x10
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [ebp + 8]
push ecx
push str.test
lea edi, [ebp - 0xc]
call fcn.48007ba8
pop ecx
lea edi, [ebp - 8]
call fcn.48007b4f
pop ecx
lea edi, [ebp - 4]
call fcn.480052cc
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.48001fbe
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.48001fbe
lea esi, [ebp - 0x94]
call fcn.48007c9c
mov esi, dword [ebp - 4]
push esi
call fcn.4800e455
test al, al
pop ecx
jne 0x4800eac9
mov bl, 1
test bl, bl
je 0x4800ea51
push 0
push esi
call fcn.48006787
test eax, eax
pop ecx
pop ecx
pop edi
jl 0x4800eae7
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov bl, 1
jmp 0x4800eae9
xor bl, bl
lea eax, [esi - 0x10]
call fcn.48001fbe
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x4800eaf7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
push 1
mov dword [eax], esi
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x108]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jbe 0x4800ec87
cmp eax, 0x69
jae 0x4800ec87
cmp word [ebp - 0x108], si
lea eax, [ebp - 0x108]
mov dword [ebp - 8], eax
je 0x4800ec87
push ebx
push edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4800ec6a
push dword [ebp - 8]
lea esi, [ebp - 4]
call fcn.48004c5c
push 2
pop ecx
lea edx, [ebp - 0x24]
mov eax, esi
call fcn.48004e63
push eax
push 0x4801f5b8
lea esi, [ebp - 0x20]
call fcn.48004c5c
lea edi, [ebp - 0x2c]
call fcn.48007b4f
push dword [eax]
call fcn.4800e8be
mov bl, al
mov eax, dword [ebp - 0x2c]
neg bl
pop ecx
sbb bl, bl
pop ecx
add eax, 0xfffffff0
inc bl
call fcn.48001fbe
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.48001fbe
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.48001fbe
test bl, bl
je 0x4800ec5f
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x34]
push eax
xor esi, esi
lea eax, [ebp - 0x18]
push eax
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.480103d2
add esp, 0x10
cmp eax, esi
mov dword [ebp - 0x1c], eax
jge 0x4800ec16
mov edi, 0x45a658
mov eax, 0x480275c0
call fcn.48009c63
movzx eax, al
cmp eax, esi
je 0x4800ec16
lea eax, [ebx - 0x10]
jmp 0x4800ec65
mov ebx, dword [ebp - 0x14]
cmp ebx, dword [ebp - 0xc]
ja 0x4800ec28
mov edi, dword [ebp - 0x18]
jb 0x4800ec2e
cmp edi, dword [ebp - 0x10]
jb 0x4800ec2e
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
cmp dword [ebp - 0x1c], esi
jl 0x4800ec5f
mov esi, dword [ebp + 0xc]
cmp ebx, dword [esi + 4]
jb 0x4800ec5f
ja 0x4800ec41
cmp edi, dword [esi]
jbe 0x4800ec5f
lea eax, [ebp - 4]
push eax
call fcn.4800ea3b
test al, al
pop ecx
je 0x4800ec5f
mov dword [esi], edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [esi + 4], ebx
call fcn.480052cc
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.48001fbe
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2 + 2]
cmp word [eax], 0
mov dword [ebp - 8], eax
jne 0x4800eb4e
pop edi
pop ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor eax, eax
pop esi
leave
ret

Function at 0x4800ef38
Capabilities:
Generate random numbers via winapi

Disassembly:
call fcn.4800ef78
push dword [esp + 4]
mov eax, dword [eax + 4]
push dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4800ef73
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4800ef64
call esi
jmp 0x4800ef70
call esi
and eax, 0xffff
or eax, 0x80070000
pop esi
jmp 0x4800ef75
xor eax, eax
ret 8