joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x7ab5e8
push 0x104
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
push 0x422700
push str.TName
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x20c], si
jne 0x401c26
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409948
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
push eax
push 0x41d2a0
push 1
push 0
push 0x41d2c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x401c76
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
mov ecx, 1
cmovns esi, ecx
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00409948
mov esp, ebp
pop ebp
ret

Function at 0x401c90
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040be50
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0x1a
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4226fc
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00409a21
add esp, 0xc
lea eax, [ebp - 0x210]
push str.7k7kLegend_
push 0x104
push eax
call fcn.00409a21
add esp, 0xc
lea eax, [ebp - 0x210]
push str.WeiDuanN_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x7ab7f0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x401d50
push 0x7ab5e8
push 0x104
push 0x7ab7f0
push 0x422700
push str.StartMenuPath
push str.config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, 0x7ab7f0
call fcn.004019a0
call fcn.00401bd0
lea ecx, [ebp - 0x210]
call fcn.004019a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409948
mov esp, ebp
pop ebp
ret
Function at 0x401d80
Capabilities:
Acquire debug privileges
Enumerate processes
Get file system object information
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x71c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
mov ebx, 1
push 2
mov dword [ebp - 0x710], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
jne 0x401dc6
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409948
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x708]
mov dword [ebp - 0x708], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401db3
lea eax, [ebp - 0x70c]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401e70
lea eax, [ebp - 0x718]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x401e5a
mov eax, dword [ebp - 0x718]
push 0
push 0
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x714]
push 0
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x70c]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x214], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x70c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401e70
push 0x2b4
lea eax, [ebp - 0x4d8]
push 0
push eax
call fcn.0040be50
add esp, 0xc
lea eax, [ebp - 0x4d8]
push 0x101
push 0x2b4
push eax
push 0
lea eax, [ebp - 0x6e4]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea eax, [ebp - 0x6e4]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401efd
push dword [ebp - 0x700]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, dword [ebp - 0x710]
neg eax
sbb eax, eax
and ebx, eax
lea eax, [ebp - 0x708]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401e70
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409948
mov esp, ebp
pop ebp
ret
Function at 0x401f30
Capabilities:
Check if file exists
Create shortcut via ishelllink
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, ecx
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0040be50
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x20c]
push 0x4226fc
push eax
call esi
push str.7k7k
lea eax, [ebp - 0x20c]
push eax
call esi
push str..lnk
lea eax, [ebp - 0x20c]
push eax
call esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0x41d260
push 1
push 0
push 0x41d280
mov dword [ebp - 0x214], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40205e
mov eax, dword [ebp - 0x210]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x210]
push 0x422700
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x210]
push 0
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 0x41d270
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40205e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402049
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x20c]
push 2
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x214]
pop edi
pop esi
test ecx, ecx
je 0x402070
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x210]
test ecx, ecx
je 0x402080
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409948
mov esp, ebp
pop ebp
ret
Function at 0x404bf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x404bfb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x404cc5
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422c90]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422c90]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422c90]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422c90]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422c90]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422c90]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422c90]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422c90]
dec edi
jne 0x404c10
pop edi
test esi, esi
je 0x404cea
lea esp, [esp]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x422c90]
dec esi
jne 0x404cd0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x405410
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edx
mov esi, ebx
mov eax, ecx
imul esi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], 0
je 0x405453
push 0
lea ecx, [ebp + 8]
push ecx
push esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405445
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
xor edx, edx
pop edi
pop esi
div ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x405464
mov esi, ecx
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.0040e330
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x4054cb
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4054c6
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x4054f8
mov ebx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x4054dc
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x10]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.0040e330
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x18], eax
cmp edi, 1
jne 0x40550c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x405503
cmp byte [esi + 8], 0
je 0x405503
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4055d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
mov edi, ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [edi], 0
je 0x405604
cmp byte [edi + 1], 0
je 0x4055fd
push 2
push 0
push 0
push dword [edi + 4]
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40560a
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x14]
mov dword [edi + 0x18], eax
cmp byte [edi], 0
push ebx
je 0x40562f
cmp byte [edi + 1], 0
je 0x405628
push 1
push 0
push 0
push dword [edi + 4]
call ecx
mov ebx, eax
sub ebx, dword [edi + 0xc]
jmp 0x405632
xor ebx, ebx
mov dword [ebp - 8], ebx
jmp 0x405641
mov ebx, dword [edi + 0x18]
mov eax, 0xffff
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
cmp ebx, eax
jae 0x405644
mov dword [ebp - 4], ebx
push esi
push 0x404
call fcn.00409957
mov esi, eax
add esp, 4
test esi, esi
jne 0x40565f
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 4
mov dword [ebp - 0x10], 0
cmp ecx, eax
jbe 0x40575f
add eax, 0x400
cmp eax, ecx
mov edx, eax
mov eax, 0x404
cmova edx, ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x1c], edx
sub ebx, ecx
mov dword [ebp - 0x18], ecx
cmp ebx, 0x404
cmova ebx, eax
cmp byte [edi], 0
je 0x4056c0
cmp byte [edi + 1], 0
je 0x40575f
mov eax, dword [edi + 0xc]
push 0
push 0
add eax, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4056c3
mov dword [edi + 0x18], ecx
cmp byte [edi], 0
mov ecx, ebx
mov dword [ebp - 0xc], ebx
je 0x4056eb
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4056e6
mov byte [edi + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x405714
mov edx, dword [edi + 0x18]
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x14]
jbe 0x4056fe
mov ecx, dword [edi + 0x14]
sub ecx, edx
mov dword [ebp - 0xc], ecx
push ecx
mov ecx, dword [edi + 0x10]
add ecx, edx
push ecx
push esi
call fcn.0040e330
mov eax, dword [ebp - 0xc]
add esp, 0xc
add dword [edi + 0x18], eax
xor edx, edx
div ebx
cmp eax, 1
jne 0x40575f
lea eax, [ebx - 3]
test eax, eax
jle 0x40574e
dec eax
cmp byte [eax + esi], 0x50
jne 0x405740
cmp byte [eax + esi + 1], 0x4b
jne 0x405740
cmp byte [eax + esi + 2], 5
jne 0x405740
cmp byte [eax + esi + 3], 6
je 0x405746
test eax, eax
jg 0x405724
jmp 0x40574e
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jne 0x40575f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
cmp eax, ecx
jb 0x405676
push esi
call fcn.004099e9
mov eax, dword [ebp - 0x10]
add esp, 4
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x406c10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x340
call fcn.0040a24e
mov edi, eax
add esp, 4
test edi, edi
je 0x406c42
mov dword [edi], 0
mov dword [edi + 4], 0xffffffff
mov dword [edi + 0x134], 0xffffffff
jmp 0x406c44
xor edi, edi
cmp dword [edi], 0
jne 0x406c9a
cmp dword [edi + 4], 0xffffffff
jne 0x406c9a
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4226fc
push 0x104
push esi
call fcn.00409a21
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
call fcn.004053c0
add esp, 8
test eax, eax
jne 0x406c8a
mov eax, dword [ebp - 4]
jmp 0x406c9f
mov ecx, eax
call fcn.00405780
mov dword [edi], eax
mov eax, dword [0x7aba00]
jmp 0x406c9f
mov eax, 0x1000000
mov dword [0x7ab9fc], eax
test eax, eax
je 0x406cb9
push edi
call fcn.00409943
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 8
call fcn.0040a24e
add esp, 4
mov dword [eax + 4], edi
pop edi
mov dword [eax], 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406e00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x406f4f
push ebx
mov bl, byte [ebp + 0xa]
push esi
push edi
xor edi, edi
xor esi, esi
jmp 0x406e20
mov dl, byte [esi + str.aWtsaXQ]
cmp dl, 0x2b
jne 0x406e2f
mov dl, 0x3e
jmp 0x406e5d
cmp dl, 0x2f
jne 0x406e38
mov dl, 0x3f
jmp 0x406e5d
cmp dl, 0x39
jg 0x406e42
add dl, 4
jmp 0x406e5d
cmp dl, 0x3d
je 0x406e5b
cmp dl, 0x5a
jg 0x406e51
sub dl, 0x41
jmp 0x406e5d
cmp dl, 0x7a
jg 0x406e5b
sub dl, 0x47
jmp 0x406e5d
mov dl, 0x40
mov cl, byte [esi + 0x4228b1]
cmp cl, 0x2b
jne 0x406e6c
mov cl, 0x3e
jmp 0x406e9a
cmp cl, 0x2f
jne 0x406e75
mov cl, 0x3f
jmp 0x406e9a
cmp cl, 0x39
jg 0x406e7f
add cl, 4
jmp 0x406e9a
cmp cl, 0x3d
je 0x406e98
cmp cl, 0x5a
jg 0x406e8e
sub cl, 0x41
jmp 0x406e9a
cmp cl, 0x7a
jg 0x406e98
sub cl, 0x47
jmp 0x406e9a
mov cl, 0x40
mov al, cl
shl dl, 2
shr al, 4
add al, dl
mov edx, dword [ebp + 8]
mov byte [edi + edx], al
inc edi
mov al, byte [esi + 0x4228b2]
cmp al, 0x3d
je 0x406ef7
mov bl, al
cmp bl, 0x2b
jne 0x406ec0
mov bl, 0x3e
jmp 0x406ee9
cmp bl, 0x2f
jne 0x406ec9
mov bl, 0x3f
jmp 0x406ee9
cmp bl, 0x39
jg 0x406ed3
add bl, 4
jmp 0x406ee9
cmp bl, 0x5a
jg 0x406edd
sub bl, 0x41
jmp 0x406ee9
cmp bl, 0x7a
jg 0x406ee7
sub bl, 0x47
jmp 0x406ee9
mov bl, 0x40
mov al, bl
shl cl, 4
shr al, 2
add al, cl
mov byte [edi + edx], al
inc edi
mov al, byte [esi + 0x4228b3]
cmp al, 0x3d
je 0x406f36
cmp al, 0x2b
jne 0x406f09
mov al, 0x3e
jmp 0x406f2b
cmp al, 0x2f
jne 0x406f11
mov al, 0x3f
jmp 0x406f2b
cmp al, 0x39
jg 0x406f19
add al, 4
jmp 0x406f2b
cmp al, 0x5a
jg 0x406f21
sub al, 0x41
jmp 0x406f2b
cmp al, 0x7a
jg 0x406f29
sub al, 0x47
jmp 0x406f2b
mov al, 0x40
mov cl, bl
shl cl, 6
add cl, al
mov byte [edi + edx], cl
inc edi
add esi, 4
cmp esi, 8
jb 0x406e20
mov byte [edi + edx], 0
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x406f60
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x407077
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x407077
mov ebx, dword [ebp + 0x10]
cmp ebx, 1
jb 0x407077
push esi
xor eax, eax
xor esi, esi
mov dword [ebp + 8], eax
test ebx, ebx
je 0x40706c
mov dl, byte [esi + ecx]
inc esi
mov cl, dl
and dl, 3
shr cl, 2
movzx ecx, cl
shl dl, 4
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi], cl
cmp esi, ebx
jae 0x407055
mov ecx, dword [ebp + 0xc]
mov bl, byte [esi + ecx]
inc esi
mov cl, bl
and bl, 0xf
shr cl, 4
add dl, cl
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 1], cl
cmp esi, dword [ebp + 0x10]
jae 0x407032
mov ecx, dword [ebp + 0xc]
shl bl, 2
mov dl, byte [esi + ecx]
inc esi
mov cl, dl
and dl, 0x3f
shr cl, 6
add bl, cl
movzx ecx, bl
mov ebx, dword [ebp + 0x10]
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 2], cl
movzx ecx, dl
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 3], cl
add eax, 4
mov ecx, dword [ebp + 8]
add ecx, 3
mov dword [ebp + 8], ecx
cmp ecx, ebx
mov ecx, dword [ebp + 0xc]
jb 0x406f97
pop esi
mov byte [eax + edi], 0
pop edi
pop ebx
pop ebp
ret 0xc
shl bl, 2
movzx ecx, bl
pop esi
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 2], cl
mov byte [eax + edi + 3], 0x3d
add eax, 4
mov byte [eax + edi], 0
pop edi
pop ebx
pop ebp
ret 0xc
movzx ecx, dl
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + edi + 1], cl
mov word [eax + edi + 2], 0x3d3d
add eax, 4
pop esi
mov byte [eax + edi], 0
pop edi
pop ebx
pop ebp
ret 0xc
pop edi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x4078a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x10b8
call fcn.0040a24e
mov edi, eax
add esp, 4
test edi, edi
je 0x4079bd
push str.http:__tj.wudiyou.com:8800_
push 0x824
push edi
call fcn.00409a8d
add esp, 0xc
lea eax, [edi + 0x104c]
push str.7k7k_REPORT
push 0x32
push eax
call fcn.00409a8d
add esp, 0xc
mov dword [edi + 0x10b0], 0x1b
call fcn.004079d0
push 1
mov dword [edi + 0x10b4], eax
call fcn.0040a24e
add esp, 4
mov dword [0x7aba04], eax
mov ecx, edi
call fcn.00407e50
push 0x7ab5e8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x4079bd
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040be50
add esp, 0xc
lea eax, [ebp - 0x210]
push dword [edi + 0x1048]
push 0x424784
push eax
call fcn.004086e0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x7ab5e8
push eax
push str.Service_Value
push str.config
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push dword [edi + 0x10b4]
lea eax, [ebp - 0x210]
push 0x424784
push eax
call fcn.004086e0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x7ab5e8
push eax
push str.InstallID
push str.config
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00409948
mov esp, ebp
pop ebp
ret

Function at 0x407bc0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2888
call fcn.00415880
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x407c9d
lea eax, [ebp - 0x2888]
mov dword [ebp - 0x2888], 0x2880
push eax
lea eax, [ebp - 0x2884]
push eax
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x407c9d
lea eax, [ebp - 0x2884]
nop
cmp byte [eax + 0x194], 0
jne 0x407c5d
cmp byte [eax + 0x195], 0
jne 0x407c5d
cmp byte [eax + 0x196], 0
jne 0x407c5d
cmp byte [eax + 0x197], 0
jne 0x407c5d
cmp byte [eax + 0x198], 0
jne 0x407c5d
cmp byte [eax + 0x199], 0
jne 0x407c5d
mov eax, dword [eax]
test eax, eax
jne 0x407c10
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409948
mov esp, ebp
pop ebp
ret 4
movzx ecx, byte [eax + 0x199]
push ecx
movzx ecx, byte [eax + 0x198]
push ecx
movzx ecx, byte [eax + 0x197]
push ecx
movzx ecx, byte [eax + 0x196]
push ecx
movzx ecx, byte [eax + 0x195]
movzx eax, byte [eax + 0x194]
push ecx
push eax
push str._02X__02X__02X__02X__02X__02X
push 0x32
push esi
call fcn.0040b1c1
add esp, 0x24
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00409948
mov esp, ebp
pop ebp
ret 4
Function at 0x407d80
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
test ebx, ebx
jne 0x407d8b
xor eax, eax
pop ebx
ret
push esi
push edi
mov edi, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x407d92
sub edi, ecx
inc edi
push edi
call fcn.00409957
push edi
mov esi, eax
push 0
push esi
call fcn.0040be50
push ebx
push edi
push esi
call fcn.0040aa04
xor eax, eax
add esp, 0x1c
cmp byte [esi], al
je 0x407dca
mov edi, edi
xor byte [esi], 0x20
inc eax
inc esi
cmp byte [esi], 0
jne 0x407dc0
sub esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x408e60
Capabilities:
Hash data with md5

Disassembly:
push esi
push 0x40
mov esi, ecx
mov dword [0x7aba34], 1
mov byte [0x7aba08], 0
call fcn.00409957
add esp, 4
mov dword [0x7aba2c], eax
test eax, eax
je 0x408ebc
mov ecx, esi
mov dword [0x7aba30], eax
mov dword [0x7aba40], 0x67452301
mov dword [0x7aba44], 0xefcdab89
mov dword [0x7aba48], 0x98badcfe
mov dword [0x7aba4c], 0x10325476
pop esi
jmp fcn.00409710
pop esi
ret
Function at 0x414102
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040fa0b
mov dword [ebp - 0x14], eax
cmp dword [0x7ab364], esi
jne 0x4141f5
push 0x800
push esi
push 0x41e7d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x414182
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4142d5
push esi
push esi
push 0x41e7d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4142d5
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4142d5
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x7ab364], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x7ab368], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x7ab36c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7ab374], eax
test eax, eax
je 0x4141f2
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x7ab370], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41421a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41420d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41422f
push 4
pop eax
jmp 0x4142d7
cmp dword [ebp - 0x14], esi
je 0x41422f
push dword [0x7ab364]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x414214
mov eax, dword [0x7ab370]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41428d
cmp dword [0x7ab374], edi
je 0x41428d
push eax
call ebx
push dword [0x7ab374]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41428d
test eax, eax
je 0x41428d
call ecx
test eax, eax
je 0x414282
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x414282
test byte [ebp - 8], 1
jne 0x41428d
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4142bd
mov eax, dword [0x7ab368]
cmp eax, edi
je 0x4142ba
push eax
call ebx
test eax, eax
je 0x4142ba
call eax
mov esi, eax
test esi, esi
je 0x4142ba
mov eax, dword [0x7ab36c]
cmp eax, edi
je 0x4142ba
push eax
call ebx
test eax, eax
je 0x4142ba
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x7ab364]
call ebx
test eax, eax
je 0x4142d5
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4142d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409948
mov esp, ebp
pop ebp
ret