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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x101a0ac8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100d8968
cmp byte [ebx], 0xa
jne 0x100d8968
or byte [edi + eax + 0x28], 4
jmp 0x100d896d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x100d8a6c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100d8a4f
inc eax
cmp dl, 0xd
je 0x100d8999
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100d89bf
cmp eax, ecx
jae 0x100d89cd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100d8981
jmp 0x100d8a6c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100d8a4a
cmp dword [ebp - 0x10], 0
je 0x100d8a4a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101a0ac8]
test byte [eax + edi + 0x28], 0x48
je 0x100d8a24
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100d8a0f
mov byte [esi], dl
jmp 0x100d8a20
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101a0ac8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x100d8a6c
cmp byte [ebp - 1], 0xa
jne 0x100d8a33
cmp esi, ebx
jne 0x100d8a33
mov byte [esi], 0xa
jmp 0x100d8a6b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100d88ca
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x100d8a6c
mov byte [esi], 0xd
jmp 0x100d8a6b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101a0ac8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x100d8a69
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x100d8a6c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100d8a75
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x101a0ac8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100d8abb
cmp word [ebx], dx
jne 0x100d8abb
or byte [eax + edi + 0x28], 4
jmp 0x100d8ac0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100d8c23
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100d8c03
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100d8b01
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100d8b37
cmp eax, edx
jae 0x100d8b45
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100d8adc
jmp 0x100d8c23
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100d8bfe
cmp dword [ebp - 0x18], 0
je 0x100d8bfe
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101a0ac8]
test byte [eax + edi + 0x28], 0x48
je 0x100d8bd4
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x100d8b98
mov word [esi], cx
jmp 0x100d8bcf
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101a0ac8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x101a0ac8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101a0ac8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100d8c23
pop eax
cmp word [ebp - 4], ax
jne 0x100d8be4
cmp esi, ebx
jne 0x100d8be4
mov word [esi], ax
jmp 0x100d8c20
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100d88ca
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100d8c23
push 0xd
pop eax
jmp 0x100d8bdf
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101a0ac8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100d8c1d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100d8c23
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100dcbeb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100dcc88
push ebx
push esi
call fcn.100dcbb4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100dcb48
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100dcc35
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100dcc87
push edi
push eax
call fcn.100d5ff4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100dcc55
call fcn.100d5fba
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100dcc86
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100dcb48
add esp, 0x20
test eax, eax
jne 0x100dcc74
push edi
call fcn.100d5fba
jmp 0x100dcc7c
push ebx
call fcn.100d5fba
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100e3fe1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100e3f5d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100e4150
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100e4150
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100e4105
jg 0x100e403d
test eax, eax
je 0x100e40fb
push 1
push 0x1000
call fcn.100d5f5d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100e4060
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100e40f2
push 0x8000
push ebx
call fcn.100e3e8e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100e4089
jg 0x100e4084
cmp ecx, 0x1000
jb 0x100e4089
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100d9b92
add esp, 0x10
cmp eax, 0xffffffff
je 0x100e40ce
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100e4084
jl 0x100e40b5
test ecx, ecx
jne 0x100e4076
push dword [ebp - 0xc]
push ebx
call fcn.100e3e8e
push esi
call fcn.100d5fba
add esp, 0xc
xor ebx, ebx
jmp 0x100e415e
cmp byte [edi + 0x24], 0
je 0x100e40e5
cmp dword [edi + 0x20], 5
jne 0x100e40e5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100e40f0
mov ebx, dword [edi + 0x18]
jmp 0x100e40f2
xor ebx, ebx
push esi
call fcn.100d5fba
pop ecx
jmp 0x100e415e
test ecx, ecx
jg 0x100e40c7
jl 0x100e4105
test eax, eax
jae 0x100e40c7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100d88ca
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100e4125
cmp byte [edi + 0x1c], 0
je 0x100e40c7
jmp 0x100e4156
push ebx
call fcn.100dddcd
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100e40c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100e415e
cmp byte [edi + 0x1c], 0
je 0x100e415b
mov ebx, dword [edi + 0x18]
jmp 0x100e415e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100d88ca
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100fe0e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x5c]
cmp ebx, 0x11
jl 0x100fe12b
cmp ebp, 0x11
jl 0x100fe12b
push dword [esp + 0x60]
push ebp
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0x60]
push ebx
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0x60]
call fcn.100fe2f0
add esp, 0x2c
pop ebp
pop ebx
add esp, 0x2c
ret
mov edx, dword [esp + 0x60]
lea ecx, [ebx + ebp]
shl ecx, 2
mov dword [esp + 0x24], ecx
push esi
mov esi, dword [esp + 0x40]
lea eax, [edx + ebx*4]
mov dword [esp + 0x20], eax
add eax, ecx
mov ecx, dword [esp + 0x54]
cmp ebx, ebp
mov dword [esp + 0x24], eax
mov eax, ebp
cmovl ecx, edx
mov dword [esp + 0x2c], 2
mov dword [esp + 0x30], ecx
cmovl eax, ebx
mov ecx, ebx
mov dword [esp + 0x4c], eax
cmovl ecx, ebp
mov dword [esp + 0xc], ecx
mov ecx, edx
cmovl ecx, dword [esp + 0x54]
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x38], ecx
push ebx
push edi
push edx
call fcn.1006fda0
mov eax, dword [esp + 0x68]
add esp, 0xc
cmp ebx, ebp
jl 0x100fe1b1
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], eax
mov eax, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
jmp 0x100fe1cb
mov dword [esp + 0x20], eax
mov ecx, edi
mov eax, dword [esp + 0x60]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
push dword [esp + 0x50]
push ecx
push dword [esp + 0x18]
push eax
push dword [esp + 0x34]
call fcn.100ea720
push dword [esp + 0x64]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x38]
push dword [esp + 0x4c]
call fcn.100ea720
push dword [esp + 0x78]
push dword [esp + 0x48]
push dword [esp + 0x40]
push dword [esp + 0x54]
push edi
call fcn.100ea720
push dword [esp + 0x8c]
push dword [esp + 0x74]
push dword [esp + 0x54]
push dword [esp + 0x80]
push esi
call fcn.100ea720
add esp, 0x50
lea eax, [ebx + ebp]
push eax
push dword [esp + 0x28]
push edi
push edi
call fcn.1006fc40
mov ecx, dword [esp + 0x3c]
mov dword [ecx + edi], eax
lea eax, [ebx + ebp]
push eax
push dword [esp + 0x3c]
push esi
push esi
call fcn.1006fc40
mov ecx, dword [esp + 0x4c]
add esp, 0x20
sub dword [esp + 0x30], 1
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x68]
mov dword [ecx + esi], eax
mov esi, dword [esp + 0x4c]
jne 0x100fe182
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret
Function at 0x10102fb0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
movaps xmm3, xmmword [0x1013b2d0]
xorps xmm6, xmm6
movaps xmm4, xmmword [0x101173f0]
mov ecx, 0x1c
movaps xmm5, xmmword [0x101199c0]
mov edx, 0xe0
movaps xmm7, xmmword [0x10160250]
push esi
mov esi, dword [esp + 8]
lea eax, [esi + 0x634]
nop dword [eax]
nop dword [eax + eax]
lea eax, [eax + 0x20]
movaps xmm1, xmm4
movups xmm0, xmmword [eax - 0x654]
movups xmm2, xmmword [eax - 0x650]
andps xmm1, xmm0
andps xmm2, xmm3
orps xmm2, xmm1
movaps xmm1, xmm5
andps xmm1, xmm2
psrld xmm2, 1
pcmpeqd xmm1, xmm6
andnps xmm1, xmmword [0x10117400]
andps xmm1, xmm7
movups xmm0, xmmword [eax - 0x20]
xorps xmm1, xmm0
xorps xmm1, xmm2
movups xmmword [eax - 0x654], xmm1
movaps xmm1, xmm5
movups xmm2, xmmword [eax - 0x640]
movups xmm0, xmmword [eax - 0x644]
andps xmm2, xmm3
andps xmm0, xmm4
orps xmm2, xmm0
andps xmm1, xmm2
psrld xmm2, 1
pcmpeqd xmm1, xmm6
andnps xmm1, xmmword [0x10117400]
andps xmm1, xmm7
movups xmm0, xmmword [eax - 0x10]
xorps xmm1, xmm0
xorps xmm1, xmm2
movups xmmword [eax - 0x644], xmm1
sub ecx, 1
jne 0x10102ff0
mov ecx, dword [esi + edx*4 + 4]
xor ecx, dword [esi + edx*4]
and ecx, 0x7fffffff
xor ecx, dword [esi + edx*4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + edx*4 + 0x634]
xor eax, ecx
mov dword [esi + edx*4], eax
inc edx
cmp edx, 0xe3
jl 0x10103081
mov eax, 0xe3
nop dword [eax]
mov edx, dword [esi + eax*4 + 4]
xor edx, dword [esi + eax*4]
and edx, 0x7fffffff
xor edx, dword [esi + eax*4]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [esi + eax*4 - 0x38c]
xor ecx, edx
mov dword [esi + eax*4], ecx
inc eax
cmp eax, 0x26f
jl 0x101030c0
mov eax, dword [esi + 0x9bc]
mov ecx, dword [esi]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x630]
xor eax, ecx
mov dword [esi + 0x9bc], eax
pop esi
ret

Function at 0x101046d0
Capabilities:
Parse pe header

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

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x1dab27ea
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0xcc6476e
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x1108008], 0x8088405
inc edx
mov dword [ebx + 0x1108008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf44
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf6c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x10ec58e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10ec595
ret
Function at 0x4202d8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x10ed8f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x420313
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x42032c
lea eax, [ebp - 0x10]
mov edx, dword [0x110a54c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x42033f
lea eax, [ebp - 0x10]
mov edx, dword [0x110a54c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x42034b
adc edx, 0
mov edx, dword [edx*4 + 0x1109378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x4204c5
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x4204b8
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
cmp dword [eax], 0x4550
jne 0x4204b8
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420456
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420456
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420456
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420456
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x4204b8
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x4204b8
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x4204b8
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4204b8
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x4204dd
inc ebx
cmp ebx, 0x19
jne 0x420305
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x10ed8fa
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x408922
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
and ebx, esi
or ebx, esi
call fcn.0040895e
sub esi, esi
and ebx, esi
xor dword [edi], ecx
sub esp, 4
mov dword [esp], ebx
mov ebx, dword [esp]
add esp, 4
inc edi
sub ebx, ebx
or ebx, esi
cmp edi, edx
jne fcn.00408922
and esi, ebx
ret