joyce8/EMBER2024-capa huggingface dataset:
Function at 0x217f6f4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov dword [ebp - 0xc], 0x214
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
xor edi, edi
mov ebx, dword [ebp + 8]
mov dword [esi], edi
cmp ebx, edi
je 0x217f862
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jl 0x217f862
cmp word [ebx + 2], 0x3a
jne 0x217f862
cmp word [ebx + 4], 0x5c
jne 0x217f862
push 3
lea eax, [ebp - 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov word [ebp - 0xe], di
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jbe 0x217f77f
cmp eax, 3
je 0x217f789
cmp eax, 4
je 0x217f7fd
cmp eax, 5
jb 0x217f864
cmp eax, 6
ja 0x217f864
mov eax, 0x80080004
jmp 0x217f866
mov edi, dword [ebp + 0xc]
push 0x218cc68
mov word [edi], 0x5c
lea eax, [edi + 4]
mov word [edi + 2], 0x5c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [edi + eax*2]
mov dword [ebp - 8], eax
mov word [ecx], 0x5c
mov dword [ebp - 4], ecx
mov dx, word [ebx]
add ebx, 6
mov word [ecx + 2], dx
push ebx
mov word [ecx + 4], 0x24
mov word [ecx + 6], 0x5c
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x100
sub ecx, dword [ebp - 8]
cmp ecx, eax
ja 0x217f7eb
mov eax, 0x80080004
jmp 0x217f866
push ebx
mov eax, dword [ebp - 4]
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esi], edi
jmp 0x217f864
push 0
call sub.RPCRT4.dll_RpcImpersonateClient
test eax, eax
je 0x217f80f
mov eax, 0x80080003
jmp 0x217f866
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x228]
push eax
push ecx
push 1
push ebx
call fcn.02182057
mov edi, eax
call sub.RPCRT4.dll_RpcRevertToSelf
test edi, edi
je 0x217f834
mov eax, 0x80080004
jmp 0x217f866
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jb 0x217f84e
mov eax, 0x80080004
jmp 0x217f866
push dword [ebp - 0x228]
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [esi], edi
jmp 0x217f864
mov dword [esi], ebx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x217f86f
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov eax, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
xor esi, esi
cmp eax, esi
je 0x217f8cf
push 0x80000000
push eax
push dword [0x218c3c4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x217f8a2
xor eax, eax
jmp 0x217f952
lea eax, [ebp - 0x1c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov esi, eax
test esi, esi
je 0x217f8c1
cmp dword [ebp - 0x18], 1
je 0x217f8bf
cmp dword [ebp - 0x18], 3
jne 0x217f8c1
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x217f952
cmp dword [ebp + 0x18], 0
jne 0x217f918
push str.Interactive_User
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x217f8f0
call fcn.02180bab
mov edi, eax
jmp 0x217f905
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0218092b
mov edi, eax
mov esi, 1
test edi, edi
je 0x217f912
push edi
call fcn.02180ad2
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x18], 0
je 0x217f92d
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call dword [sym.imp.ntdll.dll_RtlEqualSid]
mov ebx, 1
test al, al
jne 0x217f92f
xor ebx, ebx
test edi, edi
je 0x217f950
cmp dword [ebp + 0x18], 0
je 0x217f941
push dword [ebp + 0x18]
call fcn.02180b9e
test edi, edi
je 0x217f950
test esi, esi
je 0x217f950
push edi
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x217fab0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
push esi
mov edi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 4], eax
cmp eax, 1
sbb eax, eax
neg eax
mov dword [ecx], eax
test eax, eax
je 0x217fb84
cmp word [edi], 0x22
mov ecx, edi
jne 0x217fb25
lea eax, [edi + 2]
cmp word [eax], 0
je 0x217fb16
mov dx, word [eax]
cmp dx, 0x22
je 0x217fb16
mov word [ecx], dx
add eax, 2
add ecx, 2
cmp word [eax], 0
jne 0x217fafe
mov word [ecx], 0
add ecx, 2
sub ecx, edi
and cl, 0xfe
mov dword [esi], ecx
cmp word [edi], 0
mov ebx, edi
je 0x217fb4b
lea eax, [ebp - 0xa]
push eax
push 1
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
test byte [ebp - 0xa], 8
je 0x217fb4b
add ebx, 2
cmp word [ebx], 0
jne 0x217fb2d
xor eax, eax
cmp word [ebx], ax
jne 0x217fb5b
mov dword [ebp - 4], 2
mov dword [esi], eax
cmp dword [ebp - 8], 2
jne 0x217fb84
push edi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x104
lea eax, [ebp - 0x210]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esi], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x218045f
Capabilities:
Access the windows event log
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push ebx
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x10], ecx
push edi
xor esi, esi
mov dword [ebp - 0xc], esi
mov dword [eax], esi
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x84], 0x44
cmp dword [ebp + 0x24], esi
je 0x2180492
mov dword [ebp - 0x78], esi
jmp 0x218049b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x78], ecx
xor eax, eax
push str.Interactive_User
push dword [ebp + 0x1c]
mov word [ebp - 0x52], ax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x21804c2
call fcn.02180bab
mov edi, eax
jmp 0x21804d7
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call fcn.0218092b
mov edi, eax
mov esi, 1
test edi, edi
jne 0x21804e2
xor eax, eax
jmp 0x218063d
push edi
xor ebx, ebx
call fcn.02180ad2
mov dword [ebp - 4], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
cmp eax, ebx
je 0x218060b
push 0x100201
lea ecx, [ebp - 0x128]
push 0x1f0fff
push ebx
call fcn.02175b4e
test eax, eax
je 0x218060b
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x1c], 0xc
push eax
push ecx
push ebx
lea edx, [ebp - 0x1c]
push ebx
push 0x10
push ebx
push ebx
push edx
push dword [ebp + 0x20]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x21805f3
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xac]
push 0x2187498
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0xac]
lea edx, [ebp - 0x178]
mov dword [ebp - 0x2c], ecx
push 0x4e
push edx
push dword [ebp + 8]
call fcn.02173cff
lea ecx, [ebp - 0x178]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
push str.DCOM
push ebx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x218060b
mov edx, dword [ebp + 0x14]
cmp edx, ebx
je 0x21805ca
add edx, 0x1c
jmp 0x21805cc
xor edx, edx
xor eax, eax
lea ecx, [ebp - 0x30]
push eax
push ecx
push eax
push 5
push edx
push 0xc0002711
push eax
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x218060b
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp + 0x10]
push dword [ebp - 0x3c]
mov dword [ebp - 0xc], 1
mov dword [eax], ecx
call dword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x2180616
push edi
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [ebp + 0x24], 0
jne 0x2180627
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x2c], ecx
jmp 0x218062f
push dword [ebp - 4]
call fcn.02180b9e
lea ecx, [ebp - 0x128]
call fcn.02175ecd
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x2180646
Capabilities:
Encode data using xor

Disassembly:
push esi
xor eax, eax
xor ecx, ecx
mov esi, dword [esp + 8]
movzx edx, byte [ecx + esi + 2]
xor eax, edx
inc ecx
cmp ecx, 6
jb 0x218064f
mov cl, byte [esi + 1]
test cl, cl
je 0x2180671
movzx ecx, cl
add esi, 8
xor eax, dword [esi]
add esi, 4
dec ecx
jne 0x2180669
pop esi
ret 4
Function at 0x218092b
Capabilities:
Access the windows event log
Impersonate user

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov dword [ebp - 8], 0
push ebx
push esi
push edi
push str.Interactive_User
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x2180957
xor eax, eax
jmp 0x2180ac9
mov esi, dword [ebp + 8]
test esi, esi
jne 0x2180965
xor eax, eax
jmp 0x2180ac9
push str.SCM:
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov word [ebp - 0x12], 0x58
lea eax, [eax*2 + 2]
lea ecx, [ebp - 0xbc]
mov word [ebp - 0x14], ax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x3c], 0x18
xor ecx, ecx
lea eax, [ebp - 8]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], ecx
push eax
lea edx, [ebp - 0x3c]
push 4
mov dword [ebp - 0x34], ecx
push edx
mov dword [ebp - 0x2c], ecx
push ecx
mov dword [ebp - 0x28], ecx
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
jge 0x21809df
xor eax, eax
jmp 0x2180ac9
lea eax, [ebp - 4]
lea ecx, [ebp - 0x14]
push eax
push ecx
push dword [ebp - 8]
call sub.ADVAPI32.dll_LsaRetrievePrivateData
push dword [ebp - 8]
test eax, eax
jge 0x2180a02
call sub.ADVAPI32.dll_LsaClose
xor eax, eax
jmp 0x2180ac9
xor ebx, ebx
call sub.ADVAPI32.dll_LsaClose
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
push eax
push ebx
push 4
push dword [ecx + 4]
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
jne 0x2180aa2
mov eax, dword [ebp - 4]
movzx edx, word [eax]
mov edi, dword [eax + 4]
mov ecx, edx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x64]
push 0x2187498
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x64]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push str.DCOM
mov dword [ebp - 0x24], ecx
push ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x2180a9e
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push 4
push ebx
push 0xc0002714
push ebx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
xor eax, eax
jmp 0x2180ac9
push dword [ebp - 0xc]
call fcn.02180675
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
movzx edx, word [eax]
mov edi, dword [eax + 4]
mov ecx, edx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x2180ec3
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov eax, dword [esp + 0xc]
mov ebp, esp
sub esp, 4
push esi
mov dword [ebp - 4], eax
push edi
push str.DCOM
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x2180f0e
push edi
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push edi
push 1
mov eax, dword [ecx + 0xc]
add eax, 0x1c
push eax
push 0xc0002719
push edi
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x2180f16
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
lea ecx, [ebp - 0x38]
push esi
push edi
push dword [ebp + 0x14]
push 0x2187498
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x38]
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x88]
push 0x4e
mov esi, dword [ebp + 8]
push eax
mov dword [ebp - 0x10], ecx
push dword [esi + 0x20]
mov dword [ebp - 0xc], edx
call fcn.02173cff
lea eax, [ebp - 0x88]
mov ebx, dword [ebp + 0x10]
push str.DCOM
mov dword [ebp - 8], eax
push 0
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov edi, eax
test edi, edi
je 0x2180fbe
test ebx, ebx
jne 0x2180f97
push 0
lea eax, [ebp - 0x10]
push eax
push 0
push 3
mov eax, dword [esi + 0xc]
add eax, 0x1c
push eax
push 0xc0002716
push 0
jmp 0x2180fae
xor ecx, ecx
lea eax, [ebp - 0x10]
push ecx
push eax
push ecx
mov eax, dword [esi + 0xc]
push 4
add eax, 0x1c
push eax
push 0xc0002718
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x2183344
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
lea eax, [ebp - 4]
push eax
push 2
call fcn.02183390
test eax, eax
mov eax, 0
je 0x2183389
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
push 0
push str.Seed
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 1
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x21836e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x218381b
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x21837f0
test eax, eax
jne 0x21837f0
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x2183730
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x218381b
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x21837f0
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x2183940
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax], 0x67452301
ret 4
Function at 0x2185b16
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.systemcurrentcontrolsetcontrolcomputernamecomputername
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x2185b81
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 0x48
push eax
push 0x218ced4
push ecx
push 0
push str.computername
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov word [0x218ced0], 0x5c
mov dword [0x218cb3c], 1
mov word [0x218ced2], 0x5c
mov esp, ebp
pop ebp
ret
Function at 0x10019ae
Capabilities:
Read file on windows

Disassembly:
push ecx
cmp dword [0x10040c4], 0
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
je 0x10019d2
push 0x2719
push 2
pop ebx
push ebx
call fcn.01002ce7
pop ecx
pop ecx
jmp 0x10019d5
push 2
pop ebx
push 4
push ebp
call fcn.01002675
test eax, eax
je 0x1001ba5
cmp dword [ebp + 0x3c], 0
mov eax, dword [0x1004274]
mov ecx, ebx
mov edi, 0x100115c
mov esi, eax
jne 0x1001afb
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
push 0x10011a4
jne 0x1001a20
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [eax + 0x10]
call dword [sym.imp.msvcrt.dll__dup]
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__fdopen]
jmp 0x1001a27
push eax
call dword [sym.imp.msvcrt.dll_fopen]
xor edi, edi
cmp eax, edi
pop ecx
pop ecx
mov dword [esp + 0x18], eax
jne 0x1001a58
push dword [0x1004274]
push dword [0x1004270]
push 0x271a
push ebx
call fcn.01002ce7
add esp, 0x10
push 0x2722
push ebx
jmp 0x1001b95
mov dword [esp + 0x10], 1
push ebp
call fcn.01001ec6
mov esi, eax
add esi, 4
xor ebx, ebx
cmp edi, 1
jne 0x1001a7a
mov byte [esi], 0xa
inc esi
xor edi, edi
jmp 0x1001ab1
cmp edi, 2
jne 0x1001a84
and byte [esi], 0
jmp 0x1001a75
push dword [esp + 0x18]
call dword [sym.imp.msvcrt.dll_getc]
cmp eax, 0xffffffff
pop ecx
je 0x1001abc
cmp eax, 0xa
jne 0x1001aa2
mov byte [esi], 0xd
xor edi, edi
inc esi
inc edi
jmp 0x1001ab1
cmp eax, 0xd
jne 0x1001aae
push 2
mov byte [esi], al
pop edi
jmp 0x1001ab0
mov byte [esi], al
inc esi
inc ebx
cmp ebx, dword [ebp + 0xe0]
jl 0x1001a6d
jmp 0x1001acf
mov eax, dword [esp + 0x18]
test byte [eax + 0xc], 0x20
jne 0x1001b7c
and dword [esp + 0x10], 0
add dword [0x10040c8], ebx
push ebx
push ebp
call fcn.0100292d
test eax, eax
je 0x1001ba5
cmp dword [esp + 0x10], 0
jne 0x1001a60
push dword [esp + 0x18]
call dword [sym.imp.msvcrt.dll_fclose]
jmp 0x1001b73
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x1001b14
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [eax + 0x10]
call dword [sym.imp.msvcrt.dll__dup]
pop ecx
mov esi, eax
jmp 0x1001b2c
push 0x8000
push eax
call dword [sym.imp.msvcrt.dll__open]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jl 0x1001a33
push ebp
call fcn.01001ec6
push dword [ebp + 0xe0]
add eax, 4
push eax
push esi
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
test eax, eax
jl 0x1001b7c
xor ecx, ecx
cmp eax, dword [ebp + 0xe0]
push eax
sete cl
add dword [0x10040c8], eax
push ebp
mov edi, ecx
call fcn.0100292d
test eax, eax
je 0x1001ba5
test edi, edi
jne 0x1001b2c
push esi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push ebp
call fcn.010028e2
jmp 0x1001ba7
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
push 0x271b
call fcn.01002d56
push 0x2723
push 3
push dword [ebp + 0xc8]
lea eax, [ebp + 0x48]
push eax
push ebp
call fcn.010012e0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x1001c8d
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x10011b0
call fcn.01001e2c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001cc8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001cc8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001ce0
cmp eax, 0x20b
je 0x1001ccd
mov dword [ebp - 0x1c], edi
jmp 0x1001cf4
cmp dword [ecx + 0x84], 0xe
jbe 0x1001cc8
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001cee
cmp dword [ecx + 0x74], 0xe
jbe 0x1001cc8
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 [0x1004278], 0xffffffff
or dword [0x100427c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1004038]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1004034]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1004280], eax
call fcn.01002b1b
cmp dword [section..data], edi
jne 0x1001d4f
push fcn.01002b1b
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001e1a
push 0x100113c
push 0x1001138
call sub.msvcrt.dll__initterm
mov eax, dword [0x1004030]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100402c]
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 0x1001134
push 0x1001130
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.01001bfe
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001dc6
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001dfb
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001e65
ret
Function at 0x1001fd5
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
push edi
push 2
xor edi, edi
push edi
push edi
push 0x401
lea eax, [ebp - 0x404]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x1002018
mov eax, dword [0x10011d8]
mov dword [ebp - 0x404], eax
mov eax, dword [0x10011dc]
mov dword [ebp - 0x400], eax
cmp dword [ebp + 0x18], edi
mov esi, 0x10011d0
je 0x1002027
mov esi, 0x10011c8
push dword [ebp + 0x12]
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
lea eax, [ebp - 0x404]
push eax
push esi
push 0x11
push 2
call fcn.01002ce7
push 0x12
push 2
call fcn.01002ce7
add esp, 0x1c
cmp dword [ebp + 0xc], edi
jle 0x1002103
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_putc]
mov edi, dword [ebp + 0xc]
cmp edi, 0x10
jle 0x100206c
push 0x10
pop edi
xor esi, esi
test edi, edi
jle 0x1002096
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
push eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push 0x10011c0
push eax
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
inc esi
cmp esi, edi
jl 0x1002072
cmp edi, 0x10
jg 0x10020b9
push 0x11
pop esi
sub esi, edi
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0x10011bc
call dword [sym.imp.msvcrt.dll_fputs]
dec esi
pop ecx
pop ecx
jne 0x10020a0
test edi, edi
jle 0x10020e9
sub dword [ebp + 0xc], edi
mov eax, dword [ebp + 8]
movsx esi, byte [eax]
push esi
call dword [sym.imp.msvcrt.dll_isprint]
inc dword [ebp + 8]
test eax, eax
pop ecx
jne 0x10020d8
push 0x2e
pop esi
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push esi
call ebx
dec edi
pop ecx
pop ecx
jne 0x10020c0
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
push eax
push 0xa
call ebx
cmp dword [ebp + 0xc], 0
pop ecx
pop ecx
jg 0x1002061
pop ebx
pop edi
pop esi
leave
ret 0x14

Function at 0x100298d
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push eax
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x10029a9
xor eax, eax
jmp 0x10029de
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ebx
mov edx, ecx
push esi
mov esi, dword [eax + 0x18]
push edi
shr ecx, 2
mov ebx, 0x1004040
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebp + 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [eax + 0x10]
push eax
mov dword [edx], ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8