joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402613
Capabilities:
Check os version
Create process on windows
Read .ini file

Disassembly:
cmp dword [0x40ba5c], 0
push ebx
push esi
push edi
push 1
pop ebx
je 0x40267e
mov eax, dword [esp + 0x10]
cmp eax, 0x11
ja case.default.0x40262f
jmp dword [eax*4 + 0x402636]
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
mov edi, 0x40b9c0
push edi
mov dword [0x40ba5c], ebx
mov dword [0x40b9c0], 0x9c
call esi
test eax, eax
jne 0x402622
jmp 0x407f69
mov eax, ebx
jmp 0x4026e5
xor eax, eax
cmp dword [0x40b9d0], 2
sete al
jmp 0x4026e5
cmp dword [0x40b9d0], ebx
jne case.default.0x40262f
mov eax, dword [0x40b9c4]
cmp eax, 4
ja 0x4026a5
jne case.default.0x40262f
cmp dword [0x40b9c8], 0xa
jb case.default.0x40262f
jmp 0x4026a5
cmp dword [0x40b9d0], 2
je 0x407f98
xor eax, eax
pop edi
pop esi
pop ebx
ret 4
push edi
mov dword [0x40b9c0], 0x94
call esi
jmp 0x402622
push 0x1000
call dword [sym.imp.USER32.DLL_GetSystemMetrics]
jmp 0x4026e5
test byte [0x40ba58], 0x10
je case.default.0x40262f
cmp dword [0x40b9c4], 5
jmp 0x4026d2
call fcn.00407ee9
jmp 0x4026e5
mov al, byte [0x40ba5a]
cmp al, bl
je 0x407f98
cmp al, 3
je 0x407f98
cmp al, 2
jmp 0x4026dd
cmp byte [0x40ba5a], bl
jne case.default.0x40262f
cmp dword [0x40b9c4], 5
jmp 0x4080de
mov al, byte [0x40ba5a]
cmp al, 3
je 0x407feb
cmp al, 2
jne case.default.0x40262f
cmp dword [0x40b9c4], 5
jne case.default.0x40262f
mov al, byte [0x40ba58]
test al, 2
je case.default.0x40262f
test al, 0x80
jmp 0x4080de
mov al, byte [0x40ba5a]
cmp al, 3
je 0x40801d
cmp al, 2
jne case.default.0x40262f
cmp dword [0x40b9c4], 5
jne case.default.0x40262f
test byte [0x40ba58], 0x80
je case.default.0x40262f
jmp 0x4026a5
mov al, byte [0x40ba5a]
cmp al, 3
je 0x40804d
cmp al, 2
jne case.default.0x40262f
test byte [0x40ba58], 0x82
jmp 0x407fc8
mov eax, dword [0x40ba58]
and eax, 0x40
jmp 0x4026e5
xor eax, eax
cmp dword [0x40b9d0], ebx
jmp 0x4026b2
cmp dword [0x40b9d0], ebx
jmp 0x40811d
cmp dword [0x40b9d0], ebx
jne case.default.0x40262f
cmp dword [0x40b9c4], 4
jne case.default.0x40262f
cmp dword [0x40b9c8], 0
jne case.default.0x40262f
cmp word [0x40b9cc], 0x3b6
jmp 0x4080de
cmp dword [0x40b9d0], ebx
jne case.default.0x40262f
cmp dword [0x40b9c4], 4
jne case.default.0x40262f
cmp dword [0x40b9c8], 0xa
jne case.default.0x40262f
cmp word [0x40b9cc], 0x7ce
jne case.default.0x40262f
jmp 0x4026a5
cmp dword [0x40b9d0], ebx
mov eax, dword [0x40b9c4]
jne 0x408108
cmp eax, 4
jne 0x40810b
cmp dword [0x40b9c8], 0x5a
jae 0x4026a5
cmp eax, 4
jbe case.default.0x40262f
jmp 0x4026a5
cmp dword [0x40b9d0], 2
jmp 0x41c0c8
Function at 0x4035dd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push edi
push 4
call fcn.00402613
test eax, eax
jne 0x403601
push 5
call fcn.00402613
test eax, eax
je 0x407164
mov eax, dword [0x40b13c]
test eax, eax
jne 0x40362d
push 0x403f3c
push 0x403f28
call fcn.0040363d
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
mov dword [0x40b13c], eax
je 0x407164
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
leave
ret 0xc
and dword [ebp - 4], 0
push 0x8001
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test edi, edi
jne 0x407186
mov dword [ebp - 4], 1
jmp 0x407189
and byte [edi], 0
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
je 0x4072bd
push ebx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4072bd
push ebx
call fcn.004095cc
test eax, eax
jne 0x4072bd
cmp byte [ebx + 1], 0x3a
jne 0x4072bd
cmp byte [ebx + 2], 0x5c
jne 0x4072bd
cmp dword [ebp - 4], eax
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpynA]
jne 0x4071e1
cmp dword [ebp + 0x10], 3
jb 0x4071e1
push 3
push ebx
push edi
call esi
jmp 0x4071e8
mov dword [ebp - 4], 1
push 2
lea eax, [ebp - 0x10c]
pop edi
push 0x104
push ebx
push eax
call esi
cmp byte [ebp - 0x109], 0
lea esi, [ebp - 0x109]
je 0x4072c7
push 0x5c
push esi
call fcn.004095ba
mov esi, eax
test esi, esi
jne 0x40722f
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [ebp + eax - 0x10c]
mov bl, byte [esi]
and byte [esi], 0
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4072ab
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
cmp dword [ebp - 4], 0
lea edi, [edi + eax + 1]
jne 0x407284
cmp edi, dword [ebp + 0x10]
jae 0x407284
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
call fcn.004095a8
jmp 0x407291
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 1
and byte [eax], 0
test bl, bl
mov byte [esi], bl
je 0x4072a0
push esi
call dword [sym.imp.USER32.DLL_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x40720d
jmp 0x4072c7
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [ebp + 0xc]
and byte [eax], 0
mov byte [esi], bl
jmp 0x4072c5
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor edi, edi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
pop esi
pop ebx
test edi, edi
je 0x4072e3
cmp dword [ebp - 4], 0
lea eax, [edi + 1]
jne 0x403638
mov eax, edi
jmp 0x403638

Function at 0x40376c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x40b0cc], 0
jne 0x40682b
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.004016fd
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.004016db
mov eax, esi
pop esi
leave
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x4037ad
Function at 0x405d57
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
lea eax, [ebp - 0x214]
push 0x104
xor esi, esi
push eax
push esi
call fcn.004027a1
test eax, eax
je 0x405d94
lea eax, [ebp - 0x214]
push eax
call dword [0x40b058]
lea eax, [ebp - 0x214]
push eax
call dword [0x40b014]
lea eax, [ebp - 0x214]
push 0x404888
push eax
lea eax, [ebp - 0x214]
push eax
call dword [0x40b008]
push esi
push 2
push 4
push esi
push esi
lea eax, [ebp - 0x214]
push 0x40000000
push eax
call fcn.004036cd
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405e0b
mov ax, word [ebp + 8]
push 2
mov word [ebp - 8], ax
mov eax, dword [ebp + 0xc]
push esi
push esi
push ebx
mov dword [ebp - 0xc], 2
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 0xc]
push 0xc
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
jmp 0x405e0d
xor eax, eax
pop esi
pop ebx
leave
ret 8

Function at 0x406165
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
mov esi, ecx
push dword [esi + 4]
mov dword [esi], 0x40470c
call dword [sym.imp.USER32.DLL_IsWindow]
test eax, eax
je 0x4061e0
push 0xffffffffffffffeb
push dword [esi + 4]
call fcn.0040198f
cmp esi, eax
jne 0x4061e0
push 0
push 0xffffffffffffffeb
push dword [esi + 4]
call fcn.00403b6e
and byte [ebp - 0x10c], 0
lea eax, [ebp - 0x10c]
push 0x100
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
lea ecx, [ebp - 0x10c]
push 1
mov dword [ebp - 8], ecx
pop eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], eax
push ecx
push eax
push 0x4000000
push 0x30357864
call fcn.00403379
add esp, 0x10
pop esi
leave
ret

Function at 0x406474
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov eax, dword [esp + 4]
push esi
cmp eax, 0x205
mov esi, ecx
jne 0x406499
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
test eax, eax
je 0x4064db
mov ecx, esi
call fcn.00406348
jmp 0x4064db
cmp eax, 0x202
jne 0x4064c4
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.USER32.DLL_GetCursorPos]
test eax, eax
je 0x4064db
call dword [sym.imp.USER32.DLL_GetDoubleClickTime]
push 0
push eax
push 0x64
push dword [esi + 4]
call dword [sym.imp.USER32.DLL_SetTimer]
jmp 0x4064db
cmp eax, 0x203
jne 0x4064db
push 0
mov ecx, esi
mov dword [esi + 0x18], 1
call fcn.004062e5
pop esi
ret 4

Function at 0x406ad4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
cmp dword [0x40b0cc], 0
je 0x406af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
jmp 0x406b33
push esi
lea ecx, [ebp - 0x218]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.004027fd
mov eax, dword [ebp - 4]
push dword [ebp - 0x214]
add eax, eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea ecx, [ebp - 0x218]
call fcn.004067b4
lea ecx, [ebp - 0x218]
mov esi, eax
call fcn.00402942
mov eax, esi
pop esi
leave
ret 8
Function at 0x406cb0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
cmp dword [0x40b0cc], 0
je 0x406cd3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
jmp 0x406d20
push esi
lea ecx, [ebp - 0x428]
push dword [ebp + 8]
call fcn.004016fd
push dword [ebp + 0xc]
lea ecx, [ebp - 0x214]
call fcn.004016fd
push dword [ebp + 0x10]
push dword [ebp - 0x210]
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.004016db
lea ecx, [ebp - 0x428]
call fcn.004016db
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x406e34
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [0x40b0cc], 0
je 0x406e51
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
jmp 0x406e7c
push esi
lea ecx, [ebp - 0x214]
push dword [ebp + 8]
call fcn.004016fd
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.004016db
mov eax, esi
pop esi
leave
ret 4

Function at 0x406ff7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcbc
cmp dword [0x40b0cc], 0
push esi
je 0x407035
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov esi, eax
jmp 0x40715d
push ebx
lea ecx, [ebp - 0x258]
push dword [ebp + 8]
call fcn.004016fd
push dword [ebp + 0xc]
lea ecx, [ebp - 0x46c]
call fcn.004016fd
push dword [ebp + 0x24]
lea ecx, [ebp - 0x680]
call fcn.004016fd
mov ebx, dword [ebp + 0x28]
test ebx, ebx
jne 0x407099
push dword [ebp + 0x2c]
push ebx
push dword [ebp - 0x67c]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x468]
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
mov esi, eax
jmp 0x40713b
push edi
push 0x11
pop ecx
mov esi, ebx
push dword [ebx + 4]
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xcbc]
call fcn.004016fd
push dword [ebx + 8]
lea ecx, [ebp - 0xaa8]
call fcn.004016fd
push dword [ebx + 0xc]
lea ecx, [ebp - 0x894]
call fcn.004016fd
mov eax, dword [ebp - 0xcb8]
push dword [ebp + 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xaa4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x890]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x67c]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x468]
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
lea ecx, [ebp - 0x894]
mov esi, eax
call fcn.004016db
lea ecx, [ebp - 0xaa8]
call fcn.004016db
lea ecx, [ebp - 0xcbc]
call fcn.004016db
pop edi
lea ecx, [ebp - 0x680]
call fcn.004016db
lea ecx, [ebp - 0x46c]
call fcn.004016db
lea ecx, [ebp - 0x258]
call fcn.004016db
pop ebx
mov eax, esi
pop esi
leave
ret 0x28
Function at 0x407ee9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [0x40bcb4], edi
jne 0x407f61
push 0xc
mov dword [0x40bcb4], 1
call fcn.00402613
test eax, eax
je 0x407f61
lea eax, [ebp - 4]
push eax
push 1
push edi
push 0x4048bc
push 0x80000002
call dword [sym.imp.ADVAPI32.DLL_RegOpenKeyExW]
test eax, eax
jne 0x407f61
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x4048a4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegQueryValueExW]
test eax, eax
jne 0x407f58
cmp dword [ebp - 0xc], edi
sete al
mov dword [0x40bcb8], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.DLL_RegCloseKey]
mov eax, dword [0x40bcb8]
pop edi
leave
ret
Function at 0x853c00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x226000]
mov dword [edi + 0x323e48], 0x180a6704
push edi
or ebp, 0xffffffff
jmp 0x853c2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x853c31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x853c20
mov eax, 1
add ebx, ebx
jne 0x853c43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x853c54
jne 0x853c73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x853c73
dec eax
add ebx, ebx
jne 0x853c60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x853c38
add ebx, ebx
jne 0x853c6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x853cc5
xor ecx, ecx
sub eax, 3
jb 0x853c8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x853cfa
sar eax, 1
mov ebp, eax
jmp 0x853c96
add ebx, ebx
jne 0x853c96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x853c64
inc ecx
add ebx, ebx
jne 0x853ca4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x853c64
add ebx, ebx
jne 0x853cb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x853ca6
jne 0x853cc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x853ca6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x853ce4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x853cd6
jmp 0x853c26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x853ce4
add edi, ecx
jmp 0x853c26
pop esi
mov edi, esi
mov ecx, 0x1a4ea
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x853d02
cmp byte [edi], 0x95
jne 0x853d02
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 0x853d07
lea edi, [esi + 0x43e000]
mov eax, dword [edi]
or eax, eax
je 0x853d7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x47024c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x470418]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x853d34
mov ecx, edi
jns 0x853d63
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 + 0x47041c]
or eax, eax
je 0x853d79
mov dword [ebx], eax
add ebx, 4
jmp 0x853d51
call dword [esi + 0x47042c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x853db0
cmp al, 0xef
ja 0x853da3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x853d85
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x853d92
mov ebp, dword [esi + 0x470420]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x257]
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 0x853de4
sub esp, 0xffffff80
jmp 0x59e36f
Function at 0x401000
Capabilities:
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
push esi
push edi
and dword [ebp - 0xc], 0
and dword [ebp - 0x414], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 2
je 0x40104e
cmp dword [ebp + 0xc], 3
je 0x40104e
push 0x104
push 0
push 0x410e20
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
push 0x410e20
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call 0x401053
mov eax, dword [esp]
mov dword [ebp - 0xc], eax
add esp, 4
push 0x400
push 0
lea eax, [ebp - 0x410]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0xc]
call dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
mov dword [0x411888], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, dword [0x411888]
je 0x4010af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404f2b
jmp 0x40118d
mov eax, dword [sym.imp.USER32.dll_GetMessageA]
mov dword [ebp - 8], eax
push 0x400
push 0
lea eax, [ebp - 0x410]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x414], eax
call dword [sym.imp.USER32.dll_GetInputState]
push 0
push 0
push 0
push dword [ebp - 0x414]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x410]
push eax
call dword [ebp - 8]
call fcn.00402717
call fcn.00402de4
mov eax, dword [0x410fc4]
and eax, 7
je 0x40117e
mov eax, dword [0x410fc4]
and eax, 1
je 0x401170
call fcn.00403dc0
cmp eax, 1
jne 0x401170
push 0xf
pop ecx
mov esi, 0x40c364
lea edi, [ebp - 0x454]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
and dword [ebp - 0x458], 0
and dword [ebp - 0x45c], 0
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x458]
push eax
call fcn.004039ae
push 2
push 0x3e
lea eax, [ebp - 0x454]
push eax
call fcn.004029ac
jmp 0x40117e
call fcn.00401b8b
cmp eax, 1
jne 0x40117e
jmp 0x401185
push 0
call fcn.00401621
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
leave
ret 0x10
Function at 0x4013ae
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d058
push 0x40b850
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
sub esp, 0x82c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 0x20], 0
or dword [ebp - 0x24], 0xffffffff
and dword [ebp - 0x1c], 0
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jne 0x401487
cmp dword [ebp + 0x14], 0
je 0x401487
and dword [ebp - 0x844], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x844], eax
push 0x800
push 0
lea eax, [ebp - 0x840]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp - 0x844]
lea eax, [ebp - 0x840]
push eax
push dword [ebp - 0x844]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and dword [ebp - 4], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x840]
push eax
push 0
push 0x401487
mov edi, edi
push ebp
mov eax, dword [ebp + 0x14]
add eax, 3
jmp eax
push 0
push 0
push 4
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4014af
xor eax, eax
jmp 0x40155f
cmp dword [ebp - 0x20], 0
jne 0x4014e9
mov dword [ebp - 0x3c], 0x1ec61500
mov dword [ebp - 0x38], 0x1c479c6
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 8
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x4014f7
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x24]
call fcn.00402d5a
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40152c
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0
jne 0x401528
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x40155f
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 1
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x24]
call fcn.00402d5a
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x401570
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push 0x400
push 0
lea eax, [ebp - 0x408]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [ebp + 8]
push dword [0x40eb88]
push 0x40c3a4
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x408]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x40c3ac
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0xc]
push 2
push 0
push 0x40c3b8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8
Function at 0x4029ac
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
and dword [ebp - 0x130], 0
and dword [ebp - 0x134], 0
and dword [ebp - 0x12c], 0
push 0x128
push 0
lea eax, [ebp - 0x128]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x128], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
call sub.KERNEL32.dll_Process32First
cmp dword [ebp + 0x10], 3
jne 0x402a21
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 0x10], 1
jne 0x402a38
lea eax, [ebp - 0x104]
push eax
call fcn.00402257
jmp 0x402b72
cmp dword [ebp + 0x10], 2
jne 0x402abc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x138], eax
and dword [ebp - 0x13c], 0
mov eax, dword [ebp - 0x138]
movsx eax, byte [eax]
test eax, eax
je 0x402ab7
push dword [ebp - 0x138]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402a99
push 0
lea eax, [ebp - 0x13c]
push eax
push 0
push 0
push 4
lea eax, [ebp - 0x120]
push eax
push 0x2220cc
push dword [0x40eb90]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x138]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x138], eax
jmp 0x402a4e
jmp 0x402b72
cmp dword [ebp + 0x10], 3
jne 0x402b4a
and dword [ebp - 0x140], 0
cmp dword [ebp - 0x134], 0
jne 0x402ae5
mov dword [ebp - 0x134], 1
jmp 0x402b72
push 0x2e
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
pop ecx
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
je 0x402b0e
mov eax, dword [ebp - 0x140]
and dword [eax], 0
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
test eax, eax
jne 0x402b2a
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x402b48
push 0x40c578
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x402b72
cmp dword [ebp + 0x10], 4
jne 0x402b72
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402b72
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x130], eax
jmp 0x402b8c
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 0x12c]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x402a21
push dword [ebp - 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x130]
leave
ret 0xc