joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4703c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 8]
push edi
cmp eax, 0xffffffff
je 0x47056e
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
mov ecx, ebx
call fcn.00470100
test al, al
je 0x47056e
mov ecx, dword [esp + 0x38]
call fcn.00426b20
push 0x4e40
xor esi, esi
call fcn.0047dc6a
mov ebp, eax
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
add esp, 4
mov dword [esp + 0x24], eax
xor eax, eax
lea edx, [esp + 0x10]
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
push edx
push 0x4e20
xor edi, edi
push ebp
push eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x470565
mov eax, dword [esp + 0x10]
test eax, eax
je 0x470565
cmp eax, 4
jl 0x470565
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x14], eax
add edx, eax
mov dword [ebx + 0x10], edx
mov ecx, dword [ebx + 0x14]
mov edx, dword [esp + 0x34]
adc ecx, edi
mov dword [ebx + 0x14], ecx
cmp dword [ebp], edx
mov ecx, ebp
je 0x470527
cmp eax, 4
jle 0x47049f
mov edx, dword [esp + 0x20]
dec eax
inc esi
add edi, 1
adc edx, 0
mov dword [esp + 0x14], eax
lea ecx, [esi + ebp]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
jmp 0x47051b
test eax, eax
je 0x4704d1
mov ecx, eax
add esi, ebp
mov edx, ecx
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
lea esi, [esp + 0x18]
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
mov edx, 0x4e20
lea ecx, [esp + 0x10]
push 0
sub edx, eax
push ecx
mov ecx, dword [ebx + 8]
add eax, ebp
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x470565
mov eax, dword [esp + 0x10]
xor esi, esi
cmp eax, esi
je 0x470565
mov ecx, dword [ebx + 0x10]
add ecx, eax
mov dword [ebx + 0x10], ecx
mov edx, dword [ebx + 0x14]
mov ecx, dword [esp + 0x14]
adc edx, esi
add ecx, eax
mov dword [esp + 0x14], ecx
mov dword [ebx + 0x14], edx
mov eax, dword [esp + 0x14]
mov ecx, ebp
mov edx, dword [esp + 0x34]
cmp dword [ecx], edx
jne 0x47047d
cmp dword [ecx], edx
jne 0x470565
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
add edi, eax
mov eax, dword [esp + 0x20]
push 4
adc eax, ebx
push ecx
mov ecx, dword [esp + 0x40]
mov dword [edx], edi
mov dword [edx + 4], eax
call fcn.00428150
push ebp
call fcn.0047d7af
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0xc
push ebp
call fcn.0047d7af
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret 0xc
Function at 0x470580
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0xffffffff
jne 0x4705a1
mov ecx, dword [esp + 0x20]
push str.File_access_error:_invalid_handle
mov eax, dword [ecx]
call dword [eax + 0x10]
pop edi
pop esi
xor al, al
pop ebx
ret 0x14
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.00470100
test al, al
jne 0x4705bc
pop edi
pop esi
pop ebx
ret 0x14
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.00426b20
mov edi, dword [esp + 0x18]
mov ecx, ebx
push edi
call fcn.00427670
mov ecx, ebx
call fcn.0041c940
xor ebx, ebx
cmp eax, ebx
jne 0x4705f6
mov ecx, dword [esp + 0x20]
push str.File_access_error:_no_data_available.
mov eax, dword [ecx]
call dword [eax + 0x10]
pop edi
pop esi
xor al, al
pop ebx
ret 0x14
mov edx, dword [esi + 8]
lea ecx, [esp + 0x10]
push ebx
push ecx
push edi
push eax
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x470636
mov esi, dword [esp + 0x20]
push str.FileAccess:_Read_failed.
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x38]
pop edi
pop esi
xor al, al
pop ebx
ret 0x14
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x10]
add edx, edi
mov dword [esi + 0x10], edx
mov ecx, dword [esi + 0x14]
adc ecx, ebx
cmp eax, edi
mov dword [esi + 0x14], ecx
je 0x470664
mov ecx, dword [esp + 0x20]
push str.File_access_error:_did_not_read_full_requested_amount_of_data.
mov eax, dword [ecx]
call dword [eax + 0x10]
pop edi
pop esi
xor al, al
pop ebx
ret 0x14
pop edi
pop esi
mov al, 1
pop ebx
ret 0x14

Function at 0x470670
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0xffffffff
jne 0x470683
pop edi
pop esi
xor al, al
pop ebx
ret 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov ecx, esi
call fcn.00470100
test al, al
jne 0x47069e
pop edi
pop esi
pop ebx
ret 0x10
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.00426b20
mov ebx, dword [esp + 0x18]
mov ecx, edi
push ebx
call fcn.00427670
mov ecx, edi
call fcn.0041c940
test eax, eax
jne 0x4706c8
pop edi
pop esi
xor al, al
pop ebx
ret 0x10
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push eax
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4706ef
pop edi
pop esi
xor al, al
pop ebx
ret 0x10
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00426e60
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x10]
add ecx, edx
pop edi
mov dword [esi + 0x10], ecx
mov eax, dword [esi + 0x14]
adc eax, 0
mov dword [esi + 0x14], eax
pop esi
mov al, 1
pop ebx
ret 0x10
Function at 0x471810
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x471895
cmp eax, 0x40
jbe 0x47183c
lea eax, [esi + 0x40]
push eax
push esi
call fcn.0047c700
add esp, 8
mov dword [esi + 0x9c], 0x14
mov edx, dword [esi + 0x9c]
mov ecx, 0x40
push edi
sub ecx, edx
lea edi, [edx + esi]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, esi
mov ecx, 0x10
mov edx, dword [eax]
add eax, 4
xor edx, 0x36363636
dec ecx
mov dword [eax - 4], edx
jne 0x471864
lea edi, [esi + 0x40]
push edi
call fcn.0047c630
push edi
push 0x40
push esi
call fcn.0047c670
add esp, 0x10
mov dword [esi + 0x9c], 0xffffffff
pop edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4718af
add esi, 0x40
push esi
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0047c670
add esp, 0xc
pop esi
ret

Function at 0x4718c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x9c], 0xffffffff
je 0x4718df
push edi
push 0
push 0
call fcn.00471810
add esp, 0xc
lea esi, [edi + 0x40]
lea eax, [esp + 8]
push esi
push eax
call fcn.0047c700
add esp, 8
mov eax, edi
mov ecx, 0x10
mov edx, dword [eax]
add eax, 4
xor edx, 0x6a6a6a6a
dec ecx
mov dword [eax - 4], edx
jne 0x4718f7
push esi
call fcn.0047c630
push esi
push 0x40
push edi
call fcn.0047c670
push esi
lea ecx, [esp + 0x1c]
push 0x14
push ecx
call fcn.0047c670
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0047c700
mov ecx, dword [esp + 0x48]
add esp, 0x24
test ecx, ecx
jbe 0x471950
mov edi, dword [esp + 0x20]
mov eax, ecx
lea esi, [esp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x14
ret
Function at 0x4727d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x214
push esi
lea eax, [esp + 0x38]
push edi
push eax
call fcn.00471760
mov edx, dword [esp + 0x228]
mov eax, dword [esp + 0x224]
lea ecx, [esp + 0x40]
push ecx
push edx
push eax
call fcn.00471770
mov edx, dword [esp + 0x23c]
mov eax, dword [esp + 0x238]
mov ecx, 0x28
lea esi, [esp + 0x4c]
lea edi, [esp + 0x18c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18c]
push ecx
push edx
push eax
call fcn.00471810
mov ecx, dword [esp + 0x254]
add esp, 0x1c
dec ecx
mov eax, 0xcccccccd
mul ecx
shr edx, 4
inc edx
mov dword [esp + 0x10], edx
je 0x47295c
push ebx
push ebp
mov dword [esp + 0x10], 0
mov ebx, 1
lea ebp, [esp + 0x1c]
xor edx, edx
mov ecx, 0x28
mov dword [esp + 0x1c], edx
lea esi, [esp + 0x184]
lea edi, [esp + 0xe4]
mov dword [esp + 0x20], edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], edx
mov ecx, ebx
mov dword [esp + 0x28], edx
mov eax, ebx
shr ecx, 0x10
mov dword [esp + 0x2c], edx
mov byte [esp + 0x31], cl
mov ecx, dword [esp + 0x238]
mov edx, ebx
shr eax, 0x18
shr edx, 8
mov byte [esp + 0x30], al
mov byte [esp + 0x32], dl
test ecx, ecx
mov byte [esp + 0x33], bl
mov eax, 4
jbe 0x472919
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xe4]
lea edx, [esp + 0x30]
push ecx
push eax
push edx
call fcn.00471810
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x3c]
push eax
push 0x14
push ecx
call fcn.004718c0
add esp, 0x18
xor eax, eax
mov dl, byte [esp + eax + 0x30]
mov cl, byte [esp + eax + 0x1c]
xor cl, dl
mov byte [esp + eax + 0x1c], cl
inc eax
cmp eax, 0x14
jb 0x4728e8
mov ecx, 0x28
lea esi, [esp + 0x44]
lea edi, [esp + 0xe4]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
dec ecx
mov dword [esp + 0x14], ecx
jne 0x4728bc
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, dword [esp + 0x240]
jae 0x47293c
mov esi, dword [esp + 0x23c]
mov dl, byte [eax + ebp]
inc ecx
mov byte [eax + esi], dl
inc eax
cmp ecx, 0x14
jb 0x47291f
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc ebx
add esi, 0x14
sub ebp, 0x14
mov dword [esp + 0x10], esi
lea eax, [ebx - 1]
cmp eax, ecx
jb 0x47285e
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x214
ret
Function at 0x473f10
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x492bd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
mov ebx, dword [esp + 0x6c]
push ebp
push esi
mov esi, dword [esp + 0x78]
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
mov ebp, 1
push esi
push ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
mov byte [esp + 0x7c], 0
test edi, edi
jne 0x4740d3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x474125
push eax
call fcn.0047dc6a
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x473f8c
xor al, al
jmp 0x474129
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push ebp
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x474072
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
cmp eax, 4
jne 0x473ffe
cmp ecx, 4
jne 0x47404e
mov ecx, dword [ebp]
lea edx, [esp + 0x18]
push ecx
push 0x4be3d0
push edx
call fcn.0047e034
mov ecx, dword [esp + 0x8c]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call fcn.0041d4d0
push ebp
mov byte [esp + 0x80], 1
call fcn.0047d7af
add esp, 4
jmp 0x474125
cmp eax, 1
jne 0x474026
mov ecx, dword [esp + 0x80]
push ebp
call fcn.0041d4d0
push ebp
mov byte [esp + 0x80], 1
call fcn.0047d7af
add esp, 4
jmp 0x474125
cmp eax, 2
jne 0x47404e
mov ecx, dword [esp + 0x80]
push ebp
call fcn.0041d4d0
push ebp
mov byte [esp + 0x80], 1
call fcn.0047d7af
add esp, 4
jmp 0x474125
push ecx
mov ecx, dword [esp + 0x84]
push ebp
call fcn.0041cec0
push ebp
mov byte [esp + 0x80], 1
call fcn.0047d7af
add esp, 4
jmp 0x474125
lea ecx, [esp + 0x18]
call fcn.0041d9e0
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x74], 0
call fcn.0041efa0
mov edi, dword [esp + 0x84]
lea ecx, [esp + 0x18]
mov ebx, dword [edi]
call fcn.0041c940
push eax
push str.RegistryQueryError2
mov ecx, edi
call dword [ebx + 0x28]
mov edx, dword [edi]
push esi
push str.ValueName
mov ecx, edi
call dword [edx + 0x28]
lea ecx, [esp + 0x18]
mov dword [esp + 0x70], 0xffffffff
call fcn.0041dcd0
push ebp
call fcn.0047d7af
add esp, 4
jmp 0x474125
lea ecx, [esp + 0x40]
call fcn.0041d9e0
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x74], ebp
call fcn.0041efa0
mov edi, dword [esp + 0x84]
lea ecx, [esp + 0x40]
mov ebx, dword [edi]
call fcn.0041c940
push eax
push str.RegistryQueryError
mov ecx, edi
call dword [ebx + 0x28]
mov eax, dword [edi]
push esi
push str.ValueName
mov ecx, edi
call dword [eax + 0x28]
lea ecx, [esp + 0x40]
mov dword [esp + 0x70], 0xffffffff
call fcn.0041dcd0
mov al, byte [esp + 0x7c]
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret 0x10
Function at 0x474230
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x24]
sub esp, 0xc8
push ebx
mov ebx, dword [esp + 0xe8]
push ebp
push esi
mov esi, ecx
mov byte [eax], 0
mov ecx, dword [esp + 0xfc]
push edi
mov byte [ecx], 0
mov ecx, ebx
call fcn.0041ccb0
mov ebp, dword [esp + 0xf8]
mov edi, dword [esp + 0xdc]
add esi, 8
push edi
mov ecx, esi
mov dword [ebp], 0
call fcn.0041eb70
push 0x4c4e28
push str.http:__
mov ecx, esi
call fcn.0041e300
push 0x4c4e28
push str.https:__
mov ecx, esi
call fcn.0041e300
push 0x2f
mov ecx, esi
call fcn.0041cb20
push 0x3a
mov ecx, esi
call fcn.0041cb20
mov ecx, esi
call fcn.0041ca30
mov ecx, esi
call fcn.0041c950
test eax, eax
jne 0x4742f0
mov esi, dword [esp + 0xec]
push str.Invalid_hostname_for_resolving_hostname_to_IP_address.
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x10]
mov eax, dword [esi]
push edi
push str.hostname
mov ecx, esi
call dword [eax + 0x28]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc8
ret 0x28
mov ecx, esi
call fcn.0041c940
mov edi, dword [esp + 0xf0]
mov esi, eax
test edi, edi
je 0x474311
push esi
push str.HostnameResolve
mov ecx, edi
call fcn.004308d0
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4742e1
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x47432a
mov edx, dword [ecx]
mov dword [ebp], edx
mov eax, dword [eax + 0xc]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax]
mov cl, byte [eax + 3]
mov dl, byte [eax + 2]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 1]
mov dl, byte [eax]
push ecx
push edx
lea eax, [esp + 0x20]
push str._d._d._d._d
push eax
call fcn.0047e034
add esp, 0x18
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.0041eb70
test edi, edi
je 0x47437c
mov ecx, ebx
call fcn.0041c940
push eax
push str.ResolvedToIp
mov ecx, edi
call fcn.004308d0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc8
ret 0x28

Function at 0x474390
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x492c13
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.00474470
xor ebx, ebx
lea ecx, [esi + 8]
mov dword [esp + 0x14], ebx
call fcn.0041d9e0
lea ecx, [esi + 0x38]
mov byte [esp + 0x14], 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call fcn.0041d9e0
mov ecx, dword [esp + 0xc]
mov byte [esi + 0x60], bl
mov dword [esi], vtable.HostnameResolve.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4764c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x492e7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 8]
call fcn.0041d9e0
xor ebx, ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x14], ebx
mov dword [esi + 0x30], 0x1bb
mov byte [esi + 0x34], bl
call fcn.0041d9e0
lea ecx, [esi + 0x68]
mov byte [esp + 0x14], 1
mov dword [esi + 0x60], 0x50
mov byte [esi + 0x64], bl
call fcn.00426ea0
lea ecx, [esi + 0x88]
mov byte [esp + 0x14], 2
call fcn.00473a60
lea ecx, [esi + 0xc0]
mov byte [esp + 0x14], 3
mov dword [esi + 0x9c], ebx
mov dword [esi + 0xa0], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xac], ebx
mov byte [esi + 0xb0], bl
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
call fcn.0041d9e0
lea ecx, [esi + 0xe8]
mov byte [esp + 0x14], 4
call fcn.0041d9e0
lea ecx, [esi + 0x140]
mov byte [esp + 0x14], 5
mov dword [esi + 0x110], ebx
mov dword [esi + 0x114], ebx
mov dword [esi + 0x118], ebx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], ebx
mov byte [esi + 0x124], bl
mov byte [esi + 0x125], bl
mov byte [esi + 0x126], bl
mov dword [esi + 0x128], ebx
mov dword [esi + 0x12c], ebx
mov dword [esi + 0x130], ebx
mov dword [esi + 0x134], ebx
mov byte [esi + 0x138], bl
mov byte [esi + 0x139], bl
mov byte [esi + 0x13a], bl
call fcn.00461210
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x270], ebx
mov byte [esi + 0x274], bl
mov dword [esi], vtable.SChannelWin32.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4798c0
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
mov eax, dword [esp + 0x18]
test ebx, ebx
jne 0x4798d5
mov eax, dword [esp + 0x1c]
xor edi, eax
mov ebp, 4
mov ecx, edi
shr ecx, 0x18
mov byte [esp + 0x10], cl
mov al, cl
mov edx, dword [esp + 0x10]
and al, 0x80
and edx, 0xff
neg al
sbb eax, eax
mov esi, edx
and eax, 0x14d
and esi, 0x7f
and eax, 0xff
and cl, 1
shl esi, 1
xor esi, eax
mov eax, edx
neg cl
sbb ecx, ecx
and ecx, 0xa6
shr eax, 1
xor ecx, eax
xor ecx, esi
mov eax, ecx
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, ecx
xor eax, edi
shl eax, 8
xor eax, edx
dec ebp
mov edi, eax
jne 0x4798dc
inc ebx
cmp ebx, 2
jl 0x4798c9
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x479950
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x4c7278
mov dl, byte [edi + 0x4c0b68]
mov al, dl
mov cl, dl
and al, 2
mov bl, dl
neg al
sbb al, al
and cl, 1
and eax, 0xb4
mov byte [esp + 0xd], cl
neg cl
sbb cl, cl
and ecx, 0x5a
shr bl, 2
xor bl, cl
mov byte [esp + 0xe], cl
xor bl, al
mov cl, dl
xor bl, dl
shr cl, 1
mov byte [esp + 0x10], bl
mov bl, byte [esp + 0xd]
xor cl, dl
shr cl, 1
neg bl
sbb bl, bl
and ebx, 0xb4
xor cl, bl
mov bl, byte [esp + 0xe]
xor cl, bl
mov bl, byte [edi + 0x4c0c68]
xor cl, al
mov al, bl
and al, 2
xor cl, dl
neg al
sbb al, al
and eax, 0xb4
mov byte [esp + 0xd], al
mov al, bl
and al, 1
mov byte [esp + 0xe], al
neg al
sbb al, al
and eax, 0x5a
shr bl, 2
mov byte [esp + 0xf], al
xor bl, al
mov al, byte [esp + 0xd]
xor bl, al
mov al, byte [edi + 0x4c0c68]
xor bl, al
mov byte [esp + 0x13], al
mov byte [esp + 0x11], bl
mov bl, byte [esp + 0x13]
shr al, 1
xor al, bl
mov bl, byte [esp + 0xe]
shr al, 1
neg bl
sbb bl, bl
and ebx, 0xb4
xor al, bl
mov bl, byte [esp + 0xf]
xor al, bl
mov bl, byte [esp + 0xd]
xor al, bl
mov bl, byte [edi + 0x4c0c68]
xor al, bl
mov byte [esp + 0x14], bl
mov bl, byte [esp + 0x11]
mov byte [esp + 0x16], al
mov byte [esp + 0x15], bl
mov byte [esp + 0x17], al
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x14], cl
mov dword [esi - 0x400], ebx
mov bl, byte [esp + 0x10]
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], dl
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x15], al
mov dword [esi], ebx
mov bl, byte [esp + 0x11]
mov byte [esp + 0x14], bl
mov bl, byte [edi + 0x4c0c68]
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x14]
mov byte [esp + 0x15], dl
mov dword [esi + 0x400], eax
mov al, byte [esp + 0x10]
mov byte [esp + 0x14], al
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], al
add esi, 4
mov ecx, dword [esp + 0x14]
inc edi
mov dword [esi + 0x7fc], ecx
cmp esi, 0x4c7678
jl 0x47995d
pop edi
pop esi
mov dword [0x4c0d68], 0
pop ebx
add esp, 0xc
ret
Function at 0x47c630
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x485a4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004853e5
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x485a6f
test byte [esp + 8], 2
je 0x485a6f
mov dword [0x4c7e80], 0xd
mov dword [0x4c7e84], 5
jmp 0x485a4a
xor eax, eax
ret
Function at 0x63a026a0
Capabilities:
Allocate thread local storage
Get system information on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
test byte [0x63a08048], 8
jne 0x63a026f0
cmp ebx, 1
je 0x63a02725
cmp ebx, 3
je 0x63a027b0
test ebx, ebx
mov ebx, 1
je 0x63a02778
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.__p___ld___p__n
mov dword [esp + 8], str.DllMain
mov dword [esp + 4], 0x63a08048
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
cmp ebx, 1
jne 0x63a026ca
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x63a08140], eax
cmp eax, 0xffffffff
je 0x63a027d0
lea eax, [ebp - 0x3c]
mov ebx, 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
mov dword [0x63a08150], edi
sub esp, 4
mov dword [0x63a0814c], eax
mov dword [0x63a0815c], eax
mov dword [0x63a08158], eax
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
test esi, esi
jne 0x63a026e0
cmp dword [0x63a08140], 0xffffffff
je 0x63a026e0
call sym._vcomp_free_thread_data
mov eax, dword [0x63a08140]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsFree]
sub esp, 4
jmp 0x63a026e0
call sym._vcomp_free_thread_data
lea esp, [ebp - 0x10]
mov ebx, 1
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
test byte [0x63a08048], 2
jne 0x63a027e0
xor ebx, ebx
jmp 0x63a026e0
mov dword [esp + 0xc], str.Failed_to_allocate_TLS_index_n
xor ebx, ebx
mov dword [esp + 8], str.DllMain
mov dword [esp + 4], 0x63a08048
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x63a026e0

Function at 0x63a02a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff8
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], edx
lea esi, [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [esp]
mov ebx, dword [esp + 4]
mov edi, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add ecx, eax
mov dword [esp + 0x10], eax
adc ebx, edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
mov ebx, ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], edx
lock cmpxchg8b qword [edi]
mov ebx, eax
mov esi, edx
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor eax, ebx
xor edx, esi
or edx, eax
jne 0x63a02a50
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret