joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401007
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x8106f8]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x8106fc]
push edi
mov edi, dword [ebx]
xor edx, edx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x34], 0x9e3779b9
call fcn.00401000
mov eax, dword [0x810700]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x24], eax
mov eax, dword [0x810704]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, edi
shl eax, 4
cmp dword [0x81f954], 0xc
mov dword [ebp - 4], eax
jne 0x401085
push edx
lea eax, [ebp - 0x38]
push eax
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
xor edx, edx
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [0x81f954]
cmp eax, 0xfa9
jne 0x4010a1
mov dword [0x81f950], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c2
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_AreAllAccessesGranted]
and dword [0x81f8a4], 0
xor edx, edx
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [0x81f94c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
sub edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x401059
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
leave
ret
Function at 0x408d48
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80ff30]
jne 0x408d52
repz ret
jmp fcn.0040ccc4

Function at 0x409fc3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402ace
and dword [ebp - 4], 0
cmp dword [0x814940], 0
mov ebx, eax
jne 0x40a074
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a125
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a125
push eax
call fcn.00402a5c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x814940], eax
call esi
push eax
call fcn.00402a5c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x814944], eax
call esi
push eax
call fcn.00402a5c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x814948], eax
call esi
push eax
call fcn.00402a5c
pop ecx
mov dword [0x814950], eax
test eax, eax
je 0x40a074
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402a5c
pop ecx
mov dword [0x81494c], eax
mov eax, dword [0x81494c]
cmp eax, ebx
je 0x40a0cc
cmp dword [0x814950], ebx
je 0x40a0cc
push eax
call fcn.00402ad7
push dword [0x814950]
mov esi, eax
call fcn.00402ad7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a0cc
test edi, edi
je 0x40a0cc
call esi
test eax, eax
je 0x40a0c3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a0c3
test byte [ebp - 0xc], 1
jne 0x40a0cc
or dword [ebp + 0x10], 0x200000
jmp 0x40a105
mov eax, dword [0x814944]
cmp eax, ebx
je 0x40a105
push eax
call fcn.00402ad7
pop ecx
test eax, eax
je 0x40a105
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a105
mov eax, dword [0x814948]
cmp eax, ebx
je 0x40a105
push eax
call fcn.00402ad7
pop ecx
test eax, eax
je 0x40a105
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x814940]
call fcn.00402ad7
pop ecx
test eax, eax
je 0x40a125
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a127
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40284c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40500c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4028e4
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x4028c4
xor eax, eax
push ebp
push 0x4028bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402900
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4028c4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40500c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40500c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4039e8
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x403ab5
push ebx
push esi
mov eax, dword [0x406650]
push eax
call sub.KERNEL32.DLL_RaiseException
mov edi, eax
test edi, edi
je 0x403ab5
push edi
mov eax, dword [0x406650]
push eax
call sub.KERNEL32.DLL_GetStartupInfoA
mov esi, eax
test esi, esi
je 0x403ab5
push esi
call sub.KERNEL32.DLL_GetThreadLocale
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403ab5
push 0
push 6
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_TlsSetValue
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403ab5
push edi
mov eax, dword [0x406650]
push eax
call sub.KERNEL32.DLL_VirtualFree
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.KERNEL32.DLL_InitializeCriticalSection
mov eax, dword [ebp + 8]
call fcn.004031f0
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp + 8]
call fcn.004032c0
push eax
push ebx
call sub.KERNEL32.DLL_InitializeCriticalSection
push ebx
call sub.KERNEL32.DLL_LocalAlloc
push ebx
call sub.KERNEL32.DLL_GetModuleHandleA
mov eax, esi
call fcn.004038ec
push esi
call sub.KERNEL32.DLL_UnhandledExceptionFilter
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403ac0
Capabilities:
Set thread local storage value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004032b0
xor eax, eax
push ebp
push 0x403b91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004030a8
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004032c0
push eax
call sub.KERNEL32.DLL_TlsSetValue
mov ebx, eax
cmp ebx, 0xffffffff
je 0x403b7b
push 2
push 0
push 0xfffffffffffffffc
push ebx
call sub.KERNEL32.DLL_VirtualAlloc
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call sub.KERNEL32.DLL_GetVersion
xor dword [ebp - 0xc], 0x4d617a69
push 0
push ebx
call sub.KERNEL32.DLL_WriteFile
cmp eax, dword [ebp - 0xc]
jb 0x403b7b
push 2
push 0
mov eax, dword [ebp - 0xc]
neg eax
push eax
push ebx
call sub.KERNEL32.DLL_VirtualAlloc
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00403358
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00403310
push eax
push ebx
call sub.KERNEL32.DLL_GetVersion
push ebx
call sub.KERNEL32.DLL_GetModuleHandleA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403b98
lea eax, [ebp - 4]
call fcn.004030a8
ret

Function at 0x403be8
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetLocaleInfoA
cmp dword [esp + 0x10], 2
setne al
add esp, 0x94
ret

Function at 0x403d04
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x403d9b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x100]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
test eax, eax
jne 0x403d42
mov byte [ebp - 0x100], 0x43
mov al, byte [ebp - 0x100]
push eax
call sub.KERNEL32.DLL_SetFilePointer
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x403d5f
mov byte [ebp - 0x100], 0x43
lea eax, [ebp - 0x104]
mov dl, byte [ebp - 0x100]
call fcn.004031c8
mov edx, dword [ebp - 0x104]
mov eax, ebx
mov ecx, 0x403db0
call fcn.0040323c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403da2
lea eax, [ebp - 0x104]
call fcn.004030a8
ret
Function at 0x40107e
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x42c6f8]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [0x42c6fc]
push edi
mov edi, dword [ebx]
xor edx, edx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x2c], 0x9e3779b9
call fcn.00401077
mov eax, dword [0x42c700]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x42c704]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, edi
shl eax, 4
cmp dword [0x43b95c], 0xc
mov dword [ebp - 4], eax
jne 0x401103
push edx
lea eax, [ebp - 0x38]
push eax
push edx
lea eax, [ebp - 0x438]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x43b95c]
cmp eax, 0xfa9
jne 0x40111f
mov dword [0x43b958], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401135
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and dword [0x43b8ac], 0
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [0x43b954], 0xf4ea3dee
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x18]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
sub edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x4010d3
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
leave
ret
Function at 0x4078bf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42bc70]
jne 0x4078c9
repz ret
jmp fcn.0040c1f9

Function at 0x40a71a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004039ac
and dword [ebp - 4], 0
cmp dword [0x43093c], 0
mov ebx, eax
jne 0x40a7cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a87c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a87c
push eax
call fcn.0040393a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43093c], eax
call esi
push eax
call fcn.0040393a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x430940], eax
call esi
push eax
call fcn.0040393a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x430944], eax
call esi
push eax
call fcn.0040393a
pop ecx
mov dword [0x43094c], eax
test eax, eax
je 0x40a7cb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040393a
pop ecx
mov dword [0x430948], eax
mov eax, dword [0x430948]
cmp eax, ebx
je 0x40a823
cmp dword [0x43094c], ebx
je 0x40a823
push eax
call fcn.004039b5
push dword [0x43094c]
mov esi, eax
call fcn.004039b5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a823
test edi, edi
je 0x40a823
call esi
test eax, eax
je 0x40a81a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a81a
test byte [ebp - 0xc], 1
jne 0x40a823
or dword [ebp + 0x10], 0x200000
jmp 0x40a85c
mov eax, dword [0x430940]
cmp eax, ebx
je 0x40a85c
push eax
call fcn.004039b5
pop ecx
test eax, eax
je 0x40a85c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a85c
mov eax, dword [0x430944]
cmp eax, ebx
je 0x40a85c
push eax
call fcn.004039b5
pop ecx
test eax, eax
je 0x40a85c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43093c]
call fcn.004039b5
pop ecx
test eax, eax
je 0x40a87c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a87e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402240
Capabilities:
Create service
Start service

Disassembly:
sub esp, 0x104
mov eax, dword [0x402148]
mov ecx, dword [0x40214c]
mov edx, dword [0x402150]
mov dword [esp], eax
mov eax, dword [0x402154]
push ebx
push esi
mov dword [esp + 0x14], eax
push edi
mov dword [esp + 0x10], ecx
xor eax, eax
mov ecx, 0x3d
lea edi, [esp + 0x1c]
push 2
mov dword [esp + 0x18], edx
push eax
rep stosd dword es:[edi], eax
push eax
or ebx, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x402320
mov ecx, dword [esp + 0x114]
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
push 3
push 1
push 0x10
push 0x402134
push 0x402128
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
call ebx
cmp eax, 0x431
jne 0x4022df
push 0x10
push 0x402128
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4022f0
call ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push esi
call edi
push 0
push 0
push 3
push 0
push 0
lea edx, [esp + 0x20]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
pop edi
pop esi
pop ebx
add esp, 0x104
ret
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x104
ret

Function at 0x402330
Capabilities:
Delete service
Stop service

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x1c
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40238d
push ebx
push esi
push 0x10020
push 0x402128
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x402388
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret

Function at 0x402710
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
and ecx, 0xffff
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test esi, esi
je 0x402784
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
je 0x402784
mov edx, dword [esp + 0x1c]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402784
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
pop ebx
ret
Function at 0x402790
Capabilities:
Timestomp file

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push esi
push 0
push 0x2000000
push 3
push 0
push 5
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4027bf
xor eax, eax
pop esi
add esp, 0x18
ret
lea ecx, [esp + 0x14]
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_SystemTimeToFileTime]
lea edx, [esp + 0x28]
push ecx
push edx
call edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x28]
push eax
push ecx
call edi
lea edx, [esp + 8]
lea eax, [esp + 0x28]
push edx
push eax
call edi
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x18
ret

Function at 0x402960
Capabilities:
Get common file path

Disassembly:
sub esp, 0x30c
mov al, 0x73
push esi
mov byte [esp + 4], al
mov byte [esp + 9], al
mov al, 0x6c
push edi
mov byte [esp + 0x10], al
mov byte [esp + 0x11], al
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x12]
mov byte [esp + 9], 0x66
mov byte [esp + 0xa], 0x63
mov byte [esp + 0xb], 0x5f
mov byte [esp + 0xc], 0x6f
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0x64
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
lea ecx, [esp + 8]
lea edx, [esp + 0x10c]
push ecx
push edx
lea eax, [esp + 0x114]
push 0x402158
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x10c]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x402a2b
push 5
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
mov eax, dword [esp + 0x318]
lea edx, [esp + 0x210]
push edx
push eax
call fcn.00402920
add esp, 8
lea ecx, [esp + 0x210]
push 0xffffffffffffffff
push ecx
push 0
call edi
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
pop esi
add esp, 0x30c
ret

Function at 0x402a40
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebp
push esi
push edi
xor ebp, ebp
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebp
push ebp
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x402acf
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x128
push eax
push esi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x402acf
mov edi, dword [esp + 0x138]
lea ecx, [esp + 0x30]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
push ecx
push edi
call ebx
test eax, eax
je 0x402ab7
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
je 0x402abb
lea eax, [esp + 0x34]
push eax
push edi
call ebx
test eax, eax
jne 0x402a9c
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebx
pop edi
mov eax, ebp
pop esi
pop ebp
add esp, 0x128
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x128
ret
Function at 0x402ae0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
ret
Function at 0x402fc0
Capabilities:
Create process on windows
Query environment variable
Self delete
Terminate process

Disassembly:
sub esp, 0x208
lea eax, [esp]
push 0x104
push eax
push 0x402170
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
lea ecx, [esp + 0x104]
push 0x104
push ecx
push 0
mov byte [esp + eax + 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov byte [esp + eax + 0x104], 0
lea edx, [esp + 0x104]
lea eax, [esp]
push edx
push eax
lea ecx, [esp + 8]
push 0x402160
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp]
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x403b60
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
jne 0x403bae
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x403bae
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov edx, dword [eax]
cmp edx, 0x4550
jne 0x403bae
mov edx, dword [esp + 0xc]
add eax, 4
mov dword [ecx], eax
add eax, 0x14
mov dword [edx], eax
cmp word [eax], 0x10b
jne 0x403bae
mov ecx, dword [esp + 0x10]
add eax, 0xe0
mov dword [ecx], eax
mov eax, 1
ret
xor eax, eax
ret

Function at 0x403cb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x402010]
sub esp, 8
mov ecx, dword [eax + 0x3c]
push ebx
push ebp
push esi
mov ecx, dword [ecx + eax + 0x78]
push edi
add ecx, eax
xor esi, esi
mov edx, dword [ecx + 0x20]
mov edi, dword [ecx + 0x18]
add edx, eax
test edi, edi
jbe 0x403d4e
mov ebp, edx
mov edi, dword [ebp]
add edi, eax
cmp byte [edi], 0x4e
jne 0x403d1c
cmp byte [edi + 1], 0x74
jne 0x403d1c
mov edx, dword [ecx + 0x24]
xor ebx, ebx
lea edx, [edx + esi*2]
mov bx, word [edx + eax]
mov edx, dword [ecx + 0x1c]
lea edx, [edx + ebx*4]
mov edx, dword [edx + eax]
add edx, eax
mov ebx, dword [edx]
mov dword [esp + 0x10], ebx
mov dl, byte [edx + 4]
mov byte [esp + 0x14], dl
mov dl, bl
cmp dl, 0xb8
jne 0x403d1c
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x11]
cmp edx, ebx
je 0x403d2f
mov edx, dword [ecx + 0x18]
inc esi
add ebp, 4
cmp esi, edx
jb 0x403cd5
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x403d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov edx, dword [0x40201c]
push ebx
push ebp
push esi
mov eax, dword [edx + 0x3c]
push edi
mov dword [esp + 0x14], 0
mov ebx, dword [eax + edx + 0x78]
mov eax, dword [ebx + edx + 0x20]
add ebx, edx
add eax, edx
mov dword [esp + 0x18], ebx
mov ecx, dword [ebx + 0x18]
test ecx, ecx
mov dword [esp + 0x1c], ecx
jbe 0x403e32
mov ebp, dword [esp + 0x88]
mov dword [esp + 0x10], eax
jmp 0x403da8
mov ebx, dword [esp + 0x18]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
mov edi, ebp
not ecx
mov esi, dword [eax]
dec ecx
add esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x403e3d
mov eax, dword [0x402018]
xor ebx, ebx
test eax, eax
jbe 0x403e12
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
push ebx
call fcn.00403cb0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
lea esi, [esp + 0x20]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403e66
mov eax, dword [0x402018]
inc ebx
cmp ebx, eax
jb 0x403dcf
mov edx, dword [0x40201c]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
inc eax
add esi, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
jb 0x403da4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x74
ret
mov eax, dword [ebx + 0x24]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
lea eax, [eax + ecx*2]
xor ecx, ecx
pop ebp
mov cx, word [eax + edx]
mov eax, dword [ebx + 0x1c]
pop ebx
lea ecx, [eax + ecx*4]
mov eax, dword [ecx + edx]
mov ecx, dword [0x40204c]
add eax, ecx
add esp, 0x74
ret
mov edx, dword [0x402014]
mov ecx, dword [0x40201c]
pop edi
pop esi
lea eax, [edx + ebx*4]
pop ebp
pop ebx
mov eax, dword [eax + ecx]
add esp, 0x74
ret