joyce8/EMBER2024-capa huggingface dataset:
Function at 0x79e5f1
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x79e683
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x79e675
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x79e66d
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x79e636
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x79edf1
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x208
test eax, eax
push ebx
push esi
push edi
jne 0x79ee1c
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
jne 0x79ee44
mov byte [esp + 0xc], al
jmp 0x79ee44
mov edi, dword [esp + 0x21c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
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 edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0xc]
mov cl, byte [esp + ecx + 0xb]
cmp cl, 0x5c
je 0x79ee62
mov byte [eax], 0x5c
mov esi, dword [sym.imp.user32.dll_wsprintfA]
mov edi, dword [sym.imp.kernel32.dll_GetTickCount]
mov ebx, dword [sym.imp.shlwapi.dll_PathFileExistsA]
call edi
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x118]
push str._s_x.tmp
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x110]
push eax
call ebx
test eax, eax
jne 0x79ee74
lea edi, [esp + 0x110]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.0079dfd1
mov edx, eax
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
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
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x208
ret

Function at 0x79f721
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x79f73f
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x79f734
pop esi
ret
Function at 0x79f781
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push accept
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x79f7ea
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0079dfd1
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x7a0141
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.user32.dll_OpenClipboard]
test eax, eax
je 0x7a0191
push esi
push 1
call dword [sym.imp.user32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x7a0186
push esi
call dword [sym.imp.kernel32.dll_GlobalLock]
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.007a0e61
add esp, 8
mov edi, eax
push esi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
call dword [sym.imp.user32.dll_CloseClipboard]
mov eax, edi
pop esi
pop edi
ret
mov eax, edi
pop edi
ret

Function at 0x7a0a91
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
push eax
push 0x104
xor esi, esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x7a0ad4
push edi
lea edi, [esp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xc]
push ecx
call fcn.007a0e61
add esp, 8
pop edi
pop esi
add esp, 0x104
ret
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x7aca80
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x7acb23
test eax, eax
jbe 0x7acb23
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x7acb23
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA_1]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x7acace
xor esi, esi
jmp 0x7acad4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x7acaff
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.007aeae0
add esi, eax
push esi
mov ebx, esi
call fcn.007aeae0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x7acae0
pop ebp
test edi, edi
pop edi
jne 0x7acb23
test ebx, ebx
je 0x7acb23
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.007e3980
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x7acc85
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x7acd9d
push eax
call dword [sym.imp.USER32.dll_IsWindow_1]
test eax, eax
je 0x7acd9d
mov eax, dword [esi + 0x3c]
push eax
call fcn.007f619a
mov esi, eax
test esi, esi
je 0x7acd9d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA_1]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x7acd9d
mov ecx, esi
call fcn.007acc10
cmp edi, eax
jge 0x7acd9d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x7acd23
mov dword [esp + 0x34], 1
jmp 0x7acd7e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x7acd9d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.007ac1d0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x7aedc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount_1]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x7aee26
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep_1]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x7aee26
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x7aee07
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x7af1b0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x7af1e8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x7afe10
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x7afe59
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x7b02d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x8057b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.007afe80
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.007aff00
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.007aff00
lea ecx, [esi + 0xc]
call fcn.007f46ac
lea ecx, [esi + 0x10]
call fcn.007f46ac
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.007b1490
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.007b1490
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.007b1490
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.007f4721
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.007f4721
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x7c1030
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push edi
mov ecx, dword [esp + 0x10]
push eax
push ecx
push esi
mov byte [esi + 0x40], 1
call fcn.007e4ed8
mov al, byte [esi + 0x40]
add esp, 0xc
test al, al
je 0x7c106a
lea edi, [esi + 0x20]
push 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA_1]
test eax, eax
jg 0x7c106a
mov byte [edi], 0x30
mov byte [esi + 0x21], 0
mov eax, esi
pop edi
pop esi
ret 8

Function at 0x7c1220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, dword [0xb596dc]
test edi, edi
jne 0x7c1256
lea eax, [esp + 0x1c]
push 0x1c
push eax
push 0x7c1390
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess_1]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov ecx, dword [esp + 0x20]
neg eax
sbb eax, eax
and eax, ecx
mov edi, eax
push 0xb133a0
push str.E2EE_IDR_DLL
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x7c127a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x28
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jne 0x7c1299
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x28
ret
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x18], ebp
jne 0x7c12b8
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x28
ret
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
jne 0x7c12d6
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x28
ret
mov ebx, dword [esp + 0x3c]
push ebx
push esi
push edi
call fcn.007c13c0
add esp, 0xc
test al, al
jne 0x7c137a
mov eax, dword [ebx + 8]
mov ebp, esi
shr ebp, 6
inc ebp
shl ebp, 6
cmp ebp, eax
jbe 0x7c1359
mov ecx, dword [ebx]
push ebp
mov dword [esp + 0x40], ecx
call fcn.007e3b67
mov ecx, ebp
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x7c1341
mov esi, dword [esp + 0x3c]
mov edi, dword [ebx]
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]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x7c1352
push eax
call fcn.007e3a7e
add esp, 4
mov edi, dword [esp + 0x14]
mov dword [ebx + 8], ebp
mov ecx, dword [ebx]
mov dword [ebx + 4], esi
mov ebp, dword [esp + 0x18]
mov byte [ecx + esi], 0
mov ecx, esi
mov edx, ecx
mov esi, edi
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
Function at 0x7c1600
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0xc], bl
je 0x7c1670
mov eax, dword [esi + 4]
sub eax, ebx
je 0x7c166d
dec eax
je 0x7c1641
dec eax
jne 0x7c166d
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x7c166d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary_1]
cmp eax, 1
jne 0x7c166d
mov byte [esi + 0xd], bl
mov dword [esi + 8], ebx
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
pop esi
pop ebx
ret
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x7c166d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary_1]
cmp eax, 1
jne 0x7c166d
lea eax, [esi + 0xd]
mov dword [esi + 8], ebx
push eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], bl
mov byte [esi + 0xd], bl
pop esi
pop ebx
ret

Function at 0x7c1680
Capabilities:
Get common file path

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA_1]
mov ecx, dword [esp + 0xc]
mov edi, esi
push ecx
or ecx, 0xffffffff
xor eax, eax
push 0xb133a4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
call fcn.007e4ed8
add esp, 0xc
mov eax, esi
pop edi
pop esi
ret 0xc

Function at 0x7c16c0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0xc]
test al, al
je 0x7c1719
mov eax, dword [esi + 4]
push ebx
xor edi, edi
xor bl, bl
sub eax, edi
je 0x7c1784
dec eax
je 0x7c175d
dec eax
jne 0x7c1710
mov eax, dword [esi + 8]
cmp eax, edi
je 0x7c1784
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary_1]
cmp eax, 1
jne 0x7c1784
mov dword [esi + 8], edi
mov byte [esi + 0xd], 0
mov bl, al
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
test bl, bl
mov byte [esi + 0xd], 0
pop ebx
je 0x7c1788
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA_1]
test eax, eax
mov dword [esi + 8], eax
je 0x7c1788
or ecx, 0xffffffff
xor eax, eax
mov byte [esi + 0xc], 1
mov dword [esi + 4], 2
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esi + 0xd]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
ret 4
mov eax, dword [esi + 8]
cmp eax, edi
je 0x7c1784
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary_1]
cmp eax, 1
jne 0x7c1784
lea eax, [esi + 0xd]
mov dword [esi + 8], edi
push eax
mov bl, 1
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x7c1705
xor bl, bl
jmp 0x7c1710
pop edi
xor al, al
pop esi
ret 4
Function at 0x7c1790
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
xor bl, bl
mov al, byte [esi + 0xc]
test al, al
je 0x7c17d9
mov eax, dword [esi + 4]
sub eax, 0
je 0x7c181b
dec eax
je 0x7c17de
dec eax
jne 0x7c17d5
mov eax, dword [esi + 8]
test eax, eax
je 0x7c181b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary_1]
cmp eax, 1
jne 0x7c181b
mov byte [esi + 0xd], bl
mov dword [esi + 8], 0
mov bl, al
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
mov al, bl
pop esi
pop ebx
ret
mov eax, dword [esi + 8]
test eax, eax
je 0x7c181b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary_1]
cmp eax, 1
jne 0x7c181b
lea eax, [esi + 0xd]
mov dword [esi + 8], 0
push eax
mov bl, 1
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esi + 4], 0xffffffff
mov byte [esi + 0xc], 0
mov byte [esi + 0xd], 0
mov al, bl
pop esi
pop ebx
ret
xor bl, bl
mov byte [esi + 0xd], bl
mov al, bl
pop esi
pop ebx
ret

Function at 0x7c6a50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xb59804]
xor edx, edx
cmp eax, edx
jne 0x7c6a76
xor eax, eax
mov byte [eax + 0xb59704], al
inc eax
cmp eax, 0x100
jl 0x7c6a5e
mov dword [0xb59804], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xb59704
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x7c6b07
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x7c6ada
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x7c6aa8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x7c6b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x7c6bd3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x7c6bba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7cd590
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x80687e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.007cdeb0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xa9415c
call fcn.007f4462
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x7cd623
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.007f4462
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x7cd61c
push 0
mov ecx, eax
call fcn.007c4690
mov dword [esi + 0xc], eax
jmp 0x7cd625
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x7cd625
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x7e578d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x7e57ad
call dword [sym.imp.KERNEL32.dll_GetLastError_1]
push eax
call fcn.007e45ba
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x7e57d0
test byte [esp + 8], 2
je 0x7e57d0
call fcn.007e462d
mov dword [eax], 0xd
call fcn.007e4636
mov dword [eax], 5
jmp 0x7e57a9
xor eax, eax
ret

Function at 0x7f6b3e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x7f6b76
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.007f4bc8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.007f4ba0
jmp 0x7f6b82
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x7f8235
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x7f8277
call fcn.007fe1c7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x7f8277
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x7f826e
xor eax, eax
jmp 0x7f827f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.007f8285
pop edi
pop esi
pop ebx
ret 4
Function at 0x7fe6f7
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x7fe725
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x7fe743
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.007fe65d
jmp 0x7fe743
mov eax, dword [esi + 0x14]
test eax, eax
je 0x7fe743
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.007fe65d
test edi, edi
mov eax, edi
jne 0x7fe72d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8