joyce8/EMBER2024-capa huggingface dataset:
Function at 0x79d9a040
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetGetConnection2A___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetGetConnection2A
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a0a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetGetConnection2W___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetGetConnection2W
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a100
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetGetConnection3A___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetGetConnection3A
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a160
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetGetConnection3W___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetGetConnection3W
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a1c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [esp], str.WARNING:_calling_stub_WNetGetDirectoryTypeA__s_0x_p_0x_lx__n
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
call sym._DbgPrint
xor eax, eax
leave
ret 0xc

Function at 0x79d9a1f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [esp], str.WARNING:_calling_stub_WNetGetDirectoryTypeW__ws_0x_p_0x_lx__n
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
call sym._DbgPrint
xor eax, eax
leave
ret 0xc
Function at 0x79d9a220
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetGetHomeDirectoryA___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetGetHomeDirectoryA
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a280
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetGetHomeDirectoryW___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetGetHomeDirectoryW
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a2e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetGetPropertyTextA___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetGetPropertyTextA
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a340
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetGetPropertyTextW___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetGetPropertyTextW
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a3a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetGetProviderTypeA___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetGetProviderTypeA
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a400
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetGetProviderTypeW___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetGetProviderTypeW
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4
Function at 0x79d9a460
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetGetSearchDialog___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetGetSearchDialog
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a4c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetLogonNotify___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetLogonNotify
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a520
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetPasswordChangeNotify___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetPasswordChangeNotify
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a580
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetPropertyDialogA___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetPropertyDialogA
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a5e0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetPropertyDialogW___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetPropertyDialogW
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a640
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetRestoreConnection___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetRestoreConnection
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4
Function at 0x79d9a6a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetRestoreConnection2W___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetRestoreConnection2W
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a700
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetSetLastErrorA___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetSetLastErrorA
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a760
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetSetLastErrorW___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetSetLastErrorW
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4

Function at 0x79d9a7c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x50]
sub esp, 0x5c
mov dword [esp], str.WARNING:_calling_stub_WNetSupportGlobalEnum___n
call sym._DbgPrint
xor eax, eax
mov ecx, 0x12
mov dword [ebp - 0x58], 0x80000100
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x54], 1
mov dword [esp], eax
mov dword [ebp - 0x44], 0x79da027f
mov dword [ebp - 0x40], str.WNetSupportGlobalEnum
mov dword [ebp - 0x48], 2
call sym._RtlRaiseException_4
Function at 0x79d9c580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp + 0xc]
sub esp, 0x10
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], 0x79da0f20
call sym._fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_vfprintf]
call sym._abort
lea esi, [esi]
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x40101e
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4020c0
push 0x401114
push eax
mov eax, dword [0x409008]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x1c
mov dword [ecx], eax
mov edx, dword [0x409004]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.0040110a
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x24]
push dword [section..data]
push edx
push eax
lea ecx, [ebp - 0x20]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x4020b8
push 0x4020b4
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.00401aae
add esp, 0xc
push eax
call sub.CRTDLL.dll_exit
jmp 0x4010d1
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4011f0
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0xf0000000
xor ebx, ebx
push 0x18
push ebx
push ebx
lea eax, [ebp - 8]
push eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40126c
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x1c
push 0x4020d0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
push ebx
push edi
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push dword [ebp + 8]
push esi
push ebx
push 1
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
cmp dword [ebp - 4], ebx
je 0x40125d
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 8], ebx
je 0x40126c
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401271
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0xf0000000
xor ebx, ebx
push 0x18
push ebx
push ebx
lea eax, [ebp - 8]
push eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4012f2
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 0x1c
push 0x4020d0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
push ebx
push edi
push 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push 0xec
push dword [ebp + 8]
push esi
push ebx
push 1
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
cmp dword [ebp - 4], ebx
je 0x4012e3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp dword [ebp - 8], ebx
je 0x4012f2
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4015d4
Capabilities:
Encode data using xor

Disassembly:
push esi
push 0x10
sub ecx, edx
pop esi
mov al, byte [ecx + edx]
xor byte [edx], al
inc edx
dec esi
jne 0x4015da
pop esi
ret

Function at 0x4015e5
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
xor edi, edi
movzx eax, byte [edi + ecx]
mov esi, edi
shl esi, 8
xor esi, eax
xor esi, edx
mov al, byte [esi + 0x402230]
mov byte [edi + ecx], al
inc edi
cmp edi, 0x10
jb 0x4015e9
pop edi
pop esi
ret

Function at 0x401715
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0xf0000000
xor edi, edi
push 0x18
push edi
push edi
lea eax, [ebp - 8]
push eax
mov esi, edx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], 0x20
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x401796
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push edi
push 0x10
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [ebp - 4], edi
je 0x401787
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], edi
je 0x401796
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
leave
ret
Function at 0x401aae
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x18
lea eax, [esp + 4]
push ebx
push ebp
push esi
push edi
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSetServicesKMSServerServiceParameters
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, 0x4091d8
test eax, eax
jne 0x401bb4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x10]
push eax
push 0x409158
push ebx
push ebx
push str.Windows
push dword [esp + 0x28]
mov edi, 0x80
mov dword [esp + 0x28], edi
call esi
lea eax, [esp + 0x10]
push eax
push 0x409058
push ebx
push ebx
push str.Office2010
push dword [esp + 0x28]
mov dword [esp + 0x28], edi
call esi
lea eax, [esp + 0x10]
push eax
push 0x4090d8
push ebx
push ebx
push str.Office2013
push dword [esp + 0x28]
mov dword [esp + 0x28], edi
call esi
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
push ebx
push str.Port
push dword [esp + 0x28]
mov dword [esp + 0x28], 0xc
call esi
push 4
pop edi
lea eax, [esp + 0x10]
push eax
push 0x4091e8
push ebx
push ebx
push str.ActivatedMachines
push dword [esp + 0x28]
mov dword [esp + 0x28], edi
call esi
lea eax, [esp + 0x10]
push eax
push 0x4091e4
push ebx
push ebx
push str.ActivationInterval
push dword [esp + 0x28]
mov dword [esp + 0x28], edi
call esi
lea eax, [esp + 0x10]
push eax
push 0x4091ec
push ebx
push ebx
push str.RenewalInterval
push dword [esp + 0x28]
mov dword [esp + 0x28], edi
call esi
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call sub.CRTDLL.dll__wtoi
pop ecx
cmp eax, 1
jb 0x401bc7
cmp eax, 0xffff
jbe 0x401bd5
mov esi, str.1688
mov edi, 0x4091d8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [0x4091e8]
push 0x32
pop ecx
cmp eax, 0x19
jb 0x401be6
cmp eax, ecx
jbe 0x401bec
mov dword [0x4091e8], ecx
mov eax, dword [0x4091e4]
mov ecx, 0xa8c0
cmp eax, 0xf
jb 0x401bff
cmp eax, ecx
jbe 0x401c09
mov dword [0x4091e4], 0x78
mov eax, dword [0x4091ec]
cmp eax, 0xf
jb 0x401c17
cmp eax, ecx
jbe 0x401c21
mov dword [0x4091ec], 0x2760
xor eax, eax
lea edi, [esp + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x409030
mov dword [esp + 0x20], 0x401996
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x401e1b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x412487
call fcn.00411f30
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x28], edi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], edi
call fcn.0040e124
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x1d30], edi
mov dword [esi], 0x4142d4
mov dword [esi + 4], 0x4142c4
mov dword [esi + 8], 0x4142b0
mov dword [esi + 0xc], 0x4142a0
mov dword [esi + 0x10], 0x41428c
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x401f57
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4124aa
call fcn.00411f30
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], 0x4142d4
mov dword [esi + 4], 0x4142c4
mov dword [esi + 8], 0x4142b0
mov dword [esi + 0xc], 0x4142a0
mov dword [esi + 0x10], 0x41428c
lea edi, [esi + 0x1d30]
mov dword [ebp - 4], 1
push dword [edi]
call fcn.0040ad9a
and dword [edi], 0
and byte [ebp - 4], 0
lea ecx, [esi + 0x30]
call fcn.00401fc8
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x18]
call fcn.0040e43b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x407511
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x412d13
call fcn.00411f30
push ecx
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [ebp - 4], eax
mov dword [esi + 4], eax
mov ecx, dword [ebp + 8]
push 8
mov dword [esi + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
lea ecx, [esi + 0x10]
pop edi
mov edx, 0x4143c8
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], edi
mov dword [ecx], edx
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x24], edx
lea ebx, [esi + 0x38]
mov edx, 0x414220
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 4
mov dword [ebx], edx
lea edi, [esi + 0x4c]
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 4
mov dword [edi], edx
push dword [esi + 8]
mov byte [ebp - 4], 5
call fcn.0040bdc9
push dword [esi + 8]
mov ecx, ebx
call fcn.0040bdc9
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040bdc9
push dword [esi + 0xc]
mov ecx, edi
call fcn.0040bdc9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8