joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423c50
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x488b10
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b9b20]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
push eax
mov dword [esp + 0x1c], 0
call fcn.004199c0
add eax, 0x10
add esp, 4
mov dword [esp + 0xc], eax
push 1
push 0x49ebf0
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0041a160
lea ecx, [edi + 0x380]
test ecx, ecx
jne 0x423cb7
xor eax, eax
jmp 0x423ccf
mov eax, ecx
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x423cc0
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0041a160
lea edx, [edi + 0x482]
test edx, edx
jne 0x423ce8
xor eax, eax
jmp 0x423cff
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423cf0
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.0041a160
mov esi, dword [esp + 0xc]
push 0
push esi
add edi, 4
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x18], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423d3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423d66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x423d80
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x488b40
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x4b9b20]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], 0
call fcn.0041eeb0
test eax, eax
jne 0x423df6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423ddf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
push 2
lea ecx, [esi + 0x8c5]
push ecx
lea edi, [esi + 4]
push edi
call eax
add esp, 0xc
mov ecx, esi
mov ebp, eax
call fcn.0041ef60
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
test ebp, ebp
jne 0x423e33
mov dword [esp + 0x1c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x423dd3
push eax
call fcn.004199c0
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
push 0x49ebf0
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 1
call fcn.0041a890
lea ecx, [esi + 0x380]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041a890
add esi, 0x482
push esi
lea ecx, [esp + 0x14]
call fcn.0041a890
mov esi, dword [esp + 0x10]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, eax
lea eax, [esi - 0x10]
mov byte [esp + 0x1c], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x423ea7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x423ecf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4
Function at 0x427470
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x101c
call fcn.00467fe0
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x1018], eax
push ebx
mov ebx, dword [esp + 0x1024]
push ebp
push esi
mov esi, dword [esp + 0x1030]
push edi
mov ebp, ecx
xor edi, edi
push 0x7fe
lea ecx, [esp + 0x82e]
xor eax, eax
push edi
mov dword [esp + 0x20], edi
push ecx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], ebx
mov word [esp + 0x834], ax
call fcn.004661f0
push 0x3fe
lea eax, [esp + 0x43a]
xor edx, edx
push edi
push eax
mov word [esp + 0x440], dx
call fcn.004661f0
add esp, 0x18
push 0x400
lea ecx, [esp + 0x42c]
push ecx
push 1
push 0x49f190
push esi
push closesocket
mov ecx, ebp
call fcn.004269f0
test eax, eax
je 0x42753d
lea edx, [esp + 0x828]
push edx
lea eax, [esp + 0x42c]
push eax
mov ecx, ebp
call fcn.00426ba0
test eax, eax
je 0x42753d
lea ecx, [esp + 0x828]
push ecx
mov ecx, ebx
call fcn.0041a8d0
mov eax, ebx
jmp 0x4276bc
push 0x3fe
lea eax, [esp + 0x2e]
xor edx, edx
push edi
push eax
mov word [esp + 0x34], dx
call fcn.004661f0
push esi
lea ecx, [esp + 0x38]
push str._sOpenWithProgids
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push closesocket
mov ecx, ebp
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
call fcn.00426a60
mov eax, dword [esp + 0x10]
imul eax, eax, 0x104
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004435be
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x4275e1
mov eax, dword [esp + 0x10]
imul eax, eax, 0x104
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004435be
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x4276aa
mov eax, dword [esp + 0x10]
imul eax, eax, 0x208
push eax
push edi
push ebx
call fcn.004661f0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x30], edi
push closesocket
mov edi, ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4276a1
xor esi, esi
cmp dword [esp + 0x10], esi
jbe 0x427666
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, edi
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x30]
push eax
push edi
push esi
push ecx
mov dword [esp + 0x40], 0x104
call ebp
cmp eax, 0x103
je 0x427662
inc esi
add edi, 0x208
cmp esi, dword [esp + 0x10]
jb 0x427630
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov edi, ebx
cmp dword [esp + 0x10], esi
jbe 0x4276a1
jmp 0x427680
lea eax, [esp + 0x828]
push eax
push edi
mov ecx, ebp
call fcn.00426ba0
test eax, eax
jne 0x4276d7
inc esi
add edi, 0x208
cmp esi, dword [esp + 0x10]
jb 0x427680
push ebx
call fcn.004435c9
add esp, 4
push 0x49f190
mov esi, dword [esp + 0x18]
mov ecx, esi
call fcn.0041a8d0
mov eax, esi
mov ecx, dword [esp + 0x1028]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466e70
add esp, 0x101c
ret 8
push ebx
call fcn.004435c9
add esp, 4
lea ecx, [esp + 0x828]
push ecx
jmp 0x4276af
Function at 0x428d50
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
mov edi, dword [esp + 0x224]
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x1a]
push ecx
mov word [esp + 0x1c], ax
call fcn.004661f0
mov edx, dword [esi + 0x7c]
add esp, 0xc
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x10]
lea edx, [eax + 2]
jmp 0x428db0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x428db0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0xe], 0x5c
je 0x428dd9
push 0x49ebf0
lea ecx, [esp + 0x14]
push ecx
call ebx
push str.PCID.DAT
lea edx, [esp + 0x14]
push edx
call ebx
mov ecx, dword [esi + 0x80]
lea eax, [esp + 0x10]
push eax
push 0
push str.Auto
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea edx, [esp + 0x10]
push edx
push 0x104
push edi
push 0
mov dword [ebp], eax
mov eax, dword [esi + 0x80]
push str.Pcid
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor ecx, ecx
test eax, eax
setg cl
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00466e70
add esp, 0x20c
ret 8
Function at 0x42d510
Capabilities:
Get common file path
Get disk size

Disassembly:
sub esp, 0x220
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x21c], eax
mov ecx, 0x3a
mov word [esp + 0xa], cx
mov edx, 0x5c
xor ecx, ecx
push 0x208
mov word [esp + 0x10], dx
xor eax, eax
push ecx
lea edx, [esp + 0x1a]
push edx
mov word [esp + 0x14], ax
mov word [esp + 0x1a], ax
mov word [esp + 0x1c], cx
call fcn.004661f0
add esp, 0xc
push 0x104
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov cx, word [esp + 0x10]
push 4
lea edx, [esp + 0x14]
push 0x49ebe0
push edx
mov word [esp + 0x14], cx
call fcn.00469d7c
add esp, 0xc
test eax, eax
jne 0x42d59a
mov ax, word [esp + 0x18]
mov word [esp + 8], ax
push 0
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x42d5de
cmp dword [esp + 4], 0
ja 0x42d5de
jb 0x42d5c4
cmp dword [esp], 0x6400000
ja 0x42d5de
mov eax, 1
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00466e70
add esp, 0x220
ret
mov ecx, dword [esp + 0x21c]
xor ecx, esp
xor eax, eax
call fcn.00466e70
add esp, 0x220
ret

Function at 0x42d600
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x240c
call fcn.00467fe0
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x2408], eax
mov eax, dword [esp + 0x2420]
push ebx
mov ebx, dword [esp + 0x241c]
push esi
mov esi, dword [esp + 0x2418]
push edi
mov edi, dword [esp + 0x2420]
xor ecx, ecx
push 0x1ffe
push ecx
lea edx, [esp + 0x41e]
push edx
mov dword [esp + 0x1c], eax
mov word [esp + 0x420], cx
call fcn.004661f0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x418]
push ecx
lea edx, [esp + 0x2430]
push edx
push ebx
push edi
push esi
mov dword [esp + 0x24], 0x2000
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x42d69f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2408]
xor ecx, esp
call fcn.00466e70
add esp, 0x240c
ret
push ebp
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x22]
push ecx
mov word [esp + 0x24], ax
call fcn.004661f0
push ebx
lea edx, [esp + 0x28]
push 0x49031c
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2444]
mov ebp, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esp, 0x18
push eax
lea ecx, [esp + 0x41c]
push ecx
push edx
lea eax, [esp + 0x24]
push eax
push edi
push esi
call ebp
test eax, eax
je 0x42d6f7
xor eax, eax
jmp 0x42d716
mov ecx, dword [esp + 0x2434]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x242c]
push ecx
push edx
push eax
push ebx
push edi
push esi
call ebp
neg eax
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x2418]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00466e70
add esp, 0x240c
ret
Function at 0x42d730
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x2408
call fcn.00467fe0
mov eax, dword [0x4b9b20]
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.004661f0
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.004661f0
push ebx
lea ecx, [esp + 0x2c]
push 0x49031c
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 0x42d7f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2404]
xor ecx, esp
call fcn.00466e70
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 0x42d7d6
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.00466e70
add esp, 0x2408
ret

Function at 0x42d840
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc0c
mov eax, dword [0x4b9b20]
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.004661f0
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 closesocket
mov dword [esp + 0x1c], 0x800
mov dword [esp + 0x20], 1
call esi
test eax, eax
je 0x42d8c7
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc08]
xor ecx, esp
call fcn.00466e70
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.004661f0
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 closesocket
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.00466e70
add esp, 0xc0c
ret
Function at 0x42dda0
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 [0x4b9b20]
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.004661f0
xor edx, edx
push 0x40e
push edx
lea eax, [esp + 0x68a]
push eax
mov word [esp + 0x68c], dx
call fcn.004661f0
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42de01
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x42de26
push 0x49ebf0
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [esp + 0x678]
push ecx
call ebp
push 0x48dc94
lea edx, [esp + 0x678]
push edx
call edi
push 0x250
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004661f0
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 0x42df9e
test ebx, ebx
je 0x42df9e
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x48e72c
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42dec6
test dx, dx
je 0x42dec2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42dec6
add eax, 4
add ecx, 4
test dx, dx
jne 0x42dea0
xor eax, eax
jmp 0x42decb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42df6d
mov ecx, 0x48dc78
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42df06
test dx, dx
je 0x42df02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42df06
add eax, 4
add ecx, 4
test dx, dx
jne 0x42dee0
xor eax, eax
jmp 0x42df0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42df6d
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 0x42df49
lea ecx, [esp + 0x264]
push ecx
call fcn.0042dda0
add esp, 4
jmp 0x42df6d
test al, 1
je 0x42df5f
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 0x42de90
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 0x42dfa0
xor eax, eax
mov ecx, dword [esp + 0xa84]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466e70
add esp, 0xa78
ret
Function at 0x433d00
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 [0x4b9b20]
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.004661f0
xor edx, edx
push 0x40e
push edx
lea eax, [esp + 0x68a]
push eax
mov word [esp + 0x68c], dx
call fcn.004661f0
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x433d61
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x433d86
push 0x49ebf0
push esi
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea ecx, [esp + 0x678]
push ecx
call ebp
push 0x48dc94
lea edx, [esp + 0x678]
push edx
call edi
push 0x250
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004661f0
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 0x433efb
test ebx, ebx
je 0x433efb
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, 0x48e72c
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x433e26
test dx, dx
je 0x433e22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x433e26
add eax, 4
add ecx, 4
test dx, dx
jne 0x433e00
xor eax, eax
jmp 0x433e2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x433ecd
mov ecx, 0x48dc78
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x433e66
test dx, dx
je 0x433e62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x433e66
add eax, 4
add ecx, 4
test dx, dx
jne 0x433e40
xor eax, eax
jmp 0x433e6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x433ecd
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 0x433ea9
lea ecx, [esp + 0x264]
push ecx
call fcn.00433d00
add esp, 4
jmp 0x433ecd
test al, 1
je 0x433ebf
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 0x433df0
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 0x433efd
xor al, al
mov ecx, dword [esp + 0xa84]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466e70
add esp, 0xa78
ret
Function at 0x439210
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x28c8
call fcn.00467fe0
mov eax, dword [0x4b9b20]
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 0x4392c8
lea ecx, [eax + 7]
movzx edx, byte [esi + 0x195]
cmp edx, 0xffffffff
jne 0x4392c8
movzx edx, byte [esi + 0x196]
cmp edx, 0xffffffff
jne 0x4392c8
movzx edx, byte [esi + 0x197]
cmp edx, 0xffffffff
jne 0x4392c8
movzx edx, byte [esi + 0x198]
cmp edx, 0xffffffff
jne 0x4392c8
movzx edx, byte [esi + 0x199]
cmp edx, 0xffffffff
jne 0x4392c8
cmp dword [esi + 0x1a0], ecx
je 0x4392c8
mov esi, dword [esi]
test esi, esi
je 0x4392c8
movzx edx, byte [esi + 0x194]
cmp edx, 0xffffffff
je 0x439272
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 0x496998
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x28b0]
push 0x20
push eax
call fcn.0046905f
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.00466e70
add esp, 0x28c8
ret

Function at 0x439390
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x14], eax
mov ecx, dword [0x4969f8]
mov edx, dword [0x4969fc]
xor eax, eax
mov dword [0x4bfc98], eax
mov dword [0x4bfc9c], eax
mov dword [0x4bfca0], eax
mov dword [0x4bfca4], eax
mov dword [0x4bfca8], eax
mov dword [0x4bfcac], eax
mov dword [0x4bfcb0], eax
mov dword [0x4bfcb4], eax
mov eax, dword [str.Beijing_E_SafeNet]
mov dword [0x4bfc98], eax
mov eax, dword [0x496a00]
mov dword [0x4bfc9c], ecx
mov cx, word [0x496a04]
mov dword [0x4bfca0], edx
mov edx, dword [str.CDGCobra_DocGuard]
mov dword [0x4bfca4], eax
mov eax, dword [0x4969e4]
mov word [0x4bfca8], cx
mov ecx, dword [0x4969e8]
mov dword [esp], edx
mov edx, dword [0x4969ec]
mov dword [esp + 4], eax
mov ax, word [0x4969f0]
push 0x4bfc98
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edx
mov word [esp + 0x14], ax
call fcn.00439350
lea ecx, [esp + 4]
push ecx
call fcn.00439350
add esp, 8
xor edx, edx
lea esp, [esp]
mov al, byte [edx + 0x4bfc98]
xor ecx, ecx
jmp 0x439460
xor al, byte [esp + ecx]
add ecx, 6
xor al, byte [esp + ecx - 5]
xor al, byte [esp + ecx - 4]
xor al, byte [esp + ecx - 3]
xor al, byte [esp + ecx - 2]
xor al, byte [esp + ecx - 1]
cmp ecx, 0x12
jl 0x439460
mov byte [edx + 0x4bfc98], al
inc edx
cmp edx, 0x20
jl 0x439450
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00466e70
add esp, 0x18
ret