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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00407790
xor eax, eax
push ebp
push 0x53c081
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00404c5c
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x54], 0xc
mov dword [ebp - 0x4c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [0x561afc]
mov eax, dword [eax]
call fcn.00407834
push eax
push 0
push 0x20
push 0
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.00407834
push eax
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x53c05a
push 2
push 1
push 0
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 4]
mov edx, 0x53c09c
call fcn.00407c64
mov eax, dword [ebp - 0x68]
push eax
call fcn.004fe39c
xor ecx, ecx
pop edx
call fcn.004fe718
mov edi, ebx
lea esi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53c088
lea eax, [ebp - 0x68]
call fcn.00407798
lea eax, [ebp - 4]
call fcn.00407798
ret
Function at 0x53cf50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x53d0d0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x53d0e0
call sub.kernel32.dll_LoadLibraryW
mov ebx, eax
test ebx, ebx
je 0x53cf92
push 0x53d0fc
push ebx
call fcn.0040cf94
mov edi, eax
push 0x53d120
call sub.kernel32.dll_LoadLibraryW
mov esi, eax
test esi, esi
je 0x53cfb0
push 0x53d13c
push esi
call fcn.0040cf94
mov dword [ebp - 0x10], eax
call dword [ebp - 0x10]
lea edx, [ebp - 0xc]
push edx
push eax
call edi
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00404c5c
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x10
call fcn.00404c5c
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x10
call fcn.00404c5c
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x70], 0xc
mov dword [ebp - 0x68], 0xffffffff
xor eax, eax
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x20
push 0
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x70]
push eax
mov edx, dword [0x561afc]
mov edx, dword [edx]
lea eax, [ebp - 0x74]
mov ecx, 0x53d184
call fcn.00407c64
mov eax, dword [ebp - 0x74]
call fcn.00407834
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CreateProcessAsUserW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x53d092
push 2
push 1
push 0
call sub.kernel32.dll_GetLastError_1
lea edx, [ebp - 0x7c]
call fcn.0041a450
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 0x53d1a8
call fcn.00407c64
mov eax, dword [ebp - 0x78]
push eax
call fcn.004fe39c
xor ecx, ecx
pop edx
call fcn.004fe718
mov eax, dword [ebp - 8]
push esi
mov edi, eax
lea esi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
push esi
call sub.kernel32.dll_FreeLibrary_1
push ebx
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53d0d7
lea eax, [ebp - 0x7c]
mov edx, 3
call fcn.004077a0
ret
Function at 0x53d1e8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd60
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x2a0], edx
mov dword [ebp - 0x294], edx
mov dword [ebp - 0x298], edx
mov dword [ebp - 0x29c], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x53d3e2
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x53d31c
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov eax, 2
call fcn.004d9e64
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x53d312
xor edx, edx
push ebp
push 0x53d30b
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x290], 0x22c
lea edx, [ebp - 0x290]
mov eax, dword [ebp - 0x10]
call fcn.004d9e84
test eax, eax
je 0x53d2f4
lea edx, [ebp - 0x294]
mov eax, 0x53d3fc
call fcn.00413754
mov eax, dword [ebp - 0x294]
push eax
lea eax, [ebp - 0x29c]
lea edx, [ebp - 0x26c]
mov ecx, 0x104
call fcn.00407990
mov eax, dword [ebp - 0x29c]
lea edx, [ebp - 0x298]
call fcn.00413754
mov edx, dword [ebp - 0x298]
pop eax
call fcn.00407e68
jne 0x53d2e2
mov eax, dword [ebp - 0x288]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
lea edx, [ebp - 0xc]
push edx
push 0xf00ff
push eax
call sub.advapi32.dll_OpenProcessToken
lea edx, [ebp - 0x290]
mov eax, dword [ebp - 0x10]
call fcn.004d9ea4
test eax, eax
jne 0x53d274
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53d312
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x53d326
mov dword [ebp - 0x54], 0x44
xor eax, eax
mov dword [ebp - 0x50], eax
mov eax, 0x53d418
mov dword [ebp - 0x4c], eax
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 5
mov word [ebp - 0x22], 0
xor eax, eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
mov edx, dword [0x561afc]
mov edx, dword [edx]
lea eax, [ebp - 0x2a0]
mov ecx, 0x53d428
call fcn.00407c64
mov eax, dword [ebp - 0x2a0]
call fcn.00407834
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CreateProcessAsUserW
mov eax, dword [ebp - 8]
mov edi, eax
lea esi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53d3e9
lea eax, [ebp - 0x2a0]
mov edx, 4
call fcn.004077a0
ret
Function at 0x53d5c4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
xor eax, eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
xor eax, eax
push ebp
push 0x53d74a
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0053d56c
test al, al
je 0x53d72f
mov eax, dword [0x5621a4]
mov eax, dword [eax]
mov byte [eax + 0xe], 1
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x44
call fcn.00404c5c
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], 0xc
mov dword [ebp - 0x48], 0xffffffff
xor eax, eax
mov dword [ebp - 0x4c], eax
push 0
push 1
push 0
call fcn.004fe39c
mov cl, 5
mov edx, 0x53d764
call fcn.004fe718
push 0
push 1
push 0
mov ecx, dword [0x561afc]
mov ecx, dword [ecx]
lea eax, [ebp - 0x64]
mov edx, 0x53d798
call fcn.00407c64
mov eax, dword [ebp - 0x64]
push eax
call fcn.004fe39c
mov cl, 5
pop edx
call fcn.004fe718
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [0x561afc]
mov eax, dword [eax]
call fcn.00407834
push eax
push 0
push 0x20
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
mov edx, dword [0x561afc]
mov edx, dword [edx]
lea eax, [ebp - 0x68]
mov ecx, 0x53d7b8
call fcn.00407c64
mov eax, dword [ebp - 0x68]
call fcn.00407834
push eax
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x53d701
push 0
push 1
push 0
call fcn.004fe39c
mov cl, 5
mov edx, 0x53d7e0
call fcn.004fe718
push 0
push 5
push 0
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
lea eax, [ebp - 0x70]
push eax
call fcn.004fe39c
mov edx, 0x53d810
pop ecx
call fcn.004fe604
jmp 0x53d718
push 0
push 1
push 0
call fcn.004fe39c
mov cl, 5
mov edx, 0x53d844
call fcn.004fe718
mov eax, dword [0x561b9c]
mov eax, dword [eax]
add eax, 5
mov edx, dword [0x561f70]
mov cl, 0x64
call fcn.00404b4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53d751
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.004077a0
ret
Function at 0x5435a8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406f68
xor eax, eax
push ebp
push 0x543638
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004068e4
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x543622
mov eax, dword [ebp - 4]
call fcn.00406f78
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x1a0], eax
push 2
push 4
lea eax, [ebp - 0x1a0]
push eax
call sub.wsock32.dll_gethostbyaddr
mov ebx, eax
test ebx, ebx
je 0x54361d
mov edx, esi
mov eax, dword [ebx]
call fcn.00415c58
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54363f
lea eax, [ebp - 4]
call fcn.004068e4
ret

Function at 0x544db4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x544e4a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [0x561b80]
mov edx, dword [edx]
add edx, 0x1282
call fcn.00407af4
mov eax, dword [ebp - 8]
call fcn.00414cc8
test al, al
je 0x544e0b
lea eax, [ebp - 0xc]
mov edx, dword [0x561b80]
mov edx, dword [edx]
add edx, 0x1282
call fcn.00407af4
mov eax, dword [ebp - 0xc]
call fcn.005507c4
lea eax, [ebp - 4]
mov edx, dword [0x561b80]
mov edx, dword [edx]
add edx, 0x1187
call fcn.00407af4
mov eax, dword [ebp - 4]
call fcn.00407834
push eax
call sub.kernel32.dll_DeleteFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x544e51
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004077a0
ret
Function at 0x5507c4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd60
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x298], edx
mov dword [ebp - 0x29c], edx
mov dword [ebp - 0x2a0], edx
mov dword [ebp - 0x294], edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x288], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407790
lea eax, [ebp - 0x280]
mov edx, dword [0x40e7ec]
call fcn.00408544
xor eax, eax
push ebp
push 0x550a37
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00415564
cmp dword [ebp - 8], 0
jne 0x550844
lea eax, [ebp - 8]
mov edx, 0x550a54
call fcn.004077fc
lea edx, [ebp - 0x288]
mov eax, dword [ebp - 4]
call fcn.00415290
mov edx, dword [ebp - 0x288]
lea eax, [ebp - 4]
call fcn.004077fc
cmp dword [ebp - 4], 0
jne 0x550896
lea eax, [ebp - 0x28c]
call fcn.00415798
mov ebx, dword [ebp - 0x28c]
lea edx, [ebp - 0xc]
mov dword [ebp - 0x290], ebx
mov eax, dword [ebp - 0x290]
call fcn.0041cb5c
lea eax, [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.004077fc
mov dl, 1
mov eax, dword [0x42fe60]
call fcn.0043c0fc
mov dword [ebp - 0x284], eax
xor edx, edx
push ebp
push 0x5509e4
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x294]
mov ecx, 0x550a54
mov edx, dword [ebp - 4]
call fcn.00407c64
mov eax, dword [ebp - 0x294]
lea ecx, [ebp - 0x280]
mov edx, 0x1ff
call fcn.00414e84
mov ebx, eax
xor edx, edx
push ebp
push 0x5509c4
push dword fs:[edx]
mov dword fs:[edx], esp
test ebx, ebx
jne 0x550930
test byte [ebp - 0x270], 0x10
jne 0x55091f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x26c]
call fcn.004495ac
test al, al
je 0x55091f
mov edx, dword [ebp - 0x26c]
mov eax, dword [ebp - 0x284]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x280]
call fcn.00414ed4
mov ebx, eax
test ebx, ebx
je 0x5508f3
mov eax, dword [ebp - 0x284]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x5509ab
inc ebx
xor esi, esi
lea ecx, [ebp - 0x2a0]
mov edx, esi
mov eax, dword [ebp - 0x284]
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x2a0]
lea eax, [ebp - 0x29c]
mov edx, dword [ebp - 4]
call fcn.00407c64
mov eax, dword [ebp - 0x29c]
call fcn.00407834
mov edx, eax
lea eax, [ebp - 0x298]
call fcn.00407954
mov edi, dword [ebp - 0x298]
mov dword [ebp - 0x290], edi
mov eax, dword [ebp - 0x290]
call fcn.00407834
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
inc esi
dec ebx
jne 0x550945
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5509cb
lea eax, [ebp - 0x280]
call fcn.00414ef8
ret

Function at 0x550bb8
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffdfc
mov ebx, eax
mov dword [esp], pe_nt_image_headers32
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x550be9
mov eax, ebx
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
call fcn.00407990
jmp 0x550bf2
mov eax, ebx
xor edx, edx
call fcn.004077a8
add esp, 0x204
pop ebx
ret
Function at 0x550c08
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebx
push esi
add esp, 0xfffffd70
mov ebx, eax
mov eax, ebx
xor edx, edx
call fcn.004077a8
push esp
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x550c6d
push 0x80
lea eax, [esp + 0x194]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x550c68
lea eax, [esp + 0x190]
push eax
call sub.wsock32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x550c68
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.00407924
call sub.wsock32.dll_WSACleanup
add esp, 0x290
pop esi
pop ebx
ret

Function at 0x550e30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x550ef7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.005511f8
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0x550f10
call fcn.00407c64
mov eax, dword [ebp - 4]
call fcn.00414cec
mov ecx, 0x10000000
mov edx, 0x550f40
mov eax, dword [ebp - 4]
call fcn.00550c78
mov ecx, 0x10000000
mov edx, 0x550f54
mov eax, dword [ebp - 4]
call fcn.00550c78
mov ecx, 0x10000000
mov edx, 0x550f68
mov eax, dword [ebp - 4]
call fcn.00550c78
mov eax, 0x104
call fcn.00415cb0
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x104
call fcn.00404c5c
push ebx
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407834
push eax
call sub.kernel32.dll_GetTempFileNameW
mov edx, esi
mov eax, ebx
call fcn.00415c70
mov eax, ebx
call fcn.00415d00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x550efe
lea eax, [ebp - 8]
mov edx, 2
call fcn.004077a0
ret

Function at 0x5511f8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
push 1
push 0x23
lea eax, [esp + 8]
push eax
push 0
call sub.Shell32.dll_SHGetSpecialFolderPathW
test eax, eax
je 0x551225
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00407990
jmp 0x55122e
mov eax, ebx
xor edx, edx
call fcn.004077a8
add esp, 0x200
pop ebx
ret
Function at 0x551850
Capabilities:
Create service
Delete service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x551980
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerW_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x55196a
xor eax, eax
push ebp
push 0x551963
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x5518ed
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.00404620
mov eax, dword [ebp - 0xc]
call fcn.00407834
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x55198c
push 0x551998
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CreateServiceW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x55194c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CloseServiceHandle_1
call fcn.004061d4
jmp 0x55196a
push 0xf01ff
push 0x551998
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_OpenServiceW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x55190e
call fcn.0041df60
xor eax, eax
push ebp
push 0x551945
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService_1
test eax, eax
jne 0x55192e
call fcn.0041df60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55194c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55196a
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_CloseServiceHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x551987
lea eax, [ebp - 0xc]
call fcn.00407798
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x406060], 1
mov dword [0x40605c], 1
mov dword [0x406058], 1
mov dword [0x406050], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x406014], eax
mov eax, dword [0x40606c]
test eax, eax
je 0x4010b0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x406080]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x406068]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x403020], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060

Function at 0x40161e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x84
lea edx, [ebp - 0x34]
mov eax, 0
mov ecx, 0xa
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x30], dbg._Z15WindowProcedureP6HWND__jjl@16
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x10], str.MyWindowClass
lea eax, [ebp - 0x34]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_RegisterClassA]
call eax
sub esp, 4
mov dword [esp + 0x2c], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x1f4
mov dword [esp + 0x18], 0x1f4
mov dword [esp + 0x14], 0x80000000
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xcf0000
mov dword [esp + 8], str.My_Window
mov dword [esp + 4], str.MyWindowClass
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExA]
call eax
sub esp, 0x30
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_UpdateWindow]
call eax
sub esp, 4
mov ecx, 0
mov eax, 0x1c
and eax, 0xfffffffc
mov edx, eax
mov eax, 0
mov dword [ebp + eax - 0x50], ecx
add eax, 4
cmp eax, edx
jb 0x40170a
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetMessageA]
call eax
sub esp, 0x10
test eax, eax
setne al
test al, al
je 0x401768
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
call eax
sub esp, 4
lea eax, [ebp - 0x50]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageA]
call eax
sub esp, 4
jmp 0x401715
mov eax, dword [ebp - 0x48]
mov edi, dword [ebp - 4]
leave
ret 0x10
Function at 0x4019f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401a50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406074]
test esi, esi
jle 0x401b70
mov eax, dword [0x406078]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401a84
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401b07
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401a70
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401b97
mov eax, dword [0x406078]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x406078]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b77
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401b00
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401b10
add dword [0x406074], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406078]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401b00
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401a8e
mov eax, dword [0x406078]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop