joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426ed0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
lea eax, [ebp - 0x128]
push ebx
push eax
push dword [ebp + 8]
call fcn.004266c7
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0xc]
call fcn.004266c7
lea eax, [ebp - 0x128]
push eax
call fcn.004266ae
add esp, 0x14
test al, al
je 0x426f58
lea eax, [ebp - 0x230]
push eax
call fcn.004266ae
xor ebx, ebx
pop ecx
test al, al
je 0x426f23
cmp byte [ebp + 0x10], bl
je 0x426f58
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.004267b4
pop ecx
test al, al
pop ecx
je 0x426f73
lea eax, [ebp - 0x230]
push 1
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00426ded
add esp, 0xc
test al, al
jne 0x426f5c
xor al, al
jmp 0x426fd6
lea eax, [ebp - 0x128]
push 1
push eax
call fcn.00426fd9
pop ecx
test al, al
pop ecx
setne al
jmp 0x426fd6
lea eax, [ebp - 0x128]
push eax
call fcn.00428ea0
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x230]
push eax
call fcn.00428ea0
mov byte [ebp + eax - 0x22f], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x230]
pop ecx
mov dword [ebp - 0x14], eax
pop ecx
lea eax, [ebp - 0x20]
push 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], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x426fd9
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
lea eax, [ebp - 0x128]
push ebx
push eax
push dword [ebp + 8]
call fcn.004266c7
lea eax, [ebp - 0x128]
push eax
call fcn.004266ae
add esp, 0xc
test al, al
je 0x427062
xor ebx, ebx
lea eax, [ebp - 0x128]
cmp byte [ebp + 0xc], bl
push eax
jne 0x427020
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
jmp 0x427062
call fcn.00428ea0
mov byte [ebp + eax - 0x127], bl
lea eax, [ebp - 0x128]
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
push 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], 3
mov word [ebp - 0x10], 0x614
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb al, al
inc al
pop ebx
leave
ret

Function at 0x427157
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
lea eax, [ebp - 0x294]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4271de
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push eax
call sub.WSOCK32.dll_gethostname
lea eax, [ebp - 0x104]
push eax
call sub.WSOCK32.dll_gethostbyname
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x4271a6
mov ecx, eax
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x42719d
mov ecx, dword [ebp + 8]
cmp ecx, edx
jle 0x4271b4
push 0x435520
jmp 0x4271cf
push 4
push dword [eax + ecx*4 - 4]
lea eax, [ebp - 4]
push eax
call fcn.0042a0b0
add esp, 0xc
push dword [ebp - 4]
call sub.WSOCK32.dll_inet_ntoa
push eax
push dword [ebp + 0xc]
call fcn.00428db0
pop ecx
pop ecx
call sub.WSOCK32.dll_WSACleanup
leave
ret
Function at 0x427355
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp byte [0x44002c], bl
je 0x4273ba
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4273b6
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4273ba
xor eax, eax
jmp 0x4273fe
cmp byte [0x44002d], bl
je 0x4273d8
test byte [ebp + 8], 4
je 0x4273d8
xor dword [ebp + 8], 4
push ebx
push 0x427401
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp + 8]
cmp eax, 0x20
je 0x4273ef
cmp eax, 0x40
je 0x4273ef
push ebx
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4273fe
xor ecx, ecx
cmp eax, 0x20
sete cl
push ebx
push ecx
call sub.KERNEL32.dll_SetSystemPowerState
pop ebx
leave
ret

Function at 0x42756d
Capabilities:
Log keystrokes

Disassembly:
cmp byte [esp + 8], 1
jne 0x42758c
push 0x1388
push dword [esp + 8]
call fcn.0042754b
pop ecx
test al, al
pop ecx
jne 0x4275a8
push 1
jmp 0x42758e
push 0
push 0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
ret

Function at 0x42786e
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jl 0x4278f0
jne 0x427883
push 0
jmp 0x4278ea
mov al, byte [0x44002d]
neg al
sbb eax, eax
and eax, 0x2d
add eax, 0xa
cmp edi, eax
jae 0x4278e9
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x4278e9
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call esi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
sub eax, dword [ebp - 0x10]
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
fild qword [ebp - 0x18]
fild qword [ebp - 0x20]
fdivp st(1)
fmul qword [0x433030]
call fcn.004291f0
cmp eax, edi
jb 0x4278b0
jmp 0x4278f0
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
leave
ret

Function at 0x42809b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9cc
push edi
lea ecx, [ebp - 0x9cc]
call fcn.00428641
push dword [ebp + 0x10]
lea ecx, [ebp - 0x9cc]
call fcn.00428655
xor edi, edi
cmp dword [ebp + 0xc], edi
jbe 0x4280e0
push esi
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x9cc]
lea esi, [edi + eax]
call fcn.0042876f
xor byte [esi], al
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x4280c6
pop esi
pop edi
leave
ret 0xc
Function at 0x42811b
Capabilities:
Copy file
Delete file
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10e5c
call fcn.004294c0
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x388]
call fcn.004287bb
lea ecx, [ebp - 0xe5c]
call fcn.00428641
push 0
push dword [esi + 8]
push dword [esi]
call fcn.004295ad
add esp, 0xc
lea eax, [ebp - 0x490]
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.00428457
test eax, eax
je 0x42816e
push 6
jmp 0x42820b
push dword [esi]
lea eax, [ebp - 1]
push 1
pop ebx
push ebx
push ebx
push eax
call fcn.004296aa
push dword [esi]
lea eax, [ebp - 8]
push ebx
push 4
push eax
call fcn.004296aa
push dword [esi]
mov edi, dword [ebp - 8]
lea eax, [ebp - 8]
xor edi, 0x45aa
push ebx
push 4
push eax
call fcn.004296aa
push dword [esi]
lea eax, [ebp - 0x14]
push ebx
push 4
push eax
call fcn.004296aa
add esp, 0x40
lea eax, [ebp - 0x18]
push dword [esi]
push ebx
push 4
push eax
call fcn.004296aa
push dword [esi]
lea eax, [ebp - 0x1c]
push ebx
push 4
push eax
call fcn.004296aa
push dword [esi]
lea eax, [ebp - 0x20]
push ebx
push 4
push eax
call fcn.004296aa
add esp, 0x30
lea eax, [ebp - 0x128]
mov ecx, esi
push eax
call fcn.004280e5
lea eax, [ebp - 0x128]
push 0x435550
push eax
call fcn.00429697
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
pop ecx
jne 0x428211
push 9
pop eax
jmp 0x428328
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0xe5c]
add eax, 0x22af
push eax
call fcn.00428655
and dword [ebp + 8], 0
test edi, edi
jle 0x42829b
mov eax, dword [ebp + 8]
add eax, 0x10000
cmp eax, edi
jle 0x428240
mov ebx, edi
sub ebx, dword [ebp + 8]
jmp 0x428245
mov ebx, 0x10000
push dword [esi]
add dword [ebp + 8], ebx
lea eax, [ebp - 0x10e5c]
push ebx
push 1
push eax
call fcn.004296aa
and dword [ebp - 0xc], 0
add esp, 0x10
test ebx, ebx
jle 0x428281
lea ecx, [ebp - 0xe5c]
call fcn.0042876f
mov ecx, dword [ebp - 0xc]
xor byte [ebp + ecx - 0x10e5c], al
inc ecx
cmp ecx, ebx
mov dword [ebp - 0xc], ecx
jl 0x428264
push dword [ebp - 0x10]
lea eax, [ebp - 0x10e5c]
push ebx
push 1
push eax
call fcn.00429c2b
add esp, 0x10
cmp dword [ebp + 8], edi
jl 0x42822d
push dword [ebp - 0x10]
call fcn.004294ef
cmp byte [ebp - 1], 1
pop ecx
jne 0x4282f5
lea ecx, [ebp - 0x388]
call fcn.004287bb
and dword [ebp - 0x374], 0
and dword [ebp - 0x370], 0
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.00428db0
push dword [ebp + 0xc]
lea eax, [ebp - 0x25f]
push eax
call fcn.00428db0
add esp, 0x10
lea ecx, [ebp - 0x388]
call fcn.004287e7
jmp 0x428307
push 0
lea eax, [ebp - 0x128]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
call fcn.004285a3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x428655
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 1
mov dword [ecx], eax
pop edi
mov eax, ecx
mov edx, edi
mov esi, dword [eax]
add eax, 4
mov ebx, esi
shr ebx, 0x1e
xor ebx, esi
imul ebx, ebx, 0x6c078965
add ebx, edx
inc edx
mov dword [eax], ebx
cmp edx, 0x270
jl 0x428665
mov dword [ecx + 0x9c0], edi
mov dword [ecx + 0x9c4], edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x428696
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
cmp dword [esi + 0x9c4], 0
jne 0x4286bb
push 0
call fcn.004293e4
pop ecx
push eax
mov ecx, esi
call fcn.00428655
mov dword [esi + 0x9c0], 0x270
mov dword [esi + 0x9c8], esi
mov dword [esp + 0x10], 0xe3
mov edi, 0x7ffffffe
mov ecx, 0x9908b0df
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [eax + 0x630]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x4286dd
mov dword [esp + 0x10], 0x18c
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x428714
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
mov edx, dword [edx]
mov ebx, edx
and dl, 1
xor ebx, eax
and ebx, edi
pop edi
xor ebx, eax
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
mov dword [esi], ebx
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

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

Disassembly:
push esi
mov esi, ecx
dec dword [esi + 0x9c0]
jne 0x42877f
call fcn.00428696
mov edx, dword [esi + 0x9c8]
lea eax, [esi + 0x9c8]
pop esi
mov ecx, dword [edx]
add edx, 4
mov dword [eax], edx
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and ax, 0xdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret
Function at 0x401380
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
push esi
push edi
mov esi, eax
push esi
call ebx
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov ebp, eax
push 0x401120
push ebp
call dword [sym.imp.msvcrt.dll_swprintf]
add esp, 0x10
push ebp
call ebx
mov edi, eax
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov dword [esi + edi*2], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
mov edx, 0x414
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], esi
mov word [esp + 0x24], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push esi
mov edi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
test edi, edi
je 0x401498
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
call ebx
mov edi, eax
xor ecx, ecx
lea eax, [edi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov esi, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov dword [esi + edi*2], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
mov edx, 0x414
push eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], esi
mov word [esp + 0x24], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push esi
mov edi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
test edi, edi
jne 0x401425
push ebp
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x4015e0
Capabilities:
Create directory
Get common file path

Disassembly:
push ecx
mov eax, dword [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebp
push esi
push eax
push 0
call ebx
mov esi, eax
lea ecx, [esi + esi]
push ecx
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov ebp, eax
push ebp
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x401612
pop esi
pop ebp
pop ebx
pop ecx
ret
lea edx, [esi + esi + 0x18]
push edx
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
add esp, 4
mov dword [edi], eax
mov eax, dword [edi]
mov ecx, dword [esp + 0x14]
push eax
push 0
push ecx
push ebp
call ebx
mov edx, dword [edi]
add esi, 3
lea ecx, [esi + esi]
cmp word [ecx + edx], 0x2e
je 0x401651
lea eax, [ecx + edx]
add eax, 2
inc esi
cmp word [eax], 0x2e
jne 0x401647
xor eax, eax
mov word [edx + esi*2], ax
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401628
push ebp
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x401680
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push ebp
push esi
push edi
push 0x3c
lea eax, [esp + 0x10]
push 0
push eax
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 0xc
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x4c]
push 0x40122c
push 0x401210
mov dword [esp + 0x14], 0x3c
mov dword [esp + 0x18], 0x40
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x60], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
test eax, eax
je 0x4016fd
lea edx, [esp + 0x58]
push edx
call eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebp, dword [esp + 0x58]
test ebp, ebp
je 0x401726
push 0x40124c
push 0x401210
call esi
push eax
call edi
test eax, eax
je 0x401726
push ebp
call eax
mov eax, dword [esp + 0x44]
pop edi
pop esi
pop ebp
add esp, 0x3c
ret
Function at 0x401f40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x88
push ebp
mov ebp, dword [esp + 0x94]
mov edx, dword [ebp]
push edi
xor edi, edi
push edi
lea eax, [esp + 0x20]
push eax
push 0xd
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
inc eax
cmp eax, edi
jne 0x4020d4
mov eax, dword [esp + 0x1c]
push ebx
push esi
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00401ba0
movzx eax, byte [esp + 0x24]
cdq
shld edx, eax, 8
shl eax, 8
mov ecx, eax
movzx eax, byte [esp + 0x23]
mov ebx, edx
cdq
add ecx, eax
adc ebx, edx
movzx eax, byte [esp + 0x22]
shld ebx, ecx, 8
shl ecx, 8
cdq
add ecx, eax
movzx eax, byte [esp + 0x21]
adc ebx, edx
shld ebx, ecx, 8
shl ecx, 8
cdq
add ecx, eax
movzx eax, byte [esp + 0x20]
adc ebx, edx
shld ebx, ecx, 8
cdq
shl ecx, 8
add ecx, eax
movzx eax, byte [esp + 0x1f]
adc ebx, edx
shld ebx, ecx, 8
cdq
shl ecx, 8
add ecx, eax
movzx eax, byte [esp + 0x1e]
adc ebx, edx
shld ebx, ecx, 8
cdq
shl ecx, 8
add ecx, eax
movzx eax, byte [esp + 0x1d]
adc ebx, edx
mov edx, ecx
shld ebx, edx, 8
shl edx, 8
mov esi, edx
cdq
push 0x406004
add esi, eax
push 5
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
adc ebx, edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], edi
call fcn.00403cc0
add esp, 0x18
cmp eax, edi
jne 0x4020d2
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
mov edi, dword [esp + 0xac]
add edi, dword [esp + 0xb0]
push ebx
push esi
mov esi, dword [esp + 0xa4]
push ecx
push edx
push ebp
lea eax, [esp + 0x3c]
push esi
push eax
lea ecx, [esp + 0xc8]
call fcn.00401be0
lea ecx, [esp + 0x44]
push 0x406004
push ecx
mov dword [esp + 0x44], eax
call fcn.00403b70
mov edx, dword [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x24
push edx
call ebp
cmp dword [esp + 0xac], edi
jae 0x4020ce
jmp 0x4020a0
push esi
lea ebx, [esp + 0xb0]
call fcn.00401ad0
add esp, 4
test al, al
jne 0x4020dd
mov eax, dword [esi]
push eax
call ebp
mov eax, dword [esp + 0xac]
add eax, 8
mov dword [esp + 0xac], eax
cmp eax, edi
jb 0x4020a0
mov eax, dword [esp + 0x20]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x88
ret
pop esi
pop ebx
pop edi
mov eax, 9
pop ebp
add esp, 0x88
ret
Function at 0x404527
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x404a50
call fcn.00404844
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x4066a0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x4042ec
cmp eax, esi
jne 0x4042df
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4042ef
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4042c6
xor esi, esi
inc esi
mov eax, dword [0x40669c]
cmp eax, esi
jne 0x404302
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x404331
mov eax, dword [0x40669c]
test eax, eax
jne 0x40432b
mov dword [0x40669c], esi
push 0x40111c
push 0x401110
call fcn.00404232
pop ecx
pop ecx
test eax, eax
je 0x404331
jmp 0x404455
mov dword [0x406360], esi
mov eax, dword [0x40669c]
cmp eax, esi
jne 0x404355
push 0x40110c
push 0x401104
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40669c], 2
cmp dword [ebp - 0x20], ebx
jne 0x404362
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x4066a4], ebx
je 0x404383
push 0x4066a4
call fcn.00404774
pop ecx
test eax, eax
je 0x404383
push ebx
push 2
push ebx
call dword [0x4066a4]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x404455
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x4043ed
cmp cx, bx
je 0x4043a8
cmp dword [ebp - 0x1c], ebx
jne 0x4043ed
movzx ecx, word [eax]
cmp cx, bx
je 0x4043bd
cmp cx, 0x20
ja 0x4043bd
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x4043a8
test byte [ebp - 0x40], 1
je 0x4043c9
movzx ecx, word [ebp - 0x3c]
jmp 0x4043cc
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x40635c], eax
cmp dword [0x406350], ebx
jne 0x404432
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x4043fe
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x404392
cmp dword [0x406360], ebx
jne 0x404440
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40635c]
jmp 0x404461
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00404889
ret
call fcn.00404973
jmp 0x404289
Function at 0x40a970
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a19b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045ed85
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a9f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045cb6a
mov eax, dword [eax]
push 0x47f1f0
push eax
call fcn.0044ef04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045f010
test bl, bl
je 0x40a9f2
push 0x47f1f0
lea ecx, [esp + 0xc]
call fcn.0045f3a0
push 0x482d40
lea ecx, [esp + 0xc]
call fcn.0045f3a0
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40aa2e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045f010
jmp 0x40aaf9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40aab2
lea edx, [esp + 0x7c]
push 0x482d3c
push edx
call fcn.0044ef04
add esp, 8
test eax, eax
je 0x40aab2
lea eax, [esp + 0x7c]
push 0x482d38
push eax
call fcn.0044ef04
add esp, 8
test eax, eax
je 0x40aab2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40aa42
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045f010
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40b2f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40b352
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc