joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001cf87
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x11c], 0
and dword [ebp - 0x120], 0
push esi
push 0x110
lea eax, [ebp - 0x114]
push 0
xor esi, esi
push eax
inc esi
mov dword [ebp - 0x118], 0x114
call fcn.1005d3f0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1001d178
cmp dword [ebp - 0x108], 2
jne 0x1001d178
mov ecx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x120], eax
cmp ecx, 5
jne 0x1001d094
test eax, eax
je 0x1001d178
cmp eax, esi
jne 0x1001d084
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.1005f333
add esp, 0xc
test eax, eax
jne 0x1001d03c
push 3
jmp 0x1001d170
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.1005f333
add esp, 0xc
test eax, eax
jne 0x1001d05d
push 4
jmp 0x1001d170
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_3
call fcn.1005f333
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffffd
add esi, 5
jmp 0x1001d178
cmp eax, 2
jne 0x1001d178
push 6
jmp 0x1001d170
cmp ecx, 6
jne 0x1001d14a
test eax, eax
jne 0x1001d0e9
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_1
call fcn.1005f333
add esp, 0xc
test eax, eax
jne 0x1001d0c2
push 8
jmp 0x1001d170
push 0x7f
lea eax, [ebp - 0x104]
push eax
push str.Service_Pack_2
call fcn.1005f333
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 9
jmp 0x1001d178
cmp eax, esi
jne 0x1001d0f1
push 0xa
jmp 0x1001d170
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.1001cf3c
pop ecx
pop ecx
test eax, eax
je 0x1001d178
cmp dword [ebp - 0x11c], 6
jne 0x1001d12d
cmp dword [ebp - 0x120], 2
jne 0x1001d120
push 0xb
jmp 0x1001d170
cmp dword [ebp - 0x120], 3
jne 0x1001d178
push 0xc
jmp 0x1001d170
xor eax, eax
cmp dword [ebp - 0x11c], 0xa
setne al
lea esi, [eax - 1]
and esi, 0xfffffc25
add esi, 0x3e8
jmp 0x1001d178
jbe 0x1001d178
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.1001cf3c
pop ecx
pop ecx
test eax, eax
je 0x1001d173
cmp dword [ebp - 0x11c], 0xa
jne 0x1001d178
push 0xd
pop esi
jmp 0x1001d178
mov esi, 0x3e8
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1005c747
leave
ret
Function at 0x1001da7d
Capabilities:
Create directory
Query environment variable

Disassembly:
push 0x248
mov eax, 0x10097e74
call fcn.1007684e
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
xor edi, edi
lea eax, [ebp - 0x21a]
push edi
push eax
call fcn.1005d3f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
call fcn.1000f6ca
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], edi
mov word [ebp - 0x254], ax
lea eax, [ebp - 0x254]
push eax
mov byte [ebp - 4], 1
call fcn.1001d9b3
mov esi, 0x100afb00
push esi
call fcn.1005d0d1
pop ecx
pop ecx
push eax
push esi
lea ecx, [ebp - 0x238]
call fcn.100104a9
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x238]
call fcn.1001054a
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x238]
push eax
mov ecx, ebx
call fcn.1000f802
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x1001db56
lea eax, [ebp - 0x238]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push 1
lea ecx, [ebp - 0x254]
call fcn.1000f89d
push edi
push 1
lea ecx, [ebp - 0x238]
call fcn.1000f89d
mov al, 1
call fcn.100768d1
ret

Function at 0x1001e5d8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x1001e5e0
mov dword [ecx*4 + 0x100d7428], eax
inc ecx
cmp ecx, 0x100
jb 0x1001e5db
mov edx, 0x800
jmp 0x1001e62d
mov eax, dword [ecx*4 + 0x100d7028]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x100d7428]
inc ecx
mov dword [ecx*4 + 0x100d7424], eax
cmp ecx, edx
jb 0x1001e60c
mov dword [0x100d9428], 0x1001ebb3
call fcn.1001e51e
test eax, eax
jne 0x1001e64e
mov dword [0x100d9428], 0x1001ec4f
pop esi
ret

Function at 0x1001e683
Capabilities:
Create directory

Disassembly:
push 0x40
mov eax, 0x10097326
call fcn.1007684e
mov ebx, edx
mov esi, ecx
push ebx
lea ecx, [ebp - 0x48]
call fcn.1000f6ca
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x4c]
xor edi, edi
mov dword [ebp - 4], edi
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], 0x5c
call fcn.100140ae
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call fcn.10013ee3
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1001e6d2
lea eax, [ebp - 0x2c]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push edi
push 0x80
push 2
push edi
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
call ebx
cmp dword [esi], 0xffffffff
je 0x1001e705
xor esi, esi
jmp 0x1001e709
call ebx
mov esi, eax
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000f89d
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.1000f89d
mov eax, esi
call fcn.100768d1
ret
Function at 0x1001e745
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x1001e78d
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x1001e75e
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x1001e792
test ecx, ecx
je 0x1001e78d
test edi, edi
jne 0x1001e753
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001e78f

Function at 0x1001e79a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x1001e7e2
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x1001e7b3
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x1001e7e7
test ecx, ecx
je 0x1001e7e2
test edi, edi
jne 0x1001e7a8
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1001e7e4
Function at 0x10023007
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x1002301e
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x1002303d
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x10023042
inc edi
cmp edi, dword [ebp - 8]
jb 0x10023034
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x10023131
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x100230c4
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x1002306e
cmp cl, 0xff
jne 0x100230f3
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
lea ebx, [esi - 5]
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x10023104
movzx esi, byte [edx + 0x100af154]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
mov cl, bl
test cl, cl
je 0x100230b4
cmp cl, 0xff
jne 0x10023101
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x1002308c
dec ecx
shl edx, cl
and edx, 7
je 0x1002305b
movzx ecx, byte [edx + 0x100af154]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x100af14c], 0
mov cl, byte [ebx + 4]
je 0x100230f0
test cl, cl
je 0x100230f0
cmp cl, 0xff
jne 0x1002305b
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x1002302f
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x1002302f
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x10028551
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0x50
mov eax, 0x10099aaf
call fcn.1007684e
mov eax, dword [ebp + 8]
add eax, 8
cmp dword [eax + 0x14], 8
mov edi, ecx
mov dword [ebp - 0x34], edi
jb 0x10028570
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
jne 0x100285a0
mov eax, edi
call fcn.10028529
xor eax, eax
jmp 0x100286e3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x30], eax
cmp eax, 0x100000
jbe 0x100285d3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.10028529
push str.DataReport::SaveAndErasePacket_cache_file_is_full_
push 4
push 2
call fcn.1004a855
add esp, 0xc
jmp 0x10028599
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call fcn.1005d50b
pop ecx
lea esi, [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
call fcn.1002903e
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], ebx
mov ebx, dword [edi]
jmp 0x1002868e
mov esi, dword [ebx]
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, edx
add ecx, 0x15180
mov dword [ebp - 0x58], eax
adc eax, 0
cmp dword [ebp - 0x40], eax
jg 0x1002868b
jl 0x10028621
cmp dword [ebp - 0x44], ecx
jae 0x1002868b
mov eax, dword [ebp - 0x58]
push dword [ebp - 0x54]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x54]
lea edi, [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
call fcn.10027d50
test al, al
je 0x10028688
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x38]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
call esi
push 0
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x54]
push dword [ebp - 0x28]
call esi
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x2c]
lea eax, [ecx + eax + 0x10]
mov dword [ebp - 0x30], eax
cmp eax, 0x100000
ja 0x10028699
mov edi, dword [ebp - 0x34]
add ebx, 4
cmp ebx, dword [edi + 4]
jne 0x10028600
jmp 0x100286ad
push str.DataReport::SaveAndErasePacket_cache_file_is_full_
push 4
push 2
call fcn.1004a855
mov edi, dword [ebp - 0x34]
add esp, 0xc
mov eax, edi
call fcn.10028529
push dword [ebp - 0x2c]
push str.DataReport::SaveAndErasePacket_save__d_records
push 4
push 2
call fcn.1004a855
add esp, 0x10
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x54], 0
je 0x100286e0
push dword [ebp - 0x54]
call fcn.1005c756
pop ecx
xor eax, eax
inc eax
call fcn.100768d1
ret 4
Function at 0x100286eb
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0x44
mov eax, 0x10099a82
call fcn.1007684e
mov edi, ecx
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 0x34], edi
cmp eax, ebx
je 0x10028711
call fcn.10027a03
test eax, eax
je 0x10028861
lea eax, [edi + 8]
cmp dword [eax + 0x14], 8
jb 0x1002871c
mov eax, dword [eax]
push ebx
push 0x80
push 4
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
je 0x10028861
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
cmp eax, 0x100000
jbe 0x1002876f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.DataReport::SaveAndErasePacket_cache_file_is_full_
push 4
push 2
call fcn.1004a855
add esp, 0xc
jmp 0x10028861
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea esi, [ebp - 0x50]
call fcn.1002903e
push ebx
mov dword [ebp - 4], ebx
call fcn.1005d50b
mov dword [ebp - 0x40], eax
mov eax, dword [edi]
pop ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x24], ebx
jmp 0x10028827
mov edx, dword [esi]
mov edi, dword [esi + 4]
mov ecx, edx
add ecx, 0x15180
mov eax, edi
adc eax, ebx
cmp dword [ebp - 0x3c], eax
jg 0x10028814
jl 0x100287b9
cmp dword [ebp - 0x40], ecx
jae 0x10028814
push dword [ebp - 0x50]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x50]
lea edi, [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
call fcn.10027d50
test al, al
je 0x10028814
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x28]
call edi
push ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x50]
push dword [ebp - 0x28]
call edi
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x24]
lea eax, [ecx + eax + 0x10]
mov dword [ebp - 0x2c], eax
call fcn.100278a2
cmp dword [ebp - 0x2c], 0x100000
ja 0x10028836
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
call fcn.100279bf
mov esi, eax
cmp esi, ebx
jne 0x1002879c
push dword [ebp - 0x24]
push str.DataReport::SaveAndEraseQueuePacket_save__d_records
push 4
push 2
call fcn.1004a855
add esp, 0x10
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], ebx
je 0x10028861
push dword [ebp - 0x50]
call fcn.1005c756
pop ecx
call fcn.100768d1
ret
Function at 0x10028dd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
cmp dword [ebx + 0x50], 0
push edi
mov esi, eax
je 0x10028ee6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, 0x5000
push edi
mov dword [ebp - 8], eax
call fcn.1005ebe9
pop ecx
mov dword [ebp - 4], edi
push eax
lea edi, [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.10027d50
mov eax, dword [esi + 0x14]
push dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebx + 0x50]
push esi
push eax
call fcn.1002997c
push esi
test al, al
jne 0x10028e64
call fcn.1005c822
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
push eax
push str.DataReport::SendPacket_Connect_error:__lost__u_ms__sleep_10_s_
push 4
push 2
call fcn.1004a855
add esp, 0x10
push 0x1388
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10028ee6
push 6
jmp 0x10028ee8
mov al, byte [ebx + 0x4c]
test al, al
jne 0x10028e73
call fcn.1005c822
pop ecx
jmp 0x10028e5d
call fcn.1005c822
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
call esi
mov edi, eax
sub eax, dword [ebp - 8]
push eax
push str.DataReport::SendPacket_success:__use__u_ms_
push 4
push 2
call fcn.1004a855
add esp, 0x10
push 0x1388
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10028ee2
push dword [ebx + 0x54]
call esi
sub eax, edi
push eax
push str.DataReport::SendPacket_Get_Svr_Response:__use__u_ms____errcode___u
push 4
push 2
call fcn.1004a855
mov ebx, dword [ebx + 0x54]
add esp, 0x14
test ebx, ebx
jne 0x10028ed1
xor eax, eax
jmp 0x10028ee9
cmp ebx, 0x64
jb 0x10028ee6
cmp ebx, 0x100
jae 0x10028ee6
push 4
jmp 0x10028ee8
push 5
jmp 0x10028ee8
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10029f21
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x100cc5b0]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x100da2c8
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x10029f63
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x100da2cc
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.1005c747
mov esp, ebp
pop ebp
ret
Function at 0x1002ee45
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x100cc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
xor edi, edi
mov esi, 0x400
push esi
mov word [ebp - 0x614], ax
lea eax, [ebp - 0x612]
push edi
push eax
mov dword [ebp - 0x61c], edi
mov dword [ebp - 0x618], edi
call fcn.1005d3f0
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0x624], esi
call fcn.1005d3f0
add esp, 0x18
push str.IsWow64Process
push 0x100b2a20
mov dword [ebp - 0x620], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x1002eedf
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x1002eee5
mov eax, dword [ebp - 0x620]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x618]
push ecx
and eax, 0x200
inc eax
push eax
push edi
push str.SOFTWARE_baidu_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002ef75
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x614]
push eax
push edi
push edi
push str.CustomID
push dword [ebp - 0x618]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1002ef69
push 0x104
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x210]
push 0x105
push eax
mov dword [ebp - 0x61c], 1
call fcn.1006059e
lea eax, [ebp - 0x210]
push eax
call fcn.1005d3e2
add esp, 0x14
mov dword [ebx], eax
push dword [ebp - 0x618]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x61c]
pop edi
xor ecx, ebp
pop esi
call fcn.1005c747
leave
ret
Function at 0x10035b8e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
push edi
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
mov dword [esi + 4], eax
cmp eax, edi
jne 0x10035beb
call ebx
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
call fcn.1007d8c0
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], edi
je 0x10035beb
lea eax, [esp + 0x18]
push eax
mov ecx, str.thread.entry_event
call fcn.10029da4
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
mov dword [esi + 8], eax
cmp dword [ecx + 8], edi
jne 0x10035c35
call ebx
mov dword [esp + 0x10], eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
call fcn.1007d8c0
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x10], edi
je 0x10035c35
lea eax, [esp + 0x18]
push eax
mov ecx, str.thread.exit_event
jmp 0x10035be6
lea eax, [esp + 0x14]
push eax
push edi
push esi
push 0x10035ccc
push dword [ebp + 0xc]
mov dword [esp + 0x28], edi
push edi
call fcn.10060069
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx + 4], eax
cmp eax, edi
jne 0x10035ca8
call ebx
mov ebx, eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp dword [esp + 0xc], edi
je 0x10035c77
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
cmp eax, edi
je 0x10035c88
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
call fcn.1007d8c0
mov dword [esp + 0x1c], eax
cmp ebx, edi
je 0x10035ca8
lea eax, [esp + 0x18]
push eax
mov ecx, str.thread
jmp 0x10035be6
cmp dword [esp + 0xc], edi
je 0x10035cc4
push 0xffffffffffffffff
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1003ad38
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x100da340
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x1003ad80
call dword [sym.imp.KERNEL32.dll_TerminateThread]
leave
ret
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
leave
ret
Function at 0x1003d779
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
push edi
mov esi, eax
je 0x1003d84b
cmp byte [ebp + 0x10], 0
je 0x1003d7cf
mov edi, dword [ebp + 0xc]
test byte [edi], 8
je 0x1003d7cf
xor eax, eax
mov word [ebp - 8], ax
mov word [ebp - 6], ax
call fcn.1007d8c0
push 4
lea eax, [ebp - 8]
push eax
push 0xffff
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov edx, 0x80
mov eax, edi
call fcn.1003da09
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
call edi
push dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
call ebx
push eax
call fcn.10041f9a
pop ecx
mov dword [ebp - 8], eax
test eax, eax
je 0x1003d84b
call fcn.1007d8c0
cmp dword [esi + 4], eax
jne 0x1003d804
cmp dword [esi], 0x2733
je 0x1003d816
call fcn.1007d8c0
cmp dword [esi + 4], eax
jne 0x1003d845
cmp dword [esi], 0x4d5
jne 0x1003d845
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
and byte [eax], 0xfc
push 0
call edi
push dword [ebp + 8]
call ebx
push eax
call fcn.10041f9a
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1003d857
xor edi, edi
call fcn.1007d8c0
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003d85f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0xffffffff
push esi
push edi
mov esi, eax
mov edi, ecx
jne 0x1003d882
mov edi, 0x2719
call fcn.1007d8c0
mov dword [esi + 4], eax
mov dword [esi], edi
xor al, al
jmp 0x1003d8c4
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push dword [ebp + 8]
mov dword [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push eax
call fcn.10041f9a
pop ecx
test eax, eax
js 0x1003d8c1
call fcn.1007d8c0
mov dword [esi + 4], eax
mov dword [esi], ebx
or byte [edi], 2
mov al, 1
jmp 0x1003d8c3
xor al, al
pop ebx
pop edi
pop esi
leave
ret

Function at 0x1003d8c8
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0xffffffff
push esi
push edi
mov esi, eax
jne 0x1003d8e9
mov edi, 0x2719
call fcn.1007d8c0
mov dword [esi + 4], eax
mov dword [esi], edi
or eax, 0xffffffff
jmp 0x1003d91c
push ebx
xor edi, edi
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
push eax
call fcn.10041f9a
mov ebx, eax
pop ecx
cmp ebx, edi
jne 0x1003d919
call fcn.1007d8c0
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
ret