joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47ea60
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0
push 0x469170
call fcn.0048a2b0
add esp, 0xc
mov byte [0x469170], 0x80
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret

Function at 0x47eac0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
test ecx, ecx
je 0x47ed61
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x47ed61
cld

Function at 0x47ed70
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x46bb0c]
push esi
push edi
push eax
push 0x46bbbd
mov byte [0x46bbbc], 0x45
call fcn.00474490
mov edx, dword [0x46bb0c]
mov al, 0x2d
mov byte [0x46bbc2], al
mov byte [0x46bbc3], al
lea eax, [edx + 0x4ed1567b]
mov cl, 0x20
lea edx, [edx + edx*4]
add esp, 8
mov byte [0x46bbc1], cl
mov byte [0x46bbc4], cl
mov esi, 0x46bbc5
xor ecx, ecx
lea edi, [edx + edx*4]
mov edx, eax
imul eax, eax, 0x1003411d
shr edx, 9
add edx, 0x79d11093
xor eax, edx
mov dl, byte [ecx + edi*8 + 0x45aa69]
xor dl, al
mov byte [esi], dl
inc esi
inc ecx
cmp ecx, 0xc8
jl 0x47edbf
mov byte [esi], 0
pop edi
mov eax, 0x46bbbc
pop esi
ret

Function at 0x4801c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xchg ecx, eax
xchg ecx, eax
lea eax, [eax + 0x6b62]
sub eax, 0x6b62
sub esp, 0
lea edi, [edi]
jle 0x4801e6
jge 0x4801db
mov esp, esp
xchg esp, esp
ja 0x4801e1
jg 0x4801e6
mov edi, 0x458bf168
or byte [eax - 0x18], dl
xor dword [0xc4830000], edi
add al, 0x83
clc
add dh, byte [ebp + 0x51]
mov eax, dword [ebp + 8]
push eax
call 0x483f20
add esp, 4
cmp eax, 2
jne 0x480248
push ebx
or ebx, 0
rol esi, 0
jl 0x480200
nop
jle 0x48020c
lea esp, [esp]
jnp 0x480208
jg 0x48020c
mov eax, 0xa7e468a6
inc esi
add byte [ebx + 0x468be0], ah
push 0x46a7e4
mov dword [0x468be0], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edx, 0x52e1
xor edx, 0x52e1
jb 0x48023e
lea edi, [edi + 0x3d48]
lea edi, [edi - 0x3d48]
jle 0x480238
jmp 0x48023a
jae 0x48023e
jmp 0xb8a75d99
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret
ror esi, 4
rol esi, 4
cmp eax, dword [esp + 0xc]
jge 0x480259
jg 0x480256
jl 0x480259
mov ebx, 0x5ec0335f
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x481320
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4813c0
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4813c0
jnp 0x48133e
rol eax, 0x17
ror eax, 0x17
clc
cmc
jae 0x48134d
jp 0x48134a
jb 0x48134d
mov edx, 0xfa81
add dword [eax], eax
cmp edx, 0x10000
jae 0x481384
xchg esp, esp
xor esi, dword [esp]
xor esi, dword [esp]
add esi, 0
jge 0x48137b
pushf
shr ecx, 0
ror ecx, 8
rol ecx, 8
sub esi, 0
js 0x481372
popf
jnp 0x481376
xchg esp, esp
jl 0x48137b
call 0xbf3066d1
sbb byte [eax], al
add bl, ch
adc eax, 0xf700e4c1
xlatb
push edx
push ebx
call 0x482c40
jmp 0x481399
shl esp, 0
not edi
not edi
jno 0x481392
ja 0x48138f
jo 0x481392
xor eax, 0x27e85352
xlatb
invalid
push edx
push ebx
call fcn.0047eac0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x4813cb
lea edi, [edi]
or esp, 0
xor esp, 0
jp 0x4813b7
mov eax, eax
je 0x4813b0
jmp 0x4813b2
jnp 0x4813b7
lcall 0x5e5f, 0xc18b2d06
mov eax, ecx
pop edi
pop esi
pop ebx
pop ebp
ret 8
push 0x46a83c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x10096b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100970e
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x10096db
xor eax, eax
jmp 0x100970d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x10096ff
cmp esi, eax
jae 0x10096d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10096f1
cmp esi, eax
jae 0x10096d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x1009a02
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
shl eax, 1
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1009a62
cmp dword [ebp + 0x10], 1
je 0x1009a40
cmp dword [ebp + 0x10], 2
jne 0x1009a57
test edi, edi
mov eax, dword [ebp - 4]
je 0x1009a5c
test al, 1
jne 0x1009a57
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x1009a5c
push 0xd
pop eax
jmp 0x1009a62
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x100cb63
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10a6184]
push ebx
push esi
mov esi, 0x10a6184
cmp eax, esi
push edi
mov edi, 0x100217c
je 0x100cbab
test byte [eax + 0x1c], 1
je 0x100cbab
cmp byte [eax + 0x19], 5
jb 0x100cbab
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106ae69
mov eax, dword [0x10a6184]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp eax, esi
je 0x100cbd6
test byte [eax + 0x1c], 2
je 0x100cbd6
cmp byte [eax + 0x19], 5
jb 0x100cbd6
push edi
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
mov eax, dword [0x10a6184]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 4], 1
je 0x100cd13
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0x18]
mov edx, dword [ebp + 0x14]
cmp ecx, edx
jae 0x100cbf2
mov edx, ecx
mov ebx, 0x1f4
cmp edx, ebx
jb 0x100cc04
mov ebx, dword [ebp + 0x14]
cmp ecx, ebx
jae 0x100cc04
mov ebx, ecx
cmp eax, esi
je 0x100cc23
test byte [eax + 0x1c], 2
je 0x100cc23
cmp byte [eax + 0x19], 5
jb 0x100cc23
push ebx
push edi
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0x24
push ebx
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x100cc70
cmp dword [ebx + 4], 1
je 0x100cca9
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x14]
ja 0x100ccd6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 1
mov eax, dword [0x10a6184]
jne 0x100cbe3
jmp 0x100cd13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x10a6184]
cmp eax, esi
je 0x100cd43
test byte [eax + 0x1c], 2
je 0x100cd13
cmp byte [eax + 0x19], 2
jb 0x100cd13
push dword [ebp - 4]
push edi
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
jmp 0x100cd0e
mov eax, dword [0x10a6184]
and dword [ebp - 4], 0
cmp eax, esi
je 0x100cd43
test byte [eax + 0x1c], 2
je 0x100cd13
cmp byte [eax + 0x19], 5
jb 0x100cd13
push edi
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
jmp 0x100cd0e
mov eax, dword [0x10a6184]
cmp eax, esi
mov dword [ebp - 4], 0x5b4
je 0x100cd43
test byte [eax + 0x1c], 2
je 0x100cd13
cmp byte [eax + 0x19], 2
jb 0x100cd13
push dword [ebp + 0x14]
call ebx
push eax
push dword [ebp + 0x10]
mov eax, dword [0x10a6184]
push edi
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010190e1
mov eax, dword [0x10a6184]
cmp eax, esi
je 0x100cd43
test byte [eax + 0x1c], 1
je 0x100cd43
mov edx, dword [ebp - 4]
movzx ecx, byte [eax + 0x19]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x100cd43
push dword [ebp - 4]
push edi
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100cd52
Capabilities:
Query service status
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10a6184]
push ebx
push esi
mov esi, 0x10a6184
cmp eax, esi
push edi
mov ebx, 0x100217c
je 0x100cd93
test byte [eax + 0x1c], 1
je 0x100cd93
cmp byte [eax + 0x19], 5
jb 0x100cd93
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push 0x36
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010190e1
and dword [ebp - 0x28], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x100cdfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x10a6184]
cmp eax, esi
je 0x100ce96
test byte [eax + 0x1c], 2
je 0x100ce69
cmp byte [eax + 0x19], 2
jb 0x100ce69
push edi
push ebx
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
jmp 0x100ce64
cmp dword [ebp - 0x24], 1
mov eax, dword [0x10a6184]
jne 0x100ce2c
cmp eax, esi
je 0x100ce96
test byte [eax + 0x1c], 2
je 0x100ce69
cmp byte [eax + 0x19], 5
jb 0x100ce69
push ebx
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
jmp 0x100ce64
cmp dword [ebp - 0x24], 3
jne 0x100ce9f
cmp eax, esi
je 0x100ce50
test byte [eax + 0x1c], 2
je 0x100ce50
cmp byte [eax + 0x19], 5
jb 0x100ce50
push ebx
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
push dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push dword [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.0100cb63
mov edi, eax
mov eax, dword [0x10a6184]
cmp eax, esi
je 0x100ce96
test byte [eax + 0x1c], 1
je 0x100ce96
movzx ecx, byte [eax + 0x19]
mov edx, edi
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x100ce96
push edi
push ebx
push 0x3b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp eax, esi
je 0x100cebd
test byte [eax + 0x1c], 2
je 0x100cebd
cmp byte [eax + 0x19], 5
jb 0x100cebd
push ebx
push 0x3a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
lea eax, [ebp - 0x28]
push eax
push 1
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x100ce50
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100ce62
Function at 0x100d758
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x10a6184]
push ebx
push esi
mov esi, 0x10a6184
cmp eax, esi
push edi
mov edi, 0x100217c
je 0x100d7a0
test byte [eax + 0x1c], 1
je 0x100d7a0
cmp byte [eax + 0x19], 5
jb 0x100d7a0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104a8ee
mov eax, dword [0x10a6184]
and dword [ebp - 4], 0
cmp eax, esi
je 0x100d7ea
test byte [eax + 0x1c], 2
je 0x100d7c7
cmp byte [eax + 0x19], 5
jb 0x100d7c7
push edi
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
mov eax, dword [0x10a6184]
cmp eax, esi
je 0x100d7ea
test byte [eax + 0x1c], 2
je 0x100d7ea
cmp byte [eax + 0x19], 5
jb 0x100d7ea
push 0x1f4
push edi
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x10a6184]
cmp eax, esi
je 0x100d818
test byte [eax + 0x1c], 2
je 0x100d818
cmp byte [eax + 0x19], 5
jb 0x100d818
push edi
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
mov eax, dword [0x10a6184]
je 0x100d85f
cmp eax, esi
mov dword [ebp - 8], 1
je 0x100d856
test byte [eax + 0x1c], 2
je 0x100d856
cmp byte [eax + 0x19], 5
jb 0x100d856
push edi
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x100d881
and dword [ebp - 8], 0
cmp eax, esi
je 0x100d881
test byte [eax + 0x1c], 2
je 0x100d881
cmp byte [eax + 0x19], 5
jb 0x100d881
push edi
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0x14]
ja 0x100d89d
cmp dword [ebp - 8], 0
jne 0x100d7c2
jmp 0x100d8d5
mov eax, dword [0x10a6184]
cmp eax, esi
mov dword [ebp - 4], 0x5b4
je 0x100d90a
test byte [eax + 0x1c], 2
je 0x100d8da
cmp byte [eax + 0x19], 2
jb 0x100d8da
push dword [ebp + 0x14]
call ebx
push eax
push dword [ebp + 0x10]
mov eax, dword [0x10a6184]
push edi
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010190e1
mov eax, dword [0x10a6184]
cmp eax, esi
je 0x100d90a
test byte [eax + 0x1c], 1
je 0x100d90a
mov edx, dword [ebp - 4]
movzx ecx, byte [eax + 0x19]
neg edx
sbb edx, edx
and edx, 0xfffffffd
add edx, 5
cmp ecx, edx
jl 0x100d90a
push dword [ebp - 4]
push edi
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.01009cd1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x100fd32
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10a64dc]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x208], esi
call fcn.01009987
cmp eax, esi
jne 0x100fdd3
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x100fd8a
lea eax, [ebp - 0x204]
push eax
call fcn.0100fd32
cmp eax, esi
jne 0x100fdd2
lea eax, [ebp - 0x218]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x208]
je 0x100fd7a
call fcn.01009914
push dword [ebp - 0x210]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.01009914
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
call fcn.01076f63
leave
ret 4
Function at 0x100fdf5
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov esi, 0x10022b4
je 0x100fe44
test byte [eax + 0x1c], 1
je 0x100fe44
cmp byte [eax + 0x19], 5
jb 0x100fe44
push dword [ebp + 0x1c]
push dword [edi]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0103ad4e
mov eax, dword [0x10a6184]
mov edx, dword [ebp + 8]
xor ebx, ebx
cmp edx, 0xffffffff
mov dword [ebp + 0x18], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], edx
je 0x100fe67
cmp edx, ebx
je 0x100fe67
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100fe67
cmp word [ecx], bx
jne 0x100fea6
cmp eax, 0x10a6184
mov ecx, 0x80070057
mov dword [ebp + 0x18], ecx
je 0x100ffab
test byte [eax + 0x1c], 2
je 0x100ff77
cmp byte [eax + 0x19], 2
jb 0x100ff77
push dword [ebp + 0x1c]
push dword [edi]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edx
push ecx
push esi
push 0x32
jmp 0x100ff67
mov eax, dword [ebp + 0x14]
mov dword [edi], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100fecb
cmp word [eax], 0
je 0x100fecb
push 0x2001f
push eax
push edx
lea ecx, [ebp - 4]
call fcn.01009987
mov ebx, eax
jmp 0x100fed7
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
call fcn.0100fd0f
test ebx, ebx
jne 0x100ff0c
and dword [ebp - 8], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea ecx, [ebp - 4]
call fcn.010099c3
mov ebx, eax
test ebx, ebx
jne 0x100fef8
mov eax, dword [ebp - 8]
mov dword [edi], eax
cmp dword [ebp + 0x1c], 1
jne 0x100ff0c
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
cmp ebx, 0x490
je 0x100ff19
cmp ebx, 2
jne 0x100ff1b
xor ebx, ebx
test ebx, ebx
je 0x100ff72
push ebx
call fcn.01009676
mov dword [ebp + 0x18], eax
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x100ffab
test byte [eax + 0x1c], 2
je 0x100ff77
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp + 0x18], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x100ff77
push dword [ebp + 0x1c]
push dword [edi]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x18]
push esi
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100f057
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x100ffab
test byte [eax + 0x1c], 1
je 0x100ffab
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp + 0x18], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x100ffab
push dword [ebp + 0x18]
push esi
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009b3f
lea ecx, [ebp - 0xc]
call fcn.01009914
lea ecx, [ebp - 4]
call fcn.01009914
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x102027f
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10a6184]
push ebx
push esi
mov esi, 0x10a6184
cmp eax, esi
mov ebx, 0x1004af8
je 0x10202bc
test byte [eax + 0x1c], 1
je 0x10202bc
cmp byte [eax + 0x19], 5
jb 0x10202bc
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102008d
and dword [ebp - 4], 0
push edi
mov edi, dword [ebp + 0xc]
push 0x20
xor eax, eax
and dword [ebp - 8], eax
pop ecx
rep stosd dword es:[edi], eax
push 7
pop ecx
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [0x10a6184]
cmp eax, esi
mov dword [ebp - 0x28], 4
je 0x1020303
test byte [eax + 0x1c], 8
je 0x1020303
cmp byte [eax + 0x19], 5
jb 0x1020303
push dword [ebp + 8]
push ebx
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009add
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp + 8]
call sub.WS2_32.dll_GetAddrInfoW
mov edi, eax
test edi, edi
je 0x1020377
push edi
call fcn.01009676
test eax, eax
mov dword [ebp - 4], eax
jl 0x102032f
mov dword [ebp - 4], 0x80004005
mov eax, dword [0x10a6184]
cmp eax, esi
je 0x10203f8
test byte [eax + 0x1c], 8
je 0x10203f8
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 4], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x10203f8
push edi
push dword [ebp - 4]
push ebx
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100ef6e
jmp 0x10203f8
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x10]
mov eax, dword [0x10a6184]
mov ecx, 0x80
cmp edx, ecx
jbe 0x10203b8
cmp eax, esi
je 0x10203af
test byte [eax + 0x1c], 8
je 0x10203af
cmp byte [eax + 0x19], 2
jb 0x10203af
push 0
push ecx
push 0
push edx
push ebx
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102005b
mov dword [ebp - 4], 0x80004005
jmp 0x10203f8
cmp eax, esi
je 0x10203d9
test byte [eax + 0x1c], 8
je 0x10203d9
cmp byte [eax + 0x19], 5
jb 0x10203d9
push 0
push edx
push ebx
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102002f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x18]
mov edi, dword [ebp + 0xc]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x10a6184
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, dword [0x10a6184]
cmp eax, esi
pop edi
je 0x102044a
test byte [eax + 0x1c], 1
je 0x102044a
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 4], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x102044a
cmp dword [ebp - 4], 0
jl 0x1020435
mov ecx, dword [ebp + 0xc]
movsx ecx, word [ecx]
jmp 0x1020438
or ecx, 0xffffffff
push ecx
push dword [ebp - 4]
push ebx
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01032687
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 8
Function at 0x102320c
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, 0x10a7cfc
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor esi, esi
cmp dword [0x10a7d2c], esi
jne 0x102323a
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x10a7d2c], eax
push esi
push 1
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x10a7d34], eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x1022c8b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
mov dword [0x10a7d30], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor al, al
pop esi
leave
ret

Function at 0x1023ca7
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1023cdc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1023cd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1023cde
test al, 0x10
jne 0x1023cdc
mov eax, 0x10b
jmp 0x1023cde
xor eax, eax
pop ebp
ret 4

Function at 0x1024ecd
Capabilities:
Monitor local ipv4 address changes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.0102925b
test eax, eax
je 0x1024fa3
call fcn.0102903b
test eax, eax
je 0x1024fa3
push ebx
push esi
push edi
push 0x10a7f9c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov esi, 0x10a7f88
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
push ebx
push ebx
stosd dword es:[edi], eax
push ebx
push ebx
mov dword [0x10a7fc8], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [0x10a7f98], eax
jne 0x1024f30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1024f91
push ebx
push 0xffffffffffffffff
push ebx
push 0x1024e4f
push eax
push 0x10a7fc4
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x1024f26
push esi
push 0x10a7fc0
call sub.iphlpapi.dll_NotifyAddrChange
mov esi, eax
cmp esi, 0x3e5
jne 0x1024f91
mov esi, 0x10a7fbc
call fcn.01024c3e
mov esi, eax
cmp esi, ebx
jne 0x1024f91
push ebx
push dword [0x10a7fbc]
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.01024d03
mov esi, eax
cmp esi, ebx
jne 0x1024f91
mov dword [0x10a7fe8], 1
push 0x10a7f9c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov eax, dword [0x10a6184]
cmp eax, 0x10a6184
je 0x1024fcd
test byte [eax + 0x1c], 8
je 0x1024fcd
cmp byte [eax + 0x19], 2
jb 0x1024fcd
push 0x1004db0
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01009ab7
mov eax, 0x8000ffff
leave
ret