joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001920
Capabilities:
Accept command line arguments

Disassembly:
push esi
mov esi, dword [0x100b9f4]
test esi, esi
je 0x100195e
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 0x1001951
push dword [esi]
call fcn.01004de8
push esi
call fcn.01004de8
test edi, edi
mov esi, edi
jne 0x100192c
pop edi
mov eax, dword [0x100adc0]
and dword [0x100b9f4], 0
test eax, eax
je 0x1001982
mov esi, 0x100adc0
push eax
call fcn.01004e1c
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x1001973
xor esi, esi
inc esi
cmp dword [0x100b9ec], esi
jbe 0x10019a3
mov eax, dword [0x100b9f0]
push dword [eax + esi*4]
call fcn.01004ded
inc esi
cmp esi, dword [0x100b9ec]
jb 0x100198d
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.01004e1c
pop esi
ret
Function at 0x1001c2e
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
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 + 0xc]
push eax
call fcn.01004dd0
cmp eax, ebx
je 0x1001c82
push eax
call fcn.01004bff
push 0x1001220
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcscpy]
cmp edi, ebx
pop ecx
pop ecx
je 0x1001ca2
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 0x1001ccc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01004bff
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.01001c1e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001fe9
Capabilities:
Enumerate network shares

Disassembly:
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.01004dd0
cmp eax, ebx
je 0x100201b
push eax
call fcn.01004bff
lea ecx, [ebp - 0xc]
mov eax, 0x1000
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.01004dd0
cmp eax, ebx
je 0x1002037
push eax
call fcn.01004bff
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push 1
call sub.MPR.dll_WNetOpenEnumW
cmp eax, ebx
jne 0x1002153
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 0x1002077
cmp eax, 0x103
jne 0x1002152
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 4]
add eax, esi
cmp eax, dword [edi]
jb 0x100209c
push dword [ebp + 0xc]
add eax, 0x40
mov dword [edi], eax
shl eax, 5
push eax
call fcn.01004dd5
cmp eax, ebx
jne 0x1002152
mov eax, dword [ebp + 0xc]
shl esi, 5
add esi, dword [eax]
cmp dword [ebp - 4], ebx
jbe 0x1002116
mov edi, dword [ebp - 0xc]
add edi, 0x14
mov eax, dword [edi - 4]
test eax, eax
mov ecx, dword [0x10092b8]
jne 0x10020be
mov eax, ecx
mov dword [esi], eax
mov eax, dword [edi]
test eax, eax
jne 0x10020c8
mov eax, ecx
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
test eax, eax
jne 0x10020d4
mov eax, ecx
mov dword [esi + 8], eax
mov eax, dword [edi - 0x10]
mov dword [esi + 0xc], eax
push dword [0x100c2c4]
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 0x10020af
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
jne 0x1002140
lea ecx, [ebp - 0xc]
mov eax, 0x1000
push ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.01004dd0
cmp eax, ebx
je 0x100204e
push eax
call fcn.01004bff
jmp 0x100204e
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 0x1002159
Capabilities:
Enumerate network shares

Disassembly:
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.01004dd0
xor edi, edi
cmp eax, edi
je 0x1002188
push eax
call fcn.01004bff
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push 3
call sub.MPR.dll_WNetOpenEnumW
cmp eax, edi
jne 0x10022fd
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 0x10021c7
cmp eax, 0x103
jne 0x10022fd
cmp dword [ebp + 8], 0xffffffff
je 0x10022f3
cmp dword [ebp + 8], edi
je 0x10022f3
mov dword [ebp - 0xc], edi
jbe 0x10022ce
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 0x100223f
mov eax, dword [edi]
test eax, eax
je 0x1002229
mov ecx, dword [esi]
test ecx, ecx
je 0x1002229
cmp word [eax], 0
je 0x1002223
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 0x1002227
cmp word [ecx], 0
je 0x1002237
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 0x20
cmp eax, dword [ebp - 8]
jb 0x10021f8
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jb 0x10022b5
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp dword [ebx], eax
jb 0x1002261
push dword [ebp + 0xc]
add eax, 0x40
mov dword [ecx], eax
shl eax, 5
push eax
call fcn.01004dd5
test eax, eax
jne 0x10022fd
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 0x1002279
mov ecx, edi
mov dword [eax], ecx
mov edx, dword [esi + 4]
test edx, edx
jne 0x1002284
mov edx, edi
mov dword [eax + 4], edx
mov edx, dword [esi + 0xc]
test edx, edx
jne 0x1002290
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 0x10021e9
xor edi, edi
mov esi, 0x1000
cmp dword [ebp - 0x1c], edi
jne 0x10022f3
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x14], esi
call fcn.01004dd0
cmp eax, edi
je 0x100219e
push eax
call fcn.01004bff
jmp 0x100219e
push dword [ebp - 0x18]
call sub.MPR.dll_WNetCloseEnum
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1002922
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea ecx, [ebp - 8]
mov eax, 0x200
xor esi, esi
push ecx
inc esi
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esi
call fcn.01004dd0
test eax, eax
je 0x100294b
push eax
call fcn.01004bff
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0x10012e0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100296a
xor eax, eax
jmp 0x10029e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push 0
mov edi, 0x10012d4
push edi
push dword [ebp - 4]
call esi
mov ebx, eax
cmp ebx, 0xea
jne 0x10029ca
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
call fcn.01004dd0
mov ebx, eax
test ebx, ebx
je 0x10029b5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.01004bff
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [ebp - 4]
call esi
mov ebx, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 8]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100385d
Capabilities:
Connect network resource
Enumerate network shares

Disassembly:
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.01004dd0
cmp eax, ebx
jne 0x1003a0e
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 0x10039bb
push ebx
push ebx
push ebx
push dword [ebp + 8]
call sub.MPR.dll_WNetAddConnection2W
test eax, eax
jne 0x10039b9
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 0x10039aa
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 0x100390c
cmp eax, 0x103
jne 0x10039ef
cmp dword [ebp - 8], 0xffffffff
je 0x10039e5
cmp dword [ebp - 8], ebx
mov esi, dword [ebp - 0x14]
mov dword [ebp + 0x14], ebx
jbe 0x1003972
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 0x1003964
push dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
add eax, eax
push eax
mov dword [ecx], eax
call fcn.01004dd5
cmp eax, ebx
je 0x1003957
push eax
call fcn.01004bff
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 0x1003921
cmp dword [ebp - 0x18], ebx
jne 0x10039c7
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call fcn.01004dd0
mov esi, eax
cmp esi, ebx
je 0x10038e3
cmp dword [ebp - 0x10], ebx
je 0x100399f
mov eax, dword [ebp + 8]
push ebx
push ebx
push dword [eax + 0x14]
call sub.MPR.dll_WNetCancelConnection2W
push esi
call fcn.01004bff
jmp 0x10038e3
mov eax, dword [ebp + 8]
push ebx
push ebx
push dword [eax + 0x14]
call sub.MPR.dll_WNetCancelConnection2W
jmp 0x10039bb
mov edi, esi
cmp edi, ebx
je 0x10038e0
mov eax, edi
jmp 0x1003a0c
push dword [ebp - 0xc]
call sub.MPR.dll_WNetCloseEnum
cmp dword [ebp - 0x10], ebx
je 0x10039e1
mov eax, dword [ebp + 8]
push ebx
push ebx
push dword [eax + 0x14]
call sub.MPR.dll_WNetCancelConnection2W
xor eax, eax
jmp 0x1003a0c
cmp eax, 0x103
jne 0x10039ef
mov dword [ebp - 0x18], ebx
push dword [ebp - 0xc]
call sub.MPR.dll_WNetCloseEnum
cmp dword [ebp - 0x10], ebx
je 0x1003a09
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 0x1003a13
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
lea ecx, [ebp - 4]
push ecx
inc eax
push eax
push 0
push 0x1001400
push 0x80000002
mov dword [ebp - 8], 0x200
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1003a45
xor eax, eax
jmp 0x1003a7a
push esi
push edi
lea eax, [ebp - 8]
push eax
mov esi, 0x100c2c8
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 0x1003a7e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x610
push edi
lea eax, [ebp - 8]
push eax
push 1
xor edi, edi
push edi
push 0x1001400
push 0x80000002
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1003abb
cmp eax, 2
jne 0x1003b58
mov eax, 0x4b4
jmp 0x1003b58
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x610]
push eax
push edi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x10], 0x100
mov dword [ebp - 0xc], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, edi
jne 0x1003b2b
cmp dword [ebp - 4], edi
jne 0x1003b10
call fcn.01004b84
push 0x1262
call fcn.01004ba6
mov dword [ebp - 4], 1
lea eax, [ebp - 0x610]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x1001478
call fcn.01004883
add esp, 0xc
inc ebx
cmp esi, edi
je 0x1003abf
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
jne 0x1003b54
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xfffffb4c
add eax, 0x4b4
jmp 0x1003b56
mov eax, esi
pop esi
pop ebx
pop edi
leave
ret
Function at 0x1004473
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x10014e8
call fcn.01004650
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x10044ae
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10044ae
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10044c6
cmp eax, 0x20b
je 0x10044b3
mov dword [ebp - 0x1c], edi
jmp 0x10044da
cmp dword [ecx + 0x84], 0xe
jbe 0x10044ae
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x10044d4
cmp dword [ecx + 0x74], 0xe
jbe 0x10044ae
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100fb60], 0xffffffff
or dword [0x100fb64], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100c4d4]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100c4d0]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100fb68], eax
call fcn.0100464c
cmp dword [0x1009320], edi
jne 0x1004535
push fcn.0100464c
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100463a
push 0x10011ec
push 0x10011e8
call sub.msvcrt.dll__initterm
mov eax, dword [0x100c4cc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100c4c8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10011e4
push 0x10011e0
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010019b1
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x10045ac
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10045e1
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01004689
ret
Function at 0x1005842
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
mov bl, byte [ebp + 0x18]
test bl, 4
je 0x1005861
test bl, 0xa
je 0x1005861
push 0x57
pop eax
jmp 0x10058fd
xor eax, eax
mov al, bl
push edi
and eax, 8
mov dword [ebp - 8], eax
xor eax, eax
mov al, bl
and eax, 2
mov dword [ebp - 4], eax
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x408]
push 0x200
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100753b
mov edi, eax
test edi, edi
je 0x100589f
test bl, 4
jne 0x10058d1
push esi
push dword [ebp + 0x18]
lea eax, [ebp - 0x408]
push eax
mov esi, 0x1012220
push esi
call dword [sym.imp.msvcrt.dll_wcsncpy]
mov eax, dword [ebp + 0x18]
and word [eax*2 + 0x1012220], 0
add esp, 0xc
push 0
push esi
push dword [ebp + 0x1c]
call fcn.01006e36
pop esi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10058dd
mov ecx, dword [ebp + 0x18]
mov dword [eax], ecx
cmp word [ebp - 8], 0
je 0x10058eb
test edi, edi
je 0x10058eb
push edi
jmp 0x10058f4
cmp word [ebp - 4], 0
je 0x10058fa
push 0xffffffffffffffff
call dword [sym.imp.msvcrt.dll_exit]
mov eax, edi
pop edi
pop ebx
leave
ret 0x18

Function at 0x1005bca
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_ftell]
test eax, eax
mov esi, dword [sym.imp.msvcrt.dll_fread]
pop ecx
jne 0x1005c2b
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push 1
push 2
push eax
call esi
add esp, 0x10
cmp dword [ebp - 4], 0xfeff
je 0x1005c2b
push 0x10017f8
mov ebx, 0x1012220
push ebx
call dword [sym.imp.msvcrt.dll_swprintf]
pop ecx
pop ecx
push 0
push ebx
push dword [0x100d354]
call fcn.01006e36
push dword [ebp + 0x10]
push 1
push 2
pop ebx
jmp 0x1005c5d
mov eax, dword [ebp - 4]
cmp eax, 0xd
je 0x1005c58
cmp eax, 0xa
je 0x1005c71
cmp eax, 9
je 0x1005c4f
mov word [edi], ax
add edi, ebx
inc dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
dec ecx
cmp dword [ebp - 8], ecx
jge 0x1005c78
push dword [ebp + 0x10]
push 1
lea eax, [ebp - 4]
push ebx
push eax
call esi
add esp, 0x10
cmp eax, 1
jae 0x1005c35
or eax, 0xffffffff
jmp 0x1005c78
mov word [edi], 0xa
add edi, ebx
and word [edi], 0
cmp eax, 0xffffffff
jne 0x1005c8a
cmp edi, dword [ebp + 8]
jne 0x1005c8a
xor eax, eax
jmp 0x1005c8d
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1006dbe
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.01006da5
test eax, eax
je 0x1006de4
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1006e32
mov eax, dword [ebp + 0x10]
push esi
push edi
add eax, eax
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
je 0x1006e30
mov eax, dword [ebp + 0x10]
push esi
push esi
lea ecx, [eax + eax]
push ecx
push edi
push eax
push dword [ebp + 0xc]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, esi
mov dword [ebp + 0x10], eax
je 0x1006e29
push esi
lea ecx, [ebp + 0x10]
push ecx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1006e81
Capabilities:
List domain servers

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
push ebx
push dword [ebp + 0x1c]
lea eax, [ebp + 0x18]
push dword [ebp + 0x18]
push eax
push esi
push 0xffffffffffffffff
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call sub.NETAPI32.dll_NetServerEnum
cmp eax, ebx
mov dword [ebp + 0x1c], eax
je 0x1006eb7
cmp eax, 0xea
jne 0x1006f0b
cmp dword [ebp + 0xc], 0x64
mov edi, dword [edi]
jne 0x1006ee6
cmp dword [esi], ebx
jbe 0x1006f0b
lea eax, [edi + 4]
mov dword [ebp + 0xc], eax
push 4
push dword [ebp + 0xc]
push edi
call dword [sym.imp.msvcrt.dll_memmove]
add dword [ebp + 0xc], 8
add esp, 0xc
inc ebx
add edi, 4
cmp ebx, dword [esi]
jb 0x1006ec9
jmp 0x1006f0b
cmp dword [esi], ebx
jbe 0x1006f0b
lea eax, [edi + 4]
mov dword [ebp + 0xc], eax
push 0x14
push dword [ebp + 0xc]
push edi
call dword [sym.imp.msvcrt.dll_memmove]
add dword [ebp + 0xc], 0x18
add esp, 0xc
inc ebx
add edi, 0x14
cmp ebx, dword [esi]
jb 0x1006ef0
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x4021a5
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebp + 8]
mov eax, dword [0x4c6810]
push ebx
push esi
push edi
mov eax, dword [eax + ecx*4]
mov ecx, 0x4c67b0
push dword [ebp + 0x10]
mov ebx, dword [eax]
mov dword [ebp - 4], ebx
call fcn.004025db
push 0xf
mov esi, eax
mov byte [ebp + 0xb], 0
call dword [0x48f528]
cmp dword [ebx + 0x4c], 0xffffffff
mov edi, eax
je 0x4021e4
mov edi, dword [ebx + 0x4c]
cmp esi, 0xffffffff
je 0x43c155
mov eax, dword [0x4c6824]
mov eax, dword [eax + esi*4]
mov ebx, dword [eax]
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jns 0x402267
cmp byte [ebx + 0x90], 0x1b

Function at 0x40506b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp byte [ecx + 0x14], 0
adc al, 0
Function at 0x4069ca
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push 1
mov edi, ecx
mov dword [ebp - 0x5c], ebx
push dword [esi]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x54], bl
call fcn.00404f3d
test eax, eax
je 0x43e45a
push 2
push dword [esi]
lea ecx, [ebp - 0x68]
call fcn.00404f3d
test eax, eax
je 0x43e45a
mov eax, dword [ebp + 0x10]
cmp dword [eax], 4
je 0x43e47b
push ebx
push 0x48f910
push esi
push dword [ebp + 0xc]
mov ecx, edi
mov dword [eax], 2
push esi
call fcn.00406bec
mov bl, al
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
sub al, 0x53
push esi
push edi
push 0x2000
mov edi, ecx
call fcn.00420ff6
pop ecx
push eax
lea ecx, [ebp - 8]
call fcn.0040538e
mov esi, dword [ebp + 8]
cmp word [esi], 0x23
je 0x406a89
push 3
pop ebx
mov eax, dword [ebp - 4]
dec dword [eax]
jne 0x406a7e
push eax
call fcn.0042106c
pop ecx
push dword [ebp - 8]
clc
call fcn.0042106c
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0xf
push 0x492624
push esi
call fcn.00423a0b
add esp, 0xc
test eax, eax
je 0x406bd2
push 0xb
push 0x49267c
push esi
call fcn.00423a0b
add esp, 0xc
test eax, eax
je 0x406bda
push 0xd
push 0x492644
push esi
call fcn.00423a0b
add esp, 0xc
test eax, eax
je 0x43e6e3
push 0x16
push 0x4925f4
push esi
call fcn.00423a0b
add esp, 0xc
test eax, eax
je 0x43e6ee
push 0xd
push 0x492660
push esi
call fcn.00423a0b
add esp, 0xc
test eax, eax
je 0x43e771
push 8
push 0x49242c
push esi
call fcn.00423a0b
add esp, 0xc
test eax, eax
je 0x43e7b3
push 0xf
push str.comments_end
push esi
call fcn.00423a0b
add esp, 0xc
test eax, eax
je 0x406b45
push 3
push 0x48fb70
push esi
call fcn.00423a0b
add esp, 0xc
test eax, eax
jne 0x406bd2
xor ebx, ebx
inc ebx
mov dword [ebp + 8], ebx
push ecx
mov ecx, dword [ebp + 0x14]
push esi
call fcn.004059cd
test al, al
je 0x43e820
mov eax, dword [ebp + 0x10]
push esi
inc dword [eax]
call fcn.0040710a
push esi
call fcn.004070bd
push 0xf
push str.comments_end
push esi
call fcn.00423a0b
add esp, 0xc
test eax, eax
je 0x406be4
push 3
push 0x48fb70
push esi
call fcn.00423a0b
add esp, 0xc
test eax, eax
je 0x406be4
push 0xd
push 0x48fb2c
push esi
call fcn.00423a0b
add esp, 0xc
test eax, eax
je 0x406bbe
push 3
push 0x48fb48
push esi
call fcn.00423a0b
add esp, 0xc
test eax, eax
jne 0x406b4b
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp + 8], eax
test eax, eax
jle 0x406a67
jmp 0x406b4b
xor ebx, ebx
inc ebx
jmp 0x406a67
xor ebx, ebx
inc ebx
mov byte [edi], bl
jmp 0x406a67
invalid
inc dword [ebp + 8]
jmp 0x406b4b
jbe 0x43e430
add al, byte [esi]
sal byte [ebp + ebx - 0x73], 0x4d
cwde
call fcn.00404fba
movzx eax, byte [edi + 2]
push eax
push ecx
mov ecx, dword [edi + 0x60]
call fcn.00464544
pop ecx
pop ecx
jmp 0x406a41
call fcn.00422fa5
invalid
push 0xb9ebfffc
xor ebx, ebx
inc ebx
mov byte [edi + 1], bl
jmp 0x406a77
adc edi, edi
push edx
or byte [ebx - 0x18], dl
add dword [ecx], ebp
dec cl
pop ecx
jmp 0x406be2
mov al, 0x39
sbb byte [edi], cl
invalid
invalid