joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4063f8
Capabilities:
Create directory
Query environment variable

Disassembly:
push 0x248
mov eax, 0x47c464
call fcn.004514b0
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
xor esi, esi
lea eax, [ebp - 0x21a]
push esi
push eax
call fcn.00442320
add esp, 0xc
push 0x104
lea eax, [ebp - 0x21c]
push eax
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor eax, eax
push 7
pop edi
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x228], esi
call fcn.00405689
mov dword [ebp - 4], esi
xor eax, eax
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x244], esi
mov word [ebp - 0x254], ax
lea eax, [ebp - 0x254]
push eax
mov byte [ebp - 4], 1
call fcn.0040634e
lea ecx, [ebp - 0x238]
mov dword [esp], 0x491b68
call fcn.004055c7
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x238]
call fcn.0040598c
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x238]
push eax
mov ecx, ebx
call fcn.004055ee
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x4064dd
lea eax, [ebp - 0x238]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push 1
lea ecx, [ebp - 0x254]
call fcn.0040573c
push esi
push 1
lea ecx, [ebp - 0x238]
call fcn.0040573c
call fcn.00451533
ret

Function at 0x407147
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x830
mov eax, 0x47b5fa
call fcn.004514b0
mov eax, dword [ebp + 8]
mov esi, dword [ecx]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x838], eax
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
xor ebx, ebx
lea eax, [ebp - 0x80e]
push ebx
push eax
call fcn.00442320
add esp, 0xc
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x834]
push eax
push ebx
push dword [ebp - 0x830]
mov dword [ebp - 0x834], 1
push esi
mov dword [ebp - 0x83c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x4071ca
push 2
pop eax
jmp 0x407221
xor eax, eax
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], ebx
call fcn.00405689
mov ecx, dword [ebp - 0x838]
lea eax, [ebp - 0x82c]
push eax
mov dword [ebp - 4], ebx
call fcn.00405e9a
push ebx
push 1
lea ecx, [ebp - 0x82c]
call fcn.0040573c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
call fcn.00451533
ret
Function at 0x407353
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
inc edi
push edi
push 0xb
mov esi, eax
call fcn.00406906
pop ecx
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407453
test ebx, ebx
je 0x407453
push edi
push 0xc
call fcn.00406906
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x407453
push edi
push 0xd
call fcn.00406906
pop ecx
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x407453
push edi
push 0xe
call fcn.00406906
and dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
pop ecx
pop ecx
jb 0x4073dd
mov eax, dword [esi]
jmp 0x4073df
mov eax, esi
push 0x491cfc
push eax
lea eax, [ebp - 4]
push eax
call fcn.004416b4
add esp, 0xc
test eax, eax
jne 0x407453
push edi
push 0xf
call fcn.00406906
push dword [ebp - 4]
push ebx
push edi
push dword [ebp - 8]
call fcn.00441852
add esp, 0x18
push edi
cmp eax, ebx
jne 0x407428
push 0x10
call fcn.00406906
push dword [ebp - 4]
call fcn.00441939
add esp, 0xc
mov eax, edi
jmp 0x407455
push 0x11
call fcn.00406906
push dword [ebp - 4]
call fcn.00441939
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x407442
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
push 0x12
call fcn.00406906
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c012
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0x50
mov eax, 0x47d8c6
call fcn.004514b0
mov eax, dword [ebp + 8]
add eax, 8
cmp dword [eax + 0x14], 8
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
jb 0x40c031
mov eax, dword [eax]
xor edi, edi
push edi
push 0x80
push 4
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
jne 0x40c061
mov eax, ebx
call fcn.0040bfea
xor eax, eax
jmp 0x40c1a4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
cmp eax, 0x100000
jbe 0x40c094
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
call fcn.0040bfea
push str.DataReport::SaveAndErasePacket_cache_file_is_full_
push 2
push 4
pop edi
call fcn.0040d527
pop ecx
pop ecx
jmp 0x40c05a
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call fcn.00440fb6
pop ecx
lea esi, [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
call fcn.0040cb12
mov dword [ebp - 4], edi
mov ebx, dword [ebx]
mov dword [ebp - 0x30], edi
jmp 0x40c14d
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, edi
cmp dword [ebp - 0x40], eax
jg 0x40c14a
jl 0x40c0e1
cmp dword [ebp - 0x44], ecx
jae 0x40c14a
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.0040b808
test al, al
je 0x40c148
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 - 0x34]
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x30]
lea eax, [ecx + eax + 0x10]
mov dword [ebp - 0x34], eax
cmp eax, 0x100000
ja 0x40c15b
xor edi, edi
add ebx, 4
mov eax, dword [ebp - 0x2c]
cmp ebx, dword [eax + 4]
jne 0x40c0c1
jmp 0x40c16c
push str.DataReport::SaveAndErasePacket_cache_file_is_full_
push 2
push 4
pop edi
call fcn.0040d527
pop ecx
pop ecx
mov eax, dword [ebp - 0x2c]
call fcn.0040bfea
push dword [ebp - 0x30]
push str.DataReport::SaveAndErasePacket_save__d_records
push 2
push 4
pop edi
call fcn.0040d527
add esp, 0xc
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x54], 0
je 0x40c1a1
push dword [ebp - 0x54]
call fcn.00440eda
pop ecx
xor eax, eax
inc eax
call fcn.00451533
ret 4
Function at 0x40c1ac
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0x44
mov eax, 0x47d899
call fcn.004514b0
mov edi, ecx
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 0x34], edi
cmp eax, ebx
je 0x40c1d2
call fcn.0040b464
test eax, eax
je 0x40c322
lea eax, [edi + 8]
cmp dword [eax + 0x14], 8
jb 0x40c1dd
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 0x40c322
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
cmp eax, 0x100000
jbe 0x40c22f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.DataReport::SaveAndErasePacket_cache_file_is_full_
push 2
push 4
pop edi
call fcn.0040d527
pop ecx
jmp 0x40c321
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea esi, [ebp - 0x50]
call fcn.0040cb12
push ebx
mov dword [ebp - 4], ebx
call fcn.00440fb6
mov dword [ebp - 0x40], eax
mov eax, dword [edi]
pop ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x24], ebx
jmp 0x40c2e7
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 0x40c2d4
jl 0x40c279
cmp dword [ebp - 0x40], ecx
jae 0x40c2d4
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.0040b808
test al, al
je 0x40c2d4
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.0040b300
cmp dword [ebp - 0x2c], 0x100000
ja 0x40c2f6
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
call fcn.0040b420
mov esi, eax
cmp esi, ebx
jne 0x40c25c
push dword [ebp - 0x24]
push str.DataReport::SaveAndEraseQueuePacket_save__d_records
push 2
push 4
pop edi
call fcn.0040d527
add esp, 0xc
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], ebx
je 0x40c322
push dword [ebp - 0x50]
call fcn.00440eda
pop ecx
call fcn.00451533
ret
Function at 0x40c8a2
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 0x40c9ba
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, 0x5000
push edi
mov dword [ebp - 8], eax
call fcn.0044121c
pop ecx
mov dword [ebp - 4], edi
push eax
lea edi, [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.0040b808
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.0040d329
push esi
test al, al
jne 0x40c937
call fcn.00441227
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 2
push 4
pop edi
call fcn.0040d527
add esp, 0xc
push 0x1388
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40c9ba
push 6
jmp 0x40c9bc
mov al, byte [ebx + 0x4c]
test al, al
jne 0x40c946
call fcn.00441227
pop ecx
jmp 0x40c930
call fcn.00441227
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
pop ecx
call esi
mov dword [ebp - 0xc], eax
sub eax, dword [ebp - 8]
push eax
push str.DataReport::SendPacket_success:__use__u_ms_
push 2
push 4
pop edi
call fcn.0040d527
add esp, 0xc
push 0x1388
push dword [ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x40c9b6
push dword [ebx + 0x54]
call esi
sub eax, dword [ebp - 0xc]
push eax
push str.DataReport::SendPacket_Get_Svr_Response:__use__u_ms____errcode___u
push 2
call fcn.0040d527
mov ebx, dword [ebx + 0x54]
add esp, 0x10
test ebx, ebx
jne 0x40c9a5
xor eax, eax
jmp 0x40c9bd
cmp ebx, 0x64
jb 0x40c9ba
cmp ebx, 0x100
jae 0x40c9ba
mov eax, edi
jmp 0x40c9bd
push 5
jmp 0x40c9bc
push 2
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40d74f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [esi + 4], ebx
mov eax, str.984F2052_5475_4CD7_887A_726BFFCF1798
push edi
push eax
mov dword [esi], vtable.Utils::Config::CConfig.0
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x224], ebx
mov dword [esi + 0xc], eax
call fcn.00442cd0
mov dword [esi + 0x10], eax
mov dword [esp], 0x208
lea eax, [esi + 0x1c]
push ebx
push eax
call fcn.00442320
mov edi, 0x4b8988
push edi
call fcn.0044aa2a
add esp, 0x10
test eax, eax
jne 0x40d82d
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.00442320
push str._APPDATA_BaiduBaidu_
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00441c8b
push str.config_
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0044a8e8
add esp, 0x24
push 0x103
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
call fcn.0044aa2a
add eax, eax
cmp word [eax + 0x4b8986], 0x5c
pop ecx
je 0x40d82d
push 0x5c
pop edx
xor ecx, ecx
mov word [eax + 0x4b8988], dx
mov word [eax + 0x4b898a], cx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.00440747
leave
ret
Function at 0x40d879
Capabilities:
Check if file exists
Check mutex on windows
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebx + 8], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00442320
xor eax, eax
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00442320
add esp, 0x18
push 0x103
test edi, edi
jne 0x40d8f4
push 0x4b8988
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044a95d
add esp, 0x10
jmp 0x40d94f
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x414]
push eax
call fcn.0044aa2a
mov esi, eax
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0044a95d
lea eax, [esi + esi]
add esp, 0x14
cmp word [ebp + eax - 0x20e], 0x5c
je 0x40d94f
push 0x5c
pop ecx
mov word [ebp + eax - 0x20c], cx
xor ecx, ecx
mov word [ebp + eax - 0x20a], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d965
test al, 0x10
jne 0x40d970
lea edi, [ebp - 0x20c]
call fcn.00434ef1
push dword [ebp + 8]
lea ecx, [ebp - 0x20c]
mov edx, ebx
call fcn.0040db7c
push str.GlobalEB19B4E1_D804_4FF6_B8B2_61530127D102
push 0
call fcn.00434fc0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x40d9a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40d9a9
xor eax, eax
jmp 0x40d9b2
xor eax, eax
inc eax
mov dword [ebx + 0x224], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440747
leave
ret 8
Function at 0x40dc7a
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13d0
call fcn.00442b90
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push 0xf9c
mov dword [ebp - 0x13d0], eax
lea eax, [ebp - 0x13b4]
push edi
push eax
mov dword [ebp - 0x13b8], edi
call fcn.00442320
xor eax, eax
push 0x206
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push edi
push eax
mov dword [ebp - 0x13c4], edi
call fcn.00442320
add esp, 0x18
lea eax, [ebp - 0x13c4]
push eax
push 0xfa0
lea eax, [ebp - 0x13b8]
push eax
mov dword [ebp - 0x13c0], edi
mov dword [ebp - 0x13c8], edi
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x40dde7
mov eax, dword [ebp - 0x13c4]
cmp eax, edi
je 0x40dde7
shr eax, 2
mov dword [ebp - 0x13cc], eax
mov dword [ebp - 0x13bc], edi
cmp eax, edi
jbe 0x40dde7
mov esi, 0x208
mov eax, dword [ebp - 0x13bc]
push dword [ebp + eax*4 - 0x13b8]
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, edi
je 0x40ddcf
push esi
lea eax, [ebp - 0x418]
push edi
push eax
mov dword [ebp - 0x13c0], edi
call fcn.00442320
add esp, 0xc
lea eax, [ebp - 0x13c4]
push eax
push 4
lea eax, [ebp - 0x13c0]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40ddc8
push 0x104
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x13c0]
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x40ddc8
push str.Baidu.exe
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40ddc0
mov dword [ebp - 0x13c8], 1
cmp dword [ebp - 0x13c8], edi
jne 0x40ddf8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x13bc]
mov eax, dword [ebp - 0x13bc]
cmp eax, dword [ebp - 0x13cc]
jb 0x40dd32
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00440747
leave
ret
xor eax, eax
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
call fcn.00442320
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x13d0]
lea eax, [ebp - 0x210]
push eax
call fcn.00405689
xor eax, eax
inc eax
jmp 0x40dde9
Function at 0x40e2d6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x258
mov eax, 0x47e103
call fcn.004514b0
xor eax, eax
push 0x208
xor ebx, ebx
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x25c], edi
call fcn.00442320
and dword [ebp - 0x258], ebx
xor eax, eax
inc eax
add esp, 0xc
mov esi, 0x104
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], eax
test edi, edi
je 0x40e4ca
lea ecx, [ebp - 0x258]
push ecx
push eax
push ebx
push str.SOFTWARE_baiduBaidu
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e3b8
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x260]
push eax
push ebx
push 0x491c20
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e3a4
cmp dword [ebp - 0x260], 1
jne 0x40e3a4
lea eax, [ebp - 0x21c]
push eax
call fcn.0040e174
pop ecx
test eax, eax
je 0x40e3a4
push esi
lea eax, [ebp - 0x21c]
push eax
push esi
push edi
call fcn.0044a95d
add esp, 0x10
inc ebx
push dword [ebp - 0x258]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x40e4b6
and dword [ebp - 0x228], 0
push 7
pop edi
xor eax, eax
mov dword [ebp - 0x224], edi
mov word [ebp - 0x238], ax
and dword [ebp - 4], eax
lea ecx, [ebp - 0x238]
call fcn.0040e0ee
test eax, eax
je 0x40e49d
and dword [ebp - 0x244], 0
xor eax, eax
mov dword [ebp - 0x240], edi
mov word [ebp - 0x254], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x40e416
lea ecx, [ebp - 0x238]
lea eax, [ebp - 0x254]
push eax
call fcn.0040e1d1
pop ecx
test eax, eax
jne 0x40e447
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x40e43c
lea ecx, [ebp - 0x238]
lea edi, [ebp - 0x254]
call fcn.0040e271
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x40e45c
lea ecx, [ebp - 0x238]
lea edi, [ebp - 0x254]
call fcn.0040e271
mov ebx, eax
test ebx, ebx
je 0x40e48e
cmp dword [ebp - 0x240], 8
mov eax, dword [ebp - 0x254]
jae 0x40e47e
mov eax, edi
push eax
push esi
push dword [ebp - 0x25c]
call fcn.00441c8b
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x254]
call fcn.0040573c
push 0
push 1
lea ecx, [ebp - 0x238]
call fcn.0040573c
test ebx, ebx
je 0x40e4c6
mov edi, dword [ebp - 0x25c]
push edi
call fcn.0040e174
pop ecx
test eax, eax
jne 0x40e4c6
mov word [edi], ax
xor ebx, ebx
mov eax, ebx
jmp 0x40e4cc
xor eax, eax
call fcn.00451533
ret

Function at 0x40e55b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00442320
add esp, 0xc
push 0x103
lea eax, [ebp - 0x20c]
push eax
push str._APPDATA_BaiduBaidu_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edi, [ebp - 0x20c]
call fcn.00434ef1
mov esi, eax
test esi, esi
je 0x40e5c9
push 0xffffffffffffffff
mov eax, edi
push eax
push 0x104
push ebx
call fcn.0044a95d
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00440747
leave
ret
Function at 0x40e5d9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4ab3e0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
xor edi, edi
push 0x400
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.00442320
xor eax, eax
push 0x208
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0x620], 0x400
call fcn.00442320
add esp, 0x18
call fcn.0040dc3a
neg eax
sbb eax, eax
and eax, 0x200
lea ecx, [ebp - 0x618]
push ecx
inc eax
push eax
push edi
push str.SOFTWARE_baiduBaidu
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e6d3
lea eax, [ebp - 0x620]
push eax
lea eax, [ebp - 0x614]
push eax
push edi
push edi
push str.SupplyID
push dword [ebp - 0x618]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40e6c7
push 0x104
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x210]
push 0x105
push eax
mov dword [ebp - 0x61c], 1
call fcn.0044a95d
lea eax, [ebp - 0x210]
push eax
call fcn.004412fb
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]
xor ecx, ebp
pop edi
call fcn.00440747
leave
ret
Function at 0x417544
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x4ab3e0]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x4b8e68
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x417586
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x4b8e6c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00440747
mov esp, ebp
pop ebp
ret

Function at 0x41c064
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x4ab3e0]
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.00442320
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.00442320
add esp, 0x18
push str.IsWow64Process
push str.kernel32
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 0x41c0fe
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x41c104
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.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41c194
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 0x41c188
push 0x104
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x210]
push 0x105
push eax
mov dword [ebp - 0x61c], 1
call fcn.0044a95d
lea eax, [ebp - 0x210]
push eax
call fcn.004412fb
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.00440747
leave
ret