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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov ecx, 0x10
mov eax, dword [ebp + 8]
lea edi, [esp + 0x1c]
cdq
and edx, 7
lea esi, [ebp + 0x14]
add eax, edx
mov ebx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, esi
sar ebx, 3
call fcn.0041c000
cmp eax, 0x40
mov ecx, esi
jbe 0x453ea4
call fcn.00443b00
test eax, eax
je 0x453ed5
mov ecx, esi
call fcn.00443b00
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
jmp 0x453ed5
call fcn.00443b00
test eax, eax
je 0x453ed5
mov ecx, esi
call fcn.0041c000
mov ecx, esi
mov edi, eax
call fcn.00443b00
mov esi, eax
mov eax, edi
lea edi, [esp + 0x1c]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, dword [ebp]
mov edx, dword [eax + 0x49344c]
mov dword [eax + ecx], edx
add eax, 4
cmp eax, 0x48
jl 0x453ed7
xor eax, eax
mov ecx, 0x100
mov edx, dword [ebp + 4]
mov esi, dword [eax + 0x493494]
mov dword [edx + eax], esi
add eax, 4
dec ecx
jne 0x453ef2
cmp eax, 0x1000
jl 0x453eed
xor esi, esi
xor edi, edi
mov eax, dword [ebp]
lea ecx, [edi + eax]
lea eax, [esi + 1]
cdq
idiv ebx
mov dword [esp + 0x18], ecx
xor ecx, ecx
lea eax, [esi + 2]
add edi, 4
mov cl, byte [esp + edx + 0x1c]
cdq
idiv ebx
mov ch, byte [esp + esi + 0x1c]
xor eax, eax
shl ecx, 8
mov al, byte [esp + edx + 0x1c]
or ecx, eax
lea eax, [esi + 3]
cdq
idiv ebx
xor eax, eax
shl ecx, 8
mov al, byte [esp + edx + 0x1c]
or ecx, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
xor edx, ecx
mov dword [eax], edx
lea eax, [esi + 4]
cdq
idiv ebx
cmp edi, 0x48
mov esi, edx
jl 0x453f0f
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.00453650
mov eax, dword [ebp]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax], ecx
mov edx, dword [ebp]
mov eax, dword [esp + 0x14]
mov dword [esi + edx + 4], eax
add esi, 8
cmp esi, 0x48
jl 0x453f6f
mov esi, 4
mov edi, 0x80
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, ebp
call fcn.00453650
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x10]
mov dword [esi + eax - 4], ecx
mov edx, dword [ebp + 4]
mov eax, dword [esp + 0x14]
mov dword [esi + edx], eax
add esi, 8
dec edi
jne 0x453fa7
cmp esi, 0x1004
jl 0x453fa2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x455220
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 4]
push edi
cmp eax, 0xffffffff
jne 0x45523d
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret 0x10
mov ebp, dword [esp + 0x2c]
mov esi, dword [ebx + 8]
xor edi, edi
lea ecx, [esp + 0x1c]
mov edx, dword [ebp]
push edi
push ecx
push edx
push eax
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [ebx + 8], eax
jne 0x455272
mov dword [ebx + 8], esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret 0x10
mov eax, dword [ebp]
mov ecx, dword [esp + 0x38]
mov dword [ebx + 8], eax
call fcn.0041bff0
push 0x4e20
xor esi, esi
call fcn.0045d5c0
mov ecx, dword [ebx + 8]
add esp, 4
lea edx, [esp + 0x10]
mov ebp, eax
mov eax, dword [ebx + 4]
push edi
push edx
push 0x4e20
push ebp
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4552d0
push ebp
call fcn.0045ccbf
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x4552ed
push ebp
call fcn.0045ccbf
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
cmp eax, 4
jge 0x455307
push ebp
call fcn.0045ccbf
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x30]
add ecx, eax
mov dword [esp + 0x14], eax
mov dword [ebx + 8], ecx
mov edi, dword [ebp]
cmp edi, edx
mov ecx, ebp
je 0x4553c5
mov edi, dword [ecx]
cmp edi, dword [esp + 0x34]
je 0x4553c5
cmp eax, 4
jl 0x455349
mov edi, dword [esp + 0x18]
dec eax
inc esi
inc edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
lea ecx, [esi + ebp]
jmp 0x4553bd
test eax, eax
je 0x455377
mov ecx, eax
add esi, ebp
mov edx, ecx
lea edi, [esp + 0x20]
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 + 0x20]
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 edx, 0x4e20
lea ecx, [esp + 0x10]
push 0
sub edx, eax
push ecx
mov ecx, dword [ebx + 4]
add eax, ebp
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4553d1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4553d1
mov edx, dword [ebx + 8]
mov ecx, dword [esp + 0x14]
add edx, eax
xor esi, esi
add ecx, eax
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
mov ecx, ebp
cmp dword [ecx], edx
jne 0x455324
mov eax, dword [ecx]
cmp eax, edx
je 0x4553e6
cmp eax, dword [esp + 0x34]
je 0x4553e6
push ebp
call fcn.0045ccbf
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add eax, edx
mov edx, dword [esp + 0x2c]
push 4
push ecx
mov ecx, dword [esp + 0x40]
mov dword [edx], eax
call fcn.0041cba0
push ebp
call fcn.0045ccbf
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x455420
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 4]
cmp eax, 0xffffffff
je 0x4555bc
mov edi, dword [esp + 0x2c]
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push 0
mov edx, dword [edi]
push ecx
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x45546c
mov dword [ebp + 8], esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret 0xc
mov eax, dword [edi]
mov ecx, dword [esp + 0x34]
mov dword [ebp + 8], eax
call fcn.0041bff0
push 0x4e40
xor esi, esi
call fcn.0045d5c0
mov ecx, dword [ebp + 8]
add esp, 4
mov ebx, eax
xor eax, eax
lea edx, [esp + 0x10]
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 4]
push edx
push 0x4e20
push ebx
push eax
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4555b3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4555b3
cmp eax, 4
jl 0x4555b3
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x30]
add ecx, eax
mov dword [esp + 0x14], eax
mov dword [ebp + 8], ecx
cmp dword [ebx], edx
mov ecx, ebx
je 0x455582
cmp eax, 4
jle 0x455502
mov edi, dword [esp + 0x18]
dec eax
inc esi
inc edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
lea ecx, [ebx + esi]
jmp 0x455576
test eax, eax
je 0x455530
mov ecx, eax
add esi, ebx
mov edx, ecx
lea edi, [esp + 0x20]
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 + 0x20]
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, 0x4e20
lea ecx, [esp + 0x10]
push 0
sub edx, eax
push ecx
mov ecx, dword [ebp + 4]
add eax, ebx
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4555b3
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4555b3
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
add edx, eax
xor esi, esi
add ecx, eax
mov dword [ebp + 8], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x14]
mov ecx, ebx
cmp dword [ecx], edx
jne 0x4554e9
mov edi, dword [esp + 0x2c]
cmp dword [ecx], edx
jne 0x4555b3
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push 4
add edx, eax
push ecx
mov ecx, dword [esp + 0x3c]
mov dword [edi], edx
call fcn.0041cba0
push ebx
call fcn.0045ccbf
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0xc
push ebx
call fcn.0045ccbf
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret 0xc
Function at 0x4555d0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x4555e7
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 0xc
mov edi, dword [esp + 0x14]
mov ebx, dword [esi + 8]
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x455619
mov dword [esi + 8], ebx
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 0xc
mov dword [esi + 8], edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.0041bff0
mov ebx, dword [esp + 0x18]
mov ecx, edi
push ebx
call fcn.0041c8f0
mov ecx, edi
call fcn.00443b00
test eax, eax
jne 0x455647
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 0xc
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45566f
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x14]
add ecx, ebx
cmp eax, ebx
mov dword [esi + 8], ecx
pop edi
pop esi
pop ebx
sete al
pop ecx
ret 0xc

Function at 0x455690
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x4556a7
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 0xc
mov edi, dword [esp + 0x14]
mov ebx, dword [esi + 8]
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
jne 0x4556d9
mov dword [esi + 8], ebx
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 0xc
mov dword [esi + 8], edi
mov edi, dword [esp + 0x1c]
mov ecx, edi
call fcn.0041bff0
mov ebx, dword [esp + 0x18]
mov ecx, edi
push ebx
call fcn.0041c8f0
mov ecx, edi
call fcn.00443b00
test eax, eax
jne 0x455707
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 0xc
lea edx, [esp + 0x14]
push 0
push edx
push ebx
push eax
mov eax, dword [esi + 4]
push eax
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45572f
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, edi
call fcn.0041c0f0
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 8]
add eax, edx
pop edi
mov dword [esi + 8], eax
pop esi
mov al, 1
pop ebx
pop ecx
ret 0xc
Function at 0x456840
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x9c]
cmp eax, 0xffffffff
je 0x4568c5
cmp eax, 0x40
jbe 0x45686c
lea eax, [esi + 0x40]
push eax
push esi
call fcn.0045c990
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 0x456894
lea edi, [esi + 0x40]
push edi
call fcn.0045c8c0
push edi
push 0x40
push esi
call fcn.0045c900
add esp, 0x10
mov dword [esi + 0x9c], 0xffffffff
pop edi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4568df
add esi, 0x40
push esi
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0045c900
add esp, 0xc
pop esi
ret

Function at 0x4568f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x9c], 0xffffffff
je 0x45690f
push edi
push 0
push 0
call fcn.00456840
add esp, 0xc
lea esi, [edi + 0x40]
lea eax, [esp + 8]
push esi
push eax
call fcn.0045c990
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 0x456927
push esi
call fcn.0045c8c0
push esi
push 0x40
push edi
call fcn.0045c900
push esi
lea ecx, [esp + 0x1c]
push 0x14
push ecx
call fcn.0045c900
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0045c990
mov ecx, dword [esp + 0x48]
add esp, 0x24
test ecx, ecx
jbe 0x456980
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 0x457800
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x214
push esi
lea eax, [esp + 0x38]
push edi
push eax
call fcn.00456790
mov edx, dword [esp + 0x228]
mov eax, dword [esp + 0x224]
lea ecx, [esp + 0x40]
push ecx
push edx
push eax
call fcn.004567a0
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.00456840
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 0x45798c
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 0x457949
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0xe4]
lea edx, [esp + 0x30]
push ecx
push eax
push edx
call fcn.00456840
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x3c]
push eax
push 0x14
push ecx
call fcn.004568f0
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 0x457918
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 0x4578ec
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, dword [esp + 0x240]
jae 0x45796c
mov esi, dword [esp + 0x23c]
mov dl, byte [eax + ebp]
inc ecx
mov byte [eax + esi], dl
inc eax
cmp ecx, 0x14
jb 0x45794f
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 0x45788e
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x214
ret

Function at 0x4579a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x471608
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push edi
lea ecx, [esp + 4]
call fcn.0041c140
mov edx, dword [esp + 0x2c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], 0
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.0041cba0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 4]
push eax
push ecx
call fcn.00457a20
add esp, 8
lea ecx, [esp + 4]
mov dword [esp + 0x24], 0xffffffff
call fcn.0041c880
mov ecx, dword [esp + 0x1c]
pop edi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x458190
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
sub esp, 0xc8
mov byte [eax], 0
mov byte [ecx], 0
push esi
mov esi, dword [esp + 0xe8]
push edi
mov ecx, esi
call fcn.00413a90
mov edi, dword [esp + 0xf0]
mov edx, dword [esp + 0xd4]
push edx
mov dword [edi], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x458227
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4581e0
mov edx, dword [ecx]
mov dword [edi], 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 + 0x18]
push str._d._d._d._d
push eax
call fcn.0045d4a4
add esp, 0x18
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00415650
pop edi
mov al, 1
pop esi
add esp, 0xc8
ret 0x28
pop edi
xor al, al
pop esi
add esp, 0xc8
ret 0x28

Function at 0x459b50
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 0x459b65
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 0x459b6c
inc ebx
cmp ebx, 2
jl 0x459b59
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x459be0
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x49bbd8
mov dl, byte [edi + 0x4953f8]
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 + 0x4954f8]
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 + 0x4954f8]
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 + 0x4954f8]
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 + 0x4954f8]
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, 0x49bfd8
jl 0x459bed
pop edi
pop esi
mov dword [0x4955f8], 0
pop ebx
add esp, 0xc
ret
Function at 0x45c8c0
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 0x402560
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.00402520
mov edi, dword [esp + 0x18]
mov dword [esi + 8], 0
push edi
push 0
push 0xf001f
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebx, dword [esp + 0x14]
mov dword [esi + 4], eax
test eax, eax
jne 0x4025a4
mov eax, dword [esp + 0x10]
push edi
push ebx
push 0
push 4
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x4025b3
pop edi
pop esi
xor al, al
pop ebx
ret 0xc
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x4025d1
pop edi
pop esi
xor al, al
pop ebx
ret 0xc
mov dword [esi + 0xc], ebx
pop edi
pop esi
mov al, 1
pop ebx
ret 0xc

Function at 0x4027c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
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]
test eax, eax
pop edi
je 0x402803
cmp dword [esp + 0x10], 2
jne 0x402803
cmp dword [esp + 4], 6
jb 0x402803
mov al, 1
add esp, 0x94
ret
xor al, al
add esp, 0x94
ret

Function at 0x402840
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x208
push esi
mov esi, dword [esp + 0x210]
push eax
push esi
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4028e9
push edi
lea ecx, [esp + 8]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.USER32.dll_CharLowerA]
call fcn.004027c0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
test al, al
je 0x4028d8
mov al, byte [esp + 0x21c]
test al, al
je 0x4028d8
lea eax, [esp + 8]
push 0x5c
push eax
call fcn.00402810
add esp, 8
test eax, eax
jne 0x4028bf
lea ecx, [esp + 8]
push 0x2f
push ecx
call fcn.00402810
add esp, 8
test eax, eax
je 0x4028d0
inc eax
push 0x40e150
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x4028d8
push str.Low
push esi
call edi
push 0x40e140
push esi
call edi
pop edi
pop esi
add esp, 0x208
ret
mov eax, dword [esp + 0x21c]
test eax, eax
je 0x402904
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
add esp, 0x208
ret
push 0x40e144
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
add esp, 0x208
ret
Function at 0x403e70
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x10]
push eax
push 0
push esi
push 0x403e90
push 0
push 0
call fcn.004054c8
add esp, 0x18
mov dword [esi + 0xc], eax
pop esi
ret
Function at 0x403d70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
jne 0x403d8b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403dc2
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x403dbe
jmp 0x403db0
cmp esi, eax
jae 0x403dc2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403db0
cmp esi, eax
jb 0x403dc9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x406940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, eax
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
test esi, esi
jne 0x406962
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x406959
push esi
push 0
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.kernel32.dll_GlobalLock]
push esi
push ebx
push eax
call fcn.00538f30
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4069b1
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407520
push edi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret