joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ac61
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xdc]
push eax
call fcn.004429c3
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0xdc]
push edx
call fcn.0044291d
xor esi, esi
test edi, edi
je 0x44aca9
lea eax, [ebp - 0xdc]
push eax
call fcn.00442992
xor byte [esi + ebx], al
inc esi
cmp esi, edi
jb 0x44ac95
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x44af76
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
dec dword [0x49205c]
jne 0x44af87
call fcn.00442b75
mov ecx, dword [0x4a753c]
mov eax, dword [ecx]
add ecx, 4
mov dword [0x4a753c], ecx
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov edx, eax
and edx, 0xff3a58ad
shl edx, 7
xor eax, edx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov edx, eax
shr edx, 0x12
xor edx, eax
mov dword [ebp - 4], edx
fild dword [ebp - 4]
jns 0x44afce
fadd qword [0x48bd70]
fmul qword [0x48bd78]
mov esp, ebp
pop ebp
ret

Function at 0x44b110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10010
call fcn.00422880
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0x34]
push 0x1f5
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 0xffff
mov dword [esi + 0x10], 0xffff
call fcn.00411777
mov edx, dword [esi + 0x2c]
add esp, 4
push 0
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push 0xffff
lea ecx, [ebp - 0x10010]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x44b239
push ebx
cmp dword [ebp - 4], 0
jbe 0x44b238
lea ebx, [esi + 0x14]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
cmp dword [esi + 0x10], eax
jae 0x44b1ed
mov ecx, dword [esi + 0xc]
add ecx, dword [ebp - 4]
mov edi, dword [esi + 8]
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
jns 0x44b1a6
fadd qword [0x48bd70]
fmul qword [0x48bda8]
fnstcw word [ebp + 0xa]
movzx eax, word [ebp + 0xa]
or eax, 0xc00
mov dword [ebp - 8], eax
fldcw word [ebp - 8]
fistp qword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
push eax
mov dword [esi + 0x10], eax
fldcw word [ebp + 0xa]
call fcn.00411777
mov edx, dword [esi + 0xc]
push edx
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
push edi
push eax
call fcn.00411000
push edi
call fcn.0041137c
mov edi, dword [ebp - 0x10]
add esp, 0x14
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0xc]
add eax, dword [esi + 8]
push ecx
lea edx, [ebp - 0x10010]
push edx
push eax
call fcn.00411000
mov ecx, dword [ebp - 4]
add dword [esi + 0xc], ecx
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [esi + 0x2c]
push 0
lea edx, [ebp - 4]
push edx
push 0xffff
lea eax, [ebp - 0x10010]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x44b170
pop ebx
push 0x1f6
push edi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
pop edi
mov eax, 0x1f6
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x44b2c2
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x30], 0
lea esi, [edi + 0x30]
je 0x44b32c
mov eax, dword [edi + 0x34]
push ebx
lea ebx, [edi + 0x34]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp eax, 0x1f6
je 0x44b32b
add edi, 0x14
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [esi]
push 0x1f6
push ecx
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
mov edx, dword [esi]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call fcn.00432bdb
add esp, 4
push 0x1f6
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x44b332
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x30], 0
jne 0x44b358
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x44b252
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x30], eax
pop esi
pop ebp
ret 4

Function at 0x44b7b7
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x22c
lea eax, [ebp - 0x22c]
call fcn.004102f0
lea eax, [ebp - 0x22c]
push eax
call fcn.00433f41
add esp, 4
test al, al
jne 0x44b7e5
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
jne 0x44b804
lea ecx, [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
setne al
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x22c]
push edx
call fcn.00411361
xor ecx, ecx
mov word [ebp + eax*2 - 0x22a], cx
add esp, 4
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x22c]
mov eax, 0x614
push ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 3
mov word [ebp - 0x10], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b859
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x438
push ebx
mov bl, byte [ebp + 0x10]
lea eax, [ebp - 0x438]
call fcn.004102f0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
call fcn.004102f0
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x438]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x44b8d3
test bl, bl
je 0x44b8fd
lea edx, [ebp - 0x22c]
push edx
lea eax, [ebp - 0x438]
push eax
call fcn.004132dc
add esp, 8
test eax, eax
je 0x44b8cc
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x438]
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x438]
push eax
call fcn.00433f41
add esp, 4
test al, al
je 0x44b8fd
lea ecx, [ebp - 0x22c]
push ecx
call fcn.00433f41
add esp, 4
test al, al
je 0x44b904
test bl, bl
jne 0x44b92a
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x22c]
push edx
call fcn.00433b76
add esp, 4
test al, al
je 0x44b8fd
lea eax, [ebp - 0x22c]
push eax
call fcn.00433f41
add esp, 4
test al, al
je 0x44b8fd
lea ecx, [ebp - 0x438]
push str..
push ecx
call fcn.004116d6
lea edx, [ebp - 0x438]
push edx
call fcn.00411361
lea edx, [ebp - 0x22c]
xor ecx, ecx
push edx
mov word [ebp + eax*2 - 0x436], cx
call fcn.00411361
xor ecx, ecx
mov word [ebp + eax*2 - 0x22a], cx
lea edx, [ebp - 0x438]
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x18], edx
add esp, 0x10
mov dword [ebp - 0x14], eax
xor eax, eax
lea edx, [ebp - 0x20]
mov ecx, 0x614
push edx
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 2
mov word [ebp - 0x10], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44b9ae
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10b4
call fcn.00422880
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [esp + 0x438]
xor bl, bl
call fcn.004102f0
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x648]
call fcn.004102f0
lea eax, [esp + 0x648]
push eax
lea ecx, [esp + 0x43c]
push ecx
call fcn.00433eb1
lea edx, [esp + 0x440]
push edx
mov byte [esp + 0x1b], al
call fcn.00433f41
add esp, 0xc
test al, al
je 0x44ba23
lea eax, [esp + 0x438]
push str..
push eax
call fcn.004116d6
add esp, 8
lea ecx, [esp + 0x648]
push ecx
call fcn.00433f41
add esp, 4
test al, al
je 0x44ba4c
lea edx, [esp + 0x648]
push str..
push edx
call fcn.004116d6
add esp, 8
lea eax, [esp + 0xcb0]
push eax
lea ecx, [esp + 0xebc]
push ecx
lea edx, [esp + 0xab0]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x448]
push ecx
call fcn.00413bbe
add esp, 0x14
lea edx, [esp + 0x858]
push edx
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
mov byte [esp + 0xe], 1
cmp esi, 0xffffffff
je 0x44bc02
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp byte [esp + 0xe], 1
jne 0x44bc02
test byte [esp + 0x858], 0x10
jne 0x44bbe2
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x64c]
push edx
lea eax, [esp + 0xcb8]
push eax
lea ecx, [esp + 0xec4]
push ecx
lea edx, [esp + 0x894]
push edx
call fcn.00433d2d
add esp, 0x14
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00411707
lea edx, [esp + 0xab0]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004116d6
lea ecx, [esp + 0x894]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.004116d6
lea eax, [esp + 0x240]
push eax
call fcn.00433fa3
add esp, 0x1c
test al, al
je 0x44bb60
cmp byte [ebp + 0x10], 0
je 0x44bbb9
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x44bbc9
lea eax, [esp + 0x228]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp + 0x14], 1
jne 0x44bba4
cmp byte [esp + 0xf], 0
jne 0x44bb82
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
jmp 0x44bbb5
push 0
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
je 0x44bbb9
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x44bbb5
push 0
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x20]
push ecx
call edi
test eax, eax
jne 0x44bbe0
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x228]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x44bbb9
mov bl, 1
lea ecx, [esp + 0x858]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x44baa5
mov byte [esp + 0xe], al
jmp 0x44baa5
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44bc12
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa88
mov ecx, dword [ebp + 8]
push ebx
push esi
lea eax, [esp + 0x18]
mov byte [esp + 0xf], 0
call fcn.004102f0
lea eax, [esp + 0x18]
push eax
call fcn.00433f41
add esp, 4
test al, al
je 0x44bc54
lea ecx, [esp + 0x18]
push str..
push ecx
call fcn.004116d6
add esp, 8
lea edx, [esp + 0x680]
push edx
lea eax, [esp + 0x88c]
push eax
lea ecx, [esp + 0x480]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00413bbe
add esp, 0x14
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
mov bl, 1
cmp esi, 0xffffffff
je 0x44bd19
cmp bl, 1
jne 0x44bd19
test byte [esp + 0x228], 0x10
jne 0x44bcf3
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x17], bl
call fcn.00411707
lea edx, [esp + 0x480]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.004116d6
lea ecx, [esp + 0x264]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.004116d6
add esp, 0x18
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x44bd0a
lea ecx, [esp + 0x228]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x44bc9a
xor bl, bl
jmp 0x44bc9a
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov al, byte [esp + 0xf]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451f07
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
call fcn.00401c30
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
inc dword [eax]
mov dword [ebp - 0x18], eax
mov edi, 0x489b80
mov eax, esi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
call fcn.0040d510
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x278]
push eax
push ecx
mov bl, 1
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x452070
nop
mov edx, dword [ebp - 0x14]
push edx
call fcn.004427ec
cmp eax, 1
je 0x45206e
cmp eax, 0xb
jne 0x451f88
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x451f67
lea eax, [ebp - 0x24c]
push 0x486cfc
push eax
call fcn.004132dc
add esp, 8
test eax, eax
je 0x452053
lea ecx, [ebp - 0x24c]
push 0x489b88
push ecx
call fcn.004132dc
add esp, 8
test eax, eax
je 0x452053
lea edx, [ebp - 0x24]
push edx
lea esi, [ebp - 0x10]
call fcn.0040e410
lea edi, [ebp - 0x24c]
mov eax, esi
call fcn.0040d510
test byte [ebp - 0x278], 0x10
je 0x45202a
cmp byte [ebp + 0x18], 0
mov esi, dword [ebp + 0x14]
je 0x451ff2
add dword [esi], 1
adc dword [esi + 4], 0
cmp byte [ebp + 0x1c], 0
je 0x452053
mov edi, 0x4846b4
lea eax, [ebp - 0x10]
call fcn.0040d510
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
push esi
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.00451f07
mov bl, al
test bl, bl
je 0x452070
jmp 0x452053
mov ecx, dword [ebp - 0x25c]
mov eax, dword [ebp + 0xc]
xor edx, edx
or edx, dword [ebp - 0x258]
xor esi, esi
or ecx, esi
add dword [eax], edx
adc dword [eax + 4], ecx
cmp byte [ebp + 0x18], 0
je 0x452053
mov eax, dword [ebp + 0x10]
add dword [eax], 1
adc dword [eax + 4], esi
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x278]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x451f67
jmp 0x452070
xor bl, bl
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea ecx, [ebp - 0x24]
call fcn.00402260
lea ecx, [ebp - 0x10]
call fcn.00402260
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x453308
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0xa54
lea eax, [ebp - 0x440]
call fcn.004102f0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x234]
call fcn.004102f0
lea eax, [ebp - 0x440]
push eax
call fcn.00433f41
add esp, 4
test al, al
jne 0x453344
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x234]
push ebx
push ecx
call fcn.00433f41
add esp, 4
xor ebx, ebx
test al, al
je 0x453429
cmp byte [ebp + 0x10], bl
je 0x453488
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x440]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x4533be
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x440]
push edx
call fcn.004132dc
add esp, 8
test eax, eax
je 0x4533b7
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x440]
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
setne al
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x644]
push edx
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0xa54]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x440]
push eax
call fcn.00413bbe
lea ecx, [ebp - 0x234]
push 0x4846b4
push ecx
call fcn.004116d6
lea edx, [ebp - 0x848]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.004116d6
add esp, 0x24
cmp word [ebp - 0x644], bx
je 0x453429
lea ecx, [ebp - 0x644]
push ecx
lea edx, [ebp - 0x234]
push edx
call fcn.004116d6
add esp, 8
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x440]
push ecx
call fcn.00433eb1
add esp, 8
test al, al
lea edx, [ebp - 0x234]
lea eax, [ebp - 0x440]
je 0x45347a
push 1
push edx
push eax
call fcn.0044b859
add esp, 0xc
test al, al
je 0x453488
lea ecx, [ebp - 0x440]
push 1
push ecx
call fcn.0044b7b7
add esp, 8
test al, al
setne al
pop ebx
mov esp, ebp
pop ebp
ret
push edx
push eax
call fcn.004132dc
add esp, 8
test eax, eax
jne 0x45348f
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x440]
push ecx
call fcn.00411361
xor edx, edx
mov word [ebp + eax*2 - 0x43e], dx
lea eax, [ebp - 0x234]
push eax
call fcn.00411361
xor ecx, ecx
lea edx, [ebp - 0x440]
mov word [ebp + eax*2 - 0x232], cx
mov dword [ebp - 0x18], edx
add esp, 8
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x234]
mov ecx, 0x614
push edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x10], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457664
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.0040bf10
xor ebx, ebx
push 0x3c
lea eax, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], 1
call fcn.004130e0
mov esi, dword [ebp + 0x10]
add esp, 0xc
cmp dword [ebp + 0x14], 2
jb 0x4576bf
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 4]
push eax
call fcn.00452e81
cmp word [eax], bx
je 0x4576bf
mov edx, dword [esi + 4]
mov eax, dword [edx + 4]
push eax
call fcn.00452e81
mov edi, eax
call fcn.00410330
mov ebx, eax
cmp dword [ebp + 0x14], 3
jb 0x4576db
mov eax, dword [esi + 4]
mov eax, dword [eax + 8]
push eax
call fcn.00452e81
mov edi, eax
call fcn.00410330
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 4
jb 0x457715
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0xc]
push eax
call fcn.00452e81
cmp word [eax], 0
je 0x457715
mov edx, dword [esi + 4]
mov edi, dword [edx + 0xc]
push edi
call fcn.0044aa8e
test al, al
jne 0x457715
push edi
call fcn.00452e60
push eax
lea esi, [ebp - 0x18]
call fcn.0040e410
mov esi, dword [ebp + 0x10]
cmp dword [ebp + 0x14], 5
jb 0x45772c
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x10]
call fcn.0040c8f0
movzx ecx, ax
mov dword [ebp - 8], ecx
push 0x3c
lea edx, [ebp - 0x54]
push 0
push edx
call fcn.004130e0
mov eax, dword [ebp - 0x18]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], pe_nt_image_headers32
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], eax
mov eax, dword [ecx]
add esp, 0xc
push eax
call fcn.00452e81
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, eax
test ebx, ebx
je 0x45778d
push ebx
call fcn.0041137c
add esp, 4
test edi, edi
je 0x45779a
push edi
call fcn.0041137c
add esp, 4
test esi, esi
jne 0x4577d8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
push 1
add eax, ecx
call fcn.00403f40
mov esi, dword [ebp + 0x18]
call fcn.004091e0
mov dword [esi + 8], 1
mov dword [esi], 0
lea ecx, [ebp - 0x18]
call fcn.00402260
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp byte [ebp + 0xc], 0
je 0x4577fd
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x450], eax
lea ecx, [ebp - 0x18]
call fcn.00402260
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov esi, dword [ebp + 0x18]
call fcn.004091e0
mov eax, dword [ebp - 0x1c]
mov dword [esi + 8], 1
mov dword [esi], 1
test eax, eax
je 0x4577c5
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x18]
call fcn.00402260
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x457977
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2030
call fcn.00422880
push ebx
push esi
push edi
lea ecx, [ebp - 0x18]
call fcn.0040bf10
lea ecx, [ebp - 0x28]
call fcn.0040bf10
mov eax, dword [ebp + 8]
push eax
xor esi, esi
call fcn.00452e81
mov edi, eax
movzx eax, word [edi]
xor bl, bl
mov dword [ebp - 8], edi
test ax, ax
je 0x457aa1
mov edi, edi
inc esi
cmp ax, 0x25
jne 0x457a7c
cmp word [edi + esi*2], ax
jne 0x4579da
push 0x25
lea eax, [ebp - 0x18]
mov bl, 1
call fcn.004032d0
inc esi
jmp 0x457a85
mov ebx, 0x483f68
lea eax, [ebp - 0x28]
call fcn.00402170
movzx eax, word [edi + esi*2]
cmp eax, 0x25
je 0x457a13
lea esp, [esp]
test ax, ax
je 0x457a13
movzx eax, ax
push eax
lea eax, [ebp - 0x28]
call fcn.004032d0
movzx eax, word [edi + esi*2 + 2]
inc esi
cmp eax, 0x25
jne 0x4579f7
cmp word [edi + esi*2], 0
je 0x457aba
mov eax, dword [ebp - 0x28]
push 0xfff
lea edx, [ebp - 0x202c]
push edx
xor ecx, ecx
push eax
inc esi
mov word [ebp - 0x202c], cx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
lea eax, [ebp - 0x18]
je 0x457a57
lea edi, [ebp - 0x202c]
call fcn.0040d510
mov edi, dword [ebp - 8]
mov bl, 1
jmp 0x457a85
mov edi, 0x48b184
mov bl, 1
call fcn.0040d510
lea ecx, [ebp - 0x28]
push ecx
lea eax, [ebp - 0x18]
call fcn.0040bff0
lea eax, [ebp - 0x18]
call fcn.0040d510
mov edi, dword [ebp - 8]
jmp 0x457a85
push eax
lea eax, [ebp - 0x18]
call fcn.004032d0
movzx eax, word [edi + esi*2]
test ax, ax
jne 0x4579b7
test bl, bl
je 0x457aa1
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x18]
call fcn.0040e870
lea ecx, [ebp - 0x28]
call fcn.00402260
lea ecx, [ebp - 0x18]
call fcn.00402260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, 0x48b184
lea eax, [ebp - 0x18]
call fcn.0040d510
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x18]
call fcn.0040bff0
jmp 0x457a96
Function at 0x458058
Capabilities:
Connect network resource
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor eax, eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
call fcn.0040bf10
lea ecx, [ebp - 0x1c]
call fcn.0040bf10
lea ecx, [ebp - 0x3c]
call fcn.0040bf10
mov ebx, str.SOFTWAREClasses_
lea eax, [ebp - 0x2c]
call fcn.00402170
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x2c]
call fcn.0040d510
mov edi, str.CLSID
lea eax, [ebp - 0x2c]
call fcn.0040d510
mov ebx, 0x483f68
lea eax, [ebp - 0x1c]
call fcn.00402170
test esi, esi
je 0x4580e1
cmp word [esi], 0x5c
je 0x4580e1
cmp word [esi + 2], 0x5c
je 0x4580e1
mov ebx, 0x48a47c
lea eax, [ebp - 0x1c]
call fcn.00402170
mov edi, esi
lea eax, [ebp - 0x1c]
call fcn.0040d510
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x458138
push 0x20
lea eax, [ebp - 0x5c]
push 0
push eax
call fcn.004130e0
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x58], 0
call fcn.0040e410
mov edi, str.IPC_
mov eax, esi
call fcn.0040d510
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x3c]
push 0
push ebx
push eax
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x48], edx
call dword [sym.imp.MPR.dll_WNetAddConnection2W]
mov edi, eax
test edi, edi
js 0x4581ce
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 8]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
mov edi, eax
test edi, edi
jne 0x4581ce
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push eax
mov eax, dword [ebp - 8]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
test edi, edi
jne 0x4581c8
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp - 0x264]
push edx
push 0
push 0
push 0
push eax
mov dword [ebp + 0xc], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x4581c2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
shr eax, 1
xor ecx, ecx
mov dword [ebp + 0xc], eax
mov word [ebp + eax*2 - 0x264], cx
push edx
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov edi, eax
mov ecx, dword [ebp - 0xc]
push ecx
call esi
mov edx, dword [ebp - 8]
push edx
call esi
lea ecx, [ebp - 0x3c]
call fcn.00402260
lea ecx, [ebp - 0x1c]
call fcn.00402260
lea ecx, [ebp - 0x2c]
call fcn.00402260
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret