joyce8/EMBER2024-capa huggingface dataset:
Function at 0x536be8
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x536bf0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050a0
xor eax, eax
push ebp
push 0x536d21
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x536ce6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404c88
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404eb0
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.00405110
mov eax, dword [ebp - 0xc]
mov edx, 0x536d38
call fcn.00404ffc
je 0x536c63
lea eax, [ebp - 8]
mov edx, 0x536d38
call fcn.00404eb8
push 0
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402fdc
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.0040a188
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.00404efc
mov eax, dword [ebp - 0x10]
call fcn.004050b0
push eax
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.00402fdc
mov eax, dword [ebp - 0x1c]
call fcn.004050b0
push eax
call sub.kernel32.dll_CopyFileA
push 5
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00402fdc
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0040a188
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 8]
call fcn.00404efc
mov eax, dword [ebp - 0x20]
call fcn.004050b0
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x536cf0
push 0x1f4
call sub.kernel32.dll_Sleep_1
call fcn.005369f0
push 0
call sub.kernel32.dll_ExitProcess_1

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd5c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2a4], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004050a0
xor eax, eax
push ebp
push 0x53a023
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x539ff3
push dword fs:[edx]
mov dword fs:[edx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x2a0]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x2a0]
mov edx, dword [ebp - 4]
call fcn.0040a3e4
lea eax, [ebp - 0x2a0]
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x539fe5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x539fdf
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
test ebx, ebx
je 0x539fd9
push dword [ebx]
call sub.wsock32.dll_inet_ntoa
lea edx, [ebp - 0x2a4]
call fcn.0040a554
mov edx, dword [ebp - 0x2a4]
mov eax, esi
call fcn.00404c44
mov byte [ebp - 5], 1
jmp 0x539fe9
mov byte [ebp - 5], 0
jmp 0x539fe9
mov byte [ebp - 5], 0
jmp 0x539fe9
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x539ffd
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53a02a
lea eax, [ebp - 0x2a4]
call fcn.00404bf0
lea eax, [ebp - 4]
call fcn.00404bf0
ret
Function at 0x53ab9c
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], edx
mov esi, eax
xor eax, eax
push ebp
push 0x53ac32
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x44
call fcn.0040361c
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], 5
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
mov edx, esi
call fcn.00404de8
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.0040a06c
mov eax, dword [ebp - 0x58]
call fcn.004050b0
push eax
push 0
push 0x40
push 0
push 0
push 0
push esi
push 0
call sub.kernel32.dll_CreateProcessA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53ac39
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00404c14
ret
Function at 0x40db7f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x822d30]
jne 0x40db89
repz ret
jmp fcn.004111dc

Function at 0x40f892
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x822d30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00408648
and dword [ebp - 0x14], 0
cmp dword [0x824368], 0
mov dword [ebp - 0x18], eax
jne 0x40f945
push 0x404658
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40f9ed
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40464c
push ebx
call edi
test eax, eax
je 0x40f9ed
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40463c
push ebx
mov dword [0x824368], eax
call edi
push eax
call esi
push 0x404628
push ebx
mov dword [0x82436c], eax
call edi
push eax
call esi
push 0x40460c
push ebx
mov dword [0x824370], eax
call edi
push eax
call esi
mov dword [0x824378], eax
test eax, eax
je 0x40f945
push 0x4045f4
push ebx
call edi
push eax
call esi
mov dword [0x824374], eax
mov eax, dword [0x824374]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40f99e
cmp dword [0x824378], ecx
je 0x40f99e
push eax
call esi
push dword [0x824378]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40f99e
test ebx, ebx
je 0x40f99e
call edi
test eax, eax
je 0x40f995
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40f995
test byte [ebp - 8], 1
jne 0x40f99e
or dword [ebp + 0x10], 0x200000
jmp 0x40f9d1
mov eax, dword [0x82436c]
cmp eax, dword [ebp - 0x18]
je 0x40f9d1
push eax
call esi
test eax, eax
je 0x40f9d1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40f9d1
mov eax, dword [0x824370]
cmp eax, dword [ebp - 0x18]
je 0x40f9d1
push eax
call esi
test eax, eax
je 0x40f9d1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x824368]
call esi
test eax, eax
je 0x40f9ed
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40f9ef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040db7f
leave
ret
Function at 0x80bc90
Capabilities:
Delete directory
Get common file path
Read file on windows
Set console window title

Disassembly:
mov eax, 0x1464
call fcn.004113a0
cmp dword [0xba93d8], 0x37
jne 0x80bd82
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x40600c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FreeUserPhysicalPages]
push 0
lea edx, [esp + 0x868]
push edx
push 0x406028
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0
lea eax, [esp + 0xc68]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
lea edx, [esp + 0x14]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
push 0x406054
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
lea eax, [esp + 8]
push eax
push 0x406088
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
push 0x4060c0
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push 0
lea ecx, [esp + 0x68]
push ecx
push 0
push 0x4060f4
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
lea edx, [esp + 0x464]
push edx
push 0
push 0x40612c
push 0x406140
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push 0
push 0
push 0
push 0x406144
push 0x406174
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov eax, dword [0xba93dc]
mov dword [esp], eax
mov eax, 0x5d1
add dword [esp], eax
mov ecx, dword [esp]
mov dl, byte [ecx + esi]
mov eax, dword [0x82943c]
mov byte [eax + esi], dl
add esp, 0x1464
ret
Function at 0x80bf40
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0xba93d8]
sub esp, 0x1d4
push ebx
push ebp
push esi
mov esi, dword [0x82943c]
shr eax, 3
push edi
test eax, eax
je 0x80c0f5
mov dword [esp + 0x38], 0x9e3779b9
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], eax
jmp 0x80bf76
mov esi, dword [esp + 0x1c]
cmp dword [0xba93d8], 0x1c
jne 0x80bf93
lea eax, [esp + 0x3c]
push eax
push 0
lea ecx, [esp + 0x4c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov edx, dword [0x823330]
mov ecx, dword [0x823334]
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [0x823338]
mov dword [esp + 0x30], ecx
mov ecx, dword [0x82333c]
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x28], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], 0x20
jmp 0x80bfd7
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x34]
shl ecx, 4
add ecx, dword [esp + 0x28]
add eax, ebx
xor edx, ecx
xor edx, eax
sub edi, edx
mov ecx, edi
shl ecx, 4
mov dword [0xba835c], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0xba93d8], 0x1be
lea ebp, [ebx + edi]
jne 0x80c02c
lea edx, [esp + 0x40]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x30]
cmp dword [0xba93d8], 0x979
mov dword [0xba8360], 0xff6b3619
mov dword [0xba8364], 0xffffffff
jne 0x80c065
lea eax, [esp + 0xa0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
xor esi, ebp
xor dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x38]
add dword [esp + 0x18], eax
sub ebx, dword [esp + 0x18]
dec dword [esp + 0x20]
jne 0x80bfd3
cmp dword [0xba93d8], 0x8d4
jne 0x80c0a8
lea ecx, [esp + 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], edi
cmp dword [0xba93d8], 0x17
jne 0x80c0e4
push 0
push 0
push 0
push 0x405ec0
push 0x405f20
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0xa0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
add esi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], esi
jne 0x80bf72
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d4
ret
Function at 0x1d3b108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01d3b258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1d3b12e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d3b11a
add dl, dl
jne 0x1d3b139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d3b18c
xor eax, eax
add dl, dl
jne 0x1d3b146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1d3b22d
add dl, dl
jne 0x1d3b155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d3b160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d3b16b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d3b176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1d3b182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1d3b125
mov eax, 1
add dl, dl
jne 0x1d3b19a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1d3b1a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d3b191
sub eax, ebx
mov ebx, 1
jne 0x1d3b1d8
mov ecx, 1
add dl, dl
jne 0x1d3b1be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1d3b1c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d3b1b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d3b125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1d3b1ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1d3b1fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1d3b1e6
cmp eax, 0x7d00
jae 0x1d3b21d
cmp eax, 0x500
jb 0x1d3b218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d3b125
cmp eax, 0x7f
ja 0x1d3b220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1d3b125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1d3b24e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1d3b125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x43322f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x43323e
pop dword [ebp - 0x2c]
mov eax, 0xeea67920
add eax, 0x119cb91e
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xdfff6446
add dword [ebp - 0x3c], 0x6e52e105
mov dword [ebp - 0x38], 0xfa1c5899
add dword [ebp - 0x38], 0x3816f3ac
mov dword [ebp - 0x34], 0xab65c910
add dword [ebp - 0x34], 0xa0e67b1e
mov dword [ebp - 0x30], 0x5c24c050
sub dword [ebp - 0x30], 0x5c24c050
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x36bea21e
add dword [ebp - 0x3c], 0x3db3c738
mov dword [ebp - 0x38], 0xccbe7e5f
add dword [ebp - 0x38], 0x74ade316
mov dword [ebp - 0x34], 0x6edb59f8
sub dword [ebp - 0x34], 0xb6bed8c
mov dword [ebp - 0x30], 0x781fb059
add dword [ebp - 0x30], 0x87e04fa7
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x47ad2
push 0
call eax
mov ecx, 0x5a85
xor edx, edx
add edx, eax
mov esi, 0x1111c402
add esi, 0xef3403fe
add esi, dword [ebp - 0x2c]
mov ebx, 0x5a60d264
sub ebx, 0x1fe98c8d
add dword [ebp - 0x1c], esi
mov edi, dword [esi]
sub dword [ebp - 0x28], 0x1a38bfba
xor edi, ebx
mov dword [ebp - 0x18], 0x593e8b72
mov dword [edx], edi
add edx, 0xa000b701
sub edx, 0xa000b6fd
add esi, 4
loop 0x433352
add eax, 0x15ce7
mov ebx, eax
add eax, 0x69698ebf
sub eax, 0x69698eba
mov ecx, 0x2cdf6cda
add ecx, 0xd3609326
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x41eca0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41eca6
ret

Function at 0x42a5ac
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42a75d
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.0040504c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x42a774
call fcn.00404ca8
mov eax, ebx
call fcn.0041c5a4
mov edi, eax
dec edi
test edi, edi
jl 0x42a664
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041c578
mov edx, dword [0x4308b0]
call fcn.00403d38
test al, al
je 0x42a660
push dword [ebp - 0xc]
mov edx, esi
mov eax, ebx
call fcn.0041c578
lea edx, [ebp - 0x14]
call fcn.00437c58
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.0040504c
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404d1c
inc esi
dec edi
jne 0x42a612
mov al, byte [0x42a778]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x42a784
mov eax, dword [ebp - 0xc]
call fcn.0040e01c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404a34
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00437c58
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x42a774
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x2f8]
call fcn.00437c58
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x42a774
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x42a774
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x42a790
call fcn.0040a1b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a764
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004049c0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004049c0
lea eax, [ebp - 0x14]
call fcn.0040499c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004049c0
ret

Function at 0x45a974
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
cmp edx, dword [ebp + 8]
jne 0x45a995
mov esi, eax
mov eax, edx
test eax, eax
jbe 0x45a991
mov dl, byte [esi]
xor dl, 8
mov byte [ecx], dl
inc esi
inc ecx
dec eax
jne 0x45a985
mov al, 1
jmp 0x45a997
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x45a99c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
cmp edx, dword [ebp + 8]
jne 0x45a9bd
mov esi, eax
mov eax, edx
test eax, eax
jbe 0x45a9b9
mov dl, byte [esi]
xor dl, 8
mov byte [ecx], dl
inc esi
inc ecx
dec eax
jne 0x45a9ad
mov al, 1
jmp 0x45a9bf
xor eax, eax
pop esi
pop ebp
ret 4

Function at 0x45af70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x45af89
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x45af82
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x45af9b
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x45af94
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.0045ab64
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x45afb5
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.0045ac74
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x45b03a
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x45b057
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.0045abf4
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x45b080
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40189c
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00401a4c
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x40199a
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40193d
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401980
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401954
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x40196f
test al, 0x40
je 0x401966
mov ecx, dword [edi + 0x20]
jmp 0x40196d
test al, 0x80
je 0x401980
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401980
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40190c
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40b710
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47776b
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.0046a107
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b792
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004679ed
mov eax, dword [eax]
push 0x4b31d0
push eax
call fcn.0045a6a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046a392
test bl, bl
je 0x40b792
push 0x4b31d0
lea ecx, [esp + 0xc]
call fcn.0046a76e
push 0x4b6d4c
lea ecx, [esp + 0xc]
call fcn.0046a76e
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 0x40b7ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046a392
jmp 0x40b899
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 0x40b852
lea edx, [esp + 0x7c]
push 0x4b6d48
push edx
call fcn.0045a6a4
add esp, 8
test eax, eax
je 0x40b852
lea eax, [esp + 0x7c]
push 0x4b6d44
push eax
call fcn.0045a6a4
add esp, 8
test eax, eax
je 0x40b852
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 0x40b7e2
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.0046a392
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 0x40c090
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 0x40c0f2
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