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

Disassembly:
mov eax, 0x101c
call fcn.00467ec0
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.004660d0
push 0x3fe
lea eax, [esp + 0x43a]
xor edx, edx
push edi
push eax
mov word [esp + 0x440], dx
call fcn.004660d0
add esp, 0x18
push 0x400
lea ecx, [esp + 0x42c]
push ecx
push 1
push 0x49f150
push esi
push closesocket
mov ecx, ebp
call fcn.00426a70
test eax, eax
je 0x4275bd
lea edx, [esp + 0x828]
push edx
lea eax, [esp + 0x42c]
push eax
mov ecx, ebp
call fcn.00426c20
test eax, eax
je 0x4275bd
lea ecx, [esp + 0x828]
push ecx
mov ecx, ebx
call fcn.0041a8d0
mov eax, ebx
jmp 0x42773c
push 0x3fe
lea eax, [esp + 0x2e]
xor edx, edx
push edi
push eax
mov word [esp + 0x34], dx
call fcn.004660d0
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.00426ae0
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.004435c9
mov ebx, eax
add esp, 4
cmp ebx, edi
jne 0x427661
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.004435c9
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x42772a
mov eax, dword [esp + 0x10]
imul eax, eax, 0x208
push eax
push edi
push ebx
call fcn.004660d0
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 0x427721
xor esi, esi
cmp dword [esp + 0x10], esi
jbe 0x4276e6
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 0x4276e2
inc esi
add edi, 0x208
cmp esi, dword [esp + 0x10]
jb 0x4276b0
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 0x427721
jmp 0x427700
lea eax, [esp + 0x828]
push eax
push edi
mov ecx, ebp
call fcn.00426c20
test eax, eax
jne 0x427757
inc esi
add edi, 0x208
cmp esi, dword [esp + 0x10]
jb 0x427700
push ebx
call fcn.004435be
add esp, 4
push 0x49f150
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.00466d50
add esp, 0x101c
ret 8
push ebx
call fcn.004435be
add esp, 4
lea ecx, [esp + 0x828]
push ecx
jmp 0x42772f
Function at 0x428470
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp]
push eax
push 0x20019
push 0
push ecx
push edx
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x42849c
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push esi
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x4284e0
Capabilities:
Check if file exists
Get file attributes
Persist via run registry key
Query environment variable

Disassembly:
sub esp, 0x61c
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x618], eax
push esi
mov esi, dword [esp + 0x624]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x41e]
push ecx
mov dword [esp + 0x10], 0x208
mov word [esp + 0x420], ax
call fcn.004660d0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x424]
push eax
push 1
push str.CDGRegedit
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00428470
add esp, 0x24
test eax, eax
jne 0x428561
pop esi
mov ecx, dword [esp + 0x618]
xor ecx, esp
call fcn.00466d50
add esp, 0x61c
ret
push edi
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x16]
push edx
mov word [esp + 0x18], cx
call fcn.004660d0
add esp, 0xc
push 0x104
lea eax, [esp + 0x10]
push eax
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.EstTemp_
lea ecx, [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4285ca
test al, 0x10
je 0x4285ca
push 0x104
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x42862b
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0x222]
push edx
mov word [esp + 0x224], cx
call fcn.004660d0
push 0
push 0
push 0
push 0
push 0x100
lea eax, [esp + 0x238]
push eax
push 0x100
lea ecx, [esp + 0x440]
push esi
push ecx
mov dword [esi], 0
call fcn.00468212
add esp, 0x30
lea edx, [esp + 0x218]
push edx
push esi
call edi
push str.TEMP_
push esi
call edi
mov ecx, dword [esp + 0x620]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00466d50
add esp, 0x61c
ret
Function at 0x428650
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x380
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x37c], eax
push esi
mov esi, dword [esp + 0x388]
push 0x3c
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x2c], 0
call fcn.004660d0
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0x196]
push edx
mov word [esp + 0x198], cx
call fcn.004660d0
lea eax, [esp + 0x198]
push eax
call fcn.004284e0
push 0
push 0
push 0x100
lea ecx, [esp + 0x1a8]
push ecx
push 0
push 0
push 0
push 0
push esi
call fcn.00468212
add esp, 0x40
lea edx, [esp + 0x180]
push str.ugs_router
push edx
call fcn.004690d8
add esp, 8
test eax, eax
jne 0x4286ff
xor eax, eax
pop esi
mov ecx, dword [esp + 0x37c]
xor ecx, esp
call fcn.00466d50
add esp, 0x380
ret
lea eax, [esp + 0x180]
push str.proe
push eax
call fcn.004690d8
add esp, 8
test eax, eax
je 0x4286e7
lea ecx, [esp + 0x180]
push str.VSLauncher
push ecx
call fcn.004690d8
add esp, 8
test eax, eax
je 0x4286e7
lea edx, [esp + 0x180]
push str.AcLauncher
push edx
call fcn.004690d8
add esp, 8
test eax, eax
je 0x4286e7
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4286e7
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0xc]
push eax
push 0x40
lea ecx, [esp + 0x150]
push ecx
push esi
call edi
test eax, eax
je 0x4287fd
mov edx, 0x5a4d
cmp dx, word [esp + 0x144]
jne 0x4287fd
push 0
lea eax, [esp + 0xc]
push eax
push 0x40
lea ecx, [esp + 0x30]
push ecx
push esi
call edi
test eax, eax
je 0x4287fd
mov edx, dword [esp + 0x180]
push 0
push 0
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4287fd
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea ecx, [esp + 0x18]
push ecx
push esi
call edi
test eax, eax
je 0x4287fd
cmp dword [esp + 0xc], 0x4550
jne 0x4287fd
push 0
lea edx, [esp + 0xc]
push edx
push 0x14
lea eax, [esp + 0x1c]
push eax
push esi
call edi
test eax, eax
jne 0x42881d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x37c]
xor ecx, esp
call fcn.00466d50
add esp, 0x380
ret
push 0
lea ecx, [esp + 0xc]
push ecx
push 0xe0
lea edx, [esp + 0x70]
push edx
push esi
call edi
push esi
test eax, eax
je 0x4287fe
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x384]
xor eax, eax
cmp word [esp + 0xa8], 2
pop edi
sete al
pop esi
xor ecx, esp
call fcn.00466d50
add esp, 0x380
ret
Function at 0x428dd0
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.004660d0
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 0x428e30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x428e30
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0xe], 0x5c
je 0x428e59
push 0x49ebb0
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.00466d50
add esp, 0x20c
ret 8
Function at 0x42c2b0
Capabilities:
Create udp socket

Disassembly:
push esi
push 0
push 2
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
pop esi
mov eax, ecx
ret

Function at 0x42c2d0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
neg eax
sbb eax, eax
inc eax
ret 8

Function at 0x42c360
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push esi
mov esi, dword [esp + 0x118]
mov eax, 0x10624dd3
mul esi
mov eax, dword [ecx]
shr edx, 6
mov dword [esp + 4], edx
imul edx, edx, 0x3e8
lea ecx, [esp + 4]
push ecx
push 0
sub esi, edx
push 0
lea edx, [esp + 0x18]
push edx
push 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_select]
pop esi
cmp eax, 0xffffffff
jne 0x42c3bd
xor eax, eax
add esp, 0x10c
ret 8
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov eax, 1
mov dword [edx], ecx
add esp, 0x10c
ret 8

Function at 0x42c680
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b9b20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
jne 0x42c6a0
xor esi, esi
jmp 0x42c6cb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x42c6b3
xor esi, esi
jmp 0x42c6cb
lea esi, [eax + eax]
mov eax, esi
call fcn.00466d60
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.00417ed0
mov esi, eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x42c714
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x42c737
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
push 0x10
lea edx, [ebp - 0x14]
push edx
mov ecx, ebx
call fcn.0042c2d0
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00466d50
mov esp, ebp
pop ebp
ret 8
xor eax, eax
jmp 0x42c721
Function at 0x42d580
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.004660d0
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 0x49eba0
push edx
mov word [esp + 0x14], cx
call fcn.00469c5c
add esp, 0xc
test eax, eax
jne 0x42d60a
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 0x42d64e
cmp dword [esp + 4], 0
ja 0x42d64e
jb 0x42d634
cmp dword [esp], 0x6400000
ja 0x42d64e
mov eax, 1
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00466d50
add esp, 0x220
ret
mov ecx, dword [esp + 0x21c]
xor ecx, esp
xor eax, eax
call fcn.00466d50
add esp, 0x220
ret

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

Disassembly:
mov eax, 0x240c
call fcn.00467ec0
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.004660d0
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 0x42d70f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2408]
xor ecx, esp
call fcn.00466d50
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.004660d0
push ebx
lea edx, [esp + 0x28]
push 0x4902fc
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 0x42d767
xor eax, eax
jmp 0x42d786
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.00466d50
add esp, 0x240c
ret
Function at 0x42d7a0
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x2408
call fcn.00467ec0
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.004660d0
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.004660d0
push ebx
lea ecx, [esp + 0x2c]
push 0x4902fc
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 0x42d860
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2404]
xor ecx, esp
call fcn.00466d50
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 0x42d846
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.00466d50
add esp, 0x2408
ret

Function at 0x42d8b0
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.004660d0
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 0x42d937
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc08]
xor ecx, esp
call fcn.00466d50
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.004660d0
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.00466d50
add esp, 0xc0c
ret
Function at 0x42de10
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.004660d0
xor edx, edx
push 0x40e
push edx
lea eax, [esp + 0x68a]
push eax
mov word [esp + 0x68c], dx
call fcn.004660d0
mov eax, esi
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42de71
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
je 0x42de96
push 0x49ebb0
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.004660d0
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 0x42e00e
test ebx, ebx
je 0x42e00e
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 0x42df36
test dx, dx
je 0x42df32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42df36
add eax, 4
add ecx, 4
test dx, dx
jne 0x42df10
xor eax, eax
jmp 0x42df3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42dfdd
mov ecx, 0x48dc78
lea eax, [esp + 0x40]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42df76
test dx, dx
je 0x42df72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42df76
add eax, 4
add ecx, 4
test dx, dx
jne 0x42df50
xor eax, eax
jmp 0x42df7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x42dfdd
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 0x42dfb9
lea ecx, [esp + 0x264]
push ecx
call fcn.0042de10
add esp, 4
jmp 0x42dfdd
test al, 1
je 0x42dfcf
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 0x42df00
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 0x42e010
xor eax, eax
mov ecx, dword [esp + 0xa84]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466d50
add esp, 0xa78
ret
Function at 0x430960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x489938
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b9b20]
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.004199c0
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.004199c0
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 0x431db0
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.004660d0
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 0x433c90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
or eax, 0xffffffff
test ecx, ecx
je 0x433cbc
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 + 0x4b7da8]
dec ecx
inc edx
test ecx, ecx
jne 0x433ca0
pop esi
not eax
ret

Function at 0x433cc0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x433ce6
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 0x433d00
Capabilities:
Get disk information

Disassembly:
push 4
call fcn.004435c9
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.004435be
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