joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42458b
Capabilities:
Create thread
Get disk size
Get hostname
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
cmp dword [0x897174], 0x598
push ebx
push esi
jne 0x424615
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x401498
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
xor ebx, ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSize]
lea eax, [ebp - 8]
push eax
push ebx
push 0x4014a0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
xor eax, eax
mov dword [ebp - 0x28], ebx
lea edi, [ebp - 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push ebx
call fcn.0042508f
push ebx
push ebx
push ebx
call fcn.00424e6d
add esp, 0x10
call fcn.00424ccc
push ebx
call fcn.00424c34
mov esi, 0xa4808
xor ebx, ebx
cmp dword [0x897174], 0x57c
jne 0x42466e
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0x248]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetMailslotInfo]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
dec esi
jne 0x42461c
mov esi, dword [0x42f6d4]
add esi, 0xb2d3b
mov eax, 0x4317e0
mov dword [0x897174], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42468b
sub eax, edx
cmp eax, 0x1515
jne 0x424700
cmp esi, 0x18
jne 0x4246c6
push ebx
push ebx
push ebx
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov esi, dword [0x897174]
cmp esi, 0x9e6
jne 0x4246ea
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
call fcn.004248ca
push ebx
push ebx
call fcn.0042483b
push ebx
call fcn.0042508f
add esp, 0x10
call fcn.004243f0
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x425509
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430a6c]
jne 0x425513
repz ret
jmp fcn.00428d85
Function at 0x42a1e3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042600b
and dword [ebp - 4], 0
cmp dword [0x897d5c], 0
mov ebx, eax
jne 0x42a294
push 0x402cf4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42a345
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402ce8
push edi
call esi
test eax, eax
je 0x42a345
push eax
call fcn.00425f99
mov dword [esp], 0x402cd8
push edi
mov dword [0x897d5c], eax
call esi
push eax
call fcn.00425f99
mov dword [esp], 0x402cc4
push edi
mov dword [0x897d60], eax
call esi
push eax
call fcn.00425f99
mov dword [esp], 0x402ca8
push edi
mov dword [0x897d64], eax
call esi
push eax
call fcn.00425f99
pop ecx
mov dword [0x897d6c], eax
test eax, eax
je 0x42a294
push 0x402c90
push edi
call esi
push eax
call fcn.00425f99
pop ecx
mov dword [0x897d68], eax
mov eax, dword [0x897d68]
cmp eax, ebx
je 0x42a2ec
cmp dword [0x897d6c], ebx
je 0x42a2ec
push eax
call fcn.00426014
push dword [0x897d6c]
mov esi, eax
call fcn.00426014
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42a2ec
test edi, edi
je 0x42a2ec
call esi
test eax, eax
je 0x42a2e3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42a2e3
test byte [ebp - 0xc], 1
jne 0x42a2ec
or dword [ebp + 0x10], 0x200000
jmp 0x42a325
mov eax, dword [0x897d60]
cmp eax, ebx
je 0x42a325
push eax
call fcn.00426014
pop ecx
test eax, eax
je 0x42a325
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42a325
mov eax, dword [0x897d64]
cmp eax, ebx
je 0x42a325
push eax
call fcn.00426014
pop ecx
test eax, eax
je 0x42a325
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x897d5c]
call fcn.00426014
pop ecx
test eax, eax
je 0x42a345
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42a347
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5134f8
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x513749
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
call fcn.00469228
test eax, eax
jle 0x513715
lea eax, [ebp - 0xc]
xor ecx, ecx
mov dl, byte [0x513758]
call fcn.00474dbc
test al, al
je 0x513715
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
call fcn.00469228
imul eax, eax, 0x105
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x5134e4]
call fcn.004054b8
add esp, 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
call fcn.00469228
imul edx, eax, 0x105
mov eax, dword [ebp - 0x14]
call fcn.0040739c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
mov eax, dword [eax + 0x20c]
call fcn.004671f4
dec eax
test eax, eax
jl 0x513674
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
mov eax, dword [eax + 0x20c]
mov edx, dword [ebp - 8]
call fcn.00467224
mov edx, 3
call fcn.00466d54
test al, al
je 0x513668
lea eax, [ebp - 0x11d]
xor ecx, ecx
mov edx, 0x105
call fcn.00402c48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
mov eax, dword [eax + 0x20c]
mov edx, dword [ebp - 8]
call fcn.00467224
mov eax, dword [eax + 8]
lea ecx, [ebp - 0x140]
mov edx, 4
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x10]
call fcn.0040876c
mov eax, dword [ebp - 0x10]
call fcn.004040d8
mov edx, eax
lea eax, [ebp - 0x11d]
call fcn.00408f48
xor edi, edi
jmp 0x513655
mov eax, dword [ebp - 0x14]
mov byte [eax + esi], bl
inc esi
inc edi
mov bl, byte [ebp + edi - 0x11d]
test bl, bl
jne 0x51364d
mov eax, dword [ebp - 0x14]
mov byte [eax + esi], 0
inc esi
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x5135c5
mov eax, dword [ebp - 0x14]
mov byte [eax + esi], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3cc]
call fcn.00469228
test eax, eax
jle 0x513715
mov eax, dword [ebp - 4]
call fcn.00437324
mov dword [ebp - 0x13b], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x133], eax
mov eax, dword [ebp - 0xc]
call fcn.004040d8
mov dword [ebp - 0x12f], eax
mov dword [ebp - 0x137], 2
mov word [ebp - 0x12b], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x338]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x5c]
lea eax, [ebp - 0x13b]
push eax
call sub.shell32.dll_SHFileOperationA
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x338]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x5c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x513750
lea eax, [ebp - 0x140]
call fcn.00403c94
lea eax, [ebp - 0x14]
mov edx, dword [0x5134e4]
call fcn.004054c4
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403cb8
ret
Function at 0x5157c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004040c8
xor eax, eax
push ebp
push 0x51584d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00408adc
test al, al
je 0x515837
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004040d8
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
je 0x515837
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
cmp eax, 0x19000
ja 0x51582f
cmp byte [esi + 0x105d], 0
je 0x515831
mov bl, 1
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515854
lea eax, [ebp - 4]
call fcn.00403c94
ret
Function at 0x515cf0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x515e32
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
push 0
mov eax, 0x51ba60
mov ecx, 1
mov edx, dword [0x515cdc]
call fcn.004054b8
add esp, 4
call sub.kernel32.dll_GetLogicalDrives
mov edi, eax
xor esi, esi
mov ecx, esi
mov eax, 1
shl eax, cl
cmp edi, eax
jb 0x515e0c
test eax, edi
je 0x515e02
lea ebx, [esi + 0x41]
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00403e3c
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 8]
mov ecx, 0x515e4c
call fcn.00403f60
mov eax, dword [ebp - 8]
call fcn.004040d8
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 3
je 0x515d8d
cmp eax, 2
je 0x515d8d
cmp eax, 4
jne 0x515e02
cmp bl, 0x41
je 0x515e02
cmp bl, 0x42
je 0x515e02
lea eax, [ebp - 0x36]
xor ecx, ecx
mov edx, 0x1e
call fcn.00402c48
push 0x1e
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1e
lea eax, [ebp - 0x36]
push eax
mov eax, dword [ebp - 8]
call fcn.004040d8
push eax
call sub.kernel32.dll_GetVolumeInformationA
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x36]
call fcn.004090e4
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
push eax
mov eax, 0x51ba60
mov ecx, 1
mov edx, dword [0x515cdc]
call fcn.004054b8
add esp, 4
mov eax, dword [0x51ba60]
mov edx, dword [ebp - 4]
mov byte [eax + edx - 1], bl
inc esi
cmp esi, 0x1a
jne 0x515d3a
mov ebx, dword [ebp - 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x515e39
lea eax, [ebp - 0x58]
call fcn.00403c94
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403cb8
ret
Function at 0x516714
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1a4], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040c8
xor eax, eax
push ebp
push 0x516853
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403c94
mov eax, dword [ebp - 4]
call fcn.00403f14
test eax, eax
je 0x516832
mov eax, dword [ebp - 4]
call fcn.00403f14
cmp eax, 0x101
jge 0x516832
lea edx, [ebp - 0x1a4]
mov eax, dword [ebp - 4]
call fcn.0040876c
mov edx, dword [ebp - 0x1a4]
lea eax, [ebp - 0x109]
call fcn.00408fa4
mov eax, dword [ebp - 4]
call fcn.00516640
test al, al
je 0x5167a6
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040876c
jmp 0x516832
lea eax, [ebp - 0x109]
push eax
call sub.wsock32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x5167c4
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00403ce8
jmp 0x516832
lea eax, [ebp - 0x189]
xor ecx, ecx
mov edx, 0x80
call fcn.00402c48
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
lea eax, [ebp - 0x189]
mov ecx, 4
call fcn.00407394
lea edx, [ebp - 0x189]
lea eax, [ebp - 8]
mov ecx, 4
call fcn.00407394
lea eax, [ebp - 0x19d]
xor ecx, ecx
mov edx, 0x14
call fcn.00402c48
push dword [ebp - 8]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x19d]
call fcn.00408f48
mov edx, ebx
lea eax, [ebp - 0x19d]
call fcn.004090e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51685a
lea eax, [ebp - 0x1a4]
call fcn.00403c94
lea eax, [ebp - 4]
call fcn.00403c94
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x402c00
pop dword [ebp - 0x40]
mov eax, 0x402c00
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x62547bb
add dword [ebp - 0x50], 0x482cfd90
mov dword [ebp - 0x4c], 0x116f6d81
add dword [ebp - 0x4c], 0x20c3dec4
mov dword [ebp - 0x48], 0xc24ef566
add dword [ebp - 0x48], 0x89fd4ec8
mov dword [ebp - 0x44], 0x6b9f9a21
add dword [ebp - 0x44], 0x946065df
lea eax, [ebp - 0x50]
push eax
mov eax, 0xa25b8eb8
add eax, 0x5de4e1ac
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x6f5019ab
add dword [ebp - 0x50], 0x5224fab
mov dword [ebp - 0x4c], 0xf4230dac
sub dword [ebp - 0x4c], 0xb2b6ac37
mov dword [ebp - 0x48], 0x846f341b
sub dword [ebp - 0x48], 0x20ffc7af
mov dword [ebp - 0x44], 0x2a848fb4
add dword [ebp - 0x44], 0xd57b704c
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xcb76599e
sub eax, 0xcb35e8f6
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3a3d2
push 0
call eax
mov ecx, 0xbb14ad50
sub ecx, 0xbb14571d
xor edx, edx
add edx, eax
mov esi, 0x43fc52b
add esi, 0xfc013ad5
add esi, dword [ebp - 0x40]
mov ebx, 0xf6d986a5
sub ebx, 0xb390c569
mov edi, dword [esi]
add edi, ebx
xor dword [ebp - 0x30], ecx
mov dword [edx], edi
add edx, 0x75e4af37
add edx, 0x8a1b50cd
add esi, 4
loop 0x402d1f
add eax, 0x9f8be4e4
add eax, 0x607566bb
mov ebx, eax
add eax, 0xe8ed1239
add eax, 0x1712edcc
mov ecx, 0x295c968e
sub ecx, 0x291c968e
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x52e980
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd3000]
push edi
or ebp, 0xffffffff
jmp 0x52e9a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x52e9a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52e998
mov eax, 1
add ebx, ebx
jne 0x52e9bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x52e9cc
jne 0x52e9eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52e9eb
dec eax
add ebx, ebx
jne 0x52e9d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x52e9b0
add ebx, ebx
jne 0x52e9e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x52ea3d
xor ecx, ecx
sub eax, 3
jb 0x52ea03
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x52ea72
sar eax, 1
mov ebp, eax
jmp 0x52ea0e
add ebx, ebx
jne 0x52ea0e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52e9dc
inc ecx
add ebx, ebx
jne 0x52ea1c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x52e9dc
add ebx, ebx
jne 0x52ea29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52ea1e
jne 0x52ea3a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52ea1e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x52ea5c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x52ea4e
jmp 0x52e99e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x52ea5c
add edi, ecx
jmp 0x52e99e
pop esi
mov edi, esi
mov ecx, 0x4a3d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x52ea7a
cmp byte [edi], 0x22
jne 0x52ea7a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x52ea7f
lea edi, [esi + 0x12b000]
mov eax, dword [edi]
or eax, eax
je 0x52eaf7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12fe60]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12ff8c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52eaac
mov ecx, edi
jns 0x52eadb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12ff90]
or eax, eax
je 0x52eaf1
mov dword [ebx], eax
add ebx, 4
jmp 0x52eac9
call dword [esi + 0x12ffa0]
mov ebp, dword [esi + 0x12ff94]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52eb2b
sub esp, 0xffffff80
jmp 0x48d8a1
Function at 0x403ff0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret

Function at 0x405dc0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov dword [ebp - 0x438], 0
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftPowerShell
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405e16
push 0x41121c
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040f620
add esp, 8
jmp 0x405fb2
mov edx, 1
test edx, edx
je 0x405e90
mov dword [ebp - 0x434], 0x104
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405e69
jmp 0x405e90
lea edx, [ebp - 0x430]
push edx
lea eax, [ebp - 0x220]
push eax
call fcn.0040f620
add esp, 8
mov ecx, dword [ebp - 0x438]
add ecx, 1
mov dword [ebp - 0x438], ecx
jmp 0x405e16
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.SOFTWAREMicrosoftPowerShell_
lea eax, [ebp - 0x108]
push eax
call fcn.0040f620
add esp, 8
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.0040f960
add esp, 8
push str.ShellIdsMicrosoft.PowerShell
lea eax, [ebp - 0x108]
push eax
call fcn.0040f960
add esp, 8
lea ecx, [ebp - 0x118]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x108]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x405f20
push 0x41126c
mov eax, dword [ebp + 8]
push eax
call fcn.0040f620
add esp, 8
jmp 0x405fb2
mov dword [ebp - 0x224], 0x208
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x430]
push edx
push 0
push 0
push str.Path
mov eax, dword [ebp - 0x118]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x114], 0
je 0x405f7d
push str.powershell.exe
mov edx, dword [ebp + 8]
push edx
call fcn.0040f620
add esp, 8
jmp 0x405fb2
push 0x411294
mov eax, dword [ebp + 8]
push eax
call fcn.0040f620
add esp, 8
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040f960
add esp, 8
push 0x411298
mov eax, dword [ebp + 8]
push eax
call fcn.0040f960
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x40bc40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 8]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x40bc7c
xor eax, eax
jmp 0x40bd5f
mov dword [ebp - 0x214], 0x200
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x208]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20c], 0
je 0x40bccc
xor eax, eax
jmp 0x40bd5f
push str.ScriptEngine
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x210]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x40bd11
xor eax, eax
jmp 0x40bd5f
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x214], ecx
lea edx, [ebp - 0x214]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x20c], eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x20c], 0
jne 0x40bd5d
mov eax, 1
jmp 0x40bd5f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40f330
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov dword [ebp - 4], 0
jmp 0x40f34b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 8]
jge 0x40f391
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
call fcn.00405410
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0x4116e8
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40f342
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 8]
sub edx, 1
mov dword [ebp - 4], edx
jmp 0x40f3ab
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x40f3e9
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x10]
call fcn.00405410
push eax
mov eax, dword [ebp + 0xc]
push eax
push str._s_s
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40f3a2
mov esp, ebp
pop ebp
ret

Function at 0x40f3f0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x22
jne 0x40f45d
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x40f444
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x40f439
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40f444
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x40f419
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x20
jne 0x40f458
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40f488
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x40f485
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x40f47a
mov eax, dword [ebp - 4]
add eax, 1
jmp 0x40f488
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x40f45d
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret