joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f080
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45563c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], 0xffffffff
mov eax, dword [ebp - 0x30]
push eax
push 0x44d51c
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x45c], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x45c], 0
jne 0x40f0f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44d530
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
mov eax, dword [ebp - 0x34]
jmp 0x40f24d
push 0x44d54c
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 8
push 0x2c
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x45c]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x460], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x460], 0
jne 0x40f16b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x44d564
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x45c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x34]
jmp 0x40f24d
push 0x44d580
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 8
lea edx, [ebp - 8]
push edx
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x460]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x40f1c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x18b
push 0x44d598
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0x10
jmp 0x40f22a
push 0x190
push 0x44d5c0
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
push str.Service_status__d_._n
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
cmp dword [ebp - 0x28], 1
jne 0x40f217
push 0x44d5fc
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 8
jmp 0x40f22a
push str.Service_is_not_stopped._n
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 8
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x460]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x45c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411455
mov esp, ebp
pop ebp
ret
Function at 0x40f730
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x45563c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x134], 0
cmp dword [ebp + 8], 0
je 0x40f7a3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x13c]
mov al, byte [edx]
mov byte [ebp - 0x12d], al
add dword [ebp - 0x13c], 1
cmp byte [ebp - 0x12d], 0
jne 0x40f771
mov ecx, dword [ebp - 0x13c]
sub ecx, dword [ebp - 0x144]
mov dword [ebp - 0x140], ecx
jne 0x40f7ae
mov eax, dword [ebp - 0x134]
jmp 0x40f8ae
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0xffffffff
jne 0x40f7ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateToolhelp32Snapshot__of_processes__faild__d_
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
mov eax, dword [ebp - 0x134]
jmp 0x40f8ae
mov dword [ebp - 0x12c], 0x128
lea edx, [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x40f83d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Process32First_faild__d_
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x134]
jmp 0x40f8ae
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00412f4c
add esp, 8
test eax, eax
jne 0x40f883
mov ecx, dword [ebp - 0x124]
push ecx
lea edx, [ebp - 0x108]
push edx
push str.FIND_PROCESS_NAME:__s__PID__d_
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0x10
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x134], eax
jmp 0x40f89b
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x40f83d
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411455
mov esp, ebp
pop ebp
ret 4
Function at 0x40f8c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 8], 0
jb 0x40f8d5
cmp dword [ebp + 8], 0
jne 0x40f8ef
push str.ProcessId_error_and_return.
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 8
xor al, al
jmp 0x40fa06
mov eax, dword [ebp + 8]
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f92a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_open_process__d_
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
xor al, al
jmp 0x40fa06
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x40f945
mov dword [ebp - 0x10], 1
jmp 0x40f94c
mov dword [ebp - 0x10], 0
mov al, byte [ebp - 0x10]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x40f9d7
movzx edx, byte [ebp + 0x10]
test edx, edx
je 0x40f9d7
push 0x7530
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x40f991
cmp dword [ebp - 0xc], 0x102
je 0x40f9a6
cmp dword [ebp - 0xc], 0xffffffff
je 0x40f9bb
jmp 0x40f9d5
push str.The_state_of_the_specified_object_is_signaled
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 8
jmp 0x40f9d5
push str.Error_waiting_for_process_timeout_30s
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 8
jmp 0x40f9d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.The_function_has_failed__d_
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
jmp 0x40f9f9
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x40f9f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Unable_to_terminate_process___d_
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40fb70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44496b
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x45563c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x13c], 0
lea ecx, [ebp - 0x134]
call fcn.00406240
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
je 0x40fbe3
mov dword [ebp - 0x144], 0x20119
jmp 0x40fbed
mov dword [ebp - 0x144], 0x20219
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x148], eax
lea ecx, [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x148]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
jne 0x40fcb1
mov byte [ebp - 0x114], 0
push 0x103
push 0
lea edx, [ebp - 0x113]
push edx
call fcn.00417830
add esp, 0xc
mov dword [ebp - 0x118], 0x104
mov dword [ebp - 0x11c], 1
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x11c]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
jne 0x40fca4
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x134]
call fcn.00406400
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x134]
call fcn.00406480
push eax
mov ecx, dword [ebp + 8]
call fcn.00406270
mov ecx, dword [ebp - 0x140]
or ecx, 1
mov dword [ebp - 0x140], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.004063e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411455
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40ffc0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40fffe
mov ecx, dword [ebp - 4]
add ecx, 0x208
push ecx
push str.file__s__error_and_return_false
call fcn.004034b0
push eax
call fcn.004038b0
add esp, 0xc
xor al, al
jmp 0x410000
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x43164a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041de7d
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x431682
xor eax, eax
jmp 0x4316ae
cmp esi, dword [ebp - 4]
je 0x4316ab
cmp dword [ebp + 0xc], 0
je 0x4316ab
push dword [edi + 0x9c]
call fcn.00431258
push dword [edi + 0x9c]
mov esi, eax
call fcn.00417b01
pop ecx
pop ecx
cmp esi, eax
je 0x43167e
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x431d6b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45563c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004174bc
mov dword [ebp - 0x14], eax
cmp dword [0x458b84], edi
jne 0x431e5c
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x431de9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x431f3c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x431f3c
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x431f3c
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x458b84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x458b88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x458b8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x458b94], eax
test eax, eax
je 0x431e59
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x458b90], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x431e81
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x431e74
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x431e96
push 4
pop eax
jmp 0x431f3e
cmp dword [ebp - 0x14], edi
je 0x431e96
push dword [0x458b84]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x431e7b
mov eax, dword [0x458b90]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x431ef4
cmp dword [0x458b94], esi
je 0x431ef4
push eax
call ebx
push dword [0x458b94]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x431ef4
test eax, eax
je 0x431ef4
call ecx
test eax, eax
je 0x431ee9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x431ee9
test byte [ebp - 8], 1
jne 0x431ef4
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x431f24
mov eax, dword [0x458b88]
cmp eax, esi
je 0x431f21
push eax
call ebx
test eax, eax
je 0x431f21
call eax
mov edi, eax
test edi, edi
je 0x431f21
mov eax, dword [0x458b8c]
cmp eax, esi
je 0x431f21
push eax
call ebx
test eax, eax
je 0x431f21
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x458b84]
call ebx
test eax, eax
je 0x431f3c
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x431f3e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411455
leave
ret
Function at 0x405cbf
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ec4], 0
push esi
jne 0x405cf6
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405cd0
mov dword [ecx*4 + 0x422ec0], eax
inc ecx
cmp ecx, 0x100
jl 0x405ccb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d27
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ec0]
xor eax, esi
inc ecx
dec edx
jne 0x405d09
pop edi
not eax
pop esi
ret 0xc

Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
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 eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a
Function at 0x21124a00
Capabilities:
Check mutex on windows

Disassembly:
test esi, esi
push ebx
push edi
je 0x21124aa9
mov eax, dword [0x21159310]
test eax, eax
je 0x21124aa9
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x21124b0b
mov eax, 0x21159290
lock inc dword [eax]
cmp dword [esi + 0x1c8], 0xfffffffe
je 0x21124ac0
mov eax, dword [0x211566c0]
test eax, eax
je 0x21124a4f
mov eax, dword [0x211592a0]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [esi + 0x1c8]
push ebp
push 0
push 0
push 0
push ecx
lea ebx, [esi + 0x1e0]
push ebx
call dword [sym.imp.WINMM.dll_midiOutOpen]
mov ebp, eax
mov eax, dword [0x211566c0]
test eax, eax
je 0x21124a9e
mov eax, dword [0x211592a0]
test eax, eax
jne 0x21124a95
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push 0
push 0
call edi
test eax, eax
mov dword [0x211592a0], eax
je 0x21124a84
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test ebp, ebp
pop ebp
je 0x21124aae
dec dword [0x21159290]
pop edi
xor eax, eax
pop ebx
ret
mov edx, dword [esi + 0x1d0]
mov eax, dword [ebx]
push 0x40
push edx
push eax
call dword [sym.imp.WINMM.dll_midiOutPrepareHeader]
xor edi, edi
mov dword [esi + 0x1c4], edi
mov eax, 0x21159290
lock dec dword [eax]
mov eax, esi
call fcn.211240f0
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, edi
jle 0x21124b0b
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi + 8]
cmp dword [eax], 0x10
jne 0x21124afd
mov dword [eax], 8
mov edx, dword [esi + 0x10]
add edx, edi
push edx
call sym.mss32.dll__AIL_resume_sequence_4
mov eax, dword [esi + 0x14]
inc ebx
add edi, 0x81c
cmp ebx, eax
jl 0x21124ae0
pop edi
mov eax, 1
pop ebx
ret
Function at 0x21136979
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x211369e4
push 0x3d
push dword [ebp + 8]
call fcn.21136b59
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x211369e4
cmp dword [ebp + 8], esi
je 0x211369e4
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x211562a0]
cmp eax, dword [0x211562a4]
jne 0x211369ca
mov edi, eax
call fcn.21136918
mov dword [0x211562a0], eax
cmp eax, ebx
jne 0x21136a23
cmp dword [ebp + 0xc], ebx
je 0x211369ec
cmp dword [0x211562a8], ebx
je 0x211369ec
call fcn.21136443
test eax, eax
je 0x21136a23
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x21136b27
push 4
call fcn.2113369d
cmp eax, ebx
pop ecx
mov dword [0x211562a0], eax
je 0x211369e4
mov dword [eax], ebx
cmp dword [0x211562a8], ebx
jne 0x21136a23
push 4
call fcn.2113369d
cmp eax, ebx
pop ecx
mov dword [0x211562a8], eax
je 0x211369e4
mov dword [eax], ebx
mov ebx, dword [0x211562a0]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.211368cb
mov edi, eax
test edi, edi
pop ecx
jl 0x21136a7c
cmp dword [ebx], 0
je 0x21136a7c
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.211326d8
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x21136a64
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x21136ab2
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x21136a5b
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.21136198
test eax, eax
pop ecx
pop ecx
je 0x21136ab2
jmp 0x21136aad
cmp dword [ebp - 4], 0
jne 0x21136b20
test edi, edi
jge 0x21136a8c
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.21136198
test eax, eax
pop ecx
pop ecx
je 0x211369e4
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x211562a0], eax
cmp dword [ebp + 0xc], 0
je 0x21136b09
push dword [ebp + 8]
call fcn.211335a0
inc eax
inc eax
push eax
call fcn.2113369d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x21136b09
push dword [ebp + 8]
push esi
call fcn.21134270
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x21136b02
or dword [ebp - 8], 0xffffffff
push esi
call fcn.211326d8
pop ecx
cmp dword [ebp - 4], 0
je 0x21136b18
push dword [ebp + 8]
call fcn.211326d8
pop ecx
mov eax, dword [ebp - 8]
jmp 0x211369e7
push esi
call fcn.211326d8
pop ecx
xor eax, eax
jmp 0x211369e7

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 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 0x42a220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x42a22f
pop dword [ebp - 0x48]
mov eax, 0x42a22f
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x95aac357
add dword [ebp - 0x58], 0xb8a781f4
mov dword [ebp - 0x54], 0x3cf8cdf1
add dword [ebp - 0x54], 0xf53a7e54
mov dword [ebp - 0x50], 0xf293e890
sub dword [ebp - 0x50], 0xa647a462
mov dword [ebp - 0x4c], 0xf55f3d29
sub dword [ebp - 0x4c], 0xf55f3d29
lea eax, [ebp - 0x58]
push eax
mov eax, 0x8c71984a
sub eax, 0x8c2be7e6
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0x1de41637
sub dword [ebp - 0x58], 0xa971ace1
mov dword [ebp - 0x54], 0x92059a90
add dword [ebp - 0x54], 0xaf66c6e5
mov dword [ebp - 0x50], 0xa7490c4e
add dword [ebp - 0x50], 0xbc26601e
mov dword [ebp - 0x4c], 0x66f7d346
add dword [ebp - 0x4c], 0x99082cba
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x7eb2c8dd
add eax, 0x8192e7a3
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x4bea0
push 0
call eax
mov ecx, 0xc368a766
sub ecx, 0xc3686523
xor edx, edx
add edx, eax
mov edi, 0x1cb6db6b
add edi, 0xe3908495
add edi, dword [ebp - 0x48]
mov esi, 0xfe50f76a
add esi, 0x8ca3fb72
mov dword [ebp - 0x40], 0xb70f2a81
mov ebx, dword [edi]
mov dword [ebp - 0x2c], 0x2807e318
xor ebx, esi
sub dword [ebp - 0x28], eax
mov dword [edx], ebx
add dword [ebp - 0x1c], 0x59d8c7ec
add edx, 0x51e531ae
add edx, 0xae1ace56
add edi, 4
loop 0x42a34e
add eax, 0xbcd32987
sub eax, 0xbcd22da8
mov ebx, eax
add eax, 0xe7a629d6
sub eax, 0xe7a629d1
mov ecx, 0xca83e4e3
add ecx, 0x35bc1b1d
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x405890
Capabilities:
Encode data using xor

Disassembly:
nop
nop
nop
nop
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
xor edx, edx
jbe 0x4058a1
push dword [ebx - 0x73]
jne 0x4058b3
je 0x4058c7
lea esi, [ebp + 0xc]
sub edi, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
sal dl, 0xae
not ecx
dec ecx
cmp ebx, 0x10
jge 0x40589e
adc byte [ebp - 0x18], bh
mov dword [ebp + ebx*8 - 0x24], ecx
ja 0x405847
jle 0x405909
add esi, 4
add edx, ecx
test edi, edi
jne 0x4058a7
or al, 0x4f
or byte [edx + 0x52], al
push eax
call 0x2d404a60
mov esi, dword [ebp + 0xc]
xor ecx, ecx
test al, 0xc3
push eax
inc ebp
hlt
jb 0x40593c
dec ebp
cld
cmp ecx, 6
jge 0x4058ab
mov eax, dword [ebp + ecx*4 + 0x68]
inc ecx
push edx
dec ebp
cld
jmp 0x40590b
mov eax, ecx
mov ecx, eax
mov edi, edx
jb 0x4058ea
add ebp, dword [ebp - 0xc3c16ed]
in al, dx
mov ebp, eax
clc
mov ebp, dword [ecx - 0x7cfc1eb9]
rol byte [ebx + esi*8], 0xa4
mov esi, dword [eax]
mov esp, ebx
clc
test esi, esi
jne 0x405968
mov eax, dword [ebp - 0xc]
pop edi
pop esi
xor eax, 0x8b5bbb02
push 0x15
sub ah, byte [ebp - 0x70]
nop
nop
nop
nop
inc ebp
clc