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

Disassembly:
mov eax, dword [esp + 0x10]
add esp, 0xfffffff0
cdq
xor eax, edx
sub eax, edx
and eax, 0
push ebp
push edi
xor eax, edx
push ebx
sub eax, edx
push esi
je 0x475a56
pop esi
mov eax, 0xffffffce
pop ebx
pop edi
pop ebp
add esp, 0x10
ret
xor esi, esi
lea edx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 0x2bd8]
cmp dword [esp + 0x30], esi
mov edi, dword [eax]
mov dword [edx], edi
mov eax, dword [eax + 4]
mov dword [edx + 4], eax
jle 0x475ad4
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x18]
lea eax, [esp + 0x10]
push ecx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov edx, dword [ebp + 0x2bdc]
push edx
push ebp
call fcn.00474af0
add esp, 0xc
xor edx, edx
lea ecx, [edx + esi]
mov al, byte [ecx + edi]
inc edx
xor al, byte [esp + edx + 0x1e]
cmp edx, 1
mov byte [ecx + ebx], al
jl 0x475aa3
mov ecx, 6
mov al, byte [esp + ecx + 0x10]
mov byte [esp + ecx + 0x11], al
dec ecx
jns 0x475abb
mov al, byte [edi + esi]
inc esi
mov byte [esp + 0x10], al
cmp esi, dword [esp + 0x30]
jl 0x475a7e
xor eax, eax
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x10
ret

Function at 0x475ea0
Capabilities:
Get common file path

Disassembly:
add esp, 0xfffffd64
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
or ax, ax
jne 0x475ec7
xor eax, eax
sub esp, 0xfffffd64
ret
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x475f85
dec eax
je 0x475f5d
dec eax
je 0x475ee7
xor eax, eax
sub esp, 0xfffffd64
ret
cmp dword [esp + 8], 4
ja 0x475f3a
mov cx, word [0x4ca520]
push edi
mov word [0x4fc0f4], cx
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
not ecx
xor eax, eax
repne scasb al, byte es:[edi]
dec ecx
cmp ecx, 0xd
pop edi
jbe 0x475f8e
lea edx, [esp + 0x25]
push edx
call fcn.004b0ee6
sub esp, 0xfffffffc
cmp eax, 4
jl 0x475f8e
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
jne 0x475f8e
mov dword [0x4ff9ac], eax
jmp 0x475f8e
mov ax, word [0x4ca528]
push 0x1000
mov word [0x4fc0f4], ax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
jne 0x475f8e
mov dword [0x4ff9ac], eax
jmp 0x475f8e
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x475f75
mov cx, word [0x4ca51c]
mov word [0x4fc0f4], cx
jmp 0x475f8e
mov dx, word [0x4ca524]
mov word [0x4fc0f4], dx
jmp 0x475f8e
mov word [0x4fc0f4], 0
lea eax, [esp + 0x98]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea ecx, [esp + 0x1a0]
push 0
lea edx, [esp + 8]
push ecx
lea eax, [esp + 0xa4]
push edx
push eax
call fcn.004b1727
push 0
lea ecx, [esp + 0x1b4]
push 0
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0xb8]
push edx
push eax
call fcn.004b1515
add esp, 0x28
lea ecx, [esp + 0x98]
push 0x104
push 0x4ff6a0
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x104
push 0x4ff7a4
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
push 0x4ff8a8
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, 1
sub esp, 0xfffffd64
ret
Function at 0x476030
Capabilities:
Get common file path
Query environment variable

Disassembly:
sub esp, 0x720
push ebp
push ebx
push esi
push edi
or esi, 0xffffffff
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
lea ecx, [esp + 0x328]
push 0
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call fcn.004b1727
push 0
lea ecx, [esp + 0x33c]
push 0
lea edx, [esp + 0x30]
push ecx
lea eax, [esp + 0x38]
push edx
push eax
call fcn.004b1515
sub esp, 0xffffffd8
lea ecx, [esp + 0x424]
lea edx, [esp + 0x18]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 0x528]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x62c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [esp + 0x734]
lea edi, [esp + 0x220]
mov ecx, 0x41
xor eax, eax
rep stosd dword es:[edi], eax
movsx eax, word [esp + 0x10]
or eax, eax
jle 0x47620e
cmp eax, 3
jle 0x4761c0
cmp eax, 4
jne 0x47620e
push 0x3e8
call fcn.004a8093
mov edi, eax
sub esp, 0xfffffffc
push 0x3e8
push edi
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x4ea174
push edi
call fcn.004b0fb9
sub esp, 0xfffffff8
test eax, eax
je 0x4761b5
lea edx, [esp + 0x220]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [esp + 0x220]
push ebx
push eax
lea ecx, [esp + 0x124]
push str.._s_s
push ecx
call ebp
add esp, 0x10
lea edx, [esp + 0x11c]
push 0
push 0x4000000
push 1
push 0
push 1
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4761ad
push 0x4ea174
push 0
call fcn.004b0fb9
add esp, 8
or eax, eax
jne 0x47613c
push edi
call fcn.004a7a46
sub esp, 0xfffffffc
jmp 0x47620e
mov dword [esp + 0x10], 5
push edi
call fcn.004a7a46
sub esp, 0xfffffffc
jmp 0x47620e
mov ecx, eax
push ebx
shl ecx, 6
add ecx, eax
lea edx, [esp + ecx*4 + 0x324]
lea eax, [esp + 0x120]
push edx
push str.._s_s
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x11c]
push 0
push 0x4000000
push 1
push 0
push 1
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x47620e
mov dword [esp + 0x10], 5
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp ax, 5
jl 0x4760db
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
sub esp, 0xfffff8e0
ret
Function at 0x476a60
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xffffff30
lea edx, [esp]
lea ecx, [esp + 8]
push edx
lea edx, [esp + 8]
mov eax, dword [esp + 0xd8]
push ecx
mov ecx, dword [0x4ff640]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x18], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, eax
test edx, edx
jne 0x476acb
or ecx, 0xffffffff
not ecx
push esi
push edi
lea edi, [esp + 0x10]
repne scasb al, byte es:[edi]
mov eax, ecx
sub edi, ecx
shr ecx, 2
mov esi, edi
mov edi, dword [esp + 0xe0]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov eax, edx
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
sub esp, 0xffffff30
ret
mov eax, edx
sub esp, 0xffffff30
ret

Function at 0x477d00
Capabilities:
Query environment variable

Disassembly:
mov edx, 1
sub esp, 0x20c
push ebp
mov ebp, dword [esp + 0x214]
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push esi
push edi
or esi, 0xffffffff
mov dword [esp + 0x10], edx
lea edi, [esp + 0x118]
xor eax, eax
mov ecx, 0x41
rep stosd dword es:[edi], eax
movsx eax, dx
test eax, eax
jle 0x477e48
cmp eax, 3
jle 0x477e00
cmp eax, 4
jne 0x477e48
push 0x3e8
call fcn.004a8093
mov edi, eax
sub esp, 0xfffffffc
push 0x3e8
push edi
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0x4ea174
push edi
call fcn.004b0fb9
add esp, 8
or eax, eax
je 0x477df5
lea ecx, [esp + 0x118]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x118]
push ebp
push edx
lea eax, [esp + 0x1c]
push str.._s_s
push eax
call ebx
sub esp, 0xfffffff0
lea ecx, [esp + 0x14]
push 0
push 0x4000000
push 1
push 0
push 1
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x477ded
push 0x4ea174
push 0
call fcn.004b0fb9
add esp, 8
test eax, eax
jne 0x477d82
push edi
call fcn.004a7a46
add esp, 4
jmp 0x477e48
mov dword [esp + 0x10], 5
push edi
call fcn.004a7a46
add esp, 4
jmp 0x477e48
mov edi, eax
push ebp
shl edi, 6
add edi, eax
lea ecx, [esp + 0x18]
lea eax, [edi*4 + 0x4ff59c]
push eax
push str.._s_s
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0x14]
push 0
push 0x4000000
push 1
push 0
push 1
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x477e48
mov dword [esp + 0x10], 5
mov edx, dword [esp + 0x10]
inc edx
cmp dx, 5
mov dword [esp + 0x10], edx
jl 0x477d23
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
sub esp, 0xfffffdf4
ret
Function at 0x479180
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
push esi
push 0x78
mov dword [ebx], 0x4ca540
call fcn.004a8093
xor esi, esi
mov dword [ebx + 4], eax
add esp, 4
mov dword [ebx + 8], esi
mov ax, word [0x4fc0f4]
cmp ax, 4
je 0x4791b6
cmp ax, 3
je 0x4791b6
mov dword [ebx + 0xc], esi
pop esi
mov eax, ebx
pop ebx
ret
push ebp
push 0x104
call fcn.004a8093
mov ebp, eax
add esp, 4
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x47921b
push edi
mov edi, str._setupapi.dll
push ebp
or ecx, 0xffffffff
xor eax, eax
not ecx
mov edx, ecx
repne scasb al, byte es:[edi]
sub edi, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
mov dword [ebx + 0xc], eax
push ebp
call fcn.004a7a46
mov eax, ebx
add esp, 4
pop ebp
pop esi
pop ebx
ret
push ebp
mov dword [ebx + 0xc], esi
call fcn.004a7a46
mov eax, ebx
sub esp, 0xfffffffc
pop ebp
pop esi
pop ebx
ret
Function at 0x479370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 0xffffff5c
push ebp
push ebx
push esi
mov ebx, ecx
mov eax, dword [ebx + 0xc]
xor esi, esi
push edi
or eax, eax
je 0x4794c9
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupDiGetClassDevsA
push eax
call ebp
mov edi, eax
test edi, edi
je 0x4794c9
mov eax, dword [ebx + 0xc]
push str.SetupDiEnumDeviceInterfaces
push eax
call ebp
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4794c9
mov ecx, dword [ebx + 0xc]
push str.SetupDiDestroyDeviceInfoList
push ecx
call ebp
mov dword [esp + 0x14], eax
test eax, eax
je 0x4794c9
mov edx, dword [ebx + 4]
push 0x78
push edx
call fcn.004a8489
mov dword [ebx + 4], eax
sub esp, 0xfffffff8
push 0x12
push esi
push esi
push 0x4ca530
call edi
mov dword [esp + 0x20], 0x1c
xor ebp, ebp
mov edi, eax
mov dword [esp + 0x10], edi
lea eax, [esp + 0x20]
push eax
push esi
push 0x4ca530
push 0
push edi
call dword [esp + 0x30]
or eax, eax
je 0x4794a3
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
push edi
call fcn.004792c0
mov edx, eax
cmp edx, 0xffffffff
je 0x4793fb
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
mov dword [esp + 0x3c], edx
add ebp, 0x78
inc esi
mov edx, dword [ebx + 4]
push ebp
push edx
mov dword [esp + 0x20], esi
call fcn.004a8489
push eax
mov dword [ebx + 4], eax
call fcn.004b1d6b
mov esi, eax
mov edi, dword [ebx + 4]
mov ecx, 0x18
mov eax, 0x88888889
mul esi
shr edx, 6
sub esp, 0xfffffff4
dec edx
push edx
lea eax, [edx + edx*2]
lea esi, [eax + eax*4]
xor eax, eax
shl esi, 3
lea edi, [edi + esi + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [ebx + 4]
add edi, esi
mov ecx, 0x1e
lea esi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004794e0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
jmp 0x4793fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
jne 0x4793fb
push edi
call dword [esp + 0x18]
mov eax, esi
mov dword [ebx + 8], esi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xa4
ret
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0xa4
ret

Function at 0x47a120
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
mov ecx, 0x25
push edi
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
pop edi
test eax, eax
je 0x47a1a7
mov ecx, 2
mov eax, dword [esp + 0x10]
sub eax, ecx
je 0x47a16c
mov word [0x4fc0f8], cx
call fcn.0047d400
sub esp, 0xffffff6c
ret
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x47a18a
mov edx, dword [esp + 8]
mov eax, 1
cmp edx, eax
jb 0x47a159
mov word [0x4fc0f8], ax
jmp 0x47a198
cmp eax, 6
jb 0x47a159
mov word [0x4fc0f8], 1
call fcn.00479e70
call fcn.0047a000
call fcn.0047d400
sub esp, 0xffffff6c
ret
Function at 0x47ac10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add esp, 0xfffffff0
mov cl, 0x65
mov al, 0x72
push esi
mov byte [esp + 4], 0x54
mov byte [esp + 5], cl
mov byte [esp + 6], al
mov byte [esp + 7], 0x6d
xor esi, esi
mov byte [esp + 8], 0x69
mov byte [esp + 9], 0x6e
mov byte [esp + 0xa], 0x61
mov byte [esp + 0xb], 0x6c
mov byte [esp + 0xc], 0x20
mov byte [esp + 0xd], 0x53
mov byte [esp + 0xe], cl
mov byte [esp + 0xf], al
mov byte [esp + 0x10], 0x76
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], al
mov byte [esp + 0x13], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x80000000
jne 0x47ac99
cmp al, 4
jbe 0x47ac87
lea eax, [esp + 4]
push eax
call fcn.0047aca0
add esp, 4
pop esi
sub esp, 0xfffffff0
ret
lea ecx, [esp + 4]
push ecx
call fcn.0047aca0
sub esp, 0xfffffffc
pop esi
sub esp, 0xfffffff0
ret
mov eax, esi
pop esi
sub esp, 0xfffffff0
ret

Function at 0x47aca0
Capabilities:
Query or enumerate registry value

Disassembly:
add esp, 0xfffffff0
push edi
push ebp
xor edi, edi
push esi
lea eax, [esp + 0xc]
push ebx
xor ebp, ebp
push eax
push str.SystemCurrentControlSetControlProductOptions
push reloc.WS2_32.dll_bind
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x47ad75
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edi
push edx
push edi
push str.ProductSuite
push eax
call ebx
or eax, eax
jne 0x47ad75
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x47ad75
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, edi
je 0x47ad75
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push edi
push str.ProductSuite
push eax
call ebx
test eax, eax
jne 0x47ad68
cmp dword [esp + 0x18], 7
jne 0x47ad68
mov ebx, esi
mov al, byte [esi]
test al, al
je 0x47ad68
mov edi, dword [esp + 0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push edi
push ebx
call ebp
test eax, eax
je 0x47ad60
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [ebx + eax + 1]
cmp byte [ebx], 0
jne 0x47ad46
jmp 0x47ad68
mov dword [esp + 0x1c], 1
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebp, dword [esp + 0x1c]
xor edi, edi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x47ad84
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, ebp
pop esi
pop ebp
pop edi
add esp, 0x10
ret
Function at 0x47b4c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x14
push ebx
push 0x4e8
push 5
push 6
mov dword [esp + 0x10], 0x10
call fcn.0047b9e0
sub esp, 0xfffffff4
mov ebx, eax
cmp ebx, 0xffffffff
je 0x47b554
mov edx, dword [esp + 4]
xor eax, eax
mov ecx, edx
push esi
mov esi, ecx
push edi
shr ecx, 2
lea edi, [esp + 0x10]
push edx
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x14]
mov word [esp + 0x14], 6
push eax
push ebx
call sub.WS2_32.dll_bind
pop edi
pop esi
cmp eax, 0xffffffff
je 0x47b554
lea edx, [esp + 8]
lea ecx, [esp + 4]
push ecx
push edx
push ebx
call sub.WS2_32.dll_getsockname
cmp eax, 0xffffffff
je 0x47b554
lea eax, [esp + 8]
push eax
call fcn.0047b430
mov ecx, dword [esp + 0x20]
push eax
push ecx
call fcn.004a778b
sub esp, 0xfffffff4
push ebx
call sub.WS2_32.dll_closesocket
pop ebx
xor eax, eax
add esp, 0x14
ret
mov edx, dword [esp + 0x1c]
push str.00_00_00_00_FF_FF_FF_FF_FF_FF
push edx
call fcn.004a778b
add esp, 8
mov eax, 1
pop ebx
sub esp, 0xffffffec
ret

Function at 0x47b6a0
Capabilities:
Check os version

Disassembly:
mov ecx, 0x27
sub esp, 0x9c
push edi
lea edi, [esp + 4]
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [esp + 4], 0x9c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
pop edi
test eax, eax
je 0x47b6f5
cmp dword [esp + 4], 6
jne 0x47b6f5
mov edi, dword [esp + 8]
test edi, edi
jne 0x47b6f5
cmp word [esp + 0x94], 0
jne 0x47b6f5
mov eax, 1
cmp word [esp + 0x9a], ax
je 0x47b6f7
xor eax, eax
add esp, 0x9c
ret

Function at 0x47bca0
Capabilities:
Check mutex on windows

Disassembly:
push edi
push ebx
xor ebx, ebx
push ebp
push esi
call fcn.0047ab90
test eax, eax
jne 0x47bcd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x47bce5
mov eax, 1
pop esi
pop ebp
pop ebx
pop edi
ret
mov edx, dword [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
or edi, edi
je 0x47bd29
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [esp + 0x20]
push ebp
push edi
call esi
test eax, eax
je 0x47bd09
cmp eax, 0x102
jne 0x47bd16
mov eax, dword [esp + 0x24]
inc ebx
cmp ebx, eax
jg 0x47bd20
jmp 0x47bcef
mov ebx, dword [esp + 0x1c]
pop esi
mov dword [ebx], edi
pop ebp
pop ebx
pop edi
xor eax, eax
ret
pop esi
pop ebp
mov eax, 0x73
pop ebx
pop edi
ret
push edi
call fcn.0047bda0
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
pop edi
ret

Function at 0x47bd40
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.0047ab90
test eax, eax
jne 0x47bd58
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x47bd61
mov edx, dword [esp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
or esi, esi
jne 0x47bd74
pop esi
mov eax, 1
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x47bd8b
mov ecx, dword [esp + 0x10]
mov dword [ecx], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x47f8d0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x4c8
push esi
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x14], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x47f961
lea edi, [esp + 0x10]
or ecx, 0xffffffff
not ecx
lea edx, [esp + 0xd0]
push 0x40
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, ecx
sub edi, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.00489f70
add esp, 0xc
cmp eax, 0xffffffff
jne 0x47f957
mov eax, dword [str.NoName]
mov cx, word [0x4eb214]
mov dl, byte [0x4eb216]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
jmp 0x47f9a8
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
jmp 0x47f98b
mov dx, word [0x4eb214]
mov al, byte [0x4eb216]
lea edi, [esp + 0x10]
mov ecx, dword [str.NoName]
mov word [esp + 0x14], dx
mov dword [esp + 0x10], ecx
lea edx, [esp + 0xd0]
mov byte [esp + 0x16], al
or ecx, 0xffffffff
not ecx
xor eax, eax
repne scasb al, byte es:[edi]
sub edi, ecx
mov esi, edi
mov edi, edx
mov eax, ecx
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 + 0x90]
push ebx
push ecx
call fcn.00489df0
lea edi, [esp + 0x98]
or ecx, 0xffffffff
not ecx
xor eax, eax
repne scasb al, byte es:[edi]
lea edx, [esp + 0xd8]
mov ebx, ecx
push 0x40
sub edi, ecx
or ecx, 0xffffffff
mov ecx, ebx
mov esi, edi
mov edi, edx
repne scasb al, byte es:[edi]
lea eax, [esp + 0x2dc]
push eax
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xe0]
push ecx
call fcn.00489f70
sub esp, 0xfffffff0
cmp eax, 0xffffffff
pop ebx
jne 0x47fa40
mov ecx, dword [str.NoShareString]
mov edx, dword [0x4eb294]
mov eax, dword [0x4eb290]
mov dword [esp + 0xd0], ecx
mov cx, word [0x4eb298]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], edx
mov word [esp + 0xdc], cx
jmp 0x47fa6b
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
not ecx
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
mov eax, ecx
sub edi, 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 + 8]
lea edi, [esp + 0xd0]
push ecx
lea edx, [esp + 0xd4]
mov dword [esp + 0xc], 0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00489d20
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc eax
pop edi
pop esi
neg eax
sbb eax, eax
and eax, ecx
mov dword [0x4fd0e8], eax
add esp, 0x4c8
ret
Function at 0x485070
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc0
push ebx
mov ebx, dword [esp + 0xc8]
test bl, 0x80
je 0x4851e0
push edi
mov edi, dword [esp + 0xd0]
mov ecx, edi
mov eax, edi
and eax, 0xff00
xor edx, edx
push esi
mov esi, edi
shl esi, 0x10
or eax, esi
and ecx, 0xff0000
mov esi, ebx
shr edi, 0x10
or ecx, edi
and esi, 0xf
shl eax, 8
shr ecx, 8
cmp esi, 3
ja case.default.0x4850c1
jmp dword [esi*4 + 0x4852e0]
mov ebx, 0x20
mov edi, eax
shr edi, 0xd
and edi, 1
mov esi, edi
xor edi, ecx
shl esi, 0x1f
shr edx, 1
shl edi, 0x1f
shr eax, 1
or edx, esi
or edi, eax
mov eax, edi
shr ecx, 1
dec ebx
jne 0x4850cd
jmp case.default.0x4850c1
mov ebx, 0x20
mov edi, ecx
mov esi, eax
and esi, 0xffff0000
shl esi, 0xf
shr edx, 1
or edx, esi
mov esi, eax
and esi, 0xfffff000
shl edi, 0xc
xor esi, edi
mov edi, eax
shl esi, 8
and edi, 0xfff00000
xor esi, edi
shl esi, 0xb
shr eax, 1
or eax, esi
shr ecx, 1
dec ebx
jne 0x4850f8
jmp case.default.0x4850c1
push ebp
mov edi, 0x20
mov ebp, ecx
and ebp, 1
mov ebx, eax
mov esi, ebp
and ebx, 0xfff80000
shl esi, 0x13
xor esi, ebx
mov ebx, eax
shl esi, 0xc
shr edx, 1
or edx, esi
mov esi, eax
and bl, 0
shl ebp, 8
xor ebx, ebp
shl ebx, 0xf
and esi, 0xff800000
xor ebx, esi
shl ebx, 8
shr eax, 1
or eax, ebx
shr ecx, 1
dec edi
jne 0x48513a
pop ebp
jmp case.default.0x4850c1
mov edi, 0x20
mov esi, eax
mov ebx, ecx
and esi, 0xfffff800
shl ebx, 0xb
xor esi, ebx
shl esi, 5
mov ebx, eax
and ebx, 0xffff0000
xor esi, ebx
mov ebx, ecx
shl esi, 0xf
shr edx, 1
or edx, esi
mov esi, eax
and esi, 0xffffff80
shl ebx, 7
xor esi, ebx
mov ebx, eax
shl esi, 0x12
and ebx, 0xfe000000
xor esi, ebx
shl esi, 6
shr eax, 1
or eax, esi
shr ecx, 1
dec edi
jne 0x485180
xor eax, eax
pop esi
mov al, bh
pop edi
mov ah, dl
and edx, 0xffff0000
pop ebx
or eax, edx
add esp, 0xc0
ret
lea edx, [esp + 4]
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0xc], 0x29
mov byte [esp + 0xd], 0x56
mov byte [esp + 0xe], 0xb2
mov byte [esp + 0xf], 0x39
mov byte [esp + 0x10], 0xa0
mov byte [esp + 0x11], 0xce
mov byte [esp + 0x12], 0xeb
mov byte [esp + 0x13], 0x87
mov byte [esp + 0x14], 0x52
mov byte [esp + 0x15], 0xb4
mov byte [esp + 0x16], 0x76
mov byte [esp + 0x17], 0xfb
mov byte [esp + 0x18], 0xc
mov byte [esp + 0x19], 0x94
mov byte [esp + 0x1a], 0x37
mov byte [esp + 0x1b], 0x71
call fcn.0048cb70
and ebx, 0xff
mov eax, dword [esp + 0xd4]
mov edx, eax
mov ecx, eax
mov byte [esp + 0xc], al
shr eax, 0x18
mov byte [esp + 0xf], al
mov al, bl
mov ah, al
mov ebx, eax
shl ebx, 0x10
mov bx, ax
shr edx, 8
mov byte [esp + 0xd], dl
shr ecx, 0x10
lea edx, [esp + 0x1c]
mov byte [esp + 0xe], cl
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
push ecx
push edx
mov dword [esp + 0x20], ebx
call fcn.0048cc60
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0048cb70
mov ecx, dword [esp + 0x1d]
mov eax, dword [esp + 0x1f]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x1e]
and eax, 0xff
shl eax, 8
and ebx, 0xff
and ecx, 0xff
or eax, ebx
shl eax, 8
or eax, ecx
add esp, 0x18
pop ebx
shl eax, 8
and edx, 0xff
or eax, edx
sub esp, 0xffffff40
ret