joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d324a
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x5178b0
call fcn.004c79d4
xor esi, esi
cmp dword [0x54c77c], esi
jne 0x4d328e
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d3279
mov dword [0x54c77c], edi
jmp 0x4d328e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4d328e
mov dword [0x54c77c], 2
mov eax, dword [0x54c77c]
cmp eax, 2
je 0x4d336f
cmp eax, esi
je 0x4d336f
cmp eax, 1
jne 0x4d32d3
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4d32bc
mov eax, dword [0x54c68c]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4d32da
xor eax, eax
jmp 0x4d3381
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004c3490
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4d3310
cmp edi, esi
jne 0x4d332b
lea eax, [ebx + ebx]
push eax
call fcn.004c3cdb
pop ecx
mov edi, eax
cmp edi, esi
je 0x4d32d3
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d335e
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4d3348
push esi
push esi
jmp 0x4d334e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4d336a
push edi
call fcn.004c3525
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4d3381
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004c7a0f
ret
Function at 0x4d427d
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4d4296
or eax, 0xffffffff
jmp 0x4d42f7
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4d42f3
push 0x3d
push esi
call fcn.004d447d
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4d42f3
cmp esi, eax
je 0x4d42f3
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x54c398]
sete cl
cmp eax, dword [0x54c39c]
mov dword [ebp - 8], ecx
jne 0x4d42d9
mov edi, eax
call fcn.004d421c
mov dword [0x54c398], eax
cmp eax, ebx
jne 0x4d4332
cmp dword [ebp + 0xc], ebx
je 0x4d42fb
cmp dword [0x54c3a0], ebx
je 0x4d42fb
call fcn.004d3d9f
test eax, eax
je 0x4d4332
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4d4304
xor eax, eax
jmp 0x4d42f6
push 4
call fcn.004c3cdb
cmp eax, ebx
pop ecx
mov dword [0x54c398], eax
je 0x4d42f3
mov dword [eax], ebx
cmp dword [0x54c3a0], ebx
jne 0x4d4332
push 4
call fcn.004c3cdb
cmp eax, ebx
pop ecx
mov dword [0x54c3a0], eax
je 0x4d42f3
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x54c398]
call fcn.004d41cf
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4d4393
cmp dword [esi], ebx
je 0x4d4393
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004c3525
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4d4376
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4d43d4
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4d436d
mov eax, edi
shl eax, 2
push eax
push dword [0x54c398]
call fcn.004c509d
cmp eax, ebx
pop ecx
pop ecx
je 0x4d43d4
jmp 0x4d43cf
cmp dword [ebp - 8], ebx
jne 0x4d443f
cmp edi, ebx
jge 0x4d43a2
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x54c398]
call fcn.004c509d
cmp eax, ebx
pop ecx
pop ecx
je 0x4d42f3
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x54c398], eax
cmp dword [ebp + 0xc], ebx
je 0x4d4429
push dword [ebp - 4]
call fcn.004c6380
inc eax
inc eax
push eax
call fcn.004c3cdb
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4d4429
push dword [ebp - 4]
push esi
call fcn.004c8d70
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4d4422
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004c3525
pop ecx
cmp dword [ebp - 8], ebx
je 0x4d4437
push dword [ebp - 4]
call fcn.004c3525
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4d42f6
push dword [ebp - 4]
call fcn.004c3525
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4d4300
Function at 0x4dfa80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4dfab0
push esi
call fcn.004e2310
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x4dfaa9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4dfb27
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4dfb17
mov eax, dword [esi + 8]
test eax, eax
je 0x4dfad4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4dfb13
cmp eax, 2
je 0x4dfb17
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4dfac7
cmp eax, 3
je 0x4dfafa
cmp eax, 1
jne 0x4dfac7
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
jl 0x4dfac7
mov ecx, dword [esi + 0x11c]
add dword [eax + 8], ecx
jmp 0x4dfac7
xor al, al
pop esi
ret
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x84], edx
call fcn.004df910
pop esi
ret
cmp eax, 0xcc
je 0x4dfb47
mov eax, dword [esi]
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
push esi
call dword [eax]
add esp, 4
call fcn.004df910
pop esi
ret
Function at 0x40aea0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b6a8]
jne 0x40aeaa
repz ret
jmp fcn.004120ec

Function at 0x420f4b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b6a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00410658
and dword [ebp - 0x14], 0
cmp dword [0x44e4a4], 0
mov dword [ebp - 0x18], eax
jne 0x420ffe
push 0x404358
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4210a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40434c
push ebx
call edi
test eax, eax
je 0x4210a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40433c
push ebx
mov dword [0x44e4a4], eax
call edi
push eax
call esi
push 0x404328
push ebx
mov dword [0x44e4a8], eax
call edi
push eax
call esi
push 0x40430c
push ebx
mov dword [0x44e4ac], eax
call edi
push eax
call esi
mov dword [0x44e4b4], eax
test eax, eax
je 0x420ffe
push 0x4042f4
push ebx
call edi
push eax
call esi
mov dword [0x44e4b0], eax
mov eax, dword [0x44e4b0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x421057
cmp dword [0x44e4b4], ecx
je 0x421057
push eax
call esi
push dword [0x44e4b4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x421057
test ebx, ebx
je 0x421057
call edi
test eax, eax
je 0x42104e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42104e
test byte [ebp - 8], 1
jne 0x421057
or dword [ebp + 0x10], 0x200000
jmp 0x42108a
mov eax, dword [0x44e4a8]
cmp eax, dword [ebp - 0x18]
je 0x42108a
push eax
call esi
test eax, eax
je 0x42108a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42108a
mov eax, dword [0x44e4ac]
cmp eax, dword [ebp - 0x18]
je 0x42108a
push eax
call esi
test eax, eax
je 0x42108a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44e4a4]
call esi
test eax, eax
je 0x4210a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4210a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aea0
leave
ret
Function at 0x422ca0
Capabilities:
Access the windows event log
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1004
call fcn.00421d80
cmp dword [0x7ef1b8], 0x37
jne 0x422d6a
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
push 0x4044d0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea eax, [esp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4044e8
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x404544
push 0
lea ecx, [esp + 0x40c]
push ecx
push 0x404584
push 0x4045a4
push 0x4045c0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push 0
lea eax, [esp + 0x808]
push eax
push 0x4045d0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
mov ecx, dword [0x7ef1bc]
mov eax, dword [0x7eb628]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x1004
ret
Function at 0x100199c
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push esi
mov esi, dword [0x100ba14]
test esi, esi
je 0x10019dc
push edi
mov ecx, dword [esi + 8]
mov edi, dword [esi]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [esi + 0xc], 0
mov edi, dword [esi + 4]
je 0x10019cf
push dword [esi]
call fcn.010054cd
push esi
call fcn.010054cd
test edi, edi
mov esi, edi
jne 0x10019aa
pop edi
and dword [0x100ba14], 0
xor esi, esi
mov eax, dword [esi + 0x100ade0]
test eax, eax
je 0x1001a00
push eax
call fcn.0100550c
add esi, 4
cmp esi, 0x400
jb 0x10019e5
xor esi, esi
inc esi
cmp dword [0x100ba0c], esi
jbe 0x1001a21
mov eax, dword [0x100ba10]
push dword [eax + esi*4]
call fcn.010054dd
inc esi
cmp esi, dword [0x100ba0c]
jb 0x1001a0b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0100550c
pop esi
ret
Function at 0x1001cd1
Capabilities:
Accept command line arguments
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x5c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 8], ebx
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
push 0x20
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 0x214]
push eax
call fcn.010054a1
cmp eax, ebx
je 0x1001d2a
push eax
call fcn.0100529c
push 0x104
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, eax
cmp esi, ebx
jne 0x1001d4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100529c
mov eax, dword [ebp - 4]
lea eax, [eax + esi*2]
push 0x1001250
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
cmp edi, ebx
pop ecx
pop ecx
je 0x1001d6e
push edi
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1001d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0100529c
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
call esi
push dword [ebp - 8]
call fcn.01001cb8
int3
Function at 0x10020cb
Capabilities:
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [eax], ebx
push 0x800
mov dword [ebp - 8], ebx
mov dword [edi], 0x40
call fcn.010054a1
cmp eax, ebx
je 0x10020ff
push eax
call fcn.0100529c
lea ecx, [ebp - 0xc]
mov eax, 0x1000
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.010054a1
cmp eax, ebx
je 0x100211b
push eax
call fcn.0100529c
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 1
call sub.MPR.dll_WNetOpenEnumW
cmp eax, ebx
jne 0x1002237
push esi
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call sub.MPR.dll_WNetEnumResourceW
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x100215b
cmp eax, 0x103
jne 0x1002236
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, esi
cmp eax, dword [edi]
jb 0x1002180
push dword [ebp + 0xc]
add eax, 0x40
mov dword [edi], eax
shl eax, 5
push eax
call fcn.010054b1
cmp eax, ebx
jne 0x1002236
mov eax, dword [ebp + 0xc]
shl esi, 5
add esi, dword [eax]
cmp dword [ebp - 4], ebx
jbe 0x10021fa
mov edi, dword [ebp - 0xc]
add edi, 0x14
mov eax, dword [edi - 4]
test eax, eax
mov ecx, dword [0x10092b8]
jne 0x10021a2
mov eax, ecx
mov dword [esi], eax
mov eax, dword [edi]
test eax, eax
jne 0x10021ac
mov eax, ecx
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
test eax, eax
jne 0x10021b8
mov eax, ecx
mov dword [esi + 8], eax
mov eax, dword [edi - 0x10]
mov dword [esi + 0xc], eax
push dword [0x100c0d4]
push dword [edi + 8]
call dword [sym.imp.msvcrt.dll_wcscmp]
neg eax
sbb eax, eax
or dword [esi + 0x10], 0xffffffff
and dword [esi + 0x18], 0
and dword [esi + 0x14], 0
inc eax
mov dword [esi + 0x1c], eax
inc ebx
inc dword [ebp - 8]
pop ecx
add esi, 0x20
add edi, 0x20
cmp ebx, dword [ebp - 4]
pop ecx
jb 0x1002193
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jne 0x1002224
lea ecx, [ebp - 0xc]
mov eax, 0x1000
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.010054a1
cmp eax, ebx
je 0x1002132
push eax
call fcn.0100529c
jmp 0x1002132
push dword [ebp - 0x14]
call sub.MPR.dll_WNetCloseEnum
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x1002242
Capabilities:
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
mov esi, 0x1000
push eax
push esi
mov dword [ebp - 0x14], esi
call fcn.010054a1
xor edi, edi
cmp eax, edi
je 0x1002273
push eax
call fcn.0100529c
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push 3
call sub.MPR.dll_WNetOpenEnumW
cmp eax, edi
jne 0x10023e8
or dword [ebp + 8], 0xffffffff
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
call sub.MPR.dll_WNetEnumResourceW
cmp eax, edi
mov dword [ebp - 0x1c], eax
je 0x10022b2
cmp eax, 0x103
jne 0x10023e8
cmp dword [ebp + 8], 0xffffffff
je 0x10023de
cmp dword [ebp + 8], edi
je 0x10023de
mov dword [ebp - 0xc], edi
jbe 0x10023b9
mov esi, dword [ebp - 0x10]
add esi, 0x10
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
cmp dword [ebp - 8], 0
mov edi, dword [eax]
jbe 0x100232a
mov eax, dword [edi]
test eax, eax
je 0x1002314
mov ecx, dword [esi]
test ecx, ecx
je 0x1002314
cmp word [eax], 0
je 0x100230e
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
push eax
push dword [edi]
push dword [esi]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0x10
test eax, eax
jmp 0x1002312
cmp word [ecx], 0
je 0x1002322
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x20
cmp eax, dword [ebp - 8]
jb 0x10022e3
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jb 0x10023a0
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp dword [ebx], eax
jb 0x100234c
push dword [ebp + 0xc]
add eax, 0x40
mov dword [ecx], eax
shl eax, 5
push eax
call fcn.010054b1
test eax, eax
jne 0x10023e8
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
mov edi, dword [0x10092bc]
shl eax, 5
add eax, dword [ecx]
mov ecx, dword [esi]
test ecx, ecx
jne 0x1002364
mov ecx, edi
mov dword [eax], ecx
mov edx, dword [esi + 4]
test edx, edx
jne 0x100236f
mov edx, edi
mov dword [eax + 4], edx
mov edx, dword [esi + 0xc]
test edx, edx
jne 0x100237b
mov edx, edi
mov dword [eax + 8], edx
mov edx, dword [esi - 0xc]
mov dword [eax + 0xc], edx
xor edx, edx
push ecx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x10], 0xfffe
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
call dword [sym.imp.msvcrt.dll__wcsupr]
inc dword [ebx]
pop ecx
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add esi, 0x20
cmp eax, dword [ebp + 8]
jb 0x10022d4
xor edi, edi
mov esi, 0x1000
cmp dword [ebp - 0x1c], edi
jne 0x10023de
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x14], esi
call fcn.010054a1
cmp eax, edi
je 0x1002289
push eax
call fcn.0100529c
jmp 0x1002289
push dword [ebp - 0x18]
call sub.MPR.dll_WNetCloseEnum
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1002aa2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea ecx, [ebp - 4]
mov eax, 0x200
xor esi, esi
push ecx
inc esi
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
call fcn.010054a1
test eax, eax
je 0x1002acd
push eax
call fcn.0100529c
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0x1001310
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002b57
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0
mov edi, 0x1001304
push edi
push dword [ebp - 8]
call esi
mov ebx, eax
cmp ebx, 0xea
jne 0x1002b48
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.010054b1
mov ebx, eax
test ebx, ebx
je 0x1002b33
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.0100529c
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [ebp - 8]
call esi
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test ebx, ebx
pop ebx
je 0x1002b63
push dword [ebp - 4]
call fcn.010054cd
xor eax, eax
jmp 0x1002b66
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x1003b36
Capabilities:
Connect network resource
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
mov eax, 0x2000
push ecx
xor ebx, ebx
push eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], eax
call fcn.010054a1
cmp eax, ebx
jne 0x1003ce9
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push ebx
push ebx
push 2
call sub.MPR.dll_WNetOpenEnumW
mov edi, eax
mov esi, 0x4dc
cmp edi, esi
jne 0x1003c96
push ebx
push ebx
push ebx
push dword [ebp + 8]
call sub.MPR.dll_WNetAddConnection2W
test eax, eax
jne 0x1003c94
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push ebx
push ebx
push 2
call sub.MPR.dll_WNetOpenEnumW
mov edi, eax
cmp edi, ebx
jne 0x1003c85
mov dword [ebp - 0x10], 1
mov edi, dword [ebp + 0x14]
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call sub.MPR.dll_WNetEnumResourceW
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x1003be7
cmp eax, 0x103
jne 0x1003cca
cmp dword [ebp - 8], 0xffffffff
je 0x1003cc0
cmp dword [ebp - 8], ebx
mov esi, dword [ebp - 0x14]
mov dword [ebp + 0x14], ebx
jbe 0x1003c4d
mov eax, dword [ebp - 4]
add dword [ebp - 4], 4
mov ecx, dword [ebp + 0xc]
mov dword [eax], esi
inc dword [edi]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ecx]
add ecx, eax
cmp dword [ebp - 4], ecx
jb 0x1003c3f
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add eax, eax
push eax
mov dword [ecx], eax
call fcn.010054b1
cmp eax, ebx
je 0x1003c32
push eax
call fcn.0100529c
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
mov dword [ebp - 4], eax
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
add esi, 0x20
cmp eax, dword [ebp - 8]
jb 0x1003bfc
cmp dword [ebp - 0x18], ebx
jne 0x1003ca2
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call fcn.010054a1
mov esi, eax
cmp esi, ebx
je 0x1003bbe
cmp dword [ebp - 0x10], ebx
je 0x1003c7a
mov eax, dword [ebp + 8]
push ebx
push ebx
push dword [eax + 0x14]
call sub.MPR.dll_WNetCancelConnection2W
push esi
call fcn.0100529c
jmp 0x1003bbe
mov eax, dword [ebp + 8]
push ebx
push ebx
push dword [eax + 0x14]
call sub.MPR.dll_WNetCancelConnection2W
jmp 0x1003c96
mov edi, esi
cmp edi, ebx
je 0x1003bbb
mov eax, edi
jmp 0x1003ce7
push dword [ebp - 0xc]
call sub.MPR.dll_WNetCloseEnum
cmp dword [ebp - 0x10], ebx
je 0x1003cbc
mov eax, dword [ebp + 8]
push ebx
push ebx
push dword [eax + 0x14]
call sub.MPR.dll_WNetCancelConnection2W
xor eax, eax
jmp 0x1003ce7
cmp eax, 0x103
jne 0x1003cca
mov dword [ebp - 0x18], ebx
push dword [ebp - 0xc]
call sub.MPR.dll_WNetCloseEnum
cmp dword [ebp - 0x10], ebx
je 0x1003ce4
mov eax, dword [ebp + 8]
push ebx
push ebx
push dword [eax + 0x14]
call sub.MPR.dll_WNetCancelConnection2W
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x1003cf3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
lea ecx, [ebp - 4]
push ecx
inc eax
push eax
push 0
push 0x1001430
push 0x80000002
mov dword [ebp - 8], 0x200
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1003d27
xor eax, eax
jmp 0x1003d5c
push esi
push edi
lea eax, [ebp - 8]
push eax
mov esi, 0x100c2e8
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
neg eax
sbb eax, eax
not eax
pop edi
and eax, esi
pop esi
leave
ret 4

Function at 0x1003d65
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x614
mov eax, dword [0x100931c]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x60c]
push eax
push 1
xor edi, edi
push edi
push 0x1001430
push 0x80000002
mov dword [ebp - 0x608], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1003db2
cmp eax, 2
jne 0x1003e6e
mov eax, 0x4b4
jmp 0x1003e6e
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x604]
push eax
push edi
push edi
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
push dword [ebp - 0x60c]
mov dword [ebp - 0x614], 0x100
mov dword [ebp - 0x610], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, edi
jne 0x1003e37
cmp dword [ebp - 0x608], edi
jne 0x1003e1c
call fcn.010051f6
push 0x1262
call fcn.01005222
mov dword [ebp - 0x608], 1
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x204]
push eax
push 0x10014a8
call fcn.01004ea6
add esp, 0xc
inc ebx
cmp esi, edi
je 0x1003db6
push dword [ebp - 0x60c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
jne 0x1003e6a
mov eax, dword [ebp - 0x608]
neg eax
sbb eax, eax
and eax, 0xfffffb4c
add eax, 0x4b4
jmp 0x1003e6c
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01004902
leave
ret