joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ef268
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x4ef287
add edx, 3
sar edx, 2
test edx, edx
jle 0x4ef395
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x4ef2bc
je 0x4ef2ff
sub ecx, 0x2b
je 0x4ef2f5
sub ecx, 4
je 0x4ef2fa
dec ecx
sub ecx, 0xa
jb 0x4ef2e7
jmp 0x4ef302
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4ef2ce
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4ef2d9
jmp 0x4ef302
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4ef302
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4ef302
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4ef302
mov byte [eax], 0x3e
jmp 0x4ef302
mov byte [eax], 0x3f
jmp 0x4ef302
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4ef29f
movzx eax, byte [esp + 4]
add eax, eax
add eax, eax
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x4ef353
cmp byte [esp + 7], 0xff
jne 0x4ef353
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x4ef38a
cmp dl, 0xff
je 0x4ef38a
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x4ef296
add esp, 0x10
pop ebp
pop edi
pop esi
ret
Function at 0x4f1484
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp byte [ebx + 0x30], 0
jne 0x4f14ae
mov ecx, 0x4f1510
mov dl, 1
mov eax, dword [0x4f0b44]
call fcn.0040de2c
call fcn.00404690
mov dword [ebp - 8], edx
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 8]
test eax, eax
jle 0x4f14fd
mov dword [ebp - 0xc], eax
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3c]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x60]
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
mov edx, dword [ebx + 0x40]
xor al, byte [edx]
mov byte [esi], al
mov ecx, dword [ebx + 0x44]
dec ecx
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x3c]
inc eax
call fcn.00403140
mov eax, dword [ebx + 0x3c]
add eax, dword [ebx + 0x44]
dec eax
movzx edx, byte [esi]
mov byte [eax], dl
inc dword [ebp - 8]
inc esi
dec dword [ebp - 0xc]
jne 0x4f14be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4f1528
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp byte [ebx + 0x30], 0
jne 0x4f1552
mov ecx, 0x4f15bc
mov dl, 1
mov eax, dword [0x4f0b44]
call fcn.0040de2c
call fcn.00404690
mov esi, edx
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
test eax, eax
jle 0x4f15aa
mov dword [ebp - 0x10], eax
movzx eax, byte [esi]
mov byte [ebp - 9], al
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x3c]
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x60]
mov eax, dword [ebx + 0x40]
movzx eax, byte [eax]
xor al, byte [esi]
mov edx, dword [ebp - 8]
mov byte [edx], al
mov ecx, dword [ebx + 0x44]
dec ecx
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x3c]
inc eax
call fcn.00403140
mov eax, dword [ebx + 0x3c]
add eax, dword [ebx + 0x44]
dec eax
movzx edx, byte [ebp - 9]
mov byte [eax], dl
inc esi
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x4f1564
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4f1b78
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4f1bfa
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x4f0e68]
mov eax, 0x14
call fcn.00405f34
mov edi, eax
mov dword [edi + 0xc], esi
lea edx, [ebp - 8]
mov eax, esi
call dword [eax + 0x34]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00409524
mov edx, dword [ebp - 4]
lea eax, [edi + 4]
call fcn.00404db0
mov eax, esi
call dword [eax + 0x30]
mov dword [edi + 8], eax
mov eax, dword [0x515040]
mov dword [edi], eax
mov byte [edi + 0x10], bl
mov dword [0x515040], edi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1c01
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d80
ret
Function at 0x4f1c08
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4f1c84
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x4f0e90]
mov eax, 0x10
call fcn.00405f34
mov ebx, eax
mov dword [ebx + 0xc], esi
lea edx, [ebp - 8]
mov eax, esi
call dword [eax + 0x34]
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.00409524
mov edx, dword [ebp - 4]
lea eax, [ebx + 4]
call fcn.00404db0
mov eax, esi
call dword [eax + 0x30]
mov dword [ebx + 8], eax
mov eax, dword [0x515044]
mov dword [ebx], eax
mov dword [0x515044], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1c8b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d80
ret

Function at 0x4f1ce0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jle 0x4f1d01
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
movzx ebx, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x4f1cee
pop edi
pop esi
pop ebx
ret
Function at 0x4f5264
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov word [esp + 8], cx
mov dword [esp + 4], edx
mov dword [esp], eax
mov byte [esp + 0xb], 0
xor esi, esi
xor ebp, ebp
xor edi, edi
cmp bp, word [esp + 8]
jae 0x4f5330
movzx eax, bp
mov edx, dword [esp]
movzx ecx, byte [edx + eax]
xor cl, 0xeb
inc ebp
cmp si, 2
jae 0x4f52dd
mov ebx, ecx
movzx eax, bl
shr eax, 2
mov ebx, eax
mov byte [esp + 0xa], bl
and bl, 0x3c
and cl, 3
or bl, cl
add bl, 0x3b
movzx eax, di
mov edx, dword [esp + 4]
mov byte [edx + eax], bl
inc edi
movzx eax, byte [esp + 0xa]
and al, 3
movzx edx, byte [esp + 0xb]
add edx, edx
add edx, edx
or al, dl
mov byte [esp + 0xb], al
jmp 0x4f5316
mov ebx, ecx
and bl, 0x3f
add bl, 0x3b
movzx eax, di
mov edx, dword [esp + 4]
lea eax, [edx + eax]
push eax
pop eax
mov byte [eax], bl
inc edi
movzx eax, cl
shr eax, 2
mov ecx, eax
and cl, 0x30
or cl, byte [esp + 0xb]
add cl, 0x3b
movzx eax, di
mov edx, dword [esp + 4]
mov byte [edx + eax], cl
inc edi
mov byte [esp + 0xb], 0
inc esi
movzx eax, si
mov ecx, 3
xor edx, edx
div ecx
mov esi, edx
cmp bp, word [esp + 8]
jb 0x4f528d
movzx eax, di
mov edx, dword [esp + 4]
mov byte [edx + eax], 0
test si, si
je 0x4f535b
mov edx, dword [esp + 4]
movzx ecx, byte [esp + 0xb]
add ecx, 0x3b
mov byte [edx + eax], cl
inc edi
movzx eax, di
mov edx, dword [esp + 4]
mov byte [edx + eax], 0
mov eax, edi
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4f678c
Capabilities:
Check for time delay via gettickcount
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4f694d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
cmp dword [eax + 8], 0
je 0x4f692a
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 8]
sub eax, dword [edx + 0x30]
cmp eax, 0x1f4
jbe 0x4f692a
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 8]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 8]
call fcn.004f6bc8
xor edx, edx
push ebp
push 0x4f6923
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4f6903
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
mov ebx, dword [eax + 8]
dec ebx
cmp ebx, 0
jl 0x4f68f9
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
mov edx, ebx
call fcn.0041b180
mov esi, eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi + 0x100]
add edx, 0x3e8
cmp eax, edx
jb 0x4f68ef
lea eax, [ebp - 4]
mov edx, esi
call fcn.00404fc0
mov eax, dword [ebp - 4]
call fcn.0040a214
test al, al
je 0x4f68e5
mov eax, dword [ebp - 4]
call fcn.004051ec
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4f6875
cmp dword [esi + 0x104], 5
jl 0x4f68d2
test al, al
jne 0x4f68b7
lea edx, [ebp - 0x10]
mov eax, 3
call fcn.004bbbf8
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00405074
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
call fcn.004051ec
push eax
mov eax, dword [ebp - 4]
call fcn.004051ec
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
mov edx, ebx
call fcn.0041b024
mov edx, 0x108
mov eax, esi
call fcn.00402f6c
jmp 0x4f68ef
inc dword [esi + 0x104]
call sub.kernel32.dll_GetTickCount_1
mov dword [esi + 0x100], eax
jmp 0x4f68ef
mov dword [esi + 0x104], 6
dec ebx
cmp ebx, 0xffffffff
jne 0x4f6812
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f690d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f692a
mov eax, dword [ebp - 8]
call fcn.004f6bd4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6954
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404d80
lea eax, [ebp - 4]
call fcn.00404d5c
ret
Function at 0x4f6ae4
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x2c]
cmp eax, 0x3e8
jbe 0x4f6bc2
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
cmp dword [eax + 8], 0
jle 0x4f6b65
mov eax, dword [ebp - 4]
call fcn.004f6bc8
xor edx, edx
push ebp
push 0x4f6b5e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x20], edx
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f6b65
mov eax, dword [ebp - 4]
call fcn.004f6bd4
ret
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
cmp dword [eax + 8], 0
jle 0x4f6bc2
jmp 0x4f6bb6
mov eax, esi
xor edx, edx
call fcn.0041b180
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
xor edx, edx
call fcn.0041b024
movzx eax, byte [ebx]
sub al, 1
jae 0x4f6b9e
movzx edx, byte [ebx + 1]
mov eax, dword [ebp - 4]
call fcn.004f6c30
mov edx, 2
mov eax, ebx
call fcn.00402f6c
mov eax, dword [0x50a858]
mov eax, dword [eax]
call fcn.0046b530
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x20]
cmp dword [esi + 8], 0
jne 0x4f6b73
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4f9ee0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fa090
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov dl, 1
mov eax, dword [0x419390]
call fcn.00403d28
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0x4fa030
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4f9ff7
push dword fs:[edx]
mov dword fs:[edx], esp
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 2]
call fcn.0040a31c
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add eax, 0x70
call fcn.00404db0
mov eax, dword [ebp - 8]
mov edx, dword [eax + 6]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x64]
mov ecx, dword [ebp - 0x10]
call fcn.004ea114
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.0041e4c0
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 1]
mov byte [ebp - 0x11], al
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.0040333c
mov ebx, dword [ebp - 0x1c]
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.0040333c
lea eax, [ebp - 0x20]
mov edx, 0x4fa0ac
call fcn.00405028
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x24], esi
mov eax, dword [ebp - 0x24]
call fcn.004051ec
push eax
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x28]
call fcn.004051ec
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
push 0x64
call sub.kernel32.dll_Sleep_2
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.0040333c
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
call fcn.0041ebbc
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fa00c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fa037
mov eax, dword [ebp - 0x10]
call fcn.00403d58
mov edx, dword [0x4f7d64]
mov eax, dword [ebp - 8]
call fcn.00405f48
ret
Function at 0x4facb8
Capabilities:
Create process on windows
Terminate process

Disassembly:
add esp, 0xffffffac
mov eax, dword [0x50a8f4]
xor ecx, ecx
mov edx, 0x10
call fcn.00403678
push esp
call sub.kernel32.dll_GetStartupInfoA_1
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 4]
push eax
push 0x4fad90
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [0x50a480]
mov eax, dword [eax]
call fcn.004051ec
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4fad21
push 0xffffffffffffffff
mov eax, dword [0x50a8f4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0
mov eax, dword [0x50a8f4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [0x50a8f4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x50a8f4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [0x50a578]
cmp dword [eax + 0x3d], 0
je 0x4fad67
push 1
push 0
push 0
mov eax, dword [0x50a578]
mov eax, dword [eax + 0x3d]
call fcn.004051ec
push eax
push 0x4fad98
push 0
call sub.shell32.dll_ShellExecuteA
mov eax, dword [0x50a8f4]
xor ecx, ecx
mov edx, 0x10
call fcn.00403678
mov eax, dword [0x50a3e4]
mov eax, dword [eax]
cmp byte [eax + 1], 0
jne 0x4fad8c
push 0
call sub.kernel32.dll_ExitProcess_1
add esp, 0x54
ret
Function at 0x4152d0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5d0bb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 2
mov dword [esp + 0x18], edi
call fcn.0045cf80
lea esi, [edi + 0x18]
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x44], ebx
mov dword [edi + 0x14], ebx
mov dword [esp + 0x18], esi
call fcn.00417f80
lea ecx, [esi + 0x5c]
mov byte [esp + 0x44], 1
call fcn.0044c710
mov dword [esi], fcn.005498b0
mov byte [esi + 0x6c], bl
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], ebx
mov al, byte [esp + 0x12]
lea ecx, [esi + 0x7c]
push ebx
mov byte [esp + 0x48], 2
mov byte [ecx], al
call fcn.00402850
mov dword [esi], 0x5da45c
lea ecx, [esp + 0x12]
mov byte [esp + 0x44], 3
push ecx
push str.bust_up_start.txt
lea ecx, [esp + 0x34]
mov dword [edi], 0x5da810
call fcn.0040e960
mov ebp, eax
lea edx, [esp + 0x13]
lea ecx, [esp + 0x1c]
push edx
push str.Mege_y_
mov byte [esp + 0x4c], 4
call fcn.0040e960
sub esp, 0x10
mov byte [esp + 0x54], 5
mov ecx, esp
mov dword [esp + 0x28], esp
push ebp
push eax
push ecx
call fcn.0040eed0
mov edx, dword [esi]
add esp, 0xc
mov ecx, esi
call dword [edx]
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 4
call fcn.00402850
push 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 3
call fcn.00402850
mov eax, dword [esi]
mov ecx, esi
xor ebp, ebp
call dword [eax + 0x24]
test eax, eax
jle 0x4153e3
mov edx, dword [esi]
push 0xffffffffffffffff
push ebp
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esi]
mov ecx, esi
inc ebp
call dword [eax + 0x24]
cmp ebp, eax
jl 0x4153cd
mov ecx, 0x5f25e8
call fcn.0055c140
xor edx, edx
mov ecx, 3
div ecx
mov dword [edi + 0x10], edx
mov eax, dword [0x5f3400]
cmp eax, ebx
je 0x415424
cmp byte [eax + 4], bl
jne 0x415424
mov byte [eax + 5], 1
mov edx, dword [0x5f3400]
mov dword [edx + 8], 3
mov eax, dword [0x5f3400]
mov dword [eax + 0x10], 0x20
mov ecx, dword [esp + 0x3c]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret
Function at 0x405c83
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x4345c0
call fcn.004339e0
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
call fcn.00407553
mov esi, dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 1
je 0x405caf
push edi
call esi
cmp eax, 0xffffffff
jne 0x405cf1
test ebx, ebx
je 0x405cee
lea ecx, [ebp - 0x18]
call fcn.004028e9
and dword [ebp - 4], 0
cmp ebx, 1
setne al
push eax
lea edx, [ebp - 0x18]
mov ecx, edi
call fcn.0040765c
test al, al
push dword [ebp - 0x18]
je 0x405ce8
call esi
mov esi, eax
push dword [ebp - 0x18]
call fcn.00401abd
pop ecx
mov eax, esi
jmp 0x405cf1
call fcn.00401abd
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x406306
Capabilities:
Get disk information

Disassembly:
mov eax, 0x434664
call fcn.004339e0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
call fcn.0041c900
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x14], ebx
je 0x4063d4
mov eax, SysReAllocString
cmp ebx, eax
ja 0x406342
mov eax, ebx
add eax, eax
push eax
call fcn.0040826a
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x4063cd
cmp ebx, dword [ebp - 0x14]
ja 0x4063cd
lea ecx, [ebp - 0x2c]
call fcn.004028e9
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
jbe 0x4063b5
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4063aa
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.0040826a
mov ecx, dword [ebp - 0x18]
lea eax, [edi + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x1c], ebx
call fcn.0040150c
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x10]
jb 0x406380
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x2c]
call fcn.00401abd
push esi
call fcn.00401abd
cmp dword [ebp - 0x14], ebx
pop ecx
pop ecx
sete al
jmp 0x4063d6
push esi
call fcn.00401abd
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40826a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x408279
pop dword [ebp - 0x4c]
mov eax, 0xd794778b
sub eax, 0xd753f512
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3a83d
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0xb39249b0
sub ecx, 0xb392024e
xor edi, edi
add edi, eax
mov ebx, 0x44c600
add ebx, dword [ebp - 0x4c]
mov esi, 0xe1e68a22
sub esi, 0xb33e1471
xor dword [ebp - 0x10], eax
mov edx, dword [ebx]
add dword [ebp - 0x10], 0xe3fe5873
xor edx, esi
add dword [ebp - 0x18], 0xb5306c2a
mov dword [edi], edx
xor dword [ebp - 0x10], 0x5c9e7496
add edi, 0xfe28b58e
sub edi, 0xfe28b58a
add ebx, 0x326bd839
sub ebx, 0x326bd835
loop 0x4082cf
add eax, 0x1105b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Hash data using crc32b

Disassembly:
push 0x400
mov dword [0x418ef8], 0
call fcn.0040496d
add esp, 4
mov dword [0x418ef4], eax
xor ecx, ecx
mov eax, ecx
shl eax, 0x18
test eax, eax
jns 0x401030
add eax, eax
xor eax, 0x4c11db7
jmp 0x401032
add eax, eax
test eax, eax
jns 0x40103f
add eax, eax
xor eax, 0x4c11db7
jmp 0x401041
add eax, eax
test eax, eax
jns 0x40104e
add eax, eax
xor eax, 0x4c11db7
jmp 0x401050
add eax, eax
test eax, eax
jns 0x40105d
add eax, eax
xor eax, 0x4c11db7
jmp 0x40105f
add eax, eax
test eax, eax
jns 0x40106c
add eax, eax
xor eax, 0x4c11db7
jmp 0x40106e
add eax, eax
test eax, eax
jns 0x40107b
add eax, eax
xor eax, 0x4c11db7
jmp 0x40107d
add eax, eax
test eax, eax
jns 0x40108a
add eax, eax
xor eax, 0x4c11db7
jmp 0x40108c
add eax, eax
test eax, eax
jns 0x401099
add eax, eax
xor eax, 0x4c11db7
jmp 0x4010a0
add eax, eax
jmp 0x4010a0
mov edx, dword [0x418ef4]
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, 0x100
jb 0x40101e
mov eax, 0x418ef4
ret
Function at 0x401a00
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [0x418cc0]
push 0
push 0
push esi
push 0x4014f0
push 0
push 0
call fcn.00404d04
add esp, 0x18
mov dword [esi], eax
pop esi
ret

Function at 0x401a70
Capabilities:
Create thread
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push str.Globalczlogsvr.exe
push 1
push 1
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call edi
cmp eax, 0xb7
jne 0x401aba
push 0x10
push 0
push str.logviewer_already_exists.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push str.Globalczlogclient.exe
push 1
push 1
push 0
call esi
mov esi, eax
call edi
cmp eax, 0xb7
jne 0x401af5
push 0x10
push 0
push str.logrelayer_already_exists.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
push 0x418cc8
push 0xffff
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x418cc8
push str.Dianjilogviewer
push 0
push 0
push 0x8023
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
mov eax, 0x418cc8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b31
mov esi, dword [ebp + 8]
sub eax, edx
sar eax, 1
mov dword [0x418cc4], eax
mov eax, esi
call fcn.00403120
mov eax, esi
call fcn.004027a0
mov eax, dword [ebp + 0x14]
push eax
call fcn.00402820
push 0xfdc
call fcn.00404e1e
add esp, 4
test eax, eax
je 0x401b79
mov esi, eax
call fcn.00401380
jmp 0x401b7b
xor eax, eax
push 0x1668
mov dword [0x418ed0], eax
call fcn.00404e1e
add esp, 4
test eax, eax
je 0x401b9c
mov esi, eax
call fcn.00401920
mov esi, eax
jmp 0x401b9e
xor esi, esi
push 0
push 0
push esi
push 0x4014f0
push 0
push 0
mov dword [0x418cc0], esi
call fcn.00404d04
add esp, 0x18
mov dword [esi], eax
call fcn.00402890
call fcn.00401490
mov eax, dword [0x418cc0]
mov esi, dword [eax]
test esi, esi
je 0x401bf3
mov ecx, dword [eax + 4]
push 0
push 0
push 0
push ecx
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
push ebx
call edi
mov eax, dword [0x418ed0]
mov esi, eax
test eax, eax
je 0x401c10
push eax
call fcn.004013c0
push esi
call fcn.00404e83
add esp, 4
mov esi, dword [0x418cc0]
mov edi, esi
test esi, esi
je 0x401c2a
call fcn.00401970
push edi
call fcn.00404e83
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10