joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b7fe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x4c6248
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4ec504]
test eax, eax
jne 0x4b8012
xor esi, esi
jmp 0x4b801b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
je 0x4b805d
cmp dword [esi + 0x14], 0
jne 0x4b809f
cmp dword [esi + 0x10], 0
jne 0x4b80a5
push 0x4b7b00
push 0x4ec4fc
call fcn.004b7d00
mov eax, dword [0x4ec504]
add esp, 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
mov dword [esp + 0x20], 0xffffffff
je 0x4b808b
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4b808b
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x4b80e5
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x4b80d3
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x4b80a5
cmp dword [esi + 0x14], 0
je 0x4b8037
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4b810a
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x4b813b
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4b813b
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4b813b
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x4b80ef
jmp 0x4b8031
Function at 0x4b82b0
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x4c62c8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x4b8160
push 0
push 0
call fcn.0048ca0b
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4b831b
lea ecx, [esp + 0x10]
call fcn.0048c133
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.00417f10
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x4b8341
cmp eax, 0xffffffff
je 0x4b8341
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4b9a90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 8
jb 0x4b9a9f
mov eax, dword [eax + 4]
jmp 0x4b9aa2
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4b9b3a
push esi
call fcn.004b8f10
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov dword [ecx], eax
pop esi
je 0x4b9b1f
cmp eax, 3
je 0x4b9b1f
cmp eax, 0x7b
je 0x4b9b1f
cmp eax, 0xf
je 0x4b9b1f
cmp eax, 0x15
je 0x4b9b1f
cmp eax, 0x57
je 0x4b9b1f
cmp eax, 0xa1
je 0x4b9b1f
cmp eax, 0x35
je 0x4b9b1f
cmp eax, 0x20
jne 0x4b9b14
mov eax, dword [0x4ec560]
mov dword [ecx], eax
mov edx, dword [0x4ec564]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 9
ret
mov eax, dword [esp + 4]
mov dword [eax], 0
ret
mov eax, dword [0x4ec560]
mov dword [ecx], eax
mov edx, dword [0x4ec564]
mov eax, dword [esp + 4]
mov dword [ecx + 4], edx
mov dword [eax], 1
ret
mov edx, dword [0x4ec560]
mov ecx, dword [esp + 0xc]
mov dword [ecx], edx
mov edx, dword [0x4ec564]
test al, 0x10
mov dword [ecx + 4], edx
lea eax, [esp + 8]
mov dword [esp + 8], 3
jne 0x4b9b67
mov dword [esp + 8], 2
mov ecx, dword [eax]
mov eax, dword [esp + 4]
mov dword [eax], ecx
ret
Function at 0x4b9b90
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4c64ab
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x4e880c]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x2ac]
mov eax, dword [esp + 0x2a8]
mov edx, dword [esp + 0x2b0]
mov ebp, dword [esp + 0x2a0]
mov ebx, dword [esp + 0x2a4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x2b4]
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], esi
mov word [esp + 0x30], si
call fcn.0040216a
mov eax, dword [esp + 0x34]
cmp eax, esi
mov dword [esp + 0x298], esi
je 0x4b9c57
lea edi, [eax - 1]
cmp edi, eax
jbe 0x4b9c3c
call fcn.0048c687
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x4b9c4b
lea eax, [esp + 0x24]
cmp word [eax + edi*2], 0x5c
mov edx, 0x4d33f4
je 0x4b9c5c
mov edx, 0x4d33ec
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4b9c61
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.0040d510
mov eax, dword [esp + 0x24]
mov edi, 8
cmp dword [esp + 0x38], edi
jae 0x4b9c8e
lea eax, [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebx], eax
jne 0x4b9cd1
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], esi
call edi
cmp eax, 2
je 0x4b9cb4
call edi
mov esi, eax
call fcn.004b8f10
cmp dword [esp + 0x38], 8
mov dword [ebp], esi
mov dword [ebp + 4], eax
jb 0x4b9d53
mov eax, dword [esp + 0x24]
push eax
jmp 0x4b9d4b
lea eax, [esp + 0x68]
lea edx, [eax + 2]
jmp 0x4b9ce0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4b9ce0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.0040244b
test byte [esp + 0x3c], 0x10
je 0x4b9d1b
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [edx], 3
mov dword [eax], 3
jmp 0x4b9d2f
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ecx], 2
mov dword [edx], 2
cmp dword [esp + 0x38], edi
mov eax, dword [0x4ec560]
mov dword [ebp], eax
mov ecx, dword [0x4ec564]
mov dword [ebp + 4], ecx
jb 0x4b9d53
mov edx, dword [esp + 0x24]
push edx
call fcn.0048c049
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.0048c010
add esp, 0x288
ret
Function at 0x6593b5f
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x14]
shr edi, 2
mov ecx, edi
dec edi
test ecx, ecx
je 0x6593b90
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov ecx, ebx
mov ebx, dword [esi]
add eax, ebx
mov edx, ebx
xor edx, ecx
mov ecx, edi
dec edi
mov dword [esi], edx
add esi, 4
test ecx, ecx
jne 0x6593b7a
pop edi
pop esi
pop ebx
ret

Function at 0x6593c29
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
imul ecx, ecx, 0x28
mov ecx, dword [ecx + eax + 0x24]
test ecx, 0x20000000
je 0x6593c62
test ecx, 0x40000000
je 0x6593c5b
mov eax, ecx
and eax, 0x80000000
cmp eax, 1
sbb eax, eax
and al, 0xe0
add eax, 0x40
jmp 0x6593c73
mov eax, 0x10
jmp 0x6593c73
mov eax, ecx
and eax, 0x80000000
cmp eax, 1
sbb eax, eax
and al, 0xfe
add eax, 4
test ecx, 0x4000000
je 0x6593c80
add eax, 0x200
ret
Function at 0x6595751
Capabilities:
Get common file path

Disassembly:
push ebp
mov edx, dword [esp + 0xc]
mov ebp, esp
sub esp, 0x104
test edx, edx
push esi
push edi
je 0x65957ad
mov edi, dword [ebp + 8]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [ebp + edx - 0x105], 0x5c
je 0x65957b4
mov esi, 0x65904f0
lea edi, [ebp - 0x104]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
movsw word es:[edi], word [esi]
jmp 0x65957b4
mov byte [ebp - 0x104], 0
push dword [ebp + 8]
push 0
push 0x65904f4
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
mov eax, 0
je 0x65957e6
push 0x10
push 0x65904f8
push dword [ebp + 8]
call fcn.06593aab
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x65957ec
Capabilities:
Delete file
Get common file path
Query environment variable

Disassembly:
push ebp
mov eax, 0x4220
mov ebp, esp
call fcn.06595e70
push esi
push edi
mov esi, str.SHRINK35.LDR
push esi
call fcn.065956f3
add esp, 4
mov dword [0x65904d0], eax
cmp eax, 0xffffffff
jne 0x659594c
mov byte [0x65904e0], 0
push esi
call fcn.065956f3
add esp, 4
mov dword [0x65904d0], eax
cmp eax, 0xffffffff
jne 0x659594c
mov edi, 0x104
lea eax, [ebp - 0x11c]
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call fcn.06595751
add esp, 8
mov esi, eax
test esi, esi
jne 0x65958d4
push edi
lea eax, [ebp - 0x220]
push eax
lea edi, [ebp - 0x220]
push str.PATH
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov al, byte [edi]
test al, al
je 0x65958c1
xor ecx, ecx
inc edi
mov byte [ebp - 0x11c], al
cmp al, cl
je 0x65958a3
cmp byte [ebp + ecx - 0x11c], 0x3b
je 0x65958a3
inc ecx
mov al, byte [edi]
inc edi
mov byte [ebp + ecx - 0x11c], al
test al, al
jne 0x659588a
push ecx
lea eax, [ebp - 0x11c]
mov byte [ebp + ecx - 0x11c], 0
push eax
call fcn.06595751
add esp, 8
mov esi, eax
test esi, esi
je 0x6595877
test esi, esi
jne 0x65958d4
push 0xc
push 0x6590504
call fcn.065943af
add esp, 8
push 0x10d2
lea eax, [ebp - 0x4220]
push eax
push 0x658f3fc
call fcn.06593a8b
add esp, 0xc
test eax, eax
jne 0x65958fd
push 2
push 0
call fcn.065943af
add esp, 8
lea edi, [ebp - 0x41e0]
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
push esi
mov eax, dword [0x658f3f8]
push eax
lea ecx, [ebp - 0x4220]
push ecx
call fcn.06593afe
add esp, 0xc
push esi
call fcn.06593a9e
add esp, 4
lea ecx, [ebp - 0x11c]
push ecx
call fcn.065956f3
add esp, 4
mov dword [0x65904d0], eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp dword [0x65904d0], 0xffffffff
jne 0x6595961
push 0xc
push 0x6590508
jmp 0x6595a0e
xor esi, esi
lea eax, [ebp - 8]
push esi
lea ecx, [ebp - 0x18]
push eax
push 0x10
push ecx
push esi
push esi
push 1
push dword [0x65904d0]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x6595a07
cmp dword [ebp - 0x18], 0x332
jne 0x65959fe
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 0x10], edx
push 4
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0xc], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push 2
push dword [0x65904d0]
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x65959d4
mov eax, dword [ebp - 4]
mov dword [0x65904d4], eax
jmp 0x6595a16
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x76
je 0x65959ed
cmp eax, 0x77
je 0x65959ed
push 0xc
push 0x6590534
jmp 0x6595a0e
push 0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push 1
push str.___please_restart_your_system_and_retry
jmp 0x6595a0e
push 0xc
push 0x6590538
jmp 0x6595a0e
push 0xc
push 0x659053c
call fcn.065943af
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1007661
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [0x100c2c4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0xa8], 0
cmp dword [0x100c5e4], 0xfffffffe
mov dword [ebp - 0xb0], 0xc
jne 0x1007786
and dword [0x100c5e4], 0
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1007786
cmp dword [ebp - 0x94], 1
jne 0x1007786
cmp dword [ebp - 0xa0], 4
jne 0x1007786
cmp dword [ebp - 0x9c], 0xa
jae 0x1007786
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1007786
lea eax, [ebp - 0xac]
push eax
push 0x20019
push 0
push 0x10015bc
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007786
push edi
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0
push 0x10012e1
push dword [ebp - 0xac]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xac]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1007786
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0100753e
test eax, eax
je 0x1007786
and dword [ebp - 0xa8], 0x3ff
cmp dword [ebp - 0xa8], 1
je 0x100777c
cmp dword [ebp - 0xa8], 0xd
jne 0x1007786
mov dword [0x100c5e4], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x100c5e4]
xor ecx, ebp
call fcn.01006b07
leave
ret

Function at 0x10077f7
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0100779c

Function at 0x1008bc3
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x1008c04
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x1008bdd
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x1008c22
dec esi
je 0x1008c19
dec esi
jne 0x1008c27
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c9c2a
Capabilities:
Encode data using xor

Disassembly:
nop
aaa
std
lds edx, [ebx + 0x73]
int3
add edx, dword [edx + 0x5e4ff5b5]
push 0x24
and al, 0xfb
retf 0x4c1
call fcn.004e0899
loopne 0x4c9c17
mov esi, 0x43fc958
sti
push edx
sal ch, 1
jnp 0x4c9c0c
pop ebp
ror dword [esi - 0x3c372267], 1
fild dword [ecx - 0x79a0b8dd]
mov byte [0x1493d551], al
add bl, byte [edi]
push eax
push edx
mov edi, 0xaaaa1a5e
cdq
push edi
lea ecx, ss:[ebx - 0x29]
adc al, 0xf6
push edx
ja 0x4c9cde
and eax, 0x6b2a6c58
mov dh, ah
inc ebp
xchg edi, eax
frstor dword [edi - 0x7e]
loopne 0x4c9c83
xor al, 0x6d
and eax, 0x69168a9c
pop edx
cli
dec ecx
fucom st(7)
invalid
invalid
movsb byte es:[edi], byte [esi]
and byte [ebx], bh
jno 0x4c9c7e
cmp esi, dword [esi]
jno 0x4c9c7e
sbb dword [eax], eax
xor edi, dword [ebp - 0x37]
std
mov bh, 0x10
daa
and al, 0xbd
xchg edi, eax
sub eax, 0xfc051feb
dec eax
add bh, byte [esi]
push ss
scasb al, byte es:[edi]
leave
and ebx, dword [edi + 0xa]
mov bh, 0xd2
mov edi, dword [edi + edx*2]
mov edx, 0xde859e65
mov bh, 0x6d
mov cl, 0xf8
jno 0x4c9c85
jo 0x4c9cca
das
in eax, dx
scasd eax, dword es:[edi]
shr byte [esi - 0x4c], 0x6d
dec ecx
test dword [eax - 0xb], ebp
mov ebx, 0x89d04d51
push 0x57
std
inc esi
add byte [ebp - 0x34], al
sti
mov ch, 0xab
lcall 0xdde8, 0xae9a89b5
dec ecx
pop edx
scasb al, byte es:[edi]
xchg ebp, eax
lodsb al, byte [esi]
push ds
push cs
lahf
inc ebp
int3
and byte [eax + edi*4 + 0x1405a78c], bh
inc edi
pop esp
sub byte [ebx - 0xcacb683], bl
wait
lodsd eax, dword [esi]
sbb al, 0xa8
bound esp, qword [esi - 0x32]
hlt

Function at 0x5879ed
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
inc edx
pushfd
add edx, 0
pushfd
push dword [esp]
call fcn.005879ae
pushfd
jmp 0x587488
Function at 0x49c740
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x905f04]
mov ecx, dword [esp + 4]
sub esp, 0x104
push esi
mov esi, eax
and esi, 7
inc eax
push edi
mov dword [0x905f04], eax
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.004ab53e
mov dl, byte [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
lea edi, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jbe 0x49c7a4
cmp dl, 0x41
jl 0x49c793
cmp dl, 0x5a
jle 0x49c79d
cmp dl, 0x61
jl 0x49c7a4
cmp dl, 0x7a
jg 0x49c7a4
cmp byte [esp + 9], 0x3a
je 0x49c7c1
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x49c7fb
cmp dl, 0x2f
je 0x49c7c1
cmp dl, 0x5c
jne 0x49c7fb
mov eax, esi
shl eax, 6
add eax, esi
or ecx, 0xffffffff
lea edx, [eax*4 + 0x9052dc]
xor eax, eax
lea edi, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edx
pop esi
add esp, 0x104
ret
mov al, byte [0x905efd]
test al, al
jne 0x49c846
push str.C:UsersAdministratorDesktop980fa0_
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
or ecx, 0xffffffff
xor eax, eax
mov edi, str.C:UsersAdministratorDesktop980fa0_
repne scasb al, byte es:[edi]
not ecx
mov al, byte [ecx + 0x8fb156]
dec ecx
cmp al, 0x5c
je 0x49c83f
cmp al, 0x2f
je 0x49c83f
mov byte [ecx + str.C:UsersAdministratorDesktop980fa0_], 0x5c
mov byte [ecx + 0x8fb159], 0
mov byte [0x905efd], 1
lea edx, [esp + 8]
push edx
mov ecx, esi
push str.C:UsersAdministratorDesktop980fa0_
shl ecx, 6
add ecx, esi
push str._s_s
lea esi, [ecx*4 + 0x9052dc]
push 0x104
push esi
call fcn.0049c560
add esp, 0x14
pop edi
mov eax, esi
pop esi
add esp, 0x104
ret

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

Disassembly:
mov al, byte [0x905f18]
test al, al
push esi
jne 0x49cc3f
xor edx, edx
mov ecx, 0x905afc
mov eax, edx
mov esi, 8
test al, 1
je 0x49cc25
shr eax, 1
xor eax, 0xedb88320
jmp 0x49cc27
shr eax, 1
dec esi
jne 0x49cc18
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x905efc
jl 0x49cc11
mov byte [0x905f18], 1
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
xor ecx, ecx
test esi, esi
jle 0x49cc74
push ebx
push edi
mov edi, dword [esp + 0x10]
xor edx, edx
mov dl, byte [ecx + edi]
mov ebx, eax
and ebx, 0xff
shr eax, 8
xor edx, ebx
mov edx, dword [edx*4 + 0x905afc]
xor eax, edx
inc ecx
cmp ecx, esi
jl 0x49cc52
pop edi
pop ebx
not eax
pop esi
ret
Function at 0x4a9df3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a9e13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ac20a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4a9e36
test byte [esp + 8], 2
je 0x4a9e36
call fcn.004ac27d
mov dword [eax], 0xd
call fcn.004ac286
mov dword [eax], 5
jmp 0x4a9e0f
xor eax, eax
ret
Function at 0x4015f1
Capabilities:
Check mutex on windows

Disassembly:
push esi
push 0x412190
push 0
mov esi, ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0xa4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
pop esi
neg eax
sbb eax, eax
inc eax
ret

Function at 0x40161b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x401692
cmp byte [edi], bl
je 0x401692
push ebx
push ebx
push 4
push ebx
push ebx
push 0x40000000
push str.C:TransSvc9x.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp + 8], esi
je 0x401692
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push ebx
push eax
push edi
call fcn.00408140
pop ecx
push eax
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
lea eax, [ebp - 4]
push ebx
mov edi, 0x4121b8
push eax
push edi
call fcn.00408140
pop ecx
push eax
push edi
push dword [ebp + 8]
call esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403b9a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
jne 0x403bb4
xor esi, esi
jmp 0x403be2
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.004081c0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 4], edi
jne 0x403c1d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x403c16
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x403cb2
xor esi, esi
jmp 0x403cb2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x403c40
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jne 0x403c53
xor esi, esi
jmp 0x403ca9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x403c65
jmp 0x403c30
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x403ca9
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov eax, dword [ebp + 8]
cmp byte [esi + eax], bl
je 0x403c9b
lea eax, [esi + 1]
add eax, 3
and al, 0xfc
call fcn.004081c0
lea eax, [esi + 1]
mov edi, esp
push eax
push dword [ebp + 8]
push edi
call fcn.00408380
add esp, 0xc
mov byte [edi + esi], bl
push dword [ebp + 0x14]
lea ecx, [ebp - 0xc]
push edi
call fcn.00403d19
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esp, [ebp - 0x18]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10