joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030fc
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x80000000
push dword [0x405040]
call fcn.004035ea
mov edi, eax
cmp edi, 0xffffffff
pop ecx
pop ecx
jne 0x403123
xor eax, eax
jmp 0x403204
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
push ebx
mov dword [ebp - 4], ebx
call fcn.00403610
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
push esi
call fcn.004030c6
test eax, eax
pop ecx
pop ecx
je 0x4031e3
mov edx, dword [eax + esi + 4]
lea edi, [eax + esi]
mov ecx, dword [edi]
push ecx
push edx
lea eax, [eax + esi + 8]
push eax
call fcn.00403099
add esp, 0xc
mov dword [edi], eax
push dword [0x405040]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov edi, 0x40000000
push edi
push dword [0x405040]
call fcn.004035ea
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x4031e7
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
push dword [0x405040]
call fcn.004035ea
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x4031e7
push 0x1388
call dword [sym.imp.KERNEL32.DLL_Sleep]
push edi
push dword [0x405040]
call fcn.004035ea
mov ebx, eax
cmp ebx, 0xffffffff
pop ecx
pop ecx
jne 0x4031e7
xor eax, eax
jmp 0x403202
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
leave
ret

Function at 0x403207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push 0xff
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push str.qmopt.dll
lea eax, [ebp - 0x100]
push eax
push str._s_system32_s
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
leave
ret

Function at 0x403241
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00403207
pop ecx
xor esi, esi
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403282
xor eax, eax
jmp 0x4032a7
push esi
lea eax, [ebp - 4]
push eax
push 0x2d4
push 0x405050
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], esi
setne al
pop edi
pop esi
leave
ret
Function at 0x4032ab
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00403207
mov edi, 0x2d4
push edi
xor ebx, ebx
push ebx
mov esi, 0x405050
push esi
call fcn.00403dc7
add esp, 0x10
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40331a
push ebx
lea ecx, [ebp - 8]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 8], ebx
push dword [ebp - 4]
jne 0x40331e
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x40332c
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.00403241
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40337e
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40338d
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
ret

Function at 0x40365f
Capabilities:
Create http request
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00401000
push ebx
push esi
push edi
xor esi, esi
push 0x404338
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
call fcn.00401ae4
pop ecx
mov edi, eax
push edi
push str.wininet.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push edi
mov dword [ebp - 0xc], eax
call fcn.00403624
pop ecx
push esi
push esi
push esi
push esi
push 0x404165
call dword [sym.imp.WININET.dll_InternetOpenA]
push esi
push 0x84000100
push esi
push esi
push dword [ebp + 8]
mov edi, eax
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp edi, esi
mov ebx, eax
je 0x40376c
cmp ebx, esi
je 0x40376c
cmp edi, 0xffffffff
je 0x40376c
cmp ebx, 0xffffffff
je 0x40376c
mov edi, dword [ebp + 0xc]
cmp edi, esi
je 0x403712
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push esi
push 0x80
push 4
push esi
push esi
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push ebx
call dword [ebp - 0xc]
cmp edi, esi
je 0x403747
cmp dword [ebp - 4], esi
jbe 0x40374c
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
cmp dword [ebp - 4], esi
ja 0x403712
cmp edi, esi
je 0x403759
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0x10]
call esi
xor eax, eax
inc eax
jmp 0x40376e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403bcb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push edi
lea ecx, [ebp - 8]
call fcn.00401e3c
lea eax, [ebp - 0xc]
push eax
push str.SoftwareMicrosoftInternet_Explorer
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403c57
push 0x7f
pop ecx
mov byte [ebp - 0x214], al
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x404390
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0x200
mov dword [ebp - 0x10], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
push ecx
lea eax, [ebp - 0x214]
mov ecx, esp
push eax
call fcn.00401e8d
lea ecx, [ebp - 8]
call fcn.00401fdd
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00401e5d
lea ecx, [ebp - 8]
call fcn.00401ebe
mov eax, dword [ebp + 8]
pop edi
leave
ret

Function at 0x403dfa
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_lstrlenA]
mov ebp, str.System32_
push ebp
call edi
mov esi, dword [esp + 0x1c]
push esi
mov dword [esp + 0x14], eax
call fcn.00403610
pop ecx
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push ebx
call edi
sub esi, dword [esp + 0x10]
cmp eax, esi
jg 0x403e47
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push ebp
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push ebx
call fcn.00403624
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x403e9a
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor ebx, ebx
push 0x404338
mov dword [ebp - 4], ebx
call fcn.00401ae4
pop ecx
mov esi, eax
push esi
push str.wininet.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push esi
mov dword [ebp - 8], eax
call fcn.00403624
cmp dword [ebp - 8], ebx
pop ecx
je 0x403fb4
push ebx
push ebx
push ebx
push ebx
push 0x404165
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push 0x84000100
push ebx
push ebx
push dword [ebp + 8]
mov esi, eax
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp esi, ebx
mov dword [ebp - 0x10], eax
je 0x403fa5
cmp eax, ebx
je 0x403fa5
cmp esi, 0xffffffff
je 0x403fa5
cmp eax, 0xffffffff
je 0x403fa5
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push edi
push eax
xor esi, esi
mov dword [ebp - 0x14], eax
call fcn.00403610
mov edi, dword [ebp + 0xc]
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
sub eax, esi
mov ecx, 0x8000
cmp eax, ecx
jbe 0x403f4d
mov eax, ecx
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [ebp - 8]
push dword [ebp - 4]
lea eax, [esi + edi]
push dword [ebp - 0xc]
push eax
call fcn.00403da5
add esi, dword [ebp - 4]
add esp, 0xc
cmp dword [ebp - 4], ebx
jne 0x403f80
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp - 4], ebx
ja 0x403f3d
cmp dword [ebp + 0x14], ebx
jne 0x403f8a
mov byte [esi + edi], bl
mov eax, dword [ebp + 0x10]
push dword [ebp - 0x10]
mov dword [eax], esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x18]
call esi
xor eax, eax
inc eax
pop edi
jmp 0x403fb6
cmp dword [ebp + 0x14], ebx
jne 0x403faf
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x478360
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ae862
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4d1088]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], esi
cmp dword [edi + 0x14], 8
jb 0x4783a1
mov eax, dword [edi]
jmp 0x4783a3
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x4783c2
push esi
push edi
push ebx
call fcn.00478150
add esp, 0xc
jmp 0x4784be
test eax, 0x400
je 0x47847d
cmp dword [edi + 0x14], 8
jb 0x4783d7
mov eax, dword [edi]
jmp 0x4783d9
mov eax, edi
push eax
lea ecx, [ebp - 0x28]
call fcn.004774d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00432c80
cmp esi, 0xffffffff
jne 0x478432
push dword [ebp - 0x34]
push edi
push ebx
call fcn.00478150
add esp, 0xc
jmp 0x4784be
push edi
call fcn.00477cc0
add esp, 4
test al, al
jne 0x478465
mov eax, dword [ebp - 0x38]
push eax
push edi
call fcn.00477da0
add esp, 8
mov dword [ebx], 9
mov dword [ebx + 4], eax
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4784be
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x47848f
mov dword [esi], 0
call fcn.00477000
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], 3
push eax
push edi
test al, 0x10
jne 0x4784a6
mov dword [ebp - 0x30], 2
call fcn.00477da0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
add esp, 8
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047a4d6
mov esp, ebp
pop ebp
ret

Function at 0x49f95f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049f2cd

Function at 0x49f96a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049f508

Function at 0x4a3bec
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.004a275c
ret
Function at 0x100010fd
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push esi
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x10001189
push esi
lea eax, [ebp - 4]
push eax
call fcn.10001bea
test al, al
jne 0x10001140
push 8
pop esi
push dword [ebp - 4]
call fcn.10020d8f
pop ecx
mov eax, esi
pop esi
leave
ret
push dword [ebp - 4]
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10001189
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x10036fec
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10001192
cmp dword [ebp - 0x14], 0
je 0x10001192
mov eax, dword [ebp - 0xc]
test edi, edi
je 0x1000117e
mov ecx, dword [eax + 8]
mov dword [edi], ecx
test ebx, ebx
je 0x10001192
mov eax, dword [eax + 0xc]
mov dword [ebx], eax
jmp 0x10001192
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
jmp 0x10001132

Function at 0x10001361
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x10031895
call fcn.10022f29
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 0xc8
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100206a0
pop ecx
mov esi, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 0x10]
push ecx
push esi
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 0xea
jne 0x100013c0
inc dword [ebp - 0x10]
jmp 0x1000137e
cmp eax, ebx
jne 0x100013e2
cmp dword [ebp - 0x14], 1
je 0x100013f1
cmp dword [ebp - 0x14], 4
jne 0x1000137e
push dword [esi]
mov eax, edi
push 0x10036ff8
call fcn.10001e34
pop ecx
pop ecx
mov bl, 1
push esi
call fcn.10020d8f
mov al, bl
pop ecx
call fcn.10023001
ret
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov word [esi + ecx*2], ax
push esi
lea eax, [ebp + 0xc]
push eax
call fcn.100021bd
mov byte [ebp - 4], 1
call fcn.100018e7
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
call fcn.100024ba
push esi
call fcn.10020d8f
mov al, 1
jmp 0x100013ea

Function at 0x10001656
Capabilities:
Get file size

Disassembly:
mov eax, dword [eax]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10001685
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1000169d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test esi, esi
je 0x1000169b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x100016a0
Capabilities:
Create process on windows

Disassembly:
push 0x3c
mov eax, 0x10030dad
call fcn.10022f29
mov edi, ecx
push 0x38
xor ebx, ebx
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.10020bd0
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x400
cmp dword [ebp + 0xc], ebx
je 0x100016d9
mov dword [ebp - 0x44], 0x440
mov esi, dword [edi]
push edi
call fcn.10002be8
pop ecx
test al, al
je 0x100016e9
add esi, 8
xor eax, eax
cmp byte [ebp + 0x10], bl
mov dword [ebp - 0x38], esi
sete al
mov dword [ebp - 0x3c], str.open
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
je 0x1000170b
mov dword [ebp - 0x34], eax
mov eax, edi
lea edi, [ebp + 0x10]
call fcn.10002856
mov dword [ebp - 4], ebx
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
mov esi, edi
call fcn.10002be8
pop ecx
test al, al
je 0x1000172e
lea esi, [edi + 8]
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x30], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1000174f
lea eax, [edi - 0x10]
call fcn.100024ba
mov al, bl
call fcn.10023001
ret
cmp dword [ebp + 0xc], ebx
je 0x10001770
cmp dword [ebp - 0x10], ebx
je 0x10001770
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
jmp 0x1000173f
Function at 0x100017bc
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100421cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
push eax
xor edi, edi
push 8
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100017f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100018c8
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push 1
push dword [ebp - 0x18]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x10001848
call ebx
cmp eax, 0x7a
jne 0x100018bd
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
call fcn.10001bea
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push 1
push dword [ebp - 0x18]
call esi
cmp eax, edi
je 0x100018bd
cmp dword [ebp - 0x1c], edi
je 0x100018bd
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xa], 0
mov byte [ebp - 9], 0
mov byte [ebp - 8], 0
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x100018bf
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x20]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x10]
call fcn.10020d8f
pop ecx
cmp dword [ebp - 0x18], edi
je 0x100018b9
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x100018d8
call ebx
push dword [ebp - 0x10]
call fcn.10020d8f
pop ecx
cmp dword [ebp - 0x18], edi
je 0x100018d6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10020bb8
leave
ret

Function at 0x10002036
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000204d
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10002082
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x1000207e
cmp edi, eax
jae 0x10002082
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10002070
cmp edi, eax
jb 0x10002086
xor eax, eax
jmp 0x1000208f
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x10002690
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x100421cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push eax
mov dword [ebp - 0x90], ecx
mov byte [ecx], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100026d4
push eax
jmp 0x1000270d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x8c], eax
cmp eax, 0xffffffff
je 0x10002708
cmp eax, ebx
jbe 0x10002708
push 0x10000
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], ebx
call fcn.10001bea
cmp dword [ebp - 0x80], ebx
jne 0x10002724
push ebx
call fcn.10020d8f
pop ecx
cmp edi, ebx
je 0x10002713
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10020bb8
leave
ret
lea eax, [ebp - 0x78]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], ebx
mov byte [ebp - 0x79], bl
call fcn.10003cbb
push ebx
lea eax, [ebp - 0x88]
push eax
push 0x10000
push dword [ebp - 0x80]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000279b
mov esi, dword [ebp - 0x88]
cmp esi, ebx
je 0x1000279b
mov eax, dword [ebp - 0x84]
lea ecx, [esi + eax]
cmp ecx, dword [ebp - 0x8c]
jbe 0x10002783
mov esi, dword [ebp - 0x8c]
sub esi, eax
mov dword [ebp - 0x88], esi
mov byte [ebp - 0x79], 1
push dword [ebp - 0x80]
mov eax, esi
lea ecx, [ebp - 0x78]
call fcn.10003b4c
add dword [ebp - 0x84], esi
cmp byte [ebp - 0x79], bl
je 0x1000273b
lea esi, [ebp - 0x78]
call fcn.10003bfd
mov ebx, dword [ebp - 0x90]
mov eax, esi
call fcn.10003c74
push dword [ebp - 0x80]
mov bl, al
call fcn.10020d8f
pop ecx
test edi, edi
je 0x100027c6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x10002715
Function at 0x100028b3
Capabilities:
Delete directory

Disassembly:
push 0xc
mov eax, 0x10031209
call fcn.10022f29
mov eax, dword [0x10043e48]
mov ecx, 0x10043e48
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
test ecx, ecx
jl 0x1000299a
mov eax, esi
call fcn.10001fbd
movzx eax, ax
cmp ax, 0x5c
jne 0x10002928
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
lea ecx, [eax - 1]
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.10001b86
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.100018e7
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.100024ba
jmp 0x10002932
mov eax, esi
lea edi, [ebp - 0x10]
call fcn.100018e7
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [ecx - 0xc]
mov edx, dword [esi]
cmp eax, dword [edx - 0xc]
jl 0x10002950
lea eax, [ecx - 0x10]
call fcn.100024ba
call fcn.10023001
ret
push 0x5c
call fcn.10001a7c
mov ecx, eax
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.10001b86
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x10002987
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100028b3
pop ecx
pop ecx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.100024ba
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
jmp 0x10002945
push 0x80070057
call fcn.10002424
int3

Function at 0x100029a5
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0xc8
lea ebp, [esp - 4]
mov eax, dword [0x100421cc]
xor eax, ebp
mov dword [ebp + 0xc8], eax
push 0x10
mov eax, 0x100321f7
call fcn.10022f29
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea eax, [ebp]
push eax
mov dword [ebp - 4], ebx
push 0x64
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x10], eax
xor edi, edi
lea eax, [ebp + edi*2]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x10002a3c
lea eax, [ebp + edi*2]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100021bd
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.10001c30
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.100024ba
jmp 0x10002a3c
cmp word [ebp + edi*2], bx
je 0x10002a41
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x10002a34
inc edi
cmp edi, dword [ebp - 0x10]
jb 0x100029f6
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
call fcn.10020bb8
add ebp, 0xcc
leave
ret