joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409b1b
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.00407ebf
and dword [ebp - 4], 0
cmp dword [0x4127a8], 0
mov ebx, eax
jne 0x409bcc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409c7d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409c7d
push eax
call fcn.00407e4d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4127a8], eax
call esi
push eax
call fcn.00407e4d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4127ac], eax
call esi
push eax
call fcn.00407e4d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4127b0], eax
call esi
push eax
call fcn.00407e4d
pop ecx
mov dword [0x4127b8], eax
test eax, eax
je 0x409bcc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407e4d
pop ecx
mov dword [0x4127b4], eax
mov eax, dword [0x4127b4]
cmp eax, ebx
je 0x409c24
cmp dword [0x4127b8], ebx
je 0x409c24
push eax
call fcn.00407ec8
push dword [0x4127b8]
mov esi, eax
call fcn.00407ec8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409c24
test edi, edi
je 0x409c24
call esi
test eax, eax
je 0x409c1b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409c1b
test byte [ebp - 0xc], 1
jne 0x409c24
or dword [ebp + 0x10], 0x200000
jmp 0x409c5d
mov eax, dword [0x4127ac]
cmp eax, ebx
je 0x409c5d
push eax
call fcn.00407ec8
pop ecx
test eax, eax
je 0x409c5d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409c5d
mov eax, dword [0x4127b0]
cmp eax, ebx
je 0x409c5d
push eax
call fcn.00407ec8
pop ecx
test eax, eax
je 0x409c5d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4127a8]
call fcn.00407ec8
pop ecx
test eax, eax
je 0x409c7d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409c7f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ed0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x40c048
call sym._EnterCriticalSection_4
mov ebx, dword [0x40c040]
sub esp, 4
test ebx, ebx
je 0x402f1b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402f14
test esi, esi
je 0x402f14
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402ef0
mov dword [esp], 0x40c048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x403100
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x403150
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x403228
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40318e
cmp eax, 4
jne 0x4031b0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40319e
cmp edx, 4
je 0x40319e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00403100
Function at 0x30013d12
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x218
call fcn.300102f3
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x30013d70
mov ecx, dword [ebp + 8]
call fcn.300102f3
push eax
push 0x30003b98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.3001028f
add esp, 0x10
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
leave
ret 4

Function at 0x30013d74
Capabilities:
Accept command line arguments

Disassembly:
push 0x244
mov eax, 0x3003ed69
call fcn.3001eda5
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
jne 0x30013dd7
push 0x30003bc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.3001028f
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x144]
lea edi, [ebp - 0x144]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x30013e0b
push dword [edi + esi*4]
lea ecx, [ebp - 0x38]
call fcn.300112b3
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.3000d83c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.300104cf
inc esi
cmp esi, dword [ebp - 0x10]
jl 0x30013dde
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call fcn.3001ee7d
ret 4

Function at 0x3001405e
Capabilities:
Allocate thread local storage

Disassembly:
push 0x21c
mov eax, 0x3003ee49
call fcn.3001eda5
mov esi, ecx
mov dword [ebp - 0x10], esi
or dword [esi], 0xffffffff
push dword [0x3004f750]
lea ecx, [esi + 4]
push 0x18
push 0x30003c58
push 0x50
call fcn.30011d8e
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x300140d6
push 0x30003c44
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.3001028f
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x11c]
lea edi, [ebp - 0x11c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
mov eax, esi
call fcn.3001ee7d
ret

Function at 0x300140de
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x30014122
push 0x30003c90
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.3000c862
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
leave
ret 4
Function at 0x30014130
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx]
sub esp, 0x218
cmp eax, 0xffffffff
jne 0x30014174
push 0x30003c90
lea eax, [ebp - 0x218]
push 0x3d
push eax
call fcn.3000c862
add esp, 0xc
push 0x43
pop ecx
mov esi, eax
push 0x30044ba4
lea eax, [ebp - 0x10c]
lea edi, [ebp - 0x10c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.3001f2c0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
leave
ret

Function at 0x300146e7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jle 0x30014717
push esi
mov edx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
mov esi, eax
and esi, 0xff
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x3004d338]
inc ecx
cmp ecx, dword [ebp + 0xc]
jl 0x300146f5
pop esi
not eax
pop ebp
ret 8
Function at 0x10004cd0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x10004d02
lea esp, [esp]
test cl, 3
je 0x10004d02
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x331a460]
add ecx, 1
sub esi, 1
jne 0x10004ce0
cmp esi, 0x20
push ebx
push edi
jb 0x10004eec
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x331a860]
xor edx, dword [ebx*4 + 0x331ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x331a460]
add ecx, 4
xor edx, dword [eax*4 + 0x331b060]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x331a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x331ac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x331a460]
add ecx, 4
xor eax, dword [edx*4 + 0x331b060]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x331a860]
xor edx, dword [ebx*4 + 0x331ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x331a460]
xor edx, dword [eax*4 + 0x331b060]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x331a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x331ac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x331a460]
xor eax, dword [edx*4 + 0x331b060]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x331a860]
xor edx, dword [ebx*4 + 0x331ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x331a460]
xor edx, dword [eax*4 + 0x331b060]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x331a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x331ac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x331a460]
and edx, 0xff
xor eax, dword [edx*4 + 0x331b060]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x331a860]
xor edx, dword [ebx*4 + 0x331ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x331a460]
add ecx, 4
xor edx, dword [eax*4 + 0x331b060]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x331a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x331ac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x331a460]
and edx, 0xff
xor eax, dword [edx*4 + 0x331b060]
sub edi, 1
jne 0x10004d12
cmp esi, 4
jb 0x10004f39
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x331a860]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x331ac60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x331a460]
and eax, 0xff
xor edi, dword [eax*4 + 0x331b060]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x10004ef6
test esi, esi
pop edi
pop ebx
je 0x10004f5d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x331a460]
add ecx, 1
sub esi, 1
jne 0x10004f40
not eax
pop esi
ret
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
lea eax, section..data
push eax
push 0x40
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualProtect
pop eax
call eax
ret
Function at 0x40b0a5
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
adc eax, 0x2444c7bb
dec eax
or edi, dword [ecx + 0x44c78733]
and al, 0x4c
ja 0x40b020
xor al, byte [ebx + 0x502444c7]
cmp dword ds:[0x2444c78f], 0x238d2654
mov dword [esp + 0x54], 0x8b238d26
mov dword [esp + 0x58], 0x973b893c
mov dword [ebx], edi
xchg edi, eax
mov dword [esp + 0x5c], 0x9361952b
invalid
inc esp
and al, 0x60
pushal
imul edx, dword [ecx + 0x44c79f64], 0x24
popal
popfd
pushal
wait

Function at 0x40c1d4
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x32ac9e9c
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add al, ah
dec esi
mov bh, 0xb6
pushfd
push cs
std
sahf
lodsb al, byte [esi]
xor cl, byte [ecx + 0x418d045e]
add cl, byte [ecx + 0x9d7f7df]
invalid

Function at 0x440a57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov dword [esp + 8], ecx
cmp dword [ecx + 8], 0
je 0x440adc
mov eax, dword [esp + 8]
mov edx, dword [eax]
test edx, edx
je 0x440adc
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [esp], 0xc0d0a0b
add al, 0x24
or ecx, dword [edx]
invalid
invalid
or al, 0xe
scasd eax, dword es:[edi]
jne 0x440ad0
mov edi, ecx
mov ecx, dword [ebp + 0xc]
jmp 0x440b54
pop ds
add byte [eax], al
mov ecx, dword [ebp + 0xc]
add esp, 0x14
cmp ecx, 1
mov edx, edi
sbb edx, 0
jl 0x440c3a
cmp eax, 0xc000010a
add al, ah
dec esi
mov bh, 0x85
les eax, [eax]
add byte [eax], al
mov esi, ecx
and esi, 0xffffd8f0
mov eax, esi
xor eax, 0xffffd8f0
mov ebx, ecx
and ebx, 0x270f
hlt
xor al, 0xde
inc esp
add al, ch
add bl, byte [edi]
add byte [eax], al
add esp, 0x18
test eax, eax
add al, ah
dec esi
mov bh, 0x88
pop dword [eax]
add byte [eax], al
mov ecx, dword [esp + 8]
mov ecx, dword [ecx]
test ecx, ecx
je 0x440ce0
mov dword [esp], 0xc0d0a0b
mov dword [esp + 4], 0
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ebx
add dl, 0x42
xor dl, byte [esp + ebx]
add dl, 0xb6
mov byte [esp + ebx], dl
inc ebx
cmp ebx, 8
jne 0x440c78
mov esi, dword [0x44de2c]
test esi, esi
je 0x440cd6
mov edx, dword [esp]
xor ebx, ebx
mov edi, dword [0x44de30]
nop
nop
nop
nop
nop
nop
nop
cmp dword [edi + ebx*8], 0x1b6183f2
je 0x440cb8
inc ebx
cmp esi, ebx
jne 0x440ca8
jmp 0x440cd6
mov esi, dword [edi + ebx*8 + 4]
cmp esi, edx
je 0x440cd6
push ecx
push 4
push esi
push dword [0x44de34]
mov esp, eax
cmp byte [ebx], dl
lodsd eax, dword [esi]
call 0x442b4b
add byte [eax], al
add byte [ebp + 0x5f5ef465], cl
Function at 0x4016b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x80c
mov eax, dword [0x4a90d4]
xor eax, esp
mov dword [esp + 0x808], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
test eax, eax
je 0x40173c
lea ecx, [ebp + 0x14]
push ecx
push 0
push eax
push 0xffffffffffffffff
lea eax, [esp + 0x18]
push 0x200
push eax
call fcn.00401640
push dword [eax + 4]
push dword [eax]
call fcn.00435c1d
or ecx, 0xffffffff
add esp, 0x20
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x40173c
lea eax, [esp + 8]
push eax
push dword [ebp + 0xc]
lea eax, [esp + 0x410]
push esi
push 0x49f8a8
push ecx
push 0x200
push eax
call fcn.00401690
add esp, 0x1c
test eax, eax
js 0x40173c
lea eax, [esp + 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esp + 0x80c]
pop esi
xor ecx, esp
call fcn.00428a63
mov esp, ebp
pop ebp
ret
Function at 0x406740
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x14
push edi
xor edi, edi
test edx, edx
je 0x406852
push ebx
mov dword [ebp - 0x14], edi
xor ebx, ebx
mov dword [ebp - 0x10], 1
push esi
test edi, edi
jne 0x406849
mov eax, dword [ebp + ebx*4 - 0x14]
sub eax, edi
je 0x406782
sub eax, 1
jne 0x40683f
mov ecx, str.CredDB2.CEF
jmp 0x406787
mov ecx, str.CredDB.CEF
mov esi, edx
mov dword [ebp - 4], ecx
lea edx, [esi + 2]
nop
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x406790
sub esi, edx
lea edx, [ecx + 2]
sar esi, 1
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4067a2
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + 6]
xor ecx, ecx
add eax, esi
mov dword [ebp - 8], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004360b7
mov edx, dword [ebp + 8]
mov ecx, eax
add esp, 4
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x40683f
test esi, esi
je 0x4067ef
cmp word [edx + esi*2 - 2], 0x5c
mov eax, 0x4a1a04
jne 0x4067f4
mov eax, 0x4a1a08
push dword [ebp - 4]
cmp word [edx], 0x5c
push eax
push edx
mov edx, 0x4a1a08
mov eax, str.__
cmove eax, edx
push eax
push str._s_s_s_s
push 0xffffffffffffffff
push dword [ebp - 8]
push ecx
call fcn.00401690
mov esi, dword [ebp - 0xc]
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, 1
push esi
cmovne edi, eax
call fcn.0043609c
mov edx, dword [ebp + 8]
add esp, 4
inc ebx
cmp ebx, 2
jb 0x406762
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4086c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a9c0
mov eax, dword fs:[0]
push eax
sub esp, 0x58c
mov eax, dword [0x4a90d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x47e2f8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x4f0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4087b8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push dword [esi + 0x14]
lea edi, [esi + 0x34]
mov ecx, edi
call fcn.0040ba00
test eax, eax
jne 0x40875a
push dword [esi + 0x4f0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [esi + 0x4f0], 0
cmp dword [esi + 0x264], eax
sete al
push eax
call fcn.0040c910
add esp, 4
jmp 0x4087b8
cmp dword [esi + 0x268], 0
jne 0x40876c
cmp dword [esi + 0x264], 0
je 0x4087b8
mov eax, dword [esi + 0x264]
lea ecx, [ebp - 0x598]
push 0
push edi
mov dword [0x4ac0bc], eax
call fcn.004087e0
cmp dword [ebp - 0x348], 0
lea ecx, [ebp - 0x598]
mov dword [ebp - 4], 0
je 0x4087a2
call fcn.0040b120
jmp 0x4087a7
call fcn.0041b370
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0x598]
call fcn.00408890
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428a63
mov esp, ebp
pop ebp
ret
Function at 0x409a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x4a90d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x220], eax
test edi, edi
je 0x409c76
test eax, eax
je 0x409c76
test ebx, ebx
je 0x409c76
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x409c61
push esi
push 0x47e784
push edi
call fcn.004319df
push esi
push 0x4a1a08
push dword [ebp - 0x220]
call fcn.004319df
push esi
push 0x4a1a08
push ebx
call fcn.004319df
mov eax, dword [ebp - 0x228]
add esp, 0x24
push esi
push edi
push 0x1d
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x10
push 1
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x409b86
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x409b86
movzx ecx, word [eax]
add ecx, eax
cmp eax, ecx
jae 0x409b86
cmp dword [eax], 0xfeef04bd
je 0x409b34
add eax, 4
cmp eax, ecx
jb 0x409b23
jmp 0x409b86
movups xmm0, xmmword [eax + 0x10]
movups xmm1, xmmword [eax]
movups xmmword [ebp - 0x260], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0x250], xmm0
movaps xmm0, xmm1
psrldq xmm1, 8
psrldq xmm0, 0xc
movd ecx, xmm0
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movd ecx, xmm1
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push str._d._d._d._d
push esi
push dword [ebp - 0x220]
call fcn.0040b560
add esp, 0x1c
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x409c49
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x22c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x409c42
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [ebp - 0x21c]
push eax
movzx eax, word [ebp - 0x216]
push eax
movzx eax, word [ebp - 0x21a]
push eax
movzx eax, word [ebp - 0x212]
push eax
movzx eax, word [ebp - 0x214]
push eax
push str._02d:_02d__02d__02d__04d
push esi
push ebx
call fcn.0040b560
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a63
mov esp, ebp
pop ebp
ret 0x10
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a63
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.00428a63
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409c90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4a90d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
push ebx
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x20c]
test edi, edi
je 0x409d2c
push 0x104
push eax
push esi
push edi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x409d12
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0042e8b4
add esp, 8
test eax, eax
je 0x409cf4
add eax, 2
jmp 0x409cfa
lea eax, [ebp - 0x20c]
push str.wsscan.exe
push eax
call fcn.00431b76
add esp, 8
mov ecx, 1
test eax, eax
cmovne esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00428a63
mov esp, ebp
pop ebp
ret
push 0x208
push 0
push eax
call fcn.0042e960
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.WSScan:_failed_to_open_WSScan_application_process_Id:__d__MS_err___d_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040b5a0
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00428a63
mov esp, ebp
pop ebp
ret