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

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404000
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x404036
mov dword [0x446040], eax
mov edx, 0x403fe0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040cae0
test eax, eax
sete al
movzx eax, al
mov dword [0x43e0d0], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43e0d0], eax
leave
ret

Function at 0x404120
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.VxR
mov dword [ebp - 0x24], 0x43cbc4
mov dword [ebp - 0x1c], 0x4041e0
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.0040d050
cmp dword [0x43e0d0], 0
mov dword [ebp - 0x44], 0x446050
je 0x4041c0
jl 0x404200
mov dword [ebp - 0x3c], 1
mov eax, dword [0x446040]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x4042a3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.0040d130
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x446660]
mov eax, 0xffffffff
test edx, edx
je 0x40421a
mov eax, dword [0x43e0d4]
test eax, eax
je 0x40425a
xor eax, eax
test eax, eax
jne 0x404250
mov edi, dword [0x43e0d0]
test edi, edi
js 0x404250
mov dword [ebp - 0x44], 0x446050
mov ebx, dword [0x43e0d0]
test ebx, ebx
je 0x4041c0
jmp 0x40416e
xor esi, esi
mov dword [0x43e0d0], esi
jmp 0x404228
mov dword [esp], 0x43e0d8
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x4042e1
mov eax, dword [0x43e0d4]
test eax, eax
jne 0x404218
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x43e0d4]
test eax, eax
je 0x40427d
jmp 0x404218
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4042d5
mov dword [esp + 4], eax
mov eax, dword [0x446040]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40430a
test edx, edx
je 0x4042f5
mov dword [ebp - 0x3c], 1
call fcn.00403b80
call fcn.00404000
mov eax, 1
mov dword [0x43e0d4], eax
jmp 0x404218
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4041b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x4042d1
Function at 0x409950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00409930
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40999c
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x409970
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40c980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040daa0
call fcn.0040cbe0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40c9b8
jmp 0x40ca56
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40c9b7
cmp cl, 0x22
je 0x40ca10
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40ca30
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40ca30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40c9f0
jmp 0x40ca30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40ca10
cmp cl, 0x22
je 0x40ca92
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40ca50
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x40ca40
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40ca74
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym.PR__AQ_AN7ARAP_z7U7_xaY7_7_yUAfN
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40ca30

Function at 0x40cf40
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x4466c0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40cf80
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0040cae0
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x403b55
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x403b64
pop dword [ebp - 0x24]
mov eax, 0x403b64
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xba768a03
sub dword [ebp - 0x34], 0x6c2444b8
mov dword [ebp - 0x30], 0x3845badc
add dword [ebp - 0x30], 0xf9ed9169
mov dword [ebp - 0x2c], 0x56f0506
sub dword [ebp - 0x2c], 0xb922c0d8
mov dword [ebp - 0x28], 0x2bd5a5bb
add dword [ebp - 0x28], 0xd42a5a45
lea eax, [ebp - 0x34]
push eax
mov eax, 0xe07e3f2a
sub eax, 0xe03dcf0e
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x940376f3
add dword [ebp - 0x34], 0xe06ef263
mov dword [ebp - 0x30], 0xe0eab603
add dword [ebp - 0x30], 0x6081ab72
mov dword [ebp - 0x2c], 0xb771ccc9
sub dword [ebp - 0x2c], 0x5402605d
mov dword [ebp - 0x28], 0xea125f17
sub dword [ebp - 0x28], 0xea125f17
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0x86223e3b
add eax, 0x7a1e31e5
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3abbe
push 0
call eax
mov ecx, 0x54dc
xor edx, edx
add edx, eax
mov esi, 0x40c800
add esi, dword [ebp - 0x24]
mov ebx, 0x21bfa941
add dword [ebp - 0x20], 0x6b4d973d
mov edi, dword [esi]
add edi, ebx
xor dword [ebp - 0x20], ebx
mov dword [edx], edi
add edx, 0x477448b2
add edx, 0xb88bb752
add esi, 0xc623fda
sub esi, 0xc623fd6
loop 0x403c71
add eax, 0x14643
xor ebx, ebx
add ebx, eax
add eax, 0x85e39805
sub eax, 0x85e39800
mov ecx, 0x8a2fbb1
sub ecx, 0x862fbb1
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x404837
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x40649c
call fcn.00405674
cmp dword [0x40a01c], 0
mov esi, dword [ebp + 8]
jne 0x404856
mov al, 1
jmp 0x404926
test esi, esi
je 0x404924
xor ebx, ebx
cmp word [esi], bx
je 0x404924
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404924
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404924
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.00403b55
pop ecx
pop ecx
and dword [ebp - 4], ebx
xor edi, edi
mov esi, dword [0x40a01c]
inc edi
cmp dword [ebp - 0x18], ebx
je 0x404911
lea eax, [ebp - 0x28]
push eax
call fcn.00403b55
pop ecx
test al, al
jne 0x404911
cmp dword [ebp - 0x18], esi
jbe 0x404911
cmp dword [0x40a020], 8
lea eax, [ebp - 0x28]
mov ecx, 0x40a00c
cmovae ecx, dword [0x40a00c]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404911
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x404911
push 0x4075e0
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
test eax, eax
movzx ebx, bl
pop ecx
pop ecx
cmovne ebx, edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push 0
push edi
call fcn.00403b55
mov al, bl
jmp 0x404926
xor al, al
call fcn.00405632
ret
Function at 0x4049d4
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
push 0x230
mov eax, 0x4064cc
call fcn.00405674
xor eax, eax
mov bl, al
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.kernel32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x404b6c
push str.__alloweddir
mov bl, 1
call dword [sym.imp.MSVCR120.dll_wcslen]
xor esi, esi
mov dword [ebp - 0x234], eax
pop ecx
mov dword [ebp - 0x238], esi
cmp dword [ebp - 0x23c], esi
jle 0x404b65
cmp dword [edi + esi*4], 0
je 0x404b52
push eax
push str.__alloweddir
push dword [edi + esi*4]
call dword [sym.imp.MSVCR120.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404b4c
mov eax, dword [edi + esi*4]
xor edx, edx
mov ecx, dword [ebp - 0x234]
mov bl, dl
lea esi, [eax + ecx*2]
cmp word [esi], dx
je 0x404b74
push esi
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp eax, 0x104
jae 0x404b46
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404b46
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x404b46
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00403b55
pop ecx
pop ecx
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp - 0x220], esi
je 0x404b34
mov ecx, 0x104
cmp dword [ebp - 0x220], ecx
jae 0x404b34
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push ecx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
test eax, eax
jne 0x404b34
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x404b34
cmp word [ebp - 0x218], si
jne 0x404b12
mov eax, esi
jmp 0x404b20
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x218]
mov ecx, 0x40a00c
push eax
call fcn.00403b55
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
push esi
push 1
call fcn.00403b55
mov esi, dword [ebp - 0x238]
mov eax, dword [ebp - 0x234]
inc esi
mov dword [ebp - 0x238], esi
cmp esi, dword [ebp - 0x23c]
jl 0x404a33
push edi
call dword [sym.imp.kernel32.dll_LocalFree]
mov al, bl
call fcn.00405632
ret
mov esi, dword [ebp - 0x238]
mov eax, ecx
jmp 0x404b52

Function at 0x404e1d
Capabilities:
Accept command line arguments

Disassembly:
push esi
push 1
call fcn.00403b55
pop ecx
push 2
call dword [sym.imp.kernel32.dll_SetErrorMode]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov esi, eax
call fcn.004049d4
test al, al
jne 0x404e4c
xor eax, eax
inc eax
jmp 0x404e5b
push esi
call fcn.00404c3c
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop esi
ret 0x10
Function at 0x40594a
Capabilities:
Terminate process

Disassembly:
call fcn.00403b55
jmp 0x405954
push 0x14
push 0x408248
call fcn.00405cc0
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
call dword [sym.imp.MSVCR120.dll___crtGetShowWindowMode]
movzx ebx, ax
mov dword [ebp - 4], esi
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
mov edi, esi
mov esi, 0x40a648
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x40599b
cmp eax, edx
jne 0x405984
xor esi, esi
inc esi
mov edi, esi
jmp 0x40599e
xor esi, esi
inc esi
cmp dword [0x40a64c], esi
jne 0x4059b0
push 0x1f
call sub.MSVCR120.dll__amsg_exit
pop ecx
jmp 0x4059eb
cmp dword [0x40a64c], 0
jne 0x4059e5
mov dword [0x40a64c], esi
push 0x407260
push 0x407250
call sub.MSVCR120.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4059eb
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x405b02
mov dword [0x40a2f4], esi
cmp dword [0x40a64c], esi
jne 0x405a0e
push 0x40724c
push 0x407228
call sub.MSVCR120.dll__initterm
pop ecx
pop ecx
mov dword [0x40a64c], 2
test edi, edi
jne 0x405a1b
xor eax, eax
mov ecx, 0x40a648
xchg dword [ecx], eax
cmp dword [0x40a650], 0
je 0x405a3f
push 0x40a650
call fcn.00403b55
pop ecx
test eax, eax
je 0x405a3f
push 0
push 2
push 0
call dword [0x40a650]
mov eax, dword [sym.imp.MSVCR120.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x405a8e
test cl, cl
je 0x405a5b
test edi, edi
jne 0x405a8e
mov al, byte [esi]
test al, al
je 0x405a6b
cmp al, 0x20
ja 0x405a6b
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x405a5b
push ebx
push esi
push 0
push 0x400000
call main
mov dword [0x40a2f8], eax
cmp dword [0x40a2fc], 0
jne 0x405ae7
push eax
call dword [sym.imp.MSVCR120.dll_exit]
cmp cl, 0x22
jne 0x405a9f
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.MSVCR120.dll__ismbblead]
pop ecx
test eax, eax
je 0x405ab2
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x405a4c
cmp dword [0x40a2f4], 0
jne 0x405afb
call dword [sym.imp.MSVCR120.dll__cexit]
mov eax, dword [0x40a2f8]
mov dword [ebp - 4], 0xfffffffe
call fcn.00405d05
ret
Function at 0x40cb27
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push esi
push 0xff78
push 0x40
mov esi, ecx
call dword [0x41a04c]
mov edx, dword [esi]
mov ecx, eax
call fcn.004110ef
mov edx, dword [0x41a40c]
mov ecx, eax
call fcn.004110ef
mov edx, dword [0x41a40c]
mov ecx, eax
call fcn.004110ef
mov edx, dword [0x41a40c]
mov ecx, eax
pop esi
jmp fcn.004110ef
Function at 0x40fac9
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
push 0xdbd
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.log:_am9aegi3
call edi
push ebx
push 0x5fb
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
pop esi
push str.log:_ikl4737u
call edi
sub esi, 1
jne 0x40fb1d
push str.WTMR_gtmpf1co
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov esi, eax
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
test esi, esi
je 0x40fb4a
push esi
call ebx
jmp 0x40fb51
push str.log:_hecp9j0r
call edi
push str.WTMR_zbw3yqr5
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, eax
push str.pqmf35tj
push str.mutz8d35
call edi
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push str.SMPHR_f9pmadlj
push 1
push 0
push 0
call ebx
push str.qnbi4cse
push str.d7c0wm63
mov esi, eax
call edi
push 0
push 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
call esi
test eax, eax
je 0x40fbc4
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.regtwzgd061
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.XMLogau28s2
push 1
push 0
push 0
call ebx
xor ebx, ebx
push ebx
push 1
push eax
call esi
push str.MTX252ldprb
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40fbf3
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40fbff
push str.rei97f0l
push str.tu2kv3cp
call edi
lea eax, [ebp - 0x148]
push eax
push str.s_vk02bu7y
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.ev_tzj59ct9
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov esi, str.SlimeLoveAllTheTime
push esi
push ebx
push 0x1f0001
call dword [0x41a170]
test eax, eax
jne 0x40fc5b
push esi
push ebx
push ebx
call dword [0x41a108]
xor eax, eax
inc eax
jmp 0x40fc5d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40fe5a
Capabilities:
Print debug messages
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3a4
push ebx
push esi
push edi
push 0xfe8
xor ebx, ebx
mov dword [ebp - 4], ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.MTXolq7uf89
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40fea6
call edi
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40feba
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.log:_tm4oz6yy
call esi
push str.log:_vjhgea32
call esi
lea eax, [ebp - 8]
push eax
push 0x20019
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.regyevpnmyu
push 0x80000001
call ebx
push str.SMPHR_5qcs4vvg
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov esi, eax
push str.1wqkpspd
push str.bkbht4hl
call edi
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
test eax, eax
je 0x40ff16
push str.bgg4ccnc
push str.d40rkd33
call edi
push str.ev_wjh97oui
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 9
pop esi
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push str.regtev1ne76
push 0x80000001
call ebx
sub esi, 1
jne 0x40ff3a
push str.XMLr21h9wjf
push 1
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push esi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push str.fspqoq1f
push str.63r0m2yt
call edi
push str.WTMR_dm6ckspg
push 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
push str.c86wlxid
push str.82javmto
call edi
lea eax, [ebp - 0x150]
push eax
push str.s_kqwpxh5x
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.WTMR_ks97soft
push 1
push 0
call esi
test eax, eax
je 0x40ffcd
push eax
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
xor esi, esi
push esi
push 0x314
push esi
push 4
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.xee28486
push str.9ioqq5wp
call edi
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
push str.regxil5zdnv
push 0x80000001
call ebx
lea eax, [ebp - 0x3a0]
push eax
push dword [ebp - 4]
call dword [0x41a020]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
setne cl
pop esi
mov eax, ecx
pop ebx
leave
ret