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

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
push dword [esp + 0x24]
pop dword [0x402004]
mov esi, esp
sub esp, 0x18
mov eax, esp
mov edx, eax
add edx, 0x18
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x401309
mov eax, dword [esi + 0x18]
mov dword [esp], eax
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 4]
call fcn.00401659
mov edx, dword [esi + 0x20]
lea ecx, [esp + 8]
call fcn.00401659
mov dword [esp + 0xc], 0
push dword [0x402004]
mov eax, 0xff
call fcn.00401b07
lea ecx, [esp + 0x14]
pop edx
call fcn.004015cc
mov dword [esp + 0x14], 0xff
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_RegOpenKeyExA
and eax, eax
je 0x40138e
mov edx, str.Error_Opening_Key
lea ecx, [esp + 0x10]
call fcn.00401638
jmp 0x4013ed
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
push 0
push 0
push dword [esp + 0x18]
push dword [esp + 0x20]
call sub.ADVAPI32.DLL_RegQueryValueExA
and eax, eax
je 0x4013c3
mov edx, 0x403060
lea ecx, [esp + 0x10]
call fcn.00401638
jmp 0x4013e4
push dword [0x402004]
mov edi, dword [esp + 0x18]
add edi, 0xffffffff
push edi
mov eax, dword [esp + 0x18]
call fcn.00401872
lea ecx, [esp + 0x14]
pop edx
call fcn.004015cc
push dword [esp + 0xc]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [esp + 0x10]
push dword [0x402004]
call fcn.00401618
pop eax
jmp 0x401407
mov edx, dword [esp + 0x10]
call fcn.00401698
mov edx, dword [esp + 4]
call fcn.00401698
mov edx, dword [esp + 8]
call fcn.00401698
add esp, 0x18
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret 0xc

Function at 0x401470
Capabilities:
Set registry value

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
mov esi, esp
sub esp, 0x1c
mov eax, esp
mov edx, eax
add edx, 0x1c
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x401481
mov eax, dword [esi + 0x18]
mov dword [esp], eax
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 4]
call fcn.00401659
mov edx, dword [esi + 0x20]
lea ecx, [esp + 8]
call fcn.00401659
mov edx, dword [esi + 0x24]
lea ecx, [esp + 0xc]
call fcn.00401659
mov dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push eax
push dword [esp + 8]
push dword [esp + 8]
call sub.ADVAPI32.DLL_RegCreateKeyA
mov ebx, eax
cmp ebx, 0
jne 0x401526
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0xc]
call fcn.004018af
mov dword [esp + 0x18], eax
push dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push eax
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x24]
call sub.ADVAPI32.DLL_RegSetValueExA
mov ebx, eax
cmp ebx, 0
jne 0x40151d
mov dword [esp + 0x14], 2
push dword [esp + 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [esp + 0x14]
jmp 0x40152e
mov edx, dword [esp + 8]
call fcn.00401698
mov edx, dword [esp + 0xc]
call fcn.00401698
mov edx, dword [esp + 4]
call fcn.00401698
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret 0x10
Function at 0x401bea
Capabilities:
Check mutex on windows

Disassembly:
mov dword [0x402218], eax
mov eax, dword [0x40221c]
cmp eax, 0
jne 0x401c2b
push dword [0x402218]
push 0
push 0
call sub.KERNEL32.DLL_CreateMutexA
mov dword [0x402214], eax
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
je 0x401c31
mov dword [0x40221c], 1
mov eax, 0
ret
push dword [0x402214]
call sub.KERNEL32.DLL_CloseHandle
mov dword [0x402214], 0
mov eax, 1
ret

Function at 0x401c4c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
cmp byte [edi], 0x22
jne 0x401c80
push 0x22
mov eax, edi
inc eax
push eax
call sub.CRTDLL.DLL_strchr
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x401c9b
mov edi, eax
inc edi
jmp 0x401c78
inc edi
cmp byte [edi], 0x20
je 0x401c77
jmp 0x401c9b
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x401c8c
cmp eax, 0x20
jne 0x401c7f
jmp 0x401c8f
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x401c9b
cmp eax, 0x20
je 0x401c8e
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 1
push edi
push 0
push eax
call fcn.0040123c
pop edi
leave
ret

Function at 0x43b649
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
inc edx
call fcn.0043b681
sub ecx, edx
sub edx, edx
xor dword [eax], ebx
push 0x651b930e
pop ecx
add eax, 1
add edx, edx
sub ecx, 0xf1fd8540
add edx, edx
cmp eax, esi
jne fcn.0043b649
add ecx, ecx
push edx
pop edx
mov ecx, ecx
ret
Function at 0x40615b
Capabilities:
Create pipe
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x559c58]
mov ecx, dword [0x558bac]
sub esp, 0xe84
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x40625e
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x559c58], 0x959
jne 0x40624c
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x405920
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x405978
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0xe80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00405f68
add ebx, 8
dec dword [ebp - 8]
jne 0x406184
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40886b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a8718]
jne 0x408875
repz ret
jmp fcn.0041010c

Function at 0x411e87
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.00409fed
and dword [ebp - 4], 0
cmp dword [0x4aa7a0], 0
mov ebx, eax
jne 0x411f38
push 0x40392c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411fe9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403920
push edi
call esi
test eax, eax
je 0x411fe9
push eax
call fcn.00409f7b
mov dword [esp], 0x403910
push edi
mov dword [0x4aa7a0], eax
call esi
push eax
call fcn.00409f7b
mov dword [esp], 0x4038fc
push edi
mov dword [0x4aa7a4], eax
call esi
push eax
call fcn.00409f7b
mov dword [esp], 0x4038e0
push edi
mov dword [0x4aa7a8], eax
call esi
push eax
call fcn.00409f7b
pop ecx
mov dword [0x4aa7b0], eax
test eax, eax
je 0x411f38
push 0x4038c8
push edi
call esi
push eax
call fcn.00409f7b
pop ecx
mov dword [0x4aa7ac], eax
mov eax, dword [0x4aa7ac]
cmp eax, ebx
je 0x411f90
cmp dword [0x4aa7b0], ebx
je 0x411f90
push eax
call fcn.00409ff6
push dword [0x4aa7b0]
mov esi, eax
call fcn.00409ff6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x411f90
test edi, edi
je 0x411f90
call esi
test eax, eax
je 0x411f87
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411f87
test byte [ebp - 0xc], 1
jne 0x411f90
or dword [ebp + 0x10], 0x200000
jmp 0x411fc9
mov eax, dword [0x4aa7a4]
cmp eax, ebx
je 0x411fc9
push eax
call fcn.00409ff6
pop ecx
test eax, eax
je 0x411fc9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411fc9
mov eax, dword [0x4aa7a8]
cmp eax, ebx
je 0x411fc9
push eax
call fcn.00409ff6
pop ecx
test eax, eax
je 0x411fc9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4aa7a0]
call fcn.00409ff6
pop ecx
test eax, eax
je 0x411fe9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411feb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4ecce1
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ecx, 0x4eca52
mov esi, 0xdcd00b12
and edx, edx
or edx, esi
call fcn.004ecd10
or esi, esi
xor dword [eax], ecx
dec esi
mov edx, edx
add eax, 1
sub edx, esi
cmp eax, edi
jl fcn.004ecce1
dec esi
ret
Function at 0x10003360
Capabilities:
Resolve function by hash

Disassembly:
lea eax, [ecx - 0x3c]
cmp eax, 0x1e
ja 0x10003364
mov al, cl
jmp 0x10003375
cmp ecx, 0x3c
jge 0x1000336e
lea eax, [ecx + 0x3c]
jmp 0x10003375
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov byte [ebp + ecx - 0x130], al
inc ecx
cmp ecx, 0xff
jl 0x10003358
mov esi, 0xfe
nop word [eax + eax]

Function at 0x10003390
Capabilities:
Resolve function by hash

Disassembly:
mov edi, 0xff
xor eax, eax
test esi, esi
jle 0x100033c5
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x12f]
mov dl, byte [ebp + eax - 0x130]
cmp dl, cl
jle sym.aida_arc.dll_AgetConnectorIDVec_HardDrive__QBE_AV__vector_HV__allocator_H_std___std__XZ
mov byte [ebp + eax - 0x130], cl
mov byte [ebp + eax - 0x12f], dl
dec esi
test esi, esi
jg sym.aida_arc.dll_A_4FreeSpaceVector__QAEAAV0_ABV0__Z
sub edi, 1
jne 0x10003356
sub ebx, 1
jne 0x10003351
call sym.aida_arc.dll_AgetOtherItem_Enclosure__QBEPAVEnclosureItem__K_Z
mov ecx, eax
call fcn.10003500
mov ebx, eax
mov dword [ebp - 0x24], ebx
call sym.aida_arc.dll_AIsATAsecuritySupport_HardDrive__QBE_NXZ
invalid
push esp

Function at 0x10003490
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
and eax, 7
mov al, byte [eax + edi + 0x10]
xor byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jb 0x10003483
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push 0x20
push esi
push ebx
call dword [ebp - 0x2c]
cmp byte [edi + 0x20], 1
jne 0x100034b3
mov edx, dword [ebp - 0x24]
mov esi, edx
bnd jmp 0x100034b8
mov esi, dword [ebp + 0xc]
xor edx, edx

Function at 0x10003540
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
invalid

Function at 0x10003550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
inc eax
or al, 0x33
test byte [ecx + 0x408bf84d], 0xc

Function at 0x1000bd6a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100306d4]
jne 0x1000bd74
repz ret
jmp fcn.10011858
Function at 0x10010b05
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x100306f0]
je 0x10010b20
inc edi
cmp edi, 0x17
jb 0x10010b11
cmp edi, 0x17
jae 0x10010ca0
push ebp
push 3
call fcn.100193ff
cmp eax, 1
pop ecx
je 0x10010c6c
push 3
call fcn.100193ff
test eax, eax
pop ecx
jne 0x10010b54
cmp dword [0x10031b18], 1
je 0x10010c6c
cmp ebx, 0xfc
je 0x10010c9f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x10031b30
push ebp
call fcn.10011467
add esp, 0xc
test eax, eax
je 0x10010b8a
push esi
push esi
push esi
push esi
push esi
call fcn.1000c03b
add esp, 0x14
push 0x104
mov esi, 0x10031b49
push esi
push 0
mov byte [0x10031c4d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10010bce
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10011467
add esp, 0xc
test eax, eax
je 0x10010bce
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1000c03b
add esp, 0x14
push esi
call fcn.1000ca30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10010c13
push esi
call fcn.1000ca30
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x10031e44
push 0x100203cc
sub ecx, eax
push ecx
push eax
call fcn.100155b3
add esp, 0x14
test eax, eax
je 0x10010c13
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1000c03b
add esp, 0x14
jmp 0x10010c15
xor esi, esi
push 0x100203c8
push ebx
push ebp
call fcn.10015542
add esp, 0xc
test eax, eax
je 0x10010c35
push esi
push esi
push esi
push esi
push esi
call fcn.1000c03b
add esp, 0x14
push dword [edi*8 + 0x100306f4]
push ebx
push ebp
call fcn.10015542
add esp, 0xc
test eax, eax
je 0x10010c57
push esi
push esi
push esi
push esi
push esi
call fcn.1000c03b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10019242
add esp, 0xc
jmp 0x10010c9f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10010c9f
cmp ebp, 0xffffffff
je 0x10010c9f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x100306f4]
push dword [esi]
call fcn.1000ca30
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10019242
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10010db8
xor ebx, ebx
cmp dword [0x100324a0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10019318
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100193f8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x100193f8
push eax
call fcn.10010d4a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100324a0], eax
call esi
push eax
call fcn.10010d4a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100324a4], eax
call esi
push eax
call fcn.10010d4a
mov dword [0x100324a8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10013369
test eax, eax
pop ecx
pop ecx
je 0x100192e6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000c03b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10019318
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10010d4a
cmp eax, ebx
pop ecx
mov dword [0x100324b0], eax
je 0x10019318
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10010d4a
pop ecx
mov dword [0x100324ac], eax
mov eax, dword [0x100324ac]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1001939d
cmp dword [0x100324b0], ecx
je 0x1001939d
push eax
call fcn.10010dc1
push dword [0x100324b0]
mov esi, eax
call fcn.10010dc1
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1001939d
cmp edi, ebx
je 0x1001939d
call esi
cmp eax, ebx
je 0x1001936a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001936a
test byte [ebp - 0x18], 1
jne 0x1001939d
lea eax, [ebp - 0x10]
push eax
call fcn.100133a0
test eax, eax
pop ecx
je 0x10019385
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1000c03b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x10019394
or dword [ebp + 0x10], 0x200000
jmp 0x100193d8
or dword [ebp + 0x10], 0x40000
jmp 0x100193d8
mov eax, dword [0x100324a4]
cmp eax, dword [ebp - 8]
je 0x100193d8
push eax
call fcn.10010dc1
cmp eax, ebx
pop ecx
je 0x100193d8
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100193d8
mov eax, dword [0x100324a8]
cmp eax, dword [ebp - 8]
je 0x100193d8
push eax
call fcn.10010dc1
cmp eax, ebx
pop ecx
je 0x100193d8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100324a0]
call fcn.10010dc1
cmp eax, ebx
pop ecx
je 0x100193f8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100193fa
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xa0a080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xa0a0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xa2f458
push ecx
call fcn.00a1a1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00a1a1e1
add esp, 0x10
jmp 0xa0a0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00a1a20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00a19dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00a0a050
mov eax, dword [0xa34728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], reloc.wtsapi32.dll_WTSSetSessionInformationW
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xa0a13b
push esi
call fcn.00a09fb0
add esp, 4
mov dword [0xa34728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xa0a14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00a09ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xa0d440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xa0d4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xa0d48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa0d471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa0d47e
add edx, ecx
cmp ebx, edx
jb 0xa0d48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa0d467
xor ecx, ecx
jmp 0xa0d4a2
test eax, eax
jne 0xa0d492
xor ecx, ecx
jmp 0xa0d4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00a0d3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xa0d8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xa0d921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xa0d946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xa0d96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], reloc.wtsapi32.dll_WTSQueryUserToken
jne 0xa0d993
push ecx
push esi
call fcn.00a0d4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xa14e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push reloc.wtsapi32.dll_WTSVirtualChannelRead
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0xa14ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00a117a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xa14e61
mov edx, dword [eax]
jmp 0xa14e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00a13050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xa14ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xa14ebf
cmp esi, edi
je 0xa14ebf
mov ecx, esi
call fcn.00a0ca00
push esi
call fcn.00a1a1c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00a11990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xa14ef5
mov eax, dword [eax]
jmp 0xa14ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00a10640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0xa14f25
mov eax, dword [eax]
jmp 0xa14f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0xa14f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xa14f76
cmp esi, edi
je 0xa14f76
mov eax, dword [esi]
cmp eax, edi
je 0xa14f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xa14f6d
push eax
call fcn.00a1a1c8
add esp, 4
push esi
call fcn.00a1a1c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xa15f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push reloc.wtsapi32.dll_WTSVirtualChannelRead
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xa16002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00a19dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xa16002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00a116e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00a1a20b
push 0x10
call fcn.00a1a1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xa15fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00a061c0
jmp 0xa15fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00a15b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xa15ff0
mov ecx, edi
call fcn.00a062c0
push edi
call fcn.00a1a1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xa16021
inc ebx
cmp ebx, 0x20
jb 0xa15f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret