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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5dbcc8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x30
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.00549e40
add esp, 0xc
test esi, esi
je 0x401302
push 0x100
lea ecx, [ebp - 0x134]
push 0
push ecx
call fcn.00549e40
add esp, 0xc
xor eax, eax
movsx edx, byte [eax + 0x5a4c10]
movzx ecx, byte [edx + esi - 1]
movsx edx, byte [eax + 0x5a4c11]
mov byte [ebp + eax - 0x134], cl
movzx ecx, byte [edx + esi - 1]
movsx edx, byte [eax + 0x5a4c12]
mov byte [ebp + eax - 0x133], cl
movzx ecx, byte [edx + esi - 1]
movsx edx, byte [eax + 0x5a4c13]
mov byte [ebp + eax - 0x132], cl
movzx ecx, byte [edx + esi - 1]
movsx edx, byte [eax + 0x5a4c14]
mov byte [ebp + eax - 0x131], cl
movzx ecx, byte [edx + esi - 1]
movsx edx, byte [eax + 0x5a4c15]
mov byte [ebp + eax - 0x130], cl
movzx ecx, byte [edx + esi - 1]
mov byte [ebp + eax - 0x12f], cl
add eax, 6
cmp eax, 0x30
jl 0x401273
push 0x30
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.0054a0c0
add esp, 0xc
mov edx, edi
lea eax, [ebp - 0x34]
xor ecx, ecx
sub edx, eax
push ebx
lea esp, [esp]
lea eax, [ebp + ecx - 0x34]
movzx ebx, byte [edx + eax]
xor byte [eax], bl
movzx ebx, byte [edi + ecx + 1]
xor byte [eax + 1], bl
movzx ebx, byte [edi + ecx + 2]
xor byte [eax + 2], bl
movzx ebx, byte [edi + ecx + 3]
xor byte [eax + 3], bl
movzx ebx, byte [edi + ecx + 4]
xor byte [eax + 4], bl
movzx ebx, byte [edi + ecx + 5]
xor byte [eax + 5], bl
add ecx, 6
cmp ecx, 0x30
jl 0x401310
lea eax, [ebp - 0x34]
mov ecx, esi
call fcn.004010a0
pop ebx
test esi, esi
je 0x4013e6
push 0x100
lea ecx, [ebp - 0x134]
push 0
push ecx
call fcn.00549e40
add esp, 0xc
xor eax, eax
jmp 0x401380
movsx edx, byte [eax + 0x5a4c40]
movzx ecx, byte [edx + esi - 1]
movsx edx, byte [eax + 0x5a4c41]
mov byte [ebp + eax - 0x134], cl
movzx ecx, byte [edx + esi - 1]
movsx edx, byte [eax + 0x5a4c42]
mov byte [ebp + eax - 0x133], cl
movzx ecx, byte [edx + esi - 1]
movsx edx, byte [eax + 0x5a4c43]
mov byte [ebp + eax - 0x132], cl
movzx ecx, byte [edx + esi - 1]
mov byte [ebp + eax - 0x131], cl
add eax, 4
cmp eax, 0x20
jl 0x401380
push 0x20
lea edx, [ebp - 0x134]
push edx
push esi
call fcn.0054a0c0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545eb2
mov esp, ebp
pop ebp
ret
Function at 0x401400
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x5dbcc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3f
lea eax, [ebp - 0x43]
push 0
push eax
mov esi, ecx
mov ebx, edx
mov byte [ebp - 0x44], 0
call fcn.00549e40
add esp, 0xc
xor eax, eax
or cl, 0xff
mov edx, eax
sar edx, 3
mov dl, byte [edx + esi]
sub cl, al
and cl, 7
sar dl, cl
inc eax
and dl, 1
mov byte [ebp + eax - 0x45], dl
cmp eax, 0x40
jl 0x401430
push 0x100
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.00549e40
add esp, 0xc
xor eax, eax
jmp 0x401470
movsx ecx, byte [eax + str.91__]
movzx edx, byte [ebp + ecx - 0x45]
movsx ecx, byte [eax + 0x5a4c61]
mov byte [ebp + eax - 0x144], dl
movzx edx, byte [ebp + ecx - 0x45]
movsx ecx, byte [eax + 0x5a4c62]
mov byte [ebp + eax - 0x143], dl
movzx edx, byte [ebp + ecx - 0x45]
movsx ecx, byte [eax + 0x5a4c63]
mov byte [ebp + eax - 0x142], dl
movzx edx, byte [ebp + ecx - 0x45]
mov byte [ebp + eax - 0x141], dl
add eax, 4
cmp eax, 0x38
jl 0x401470
push 0x38
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.0054a0c0
add esp, 0xc
xor edi, edi
jmp 0x4014e0
movsx esi, byte [edi + 0x5a4cc8]
test esi, esi
je 0x401543
cmp esi, 0x100
jge 0x401543
push 0x100
lea edx, [ebp - 0x244]
push 0
push edx
call fcn.00549e40
push esi
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x244]
push ecx
call fcn.0054a0c0
mov edx, 0x1c
sub edx, esi
push edx
lea eax, [ebp + esi - 0x44]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.00545ed0
push esi
lea edx, [ebp - 0x244]
lea eax, [ebp - 0x28]
push edx
sub eax, esi
push eax
call fcn.0054a0c0
add esp, 0x30
movsx esi, byte [edi + 0x5a4cc8]
test esi, esi
je 0x4015a6
cmp esi, 0x100
jge 0x4015a6
push 0x100
lea ecx, [ebp - 0x344]
push 0
push ecx
call fcn.00549e40
push esi
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x344]
push eax
call fcn.0054a0c0
mov ecx, 0x1c
sub ecx, esi
push ecx
lea edx, [ebp + esi - 0x28]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.00545ed0
push esi
lea ecx, [ebp - 0x344]
lea edx, [ebp - 0xc]
push ecx
sub edx, esi
push edx
call fcn.0054a0c0
add esp, 0x30
test ebx, ebx
je 0x40165c
push 0x100
lea eax, [ebp - 0x144]
push 0
push eax
call fcn.00549e40
add esp, 0xc
xor eax, eax
jmp 0x4015d0
movsx ecx, byte [eax + 0x5a4c98]
movzx edx, byte [ebp + ecx - 0x45]
movsx ecx, byte [eax + 0x5a4c99]
mov byte [ebp + eax - 0x144], dl
movzx edx, byte [ebp + ecx - 0x45]
movsx ecx, byte [eax + 0x5a4c9a]
mov byte [ebp + eax - 0x143], dl
movzx edx, byte [ebp + ecx - 0x45]
movsx ecx, byte [eax + 0x5a4c9b]
mov byte [ebp + eax - 0x142], dl
movzx edx, byte [ebp + ecx - 0x45]
movsx ecx, byte [eax + 0x5a4c9c]
mov byte [ebp + eax - 0x141], dl
movzx edx, byte [ebp + ecx - 0x45]
movsx ecx, byte [eax + 0x5a4c9d]
mov byte [ebp + eax - 0x140], dl
movzx edx, byte [ebp + ecx - 0x45]
mov byte [ebp + eax - 0x13f], dl
add eax, 6
cmp eax, 0x30
jl 0x4015d0
push 0x30
lea eax, [ebp - 0x144]
push eax
push ebx
call fcn.0054a0c0
add esp, 0xc
inc edi
add ebx, 0x30
cmp edi, 0x10
jl 0x4014e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545eb2
mov esp, ebp
pop ebp
ret
Function at 0x401e70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 8
test ecx, ecx
je 0x401f9e
test edx, edx
js 0x401f9e
test eax, eax
je 0x401f85
mov dword [ebp - 8], edx
test edx, edx
jle 0x401f82
push ebx
push esi
push edi
nop
cmp edx, 3
jl 0x401f0d
mov dl, byte [ecx]
movzx ebx, byte [ecx + 1]
movzx esi, dl
mov edx, esi
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp - 1], bl
mov bl, byte [ecx + 2]
movzx edi, byte [ebp - 1]
mov byte [eax], dl
mov edx, edi
shr edx, 4
shl esi, 4
or edx, esi
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], dl
movzx esi, bl
mov edx, esi
shr edx, 6
add edi, edi
add edi, edi
or edx, edi
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add ecx, 3
mov byte [eax + 2], dl
and esi, 0x3f
movzx edx, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 3], dl
mov edx, dword [ebp - 8]
jmp 0x401f6b
mov bl, byte [ecx]
inc ecx
mov byte [ebp - 2], bl
cmp edx, 2
jne 0x401f20
mov bl, byte [ecx]
mov byte [ebp - 1], bl
inc ecx
jmp 0x401f24
mov byte [ebp - 1], 0
movzx esi, byte [ebp - 2]
mov edi, esi
shr edi, 2
movzx ebx, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edi, byte [ebp - 1]
mov byte [eax], bl
mov ebx, edi
shr ebx, 4
shl esi, 4
or ebx, esi
and ebx, 0x3f
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], bl
cmp edx, 1
jne 0x401f5a
mov bl, 0x3d
jmp 0x401f64
and edi, 0xf
mov bl, byte [edi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], bl
mov byte [eax + 3], 0x3d
sub edx, 3
add eax, 4
mov dword [ebp - 8], edx
test edx, edx
jg 0x401ea0
mov edx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov byte [eax], 0
lea ecx, [edx + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, eax
add eax, eax
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x402150
Capabilities:
Check os version
Get disk information
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push 0x400
push 0
push esi
call fcn.00549e40
push 0x400
lea edi, [esi + 0x400]
push 0
push edi
call fcn.00549e40
push 0x400
lea eax, [esi + 0x800]
push 0
push eax
call fcn.00549e40
push 0x400
lea eax, [esi + 0xc00]
push 0
push eax
call fcn.00549e40
push 0x400
lea eax, [esi + 0x1004]
push 0
push eax
mov dword [esi + 0x1000], 0
call fcn.00549e40
push 0x400
lea eax, [esi + 0x1404]
push 0
push eax
call fcn.00549e40
add esp, 0x48
push 0x288
mov dword [ebp - 4], 0x288
call fcn.0054668a
mov ebx, eax
add esp, 4
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x402216
push ebx
call fcn.0054671e
mov ecx, dword [ebp - 4]
push ecx
call fcn.0054668a
add esp, 8
lea edx, [ebp - 4]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x4022a6
lea eax, [ebx + 0x1b0]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402228
lea eax, [ebx + 0x1c0]
sub edi, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
test cl, cl
jne 0x402240
lea eax, [ebx + 0x1d8]
lea edx, [esi + 0x800]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x402258
movzx eax, byte [ebx + 0x199]
movzx ecx, byte [ebx + 0x198]
movzx edx, byte [ebx + 0x197]
push eax
movzx eax, byte [ebx + 0x196]
push ecx
movzx ecx, byte [ebx + 0x195]
push edx
movzx edx, byte [ebx + 0x194]
push eax
push ecx
push edx
lea eax, [esi + 0xc00]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.00546876
add esp, 0x20
push ebx
call fcn.0054671e
add esp, 4
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edi, [esi + 0x1000]
push edi
push ebx
push ebx
push 0x5a4efc
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4022cf
mov dword [edi], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov eax, 1
xor edx, edx
cpuid
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push eax
push ecx
lea eax, [esi + 0x1004]
push str._08X_08X
push eax
call fcn.00546876
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
pop edi
movzx eax, al
pop ebx
cmp ecx, 4
ja 0x40231d
push str.windows_NT
jmp 0x40237f
cmp ecx, 5
jne 0x40235e
test eax, eax
lea eax, [esi + 0x1404]
jne 0x402345
push str.windows_2000
push 0x400
push eax
call fcn.005468fa
mov eax, esi
add esp, 0xc
mov esp, ebp
pop ebp
ret
push str.windows_XP
push 0x400
push eax
call fcn.005468fa
mov eax, esi
add esp, 0xc
mov esp, ebp
pop ebp
ret
cmp ecx, 6
jne 0x40237a
test eax, eax
jne 0x40236e
push str.windows_Vista
jmp 0x40237f
cmp eax, 1
jne 0x40237a
push str.windows_7
jmp 0x40237f
push str.windows_8
lea eax, [esi + 0x1404]
push 0x400
push eax
call fcn.005468fa
mov eax, esi
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x4023a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5720e0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
mov eax, dword [0x5dbcc8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push 8
mov dword [ebp - 0x14], 0x5e586c
mov dword [0x5e586c], esi
call fcn.00444c55
add esp, 4
cmp eax, esi
je 0x4024a3
mov dword [0x5e586c], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [0x5e586c]
mov dword [eax], 0x5e586c
mov dword [0x5e5870], esi
mov dword [0x5e5874], esi
mov dword [0x5e5878], esi
mov dword [0x5e587c], esi
push 0x5e588c
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
push ecx
mov dword [0x5e5884], esi
mov dword [0x5e5888], 1
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x30]
add eax, eax
xor ecx, ecx
mov dword [0x5e5888], eax
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00444c8f
mov dword [0x5e5884], eax
add esp, 4
xor eax, eax
cmp dword [0x5e5888], esi
jle 0x402488
mov ecx, dword [0x5e5884]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [0x5e5888]
jl 0x402476
mov dword [0x5e58a4], esi
mov eax, 0x5e586c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], esi
call fcn.00546f3b
push 0x5cabf8
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.0054911c
int3
Function at 0x4027f0
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x5e5888], esi
jle 0x402829
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0x5e586c
push 0x402a30
push 0
push 0
call edi
mov ecx, dword [0x5e5884]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [0x5e5888]
jl 0x402802
pop edi
pop esi
ret

Function at 0x404470
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [0x5dbcc8]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
mov eax, ecx
push esi
lea esi, [eax + 1]
xor ebx, ebx
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404490
sub eax, esi
push ecx
lea esi, [esp + 0xc]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.004042f0
add esp, 4
mov ecx, esi
mov ebx, edi
call fcn.004043a0
mov ecx, dword [esp + 0x64]
pop esi
pop ebx
xor ecx, esp
call fcn.00545eb2
mov esp, ebp
pop ebp
ret
Function at 0x409b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x5a5594
push eax
call fcn.00546b90
mov edi, eax
add esp, 8
test edi, edi
je 0x409b93
push 2
push 0
push edi
call fcn.005476c4
push edi
call fcn.005478d4
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.00444c8f
push edi
mov ebx, eax
call fcn.00547939
push edi
push esi
push 1
push ebx
call fcn.00547c41
push edi
mov byte [ebx + esi], 0
call fcn.00546c5b
push esi
call fcn.00444c8f
push esi
mov edi, eax
push 0
push edi
call fcn.00549e40
push esi
push ebx
mov eax, edi
call fcn.00401fb0
mov esi, eax
add esp, 0x44
test esi, esi
jns 0x409b9a
push edi
call fcn.00444c84
push ebx
call fcn.00444c84
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.00444c8f
mov edx, dword [ebp + 0xc]
push esi
push 0
push eax
mov dword [edx], eax
call fcn.00549e40
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
push esi
push ecx
push edx
push esi
mov ecx, edi
mov edx, 1
call fcn.00401950
add esp, 0x20
push edi
test eax, eax
je 0x409b85
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
movsx ecx, byte [eax + esi - 1]
sub eax, ecx
mov byte [eax + esi], 0
sub esi, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], esi
call fcn.00444c84
push ebx
call fcn.00444c84
add esp, 8
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret

Function at 0x409ee0
Capabilities:
Read file via mapping

Disassembly:
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x409f05
xor eax, eax
pop edi
ret
push esi
push 0
push 8
push 0
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
test esi, esi
je 0x409f30
push 8
push 0
push 0
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x409f35
pop esi
xor eax, eax
pop edi
ret
xor byte [eax], 0xc7
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop esi
mov eax, 1
pop edi
ret
Function at 0x40cbe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40cbfb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40cc32
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40cc2e
jmp 0x40cc20
cmp esi, eax
jae 0x40cc32
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40cc20
cmp esi, eax
jb 0x40cc39
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40fed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1810
call fcn.0054a430
mov eax, dword [0x5dbcc8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [str.trace.m1905.cn_pcclient]
mov dword [edi], eax
mov ecx, dword [0x5a5dbc]
mov dword [edi + 4], ecx
mov edx, dword [0x5a5dc0]
mov dword [edi + 8], edx
mov eax, dword [0x5a5dc4]
mov dword [edi + 0xc], eax
mov ecx, dword [0x5a5dc8]
push esi
lea eax, [ebp - 0x180c]
push eax
push 1
push 0
mov dword [edi + 0x10], ecx
mov edx, dword [0x5a5dcc]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths1905Key.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [edi + 0x14], edx
mov dword [ebp - 0x1810], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ffa9
mov edx, dword [ebp - 0x180c]
lea ecx, [ebp - 0x1810]
push ecx
lea esi, [edi + 0x400]
push esi
push eax
push eax
push 0x5a50e8
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ffa9
mov eax, dword [ebp - 0x180c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x5a4fc6
mov eax, esi
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ffa0
test dl, dl
je 0x40ff9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ffa0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ff80
xor eax, eax
jmp 0x40ffa5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40ffcc
mov ecx, dword [str.19050000]
mov dword [edi + 0x400], ecx
mov edx, dword [0x5a5134]
mov dword [edi + 0x404], edx
mov al, byte [0x5a5138]
mov byte [edi + 0x408], al
lea esi, [ebp - 0x1808]
call fcn.00402150
mov edx, dword [ebp - 0x808]
lea ecx, [ebp - 0x804]
push ecx
push edx
lea eax, [ebp - 0xc08]
push eax
lea ecx, [edi + 0x800]
push str._s__lu__s
push ecx
call fcn.00546876
add esp, 0x14
mov eax, 0x5a5024
lea edx, [edi + 0xc00]
sub edx, eax
pop esi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x410010
lea eax, [ebp - 0x404]
lea edx, [edi + 0x1000]
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x410030
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [edi + 0x1400], eax
call fcn.00545eb2
mov esp, ebp
pop ebp
ret
Function at 0x410060
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xd40c
call fcn.0054a430
mov eax, dword [0x5dbcc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x404], 0
call fcn.00549e40
add esp, 0xc
push 1
push 0x1c
lea ecx, [ebp - 0x404]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0x3ff
lea edx, [ebp - 0x803]
push 0
push edx
mov byte [ebp - 0x804], 0
call fcn.00549e40
mov eax, 0x10624dd3
mul dword [edi + 0x1404]
shr edx, 6
push edx
lea eax, [ebp - 0x804]
push str.http:__pc.mapps.m1905.cn_soft_online__lu
push eax
call fcn.00546876
add esp, 0x18
lea esi, [ebp - 0xd40c]
call fcn.00403050
lea ecx, [ebp - 0x804]
push ecx
lea edx, [edi + 0x400]
push edx
push 0x5a5024
lea eax, [edi + 0x800]
push eax
lea ecx, [edi + 0x1000]
push ecx
push edi
lea edx, [ebp - 0xd00c]
push str.http:___s__msoftaonlineos_sdid_sappid1700verid_spid_scidstepposidurl_s
push edx
mov dword [ebp - 0xd40c], 0x544547
call fcn.00546876
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x20
push 0x5a52f8
call ebx
inc eax
cmp eax, 0x3fffffff
jg 0x41017d
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov edi, esp
test edi, edi
je 0x41017d
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push 0x5a52f8
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x41017f
xor esi, esi
push str.1905Cache1
call ebx
inc eax
cmp eax, 0x3fffffff
jg 0x4101c0
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0054bbf0
mov edi, esp
test edi, edi
je 0x4101c0
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push str.1905Cache1
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x4101c2
xor eax, eax
push esi
push eax
lea eax, [ebp - 0x404]
push eax
push str._s_s_sTongJiOnline.xml
lea ecx, [ebp - 0x800c]
push 0x2800
push ecx
call fcn.005468fa
add esp, 0x18
mov ecx, 0x5e5968
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push 0x16
lea edx, [ebp - 0x3004]
push str.type_d
push edx
mov dword [ebp - 0x300c], eax
mov dword [ebp - 0x3008], 0x402
call fcn.00546876
add esp, 0xc
mov eax, 0xcc08
lea esi, [ebp - 0xd40c]
call fcn.0054a430
mov edi, esp
mov ecx, 0x3302
rep movsd dword es:[edi], dword [esi]
call fcn.00410290
lea esp, [ebp - 0xd418]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545eb2
mov esp, ebp
pop ebp
ret
Function at 0x410fd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xd014
call fcn.0054a430
mov eax, dword [0x5dbcc8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3ff
lea eax, [ebp - 0x407]
push 0
push eax
mov byte [ebp - 0x408], 0
call fcn.00549e40
add esp, 0xc
push 1
push 0x1c
lea ecx, [ebp - 0x408]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea esi, [ebp - 0xd010]
call fcn.00403050
push 0x5a5024
lea edx, [ebp - 0xcc10]
push str.http:__pc.mapps.m1905.cn_Recommend_getAdInfo_id385
push edx
mov dword [ebp - 0xd010], 0x544547
call fcn.00546876
lea eax, [ebp - 0xa410]
add esp, 0xc
push eax
call fcn.00404b10
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 4
push 0x5a52f8
call ebx
inc eax
cmp eax, 0x3fffffff
jg 0x4110a0
lea esi, [eax + eax]
mov eax, esi
call fcn.0054bbf0
mov edi, esp
test edi, edi
je 0x4110a0
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push 0x5a52f8
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
jmp 0x4110a2
xor esi, esi
push str.1905Cache1
call ebx
inc eax
cmp eax, 0x3fffffff
jg 0x4110e3
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0054bbf0
mov edi, esp
test edi, edi
je 0x4110e3
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push str.1905Cache1
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x4110e5
xor eax, eax
push esi
push eax
lea ecx, [ebp - 0x408]
push ecx
push str._s_s_sRecommend.xml
lea edx, [ebp - 0x7c10]
push 0x2800
push edx
call fcn.005468fa
add esp, 0x18
mov ecx, 0x5e5968
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
mov dword [ebp - 0x2c10], eax
lea eax, [ebp - 0x7c10]
push eax
push 0x2c
lea ecx, [ebp - 0x2c08]
push str.type_d_saveFile_s
push ecx
mov dword [ebp - 0x2c0c], 0x402
call fcn.00546876
add esp, 0x10
mov eax, 0xcc08
lea esi, [ebp - 0xd010]
call fcn.0054a430
mov edi, esp
mov ecx, 0x3302
rep movsd dword es:[edi], dword [esi]
call fcn.004028a0
lea esp, [ebp - 0xd020]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545eb2
mov esp, ebp
pop ebp
ret