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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x46d23d
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x46d236
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x46d251
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0046cbf0
test bl, bl
jne 0x46d32b
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x48ee34
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x46d289
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x46d29e
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0046d0f8
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x46d2d1
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x46d27e
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x46d2f5
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x46d307
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x46d31c
jmp 0x46d3ec
cmp bl, 1
jne 0x46d3ec
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x48ee8e
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x46d34b
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x46d360
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0046d0f8
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x46d393
sub ebx, 6
inc dword [ebp - 8]
jne 0x46d340
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x46d3bb
mov eax, 4
mov ebx, dword [ebp + 0xc]
movzx edx, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x46d3cd
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x46d3e2
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0046cc70
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x470880
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4708ae
mov eax, ebx
call fcn.00471334
cmp dword [ebx + 0x40], 0
je 0x4708a7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47091f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x470911
cmp dword [ebx + 8], 0
je 0x4708d0
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4708e2
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x470911
cmp dword [ebx + 8], 0
je 0x4708c3
cmp eax, 3
je 0x4708f5
dec eax
jne 0x4708c3
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4708c3
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4708c3
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47093d
cmp dword [ebx + 0x14], 0xcc
je 0x47093d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00470948
pop ebx
ret

Function at 0x48275c
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4827c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xfd
lea eax, [ebp - 4]
mov edx, 0xfe
call fcn.004051f8
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f68
push eax
call sub.advapi32.dll_GetUserNameA
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004051f8
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00404b2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4827d0
lea eax, [ebp - 4]
call fcn.00404ad8
ret
Function at 0x482a58
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f58
mov eax, dword [ebp - 8]
call fcn.00404f58
xor eax, eax
push ebp
push 0x482bf5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x64
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x482a2c]
call fcn.00405dfc
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
push 0
call sub.user32.dll_GetKeyboardLayoutList
cmp eax, 1
jl 0x482bbc
mov edx, dword [ebp - 0x10]
push edx
push eax
call sub.user32.dll_GetKeyboardLayoutList
mov esi, eax
dec esi
test esi, esi
jl 0x482bbc
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
push eax
call sub.imm32.dll_ImmIsIME
test al, al
je 0x482bb4
lea eax, [ebp - 0x119]
xor ecx, ecx
mov edx, 0x104
call fcn.004035e0
push 0x104
lea eax, [ebp - 0x119]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
push eax
call sub.imm32.dll_ImmGetIMEFileNameA
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x119]
mov ecx, 0x105
call fcn.00404d48
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 0xc]
call fcn.00408b28
mov eax, dword [ebp - 0x120]
push eax
lea edx, [ebp - 0x124]
mov eax, dword [ebp - 4]
call fcn.00408b28
mov edx, dword [ebp - 0x124]
pop eax
call fcn.00404f00
jne 0x482b71
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x14], eax
jmp 0x482bbc
push 0x104
lea eax, [ebp - 0x119]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
push eax
call sub.imm32.dll_ImmGetDescriptionA
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x119]
mov ecx, 0x105
call fcn.00404d48
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404f00
jne 0x482bb4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x14], eax
jmp 0x482bbc
inc ebx
dec esi
jne 0x482ae4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482bfc
lea eax, [ebp - 0x124]
mov edx, 2
call fcn.00404afc
lea eax, [ebp - 0x10]
mov edx, dword [0x482a2c]
call fcn.00405e08
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404afc
ret
Function at 0x482c08
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
xor ecx, ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f58
mov eax, dword [ebp - 8]
call fcn.00404f58
xor eax, eax
push ebp
push 0x482de9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0x111]
xor ecx, ecx
mov edx, 0x104
call fcn.004035e0
lea eax, [ebp - 0x216]
xor ecx, ecx
mov edx, 0x104
call fcn.004035e0
push 0x104
lea eax, [ebp - 0x216]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
jne 0x482c97
mov dword [0x488b28], 0x271b
jmp 0x482dbe
cmp byte [ebp + eax - 0x217], 0x5c
je 0x482caa
mov byte [ebp + eax - 0x216], 0x5c
inc eax
push 0x482df8
lea eax, [ebp + eax - 0x216]
push eax
call sub.kernel32.dll_lstrcpyA
mov eax, 0x48eea8
lea edx, [ebp - 0x216]
mov ecx, 0x105
call fcn.00404d48
lea eax, [ebp - 0x216]
push eax
call sub.shlwapi.dll_PathFileExistsA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x482d4d
lea eax, [ebp - 0x21c]
lea edx, [ebp - 0x216]
mov ecx, 0x105
call fcn.00404d48
mov eax, dword [ebp - 0x21c]
call fcn.00404f68
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x482d22
mov dword [0x488b28], 0x271c
lea eax, [ebp - 0x216]
push eax
call sub.shlwapi.dll_PathFileExistsA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x482d4d
mov eax, dword [ebp - 0xc]
call fcn.00404f68
push eax
lea eax, [ebp - 0x216]
push eax
call sub.kernel32.dll_lstrcpyA
push 0
lea eax, [ebp - 0x216]
push eax
lea edx, [ebp - 0x224]
xor eax, eax
call fcn.004032d4
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
call fcn.00409640
lea eax, [ebp - 0x220]
mov edx, dword [ebp - 4]
call fcn.00404da4
mov eax, dword [ebp - 0x220]
call fcn.00404f68
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x482da7
mov dword [0x488b28], 0x271d
mov eax, dword [ebp - 8]
call fcn.00404f68
push eax
lea eax, [ebp - 0x216]
push eax
call sub.imm32.dll_ImmInstallIMEA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482df0
lea eax, [ebp - 0x224]
mov edx, 3
call fcn.00404afc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404afc
ret
Function at 0x4832b8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff90
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f58
xor eax, eax
push ebp
push 0x48336d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.004035e0
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], bx
mov dword [ebp - 0x54], 0xc
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 0xffffffff
mov dword [ebp - 0x60], 0xc
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0xffffffff
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x4000000
push 0
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 4]
call fcn.00404f68
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x483355
mov ebx, dword [ebp - 0x70]
jmp 0x483357
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483374
lea eax, [ebp - 4]
call fcn.00404ad8
ret
Function at 0x9be780
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x66700d
lea edi, [esi - 0x26600d]
push edi
or ebp, 0xffffffff
jmp 0x9be7a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9be7a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9be798
mov eax, 1
add ebx, ebx
jne 0x9be7bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9be7b0
jne 0x9be7cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9be7b0
xor ecx, ecx
sub eax, 3
jb 0x9be7e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9be852
mov ebp, eax
add ebx, ebx
jne 0x9be7eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x9be7f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x9be81c
inc ecx
add ebx, ebx
jne 0x9be808
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9be7fd
jne 0x9be819
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9be7fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9be83c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9be82d
jmp 0x9be79e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9be83c
add edi, ecx
jmp 0x9be79e
pop esi
mov edi, esi
mov ecx, 0x16a9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9be85a
cmp byte [edi], 0x11
jne 0x9be85a
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 0x9be85f
lea edi, [esi + 0x5ba000]
mov eax, dword [edi]
or eax, eax
je 0x9be8ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5c102c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5c1084]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9be88c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5c108c]
or eax, eax
je 0x9be8c8
mov dword [ebx], eax
add ebx, 4
jmp 0x9be8a9
call dword [esi + 0x5c1088]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x9be8ff
cmp al, 0xef
ja 0x9be8f2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x9be8d4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x9be8e1
mov ebp, dword [esi + 0x5c1090]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x9be933
sub esp, 0xffffff80
jmp 0x40da6c
Function at 0x1003109
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1005030]
jne 0x1003112
ret
jmp 0x1003117
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x1005030]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x100504c]
test eax, eax
je 0x100313b
call eax
cmp dword [0x1005050], 0
je 0x1003182
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x1005050]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.01003109
add ebp, 0x2a8
leave
ret

Function at 0x10031a7
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10012f0
call fcn.01003350
cmp word [0x1000000], 0x5a4d
jne 0x10031e6
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x10031e6
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x10031ff
cmp ecx, 0x20b
je 0x10031ec
and dword [ebp - 0x1c], 0
jmp 0x1003216
cmp dword [eax + 0x1000084], 0xe
jbe 0x10031e6
xor ecx, ecx
cmp dword [eax + 0x10000f8], ecx
jmp 0x1003210
cmp dword [eax + 0x1000074], 0xe
jbe 0x10031e6
xor ecx, ecx
cmp dword [eax + 0x10000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1005054], 0xffffffff
or dword [0x1005058], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1005048]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1005044]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100505c], eax
call fcn.0100334a
cmp dword [0x1005034], 0
jne 0x1003273
push fcn.0100334a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01003338
push 0x1005010
push 0x100500c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1005040]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100503c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1005008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01003004
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], 0
jne 0x10032eb
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1003320
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100338b
ret
Function at 0x401dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00413f56
Function at 0x407410
Capabilities:
Check mutex on windows
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53f42a
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a2048]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x5ac8f8], 3
lea eax, [ebp - 0x14]
push 1
push 0x5507c8
push eax
sete bl
call main
add esp, 0xc
push dword [eax]
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov edx, dword [ebp - 0x14]
or ecx, 0xffffffff
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x407480
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x407496
call edi
cmp eax, 5
jne 0x407511
test bl, bl
jne 0x407511
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x407a30
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40763b
push eax
call main
push 0
mov esi, eax
push 0x10000000
push 0
mov ecx, esi
call main
push 0x585
push 0
push 0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push eax
call main
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00419087
test eax, eax
je 0x40763b
mov ecx, esi
call fcn.00417925
push 0x550824
mov ecx, esi
call main
push 0x7ac
call main
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x407559
push 0
mov ecx, eax
call main
mov ecx, eax
jmp 0x40755b
xor ecx, ecx
mov dword [esi + 0xcc], ecx
mov eax, dword [ecx]
push 0
push 0x66
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x160]
mov eax, dword [esi + 0xcc]
mov dword [esi + 0x20], eax
mov ecx, dword [eax + 0x528]
test ecx, ecx
je 0x407624
add ecx, 8
call fcn.00402d70
test al, al
je 0x407624
test bl, bl
je 0x40760d
mov ecx, dword [esi + 0xcc]
push 1
call main
mov eax, dword [0x5ac900]
push dword [eax + 4]
call main
mov ecx, dword [0x5ac900]
mov edi, eax
push dword [ecx + 8]
call main
add esp, 8
test edi, edi
je 0x4075ec
test eax, eax
je 0x4075ec
mov ecx, dword [esi + 0xcc]
push 1
push 0
push 0
push eax
push edi
push 0x5a8be0
call main
mov eax, dword [esi + 0xcc]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x18
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0xcc]
push 0x10
push 0x54fe2c
push str.LoopBeAudio_Device_not_installed
call main
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x474861
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x474870
pop dword [ebp - 0x38]
mov eax, 0x58b98805
sub eax, 0x58723f95
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x8ec41
push 0
mov eax, 0xa1cfe686
add eax, 0x5e850c56
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x465e
mov ebx, eax
mov edx, 0x4b5c12f
sub edx, 0x4591d2f
add edx, dword [ebp - 0x38]
mov edi, 0xd36683bb
sub dword [ebp - 0xc], esi
mov esi, dword [edx]
xor dword [ebp - 0x30], 0xd19ad711
sub esi, edi
mov dword [ebx], esi
add dword [ebp - 0x10], edi
add ebx, 0x1fa410bc
add ebx, 0xe05bef48
add edx, 0x51cc1ee4
add edx, 0xae33e120
loop 0x4748c3
add eax, 0x2e9c1609
add eax, 0xd164f642
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x4cb795
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x549689
call fcn.00528c47
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call main
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x552bc8
call main
cmp eax, 0xffffffff
jne 0x4cb849
push 0
push 0x55a858
lea ecx, [ebp - 0x4d0]
call main
cmp eax, 0xffffffff
jne 0x4cb849
push 0
push 0x554a24
lea ecx, [ebp - 0x4d0]
call main
cmp eax, 0xffffffff
jne 0x4cb849
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call main
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.kernel32.dll_SearchPathW]
test eax, eax
jne 0x4cb825
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00401fd0
jmp 0x4cb878
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call main
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00401fd0
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4cb86f
mov ebx, dword [ebp - 0x4cc]
jmp 0x4cb878
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00401fd0
mov eax, ebx
call fcn.00528bf6
ret
Function at 0x526434
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x59c7e0
call fcn.00528f70
call main
movzx esi, ax
push 2
call main
pop ecx
mov eax, 0x5a4d
cmp word [0x400000], ax
je 0x5262eb
xor ebx, ebx
jmp 0x52631e
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x5262e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x5262e7
xor ebx, ebx
cmp dword [eax + 0x400074], 0xe
jbe 0x52631e
cmp dword [eax + 0x4000e8], ebx
setne bl
mov dword [ebp - 0x1c], ebx
call fcn.0052d8fc
test eax, eax
jne 0x526332
push 0x1c
call main
pop ecx
call fcn.0052d869
test eax, eax
jne 0x526343
push 0x10
call main
pop ecx
call fcn.0052e1e7
and dword [ebp - 4], 0
call fcn.0052d911
test eax, eax
jns 0x52635d
push 0x1b
call main
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov dword [0x5ae9bc], eax
call main
mov dword [0x5ac8f0], eax
call main
test eax, eax
jns 0x526383
push 8
call main
pop ecx
call fcn.0052de02
test eax, eax
jns 0x526394
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x5263a7
push eax
call main
pop ecx
call fcn.0052e680
push esi
push eax
push 0
push 0x400000
call main
mov esi, eax
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x5263c9
push esi
call main
call fcn.00528021
jmp 0x5263fe
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
call fcn.00528fb5
ret
call main
jmp 0x5262bd