joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467848
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
xor eax, eax
push ebp
push 0x467900
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x46cc34]
call fcn.004083e8
test al, al
je 0x467878
mov eax, dword [0x46cc34]
call fcn.00408510
push 0
push 0x467914
lea edx, [ebp - 0xc]
mov eax, dword [0x46b9a0]
mov eax, dword [eax]
call fcn.00452a08
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004085a8
push dword [ebp - 8]
lea edx, [ebp - 0x14]
mov eax, dword [0x46b9a0]
mov eax, dword [eax]
call fcn.00452a08
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004085dc
push dword [ebp - 0x10]
push 0x467940
lea eax, [ebp - 4]
mov edx, 4
call fcn.00404360
mov eax, dword [ebp - 4]
call fcn.004044a0
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [0x46b9a0]
mov eax, dword [eax]
call fcn.004524e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467907
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404004
ret

Function at 0x467944
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404490
xor eax, eax
push ebp
push 0x467a2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403fe0
mov esi, 0x41
lea eax, [ebp - 0xc]
mov ebx, esi
mov edx, ebx
call fcn.004041c8
lea eax, [ebp - 0xc]
mov edx, 0x467a44
call fcn.004042a8
mov eax, dword [ebp - 0xc]
call fcn.004044a0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
jne 0x4679ff
lea eax, [ebp - 0x10]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.00402b84
mov edx, 0x467a48
lea eax, [ebp - 0x14]
mov cl, 2
call fcn.00402b54
lea edx, [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.00404244
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004042ec
mov eax, dword [ebp - 0x18]
call fcn.004083e8
test al, al
je 0x4679ff
mov eax, edi
mov edx, dword [ebp - 8]
call fcn.00404034
inc esi
cmp esi, 0x5b
jne 0x46797f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467a33
lea eax, [ebp - 0x18]
call fcn.00403fe0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404004
ret
Function at 0x467a4c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404490
xor eax, eax
push ebp
push 0x467b34
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00403fe0
mov esi, 0x41
lea eax, [ebp - 0xc]
mov ebx, esi
mov edx, ebx
call fcn.004041c8
lea eax, [ebp - 0xc]
mov edx, 0x467b4c
call fcn.004042a8
mov eax, dword [ebp - 0xc]
call fcn.004044a0
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x467b07
lea eax, [ebp - 0x10]
mov edx, ebx
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x14]
call fcn.00402b84
mov edx, 0x467b50
lea eax, [ebp - 0x14]
mov cl, 2
call fcn.00402b54
lea edx, [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.00404244
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004042ec
mov eax, dword [ebp - 0x18]
call fcn.004083e8
test al, al
je 0x467b07
mov eax, edi
mov edx, dword [ebp - 8]
call fcn.00404034
inc esi
cmp esi, 0x5b
jne 0x467a87
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467b3b
lea eax, [ebp - 0x18]
call fcn.00403fe0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404004
ret
Function at 0x1002f06
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa2c
mov eax, dword [0x100938c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push edi
mov word [0x100a16e], ax
mov word [ebp - 0x20e], ax
mov word [ebp - 6], ax
push 0xf9
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1002f9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x100167c
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
push dword [ebp + 8]
mov esi, 0x1009928
push dword [ebp + 8]
push 0x100166c
push 0x423
push 0x424
push esi
call fcn.01005b37
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100597e
leave
ret 4
push 2
push 0x100125c
mov esi, 0x104
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push esi
push eax
call fcn.01005bcf
push 0xa
push 0x1001658
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push esi
push eax
call fcn.01005bcf
mov eax, dword [ebp + 8]
and eax, 0x1fff0000
add esp, 0x20
cmp eax, 0x70000
jne 0x1002fe1
and dword [ebp + 8], reloc.NETAPI32.dll_DsGetDcNameW
xor ebx, ebx
cmp dword [0x1009920], ebx
jne 0x1003005
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1009920], eax
cmp eax, ebx
je 0x1002f65
mov esi, dword [sym.imp.KERNEL32.dll_FormatMessageW]
push ebx
mov edi, 0x40f
push edi
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
push ebx
push dword [ebp + 8]
push ebx
push 0x1200
call esi
test eax, eax
jne 0x100305c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x13d
jne 0x1002f65
push ebx
push edi
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
push ebx
push dword [ebp + 8]
push dword [0x1009920]
push 0xa00
call esi
test eax, eax
je 0x1002f65
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
push dword [ebp + 8]
mov esi, 0x1009928
push dword [ebp + 8]
push 0x100163c
push 0x423
push 0x424
push esi
call fcn.01005b37
add esp, 0x1c
jmp 0x1002f88
Function at 0x10031bd
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x100938c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
push edi
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
xor esi, esi
push 0x20019
push esi
mov edi, 0x1001788
push edi
push 0x80000002
mov dword [ebp - reloc.NETAPI32.dll_DsGetDcNameW], esi
mov dword [ebp - reloc.NETAPI32.dll_DsGetDcNameW], esi
mov dword [ebp - reloc.NETAPI32.dll_DsGetDcNameW], esi
call ebx
mov ecx, eax
sub ecx, esi
je 0x1003237
dec ecx
dec ecx
je 0x1003227
push eax
push edi
push 0x2713
call fcn.01002773
add esp, 0xc
jmp 0x1003380
push 0x2712
call fcn.01002773
pop ecx
jmp 0x1003380
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push esi
push esi
push esi
push esi
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
mov dword [ebp - reloc.NETAPI32.dll_DsGetDcNameW], esi
push esi
jmp 0x1003334
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
push 0x20019
push esi
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
push dword [ebp - 0x108]
call ebx
cmp eax, esi
jne 0x1003366
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
push 0x1001780
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
push 0x100176c
push 1
push dword [ebp - 0x10c]
push 0x1001768
call fcn.01003149
push 0x100173c
push esi
push dword [ebp - 0x10c]
push 0x1001728
call fcn.01003149
push 0x100170c
push esi
push dword [ebp - 0x10c]
push 0x1001704
call fcn.01003149
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
call fcn.01004b67
test eax, eax
jl 0x1003316
push dword [ebp - 0x110]
push 0x2717
call fcn.01002773
pop ecx
pop ecx
push dword [ebp - 0x110]
call fcn.01004ac4
push 0x100136c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
inc dword [ebp - reloc.NETAPI32.dll_DsGetDcNameW]
push esi
push esi
push esi
push esi
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
push dword [ebp - 0x114]
push dword [ebp - 0x108]
mov dword [ebp - reloc.NETAPI32.dll_DsGetDcNameW], 0x80
call edi
cmp eax, esi
je 0x100325b
cmp eax, 0x103
je 0x1003380
push eax
push 0x2714
call fcn.01002773
pop ecx
jmp 0x1003231
push eax
lea eax, reloc.NETAPI32.dll_DsGetDcNameW
push eax
push 0x1001788
push 0x2716
call fcn.01002773
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0100597e
leave
ret
Function at 0x10038a3
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor eax, eax
xor ebx, ebx
cmp dword [0x100a170], ebx
push esi
setne al
xor esi, esi
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x100398b
mov eax, dword [0x100a178]
cmp eax, ebx
je 0x10038f6
lea ecx, [ebp - 8]
push ecx
push 0x8210
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
cmp eax, ebx
jne 0x1003932
mov eax, dword [ebp - 8]
mov esi, dword [eax]
jmp 0x10038f0
inc esi
inc esi
cmp word [esi], 0x5c
je 0x10038ee
push edi
push 0x185
push esi
call dword [sym.imp.WLDAP32.dll_Ordinal_170]
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
je 0x1003966
push 0x486
push ebx
push ebx
push edi
call dword [sym.imp.WLDAP32.dll_Ordinal_73]
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x100394a
mov dword [0x100a170], edi
mov dword [ebp - 4], 1
jmp 0x100398a
push eax
push dword [0x100a178]
push 0x2720
call fcn.01002773
add esp, 0xc
xor eax, eax
jmp 0x100398e
push edi
call dword [sym.imp.WLDAP32.dll_Ordinal_13]
pop ecx
cmp esi, ebx
jne 0x100395b
mov esi, 0x1001c24
push dword [ebp - 0xc]
push esi
push 0x2721
jmp 0x100397c
cmp esi, ebx
jne 0x100396f
mov esi, 0x1001c24
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x2722
call fcn.01002773
add esp, 0xc
mov dword [0x100a170], ebx
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x1003f2e
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
push edi
lea eax, [ebp + 8]
push eax
push 0
mov edi, 0xc0000001
call fcn.01002e27
test eax, eax
jne 0x1003f7e
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x1003f73
add eax, 0xfffffffe
cmp eax, 1
ja 0x1003f75
push esi
push 0x2741
call fcn.01002773
pop ecx
pop ecx
jmp 0x1003f75
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x100477b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
cmp eax, edi
jne 0x100483d
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x100482b
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push dword [ebp + 8]
call esi
cmp eax, edi
jne 0x1004810
cmp dword [ebp - 4], 4
mov dword [ebp - 8], 1
jbe 0x1004820
mov esi, dword [ebp + 0xc]
jmp 0x1004804
mov ecx, dword [ebp - 0x10]
push esi
call fcn.01004648
test eax, eax
je 0x100480b
push edi
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
inc eax
pop ecx
inc eax
pop ecx
mov esi, eax
cmp word [esi], di
jne 0x10047e9
jmp 0x1004820
mov dword [ebp - 8], edi
jmp 0x1004820
push eax
push ebx
push 0x1001df8
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_free]
jmp 0x100483a
push dword [ebp - 4]
push 0x1001dcc
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
jmp 0x100485b
cmp eax, 2
jne 0x100484b
mov dword [ebp - 8], 1
jmp 0x100485b
push eax
push ebx
push 0x1001db0
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100486a
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
add eax, dword [esi]
push edi
lea eax, [eax + eax + 4]
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x10048ab
push dword [ebp + 0xc]
push 0x1001e4c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
jmp 0x1004942
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [esi], edi
jbe 0x10048f7
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 4]
mov ecx, dword [eax + ecx*4]
mov eax, ecx
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
test di, di
jne 0x10048c3
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
lea eax, [edi + edi]
push eax
mov eax, dword [ebp - 8]
push ecx
lea eax, [ebx + eax*2]
push eax
call sub.msvcrt.dll_memcpy
add dword [ebp - 8], edi
add esp, 0xc
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi]
jb 0x10048b5
xor edi, edi
push dword [ebp - 0x10]
mov eax, dword [ebp - 8]
push ebx
push 7
push edi
push dword [ebp + 0xc]
lea eax, [ebx + eax*2]
push dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
mov word [eax + 2], cx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp esi, edi
je 0x100493b
push esi
push dword [ebp + 0xc]
push 0x1001e1c
call dword [sym.imp.msvcrt.dll_printf]
add esp, 0xc
jmp 0x1004942
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1004b67
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 4
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [esi], edi
call fcn.01003090
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x1004bb5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
test cl, cl
jns 0x1004baa
mov ebx, 0x80
mov eax, 0x100
test eax, ecx
je 0x1004bb5
or ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.01002e27
test eax, eax
jne 0x1004bf8
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push edi
push 0x1001f24
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x1004bec
add eax, 0xfffffffe
cmp eax, 1
ja 0x1004bef
mov dword [esi], edi
mov dword [ebp + 0xc], edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [esi], ebx
cmp dword [ebp - 4], edi
pop edi
pop esi
pop ebx
je 0x1004c0a
push dword [ebp - 4]
call sub.ADVAPI32.dll_LsaFreeMemory
mov eax, dword [ebp + 0xc]
leave
ret 8

Function at 0x1004c16
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.01003090
mov edi, eax
cmp edi, esi
jne 0x1004cc0
test byte [ebp + 0xc], 0x80
mov eax, dword [ebp - 4]
je 0x1004c50
or dword [eax + 0x1c], 0x80
jmp 0x1004c57
and dword [eax + 0x1c], reloc.NETAPI32.dll_DsGetDcNameW
mov eax, dword [ebp - 4]
mov ecx, 0x100
test dword [ebp + 0xc], ecx
je 0x1004c69
or dword [eax + 0x1c], ecx
jmp 0x1004c70
and dword [eax + 0x1c], reloc.NETAPI32.dll_DsGetDcNameW
push 0x1009704
push 1
lea eax, [ebp - 0x28]
push eax
push esi
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call sub.ADVAPI32.dll_LsaOpenPolicy
mov edi, eax
cmp edi, esi
jl 0x1004cc0
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push 6
push eax
push dword [0x1009704]
call sub.ADVAPI32.dll_LsaSetTrustedDomainInfoByName
mov edi, eax
and dword [ebp + 0xc], reloc.NETAPI32.dll_DsGetDcNameW
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
call fcn.01002e27
test eax, eax
jne 0x1004cfe
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push 0x1001f24
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1004cf5
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
je 0x1004d0b
push dword [ebp - 4]
call sub.ADVAPI32.dll_LsaFreeMemory
mov eax, dword [0x1009704]
cmp eax, esi
je 0x1004d20
push eax
call sub.ADVAPI32.dll_LsaClose
mov dword [0x1009704], esi
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0x100596f
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1007ab0
call fcn.01006124
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100a4d8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1005784
cmp eax, esi
jne 0x1005777
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1005787
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100575e
xor esi, esi
inc esi
mov eax, dword [0x100a4d4]
cmp eax, esi
jne 0x100579a
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10057d5
mov eax, dword [0x100a4d4]
test eax, eax
jne 0x10057cf
mov dword [0x100a4d4], esi
push 0x1001238
push 0x100122c
call fcn.010056db
pop ecx
pop ecx
test eax, eax
je 0x10057d5
mov dword [ebp - 4], DsGetDcNameW
mov eax, 0xff
jmp 0x100589f
mov dword [0x100a198], esi
mov eax, dword [0x100a4d4]
cmp eax, esi
jne 0x10057f9
push 0x1001228
push 0x1001220
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100a4d4], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1005806
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x100a4e0], ebx
je 0x1005827
push 0x100a4e0
call fcn.01006099
pop ecx
test eax, eax
je 0x1005827
push ebx
push 2
push ebx
call dword [0x100a4e0]
push dword [0x100a180]
push dword [0x100a184]
push dword [0x100a17c]
call fcn.01002470
add esp, 0xc
mov dword [0x100a194], eax
cmp dword [0x100a188], ebx
jne 0x1005885
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100a198], ebx
jne 0x1005893
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], DsGetDcNameW
mov eax, dword [0x100a194]
call fcn.01006169
ret
call fcn.01006271
jmp 0x100573c
Function at 0x1007485
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x1007568
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push ebx
push eax
call esi
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x10074e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x1002140
push eax
call dword [sym.imp.msvcrt.dll_fwprintf]
add esp, 0xc
jmp 0x1007567
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
jne 0x1007516
push dword [ebp - 4]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 8
add eax, 0x40
push 0x10020d8
push eax
call dword [sym.imp.msvcrt.dll_fwprintf]
add esp, 0x10
jmp 0x1007553
push ebx
push ebx
push dword [ebp - 4]
push edi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push dword [ebp - 8]
call esi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1007553
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1007533
push ebx
lea ecx, [ebp - 4]
push ecx
sub eax, edx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp edi, ebx
je 0x1007566
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408460
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push eax
push 0x41dad8
push 1
push 0
push 0x41dae8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x40848e
xor eax, eax
add esp, 0x210
ret 8
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x41dac8
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x4084c2
xor eax, eax
add esp, 0x210
ret 8
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, 1
add esp, 0x210
ret 8

Function at 0x41a664
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41a692
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x41a6b0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041a5ca
jmp 0x41a6b0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41a6b0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041a5ca
test edi, edi
mov eax, edi
jne 0x41a69a
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219