joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ff0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x504
mov ecx, dword [esp + 0x50c]
push ebx
push ebp
mov ebp, dword [esp + 0x510]
lea eax, [esp + 0x240]
push eax
push ecx
xor bl, bl
mov dword [esp + 0x248], 0x10001
call dword [sym.imp.ntdll.dll_NtGetContextThread]
test eax, eax
jl 0x40213e
mov eax, dword [esp + 0x304]
mov edx, dword [esp + 0x2f8]
push esi
lea esi, [eax - 0x22a]
mov dword [esp + 0x18], edx
mov edx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
and esi, 0xffffffe0
sub edx, esi
sub edx, 0xf
sub eax, esi
sub eax, 4
mov word [esp + 0x29], ax
lea ecx, [esi + 0x20]
mov eax, edi
mov dword [esp + 0x23], edx
mov byte [esp + 0x1c], pe_nt_image_headers32
mov byte [esp + 0x1d], 0x68
mov dword [esp + 0x1e], ecx
mov byte [esp + 0x22], 0xe8
mov byte [esp + 0x27], 0x61
mov byte [esp + 0x28], 0xc2
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402084
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x3c]
push edi
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x40
lea edx, [esi + 4]
lea ecx, [esp + 0x14]
mov dword [esp + 0x304], edx
push ecx
lea edx, [esp + 0x1c]
push edx
push ebp
mov dword [esp + 0x31c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 0x22a
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
test eax, eax
jl 0x402130
push 0
push 0x22a
lea eax, [esp + 0x20]
push eax
push esi
push ebp
call dword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
test eax, eax
jl 0x402130
push 0x22a
push esi
push ebp
call dword [sym.imp.ntdll.dll_NtFlushInstructionCache]
test eax, eax
jl 0x402130
mov edx, dword [esp + 0x518]
lea ecx, [esp + 0x244]
push ecx
push edx
call dword [sym.imp.ntdll.dll_NtSetContextThread]
test eax, eax
jl 0x402130
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x504
ret 8
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x504
ret 8
pop ebp
mov al, bl
pop ebx
add esp, 0x504
ret 8
Function at 0x402150
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov byte [esp + 3], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402160
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x24]
push ebx
push esi
mov dword [esp + 0xc], edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402180
sub eax, esi
sar eax, 1
push 0x40
lea ebx, [eax + eax + 2]
push 0x101000
lea eax, [ebx + edx + 0x1e]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
je 0x40227f
mov edx, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push ebp
mov ebp, dword [sym.imp.ntdll.dll_NtWriteVirtualMemory]
lea eax, [esi + 0x1e]
mov dword [esp + 0x15], eax
push 0
lea eax, [esi + 0x14]
push 0x14
mov dword [esp + 0x22], eax
mov cl, 0x68
lea eax, [esp + 0x1c]
push eax
sub edx, esi
mov byte [esp + 0x20], cl
mov byte [esp + 0x25], cl
mov byte [esp + 0x2a], cl
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
sub edx, 0x14
push edi
mov dword [esp + 0x33], ecx
mov byte [esp + 0x37], 0xe9
mov dword [esp + 0x38], edx
call ebp
test eax, eax
jl 0x40226f
push 0
push 0xa
push 0x401170
lea eax, [esi + 0x14]
push eax
push edi
call ebp
test eax, eax
jl 0x40226f
mov ecx, dword [esp + 0x30]
push 0
push ebx
push ecx
lea eax, [esi + 0x1e]
push eax
push edi
call ebp
test eax, eax
jl 0x40226f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
push 0
push edx
push eax
lea ebx, [esi + ebx + 0x1e]
push ebx
push edi
call ebp
test eax, eax
jl 0x40226f
push 0
push 0
push ebx
push esi
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
je 0x40226f
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0xf], 1
push 0x8000
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop ebp
mov al, byte [esp + 0xb]
pop esi
pop ebx
add esp, 0x1c
ret 8
Function at 0x4028b0
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebx
mov ebx, dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push edi
mov edi, 0x20000
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x18]
push edi
push 0
push eax
call ebp
mov esi, eax
test esi, esi
je 0x402918
push 0
push edi
push esi
push 5
call ebx
cmp eax, 0xc0000004
jne 0x402901
mov ecx, dword fs:[0x30]
mov edx, dword [ecx + 0x18]
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
add edi, edi
jmp 0x4028c5
test eax, eax
jge 0x40291f
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0x18]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
mov edi, esi
lea esp, [esp]
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x402943
mov edx, dword [esp + 0x14]
push edx
push eax
call ebp
test eax, eax
je 0x40294d
mov eax, dword [edi]
test eax, eax
je 0x402950
add edi, eax
jmp 0x402930
mov ebx, dword [edi + 0x44]
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0x18]
push esi
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x403620
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
test edi, edi
je 0x4036d2
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4036d2
push ebx
lea ebx, [edi + edi]
lea ecx, [ebx + 2]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4036cb
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
je 0x4036ca
mov edx, dword [esp + 0x14]
push ebx
push edx
push ebp
call sub.ntdll.dll_memcpy
xor eax, eax
add esp, 0xc
mov word [ebx + ebp], ax
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call ebx
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebp, dword [sym.imp.USER32.dll_SetClipboardData]
push edi
push 0xd
call ebp
mov esi, eax
neg esi
sbb esi, esi
neg esi
cmp byte [0x406072], 0
jne 0x4036ca
push 4
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4036ca
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4036ca
push edi
mov dword [eax], 0x411
call ebx
push edi
push 0x10
call ebp
pop ebp
call dword [sym.imp.USER32.dll_CloseClipboard]
pop ebx
pop edi
mov eax, esi
pop esi
ret

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x61d4623d
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x5fb56d6d
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x436570
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43659d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43659d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x406840
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
adc dword [edi - 0x7fffdf8], 0x87e8b53
add dword [edi - 0x75], edx
inc ebx
add al, 0x83
clc
dec edx
test byte [ecx + eax + 0x4b8b0000], dl
adc bl, bh
leave
je 0x4069ef
loop 0x4068dd
or al, 0x8b
wbinvd
lea edx, [esi - 0x26]
push ecx
push edx
inc eax
call dword [0xd1c1e4]
cmp eax, 0xffffffff
sbb al, 0x85
aaa
add dword [eax], eax
add byte [ebx + 0x40c1d873], cl
add bh, bh
salc
test eax, eax
je 0x40698a
push eax
salc
add eax, 0xafc80
cmp eax, 0x1523b3
rol byte [ebp + 0x151], 0x8b
jnp 0x4068c6
mov esi, dword [ebx + 0x24]
mov ebp, dword [eax + 0xb]
aam 0x75
wait
pop si
mov eax, 0xb2387
pop ebx
mov esp, ebp
pop ebp
ret 8
inc eax
mov dword [ebp - 0x32020c], eax
mov dword [ebp - 0x210], ecx
add dword [ebp - 0x6808], 0xffffff89
invalid
inc dword [eax + 0x7f]
or bh, byte [esp + eax - 0x7b]
xchg edx, eax
jae 0x4068eb
and al, al
jmp 0x406910
push 0
push 0xf4240
push esi
push edi
call fcn.00408b90
push 0
push 0xfe440
push esi
push edi
sbb dword [ebp - 8], eax
call fcn.0040b750
mov dword [ebp - 4], eax
lea ebp, [edx]
clc
lea ecx, [ebp - 0x10c]
push eax
lea edx, [ebp - 0x8110]
push ecx
xor eax, 0x416a006a
call dword [sym.imp.WSOCK32.dll_select]
cmp eax, 0x3c
inc ebp
scasb al, byte es:[edi]
je 0x40697e
test dword [ebp + 0x75], ebp
push cs
pop edi
pop esi
push esp
int3
mov edx, dword [eax + ebx*8 + 0x67]
inc eax
add bh, bh
salc
iretd
xor al, 0x5e
and cl, byte [edx]
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x2da675ef
pop edi
pop esi
pop ebx
mov esp, ebp
sbb al, dl
or byte [eax], al
nop
nop
nop

Function at 0x40b870
Capabilities:
Encode data using xor

Disassembly:
mov dword [eax], 0x432bec73
leave
les eax, [ebp - 0x7400741b]
or byte [ebx - 0x3caffb59], cl
int3
sar ecx, 0x40
jae 0x40b88a
fdivp st(1)
and byte [ebx + 6], dh
shld edx, eax, cl
shl eax, cl
ret
xor eax, eax
xor edx, edx
jle 0x40b85c
push ebx
push esi
mov eax, dword [edx + edx + 0x1b]
or eax, eax
jne 0x40b8b2
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
xor edx, edx
div ecx
mov ebx, dword [esi]
enter 0x2444, 0xc
idiv dword [ebp - 0x75]
shr ebx, cl
rcl dword [eax + ecx*8 - 0x10dba331], 0x8b
push esp
and al, 0x10
xchg esp, eax
enter 0x5ccf, 0x24
out dx, eax
mov edx, dword [esp + 0x10]
mov eax, dword [esi + edi*8 + 0xc]
pop esi
xor cl, dl
fcmovnbe st(0), st(1)
push edi
rcr eax, 1
mov al, 0x72
jne 0x40b8c0
div ebx
mov ecx, esi
inc esp
and al, 0x18
mov ebp, dword [0x14244f8b]
or ah, dh
add edx, ecx
jb 0x40b8ee
cmp edx, dword [edx + 0x24]
adc byte [edi - 0x36], dh
jb 0x40b8ef
inc esp
and al, 0xc
test dword [ecx], 0xfdd233e6
out 0x33, al
sar ch, cl
xor edx, edx
std
invalid
Function at 0x406a06
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a2a
xor eax, eax
test eax, eax
je 0x406a3d
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a3d
xor ecx, ecx
jmp 0x406a40
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4275ec], 0
push esi
jne 0x406b9a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b74
mov dword [ecx*4 + 0x4275e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b6f
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406bcb
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275e8]
xor eax, esi
inc ecx
dec edx
jne 0x406bad
pop edi
not eax
pop esi
ret 0xc

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x622c8a40
Capabilities:
Check if process is running under wine
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x16c
cmp dword [0x622d80c0], 0xffffffff
mov dword [ebp - 0x13c], edx
je 0x622c8af0
lea esi, [ebp - 0x138]
lea eax, [ebx + 0x1c]
mov dword [esp + 4], str.SoftwareWineCryptoRSA_s
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf.constprop.0
xor eax, eax
test byte [ebx + 0xc], 0x20
mov ecx, dword [ebp - 0x13c]
setne al
mov edx, dword [0x622d80c0]
mov dword [esp + 4], esi
sub eax, 0x7fffffff
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20006
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
sub esp, 0x24
test eax, eax
sete al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.SteamGameId
call dword [sym.imp.ucrtbase.dll_getenv]
mov esi, eax
test eax, eax
je 0x622c8b30
mov edi, str.1364780
mov ecx, 8
repe cmpsb byte [esi], byte es:[edi]
seta al
sbb al, 0
test al, al
jne 0x622c8b30
mov dword [0x622d80c0], 1
jmp 0x622c8a61
mov dword [0x622d80c0], 0
jmp 0x622c8a61

Function at 0x622c8b40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x22c
mov eax, dword [0x622d8168]
test eax, eax
je 0x622c8bf8
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x622c8b80
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x220]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x622c8b6c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x622c8c2d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x622d8168], eax
sub esp, 8
test eax, eax
jne 0x622c8b5d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x622c8b6e
Function at 0x622c9220
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
mov eax, 0x38
sub esp, 0x180
mov dword [ebp - 0x18c], ecx
mov ecx, pe_nt_image_headers32
mov word [ebp - 0x186], dx
xor edx, edx
jmp 0x622c9263
movzx eax, byte [edx + str.80_]
mov ecx, eax
and ecx, 7
mov ecx, dword [ecx*4 + 0x622e2fa0]
shr eax, 3
movzx eax, byte [ebx + eax]
and eax, ecx
cmp eax, ecx
sete byte [ebp + edx - 0x17c]
inc edx
cmp edx, 0x38
jne 0x622c9250
mov dword [ebp - 0x180], 0
mov eax, 1
lea esi, [esi]
nop
mov esi, dword [ebp - 0x180]
add esi, esi
cmp word [ebp - 0x186], 1
jne 0x622c92ae
mov edx, dword [ebp - 0x180]
neg edx
lea esi, [edx + edx + 0x1e]
movzx ebx, al
lea edi, [esi + 1]
lea ecx, [ebp - 0x144]
mov dword [ebp - 0x184], ebx
lea eax, [ebx + 0x1c]
mov edx, ebx
sub ecx, ebx
mov dword [ebp + edi*4 - 0x10c], 0
mov dword [ebp + esi*4 - 0x10c], 0
jmp 0x622c92f0
movzx ebx, byte [ebp + edx - 0x17c]
mov byte [ecx + edx], bl
inc edx
cmp eax, edx
je 0x622c9305
cmp edx, 0x1b
jbe 0x622c92e0
movzx ebx, byte [ebp + edx - 0x198]
mov byte [ecx + edx], bl
inc edx
cmp eax, edx
jne 0x622c92f0
mov ebx, dword [ebp - 0x184]
add ebx, 0x38
jmp 0x622c9320
movzx edx, byte [ebp + eax - 0x17c]
mov byte [ecx + eax], dl
inc eax
cmp ebx, eax
je 0x622c9335
cmp eax, 0x37
jbe 0x622c9310
movzx edx, byte [ebp + eax - 0x198]
mov byte [ecx + eax], dl
inc eax
cmp ebx, eax
jne 0x622c9320
mov ecx, 0x28
mov edx, 0xd
xor eax, eax
jmp 0x622c9356
movzx edx, byte [eax + 0x622eb0a0]
movzx ecx, byte [eax + 0x622eb0b8]
cmp byte [ebp + edx - 0x144], 0
je 0x622c936e
mov edx, dword [eax*4 + 0x622e2f40]
or dword [ebp + esi*4 - 0x10c], edx
cmp byte [ebp + ecx - 0x144], 0
je 0x622c9386
mov edx, dword [eax*4 + 0x622e2f40]
or dword [ebp + edi*4 - 0x10c], edx
inc eax
cmp eax, 0x18
jne 0x622c9348
inc dword [ebp - 0x180]
mov eax, dword [ebp - 0x180]
cmp eax, 0x10
je 0x622c93a9
movzx eax, byte [eax + 0x622eb298]
jmp 0x622c9290
lea ebx, [ebp - 0x8c]
lea esi, [ebp - 0x10c]
lea esi, [esi]
mov edx, dword [esi]
mov eax, dword [esi + 4]
add ebx, 8
add esi, 8
mov ecx, edx
mov edi, edx
shl ecx, 6
shl edi, 0xa
and edi, 0x3f0000
and ecx, 0x3f000000
or ecx, edi
mov edi, eax
shr edi, 0xa
and edi, 0x3f00
or ecx, edi
mov edi, eax
shr edi, 6
and edi, 0x3f
or ecx, edi
mov dword [ebx - 8], ecx
mov ecx, edx
shl edx, 0x10
shl ecx, 0xc
and edx, 0x3f0000
and ecx, 0x3f000000
or edx, ecx
mov ecx, eax
shr eax, 4
and ecx, 0x3f
and eax, 0x3f00
or edx, ecx
or eax, edx
mov dword [ebx - 4], eax
lea eax, [ebp - 0x8c]
cmp esi, eax
jne 0x622c93b8
mov edi, dword [ebp - 0x18c]
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
add esp, 0x180
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x622ca800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x622ca85b
cmp byte [esi + ebx - 1], 0xa
je 0x622ca82f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x622d817c], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x622d31a0
Capabilities:
Check if process is running under wine

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x138]
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x14c
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineCryptoRSA_s
call sym._sprintf.constprop.0
xor eax, eax
and esi, 0x20
mov edx, dword [ebp + 8]
setne al
mov dword [esp + 0xc], ebx
sub eax, 0x7fffffff
mov dword [esp + 4], edi
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
sete al
lea esp, [ebp - 0xc]
pop ebx
movzx eax, al
pop esi
pop edi
pop ebp
ret
Function at 0x622d3bf0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x9c], 3
mov esi, dword [ebp + 0x18]
lea edx, [edi - 5]
cmp edx, 0x7b
ja 0x622d3d17
mov ebx, dword [ebp + 0x14]
and ebx, 0xffffffef
mov dword [ebp - 0x9c], ebx
jne 0x622d3d28
lea edx, [edi*8]
test eax, eax
lea ebx, [ebp - 0x98]
mov dword [esp + 8], edi
cmovle eax, edx
mov edx, 0x400
mov dword [esp], ebx
cmp eax, 0x400
cmovle edx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [ebp - 0xa0], edx
call sym._memcpy
cmp edi, 0x80
je 0x622d3c92
lea ecx, [ebp - 0x18]
mov eax, ebx
sub ecx, edi
lea esi, [esi]
movzx edx, byte [eax]
add dl, byte [eax + edi - 1]
inc eax
movzx edx, dl
movzx edx, byte [edx + 0x622eb0e0]
mov byte [eax + edi - 1], dl
cmp ecx, eax
jne 0x622d3c78
mov eax, dword [ebp - 0xa0]
mov edx, pe_nt_image_headers32
lea edi, [eax + 7]
neg eax
shr edi, 3
mov ecx, eax
mov eax, 0xff
sub edx, edi
and ecx, 7
sar eax, cl
movzx ecx, byte [ebp + edx - 0x98]
and eax, ecx
movzx eax, byte [eax + 0x622eb0e0]
mov byte [ebp + edx - 0x98], al
mov eax, 0x7f
sub eax, edi
cmp eax, 0xffffffff
je 0x622d3cfb
add eax, ebx
lea esi, [esi]
movzx edx, byte [eax + 1]
xor dl, byte [eax + edi]
mov ecx, eax
dec eax
movzx edx, dl
movzx edx, byte [edx + 0x622eb0e0]
mov byte [eax + 1], dl
cmp ecx, ebx
jne 0x622d3ce0
xor eax, eax
lea esi, [esi]
movzx edx, byte [ebx + eax*2 + 1]
movzx ecx, byte [ebx + eax*2]
shl edx, 8
add edx, ecx
mov dword [esi + eax*4], edx
inc eax
cmp eax, 0x40
jne 0x622d3d00
mov eax, dword [ebp - 0x9c]
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x9c], 4
jmp 0x622d3d17

Function at 0x622d3da0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
movzx ebx, byte [edi + 4]
mov eax, dword [eax]
add edi, 8
mov dword [ebp - 0x10], edi
lea edi, [esi - 1]
mov dword [ebp - 0x1c], edi
movzx edi, bl
mov dword [ebp - 0x20], eax
test esi, esi
je 0x622d3e2c
mov edi, dword [ebp + 0xc]
sub eax, ecx
mov byte [ebp - 0x11], bl
inc eax
add edi, ecx
mov byte [ebp - 0x12], al
mov dword [ebp - 0x18], edi
lea esi, [esi]
movzx eax, byte [ebp - 0x12]
mov ebx, dword [ebp - 0x10]
lea edx, [eax + ecx]
inc ecx
movzx edx, dl
add edx, ebx
movzx eax, byte [edx]
add byte [ebp - 0x11], al
movzx edi, byte [ebp - 0x11]
lea esi, [ebx + edi]
movzx ebx, byte [esi]
mov byte [edx], bl
mov ebx, dword [ebp - 0x10]
mov byte [esi], al
add al, byte [edx]
movzx eax, al
movzx eax, byte [ebx + eax]
xor byte [ecx - 1], al
cmp dword [ebp - 0x18], ecx
jne 0x622d3de8
movzx eax, byte [ebp - 0x20]
movzx esi, byte [ebp - 0x1c]
lea eax, [eax + esi + 1]
mov esi, dword [ebp + 0x10]
movzx eax, al
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], edi
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret