joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417a90
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x2408
call fcn.004536f0
mov eax, dword [0x49ab20]
xor eax, esp
mov dword [esp + 0x2404], eax
push ebx
mov ebx, dword [esp + 0x2418]
push esi
mov esi, dword [esp + 0x2414]
push edi
mov edi, dword [esp + 0x241c]
xor eax, eax
push 0x1ffe
push eax
lea ecx, [esp + 0x41a]
push ecx
mov word [esp + 0x41c], ax
call fcn.00451660
xor edx, edx
push 0x3fe
push edx
lea eax, [esp + 0x26]
push eax
mov dword [esp + 0x24], 0x2000
mov word [esp + 0x28], dx
call fcn.00451660
push ebx
lea ecx, [esp + 0x2c]
push 0x47818c
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x414]
push eax
lea ecx, [esp + 0x242c]
push ecx
lea edx, [esp + 0x1c]
push edx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x417b50
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2404]
xor ecx, esp
call fcn.004522e0
add esp, 0x2408
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x2424]
push eax
lea ecx, [esp + 0x414]
push ecx
push edx
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
jne 0x417b36
lea eax, [esp + 0x10]
push eax
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, dword [esp + 0x2410]
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.004522e0
add esp, 0x2408
ret

Function at 0x417ba0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc0c
mov eax, dword [0x49ab20]
xor eax, esp
mov dword [esp + 0xc08], eax
push esi
xor eax, eax
push 0x7fe
push eax
lea ecx, [esp + 0x416]
push ecx
mov word [esp + 0x418], ax
call fcn.00451660
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x410]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str..docx
push SysReAllocString
mov dword [esp + 0x1c], 0x800
mov dword [esp + 0x20], 1
call esi
test eax, eax
je 0x417c27
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc08]
xor ecx, esp
call fcn.004522e0
add esp, 0xc0c
ret
push str.ShellOpenAsReadOnlycommand
lea edx, [esp + 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00451660
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
lea edx, [esp + 0x41c]
push edx
push SysReAllocString
mov dword [esp + 0x1c], 0x400
call esi
mov ecx, dword [esp + 0xc0c]
neg eax
sbb eax, eax
pop esi
xor ecx, esp
inc eax
call fcn.004522e0
add esp, 0xc0c
ret
Function at 0x4180f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
sub esp, 0xa78
mov eax, dword [0x49ab20]
xor eax, esp
mov dword [esp + 0xa74], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa88]
push edi
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x26e]
push ecx
mov word [esp + 0x270], ax
call fcn.00451660
xor edx, edx
push 0x40e
push edx
lea eax, [esp + 0x68a]
push eax
mov word [esp + 0x68c], dx
call fcn.00451660
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x418151
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x418176
push 0x485864
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [esp + 0x678]
push ecx
call ebp
push 0x475c18
lea edx, [esp + 0x678]
push edx
call edi
push 0x250
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00451660
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x678]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x4182ee
test ebx, ebx
je 0x4182ee
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x476654
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418216
test dx, dx
je 0x418212
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418216
add eax, 4
add ecx, 4
test dx, dx
jne 0x4181f0
xor eax, eax
jmp 0x41821b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4182bd
mov ecx, 0x475bf8
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418256
test dx, dx
je 0x418252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418256
add eax, 4
add ecx, 4
test dx, dx
jne 0x418230
xor eax, eax
jmp 0x41825b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4182bd
push esi
lea eax, [esp + 0x268]
push eax
call ebp
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x268]
push edx
call edi
lea eax, [esp + 0x264]
push eax
call ebx
test al, 0x10
je 0x418299
lea ecx, [esp + 0x264]
push ecx
call fcn.004180f0
add esp, 4
jmp 0x4182bd
test al, 1
je 0x4182af
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4181e0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
jmp 0x4182f0
xor eax, eax
mov ecx, dword [esp + 0xa84]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004522e0
add esp, 0xa78
ret
Function at 0x41ab30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x471858
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x49ab20]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00404440
add eax, 0x10
mov dword [esi], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
sub eax, 0x10
push eax
mov dword [esp + 0x1c], 0
call fcn.00404440
mov dl, byte [esp + 0x30]
add esp, 8
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], eax
mov byte [esi + 8], dl
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 0x10
Function at 0x41d320
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, ecx
xor edx, edx
cmp dword [edi + 0x3cc], edx
jle 0x41d346
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
mov cl, byte [esi]
xor byte [eax], cl
inc edx
inc esi
inc eax
cmp edx, dword [edi + 0x3cc]
jl 0x41d336
pop esi
pop edi
ret 8

Function at 0x41d4c0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
lea eax, [esi + 4]
push 0
push eax
mov dword [esi], vtable.CEncryptMd5.0
call fcn.00451660
add esp, 0xc
mov dword [esi + 0x48], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x4c], 0x67452301
mov dword [esi + 0x50], 0xefcdab89
mov dword [esi + 0x54], 0x98badcfe
mov dword [esi + 0x58], 0x10325476
mov eax, esi
pop esi
ret

Function at 0x41e130
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push esi
xor esi, esi
cmp dword [esp + 0x14], esi
jle 0x41e199
push ebp
mov ebp, dword [esp + 0x14]
push edi
lea esp, [esp]
inc cl
movzx edi, cl
mov ecx, dword [eax + edi*4 + 8]
add dl, cl
mov dword [esp + 0x18], ecx
movzx ecx, dl
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + ecx*4 + 8]
mov dword [eax + edi*4 + 8], ecx
add cl, dl
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x14]
movzx ecx, cl
mov dword [eax + edi*4 + 8], edx
mov dl, byte [eax + ecx*4 + 8]
xor byte [esi + ebp], dl
mov ecx, dword [esp + 0xc]
inc esi
cmp esi, dword [esp + 0x1c]
mov edx, edi
jl 0x41e150
pop edi
pop ebp
mov dword [eax + 4], edx
mov dword [eax], ecx
pop esi
pop ecx
ret 0xc
Function at 0x41f560
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test ecx, ecx
je 0x41f58c
mov edx, dword [esp + 4]
push esi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x498db0]
dec ecx
inc edx
test ecx, ecx
jne 0x41f570
pop esi
not eax
ret

Function at 0x41f590
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f5b6
or eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x41f5d0
Capabilities:
Get disk information

Disassembly:
push 4
call fcn.0042eb4e
mov ecx, dword [esp + 8]
mov dl, byte [ecx]
add esp, 4
xor ecx, ecx
push eax
mov byte [eax], dl
mov word [eax + 2], cx
call dword [sym.imp.USER32.dll_CharUpperW]
mov edx, 0xffbf
add word [eax], dx
mov cl, byte [eax]
mov dword [esp + 4], 0
push eax
mov byte [esp + 8], cl
call fcn.0042eb59
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ecx, dword [esp + 4]
mov edx, 1
shl edx, cl
test edx, eax
setne al
ret
Function at 0x41f630
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
sub esp, 0xa78
mov eax, dword [0x49ab20]
xor eax, esp
mov dword [esp + 0xa74], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0xa88]
push edi
xor eax, eax
push 0x40e
push eax
lea ecx, [esp + 0x26e]
push ecx
mov word [esp + 0x270], ax
call fcn.00451660
xor edx, edx
push 0x40e
push edx
lea eax, [esp + 0x68a]
push eax
mov word [esp + 0x68c], dx
call fcn.00451660
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41f691
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x41f6b6
push 0x485864
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [esp + 0x678]
push ecx
call ebp
push 0x475c18
lea edx, [esp + 0x678]
push edx
call edi
push 0x250
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00451660
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x678]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
je 0x41f82b
test ebx, ebx
je 0x41f82b
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x476654
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f756
test dx, dx
je 0x41f752
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f756
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f730
xor eax, eax
jmp 0x41f75b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f7fd
mov ecx, 0x475bf8
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41f796
test dx, dx
je 0x41f792
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41f796
add eax, 4
add ecx, 4
test dx, dx
jne 0x41f770
xor eax, eax
jmp 0x41f79b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41f7fd
push esi
lea eax, [esp + 0x268]
push eax
call ebp
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x268]
push edx
call edi
lea eax, [esp + 0x264]
push eax
call ebx
test al, 0x10
je 0x41f7d9
lea ecx, [esp + 0x264]
push ecx
call fcn.0041f630
add esp, 4
jmp 0x41f7fd
test al, 1
je 0x41f7ef
and eax, 0xfffffffe
push eax
lea edx, [esp + 0x268]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41f720
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov al, 1
jmp 0x41f82d
xor al, al
mov ecx, dword [esp + 0xa84]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004522e0
add esp, 0xa78
ret
Function at 0x41f890
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41f8b6
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push edi
push ecx
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
je 0x41f8f2
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret

Function at 0x41f950
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41f965
xor eax, eax
pop esi
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret

Function at 0x41fcc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x49ab20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
setne al
push 0
push 0
mov dword [ebp - 8], 1
add eax, 2
push eax
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41fd22
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004522e0
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x41fd33
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0xc]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41fd54
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 0xc]
je 0x41fd5b
mov dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jne 0x41fda2
test ebx, ebx
jne 0x41fda2
test edi, edi
je 0x41fd7f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41fd83
xor eax, eax
jmp 0x41fd99
lea esi, [eax + eax]
mov eax, esi
call fcn.004522f0
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00402960
push eax
call fcn.00455171
add esp, 4
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004522e0
mov esp, ebp
pop ebp
ret
Function at 0x41fde0
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
mov esi, 3
cmp ebp, esi
jbe 0x41fe56
jmp 0x41fe00
cmp word [ebx + esi*2], 0x5c
jne 0x41fe51
call fcn.004376be
push eax
push esi
push ebx
lea ecx, [esp + 0x1c]
call fcn.00404300
mov edi, dword [esp + 0x10]
push edi
call fcn.0041fb50
add esp, 4
test eax, eax
jne 0x41fe35
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41fe77
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fe51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc esi
cmp esi, ebp
jb 0x41fe00
push ebx
call fcn.0041fb50
add esp, 4
test eax, eax
jne 0x41fe6f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41fe93
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41fe93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
Function at 0x424980
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x28c8
call fcn.004536f0
mov eax, dword [0x49ab20]
xor eax, esp
mov dword [esp + 0x28c4], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x28d8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x14], 0x2880
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Not_found
lea edx, [esp + 0x2894]
push edx
lea esi, [esp + 0x18]
call ebx
movzx eax, byte [esp + 0x1a4]
cmp eax, 0xffffffff
jne 0x424a38
lea ecx, [eax + 7]
movzx edx, byte [esi + 0x195]
cmp edx, 0xffffffff
jne 0x424a38
movzx edx, byte [esi + 0x196]
cmp edx, 0xffffffff
jne 0x424a38
movzx edx, byte [esi + 0x197]
cmp edx, 0xffffffff
jne 0x424a38
movzx edx, byte [esi + 0x198]
cmp edx, 0xffffffff
jne 0x424a38
movzx edx, byte [esi + 0x199]
cmp edx, 0xffffffff
jne 0x424a38
cmp dword [esi + 0x1a0], ecx
je 0x424a38
mov esi, dword [esi]
test esi, esi
je 0x424a38
movzx edx, byte [esi + 0x194]
cmp edx, 0xffffffff
je 0x4249e2
movzx ecx, byte [esp + 0x1a9]
movzx edx, byte [esp + 0x1a8]
push ecx
movzx ecx, byte [esp + 0x1ab]
push edx
movzx edx, byte [esp + 0x1ae]
push ecx
movzx ecx, byte [esp + 0x1b1]
push edx
push ecx
push eax
lea edx, [esp + 0x28a8]
push str._02x_02x_02x_02x_02x_02x
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x28b0]
push 0x20
push eax
call fcn.00453de8
add esp, 0x28
lea ecx, [esp + 0x2890]
push ecx
push edi
call ebx
mov ecx, dword [esp + 0x28d0]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004522e0
add esp, 0x28c8
ret
Function at 0x424af0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x49ab20]
xor eax, esp
mov dword [esp + 0x24], eax
mov ecx, dword [0x47e4a8]
mov edx, dword [0x47e4ac]
xor eax, eax
mov dword [esp + 2], eax
mov dword [esp + 6], eax
mov dword [esp + 0xa], eax
mov dword [esp + 0xe], eax
mov dword [0x49fad0], eax
mov dword [0x49fad4], eax
mov dword [0x49fad8], eax
mov dword [0x49fadc], eax
mov dword [0x49fae0], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov word [esp + 0x22], ax
mov dword [0x49fae4], eax
mov dword [0x49fae8], eax
mov dword [0x49faec], eax
mov eax, dword [str.Beijing_E_SafeNet]
mov dword [0x49fad0], eax
mov eax, dword [0x47e4b0]
mov dword [0x49fad4], ecx
mov cx, word [0x47e4b4]
mov dword [0x49fad8], edx
mov edx, dword [str.CDGCobra_DocGuard]
mov dword [0x49fadc], eax
mov eax, dword [0x47e494]
mov word [0x49fae0], cx
mov ecx, dword [0x47e498]
mov dword [esp], edx
mov edx, dword [0x47e49c]
mov dword [esp + 4], eax
mov ax, word [0x47e4a0]
push 0x49fad0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov word [esp + 0x14], ax
call fcn.00424ac0
lea ecx, [esp + 4]
push ecx
call fcn.00424ac0
add esp, 8
mov edx, 0x49fad0
movzx eax, word [edx]
xor ecx, ecx
lea esp, [esp]
xor ax, word [esp + ecx*2]
add ecx, 6
xor ax, word [esp + ecx*2 - 0xa]
xor ax, word [esp + ecx*2 - 8]
xor ax, word [esp + ecx*2 - 6]
xor ax, word [esp + ecx*2 - 4]
xor ax, word [esp + ecx*2 - 2]
cmp ecx, 0x12
jl 0x424be0
mov word [edx], ax
add edx, 2
cmp edx, 0x49fb10
jl 0x424bd4
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004522e0
add esp, 0x28
ret
Function at 0x425ad0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x471eeb
mov eax, dword fs:[0]
push eax
mov eax, 0x180c
call fcn.004536f0
mov eax, dword [0x49ab20]
xor eax, esp
mov dword [esp + 0x1808], eax
push esi
push edi
mov eax, dword [0x49ab20]
xor eax, esp
push eax
lea eax, [esp + 0x1818]
mov dword fs:[0], eax
push 0x3ff
lea eax, [esp + 0x19]
push 0
push eax
mov byte [esp + 0x20], 0
call fcn.00451660
push 0x3ff
lea ecx, [esp + 0x425]
push 0
push ecx
mov byte [esp + 0x42c], 0
call fcn.00451660
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x836]
push eax
mov word [esp + 0x838], dx
call fcn.00451660
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x1042]
push edx
mov word [esp + 0x1044], cx
call fcn.00451660
add esp, 0x30
lea ecx, [esp + 0xc]
call fcn.00424080
lea eax, [esp + 0x814]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x1824], 0
call fcn.004248b0
xor ecx, ecx
mov word [esp + 0x1012], cx
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x814]
mov byte [esp + eax + 0x14], cl
inc eax
test cl, cl
jne 0x425bb0
lea edx, [esp + 0x1014]
push edx
call fcn.00424980
add esp, 4
xor eax, eax
push eax
push eax
push 0x400
lea ecx, [esp + 0x420]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x1028]
push edx
push eax
push eax
mov word [esp + 0x1832], ax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425c02
sub eax, edx
je 0x425c30
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425c14
sub eax, edx
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00425a70
add esp, 8
movzx edi, ax
jmp 0x425c32
xor edi, edi
lea eax, [esp + 0x414]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425c40
sub eax, edx
je 0x425c74
lea eax, [esp + 0x414]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x425c55
sub eax, edx
push eax
lea ecx, [esp + 0x418]
push ecx
call fcn.00425a70
add esp, 8
movzx eax, ax
jmp 0x425c76
xor eax, eax
movzx esi, ax
movzx edi, di
push esi
push edi
lea edx, [esp + 0x1c]
push str.wDiskNumber:_d__wMacNumber:__d
push edx
call fcn.004540d9
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
shl esi, 0x10
lea ecx, [esp + 0xc]
or esi, edi
mov dword [esp + 0x1820], 0xffffffff
call fcn.00424090
mov eax, esi
mov ecx, dword [esp + 0x1818]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1808]
xor ecx, esp
call fcn.004522e0
add esp, 0x1818
ret
Function at 0x425d50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x425da7
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push edi
lea esp, [esp]
inc cl
movzx edi, cl
mov bl, byte [eax + edi + 8]
add dl, bl
movzx edx, dl
mov cl, byte [eax + edx + 8]
mov byte [eax + edi + 8], cl
add cl, bl
movzx ecx, cl
mov byte [eax + edx + 8], bl
movzx ecx, byte [ecx + eax + 8]
xor byte [esi + ebp], cl
inc esi
cmp esi, dword [esp + 0x1c]
mov dword [esp + 0x14], edi
mov ecx, edi
jl 0x425d70
pop edi
pop ebp
pop ebx
mov dword [eax + 4], edx
mov dword [eax], ecx
pop esi
ret