joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a7d70
Capabilities:
Access peb ldr_data
Check if file exists
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x601068
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x672494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
movzx edx, word [eax + 0x2c]
xor edi, edi
mov esi, dword [eax + 0x30]
and edx, 0xfffffffe
mov dword [ebp - 0x10], eax
mov ebx, 0x811c9dc5
lea ecx, [edx + esi]
inc edx
shr edx, 1
cmp esi, ecx
cmova edx, edi
mov dword [ebp - 0x14], edx
test edx, edx
je 0x4a7e0c
mov eax, edx
mov dl, byte [esi]
lea ecx, [edx - 0x41]
cmp cl, 0x19
movsx ecx, dl
ja 0x4a7df1
or ecx, 0x20
xor ecx, ebx
inc edi
imul ebx, ecx, 0x1000193
add esi, 2
cmp edi, eax
jne 0x4a7de1
mov eax, dword [ebp - 0x10]
cmp ebx, 0xa3e6f6c3
je 0x4a7e10
mov eax, dword [eax]
jmp 0x4a7db9
mov esi, dword [eax + 0x18]
mov eax, dword [0x67f844]
mov dword [ebp - 0x10], esi
test eax, eax
jne 0x4a7ebb
test esi, esi
je 0x4a7eb4
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x78]
mov eax, dword [eax + esi + 0x7c]
add ecx, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x18], ecx
cmp ecx, esi
je 0x4a7eb4
mov eax, dword [ecx + 0x18]
xor ebx, ebx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4a7eb4
mov edi, dword [ecx + 0x20]
add edi, esi
mov edx, dword [edi]
add edx, esi
mov esi, 0x811c9dc5
mov cl, byte [edx]
inc edx
test cl, cl
je 0x4a7e8a
lea eax, [ecx - 0x41]
cmp al, 0x19
movsx eax, cl
ja 0x4a7e70
or eax, 0x20
mov cl, byte [edx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
test cl, cl
jne 0x4a7e63
cmp esi, 0x2a8ff425
je 0x4a7e97
mov eax, dword [ebp - 0x14]
inc ebx
add edi, 4
cmp ebx, eax
je 0x4a7eb4
mov esi, dword [ebp - 0x10]
jmp 0x4a7e53
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [esi + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x4a7eb6
xor eax, eax
mov dword [0x67f844], eax
push dword [ebp - 0x20]
call eax
mov esi, eax
cmp esi, 0xffffffff
je 0x4a7ed1
shr esi, 4
not esi
and esi, 1
jmp 0x4a7f03
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x4a7f01
cmp eax, 3
je 0x4a7f01
cmp eax, 0x7b
je 0x4a7f01
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
call fcn.004a7a10
test eax, eax
je 0x4a7f01
mov esi, 1
jmp 0x4a7f03
xor esi, esi
lea ecx, [ebp + 8]
call fcn.0040f8c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a8080
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebx + 4], 0x80000001
je 0x4a81c7
cmp byte [ebx + 0x24], 0
je 0x4a81b9
mov eax, dword fs:[0x30]
push esi
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
movzx edx, word [eax + 0x2c]
xor esi, esi
mov edi, dword [eax + 0x30]
xor ebx, ebx
shr edx, 1
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x811c9dc5
lea ecx, [edi + edx*2]
cmp edi, ecx
cmova edx, esi
mov dword [ebp - 0x10], edx
test edx, edx
je 0x4a8112
mov eax, edx
nop dword [eax]
mov dl, byte [edi]
lea edi, [edi + 2]
movsx esi, dl
sub dl, 0x41
mov ecx, esi
or ecx, 0x20
cmp dl, 0x19
cmova ecx, esi
inc ebx
xor ecx, dword [ebp - 4]
imul ecx, ecx, 0x1000193
mov dword [ebp - 4], ecx
cmp ebx, eax
jne 0x4a80e0
mov eax, dword [ebp - 8]
cmp ecx, 0x39794115
je 0x4a8116
mov eax, dword [eax]
jmp 0x4a80b1
mov edx, dword [eax + 0x18]
mov eax, dword [0x67f3a8]
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x4a81ab
test edx, edx
je 0x4a81a4
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax + edx + 0x78]
mov eax, dword [eax + edx + 0x7c]
mov dword [ebp - 8], eax
lea eax, [ecx + edx]
mov dword [ebp - 8], eax
cmp eax, edx
je 0x4a81a4
xor ecx, ecx
mov dword [ebp - 4], ecx
cmp dword [eax + 0x18], ecx
je 0x4a81a4
mov edi, dword [eax + 0x20]
add edi, edx
mov eax, dword [edi]
mov esi, 0x811c9dc5
add eax, edx
mov bl, byte [eax]
inc eax
test bl, bl
je 0x4a8195
movsx edx, bl
lea eax, [eax + 1]
sub bl, 0x41
mov ecx, edx
or ecx, 0x20
cmp bl, 0x19
mov bl, byte [eax - 1]
cmova ecx, edx
xor ecx, esi
imul esi, ecx, 0x1000193
test bl, bl
jne 0x4a8164
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
cmp esi, 0x6b36a56a
je 0x4a81ce
mov eax, dword [ebp - 8]
inc ecx
add edi, 4
mov dword [ebp - 4], ecx
cmp ecx, dword [eax + 0x18]
jne 0x4a8154
xor eax, eax
mov dword [0x67f3a8], eax
mov ebx, dword [ebp - 0x14]
push dword [ebx + 4]
call eax
pop edi
mov byte [ebx + 0x24], 0
pop esi
mov ecx, ebx
mov dword [ebx + 4], SysReAllocStringLen
call fcn.004a81f0
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 8]
mov eax, dword [ebx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x4a81a6
Function at 0x4a84b0
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6010de
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x672494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x13c], ebx
xor eax, eax
mov dword [ebx], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 7
mov word [ebx + 0xc], ax
mov dword [ebp - 4], eax
push ecx
mov byte [ebx + 0x24], al
mov dword [ebx + 0x2c], eax
call fcn.004a8080
cmp byte [0x67f4f8], 0
mov dword [ebx + 0x28], 0xf003f
mov byte [ebx + 8], 1
jne 0x4a86a9
mov eax, dword fs:[0x30]
mov dword [ebp - 0x124], 0x114
mov byte [0x67f4f8], 1
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
movzx edx, word [eax + 0x2c]
xor edi, edi
mov esi, dword [eax + 0x30]
and edx, 0xfffffffe
mov dword [ebp - 0x128], eax
mov ebx, 0x811c9dc5
lea ecx, [edx + esi]
inc edx
shr edx, 1
cmp esi, ecx
cmova edx, edi
mov dword [ebp - 0x12c], edx
test edx, edx
je 0x4a85ae
mov eax, edx
nop
mov dl, byte [esi]
lea ecx, [edx - 0x41]
cmp cl, 0x19
movsx ecx, dl
ja 0x4a8590
or ecx, 0x20
xor ecx, ebx
inc edi
imul ebx, ecx, 0x1000193
add esi, 2
cmp edi, eax
jne 0x4a8580
mov eax, dword [ebp - 0x128]
cmp ebx, 0xa3e6f6c3
je 0x4a85b2
mov eax, dword [eax]
jmp 0x4a8550
mov esi, dword [eax + 0x18]
mov eax, dword [0x67f84c]
mov dword [ebp - 0x128], esi
test eax, eax
jne 0x4a8698
test esi, esi
je 0x4a8691
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x78]
mov eax, dword [eax + esi + 0x7c]
add ecx, esi
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x130], ecx
cmp ecx, esi
je 0x4a8691
mov eax, dword [ecx + 0x18]
xor ebx, ebx
mov dword [ebp - 0x12c], eax
test eax, eax
je 0x4a8691
mov edi, dword [ecx + 0x20]
add edi, esi
nop dword [eax]
mov edx, dword [edi]
add edx, esi
mov esi, 0x811c9dc5
mov cl, byte [edx]
inc edx
test cl, cl
je 0x4a864a
lea eax, [ecx - 0x41]
cmp al, 0x19
movsx eax, cl
ja 0x4a862d
or eax, 0x20
mov cl, byte [edx]
xor eax, esi
imul esi, eax, 0x1000193
inc edx
test cl, cl
jne 0x4a8620
cmp esi, 0x7cebab29
je 0x4a865a
mov eax, dword [ebp - 0x12c]
inc ebx
add edi, 4
cmp ebx, eax
je 0x4a8691
mov esi, dword [ebp - 0x128]
jmp 0x4a8610
mov esi, dword [ebp - 0x130]
mov edx, dword [ebp - 0x128]
mov eax, dword [esi + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
lea ecx, [ebp - 0x124]
add eax, edx
push ecx
mov dword [0x67f84c], eax
call eax
mov eax, dword [ebp - 0x138]
jmp 0x4a86ab
xor eax, eax
mov dword [0x67f84c], eax
lea ecx, [ebp - 0x124]
push ecx
call eax
mov eax, dword [ebp - 0x138]
jmp 0x4a86ab
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d0a85
mov esp, ebp
pop ebp
ret
Function at 0x4a86d0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x672494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
movzx eax, byte [ebp + 0x10]
shl eax, 9
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
movzx edx, word [eax + 0x2c]
xor esi, esi
mov edi, dword [eax + 0x30]
xor ebx, ebx
shr edx, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0x811c9dc5
lea ecx, [edi + edx*2]
cmp edi, ecx
cmova edx, esi
mov dword [ebp - 0x10], edx
test edx, edx
je 0x4a8762
mov eax, edx
nop
mov dl, byte [edi]
lea edi, [edi + 2]
movsx esi, dl
sub dl, 0x41
mov ecx, esi
or ecx, 0x20
cmp dl, 0x19
cmova ecx, esi
inc ebx
xor ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x1000193
mov dword [ebp - 0xc], ecx
cmp ebx, eax
jne 0x4a8730
mov eax, dword [ebp - 0x14]
cmp ecx, 0x39794115
je 0x4a8766
mov eax, dword [eax]
jmp 0x4a8706
mov edx, dword [eax + 0x18]
mov eax, dword [0x67f388]
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x4a87fb
test edx, edx
je 0x4a87f4
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax + edx + 0x78]
mov eax, dword [eax + edx + 0x7c]
mov dword [ebp - 0x14], eax
lea eax, [ecx + edx]
mov dword [ebp - 0x14], eax
cmp eax, edx
je 0x4a87f4
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [eax + 0x18], ecx
je 0x4a87f4
mov edi, dword [eax + 0x20]
add edi, edx
mov eax, dword [edi]
mov esi, 0x811c9dc5
add eax, edx
mov bl, byte [eax]
inc eax
test bl, bl
je 0x4a87e5
movsx edx, bl
lea eax, [eax + 1]
sub bl, 0x41
mov ecx, edx
or ecx, 0x20
cmp bl, 0x19
mov bl, byte [eax - 1]
cmova ecx, edx
xor ecx, esi
imul esi, ecx, 0x1000193
test bl, bl
jne 0x4a87b4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp esi, 0xf0a608a6
je 0x4a8824
mov eax, dword [ebp - 0x14]
inc ecx
add edi, 4
mov dword [ebp - 0xc], ecx
cmp ecx, dword [eax + 0x18]
jne 0x4a87a4
xor eax, eax
mov dword [0x67f388], eax
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x1c]
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call eax
mov ecx, dword [ebp - 4]
test eax, eax
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.004d0a85
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x4a87f6
Function at 0x4a8890
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x672494]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 8], 0
push ebx
push esi
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], 0
mov eax, dword [eax + 0xc]
push edi
movzx edx, word [eax + 0x2c]
xor esi, esi
mov edi, dword [eax + 0x30]
xor ebx, ebx
shr edx, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0x811c9dc5
lea ecx, [edi + edx*2]
cmp edi, ecx
cmova edx, esi
mov dword [ebp - 0x10], edx
test edx, edx
je 0x4a8922
mov eax, edx
nop dword [eax + eax]
mov dl, byte [edi]
lea edi, [edi + 2]
movsx esi, dl
sub dl, 0x41
mov ecx, esi
or ecx, 0x20
cmp dl, 0x19
cmova ecx, esi
inc ebx
xor ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x1000193
mov dword [ebp - 0xc], ecx
cmp ebx, eax
jne 0x4a88f0
mov eax, dword [ebp - 0x14]
cmp ecx, 0xa3e6f6c3
je 0x4a8926
mov eax, dword [eax]
jmp 0x4a88c3
mov edx, dword [eax + 0x18]
mov eax, dword [0x67f3f8]
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x4a89bb
test edx, edx
je 0x4a89b4
mov eax, dword [edx + 0x3c]
mov ecx, dword [eax + edx + 0x78]
mov eax, dword [eax + edx + 0x7c]
mov dword [ebp - 0x14], eax
lea eax, [ecx + edx]
mov dword [ebp - 0x14], eax
cmp eax, edx
je 0x4a89b4
xor ecx, ecx
mov dword [ebp - 0xc], ecx
cmp dword [eax + 0x18], ecx
je 0x4a89b4
mov edi, dword [eax + 0x20]
add edi, edx
mov eax, dword [edi]
mov esi, 0x811c9dc5
add eax, edx
mov bl, byte [eax]
inc eax
test bl, bl
je 0x4a89a5
movsx edx, bl
lea eax, [eax + 1]
sub bl, 0x41
mov ecx, edx
or ecx, 0x20
cmp bl, 0x19
mov bl, byte [eax - 1]
cmova ecx, edx
xor ecx, esi
imul esi, ecx, 0x1000193
test bl, bl
jne 0x4a8974
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
cmp esi, 0x3bbc54d9
je 0x4a8a06
mov eax, dword [ebp - 0x14]
inc ecx
add edi, 4
mov dword [ebp - 0xc], ecx
cmp ecx, dword [eax + 0x18]
jne 0x4a8964
xor eax, eax
mov dword [0x67f3f8], eax
push str.ntdll.dll
call eax
mov esi, eax
test esi, esi
je 0x4a8a20
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4a89eb
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call eax
mov dword [ebp - 0x1c], 1
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0a85
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + edx]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
jmp 0x4a89b6
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0a85
mov esp, ebp
pop ebp
ret
Function at 0x4b73cb
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
test edx, edx
je 0x4b74f6
mov eax, edx
xor edx, edx
push 3
pop ecx
div ecx
xor ecx, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
mov dword [ebp - 8], ebx
setne cl
add ecx, eax
lea ecx, [ecx*4 + 1]
push ecx
call fcn.005757ed
mov edx, eax
mov dword [ebp - 0xc], edx
pop ecx
test edx, edx
je 0x4b74f6
cmp dword [ebp - 4], 0
push esi
mov esi, edx
jbe 0x4b747f
mov ebx, dword [ebp - 4]
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
movzx edx, byte [edi + 2]
add edi, 3
shl eax, 8
shl ecx, 0x10
or ecx, eax
or edx, ecx
mov eax, edx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_string_too_long]
mov byte [esi], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_string_too_long]
mov byte [esi + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_string_too_long]
mov byte [esi + 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_string_too_long]
mov byte [esi + 3], al
add esi, 4
sub ebx, 1
jne 0x4b741e
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
cmp ebx, 1
jne 0x4b74ab
movzx ecx, byte [edi]
mov eax, ecx
and ecx, 3
shr eax, 2
shl ecx, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_string_too_long]
mov byte [esi], al
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_string_too_long]
mov byte [esi + 1], al
mov word [esi + 2], 0x3d3d
jmp 0x4b74eb
cmp ebx, 2
jne 0x4b74ee
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0xa
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_string_too_long]
mov byte [esi], al
mov eax, ecx
shr eax, 4
and eax, 0x3f
and ecx, 0xf
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_string_too_long]
mov byte [esi + 1], al
mov al, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_string_too_long]
mov byte [esi + 2], al
mov byte [esi + 3], 0x3d
add esi, 4
mov byte [esi], 0
mov eax, edx
pop esi
jmp 0x4b74f8
xor eax, eax
pop edi
pop ebx
leave
ret
Function at 0x4b768a
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push pe_nt_image_headers32
mov eax, 0x602af2
call fcn.004d1a03
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 0x14]
or edi, 0xffffffff
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], 0xf
mov byte [ebp - 0x130], bl
push 0x104
push ebx
push 0x105
mov dword [ebp - 4], ebx
push eax
mov dword [esi], ebx
call fcn.005882c8
push 0x105
lea eax, [ebp - 0x118]
push ebx
push eax
call fcn.0056c1d0
add esp, 0x1c
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push 0x801a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x4b770f
mov dword [esi], 3
jmp 0x4b78c9
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x130]
call fcn.0040ecb0
push str.Tencent
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x148]
call fcn.0048d470
pop ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0040d2d0
lea ecx, [ebp - 0x148]
call fcn.0040b640
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
push ebx
cmovae eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4b7789
call ebx
cmp eax, 0xb7
je 0x4b7789
call ebx
cmp eax, 5
jne 0x4b7704
push str._beacon
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x148]
call fcn.0048d470
pop ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0040d2d0
lea ecx, [ebp - 0x148]
call fcn.0040b640
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
push 0
cmovae eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x4b77ec
call ebx
cmp eax, 0xb7
je 0x4b77ec
call ebx
cmp eax, 5
jne 0x4b7704
push str.GlobalMgr.db
lea edx, [ebp - 0x130]
lea ecx, [ebp - 0x148]
call fcn.0048d470
pop ecx
push eax
lea ecx, [ebp - 0x130]
call fcn.0040d2d0
lea ecx, [ebp - 0x148]
call fcn.0040b640
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
push 0
cmovae eax, dword [ebp - 0x130]
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b7856
mov dword [esi], 0x50
jmp 0x4b7897
call ebx
cmp eax, 2
jne 0x4b7891
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
push 0
cmovae eax, dword [ebp - 0x130]
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4b789c
mov dword [esi], 0x65f
cmp edi, 0xffffffff
je 0x4b78c9
cmp dword [ebp - 0x11c], 0x10
lea eax, [ebp - 0x130]
push 0x104
cmovae eax, dword [ebp - 0x130]
push eax
push 0x105
push dword [ebp - 0x14c]
call fcn.005882bd
add esp, 0x10
lea ecx, [ebp - 0x130]
call fcn.0040b640
mov eax, edi
call fcn.004d19ad
ret 0x10
Function at 0x4b8516
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push 0x38
mov eax, 0x602d0b
call fcn.004d1a03
xor dl, dl
lea ecx, [ebp - 0x40]
xor ebx, ebx
call fcn.004b8747
push ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ebx
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
push 3
push ebx
inc ecx
push ecx
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b85e3
xor eax, eax
lea ecx, [ebp - 0x28]
lea edx, [eax + 1]
call fcn.004b8747
lea ecx, [ebp - 0x40]
call fcn.004b8b8b
test al, al
jne 0x4b85b6
lea ecx, [ebp - 0x28]
call fcn.004b8b8b
test al, al
je 0x4b85b6
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push ebx
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
je 0x4b85b6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0040f8c0
cmp esi, 0xffffffff
je 0x4b861e
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
cmp eax, 0x10
jb 0x4b8617
push ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
push eax
push 0x10
push 0x680004
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4b8617
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.0040f8c0
mov al, bl
call fcn.004d19ad
ret 4

Function at 0x4b8630
Capabilities:
Write file on windows

Disassembly:
push 0x38
mov eax, 0x602d0b
call fcn.004d1a03
xor dl, dl
lea ecx, [ebp - 0x40]
xor ebx, ebx
call fcn.004b8747
push ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ebx
cmovae eax, dword [ebp - 0x40]
xor ecx, ecx
push 2
push ebx
inc ecx
push ecx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b86ac
xor eax, eax
lea ecx, [ebp - 0x28]
lea edx, [eax + 1]
call fcn.004b8747
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push ebx
cmovae eax, dword [ebp - 0x28]
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0040f8c0
cmp esi, 0xffffffff
je 0x4b86d7
push ebx
lea eax, [ebp - 0x44]
push eax
push 0x10
push 0x680004
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4b86d0
cmp dword [ebp - 0x44], 0x10
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x40]
call fcn.0040f8c0
mov al, bl
call fcn.004d19ad
ret 4
Function at 0x4b8747
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x230
mov eax, 0x602d5d
call fcn.004d1a03
mov bl, dl
mov esi, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], esi
xor ecx, ecx
mov dword [ebp - 0x234], ecx
xor eax, eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
xor edi, edi
mov dword [ebp - 4], ecx
push ecx
lea eax, [ebp - 0x218]
inc edi
push eax
mov dword [ebp - 0x234], edi
call fcn.0056c1d0
add esp, 0xc
test bl, bl
push edi
push 0x23
pop eax
push 0x1a
pop ecx
cmovne eax, ecx
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4b8814
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00417ec0
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.00422fb0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0
call fcn.0040f8c0
push str.Tencent_beacon
mov ecx, esi
call fcn.004275b0
mov ecx, esi
call fcn.004b881c
test al, al
jne 0x4b8808
mov ecx, esi
call fcn.004b88ca
push str.Global.db
mov ecx, esi
call fcn.004275b0
mov eax, esi
call fcn.004d19ad
ret